Skip to content

Instantly share code, notes, and snippets.

View ronenlh's full-sized avatar

Ronen Lahat ronenlh

View GitHub Profile
-- Lean
example : ∀ x : Nat, 0 ≤ x :=
--- ...
-- Lean
theorem FermatLastTheorem :
∀ x y z n : Nat, n > 2 ∧ x * y * z ≠ 0 → x^n + y^n ≠ z^n :=
sorry
-- Lean
example : 2 + 2 = 4 :=
sorry
example : 2 + 2 = 4 :=
rfl
example : (Coin → HotWater → Noodles) → (Coin ∧ HotWater → Noodles) := by
sorry
example : (Coin → HotWater → Noodles) → (Coin ∧ HotWater → Noodles) := by
intro noodleVendingMachine
example : (Coin → HotWater → Noodles) → (Coin ∧ HotWater → Noodles) := by
intro noodleVendingMachine
intro coinAndHotWater
example : (Coin → HotWater → Noodles) → (Coin ∧ HotWater → Noodles) := by
intro noodleVendingMachine
intro coinAndHotWater
exact noodleVendingMachine coinAndHotWater.left coinAndHotWater.right
example : (P → Q → R) → (P ∧ Q → R) := by
intro h
intro hpq
exact h hpq.left hpq.right
#check 3
-- 3 : Nat