extendible_independent_anticomplete_matching_obstruction_general
In a finite k-extendible graph, an independent set U and a disjoint anticomplete set W with 2|U|+|W| greater than the unmatched vertex count meet every matchable 2k-vertex set.
Statement
theorem extendible_independent_anticomplete_matching_obstruction_general {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (k : ℕ) (hext : is_k_extendable G k) (U W S : Finset V) (hUW : Disjoint U W) (hind : ∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v) (hanti : ∀ u ∈ U, ∀ v ∈ W, ¬ G.Adj u v) (hS : Disjoint S (U ∪ W)) (hScard : S.card=2*k) (hlarge : Fintype.card V-2*k < 2*U.card+W.card) : ¬ (∃ M : (G.induce {v | v ∈ S}).Subgraph, M.IsPerfectMatching)
- Source
- OP-1957; matching-deficit reduction at arbitrary finite order.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- 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_perfect_matching_neighbors_card_boundIf an induced vertex set has a perfect matching, then any subset whose neighbors within it all lie in C has cardinality at most |C|.
- Used by 2
- extendible_independent_common_nonneighbor_deficit_le_zeroUnder the stated high-degree extendibility and independence assumptions, a nonempty independent U and a disjoint anticomplete W satisfy…
- extendible_independent_common_nonneighbor_deficit_le_oneUnder the stated high-degree extendibility and independence assumptions, a nonempty independent U and a disjoint anticomplete W satisfy…
The proof, explained
The proof argues by contradiction. If the 2k-vertex induced subgraph G[S] has a perfect matching, then by k-extendibility of G, its complement R = V \\ S also induces a subgraph with a perfect matching. Since U is independent and anticomplete to W, all neighbors of U in R must lie outside U ∪ W, forcing |U| ≤ |R \\ (U ∪ W)| under the perfect matching on R. But then |V| - 2k = |R| = |R \\ (U ∪ W)| + |U| + |W| ≥ 2|U| + |W|, which contradicts the strict inequality assumed in the theorem.
Assume for contradiction that the induced subgraph on S has a perfect matching.
We proceed by contradiction: assuming G[S] has a perfect matching M, we aim to derive False.
classical intro hmatchThe induced subgraph on the complement R = V \\ S also has a perfect matching.
Define R = V \\ S, so that R is the complement of S. The cardinality of S as a set is 2k by Set.ncard_coe_finset. By extendible_matchable_two_k_vertices_complement_matchable, in a k-extendible graph, whenever a 2k-vertex subset induces a subgraph with a perfect matching, its complement also induces a subgraph with a perfect matching.
uses
Set.ncard_coe_finset,extendible_matchable_two_k_vertices_complement_matchablelet R : Finset V := Finset.univ \ S have hR : {v : V | v ∈ R} = ({v : V | v ∈ S})ᶜ := by ext v simp [R] have hcardS : ({v : V | v ∈ S} : Set V).ncard = 2*k := by change (S : Set V).ncard = 2*k rw [Set.ncard_coe_finset] exact hScard have hmatchR := extendible_matchable_two_k_vertices_complement_matchable G k hext {v | v ∈ S} hcardS hmatch rw [← hR] at hmatchR
Both U ∪ W and U are subsets of R.
Since S is disjoint from U ∪ W (by Finset.disjoint_left.mp), every vertex in U ∪ W lies outside S, hence in R. Consequently, U is also a subset of R via Finset.mem_union_left.
uses
Finset.disjoint_left.mp,Finset.mem_union_lefthave hsub : U ∪ W ⊆ R := by intro v hv have hnS : v ∉ S := fun hs => Finset.disjoint_left.mp hS hs hv simp [R,hnS] have hU : U ⊆ R := fun v hv => hsub (Finset.mem_union_left _ hv)
Every neighbor in R of any vertex in U lies in R \\ (U ∪ W).
Let u ∈ U and let v ∈ R be adjacent to u. If v were in U, this would violate the assumption that U is independent (hind). If v were in W, this would violate the assumption that U and W are anticomplete (hanti). Using Finset.mem_union.mp and Finset.mem_sdiff.mpr, v must lie in R \\ (U ∪ W).
uses
Finset.mem_sdiff.mpr,Finset.mem_union.mphave hcover : ∀ u ∈ U, ∀ v ∈ R, G.Adj u v → v ∈ R \ (U ∪ W) := by intro u hu v hv hadj refine Finset.mem_sdiff.mpr ⟨hv,?_⟩ intro hvUW rcases Finset.mem_union.mp hvUW with hvU | hvW · exact hind u hu v hvU hadj · exact hanti u hu v hvW hadj
The size of U is at most the size of R \\ (U ∪ W).
Because G[R] has a perfect matching and all neighbors of U in R lie in R \\ (U ∪ W), the lemma induced_perfect_matching_neighbors_card_bound immediately gives |U| ≤ |R \\ (U ∪ W)|.
uses
induced_perfect_matching_neighbors_card_boundhave hbound := induced_perfect_matching_neighbors_card_bound G R U (R \ (U ∪ W)) hU hcover hmatchRThe cardinality of R is |V| - 2k.
Decomposing the universal set into V \\ S and V ∩ S with Finset.card_sdiff_add_card_inter, and simplifying with Finset.univ_inter and Finset.card_univ, gives |R| + 2k = |V|. Because G is k-extendible, 2k + 2 ≤ |V|, so linear integer arithmetic (omega) determines |R| = |V| - 2k.
uses
Finset.card_sdiff_add_card_inter,Finset.univ_inter,Finset.card_univhave hRcard : R.card = Fintype.card V-2*k := by have hh := Finset.card_sdiff_add_card_inter (Finset.univ : Finset V) S simp only [Finset.univ_inter,Finset.card_univ,hScard] at hh dsimp [R] have hextsize := hext.1 omega
A contradiction is derived between the cardinality of R and the assumption hlarge.
Decomposing R into R \\ (U ∪ W) and R ∩ (U ∪ W) = U ∪ W using Finset.card_sdiff_add_card_inter and Finset.inter_eq_right.mpr, and applying Finset.card_union_of_disjoint, gives |R \\ (U ∪ W)| + |U| + |W| = |R| = |V| - 2k. Combining this with |U| ≤ |R \\ (U ∪ W)| yields |V| - 2k ≥ 2|U| + |W|, which contradicts the hypothesis |V| - 2k < 2|U| + |W| by linear integer arithmetic (omega).
uses
Finset.card_sdiff_add_card_inter,Finset.inter_eq_right.mpr,Finset.card_union_of_disjointhave hh := Finset.card_sdiff_add_card_inter R (U ∪ W) have hi : R ∩ (U ∪ W) = U ∪ W := Finset.inter_eq_right.mpr hsub rw [hi,Finset.card_union_of_disjoint hUW,hRcard] at hh omega
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
Finset.card_univ- The cardinality of the universal finset on a finite type equals the cardinality of the type.
Finset.card_sdiff_add_card_inter- For any two finite sets s and t, the size of s \\ t plus the size of s ∩ t equals the size of s.
Finset.disjoint_left.mp- If two sets are disjoint, an element of the first set cannot belong to the second set.
Finset.inter_eq_right.mpr- If t is a subset of s, then their intersection s ∩ t equals t.
Finset.mem_sdiff.mpr- If an element belongs to s and not to t, then it belongs to the difference s \\ t.
Finset.mem_union_left- If an element belongs to s, it belongs to s ∪ t.
Finset.mem_union.mp- If an element belongs to s ∪ t, it belongs to s or to t.
Finset.univ_inter- The intersection of the universal finset with any finset s is s.
Set.ncard_coe_finset- The set cardinality (ncard) of a coerced Finset equals its Finset.card.
extendible_matchable_two_k_vertices_complement_matchable- In a k-extendible graph, if an induced subgraph on 2k vertices has a perfect matching, then the induced subgraph on its complement also has a perfect matching.
induced_perfect_matching_neighbors_card_bound- In a graph whose induced subgraph on R has a perfect matching, any subset T ⊆ R whose neighbors in R all lie in C satisfies |T| ≤ |C|.
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.
set_option maxHeartbeats 2000000theorem extendible_independent_anticomplete_matching_obstruction_general {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (k : ℕ) (hext : is_k_extendable G k) (U W S : Finset V) (hUW : Disjoint U W) (hind : ∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v) (hanti : ∀ u ∈ U, ∀ v ∈ W, ¬ G.Adj u v) (hS : Disjoint S (U ∪ W)) (hScard : S.card=2*k) (hlarge : Fintype.card V-2*k < 2*U.card+W.card) : ¬ (∃ M : (G.induce {v | v ∈ S}).Subgraph, M.IsPerfectMatching) := by classical intro hmatch let R : Finset V := Finset.univ \ S have hR : {v : V | v ∈ R} = ({v : V | v ∈ S})ᶜ := by ext v simp [R] have hcardS : ({v : V | v ∈ S} : Set V).ncard = 2*k := by change (S : Set V).ncard = 2*k rw [Set.ncard_coe_finset] exact hScard have hmatchR := extendible_matchable_two_k_vertices_complement_matchable G k hext {v | v ∈ S} hcardS hmatch rw [← hR] at hmatchR have hsub : U ∪ W ⊆ R := by intro v hv have hnS : v ∉ S := fun hs => Finset.disjoint_left.mp hS hs hv simp [R,hnS] have hU : U ⊆ R := fun v hv => hsub (Finset.mem_union_left _ hv) have hcover : ∀ u ∈ U, ∀ v ∈ R, G.Adj u v → v ∈ R \ (U ∪ W) := by intro u hu v hv hadj refine Finset.mem_sdiff.mpr ⟨hv,?_⟩ intro hvUW rcases Finset.mem_union.mp hvUW with hvU | hvW · exact hind u hu v hvU hadj · exact hanti u hu v hvW hadj have hbound := induced_perfect_matching_neighbors_card_bound G R U (R \ (U ∪ W)) hU hcover hmatchR have hRcard : R.card = Fintype.card V-2*k := by have hh := Finset.card_sdiff_add_card_inter (Finset.univ : Finset V) S simp only [Finset.univ_inter,Finset.card_univ,hScard] at hh dsimp [R] have hextsize := hext.1 omega have hh := Finset.card_sdiff_add_card_inter R (U ∪ W) have hi : R ∩ (U ∪ W) = U ∪ W := Finset.inter_eq_right.mpr hsub rw [hi,Finset.card_union_of_disjoint hUW,hRcard] at hh omega