Pure Lean 4 · No Mathlib
HardSet Theory
20. Cantor's Diagonal Theorem
Prove Georg Cantor's foundational theorem: no function `f : α → (α → Prop)` can surject onto the power set of `α`. Construct the diagonal predicate `fun y => ¬ f y y` and derive a contradiction without Mathlib or classical logic!
Target Theorem
theorem cantor_theorem {α : Type} (f : α → (α → Prop)) : ¬ ∀ g : α → Prop, ∃ x : α, f x = gHints (0/3)
Stuck? Reveal hints one step at a time without spoiling the full proof.
Symbols:
Infoview & Diagnosticsline 1idle
Write your proof above and click Submit Proof (or open in live.lean-lang.org).