minimally_k_extendable_simplicial_complement_degree_bound
For a minimally k-extendable graph on 2k+2j vertices, j at least two, a complement-simplicial vertex satisfying the displayed numerical two-neighborhood bound forces minimum degree at most 2k+1.
Statement
theorem minimally_k_extendable_simplicial_complement_degree_bound
(k j : ℕ) (hj : 2 ≤ j) (G : SimpleGraph (Fin (2*k+2*j))) [DecidableRel G.Adj]
(hmin : is_minimally_k_extendable G k) (u : Fin (2*k+2*j))
(hclique : ∀ a b, a ≠ b → (Gᶜ).Adj u a → (Gᶜ).Adj u b → (Gᶜ).Adj a b)
(hcount : 3 + (Gᶜ).degree u + (Gᶜ).degree u * (2*j-3-(Gᶜ).degree u) ≤ 2*k+2*j) :
G.minDegree ≤ 2*k+1- Source
- OP-1957: simplicial complement neighborhood and zero-codegree edge selection.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 5
- is_minimally_k_extendableFor a finite vertex type V (with [Fintype V]), a simple graph G : SimpleGraph V and k : ℕ, is_minimally_k_extendable G k is the Prop…
- 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…
- matching_four_switch_simplicial_complement_zero_codegreeA perfect-matching edge uv lies on an alternating four-cycle if v has at least two neighbors, the complement neighbors of u form a clique,…
- forced_matching_edge_blocks_four_and_six_switchesA forced matching edge blocks the specified four- and six-vertex switches.
- k_extendable_essential_edge_has_forced_matching_residualAn essential edge of a k-extendible graph is forced in a perfect-matching residual on n−2k vertices.
The proof, explained
The proof proceeds by contradiction, assuming that the minimum degree of G is at least 2k + 2. Under this assumption, every vertex in the complement graph Gᶜ has degree at most 2j - 3, and the numerical bound implies that the closed 2-neighborhood of u in Gᶜ cannot cover all vertices of G. Selecting a vertex v outside this 2-neighborhood gives an edge uv in G whose endpoints share no common neighbors in Gᶜ. Because G is minimally k-extendable, uv is an essential edge that is forced in every perfect matching of a 2j-vertex induced subgraph G_R, ruling out any alternating 4-switch on uv. However, the high degree of v and complement-simpliciality of u force such an alternating 4-switch to exist in G_R, yielding a contradiction.
Assume for contradiction that the minimum degree of G is at least 2k + 2.
We proceed by contradiction, assuming that the minimum degree of G exceeds 2k + 1. Linear integer arithmetic translates this into 2k + 2 ≤ minDegree(G).
classical by_contra hlt have hdeg : 2*k+2 ≤ G.minDegree := by omega
In the complement graph Gᶜ, every vertex has degree at most 2j - 3.
For each vertex x, the complement degree is d_{Gᶜ}(x) = (2k + 2j) - 1 - d_G(x). Since d_G(x) ≥ minDegree(G) ≥ 2k + 2, it follows by integer arithmetic that d_{Gᶜ}(x) ≤ 2j - 3.
uses
SimpleGraph.degree_compl,Fintype.card_fin,SimpleGraph.minDegree_le_degreehave hdegH : ∀ x : Fin (2*k+2*j), (Gᶜ).degree x ≤ 2*j-3 := by intro x have h1 := SimpleGraph.degree_compl G x rw [Fintype.card_fin] at h1 have h2 := SimpleGraph.minDegree_le_degree G x omega
Define A as the complement-neighborhood of u, O(a) as the complement-neighbors of a outside {u} ∪ A, and S as the closed 2-neighborhood of u in Gᶜ, noting that u ∉ A.
We set A = N_{Gᶜ}(u) (so |A| = d_{Gᶜ}(u)), O(a) = N_{Gᶜ}(a) \ ({u} ∪ A) for each a ∈ A, and S = {u} ∪ A ∪ ⋃_{a ∈ A} O(a). Because Gᶜ has no self-loops, u ∉ N_{Gᶜ}(u).
uses
SimpleGraph.card_neighborFinset_eq_degree,SimpleGraph.irrefl,SimpleGraph.mem_neighborFinsetlet A : Finset (Fin (2*k+2*j)) := (Gᶜ).neighborFinset u have hAcard : A.card = (Gᶜ).degree u := SimpleGraph.card_neighborFinset_eq_degree (Gᶜ) u let O : Fin (2*k+2*j) → Finset (Fin (2*k+2*j)) := fun a => (Gᶜ).neighborFinset a \ insert u A let S : Finset (Fin (2*k+2*j)) := insert u (A ∪ A.biUnion O) have hu_notin_A : u ∉ A := by intro h exact SimpleGraph.irrefl (Gᶜ) ((SimpleGraph.mem_neighborFinset (Gᶜ) u u).mp h)
For each neighbor a ∈ A, the outer set O(a) has cardinality at most 2j - 3 - |A|.
Because u is complement-simplicial, all neighbors of u in Gᶜ are mutually adjacent. Thus ({u} ∪ A) \ {a} is a clique in Gᶜ containing a, so ({u} ∪ A) \ {a} ⊆ N_{Gᶜ}(a) ∩ ({u} ∪ A). The set ({u} ∪ A) \ {a} has size |A|, which implies |N_{Gᶜ}(a) ∩ ({u} ∪ A)| ≥ |A|. Since O(a) = N_{Gᶜ}(a) \ ({u} ∪ A), its size is |N_{Gᶜ}(a)| - |N_{Gᶜ}(a) ∩ ({u} ∪ A)| ≤ d_{Gᶜ}(a) - |A| ≤ (2j - 3) - |A|.
uses
SimpleGraph.mem_neighborFinset,Finset.mem_singleton,Finset.mem_insert_of_mem,Finset.mem_sdiff,Finset.card_sdiff_of_subset,Finset.card_singleton,Finset.card_insert_of_notMem,Finset.card_le_card,Finset.inter_subset_left,SimpleGraph.card_neighborFinset_eq_degree,Finset.inter_comm,Finset.card_sdiffhave hOp : ∀ a ∈ A, (O a).card ≤ 2*j-3 - A.card := by intro a ha have hAa : (Gᶜ).Adj u a := (SimpleGraph.mem_neighborFinset (Gᶜ) u a).mp ha have hsubset_a : ({a} : Finset (Fin (2*k+2*j))) ⊆ insert u A := by intro x hx rw [Finset.mem_singleton] at hx rw [hx]; exact Finset.mem_insert_of_mem ha have hsub1 : (insert u A) \ {a} ⊆ (Gᶜ).neighborFinset a := by intro x hx rw [Finset.mem_sdiff, Finset.mem_singleton] at hx obtain ⟨hxin, hxa⟩ := hx rw [SimpleGraph.mem_neighborFinset] rcases Finset.mem_insert.mp hxin with rfl | hxA · exact hAa.symm · have hxadj : (Gᶜ).Adj u x := (SimpleGraph.mem_neighborFinset (Gᶜ) u x).mp hxA exact hclique a x (fun h => hxa h.symm) hAa hxadj have hsub2 : (insert u A) \ {a} ⊆ (Gᶜ).neighborFinset a ∩ insert u A := by intro x hx exact Finset.mem_inter.mpr ⟨hsub1 hx, (Finset.mem_sdiff.mp hx).1⟩ have hcard1 : ((insert u A) \ {a}).card = A.card := by rw [Finset.card_sdiff_of_subset hsubset_a, Finset.card_singleton, Finset.card_insert_of_notMem hu_notin_A] omega have hle : A.card ≤ ((Gᶜ).neighborFinset a ∩ insert u A).card := by calc A.card = ((insert u A) \ {a}).card := hcard1.symm _ ≤ _ := Finset.card_le_card hsub2 have hIle : ((Gᶜ).neighborFinset a ∩ insert u A).card ≤ ((Gᶜ).neighborFinset a).card := Finset.card_le_card Finset.inter_subset_left have hBcard : ((Gᶜ).neighborFinset a).card = (Gᶜ).degree a := SimpleGraph.card_neighborFinset_eq_degree (Gᶜ) a have hdega : (Gᶜ).degree a ≤ 2*j-3 := hdegH a have hOdef : O a = (Gᶜ).neighborFinset a \ insert u A := rfl have hIcomm : insert u A ∩ (Gᶜ).neighborFinset a = (Gᶜ).neighborFinset a ∩ insert u A := Finset.inter_comm _ _ have hOeq : (O a).card = ((Gᶜ).neighborFinset a).card - ((Gᶜ).neighborFinset a ∩ insert u A).card := by rw [hOdef, Finset.card_sdiff, hIcomm] omega
The set S has cardinality at most 1 + |A| + |A| * (2j - 3 - |A|).
By definition, S = {u} ∪ A ∪ ⋃_{a ∈ A} O(a). Applying subadditivity of cardinality and the bound |O(a)| ≤ 2j - 3 - |A| for each of the |A| elements of A yields |S| ≤ 1 + |A| + |A|(2j - 3 - |A|).
uses
Finset.card_insert_le,Finset.card_union_le,Finset.card_biUnion_le,Finset.sum_le_sum,Finset.sum_const,nsmul_eq_mulhave hScard : S.card ≤ 1 + A.card + A.card * (2*j-3-A.card) := by have h1 : S.card ≤ (A ∪ A.biUnion O).card + 1 := by have h := Finset.card_insert_le u (A ∪ A.biUnion O) simpa [S] using h have h2 : (A ∪ A.biUnion O).card ≤ A.card + (A.biUnion O).card := Finset.card_union_le _ _ have h3 : (A.biUnion O).card ≤ ∑ a ∈ A, (O a).card := Finset.card_biUnion_le have h4 : (∑ a ∈ A, (O a).card) ≤ ∑ a ∈ A, (2*j-3-A.card) := Finset.sum_le_sum (fun a ha => hOp a ha) have h5 : (∑ a ∈ A, (2*j-3-A.card)) = A.card * (2*j-3-A.card) := by rw [Finset.sum_const, nsmul_eq_mul] simp omega
There exists a vertex v outside S, and in particular v ∉ A.
The hypothesis hcount gives 3 + |A| + |A|(2j - 3 - |A|) ≤ 2k + 2j. Since |S| ≤ 1 + |A| + |A|(2j - 3 - |A|), we have |S| < 2k + 2j, so S cannot be the entire vertex set. Thus there exists a vertex v ∉ S, which also implies v ∉ A since A ⊆ S.
uses
Finset.Subset.antisymm,Finset.subset_univ,Finset.card_univ,Fintype.card_fin,Nat.lt_irrefl,Finset.mem_insert_of_mem,Finset.mem_union_lefthave hSlt : S.card < 2*k+2*j := by have h := hcount rw [← hAcard] at h omega have huniv : ¬ ((Finset.univ : Finset (Fin (2*k+2*j))) ⊆ S) := by intro hsub have hEq : S = (Finset.univ : Finset (Fin (2*k+2*j))) := Finset.Subset.antisymm (Finset.subset_univ S) hsub rw [hEq, Finset.card_univ, Fintype.card_fin] at hSlt exact Nat.lt_irrefl _ hSlt obtain ⟨v, -, hvS⟩ := Finset.not_subset.mp huniv have hv_not_A : v ∉ A := by intro h exact hvS (Finset.mem_insert_of_mem (Finset.mem_union_left _ h))
The vertices u and v are adjacent in G.
If u and v were not adjacent in G, then since v ∉ S means v ≠ u, they would be adjacent in Gᶜ, which would place v in N_{Gᶜ}(u) = A. But v ∉ A, a contradiction.
uses
Finset.mem_insert_self,SimpleGraph.mem_neighborFinset,SimpleGraph.compl_adjhave huv : G.Adj u v := by by_contra h have hne : u ≠ v := by intro he exact hvS (he ▸ Finset.mem_insert_self u (A ∪ A.biUnion O)) exact hv_not_A ((SimpleGraph.mem_neighborFinset (Gᶜ) u v).mpr ((SimpleGraph.compl_adj G u v).mpr ⟨hne, h⟩))
The vertices u and v share no common neighbors in Gᶜ.
If some vertex a were adjacent in Gᶜ to both u and v, then a ∈ A. The complement-neighborhood of a satisfies N_{Gᶜ}(a) ⊆ ({u} ∪ A) ∪ O(a) ⊆ S. Hence v ∈ N_{Gᶜ}(a) would imply v ∈ S, contradicting v ∉ S.
uses
SimpleGraph.mem_neighborFinset,Finset.mem_union_left,Finset.mem_union_right,Finset.mem_insert_self,Finset.mem_insert_of_memhave hsep : ∀ a, (Gᶜ).Adj u a → ¬ (Gᶜ).Adj v a := by intro a hua hva have haA : a ∈ A := (SimpleGraph.mem_neighborFinset (Gᶜ) u a).mpr hua have hBa : v ∈ (Gᶜ).neighborFinset a := (SimpleGraph.mem_neighborFinset (Gᶜ) a v).mpr hva.symm have hsub : (Gᶜ).neighborFinset a ⊆ insert u A ∪ O a := by intro x hx by_cases hx' : x ∈ insert u A · exact Finset.mem_union_left _ hx' · exact Finset.mem_union_right _ (Finset.mem_sdiff.mpr ⟨hx, hx'⟩) have hsubS : insert u A ⊆ S := by intro x hx rcases Finset.mem_insert.mp hx with heq | hA · rw [heq]; exact Finset.mem_insert_self u _ · exact Finset.mem_insert_of_mem (Finset.mem_union_left _ hA) have hOS : O a ⊆ S := by intro x hx exact Finset.mem_insert_of_mem (Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨a, haA, hx⟩)) have hvS' : v ∈ S := by have h := hsub hBa rcases Finset.mem_union.mp h with h' | h' · exact hsubS h' · exact hOS h' exact hvS hvS'
The edge uv is essential, yielding an induced subgraph G_R on 2j vertices containing u, v that has a perfect matching P, but in which every perfect matching contains uv.
Since G is minimally k-extendable, deleting the edge uv produces a graph that is not k-extendable. The residual forced matching lemma provides a subset R of size (2k + 2j) - 2k = 2j containing u and v such that G_R = G[R] has a perfect matching P, but no perfect matching of G_R avoids the edge between u and v.
uses
k_extendable_essential_edge_has_forced_matching_residualobtain ⟨R, hRc, hu, hv, ⟨P, hP⟩, hnoPM⟩ := k_extendable_essential_edge_has_forced_matching_residual (2*k+2*j) k G u v huv hmin.1 (hmin.2 _ huv) let GR : SimpleGraph {a // a ∈ R} := G.induce {a | a ∈ R} let u' : {a // a ∈ R} := ⟨u, hu⟩ let v' : {a // a ∈ R} := ⟨v, hv⟩
In the induced subgraph G_R, vertex v has at least two distinct neighbors.
The complement of R has size (2k + 2j) - 2j = 2k. In the ambient graph G, v has degree at least 2k + 2. Since at most 2k of its neighbors can lie outside R, at least (2k + 2) - 2k = 2 neighbors of v must lie in R.
uses
Finset.card_sdiff_of_subset,Finset.subset_univ,Finset.card_univ,Fintype.card_fin,SimpleGraph.mem_neighborFinset,Finset.mem_union_left,Finset.mem_union_right,Finset.mem_univ,Finset.card_le_card,Finset.card_union_le,le_trans,SimpleGraph.minDegree_le_degree,SimpleGraph.card_neighborFinset_eq_degreehave hdegGR : ∃ x y : {a // a ∈ R}, x ≠ y ∧ GR.Adj v' x ∧ GR.Adj v' y := by have hcomplcard : (Finset.univ \ R).card = 2*k := by rw [Finset.card_sdiff_of_subset (Finset.subset_univ R), Finset.card_univ, Fintype.card_fin] omega have hsub : G.neighborFinset v ⊆ R.filter (fun y => G.Adj v y) ∪ (Finset.univ \ R) := by intro y hy rw [SimpleGraph.mem_neighborFinset] at hy by_cases hyR : y ∈ R · exact Finset.mem_union_left _ (Finset.mem_filter.mpr ⟨hyR, hy⟩) · exact Finset.mem_union_right _ (Finset.mem_sdiff.mpr ⟨Finset.mem_univ y, hyR⟩) have hcardle : (G.neighborFinset v).card ≤ (R.filter (fun y => G.Adj v y)).card + 2*k := by have h1 := Finset.card_le_card hsub have h2 := Finset.card_union_le (R.filter (fun y => G.Adj v y)) (Finset.univ \ R) rw [hcomplcard] at h2 omega have hdegv : 2*k+2 ≤ G.degree v := le_trans hdeg (SimpleGraph.minDegree_le_degree G v) have hnecard : (G.neighborFinset v).card = G.degree v := SimpleGraph.card_neighborFinset_eq_degree G v have hgt : 1 < (R.filter (fun y => G.Adj v y)).card := by omega obtain ⟨y1, hy1, y2, hy2, hy12⟩ := Finset.one_lt_card.mp hgt refine ⟨⟨y1, (Finset.mem_filter.mp hy1).1⟩, ⟨y2, (Finset.mem_filter.mp hy2).1⟩, ?_, ?_, ?_⟩ · intro he exact hy12 (Subtype.ext_iff.mp he) · change G.Adj v y1 exact (Finset.mem_filter.mp hy1).2 · change G.Adj v y2 exact (Finset.mem_filter.mp hy2).2
Adjacency and complement-adjacency in G_R coincide with those in G.
By definition of the induced subgraph, two vertices in R are adjacent in G_R if and only if they are adjacent in G. Complement-adjacency is preserved since distinct vertices in R are non-adjacent in G_R if and only if they are non-adjacent in G.
uses
SimpleGraph.induce_adj,SimpleGraph.compl_adj,Subtype.ext,congrArghave hGRadj : ∀ x y : {a // a ∈ R}, GR.Adj x y ↔ G.Adj x.1 y.1 := by intro x y exact SimpleGraph.induce_adj have hGRc : ∀ x y : {a // a ∈ R}, (GRᶜ).Adj x y ↔ (Gᶜ).Adj x.1 y.1 := by intro x y constructor · intro h rw [SimpleGraph.compl_adj] at h ⊢ exact ⟨fun he => h.1 (Subtype.ext he), fun hg => h.2 ((hGRadj x y).mpr hg)⟩ · intro h rw [SimpleGraph.compl_adj] at h ⊢ exact ⟨fun he => h.1 (congrArg Subtype.val he), fun hg => h.2 ((hGRadj x y).mp hg)⟩
Every perfect matching of G_R must contain the edge between u and v, and in particular P contains it.
Any perfect matching of G_R omitting the edge would be a perfect matching of G_R with that edge deleted, which was shown not to exist. Thus every perfect matching of G_R contains the edge, including the given perfect matching P.
have hforced : ∀ Q : GR.Subgraph, Q.IsPerfectMatching → Q.Adj u' v' := by intro Q hQ by_contra hn apply hnoPM refine ⟨⟨Q.verts, Q.Adj, ?_, Q.edge_vert, Q.symm⟩, ?_⟩ · intro x y hxy refine SimpleGraph.deleteEdges_adj.mpr ⟨Q.adj_sub hxy, ?_⟩ intro he have hsym : s(x, y) = s(u', v') := by simpa using he rcases Sym2.eq_iff.mp hsym with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ · exact hn hxy · exact hn hxy.symm · exact hQ have huvP : P.Adj u' v' := hforced P hP
In G_R, vertex u remains complement-simplicial, and u and v have no common complement-neighbors.
Because complement-adjacency in G_R reflects complement-adjacency in G, any two complement-neighbors of u in G_R are complement-neighbors in G and thus mutually complement-adjacent. Disjointness of their complement-neighborhoods also transfers directly from G to G_R.
uses
Subtype.exthave hcliqueGR : ∀ a b : {a // a ∈ R}, a ≠ b → (GRᶜ).Adj u' a → (GRᶜ).Adj u' b → (GRᶜ).Adj a b := by intro a b hab hua hub rw [hGRc] at hua hub ⊢ exact hclique a.1 b.1 (fun h => hab (Subtype.ext h)) hua hub have hsepGR : ∀ a : {a // a ∈ R}, (GRᶜ).Adj u' a → ¬ (GRᶜ).Adj v' a := by intro a hua rw [hGRc] at hua rw [hGRc] exact hsep a.1 hua have hblock := forced_matching_edge_blocks_four_and_six_switches GR P hP u' v' huvP hforced
A contradiction arises between the blocking of alternating 4-switches and the existence of one.
Because the edge between u and v is forced in every perfect matching of G_R, it cannot participate in any alternating 4-switch. On the other hand, because v has degree at least 2 in G_R, u is complement-simplicial, and u and v have disjoint complement-neighborhoods, the switching lemma guarantees the existence of an alternating 4-switch with respect to P containing uv. This contradiction refutes the hypothesis that minDegree(G) ≥ 2k + 2.
uses
forced_matching_edge_blocks_four_and_six_switches,matching_four_switch_simplicial_complement_zero_codegreeobtain ⟨a, b, hinj, hPab, hva, hub⟩ := matching_four_switch_simplicial_complement_zero_codegree GR P hP u' v' huvP hdegGR hcliqueGR hsepGR exact hblock.1 ⟨a, b, hinj, hPab, hva, hub⟩
SimpleGraph.degree_compl- In a finite simple graph G on n vertices, the degree of a vertex v in the complement graph Gᶜ equals n - 1 - d_G(v).
Fintype.card_fin- The cardinality of the finite type Fin n is n.
SimpleGraph.minDegree_le_degree- The minimum degree of a graph is at most the degree of any vertex.
SimpleGraph.card_neighborFinset_eq_degree- The number of neighbors of a vertex v in a finite graph equals its degree.
SimpleGraph.irrefl- A simple graph contains no self-loops: no vertex is adjacent to itself.
SimpleGraph.mem_neighborFinset- A vertex w belongs to the neighbor finset of v if and only if v and w are adjacent.
Finset.mem_singleton- An element x belongs to the singleton {a} if and only if x = a.
Finset.mem_insert_of_mem- If an element a belongs to s, then a belongs to {b} ∪ s.
Finset.mem_sdiff- An element belongs to s \ t if and only if it belongs to s and does not belong to t.
Finset.card_sdiff_of_subset- If s ⊆ t, then the cardinality of t \ s is |t| - |s|.
Finset.card_singleton- The cardinality of any singleton finset {a} is 1.
Finset.card_insert_of_notMem- If a ∉ s, then the cardinality of {a} ∪ s is |s| + 1.
Finset.card_le_card- If s ⊆ t, then |s| ≤ |t|.
Finset.inter_subset_left- The intersection s ∩ t is a subset of s.
Finset.inter_comm- Intersection of finsets is commutative: s ∩ t = t ∩ s.
Finset.card_sdiff- For any finsets s and t, the cardinality of t \ s equals |t| - |s ∩ t|.
Finset.card_insert_le- The cardinality of {a} ∪ s is at most |s| + 1.
Finset.card_union_le- The cardinality of s ∪ t is at most |s| + |t|.
Finset.card_biUnion_le- The cardinality of a bounded union ⋃_{a ∈ s} t(a) is at most ∑_{a ∈ s} |t(a)|.
Finset.sum_le_sum- If f(i) ≤ g(i) for all i ∈ s, then ∑_{i ∈ s} f(i) ≤ ∑_{i ∈ s} g(i).
Finset.sum_const- The sum of a constant value b over a finset s equals |s| * b.
nsmul_eq_mul- Scalar multiplication of a natural number n and an element a in a semiring is equal to n * a.
Finset.Subset.antisymm- If s₁ ⊆ s₂ and s₂ ⊆ s₁, then s₁ = s₂.
Finset.subset_univ- Every finset of elements of type α is a subset of the universal finset on α.
Finset.card_univ- The cardinality of Finset.univ on a finite type α equals Fintype.card α.
Nat.lt_irrefl- Strict inequality is irreflexive on natural numbers: ¬ (n < n).
Finset.mem_union_left- If a belongs to s, then a belongs to s ∪ t.
Finset.mem_insert_self- For any element a and finset s, a belongs to {a} ∪ s.
SimpleGraph.compl_adj- Two vertices are adjacent in the complement graph Gᶜ if and only if they are distinct and not adjacent in G.
Finset.mem_union_right- If a belongs to t, then a belongs to s ∪ t.
Finset.mem_univ- Every element of a finite type belongs to the universal finset.
le_trans- If a ≤ b and b ≤ c, then a ≤ c.
SimpleGraph.induce_adj- In an induced subgraph, two vertices are adjacent if and only if they are adjacent in the ambient graph.
Subtype.ext- Two subtype values are equal if their underlying values are equal.
congrArg- A function applied to equal inputs yields equal outputs.
k_extendable_essential_edge_has_forced_matching_residual- For a minimally k-extendable graph on n vertices, an essential edge uv leaves an induced subgraph on n - 2k vertices containing u and v that has a perfect matching, but no perfect matching avoiding uv.
forced_matching_edge_blocks_four_and_six_switches- If an edge uv is forced in every perfect matching of G, then uv cannot participate in an alternating 4-switch or 6-switch with respect to any perfect matching.
matching_four_switch_simplicial_complement_zero_codegree- In a graph with a perfect matching containing uv, if v has degree at least 2, u is complement-simplicial, and u and v have disjoint complement-neighborhoods, then there exists an alternating 4-switch containing uv.
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 minimally_k_extendable_simplicial_complement_degree_bound (k j : ℕ) (hj : 2 ≤ j) (G : SimpleGraph (Fin (2*k+2*j))) [DecidableRel G.Adj] (hmin : is_minimally_k_extendable G k) (u : Fin (2*k+2*j)) (hclique : ∀ a b, a ≠ b → (Gᶜ).Adj u a → (Gᶜ).Adj u b → (Gᶜ).Adj a b) (hcount : 3 + (Gᶜ).degree u + (Gᶜ).degree u * (2*j-3-(Gᶜ).degree u) ≤ 2*k+2*j) : G.minDegree ≤ 2*k+1 := by classical by_contra hlt have hdeg : 2*k+2 ≤ G.minDegree := by omega have hdegH : ∀ x : Fin (2*k+2*j), (Gᶜ).degree x ≤ 2*j-3 := by intro x have h1 := SimpleGraph.degree_compl G x rw [Fintype.card_fin] at h1 have h2 := SimpleGraph.minDegree_le_degree G x omega let A : Finset (Fin (2*k+2*j)) := (Gᶜ).neighborFinset u have hAcard : A.card = (Gᶜ).degree u := SimpleGraph.card_neighborFinset_eq_degree (Gᶜ) u let O : Fin (2*k+2*j) → Finset (Fin (2*k+2*j)) := fun a => (Gᶜ).neighborFinset a \ insert u A let S : Finset (Fin (2*k+2*j)) := insert u (A ∪ A.biUnion O) have hu_notin_A : u ∉ A := by intro h exact SimpleGraph.irrefl (Gᶜ) ((SimpleGraph.mem_neighborFinset (Gᶜ) u u).mp h) have hOp : ∀ a ∈ A, (O a).card ≤ 2*j-3 - A.card := by intro a ha have hAa : (Gᶜ).Adj u a := (SimpleGraph.mem_neighborFinset (Gᶜ) u a).mp ha have hsubset_a : ({a} : Finset (Fin (2*k+2*j))) ⊆ insert u A := by intro x hx rw [Finset.mem_singleton] at hx rw [hx]; exact Finset.mem_insert_of_mem ha have hsub1 : (insert u A) \ {a} ⊆ (Gᶜ).neighborFinset a := by intro x hx rw [Finset.mem_sdiff, Finset.mem_singleton] at hx obtain ⟨hxin, hxa⟩ := hx rw [SimpleGraph.mem_neighborFinset] rcases Finset.mem_insert.mp hxin with rfl | hxA · exact hAa.symm · have hxadj : (Gᶜ).Adj u x := (SimpleGraph.mem_neighborFinset (Gᶜ) u x).mp hxA exact hclique a x (fun h => hxa h.symm) hAa hxadj have hsub2 : (insert u A) \ {a} ⊆ (Gᶜ).neighborFinset a ∩ insert u A := by intro x hx exact Finset.mem_inter.mpr ⟨hsub1 hx, (Finset.mem_sdiff.mp hx).1⟩ have hcard1 : ((insert u A) \ {a}).card = A.card := by rw [Finset.card_sdiff_of_subset hsubset_a, Finset.card_singleton, Finset.card_insert_of_notMem hu_notin_A] omega have hle : A.card ≤ ((Gᶜ).neighborFinset a ∩ insert u A).card := by calc A.card = ((insert u A) \ {a}).card := hcard1.symm _ ≤ _ := Finset.card_le_card hsub2 have hIle : ((Gᶜ).neighborFinset a ∩ insert u A).card ≤ ((Gᶜ).neighborFinset a).card := Finset.card_le_card Finset.inter_subset_left have hBcard : ((Gᶜ).neighborFinset a).card = (Gᶜ).degree a := SimpleGraph.card_neighborFinset_eq_degree (Gᶜ) a have hdega : (Gᶜ).degree a ≤ 2*j-3 := hdegH a have hOdef : O a = (Gᶜ).neighborFinset a \ insert u A := rfl have hIcomm : insert u A ∩ (Gᶜ).neighborFinset a = (Gᶜ).neighborFinset a ∩ insert u A := Finset.inter_comm _ _ have hOeq : (O a).card = ((Gᶜ).neighborFinset a).card - ((Gᶜ).neighborFinset a ∩ insert u A).card := by rw [hOdef, Finset.card_sdiff, hIcomm] omega have hScard : S.card ≤ 1 + A.card + A.card * (2*j-3-A.card) := by have h1 : S.card ≤ (A ∪ A.biUnion O).card + 1 := by have h := Finset.card_insert_le u (A ∪ A.biUnion O) simpa [S] using h have h2 : (A ∪ A.biUnion O).card ≤ A.card + (A.biUnion O).card := Finset.card_union_le _ _ have h3 : (A.biUnion O).card ≤ ∑ a ∈ A, (O a).card := Finset.card_biUnion_le have h4 : (∑ a ∈ A, (O a).card) ≤ ∑ a ∈ A, (2*j-3-A.card) := Finset.sum_le_sum (fun a ha => hOp a ha) have h5 : (∑ a ∈ A, (2*j-3-A.card)) = A.card * (2*j-3-A.card) := by rw [Finset.sum_const, nsmul_eq_mul] simp omega have hSlt : S.card < 2*k+2*j := by have h := hcount rw [← hAcard] at h omega have huniv : ¬ ((Finset.univ : Finset (Fin (2*k+2*j))) ⊆ S) := by intro hsub have hEq : S = (Finset.univ : Finset (Fin (2*k+2*j))) := Finset.Subset.antisymm (Finset.subset_univ S) hsub rw [hEq, Finset.card_univ, Fintype.card_fin] at hSlt exact Nat.lt_irrefl _ hSlt obtain ⟨v, -, hvS⟩ := Finset.not_subset.mp huniv have hv_not_A : v ∉ A := by intro h exact hvS (Finset.mem_insert_of_mem (Finset.mem_union_left _ h)) have huv : G.Adj u v := by by_contra h have hne : u ≠ v := by intro he exact hvS (he ▸ Finset.mem_insert_self u (A ∪ A.biUnion O)) exact hv_not_A ((SimpleGraph.mem_neighborFinset (Gᶜ) u v).mpr ((SimpleGraph.compl_adj G u v).mpr ⟨hne, h⟩)) have hsep : ∀ a, (Gᶜ).Adj u a → ¬ (Gᶜ).Adj v a := by intro a hua hva have haA : a ∈ A := (SimpleGraph.mem_neighborFinset (Gᶜ) u a).mpr hua have hBa : v ∈ (Gᶜ).neighborFinset a := (SimpleGraph.mem_neighborFinset (Gᶜ) a v).mpr hva.symm have hsub : (Gᶜ).neighborFinset a ⊆ insert u A ∪ O a := by intro x hx by_cases hx' : x ∈ insert u A · exact Finset.mem_union_left _ hx' · exact Finset.mem_union_right _ (Finset.mem_sdiff.mpr ⟨hx, hx'⟩) have hsubS : insert u A ⊆ S := by intro x hx rcases Finset.mem_insert.mp hx with heq | hA · rw [heq]; exact Finset.mem_insert_self u _ · exact Finset.mem_insert_of_mem (Finset.mem_union_left _ hA) have hOS : O a ⊆ S := by intro x hx exact Finset.mem_insert_of_mem (Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨a, haA, hx⟩)) have hvS' : v ∈ S := by have h := hsub hBa rcases Finset.mem_union.mp h with h' | h' · exact hsubS h' · exact hOS h' exact hvS hvS' obtain ⟨R, hRc, hu, hv, ⟨P, hP⟩, hnoPM⟩ := k_extendable_essential_edge_has_forced_matching_residual (2*k+2*j) k G u v huv hmin.1 (hmin.2 _ huv) let GR : SimpleGraph {a // a ∈ R} := G.induce {a | a ∈ R} let u' : {a // a ∈ R} := ⟨u, hu⟩ let v' : {a // a ∈ R} := ⟨v, hv⟩ have hdegGR : ∃ x y : {a // a ∈ R}, x ≠ y ∧ GR.Adj v' x ∧ GR.Adj v' y := by have hcomplcard : (Finset.univ \ R).card = 2*k := by rw [Finset.card_sdiff_of_subset (Finset.subset_univ R), Finset.card_univ, Fintype.card_fin] omega have hsub : G.neighborFinset v ⊆ R.filter (fun y => G.Adj v y) ∪ (Finset.univ \ R) := by intro y hy rw [SimpleGraph.mem_neighborFinset] at hy by_cases hyR : y ∈ R · exact Finset.mem_union_left _ (Finset.mem_filter.mpr ⟨hyR, hy⟩) · exact Finset.mem_union_right _ (Finset.mem_sdiff.mpr ⟨Finset.mem_univ y, hyR⟩) have hcardle : (G.neighborFinset v).card ≤ (R.filter (fun y => G.Adj v y)).card + 2*k := by have h1 := Finset.card_le_card hsub have h2 := Finset.card_union_le (R.filter (fun y => G.Adj v y)) (Finset.univ \ R) rw [hcomplcard] at h2 omega have hdegv : 2*k+2 ≤ G.degree v := le_trans hdeg (SimpleGraph.minDegree_le_degree G v) have hnecard : (G.neighborFinset v).card = G.degree v := SimpleGraph.card_neighborFinset_eq_degree G v have hgt : 1 < (R.filter (fun y => G.Adj v y)).card := by omega obtain ⟨y1, hy1, y2, hy2, hy12⟩ := Finset.one_lt_card.mp hgt refine ⟨⟨y1, (Finset.mem_filter.mp hy1).1⟩, ⟨y2, (Finset.mem_filter.mp hy2).1⟩, ?_, ?_, ?_⟩ · intro he exact hy12 (Subtype.ext_iff.mp he) · change G.Adj v y1 exact (Finset.mem_filter.mp hy1).2 · change G.Adj v y2 exact (Finset.mem_filter.mp hy2).2 have hGRadj : ∀ x y : {a // a ∈ R}, GR.Adj x y ↔ G.Adj x.1 y.1 := by intro x y exact SimpleGraph.induce_adj have hGRc : ∀ x y : {a // a ∈ R}, (GRᶜ).Adj x y ↔ (Gᶜ).Adj x.1 y.1 := by intro x y constructor · intro h rw [SimpleGraph.compl_adj] at h ⊢ exact ⟨fun he => h.1 (Subtype.ext he), fun hg => h.2 ((hGRadj x y).mpr hg)⟩ · intro h rw [SimpleGraph.compl_adj] at h ⊢ exact ⟨fun he => h.1 (congrArg Subtype.val he), fun hg => h.2 ((hGRadj x y).mp hg)⟩ have hforced : ∀ Q : GR.Subgraph, Q.IsPerfectMatching → Q.Adj u' v' := by intro Q hQ by_contra hn apply hnoPM refine ⟨⟨Q.verts, Q.Adj, ?_, Q.edge_vert, Q.symm⟩, ?_⟩ · intro x y hxy refine SimpleGraph.deleteEdges_adj.mpr ⟨Q.adj_sub hxy, ?_⟩ intro he have hsym : s(x, y) = s(u', v') := by simpa using he rcases Sym2.eq_iff.mp hsym with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ · exact hn hxy · exact hn hxy.symm · exact hQ have huvP : P.Adj u' v' := hforced P hP have hcliqueGR : ∀ a b : {a // a ∈ R}, a ≠ b → (GRᶜ).Adj u' a → (GRᶜ).Adj u' b → (GRᶜ).Adj a b := by intro a b hab hua hub rw [hGRc] at hua hub ⊢ exact hclique a.1 b.1 (fun h => hab (Subtype.ext h)) hua hub have hsepGR : ∀ a : {a // a ∈ R}, (GRᶜ).Adj u' a → ¬ (GRᶜ).Adj v' a := by intro a hua rw [hGRc] at hua rw [hGRc] exact hsep a.1 hua have hblock := forced_matching_edge_blocks_four_and_six_switches GR P hP u' v' huvP hforced obtain ⟨a, b, hinj, hPab, hva, hub⟩ := matching_four_switch_simplicial_complement_zero_codegree GR P hP u' v' huvP hdegGR hcliqueGR hsepGR exact hblock.1 ⟨a, b, hinj, hPab, hva, hub⟩