AFTD Auto-Formalizing Theoretical Domains

boundary_five_clique_blocks_full_cross_vertex_has_removable_edge

theoremverified

For k at least five, consider a k-extendible graph on 4k vertices whose four disjoint clique blocks have sizes 5, 2k−5, 5, 2k−5, with the two pairs of blocks anticomplete. If every vertex has degree at least 2k+2, every separating vertex set has size at least 2k, and a vertex of the first five-block is adjacent to all five vertices of the second five-block, then at least one of those five incident cross edges is removable while preserving k-extendibility.

Statement

theorem boundary_five_clique_blocks_full_cross_vertex_has_removable_edge
    (k : ℕ) (hk : 5 ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D : Finset (Fin (4*k)))
    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)
    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)
    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)
    (hA : A.card=5) (hC : C.card=5)
    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)
    (hclique : ∀ T ∈ [A,B,C,D], ∀ u ∈ T, ∀ v ∈ T, u ≠ v → G.Adj u v)
    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
    (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →
      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →
      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)
    (hext : is_k_extendable G k) (x : Fin (4*k)) (hx : x ∈ A)
    (hfull : ∀ y ∈ C, G.Adj x y) :
    ∃ y ∈ C, is_k_extendable (G.deleteEdges {s(x,y)}) k
Source
OP-1957: all-k boundary removable-edge route; experiment 37029 is finite evidence.
Verified
23 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6

The proof, explained

The proof proceeds by contradiction: suppose none of the five edges {x, y} for y ∈ C can be deleted while preserving k-extendibility. We view non-adjacency between the 4-element set A \ {x} and the 5-element set C as a bipartite defect relation. Because every vertex has degree at least 2k+2 and A is anticomplete to B (which has size 2k-5), each vertex in A \ {x} has at most 2 non-neighbors in C. Conversely, because each edge {x, c} is assumed essential, a structural lemma guarantees that each c ∈ C has at least two non-neighbors in A \ {x}. This degree distribution on bipartite sets of sizes 4 and 5 is impossible by double-counting incidences, yielding a contradiction.

  1. Assuming no edge between x and C is removable, it suffices to show that the non-adjacency relation between A \ {x} and C satisfies degree constraints that are impossible on sets of sizes 4 and 5.

    We argue by contradiction, assuming that for all y ∈ C, deleting the edge {x, y} destroys k-extendibility (hnone). We apply the incidence lemma four_by_five_defect_incidence_impossible with the non-adjacency relation R(a, c) := ¬G.Adj a c between A \ {x} and C. This reduces the proof to verifying the sizes of the two sets, showing that every vertex in A \ {x} has at most 2 non-neighbors in C, and showing that every vertex in C has at least 2 non-neighbors in A \ {x}.

    lines 19–22

    uses four_by_five_defect_incidence_impossible

      classical
      by_contra hnone
      push Not at hnone
      apply four_by_five_defect_incidence_impossible (A.erase x) C (fun a c => ¬ G.Adj a c)
  2. The set A \ {x} has cardinality 4, and C has cardinality 5.

    Since A has size 5 and contains x, removing x gives a set of size 4 by Finset.card_erase_of_mem. The block C has size 5 directly by assumption (hC).

    lines 23–24

    uses Finset.card_erase_of_mem

      · simp [Finset.card_erase_of_mem hx, hA]
      · exact hC
  3. Every vertex in A \ {x} has at most 2 non-neighbors in C.

    Let a ∈ A \ {x}. Since A is disjoint from B (hAB), a ∉ B, and a has no neighbors in B by anticompleteness (hnoAB). Because the vertex universe has size 4k, |B| = 2k - 5, and the degree of a is at least 2k + 2, the general bound anticomplete_neighbor_defect_bound implies that the number of non-neighbors of a outside B ∪ {a} is at most 2. Because C is disjoint from both B and A, every non-neighbor of a in C is a vertex in (univ \ B) \ {a} not adjacent to a. Hence, the non-neighbors of a in C form a subset of this defect set, so their count is at most 2.

    lines 25–36

    uses Finset.mem_erase.mp, Finset.disjoint_left.mp, anticomplete_neighbor_defect_bound, le_trans, Finset.card_le_card, Finset.mem_filter, Finset.mem_sdiff, Finset.mem_erase, Finset.mem_univ, true_and, SimpleGraph.mem_neighborFinset

      · intro a ha
        have haA : a ∈ A := (Finset.mem_erase.mp ha).2
        have haB : a ∉ B := fun h => Finset.disjoint_left.mp hAB haA h
        have hanti : ∀ b ∈ B, ¬ G.Adj a b := hnoAB a haA
        have hbudget := anticomplete_neighbor_defect_bound G B a haB hanti (2*k+4) 2 (by simp; omega) (by have := hdegree a; omega)
        apply le_trans (Finset.card_le_card ?_) hbudget
        intro c hc
        simp only [Finset.mem_filter] at hc
        have hcB : c ∉ B := fun h => Finset.disjoint_left.mp hBC h hc.1
        have hca : c ≠ a := fun h => Finset.disjoint_left.mp hAC haA (h ▸ hc.1)
        simp only [Finset.mem_sdiff, Finset.mem_erase, Finset.mem_univ, true_and, SimpleGraph.mem_neighborFinset]
        exact ⟨⟨hca, hcB⟩, hc.2⟩
  4. Every vertex in C has at least 2 non-neighbors in A \ {x}.

    Let c ∈ C. Since the edge {x, c} cannot be removed while preserving k-extendibility, boundary_five_clique_blocks_full_cross_essential_edge_forces_twins provides two distinct vertices p, q ∈ A \ {x} that are both non-adjacent to c. Because p and q are two distinct members of the non-neighbor set of c within A \ {x}, Finset.one_lt_card.mpr shows this set has cardinality strictly greater than 1, and linear arithmetic (omega) concludes its cardinality is at least 2.

    lines 37–43

    uses boundary_five_clique_blocks_full_cross_essential_edge_forces_twins, Finset.one_lt_card.mpr

      · intro c hc
        have he := boundary_five_clique_blocks_full_cross_essential_edge_forces_twins k hk G A B C D hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD hnoAB hnoCD hclique hdegree hsep hext x c hx hc hfull (hnone c hc)
        obtain ⟨p,hp,q,hq,z,hz,hpq,hpx,hqx,hpc,hqc,_,_,_,_⟩ := he
        have hp' : p ∈ (A.erase x).filter (fun a => ¬ G.Adj a c) := by simp [hp,hpx,hpc]
        have hq' : q ∈ (A.erase x).filter (fun a => ¬ G.Adj a c) := by simp [hq,hqx,hqc]
        have h := Finset.one_lt_card.mpr ⟨p,hp',q,hq',hpq⟩
        omega
