Hall’s condition for a uniformly sized finite family
ProvedProofsInTheBook.Chapter33.hall_condition_of_regular_familyauxiliary-lemmabook-chapter-36combinatoricslatin-squareslean4proofs-from-the-book
Let be a finite index set, let be a set, and assume decidable equality on both. Let be finite subsets of , and let satisfy . Assume every has cardinality and every belongs to at most sets. Then
Preamble
import Init import Mathlib import Definitions.Def_P2MAssembly_Chapter33 set_option autoImplicit true open Finset open Classical open ProofsInTheBook.Chapter33
Formal statement
lemma ProofsInTheBook.Chapter33.hall_condition_of_regular_family {ι α : Type*} [Fintype ι] [DecidableEq ι]
[DecidableEq α] (A : ι → Finset α) (d : ℕ)
(hcard : ∀ i, (A i).card = d)
(hfiber : ∀ a, ((Finset.univ : Finset ι).filter fun i => a ∈ A i).card ≤ d)
(hd : 0 < d) :
∀ S : Finset ι, S.card ≤ (S.biUnion A).card := by sorrySource
Original formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter33.lean#L76. Topic: Aigner and Ziegler, Proofs from THE BOOK, 6th edition, Chapter 36, “Completing Latin squares”, pp. 253–258 (https://doi.org/10.1007/978-3-662-57265-8_36).