test: rationals in grind linarith (#10958)
This commit is contained in:
parent
962e7d5a30
commit
48f0eb206c
1 changed files with 21 additions and 0 deletions
21
tests/lean/run/grind_linarith_rational.lean
Normal file
21
tests/lean/run/grind_linarith_rational.lean
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
open Lean Grind Std
|
||||
|
||||
variable [Field α] [LT α] [LE α] [LawfulOrderLT α] [IsLinearOrder α] [OrderedRing α]
|
||||
|
||||
example (x : α) : x ≥ 1/3 → x ≥ 0 := by grind
|
||||
example (x : α) : x ≥ 1/3 → x ≥ 1/4 := by grind
|
||||
example : (1/3 : α) ≥ 0 := by grind
|
||||
example : (2/3 : α) ≥ 1/3 := by grind
|
||||
example (x : α) : x + 1/3 ≤ x + 1/2 := by grind
|
||||
example (x : α) (h : x ≤ 7/5) : 5*x ≤ 7 := by grind
|
||||
example (x : α) (h : 3*x ≤ 7) : x ≤ 7/3 := by grind
|
||||
example (x y : α) (h : x ≤ y - 1/3) : x + 1/6 ≤ y - 1/6 := by grind
|
||||
example (x y : α) (h : x < y) : x + 1/3 < y + 1/3 := by grind
|
||||
example (x : α) : x ≤ x + 1/7 := by grind
|
||||
example (x : α) (h : x ≤ 1/4) : x - 1/3 ≤ -1/12 := by grind
|
||||
example (x : α) (h : x ≤ x - 1/3) : False := by grind
|
||||
example : (1/3 : α) ≤ 2/3 := by grind
|
||||
example : (1/3 : α) ≤ (2/5 : α) := by grind
|
||||
example (x y : α) (h : x ≤ y - (1/3 : α)) : x + (1/6 : α) ≤ y - (1/6 : α) := by grind
|
||||
example (x : α) (h : x ≤ (1/4 : α)) : x - (1/3 : α) ≤ (-1/12 : α) := by grind
|
||||
example (x : α) (h : x ≤ x - (1/5 : α)) : False := by grind
|
||||
Loading…
Add table
Reference in a new issue