fix: bug in markNestedProofs within grind (#6500)
This PR fixes a bug in the `markNestedProofs` used in `grind`. See new test.
This commit is contained in:
parent
a8d09dad1b
commit
c0d67e2a65
2 changed files with 9 additions and 3 deletions
|
|
@ -28,9 +28,9 @@ where
|
|||
| .bvar .. => unreachable!
|
||||
-- See comments on `Canon.lean` for why we do not visit these cases.
|
||||
| .letE .. | .forallE .. | .lam ..
|
||||
| .const .. | .lit .. | .mvar .. | .sort .. | .fvar ..
|
||||
| .proj ..
|
||||
| .mdata .. => return e
|
||||
| .const .. | .lit .. | .mvar .. | .sort .. | .fvar .. => return e
|
||||
| .proj _ _ b => return e.updateProj! (← visit b)
|
||||
| .mdata _ b => return e.updateMData! (← visit b)
|
||||
-- We only visit applications
|
||||
| .app .. =>
|
||||
-- Check whether it is cached
|
||||
|
|
|
|||
6
tests/lean/run/grind_nested_proof_issue.lean
Normal file
6
tests/lean/run/grind_nested_proof_issue.lean
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
example (as bs : Array α) (v : α)
|
||||
(i : Nat)
|
||||
(h₁ : i < as.size)
|
||||
(h₂ : bs = as.set i v)
|
||||
: (as.set i v).size = as.size → as.size = bs.size := by
|
||||
grind
|
||||
Loading…
Add table
Reference in a new issue