Skip to content
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

fix: bug in markNestedProofs within grind #6500

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Lean/Meta/Tactic/Grind/MarkNestedProofs.lean
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions tests/lean/run/grind_nested_proof_issue.lean
Original file line number Diff line number Diff line change
@@ -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