diff --git a/EasyLean.lean b/EasyLean.lean index a53489d..c4e503b 100644 --- a/EasyLean.lean +++ b/EasyLean.lean @@ -1 +1,2 @@ import EasyLean.Basic +import EasyLean.Mathd.MathdAlgebra513 diff --git a/EasyLean/Basic.lean b/EasyLean/Basic.lean index 305e1ca..ba8ccbc 100644 --- a/EasyLean/Basic.lean +++ b/EasyLean/Basic.lean @@ -1,12 +1 @@ -import Mathlib.Data.Real.Basic -import Mathlib.Tactic.Linarith - -theorem mathd_algebra_513 - (a b : ℝ) - (h₀ : 3 * a + 2 * b = 5) - (h₁ : a + b = 2) : - a = 1 ∧ b = 1 := by - sorry - -theorem eq_four : ∀ a b c d : Nat, a = b → a = d → a = c → c = b := by - sorry +import EasyLean.Mathd.MathdAlgebra513 diff --git a/EasyLean/Mathd/MathdAlgebra513.lean b/EasyLean/Mathd/MathdAlgebra513.lean new file mode 100644 index 0000000..469f08b --- /dev/null +++ b/EasyLean/Mathd/MathdAlgebra513.lean @@ -0,0 +1,12 @@ +import Mathlib + +theorem mathd_algebra_513 (a b : ℝ) + (h₀ : 3 * a + 2 * b = 5) + (h₁ : a + b = 2) : + a = 1 ∧ b = 1 := by + have ha : a = 1 := by + nlinarith [h₀, h₁] + have hb : b = 1 := by + nlinarith [h₀, h₁] + exact ⟨ha, hb⟩ +