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: 3 additions & 11 deletions EasyLean/Basic.lean
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import Mathlib.Data.Real.Basic
import Mathlib.Tactic.Linarith
import EasyLean.Theorems.mathd_algebra_513
import EasyLean.Theorems.eq_four

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
-- Basic entry point that re-exports the core theorems for this project.
6 changes: 6 additions & 0 deletions EasyLean/Theorems/eq_four.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Mathlib

-- Equality transitivity helper that ignores an unused hypothesis.
theorem eq_four : ∀ a b c d : Nat, a = b → a = d → a = c → c = b := by
intro a b c d hab had hac
exact hac.symm.trans hab
6 changes: 6 additions & 0 deletions EasyLean/Theorems/mathd_algebra_513.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Mathlib

-- Solves a 2x2 linear system with integer coefficients.
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]
3 changes: 3 additions & 0 deletions Main.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import EasyLean.Basic

-- Main executable entry point for the Lean project; ensures theorem modules compile.