Cantor’s theorem: no surjection onto the power set
ProvedProofsInTheBook.Chapter17.chapter17_cantorbook-chapter-19lean4proofs-from-the-bookset-theory
For every set and every function , the function is not surjective:
There is no finiteness, nonemptiness, or countability assumption on . Here is the set of all subsets of .
Preamble
import Mathlib
Formal statement
theorem ProofsInTheBook.Chapter17.chapter17_cantor {α : Type*} (f : α → Set α) :
¬ Function.Surjective f := by sorrySource
Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 19, “Sets, functions, and the continuum hypothesis”, pp. 127–142 (https://doi.org/10.1007/978-3-662-57265-8_19). Formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter17.lean#L29. The book citation identifies the topic; the selected declaration does not claim to reproduce the entire chapter.