factorcritical_anticomplete_odd_components_bound
In a finite 1-factor-critical graph, if U is anticomplete to L minus U and L contains a vertex outside U, then the number of odd components induced by U is at most the number of vertices outside L.
Statement
theorem factorcritical_anticomplete_odd_components_bound {V : Type*} [Fintype V] [DecidableEq V] (H : SimpleGraph V) [DecidableRel H.Adj] (hcrit : is_k_factor_critical H 1) (U L : Finset V) (hUL : U ⊆ L) (z : V) (hzL : z ∈ L) (hzU : z ∉ U) (hanti : ∀ u ∈ U, ∀ v ∈ L, v ∉ U → ¬ H.Adj u v) : (H.induce {v | v ∈ U}).oddComponents.ncard ≤ ((Finset.univ : Finset V) \ L).card
- Source
- OP-1957; factor-critical component obstruction in the all-k saturated-block boundary route.
- Verified
- 23 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- is_k_factor_criticalA simple graph G on a finite vertex type V is k-factor-critical if for every subset S of V with cardinality k, the induced subgraph on Sᶜ…
- Used by 3
- factorcritical_anticomplete_odd_groups_boundIn a finite 1-factor-critical graph, pairwise disjoint odd vertex groups that are each anticomplete to the rest of a set L cannot…
- op1957_factorcritical_block_ambient_odd_components_boundIn a finite factor-critical induced block, odd components of an ambient subset anticomplete to the rest of a containing set are bounded by…
- boundary_saturated_block_factorcritical_opposite_cross_removableUnder the displayed four-block, saturation, separator, and degree hypotheses, if A has at least three vertices, B is factor-critical and…
The proof, explained
Because H is 1-factor-critical, deleting the vertex z ∈ L \ U leaves a subgraph H - {z} that admits a perfect matching M. For each odd component c of the induced subgraph H[U], M must match at least one vertex of c to a vertex outside L; otherwise, the anticompleteness of U to L \ U would force M to match c entirely within itself, making |c| even and contradicting that c is odd. Selecting such an outside-of-L partner for each odd component defines an injection from the odd components of H[U] into V \ L, since no vertex in a matching can have two distinct partners. This injection immediately implies that the number of odd components of H[U] is at most |V \ L|.
The subgraph H - {z} has a perfect matching M.
Since H is 1-factor-critical and {z} has cardinality 1, removing z leaves a subgraph H - {z} that possesses a perfect matching M. The vertex set of this subgraph consists of all vertices x ≠ z.
uses
Finset.card_singletonclassical obtain ⟨M, hM⟩ := hcrit {z} (Finset.card_singleton z) have hmemW : ∀ x : V, x ∈ ((({z} : Finset V) : Set V))ᶜ ↔ x ≠ z := by intro x; simp
The vertex set U embeds injectively via ι into the vertices of H - {z}.
Since z ∉ U, every vertex of U belongs to V \ {z}. The canonical inclusion ι : U ↪ V \ {z} is injective because subtype elements sharing the same underlying vertex are identical.
uses
Subtype.extset GU := H.induce {v | v ∈ U} with hGU let ι : ↥{v | v ∈ U} → ↥((({z} : Finset V) : Set V))ᶜ := fun a => ⟨a.1, (hmemW a.1).mpr (fun h => hzU (h ▸ a.2))⟩ have hι : Function.Injective ι := by intro a b h have h1 : (ι a).1 = (ι b).1 := by rw [h] exact Subtype.ext h1
If an odd component c of H[U] has no vertex matched outside L, then M restricts to a matching on c.
Let a' ∈ c. Its unique partner b under the perfect matching M cannot lie outside L (by assumption), so b ∈ L. Since a' ∈ U and U is anticomplete to L \ U in H, b cannot be in L \ U, which forces b ∈ U. Adjacent vertices in H[U] belong to the same component, so b ∈ c. Thus M matches every vertex in c to another vertex in c.
uses
SimpleGraph.ConnectedComponent.mem_supp_iff,SimpleGraph.ConnectedComponent.connectedComponentMk_eq_of_adj,Subtype.exthave hkey : ∀ c ∈ GU.oddComponents, ∃ b : ↥((({z} : Finset V) : Set V))ᶜ, b.1 ∉ L ∧ ∃ a ∈ c.supp, M.Adj (ι a) b := by intro c hc by_contra hno push Not at hno let C : Set ↥((({z} : Finset V) : Set V))ᶜ := ι '' c.supp have hmatch : (M.induce C).IsMatching := by intro x hx obtain ⟨a', ha', rfl⟩ := hx obtain ⟨b, hab, huniq⟩ := hM.1 (hM.2 (ι a')) have hHab : H.Adj a'.1 b.1 := by have := M.adj_sub hab simpa using this have hbL : b.1 ∈ L := by by_contra hbL exact hno b hbL a' ha' hab have hbU : b.1 ∈ U := by by_contra hbU exact hanti a'.1 a'.2 b.1 hbL hbU hHab let b' : ↥{v | v ∈ U} := ⟨b.1, hbU⟩ have hGUadj : GU.Adj a' b' := by simpa [GU] using hHab have hbc : b' ∈ c.supp := by rw [SimpleGraph.ConnectedComponent.mem_supp_iff] at ha' ⊢ rw [← ha'] exact (SimpleGraph.ConnectedComponent.connectedComponentMk_eq_of_adj hGUadj).symm have hbι : ι b' = b := Subtype.ext rfl refine ⟨b, ⟨⟨a', ha', rfl⟩, ⟨b', hbc, hbι⟩, hab⟩, fun y hy => huniq y hy.2.2⟩
Every odd component of H[U] contains a vertex matched under M to a vertex outside L.
Because M restricts to a matching on the vertices of c, the number of vertices in c must be even. But c was assumed to be an odd component, which is a contradiction. Hence, at least one vertex of c must be matched to a vertex outside L.
uses
Fintype.ofFinite,Set.ncard_eq_toFinset_card',Set.ncard_image_of_injective,Nat.not_even_iff_odd.mprhave hfin : Fintype (M.induce C).verts := Fintype.ofFinite _ have he := hmatch.even_card rw [← Set.ncard_eq_toFinset_card'] at he have hC : (M.induce C).verts.ncard = c.supp.ncard := by show C.ncard = _ exact Set.ncard_image_of_injective _ hι rw [hC] at he exact (Nat.not_even_iff_odd.mpr hc) he
There is a function f mapping each odd component of H[U] to a vertex in V \ L.
Using the previous result, we define f on each odd component c by picking the vertex b ∉ L matched to some vertex of c (and setting f(c) = z for non-odd components). By definition, f maps odd components into V \ L.
uses
dif_pos,Finset.coe_sdiff,Finset.coe_univ,Set.mem_sdiff,Set.mem_univ,true_and,Finset.mem_coelet f : GU.ConnectedComponent → V := fun c => if h : c ∈ GU.oddComponents then ((hkey c h).choose).1 else z have hf : ∀ c ∈ GU.oddComponents, f c ∈ (((Finset.univ : Finset V) \ L : Finset V) : Set V) := by intro c hc simp only [f, dif_pos hc, Finset.coe_sdiff, Finset.coe_univ, Set.mem_sdiff, Set.mem_univ, true_and, Finset.mem_coe] exact (hkey c hc).choose_spec.1
The function f is injective on the odd components of H[U].
If f(c₁) = f(c₂) = b, then b is matched under M to some a₁ ∈ c₁ and some a₂ ∈ c₂. Since M is a matching, no vertex has two distinct incident edges, so a₁ = a₂. As c₁ and c₂ share the vertex a₁, they must be the same connected component.
uses
Subtype.ext,dif_pos,SimpleGraph.ConnectedComponent.mem_supp_iffhave hinj : Set.InjOn f GU.oddComponents := by intro c1 hc1 c2 hc2 heq obtain ⟨-, a1, ha1, hm1⟩ := (hkey c1 hc1).choose_spec obtain ⟨-, a2, ha2, hm2⟩ := (hkey c2 hc2).choose_spec have e : (hkey c1 hc1).choose = (hkey c2 hc2).choose := by apply Subtype.ext have := heq simp only [f, dif_pos hc1, dif_pos hc2] at this exact this rw [e] at hm1 have hw : (hkey c2 hc2).choose ∈ M.verts := M.edge_vert hm1.symm have h12 : ι a1 = ι a2 := (hM.1 hw).unique hm1.symm hm2.symm have : a1 = a2 := hι h12 rw [SimpleGraph.ConnectedComponent.mem_supp_iff] at ha1 ha2 rw [← ha1, ← ha2, this]
The number of odd components of H[U] is at most |V \ L|.
Because f injectively maps the odd components of H[U] into the finite set V \ L, the cardinality of the set of odd components is bounded by |V \ L|.
uses
Set.ncard_le_ncard_of_injOn,Set.ncard_coe_finsethave := Set.ncard_le_ncard_of_injOn f hf hinj rwa [Set.ncard_coe_finset] at this
Finset.card_singleton- A singleton finset {a} has cardinality 1.
Subtype.ext- Two subtype elements are equal if their underlying values are equal.
SimpleGraph.ConnectedComponent.mem_supp_iff- A vertex belongs to the support of a connected component if and only if the component containing that vertex is the given component.
SimpleGraph.ConnectedComponent.connectedComponentMk_eq_of_adj- Two adjacent vertices in a graph belong to the same connected component.
Fintype.ofFinite- A finite type can be endowed with a Fintype instance.
Set.ncard_eq_toFinset_card'- The set cardinality (ncard) of a finite set equals the cardinality of its finset coercion.
Set.ncard_image_of_injective- An injective function preserves the cardinality of a set under image.
Nat.not_even_iff_odd.mpr- An odd natural number is not even.
dif_pos- A dependent if-then-else evaluates to the true branch when the condition holds.
Finset.coe_sdiff- The set coercion of the difference of two finsets is the difference of their coerced sets.
Finset.coe_univ- The set coercion of the universal finset is the universal set.
Set.mem_sdiff- An element belongs to the difference s \ t if and only if it belongs to s and does not belong to t.
Set.mem_univ- Every element belongs to the universal set.
true_and- The conjunction of True and p simplifies to p.
Finset.mem_coe- An element belongs to the set coercion of a finset if and only if it is in the finset.
Set.ncard_le_ncard_of_injOn- An injective function from a set s into a finite set t implies |s| ≤ |t|.
Set.ncard_coe_finset- The set cardinality of the set coercion of a finset equals the finset cardinality.
- The proof works heavily with induced subgraphs and vertex-deleted subgraphs, which in Lean are formalized using subtypes; the canonical inclusion map ι and several calls to Subtype.ext manage the conversion between subtype elements and underlying graph vertices.
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 factorcritical_anticomplete_odd_components_bound {V : Type*} [Fintype V] [DecidableEq V] (H : SimpleGraph V) [DecidableRel H.Adj] (hcrit : is_k_factor_critical H 1) (U L : Finset V) (hUL : U ⊆ L) (z : V) (hzL : z ∈ L) (hzU : z ∉ U) (hanti : ∀ u ∈ U, ∀ v ∈ L, v ∉ U → ¬ H.Adj u v) : (H.induce {v | v ∈ U}).oddComponents.ncard ≤ ((Finset.univ : Finset V) \ L).card := by classical obtain ⟨M, hM⟩ := hcrit {z} (Finset.card_singleton z) have hmemW : ∀ x : V, x ∈ ((({z} : Finset V) : Set V))ᶜ ↔ x ≠ z := by intro x; simp set GU := H.induce {v | v ∈ U} with hGU let ι : ↥{v | v ∈ U} → ↥((({z} : Finset V) : Set V))ᶜ := fun a => ⟨a.1, (hmemW a.1).mpr (fun h => hzU (h ▸ a.2))⟩ have hι : Function.Injective ι := by intro a b h have h1 : (ι a).1 = (ι b).1 := by rw [h] exact Subtype.ext h1 have hkey : ∀ c ∈ GU.oddComponents, ∃ b : ↥((({z} : Finset V) : Set V))ᶜ, b.1 ∉ L ∧ ∃ a ∈ c.supp, M.Adj (ι a) b := by intro c hc by_contra hno push Not at hno let C : Set ↥((({z} : Finset V) : Set V))ᶜ := ι '' c.supp have hmatch : (M.induce C).IsMatching := by intro x hx obtain ⟨a', ha', rfl⟩ := hx obtain ⟨b, hab, huniq⟩ := hM.1 (hM.2 (ι a')) have hHab : H.Adj a'.1 b.1 := by have := M.adj_sub hab simpa using this have hbL : b.1 ∈ L := by by_contra hbL exact hno b hbL a' ha' hab have hbU : b.1 ∈ U := by by_contra hbU exact hanti a'.1 a'.2 b.1 hbL hbU hHab let b' : ↥{v | v ∈ U} := ⟨b.1, hbU⟩ have hGUadj : GU.Adj a' b' := by simpa [GU] using hHab have hbc : b' ∈ c.supp := by rw [SimpleGraph.ConnectedComponent.mem_supp_iff] at ha' ⊢ rw [← ha'] exact (SimpleGraph.ConnectedComponent.connectedComponentMk_eq_of_adj hGUadj).symm have hbι : ι b' = b := Subtype.ext rfl refine ⟨b, ⟨⟨a', ha', rfl⟩, ⟨b', hbc, hbι⟩, hab⟩, fun y hy => huniq y hy.2.2⟩ have hfin : Fintype (M.induce C).verts := Fintype.ofFinite _ have he := hmatch.even_card rw [← Set.ncard_eq_toFinset_card'] at he have hC : (M.induce C).verts.ncard = c.supp.ncard := by show C.ncard = _ exact Set.ncard_image_of_injective _ hι rw [hC] at he exact (Nat.not_even_iff_odd.mpr hc) he let f : GU.ConnectedComponent → V := fun c => if h : c ∈ GU.oddComponents then ((hkey c h).choose).1 else z have hf : ∀ c ∈ GU.oddComponents, f c ∈ (((Finset.univ : Finset V) \ L : Finset V) : Set V) := by intro c hc simp only [f, dif_pos hc, Finset.coe_sdiff, Finset.coe_univ, Set.mem_sdiff, Set.mem_univ, true_and, Finset.mem_coe] exact (hkey c hc).choose_spec.1 have hinj : Set.InjOn f GU.oddComponents := by intro c1 hc1 c2 hc2 heq obtain ⟨-, a1, ha1, hm1⟩ := (hkey c1 hc1).choose_spec obtain ⟨-, a2, ha2, hm2⟩ := (hkey c2 hc2).choose_spec have e : (hkey c1 hc1).choose = (hkey c2 hc2).choose := by apply Subtype.ext have := heq simp only [f, dif_pos hc1, dif_pos hc2] at this exact this rw [e] at hm1 have hw : (hkey c2 hc2).choose ∈ M.verts := M.edge_vert hm1.symm have h12 : ι a1 = ι a2 := (hM.1 hw).unique hm1.symm hm2.symm have : a1 = a2 := hι h12 rw [SimpleGraph.ConnectedComponent.mem_supp_iff] at ha1 ha2 rw [← ha1, ← ha2, this] have := Set.ncard_le_ncard_of_injOn f hf hinj rwa [Set.ncard_coe_finset] at this