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

27 lines
675 B
Text

example (x y : Int) : x / 2 + y = 3 → x = 5 → y = 1 := by
grind
example (x y : Int) : x / -2 + y = 3 → x = 5 → y = 5 := by
grind
example (x y : Int) : x % -2 + y = 3 → x = 5 → y = 2 := by
grind
example (x y : Int) : x % 2 + y = 3 → x = 5 → y = 2 := by
grind
/--
trace: [grind.cutsat.model] x := 5
[grind.cutsat.model] y := 2
-/
#guard_msgs (trace) in
set_option trace.grind.cutsat.model true in
example (x y : Int) : x % 2 + y = 3 → x ≤ 5 → x > 4 → y = 1 := by
fail_if_success grind
sorry
example (x y : Int) : x = y / 2 → y % 2 = 0 → y - 2*x = 0 := by
grind
example (x : Int) : x ≥ 0 → (x + 4) / 2 ≤ x + 2 := by
grind