fix: bug at simpLoop
This commit is contained in:
parent
cd94ec20b0
commit
c954fc9ec7
2 changed files with 2 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ where
|
|||
let init := r.expr
|
||||
modify fun s => { s with numSteps := s.numSteps + 1 }
|
||||
match (← pre r.expr) with
|
||||
| Step.done r => cacheResult cfg r
|
||||
| Step.done r' => cacheResult cfg (← mkEqTrans r r')
|
||||
| Step.visit r' =>
|
||||
let r ← mkEqTrans r r'
|
||||
let r ← mkEqTrans r (← simpStep r.expr)
|
||||
|
|
|
|||
1
tests/lean/run/simpLoopBug.lean
Normal file
1
tests/lean/run/simpLoopBug.lean
Normal file
|
|
@ -0,0 +1 @@
|
|||
example (a : α) : ¬ some (some a) = some none := by simp
|
||||
Loading…
Add table
Reference in a new issue