Skip to content

Commit 9d9c923

Browse files
committed
test: rationals in grind linarith
1 parent aa59c01 commit 9d9c923

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
open Lean Grind Std
2+
3+
variable [Field α] [LT α] [LE α] [LawfulOrderLT α] [IsLinearOrder α] [OrderedRing α]
4+
5+
example (x : α) : x ≥ 1/3 → x ≥ 0 := by grind
6+
example (x : α) : x ≥ 1/3 → x ≥ 1/4 := by grind
7+
example : (1/3 : α) ≥ 0 := by grind
8+
example : (2/3 : α) ≥ 1/3 := by grind
9+
example (x : α) : x + 1/3 ≤ x + 1/2 := by grind
10+
example (x : α) (h : x ≤ 7/5) : 5*x ≤ 7 := by grind
11+
example (x : α) (h : 3*x ≤ 7) : x ≤ 7/3 := by grind
12+
example (x y : α) (h : x ≤ y - 1/3) : x + 1/6 ≤ y - 1/6 := by grind
13+
example (x y : α) (h : x < y) : x + 1/3 < y + 1/3 := by grind
14+
example (x : α) : x ≤ x + 1/7 := by grind
15+
example (x : α) (h : x ≤ 1/4) : x - 1/3 ≤ -1/12 := by grind
16+
example (x : α) (h : x ≤ x - 1/3) : False := by grind
17+
example : (1/3 : α) ≤ 2/3 := by grind
18+
example : (1/3 : α) ≤ (2/5 : α) := by grind
19+
example (x y : α) (h : x ≤ y - (1/3 : α)) : x + (1/6 : α) ≤ y - (1/6 : α) := by grind
20+
example (x : α) (h : x ≤ (1/4 : α)) : x - (1/3 : α) ≤ (-1/12 : α) := by grind
21+
example (x : α) (h : x ≤ x - (1/5 : α)) : False := by grind

0 commit comments

Comments
 (0)