lean4-htt/tests/lean/run/grind_lookahead.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

19 lines
602 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.eq_nil_of_length_eq_zero
example (as : List α) (h : as.length < 2) (h : as.length ≠ 1) (f : List α → Nat) :
f as = f [] := by
grind
example (as : List α) (h : as.length < 2) (h : as.length ≠ 1) : as = [] := by
grind -lookahead
example (as : List α) (h : as.length < 2) (h : as.length ≠ 1) : as = [] := by
grind (splits := 0)
example (as : List α) (h : as.length < 2) (h : as.length ≠ 1) (f : List α → Nat)
: f as = f [] := by
fail_if_success grind (splits := 0) -lookahead -- Need lookahead or case-splits
sorry