diff --git a/EasyLean/Basic.lean b/EasyLean/Basic.lean index 305e1ca..4972a4d 100644 --- a/EasyLean/Basic.lean +++ b/EasyLean/Basic.lean @@ -1,12 +1,21 @@ import Mathlib.Data.Real.Basic import Mathlib.Tactic.Linarith -theorem mathd_algebra_513 - (a b : ℝ) +theorem «# easy-lean»: True := by + trivial + +theorem «easy-lean» (a b : ℝ) (h₀ : 3 * a + 2 * b = 5) (h₁ : a + b = 2) : a = 1 := by + linarith [h₀, h₁] + +theorem mathd_algebra_513 (a b : ℝ) (h₀ : 3 * a + 2 * b = 5) (h₁ : a + b = 2) : a = 1 ∧ b = 1 := by - sorry + constructor + · exact «easy-lean» a b h₀ h₁ + · have ha : a = 1 := «easy-lean» a b h₀ h₁ + linarith [h₁, ha] + theorem eq_four : ∀ a b c d : Nat, a = b → a = d → a = c → c = b := by sorry