Turán’s extremal graph theorem with uniqueness
ProvedProofsInTheBook.Chapter37.chapter37book-chapter-41graph-theorylean4proofs-from-the-book
Let with , and let be the balanced complete -partite graph on . It is -free and has at least as many edges as every -free simple graph on that vertex set. Moreover, for every such finite-indexed simple graph with decidable adjacency,
This includes extremality and uniqueness up to graph isomorphism. The local proof uses Mathlib’s Turán theorem and its isomorphism API.
Preamble
import Mathlib open SimpleGraph
Formal statement
theorem ProofsInTheBook.Chapter37.chapter37 (n r : ℕ) (hr : 0 < r) :
(turanGraph n r).IsTuranMaximal r ∧
∀ (G : SimpleGraph (Fin n)) [DecidableRel G.Adj],
G.CliqueFree (r + 1) ∧
Finset.card G.edgeFinset = Finset.card (turanGraph n r).edgeFinset ↔
Nonempty (G ≃g turanGraph n r) := by sorrySource
Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 41, “Turán’s graph theorem”, pp. 285–289 (https://doi.org/10.1007/978-3-662-57265-8_41). Formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter37.lean#L83. The chapter reference identifies the topic; it does not claim the Lean development reproduces every argument of that chapter.