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
use
tactic
#486
use
tactic
#486
Conversation
Is it possible to make the equivalent of |
Copy docstring to |
No way that's obvious to me. The anonymous constructor is a macro, and I can't build that shape recursively. This could be made to work for arbitrary inductives by looking at the target, identifying the constructor, and applying that, but that's more effort than I meant to spend here -- I don't think |
Myabe an adoption of the |
You can do |
Another possible generalization is to "figure out" the right bracketing of constructors, but maybe that's too magical? (Although I don't mind small tactics, once we have decided to have a tactic it seems reasonable to generalize it to any adjacent use cases to get something nice.) |
Yeah, I mean, this is a one liner where the doc string took longer to write than the tactic itself. I can try to generalize it at some point but it won't happen this week. |
As requested on Zulip, a synonym for
refine ⟨x, _⟩
.TO CONTRIBUTORS:
Make sure you have:
For reviewers: code review check list