Erdős–Ko–Rado theorem
ProvedProofsInTheBook.Chapter28.chapter28_erdos_ko_radobook-chapter-30combinatoricslean4proofs-from-the-book
Let satisfy , and let be a finite family of -element subsets of . Assume every pair of members has nonempty intersection, including a member paired with itself. In particular, the empty set cannot be a member. Then
Subtractions are natural subtractions. No extra hypothesis is inserted into the Lean statement.
This is a direct use of Mathlib’s Erdős–Ko–Rado inequality, not a separately formalized proof from the book.
Preamble
import Mathlib import Definitions.Def_ProofsInTheBook_Chapter28 open ProofsInTheBook.Chapter28 open Finset
Formal statement
theorem ProofsInTheBook.Chapter28.chapter28_erdos_ko_rado {n r : ℕ} (𝒜 : Finset (Finset (Fin n)))
(h𝒜 : (𝒜 : Set (Finset (Fin n))).Intersecting)
(hr : (𝒜 : Set (Finset (Fin n))).Sized r) (hn : 2 * r ≤ n) :
𝒜.card ≤ (n - 1).choose (r - 1) := 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#L37. The chapter reference identifies the topic; it does not claim the Lean development reproduces every argument of that chapter.