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

64 lines
1.9 KiB
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.

example (f : Int → Int) (x : Int)
: 0 ≤ x → x ≠ 0 → x ≤ 1 → f x = 2 → f 1 = 2 := by
grind
-- In the following example, model-based theory combination is disabled,
-- and we have an invalid counterexample where `x := 1`,
-- but `f x` and `f 1` have different assignments.
/--
trace: [grind.cutsat.model] x := 1
[grind.cutsat.model] f x := 2
[grind.cutsat.model] f 1 := 5
-/
#guard_msgs (trace) in
set_option trace.grind.cutsat.model true in
example (f : Int → Int) (x : Int)
: 0 ≤ x → x ≠ 0 → x ≤ 1 → f x = 2 → f 1 = 2 := by
fail_if_success grind -mbtc
sorry
/--
trace: [grind.cutsat.model] x := 2
[grind.cutsat.model] f x := 2
[grind.cutsat.model] f 1 := 5
-/
#guard_msgs (trace) in
set_option trace.grind.cutsat.model true in
example (f : Int → Int) (x : Int)
: 0 ≤ x → x ≠ 0 → x ≤ 3 → f x = 2 → f 1 = 2 := by
fail_if_success grind
sorry
example (f : Int → Int → Int) (x y : Int)
: 0 ≤ x → x ≠ 0 → x ≤ 1 → f x y = 2 → f 1 y = 2 := by
grind
example (f : Nat → Nat) (x : Nat)
: x ≠ 0 → x ≤ 1 → f x = 2 → f 1 = 2 := by
grind
example (f : Nat → Nat → Nat) (x y : Nat)
: x ≠ 0 → x ≤ 1 → f x y = 2 → f 1 y = 2 := by
grind
-- `b` must not be `2`. Otherwise, `f (b+1)` and `f 3` must be equal.
/-- trace: [grind.cutsat.model] b := 3 -/
#guard_msgs (trace) in
set_option trace.grind.cutsat.model true in
example (f : Int → α) (a b : Int) : b > 1 → f (b + 1) = x → f 3 = y → x = y := by
(fail_if_success grind); sorry
-- `b` must not be `2`. Otherwise, `f (b+1)` and `f 3` must be equal.
/--
trace: [grind.cutsat.model] x := 7
[grind.cutsat.model] y := 8
[grind.cutsat.model] b := 3
[grind.cutsat.model] f 3 := 8
[grind.cutsat.model] f (b + 1) := 7
-/
#guard_msgs (trace) in
set_option trace.grind.cutsat.model true in
example (f : Int → Int) (a b : Int) : b > 1 → f (b + 1) = x → f 3 = y → x = y := by
(fail_if_success grind); sorry