lean4-htt/tests/lean/run/grind_match_with_eq.lean
Leonardo de Moura 6683d1eb91
chore: add module keyword to grind tests (#10036)
This PR also fixes missing `@[expose]` in grind support definitions.
2025-08-21 22:02:08 +00:00

16 lines
312 B
Text

module
@[expose] public section -- TODO: remove after we fix congr_eq
def f (a : Option Nat) (h : a ≠ none) : Nat :=
match a with
| some a => a
| none => by grind
def g (a : Option Nat) : Nat :=
match h : a with
| none => 1
| some _ => f a (by grind) + 1
example : g a > 0 := by
unfold g
grind