lean4-htt/tests/lean/run/grind_ematch_theorem_activation.lean
Leonardo de Moura 983d64395a
fix: theorem activation in grind (#11660)
This PR fixes another theorem activation issue in `grind`.
2025-12-13 18:35:30 +00:00

19 lines
431 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module
reset_grind_attrs%
attribute [grind] List.length_set
attribute [grind →] List.eq_nil_of_length_eq_zero
attribute [grind] List.getElem_set
open List in
example {as : List α} {i : Nat} (h : i < as.length) :
as.set i as[i] = as := by
apply ext_getElem
· sorry
· grind
reset_grind_attrs%
opaque P : {n : Nat} → Fin (n+1) → Prop
@[grind] axiom Pax : @P n 0
example (a : Fin 3) : a = 0 → P a := by
grind