Parity agreement for odd-degree vertices in a finite bipartite graph
ProvedProofsInTheBook.Chapter39.bipartite_odd_degree_card_eq_mod_twoauxiliary-lemmabook-chapter-43combinatoricsgraph-theorylean4proofs-from-the-book
Let be finite sets and let be a decidable incidence relation. Define and . Then
Preamble
import Init import Mathlib import Mathlib.Data.Fin.Tuple.Sort import Definitions.Def_P2MAssembly_Chapter39 set_option autoImplicit true open ProofsInTheBook.Chapter39 open SignedPermutation
Formal statement
theorem ProofsInTheBook.Chapter39.bipartite_odd_degree_card_eq_mod_two
{R S : Type*} [Fintype R] [Fintype S]
(edge : R → S → Prop) [DecidableRel edge] :
(Fintype.card {r : R // Odd (Fintype.card {s : S // edge r s})} : ZMod 2) =
(Fintype.card {s : S // Odd (Fintype.card {r : R // edge r s})} : ZMod 2) := by sorrySource
Original formalization: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter39Tucker.lean#L2292. Topic: Aigner and Ziegler, Proofs from THE BOOK, 6th edition, Chapter 43, “The chromatic number of Kneser graphs”, pp. 301–305 (https://doi.org/10.1007/978-3-662-57265-8_43).