Skip to content

Commit

Permalink
add this
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobrasca committed Jan 29, 2025
1 parent e8046ce commit 6df03fe
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Math2001/02_Proofs_with_Structure/02_Invoking_Lemmas.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/- Copyright (c) Heather Macbeth, 2022. All rights reserved. -/
import Mathlib.Data.Real.Basic
import Library.Basic

math2001_init

example {x : ℚ} (hx : 3 * x = 2) : x ≠ 1 := by
apply ne_of_lt
calc
x = 3 * x / 3 := by ring
_ = 2 / 3 := by rw [hx]
_ < 1 := by numbers
done

example {y : ℝ} : y ^ 2 + 10 := by
sorry
done

example {a b : ℝ} (h1 : a ^ 2 + b ^ 2 = 0) : a ^ 2 = 0 := by
apply le_antisymm
calc
a ^ 2 ≤ a ^ 2 + b ^ 2 := by extra
_ = 0 := h1
extra
done


/-! # Exercises -/


example {m : ℤ} (hm : m + 1 = 5) : 3 * m ≠ 6 := by
sorry
done

example {s : ℚ} (h1 : 3 * s ≤ -6) (h2 : 2 * s ≥ -4) : s = -2 := by
sorry
done

0 comments on commit 6df03fe

Please sign in to comment.