lean4-htt/tests/lean/run/grind_exfalso.lean
Leonardo de Moura 71b2b67a12
feat: exfalso in grind (#7510)
This PR ensures that `grind` can be used as a more powerful
`contradiction` tactic, sparing the user from having to type `exfalso;
grind` or `intros; exfalso; grind`.
2025-03-16 17:25:19 +00:00

13 lines
245 B
Text

set_option grind.warning false
example (x : Nat) (h : x < 0) : Nat → Nat := by
grind
example : False → Nat := by
grind
example : (x : Nat) → x < 0 → Nat := by
grind
example : (x : Nat) → x < 3 → x > 4 → Nat := by
grind