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
[Merged by Bors] - feat(tactic/dec_trivial): make dec_trivial easier to use #3875
Conversation
Co-authored-by: Patrick Massot <patrickmassot@free.fr>
Authors: Johan Commelin | ||
-/ | ||
import tactic.interactive | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Module doc please! Alternatively, I know we're generally moving away from the monolithic tactic.interactive
, but since the copyright and module doc boilerplate will be longer than the content of this file, you could just stick the important bit in there.
Unfortunately this kind of reversion can also change a trivial goal into a non-trivial goal, e.g.: import tactic.dec_trivial
example (n : ℕ) : (0 : fin (n+1)) + 0 = 0 :=
dec_trivial -- good
-- by dec_trivial -- bad So
|
I'm happy, but let's see if anyone else has opinions about the |
It's a bit weird that |
The alternative, which Johan suggested, is implementing example (b : bool) : function.const _ 10000 b = 10001 |
@digama0 🏓 |
Works for me. I like the currently implemented behavior, where bors r+ |
Pull request successfully merged into master. Build succeeded: |
This PR is motivated by the
fin 3
"issues" in #3872