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

18 lines
595 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.

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