Skip to content

Commit b9a0df7

Browse files
committed
tes: test for IntModule
1 parent f2501be commit b9a0df7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/lean/run/grind_linarith_2.lean

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,15 @@ set_option trace.grind.linarith.model true in
7676
example [CommRing α] [LinearOrder α] [Ring.IsOrdered α] (a b c d : α)
7777
: b ≥ 0 → c > b → d > b → a ≠ b + c → a > b + c → a < b + d → False := by
7878
grind
79+
80+
/--
81+
trace: [grind.linarith.model] a := 0
82+
[grind.linarith.model] b := 1
83+
[grind.linarith.model] c := 1
84+
[grind.linarith.model] d := -1
85+
-/
86+
#guard_msgs (drop error, trace) in
87+
set_option trace.grind.linarith.model true in
88+
example [IntModule α] [LinearOrder α] [IntModule.IsOrdered α] (a b c d : α)
89+
: a ≤ b → a - c ≥ 0 + d → d ≤ 0 → b = c → a ≠ b → False := by
90+
grind

0 commit comments

Comments
 (0)