-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge under
tactical
#97
Comments
erikmd/coq@00cc823 |
Hi @gares @CohenCyril :) thanks for the reminder! |
FYI I've just finished to implement the bound variables renaming in my branch feature/under. |
Hi @gares @CohenCyril I've just pushed a new commit with an So the currently supported syntax is: (* 1-var tactic with 1 side-condition *)
under i: eq_bigr.
by rewrite addnC over.
under i: eq_bigr.
tactic...; over.
(* 1-var tactic with 2 side-conditions *)
under i : {2}[in RHS]eq_big.
over.
move=> Pi; by rewrite addnC over.
(* 2-var tactic with 1 side-condition *)
under i j : {2}[in RHS]eq_mx.
by rewrite addnC over. |
BTW I've noticed that when an evar is applied to more than one variable (e.g., for a goal Do you think this is a bug/unwanted behavior? Anyway, note that this fact is only reproducible in I'd be interested if someone has an explanation of that difference of behavior between |
To sum up and complement my last-but-one comment, when we'll have the "focus-as-a-tactic" feature, the following syntax could also be implemented: under i: lem => /andP [H1 H2]. (* the move=> acts only on the focused subgoal *)
by rewrite addnC over. (and it would be immediate to support a one-liner version that does not need @gares, do you think it will be possible to make the "focus-as-a-tactic" work if there are 2 or more side-conditions?
What do you think? |
I frankly tried to implement focus-as-tactic but it requires quite some refactoring, and I don't have time for that. So I suggest we try to propose under without that patch. I won't have time to look at your code for the next 2 weeks, I'm afraid. |
Hi @gares!
OK for me. AFAICT the current state of the tactic is already quite useful.
OK, no worries! (I'll be quite busy in the upcoming days as well) BTW, note that a small PR in math-comp will also be useful to "leverage the Kind regards, Erik |
For the record, a newest implementation of this tactical is being prepared in PR coq/coq#9651 Feel free to close this issue #97 anytime (now or after the merge) |
Proposal by @erikmd
Depends on #96 and and #62
The text was updated successfully, but these errors were encountered: