Formalizing Hall's Marriage Theorem in Lean
Hall's Marriage Theorem, a fundamental result in combinatorics about systems of distinct representatives, had not been formalized in Lean for inclusion in mathlib, and extending it to countably infinite index sets required additional machinery.
The authors formalize Hall's Marriage Theorem in the Lean theorem prover, providing three presentations of the theorem statement. They formalize a version of Konig's lemma in terms of inverse limits to extend the theorem from the finite case to countably infinite index sets. The formalization targets inclusion in mathlib.
The formalization covers both the finite and countably infinite cases of Hall's Marriage Theorem and is structured for inclusion in mathlib, Lean's community-driven mathematics library.
