Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions EasyLean/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
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.Theorems.TwoMulTwoReal
import EasyLean.Theorems.MathdAlgebra513
12 changes: 12 additions & 0 deletions EasyLean/Theorems/MathdAlgebra513.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Mathlib
import EasyLean.Theorems.TwoMulTwoReal

theorem mathd_algebra_513 (a b : ℝ) (h₀ : 3 * a + 2 * b = 5) (h₁ : a + b = 2) :
a = 1 ∧ b = 1 := by
have h₂ : 2 * a + 2 * b = 2 * 2 := by
simpa [mul_add] using congrArg (fun t : ℝ => 2 * t) h₁
have ha : a = 1 := by
linarith [h₀, h₂]
have hb : b = 1 := by
linarith [h₁, ha]
exact ⟨ha, hb⟩
4 changes: 4 additions & 0 deletions EasyLean/Theorems/TwoMulTwoReal.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Mathlib

theorem two_mul_two_real : (2 : ℝ) * 2 = (4 : ℝ) := by
norm_num
3 changes: 3 additions & 0 deletions Main.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import EasyLean.Theorems.MathdAlgebra513

def main : IO Unit := pure ()