high_min_degree_matching_extends_to_size
A matching with at most k edges extends to size k in a sufficiently large graph of minimum degree at least 2k.
Statement
theorem high_min_degree_matching_extends_to_size {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (k : ℕ) (hsize : 2*k+2 ≤ Fintype.card V) (hdegree : ∀ v, 2*k ≤ (G.neighborFinset v).card) (M : G.Subgraph) (hM : M.IsMatching) (hm : M.edgeSet.ncard ≤ k) : ∃ N : G.Subgraph, N.IsMatching ∧ M ≤ N ∧ N.edgeSet.ncard = k
- Source
- Exposed-barrier reduction for OP-1957; https://arxiv.org/abs/2611.22690.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- 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…
- extendible_matchable_two_k_vertices_complement_matchableIn a finite k-extendible graph, the complement of any matchable set of exactly 2k vertices is matchable.
- Used by 3
- extendible_balanced_cut_exposed_barrier_odd_boundIf every vertex of an opposite-side set X can be matched to distinct vertices left uncovered by a balanced-side (k−r)-matching, then the…
- force_one_cross_edge_extend_perfectIn the displayed extendible graph, a crossing edge from an uncovered vertex to the opposite side can be forced into a perfect matching…
- two_crossing_adjacent_endpoints_impossibleWith the displayed extendibility, degree and balanced-half maximum matching assumptions, two distinct vertices unmatched by a maximum…
The proof, explained
The proof proceeds by induction on the defect t = k - |M|, the number of edges needed to reach size k. In the inductive step, the vertices covered by the matching M number 2|M| ≤ 2k - 2, strictly less than |V| ≥ 2k + 2, giving an uncovered vertex u. Since the minimum degree is at least 2k > 2|M|, the neighborhood of u cannot be fully covered by M, yielding an uncovered neighbor v. Adding the edge {u, v} gives a matching of size |M| + 1 with defect t, which by the induction hypothesis extends to size k.
Set up induction on the deficit t = k - |M|.
We state an auxiliary lemma asserting that any matching M whose edge count satisfies |M| + t = k can be extended to a matching of size k, and we proceed by induction on t.
set_option maxHeartbeats 4000000 in classical have aux : ∀ t : ℕ, ∀ M : G.Subgraph, M.IsMatching → M.edgeSet.ncard+t=k → ∃ N : G.Subgraph, N.IsMatching ∧ M ≤ N ∧ N.edgeSet.ncard=k := by intro t induction t with
The base case t = 0 holds.
When t = 0, the matching M already has size k, so taking N = M satisfies all requirements trivially.
uses
le_rfl| zero => intro M hM ht exact ⟨M,hM,le_rfl,by omega⟩There exists a vertex u not covered by M.
Let D be the set of vertices covered by M. Since M is a matching, |D| = 2|M|. In the successor step, |M| + (t + 1) = k, so |M| ≤ k - 1, which implies |D| ≤ 2k - 2. Since |V| ≥ 2k + 2, D cannot be all of V, so there is some vertex u ∉ D.
uses
Set.ncard_eq_toFinset_card',in1076_matching_twice_card,Finset.card_le_card,Finset.card_univ,Finset.not_subset.mp| succ t ih => intro M hM ht let D := M.verts.toFinset have hD : D.card = 2*M.edgeSet.ncard := by rw [← Set.ncard_eq_toFinset_card'] exact (in1076_matching_twice_card hM).symm have hnot : ¬ (Finset.univ : Finset V) ⊆ D := by intro hh have hc := Finset.card_le_card hh simp only [Finset.card_univ] at hc omega obtain ⟨u,_,huD⟩ := Finset.not_subset.mp hnotThere exists a neighbor v of u that is also not covered by M.
The vertex u has at least 2k neighbors by the minimum degree hypothesis. Since |D| ≤ 2k - 2 < 2k, the neighborhood of u cannot be entirely contained in D. Hence u has a neighbor v ∉ D, so {u, v} is an edge of G with neither endpoint in M.
uses
Finset.card_le_card,Finset.not_subset.mphave hnotN : ¬ G.neighborFinset u ⊆ D := by intro hh have hc := Finset.card_le_card hh have hd := hdegree u omega obtain ⟨v,hvN,hvD⟩ := Finset.not_subset.mp hnotN have huv : G.Adj u v := by simpa using hvN
The single edge {u, v} forms a 1-edge matching E.
We index the endpoints by constant maps f, g : Fin 1 → V sending 0 to u and v respectively. Since Fin 1 is a singleton, both maps are injective, and since u and v are adjacent in a simple graph, u ≠ v. Applying `indexed_disjoint_cross_edges_form_matching` yields a matching E with 1 edge and vertex set {u, v}.
uses
Subsingleton.elim,indexed_disjoint_cross_edges_form_matchinglet f : Fin 1 → V := fun _ => u let g : Fin 1 → V := fun _ => v have hf : Function.Injective f := by intro a b h; exact Subsingleton.elim a b have hg : Function.Injective g := by intro a b h; exact Subsingleton.elim a b have hfg : ∀ a b, f a ≠ g b := by intro a b; exact G.ne_of_adj huv obtain ⟨E,hE,hEcard,hEverts⟩ := indexed_disjoint_cross_edges_form_matching G 1 f g hf hg hfg (by intro a; exact huv)
The vertex sets of M and E are disjoint.
The vertices of E are {u, v}. Since u ∉ D and v ∉ D, where D is the vertex set of M, no vertex of M can belong to E.
uses
Set.disjoint_left.mprhave hdis : Disjoint M.verts E.verts := by apply Set.disjoint_left.mpr intro x hxM hxE rw [hEverts] at hxE rcases hxE with ⟨i,hi⟩ | ⟨i,hi⟩ · apply huD simpa [D,f,hi] using hxM · apply hvD simpa [D,g,hi] using hxM
The augmented matching M ⊔ E extends to a matching of size k containing M.
Since M and E are vertex-disjoint matchings, their union M ⊔ E is a matching with |M| + 1 edges. Its remaining deficit to k is t, so by the induction hypothesis for t, M ⊔ E extends to a matching N of size k. By transitivity, M ≤ M ⊔ E ≤ N, so N also extends M.
uses
extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard,le_trans,le_sup_lefthave hsup := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard M E hM hE hdis have hn : (M ⊔ E).edgeSet.ncard+t=k := by rw [hsup.2,hEcard]; omega obtain ⟨N,hN,hMN,hNk⟩ := ih (M ⊔ E) hsup.1 hn exact ⟨N,hN,le_trans le_sup_left hMN,hNk⟩
The given matching M extends to a matching of size k.
We apply the auxiliary lemma with deficit t = k - |M|, which satisfies |M| + t = k by linear arithmetic since |M| ≤ k.
exact aux (k-M.edgeSet.ncard) M hM (by omega)
le_rfl- An element of a preorder is less than or equal to itself.
Set.ncard_eq_toFinset_card'- For a finite set, its set cardinality (ncard) equals the cardinality of its finset coercion.
in1076_matching_twice_card- The number of vertices in a matching is twice the number of its edges.
Finset.card_le_card- If s is a subset of t, then the cardinality of s is at most the cardinality of t.
Finset.card_univ- The cardinality of the universal finset is the cardinality of the underlying finite type.
Finset.not_subset.mp- If a finset is not a subset of another, it contains an element not present in the other.
Subsingleton.elim- Any two elements of a subsingleton type are equal.
indexed_disjoint_cross_edges_form_matching- Given r disjoint pairs of adjacent vertices indexed by injections, the cross edges form a matching of size r whose vertex set is the union of the two endpoint sets.
Set.disjoint_left.mpr- Two sets are disjoint if no element of the first belongs to the second.
extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard- The union of two vertex-disjoint matchings is a matching whose edge count is the sum of their edge counts.
le_trans- Preorder inequality is transitive: if a ≤ b and b ≤ c, then a ≤ c.
le_sup_left- An element is less than or equal to its supremum with another element (a ≤ a ⊔ b).
- The formalization constructs the single new edge as a subgraph via `indexed_disjoint_cross_edges_form_matching`, which requires defining constant functions from the singleton index type `Fin 1` to represent the endpoints u and v.
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 high_min_degree_matching_extends_to_size {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (k : ℕ) (hsize : 2*k+2 ≤ Fintype.card V) (hdegree : ∀ v, 2*k ≤ (G.neighborFinset v).card) (M : G.Subgraph) (hM : M.IsMatching) (hm : M.edgeSet.ncard ≤ k) : ∃ N : G.Subgraph, N.IsMatching ∧ M ≤ N ∧ N.edgeSet.ncard = k := by set_option maxHeartbeats 4000000 in classical have aux : ∀ t : ℕ, ∀ M : G.Subgraph, M.IsMatching → M.edgeSet.ncard+t=k → ∃ N : G.Subgraph, N.IsMatching ∧ M ≤ N ∧ N.edgeSet.ncard=k := by intro t induction t with | zero => intro M hM ht exact ⟨M,hM,le_rfl,by omega⟩ | succ t ih => intro M hM ht let D := M.verts.toFinset have hD : D.card = 2*M.edgeSet.ncard := by rw [← Set.ncard_eq_toFinset_card'] exact (in1076_matching_twice_card hM).symm have hnot : ¬ (Finset.univ : Finset V) ⊆ D := by intro hh have hc := Finset.card_le_card hh simp only [Finset.card_univ] at hc omega obtain ⟨u,_,huD⟩ := Finset.not_subset.mp hnot have hnotN : ¬ G.neighborFinset u ⊆ D := by intro hh have hc := Finset.card_le_card hh have hd := hdegree u omega obtain ⟨v,hvN,hvD⟩ := Finset.not_subset.mp hnotN have huv : G.Adj u v := by simpa using hvN let f : Fin 1 → V := fun _ => u let g : Fin 1 → V := fun _ => v have hf : Function.Injective f := by intro a b h; exact Subsingleton.elim a b have hg : Function.Injective g := by intro a b h; exact Subsingleton.elim a b have hfg : ∀ a b, f a ≠ g b := by intro a b; exact G.ne_of_adj huv obtain ⟨E,hE,hEcard,hEverts⟩ := indexed_disjoint_cross_edges_form_matching G 1 f g hf hg hfg (by intro a; exact huv) have hdis : Disjoint M.verts E.verts := by apply Set.disjoint_left.mpr intro x hxM hxE rw [hEverts] at hxE rcases hxE with ⟨i,hi⟩ | ⟨i,hi⟩ · apply huD simpa [D,f,hi] using hxM · apply hvD simpa [D,g,hi] using hxM have hsup := extendible_graph_matchable_deletion_inherits_extendibility_sup_ncard M E hM hE hdis have hn : (M ⊔ E).edgeSet.ncard+t=k := by rw [hsup.2,hEcard]; omega obtain ⟨N,hN,hMN,hNk⟩ := ih (M ⊔ E) hsup.1 hn exact ⟨N,hN,le_trans le_sup_left hMN,hNk⟩ exact aux (k-M.edgeSet.ncard) M hM (by omega)