extendible_balanced_cut_odd_bound_of_even_cross_matching
The opposite side has at most r odd components if the specified crossing matching meets every odd component in an even number of vertices.
Statement
theorem extendible_balanced_cut_odd_bound_of_even_cross_matching
(k r : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
(hext : is_k_extendable G k)
(C : Finset (Fin (4*k))) (hcard : C.card = 2*k)
(M : G.Subgraph) (hM : M.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k))))
(hm : M.edgeSet.ncard+r = k)
(hcross : ∀ U : Finset (Fin (4*k)), U ⊆ C → U.card = 2*r →
∃ f g : Fin r → Fin (4*k), Function.Injective f ∧ Function.Injective g ∧
(∀ i, f i ∈ U ∧ g i ∉ C ∧ G.Adj (f i) (g i)) ∧
∃ B : Finset (G.induce {v | v ∉ C}).ConnectedComponent, B.card = 0 ∧
∀ i ∈ (G.induce {v | v ∉ C}).oddComponents.toFinset, i ∉ B →
Even ((in1206_component_vertices G {v | v ∉ C} i) ∩
((Finset.univ : Finset (Fin r)).image g)).card) :
(G.induce {v | v ∉ C}).oddComponents.ncard ≤ r- Source
- Balanced-cut parity reduction for OP-1957; https://arxiv.org/abs/2611.22690.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- odd_component_bound_after_even_deletions_generalThe odd-component count is bounded by the number of uncovered cut vertices plus the number of exceptional components.
- indexed_disjoint_cross_edges_form_matchingInjectively indexed edges with disjoint endpoint ranges form a matching of the expected size.
- extendible_graph_matchable_deletion_inherits_extendibilityIf a graph is (r+j)-extendible and a 2j-vertex set U induces a perfect matching, then its induced complement is r-extendible, provided the…
- is_k_extendableFor a finite vertex type V (with [Fintype V]), a simple graph G : SimpleGraph V and k : ℕ, is_k_extendable G k is the Prop that is the…
- extendible_matchable_two_k_vertices_complement_matchableIn a finite k-extendible graph, the complement of any matchable set of exactly 2k vertices is matchable.
- induced_component_ambient_vertex_propertiesComponents of an induced graph map injectively to disjoint, anticomplete ambient vertex sets with preserved cardinalities.
- Used by 1
- extendible_balanced_cut_even_component_odd_boundUnder the displayed extendibility, separator, degree, and balanced-side matching conditions, if the opposite side has an even component…
The proof, explained
The theorem bounds the number of odd components of the induced subgraph G[V \ C] by r. Starting with the given matching M of size k - r inside C, we apply the hypothesis hcross to the 2r vertices of C left uncovered by M to obtain an independent crossing matching N of size r. The combined matching M ⊔ N has size k and leaves exactly r vertices of C uncovered, while meeting every odd component of G \ C in an even number of vertices. Because G is k-extendable, M ⊔ N extends to a perfect matching, allowing the general parity-based bound odd_component_bound_after_even_deletions_general to conclude that G[V \ C] has at most r odd components.
The vertex set D = V(M) satisfies D ⊆ C and |D| + 2r = 2k.
We define D as the finite set of vertices of M. Since M's vertices are contained in C (by hypothesis hMC), D ⊆ C. Because M is a matching, |V(M)| = 2 * |E(M)| (in1076_matching_twice_card). Substituting |E(M)| + r = k (hm) and converting between set and finset cardinalities (Set.ncard_eq_toFinset_card') gives |D| + 2r = 2k by linear arithmetic (omega).
uses
in1076_matching_twice_card,Set.ncard_eq_toFinset_card'set_option maxHeartbeats 4000000 in classical let D : Finset (Fin (4*k)) := M.verts.toFinset let U : Finset (Fin (4*k)) := C \ D have hDC : D ⊆ C := by intro v hv exact hMC (by simpa [D] using hv) have hDcard : D.card + 2*r = 2*k := by have hh := in1076_matching_twice_card hM have hD : D.card = M.verts.ncard := by dsimp [D] exact (Set.ncard_eq_toFinset_card' M.verts).symm rw [hD] at * omega
The set U = C \ D of vertices in C uncovered by M satisfies U ⊆ C and |U| = 2r.
By definition of set difference, U ⊆ C (Finset.sdiff_subset). Since D ⊆ C, |C \ D| + |D| = |C| = 2k (Finset.card_sdiff_add_card_eq_card). Combining this with |D| + 2r = 2k yields |U| = 2r via linear arithmetic (omega).
uses
Finset.card_sdiff_add_card_eq_card,Finset.sdiff_subsethave hUcard : U.card = 2*r := by have hh := Finset.card_sdiff_add_card_eq_card hDC dsimp [U] omega have hUC : U ⊆ C := Finset.sdiff_subset
Applying the crossing hypothesis to U yields an r-edge matching N crossing between U and V \ C.
We instantiate the hypothesis hcross with U, since U ⊆ C and |U| = 2r. This gives injective functions f, g : Fin r → V(G) such that f(i) ∈ U, g(i) ∉ C, and f(i) ~ g(i) for all i, along with an empty exceptional set B of components (|B| = 0) satisfying an even-parity intersection condition. Because f(i) ∈ C and g(j) ∉ C, their values never coincide (f(i) ≠ g(j)). By indexed_disjoint_cross_edges_form_matching, these r edges form a matching N with |E(N)| = r and V(N) = range(f) ∪ range(g).
uses
indexed_disjoint_cross_edges_form_matchingobtain ⟨f,g,hf,hg,hfg,B,hB,hpar⟩ := hcross U hUC hUcard have hfgdis : ∀ i j, f i ≠ g j := by intro i j he have hc := hUC (hfg i).1 exact (hfg j).2.1 (he ▸ hc) obtain ⟨N,hN,hNcard,hNverts⟩ := indexed_disjoint_cross_edges_form_matching G r f g hf hg hfgdis (fun i => (hfg i).2.2)
The matchings M and N have disjoint vertex sets, so their union M ⊔ N is a matching of size k.
Any vertex of N is in range(f) or range(g). If it is in range(f), it lies in U = C \ D and therefore not in D = V(M); if it is in range(g), it lies outside C, while V(M) ⊆ C. Thus V(M) and V(N) are disjoint (Set.disjoint_left.mpr, Finset.mem_sdiff.mp). By extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard, M ⊔ N is a matching with |E(M ⊔ N)| = |E(M)| + |E(N)| = (k - r) + r = k edges.
uses
Set.disjoint_left.mpr,Finset.mem_sdiff.mp,extendible_graph_matchable_deletion_inherits_extendibility_sup_ncardhave hMN : Disjoint M.verts N.verts := by apply Set.disjoint_left.mpr intro v hvM hvN rw [hNverts] at hvN rcases hvN with ⟨i,hi⟩ | ⟨i,hi⟩ · have hn : f i ∉ D := (Finset.mem_sdiff.mp (hfg i).1).2 apply hn simpa [D,hi] using hvM · have hc := hMC hvM exact (hfg i).2.1 (hi ▸ hc) have hT := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard M N hM hN hMN have hTk : (M ⊔ N).edgeSet.ncard = k := by rw [hT.2,hNcard]; omega
The set A = im(f) has cardinality r, satisfies A ⊆ C, and is disjoint from D.
Since f is injective on Fin r, its image A = im(f) has |A| = r (Finset.card_image_of_injective). Because each f(i) ∈ U ⊆ C, we have A ⊆ C (Finset.mem_image.mp). Since each f(i) ∈ U = C \ D, no element of A belongs to D, proving D and A are disjoint (Finset.disjoint_left.mpr, Finset.mem_sdiff.mp).
uses
Finset.card_image_of_injective,Finset.mem_image.mp,Finset.disjoint_left.mpr,Finset.mem_sdiff.mplet A : Finset (Fin (4*k)) := Finset.univ.image f have hAcard : A.card = r := by rw [Finset.card_image_of_injective _ hf] simp have hAC : A ⊆ C := by intro v hv obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hv exact hUC (hfg i).1 have hDA : Disjoint D A := by apply Finset.disjoint_left.mpr intro v hvD hvA obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hvA exact (Finset.mem_sdiff.mp (hfg i).1).2 hvD
The vertices of C uncovered by M ⊔ N are C \ (D ∪ A), and their count is r.
A vertex v ∈ C belongs to V(M ⊔ N) = V(M) ∪ V(N) if and only if v ∈ D or v ∈ (range(f) ∪ range(g)) ∩ C. Since range(g) is disjoint from C, this intersection is precisely range(f) = A, so the uncovered vertices in C are C \ (D ∪ A) (Finset.mem_filter, Finset.mem_sdiff, Finset.mem_union, Finset.mem_image.mp). Since D and A are disjoint subsets of C (Finset.union_subset), |D ∪ A| = |D| + |A| = (2k - 2r) + r = 2k - r (Finset.card_union_of_disjoint). Subtracting from |C| = 2k (Finset.card_sdiff_add_card_eq_card) shows that |C \ (D ∪ A)| = r, and converting to set cardinality gives |C \ V(M ⊔ N)| = r (Set.ncard_coe_finset).
uses
Finset.mem_filter,Finset.mem_sdiff,Finset.mem_union,Finset.mem_image.mp,Finset.union_subset,Finset.card_sdiff_add_card_eq_card,Finset.card_union_of_disjoint,Set.ncard_coe_finsethave hfilter : C.filter (fun v => v ∉ (M ⊔ N).verts) = C \ (D ∪ A) := by ext v simp only [Finset.mem_filter,Finset.mem_sdiff,Finset.mem_union] constructor · rintro ⟨hvC,hvT⟩ refine ⟨hvC,?_⟩ rintro (hvD | hvA) · apply hvT change v ∈ M.verts ∪ N.verts exact Or.inl (by simpa [D] using hvD) · obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hvA apply hvT change f i ∈ M.verts ∪ N.verts right rw [hNverts] exact Or.inl ⟨i,rfl⟩ · rintro ⟨hvC,hvnot⟩ refine ⟨hvC,?_⟩ intro hvT change v ∈ M.verts ∪ N.verts at hvT rcases hvT with hvM | hvN · exact hvnot (Or.inl (by simpa [D] using hvM)) · rw [hNverts] at hvN rcases hvN with ⟨i,hi⟩ | ⟨i,hi⟩ · apply hvnot right exact Finset.mem_image.mpr ⟨i,Finset.mem_univ _,hi⟩ · exact (hfg i).2.1 (hi ▸ hvC) have hremain : (C.filter (fun v => v ∉ (M ⊔ N).verts)).card = r := by rw [hfilter] have hsub : D ∪ A ⊆ C := Finset.union_subset hDC hAC have hh := Finset.card_sdiff_add_card_eq_card hsub rw [Finset.card_union_of_disjoint hDA,hAcard] at hh omega have hremain' : ((C : Set (Fin (4*k))) \ (M ⊔ N).verts).ncard = r := by have heq : (C : Set (Fin (4*k))) \ (M ⊔ N).verts = (C.filter (fun v => v ∉ (M ⊔ N).verts) : Finset (Fin (4*k))) := by ext v simp rw [heq,Set.ncard_coe_finset] exact hremain
Every odd component of G[V \ C] meets V(M ⊔ N) in an even number of vertices.
The vertices of any connected component of G[V \ C] lie entirely outside C (induced_component_ambient_vertex_properties). Since V(M) ⊆ C and im(f) ⊆ C, the only vertices of M ⊔ N that can lie outside C are those in im(g) (Finset.mem_inter, Set.mem_toFinset, Finset.mem_image). Therefore, the intersection of any component's vertices with V(M ⊔ N) coincides with its intersection with im(g). By the parity condition hpar from hcross, this intersection has even cardinality.
uses
Finset.mem_inter,Set.mem_toFinset,Finset.mem_image,induced_component_ambient_vertex_propertieshave hnewpar : ∀ i ∈ (G.induce {v | v ∉ C}).oddComponents.toFinset, i ∉ B → Even ((in1206_component_vertices G {v | v ∉ C} i) ∩ (M ⊔ N).verts.toFinset).card := by intro i hi hiB have heq : (in1206_component_vertices G {v | v ∉ C} i) ∩ (M ⊔ N).verts.toFinset = (in1206_component_vertices G {v | v ∉ C} i) ∩ (Finset.univ.image g) := by ext v simp only [Finset.mem_inter, Set.mem_toFinset, Finset.mem_image, Finset.mem_univ, true_and] constructor · rintro ⟨hvF,hvT⟩ refine ⟨hvF,?_⟩ have hvR := (induced_component_ambient_vertex_properties G {v | v ∉ C} i i).1 hvF change v ∈ M.verts ∪ N.verts at hvT rcases hvT with hvM | hvN · exact False.elim (hvR (hMC hvM)) · rw [hNverts] at hvN rcases hvN with ⟨j,hj⟩ | ⟨j,hj⟩ · exact False.elim (hvR (hj ▸ hUC (hfg j).1)) · exact ⟨j,hj⟩ · rintro ⟨hvF,⟨j,hj⟩⟩ refine ⟨hvF,?_⟩ change v ∈ M.verts ∪ N.verts right rw [hNverts] exact Or.inr ⟨j,hj⟩ rw [heq] exact hpar i hi hiB
The graph G[V \ C] has at most r odd components.
Since G is k-extendable and M ⊔ N is a matching of size k, it extends to a perfect matching P of G. By odd_component_bound_after_even_deletions_general, the number of odd components of G[V \ C] is bounded by |C \ V(M ⊔ N)| + |B|. Since |C \ V(M ⊔ N)| = r and |B| = 0, the number of odd components is at most r + 0 = r (omega).
uses
odd_component_bound_after_even_deletions_generalobtain ⟨P,hP,hTP⟩ := hext.2.2 (M ⊔ N) hT.1 hTk have hb := odd_component_bound_after_even_deletions_general k r G C P (M ⊔ N) hP hT.1 hTP B hnewpar hremain' omega
in1076_matching_twice_card- In any matching M, the number of vertices is twice the number of edges: 2 * |E(M)| = |V(M)|.
Set.ncard_eq_toFinset_card'- For a set s whose coercion to a subtype is finite, its set cardinality s.ncard equals the cardinality of its finite set representation s.toFinset.card.
Finset.card_sdiff_add_card_eq_card- If s ⊆ t, then |t \ s| + |s| = |t|.
Finset.sdiff_subset- For any finite sets s and t, s \ t ⊆ s.
indexed_disjoint_cross_edges_form_matching- Given two injective maps f and g from Fin r into V with disjoint images and adjacent pairs f(i) ~ g(i), the edges {f(i), g(i)} form a matching of size r with vertices range(f) ∪ range(g).
Set.disjoint_left.mpr- To show that two sets are disjoint, it suffices to show that every element of the first set is not in the second.
Finset.mem_sdiff.mp- If x ∈ s \ t, then x ∈ s and x ∉ t.
extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard- If M and M' are matchings with disjoint vertex sets, then M ⊔ M' is a matching with |E(M ⊔ M')| = |E(M)| + |E(M')|.
Finset.card_image_of_injective- If f is injective on a finite set s, then |f(s)| = |s|.
Finset.mem_image.mp- If b ∈ f(s), then there exists a ∈ s such that f(a) = b.
Finset.disjoint_left.mpr- To show that two finite sets are disjoint, it suffices to show that every element of the first is not in the second.
Finset.mem_filter- An element x is in s.filter(p) if and only if x ∈ s and p(x) holds.
Finset.mem_sdiff- An element x is in s \ t if and only if x ∈ s and x ∉ t.
Finset.mem_union- An element x is in s ∪ t if and only if x ∈ s or x ∈ t.
Finset.union_subset- If s ⊆ u and t ⊆ u, then s ∪ t ⊆ u.
Finset.card_union_of_disjoint- If s and t are disjoint finite sets, then |s ∪ t| = |s| + |t|.
Set.ncard_coe_finset- The set cardinality of a coerced finset equals the cardinality of the finset.
Finset.mem_inter- An element x is in s₁ ∩ s₂ if and only if x ∈ s₁ and x ∈ s₂.
Set.mem_toFinset- An element belongs to s.toFinset if and only if it belongs to s.
Finset.mem_image- An element b is in the image f(s) if and only if there exists a ∈ s such that f(a) = b.
induced_component_ambient_vertex_properties- For an induced subgraph G[R] and a component c, the vertices of c form a subset of R, their count equals the component size, distinct components are vertex-disjoint, and no edge connects c to vertices in R \ c.
odd_component_bound_after_even_deletions_general- If a matching T extends to a perfect matching P in G and meets every odd component of G \ C (outside an exceptional set B) in an even number of vertices, then G \ C has at most |C \ V(T)| + |B| odd components.
- The hypothesis hcross provides an exceptional set of components B of cardinality 0, which means that the parity condition holds for all odd components of G \ C without exception.
- The linear arithmetic reasoning at several steps (relating matching sizes, vertex set cardinalities, and component bounds) is dispatched by the omega tactic.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem extendible_balanced_cut_odd_bound_of_even_cross_matching (k r : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj] (hext : is_k_extendable G k) (C : Finset (Fin (4*k))) (hcard : C.card = 2*k) (M : G.Subgraph) (hM : M.IsMatching) (hMC : M.verts ⊆ (C : Set (Fin (4*k)))) (hm : M.edgeSet.ncard+r = k) (hcross : ∀ U : Finset (Fin (4*k)), U ⊆ C → U.card = 2*r → ∃ f g : Fin r → Fin (4*k), Function.Injective f ∧ Function.Injective g ∧ (∀ i, f i ∈ U ∧ g i ∉ C ∧ G.Adj (f i) (g i)) ∧ ∃ B : Finset (G.induce {v | v ∉ C}).ConnectedComponent, B.card = 0 ∧ ∀ i ∈ (G.induce {v | v ∉ C}).oddComponents.toFinset, i ∉ B → Even ((in1206_component_vertices G {v | v ∉ C} i) ∩ ((Finset.univ : Finset (Fin r)).image g)).card) : (G.induce {v | v ∉ C}).oddComponents.ncard ≤ r := by set_option maxHeartbeats 4000000 in classical let D : Finset (Fin (4*k)) := M.verts.toFinset let U : Finset (Fin (4*k)) := C \ D have hDC : D ⊆ C := by intro v hv exact hMC (by simpa [D] using hv) have hDcard : D.card + 2*r = 2*k := by have hh := in1076_matching_twice_card hM have hD : D.card = M.verts.ncard := by dsimp [D] exact (Set.ncard_eq_toFinset_card' M.verts).symm rw [hD] at * omega have hUcard : U.card = 2*r := by have hh := Finset.card_sdiff_add_card_eq_card hDC dsimp [U] omega have hUC : U ⊆ C := Finset.sdiff_subset obtain ⟨f,g,hf,hg,hfg,B,hB,hpar⟩ := hcross U hUC hUcard have hfgdis : ∀ i j, f i ≠ g j := by intro i j he have hc := hUC (hfg i).1 exact (hfg j).2.1 (he ▸ hc) obtain ⟨N,hN,hNcard,hNverts⟩ := indexed_disjoint_cross_edges_form_matching G r f g hf hg hfgdis (fun i => (hfg i).2.2) have hMN : Disjoint M.verts N.verts := by apply Set.disjoint_left.mpr intro v hvM hvN rw [hNverts] at hvN rcases hvN with ⟨i,hi⟩ | ⟨i,hi⟩ · have hn : f i ∉ D := (Finset.mem_sdiff.mp (hfg i).1).2 apply hn simpa [D,hi] using hvM · have hc := hMC hvM exact (hfg i).2.1 (hi ▸ hc) have hT := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard M N hM hN hMN have hTk : (M ⊔ N).edgeSet.ncard = k := by rw [hT.2,hNcard]; omega let A : Finset (Fin (4*k)) := Finset.univ.image f have hAcard : A.card = r := by rw [Finset.card_image_of_injective _ hf] simp have hAC : A ⊆ C := by intro v hv obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hv exact hUC (hfg i).1 have hDA : Disjoint D A := by apply Finset.disjoint_left.mpr intro v hvD hvA obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hvA exact (Finset.mem_sdiff.mp (hfg i).1).2 hvD have hfilter : C.filter (fun v => v ∉ (M ⊔ N).verts) = C \ (D ∪ A) := by ext v simp only [Finset.mem_filter,Finset.mem_sdiff,Finset.mem_union] constructor · rintro ⟨hvC,hvT⟩ refine ⟨hvC,?_⟩ rintro (hvD | hvA) · apply hvT change v ∈ M.verts ∪ N.verts exact Or.inl (by simpa [D] using hvD) · obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hvA apply hvT change f i ∈ M.verts ∪ N.verts right rw [hNverts] exact Or.inl ⟨i,rfl⟩ · rintro ⟨hvC,hvnot⟩ refine ⟨hvC,?_⟩ intro hvT change v ∈ M.verts ∪ N.verts at hvT rcases hvT with hvM | hvN · exact hvnot (Or.inl (by simpa [D] using hvM)) · rw [hNverts] at hvN rcases hvN with ⟨i,hi⟩ | ⟨i,hi⟩ · apply hvnot right exact Finset.mem_image.mpr ⟨i,Finset.mem_univ _,hi⟩ · exact (hfg i).2.1 (hi ▸ hvC) have hremain : (C.filter (fun v => v ∉ (M ⊔ N).verts)).card = r := by rw [hfilter] have hsub : D ∪ A ⊆ C := Finset.union_subset hDC hAC have hh := Finset.card_sdiff_add_card_eq_card hsub rw [Finset.card_union_of_disjoint hDA,hAcard] at hh omega have hremain' : ((C : Set (Fin (4*k))) \ (M ⊔ N).verts).ncard = r := by have heq : (C : Set (Fin (4*k))) \ (M ⊔ N).verts = (C.filter (fun v => v ∉ (M ⊔ N).verts) : Finset (Fin (4*k))) := by ext v simp rw [heq,Set.ncard_coe_finset] exact hremain have hnewpar : ∀ i ∈ (G.induce {v | v ∉ C}).oddComponents.toFinset, i ∉ B → Even ((in1206_component_vertices G {v | v ∉ C} i) ∩ (M ⊔ N).verts.toFinset).card := by intro i hi hiB have heq : (in1206_component_vertices G {v | v ∉ C} i) ∩ (M ⊔ N).verts.toFinset = (in1206_component_vertices G {v | v ∉ C} i) ∩ (Finset.univ.image g) := by ext v simp only [Finset.mem_inter, Set.mem_toFinset, Finset.mem_image, Finset.mem_univ, true_and] constructor · rintro ⟨hvF,hvT⟩ refine ⟨hvF,?_⟩ have hvR := (induced_component_ambient_vertex_properties G {v | v ∉ C} i i).1 hvF change v ∈ M.verts ∪ N.verts at hvT rcases hvT with hvM | hvN · exact False.elim (hvR (hMC hvM)) · rw [hNverts] at hvN rcases hvN with ⟨j,hj⟩ | ⟨j,hj⟩ · exact False.elim (hvR (hj ▸ hUC (hfg j).1)) · exact ⟨j,hj⟩ · rintro ⟨hvF,⟨j,hj⟩⟩ refine ⟨hvF,?_⟩ change v ∈ M.verts ∪ N.verts right rw [hNverts] exact Or.inr ⟨j,hj⟩ rw [heq] exact hpar i hi hiB obtain ⟨P,hP,hTP⟩ := hext.2.2 (M ⊔ N) hT.1 hTk have hb := odd_component_bound_after_even_deletions_general k r G C P (M ⊔ N) hP hT.1 hTP B hnewpar hremain' omega