lean4-htt/tests/lean/run/grind_match_with_eq.lean
Kim Morrison eccc472e8d
chore: remove set_option grind.warning false (#8714)
This PR removes the now unnecessary `set_option grind.warning false`
statements, now that the warning is disabled by default.
2025-06-11 05:09:19 +00:00

13 lines
241 B
Text

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