four_by_five_defect_incidence_impossible
In any bipartite relation between a set of size 4 and a set of size 5, it is impossible for every element of the 4-set to have at most 2 related elements while every element of the 5-set has at least 2 related elements.
Finset.card_erase_of_mem
Removing an element from a finite set decreases its cardinality by 1.
Finset.mem_erase.mp
If an element belongs to the erasure of b from s, then it is distinct from b and belongs to s.
Finset.disjoint_left.mp
If two sets are disjoint, an element belonging to the first does not belong to the second.
anticomplete_neighbor_defect_bound
If a vertex x is not in B and has no neighbors in B, and the universe has size |B| + d + 1 with degree at least d - r, then the number of non-neighbors of x outside B ∪ {x} is at most r.
le_trans
Inequality is transitive: if a ≤ b and b ≤ c, then a ≤ c.
Finset.card_le_card
If one finite set is a subset of another, its cardinality is less than or equal to that of the other.
Finset.mem_filter
An element belongs to the filtered subset of elements satisfying p if and only if it belongs to the set and satisfies p.
Finset.mem_sdiff
An element belongs to the set difference s \ t if and only if it belongs to s and not to t.
Finset.mem_erase
An element a belongs to s \ {b} if and only if a ≠ b and a ∈ s.
Finset.mem_univ
Every element of a finite type belongs to its universal finset.
true_and
For any proposition p, True ∧ p is equivalent to p.
SimpleGraph.mem_neighborFinset
A vertex w belongs to the neighbor finset of v if and only if v and w are adjacent.
boundary_five_clique_blocks_full_cross_essential_edge_forces_twins
Under the boundary 5-clique block hypotheses, if a vertex x ∈ A is adjacent to all of C and the edge {x, y} with y ∈ C is essential for k-extendibility, then there exist two distinct twin vertices in A \ {x} that are both non-adjacent to y.
Finset.one_lt_card.mpr
A finite set has cardinality strictly greater than 1 if it contains at least two distinct elements.

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

theorem boundary_five_clique_blocks_full_cross_vertex_has_removable_edge    (k : ℕ) (hk : 5 ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D : Finset (Fin (4*k)))    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)    (hA : A.card=5) (hC : C.card=5)    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)    (hclique : ∀ T ∈ [A,B,C,D], ∀ u ∈ T, ∀ v ∈ T, u ≠ v → G.Adj u v)    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)    (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)    (hext : is_k_extendable G k) (x : Fin (4*k)) (hx : x ∈ A)    (hfull : ∀ y ∈ C, G.Adj x y) :    ∃ y ∈ C, is_k_extendable (G.deleteEdges {s(x,y)}) k := by  classical  by_contra hnone  push Not at hnone  apply four_by_five_defect_incidence_impossible (A.erase x) C (fun a c => ¬ G.Adj a c)  · simp [Finset.card_erase_of_mem hx, hA]  · exact hC  · intro a ha    have haA : a ∈ A := (Finset.mem_erase.mp ha).2    have haB : a ∉ B := fun h => Finset.disjoint_left.mp hAB haA h    have hanti : ∀ b ∈ B, ¬ G.Adj a b := hnoAB a haA    have hbudget := anticomplete_neighbor_defect_bound G B a haB hanti (2*k+4) 2 (by simp; omega) (by have := hdegree a; omega)    apply le_trans (Finset.card_le_card ?_) hbudget    intro c hc    simp only [Finset.mem_filter] at hc    have hcB : c ∉ B := fun h => Finset.disjoint_left.mp hBC h hc.1    have hca : c ≠ a := fun h => Finset.disjoint_left.mp hAC haA (h ▸ hc.1)    simp only [Finset.mem_sdiff, Finset.mem_erase, Finset.mem_univ, true_and, SimpleGraph.mem_neighborFinset]    exact ⟨⟨hca, hcB⟩, hc.2⟩  · intro c hc    have he := boundary_five_clique_blocks_full_cross_essential_edge_forces_twins k hk G A B C D hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD hnoAB hnoCD hclique hdegree hsep hext x c hx hc hfull (hnone c hc)    obtain ⟨p,hp,q,hq,z,hz,hpq,hpx,hqx,hpc,hqc,_,_,_,_⟩ := he    have hp' : p ∈ (A.erase x).filter (fun a => ¬ G.Adj a c) := by simp [hp,hpx,hpc]    have hq' : q ∈ (A.erase x).filter (fun a => ¬ G.Adj a c) := by simp [hq,hqx,hqc]    have h := Finset.one_lt_card.mpr ⟨p,hp',q,hq',hpq⟩    omega
See it in the graphDiscuss this resultChallenge it