fix: fixes #481
This commit is contained in:
parent
795e3a8646
commit
edb203ca54
2 changed files with 6 additions and 0 deletions
|
|
@ -153,6 +153,7 @@ private def mkSimpLemmaCore (e : Expr) (levelParams : Array Name) (proof : Expr)
|
|||
let type ← instantiateMVars (← inferType e)
|
||||
withNewMCtxDepth do
|
||||
let (xs, _, type) ← withReducible <| forallMetaTelescopeReducing type
|
||||
let type ← whnfR type
|
||||
let (keys, perm) ←
|
||||
match type.eq? with
|
||||
| some (_, lhs, rhs) => pure (← DiscrTree.mkPath lhs, ← isPerm lhs rhs)
|
||||
|
|
|
|||
5
tests/lean/run/481.lean
Normal file
5
tests/lean/run/481.lean
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
example (b : let n : Nat := 2; (n = 13)) : Bool := by
|
||||
simp_all
|
||||
|
||||
example (b : let n : Nat := 2; (n = 13)) : n + 1 = 14 := by
|
||||
simp_all
|
||||
Loading…
Add table
Reference in a new issue