-
Notifications
You must be signed in to change notification settings - Fork 105
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
rcases can't use rfl
on 0 = a
in some circumstances.
#62
Comments
This should be fixed in |
I guess this is a repro: theorem foo [OfNat α 0] (a : α) : a = 0 := sorry
example (a : α) [OfNat α 0] : True := by
let t := @foo _ ?_ a
subst t -- fails with `'a' occurs at 0`
example (a : α) [OfNat α 0] : True := by
let t := foo a
subst t |
The problem here is that |
I think https://github.com/leanprover/lean4/compare/master...semorrison:lean4:subst_less_conservative?expand=1 would solve the problem. |
Per mathlib porting meeting discussion, it seems |
Is this still an issue? |
Fails with
tactic 'subst' failed, 'a' occurs at 0
This breaks a proof from
Algebra.Order.Ring.Defs
, leanprover-community/mathlib4#905.The text was updated successfully, but these errors were encountered: