This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Lean | |
| example : ∀ x : Nat, 0 ≤ x := | |
| --- ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Lean | |
| theorem FermatLastTheorem : | |
| ∀ x y z n : Nat, n > 2 ∧ x * y * z ≠ 0 → x^n + y^n ≠ z^n := | |
| sorry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Lean | |
| example : 2 + 2 = 4 := | |
| sorry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| example : 2 + 2 = 4 := | |
| rfl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| example : (Coin → HotWater → Noodles) → (Coin ∧ HotWater → Noodles) := by | |
| sorry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| example : (Coin → HotWater → Noodles) → (Coin ∧ HotWater → Noodles) := by | |
| intro noodleVendingMachine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| example : (Coin → HotWater → Noodles) → (Coin ∧ HotWater → Noodles) := by | |
| intro noodleVendingMachine | |
| intro coinAndHotWater |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| example : (Coin → HotWater → Noodles) → (Coin ∧ HotWater → Noodles) := by | |
| intro noodleVendingMachine | |
| intro coinAndHotWater | |
| exact noodleVendingMachine coinAndHotWater.left coinAndHotWater.right |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| example : (P → Q → R) → (P ∧ Q → R) := by | |
| intro h | |
| intro hpq | |
| exact h hpq.left hpq.right |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #check 3 | |
| -- 3 : Nat |