-
Notifications
You must be signed in to change notification settings - Fork 63
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
Enhance trivial
proof tactic
#1567
Comments
Agreed, I think it would be very nice generalization to enhance However, I'm a little more skeptical about adding extensible theorems. That sounds to me like it would be better as a separate tactic. |
Yeah, maybe the extensibility is a bit overkill for |
Does |
Not quite. We really want to check whether a term unifies with the pattern Unless we want to implement a generic matching- or unification-modulo-convertibility operation, we might need to do something a bit ad-hoc. Probably what we need is to evaluate the goal to whnf (with |
Your second paragraph there was basically what I had in mind, modulo questions about handling free variables from going under Pi binders. |
I guess we could just try to actually build the corresponding proof term and type-check it? That might be easier. |
Some local testing indicates that building a candidate proof term from |
Fixed via #1568 |
Currently the
trivial
proof tactic can only discharge proof states with goals of the formEqTrue True
(possibly surrounded by some number of Pi quantifiers). It would be good to generalize this a bit. In particular, we should enable it to solve any goal of the formEq t x x
by reflexivity. Note thatEqTrue True
is definitionally equal toEq Bit True True
, so it is also an instance of reflexivity.Even better would be to have an extensible set of theorems that could be resolved with proof goals to solve them, of which reflexivity could be one.
The text was updated successfully, but these errors were encountered: