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

27 lines
791 B
Text

module
set_option grind.debug true
/--
trace: [grind.debug.cutsat.search.assign] b := -1
[grind.debug.cutsat.search.assign] a := 3
-/
#guard_msgs (trace) in
set_option trace.grind.debug.cutsat.search.assign true in
example (a b : Int) (h₁ : a ≤ 3) (h₂ : a > 2) (h₃ : a + b < 3) : False := by
fail_if_success grind
sorry
example (a : Int) (h₁ : a ≤ 3) (h₂ : a > 5) : False := by
grind
example (a b : Int) (h₁ : a ≤ 3) (h₂ : a + b > 5) (h₃ : a - b > 1) : False := by
grind
example (a b c : Int) (h₁ : a ≤ 3) (h₂ : a + b > 5) (h₃ : a - c > 1) : b ≤ c → c ≤ b → False := by
grind
theorem ex₁ (a b c : Int) (h₁ : a ≤ 3) (h₂ : a + b > 5) (h₃ : a - c > 1) : b ≤ c → c ≤ b → False := by
grind
open Int.Linear in
#print ex₁