diff --git a/EasyLean/Basic.lean b/EasyLean/Basic.lean index 0dbd32e..59a71bc 100644 --- a/EasyLean/Basic.lean +++ b/EasyLean/Basic.lean @@ -1,11 +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 - --- This verision is in branch +import EasyLean.MathdAlgebra513 diff --git a/EasyLean/MathdAlgebra513.lean b/EasyLean/MathdAlgebra513.lean new file mode 100644 index 0000000..7173fe1 --- /dev/null +++ b/EasyLean/MathdAlgebra513.lean @@ -0,0 +1,9 @@ +import Mathlib + +namespace EasyLean + +theorem mathd_algebra_513 (a b : Real) (h0 : 3 * a + 2 * b = 5) (h1 : a + b = 2) : + a = 1 ∧ b = 1 := by + constructor <;> linarith [h0, h1] + +end EasyLean