Proposition 6.4 — Hall's theorem with a bounded deficit
ProvedYogeshwaranDM.deficient_hall_matchingProposition 6.4 — Hall's theorem with a bounded deficit. Let be a finite simple bipartite graph with vertex partition , and let satisfy . Suppose
Then contains a matching for which
Formalization note. Quantification over finite subsets of the finite subtype covers every left subset. Natural subtraction is truncated at zero, which is equivalent here to the integer lower bound because edge and neighborhood cardinalities are nonnegative. The conclusion counts actual unordered edges of a native matching subgraph.
import Mathlib.Combinatorics.SimpleGraph.Hall import Mathlib.Data.Finset.Sum import Mathlib.Tactic set_option autoImplicit false
namespace YogeshwaranDM
theorem deficient_hall_matching {V : Type*} [Fintype V] [DecidableEq V]
(G : SimpleGraph V) [G.LocallyFinite] (L R : Set V)
(hG : G.IsBipartiteWith L R) (hcover : L ∪ R = Set.univ)
(d : ℕ) (hd : 1 ≤ d)
(h : ∀ S : Finset L, S.card - d ≤ (S.biUnion (fun x => G.neighborFinset x)).card) :
∃ M : G.Subgraph, M.IsMatching ∧ L.ncard - d ≤ M.edgeSet.ncard := by sorry
end YogeshwaranDM
Read-back
What the Lean code literally says, in plain math · Codex (exact model identifier unavailable in auditor runtime)
For every finite type equipped with a finite enumeration and decidable equality, every simple undirected loopless graph on equipped with finite enumerations of all its neighbor sets, every pair of sets , and every natural number , assume that and are disjoint, every edge of has one endpoint in each part, , and . Assume also that, for every finite set of elements of , , where is the finite union of the sets of neighbors in of the vertices belonging to . Then there exists a subgraph of such that every vertex in the vertex set of has exactly one neighbor in , and . Here a subgraph chooses a vertex set and some of the edges of , with both endpoints of every chosen edge in that vertex set; is its set of unordered edges, so each edge is counted once, rather than once per orientation or endpoint. All finite sets contain distinct elements, and a vertex appearing in several of the neighbor sets is counted only once in their union. Both subtractions in the formal assertion are subtraction in the natural numbers, truncated at zero; the expressions with denote this convention. The cardinalities of and are natural-number set cardinalities, while the other cardinalities count finite sets; all are ordinary finite counts because is finite, so the general zero value of natural-number cardinality on infinite sets is not used. The conclusion is an existence assertion and imposes no further requirement of uniqueness, maximality, or that contain every vertex of or . Empty , empty parts, and the empty choice of are included. The empty choice of gives . If , every assumed cardinality inequality is automatic and the empty subgraph satisfies the conclusion. In particular, this applies when is empty. The value and infinite vertex types are outside the hypotheses.
Confirmed by the mission captain (proposal self-audit).