-
Notifications
You must be signed in to change notification settings - Fork 350
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
simp
error "unknown metavariable"
#1814
Comments
Is |
It is, and was just ported to mathlib4, in leanprover-community/mathlib4#559. I'll go have a look at where it is actually used in mathlib3. |
I haven't finished recompiling, but it looks like it's an easy fix to remove the |
Sorry, actually, I don't understand why this lemma would be a problem. The LHS still has head |
@semorrison Lean 4 is computing the cc @digama0 |
Unfolding reducibles is indeed a change from lean 3, but I'm not yet convinced we can't just adapt to it as long as the new behavior is strictly better. One area where it is problematic is that simp is very unwilling to unfold reducible constants when asked to, because it sees right through them and hence doesn't see anything that needs unfolding. For the most part, if the LHS and RHS are equal up to reducible unfolding then I think we can just safely remove the @[simp] theorem liftOn_mk (a : α) (f : α → γ) : f a = f a := rfl (which is how lean sees this lemma) is not an error, like it would be in lean 3 because the lemma trivially loops and also starts with a metavariable. (EDIT: actually this isn't an error in lean 3 either. It probably should be...) |
Not sure it is better. It seems to make it harder for users to control which I will tag this issue with |
At least as far as near term advice for mathlib porting, I will be telling people not to tag simp theorems which have reducible definitions in them, and checking this in the |
Missing `hasAssignableMVar` checks.
Reported on Zulip.
The text was updated successfully, but these errors were encountered: