Sperner’s theorem
ProvedProofsInTheBook.Chapter28.chapter28_spernerbook-chapter-30combinatoricslean4proofs-from-the-book
Let be a finite type with decidable equality, let , and let be a finite family of subsets of . Assume that no distinct members of are comparable by inclusion. Then
This is the upper-bound statement of Sperner’s theorem, obtained using the LYM inequality.
Preamble
import Mathlib import Definitions.Def_ProofsInTheBook_Chapter28 open ProofsInTheBook.Chapter28 open Finset
Formal statement
theorem ProofsInTheBook.Chapter28.chapter28_sperner {α : Type*} [Fintype α] [DecidableEq α]
(𝒜 : Finset (Finset α))
(h𝒜 : IsAntichain (· ⊆ ·) (𝒜 : Set (Finset α))) :
𝒜.card ≤ (Fintype.card α).choose (Fintype.card α / 2) := by sorrySource
Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 30, “Three famous theorems on finite sets”, pp. 213–217 (https://doi.org/10.1007/978-3-662-57265-8_30). Formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter28.lean#L50. The chapter reference identifies the topic; it does not claim the Lean development reproduces every argument of that chapter.