lean4-htt/tests/lean/run/grind_inj_clear_issue.lean
Leonardo de Moura f74e21e302
fix: grind injection should not fail at clear (#11126)
This PR ensures `grind` does not fail when applying `injection` to a
hypothesis that cannot be cleared because of forward dependencies.
2025-11-10 14:50:18 +00:00

7 lines
208 B
Text

/-!
`grind` injection step does not fail at `clear`.
-/
example (n m : Nat) (a : Fin n) (b : Fin m) (h : ∃ h : [n] = [m], (List.cons.inj h).1 ▸ a = b) :
(List.cons.inj h.1).1 ▸ a = b := by
grind