File size: 289 Bytes
8c51ce7
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Mathlib

-- Lecture 5 Problems

example {r s : ℚ} (h1 : s + 3 ≥ r) (h2 : s + r ≤ 3) : r3 := by
  linarith

example {x : ℚ} (hx : 3 * x = 2) : x1 := by
  apply ne_of_lt
  linarith

example {y : ℝ} : y ^ 2 + 10 := by
  apply ne_of_gt
  linarith [sq_nonneg y]