AFTD Auto-Formalizing Theoretical Domains

boundary_five_blocks_minimal_no_full_cross

theoremverified

In the stated four-block partition with two five-vertex selected blocks, minimum degree at least 2k+2, the 2k separator property and minimal k-extendibility, every vertex of the first selected block has a nonneighbor in the opposite selected block.

Statement

theorem boundary_five_blocks_minimal_no_full_cross
    (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)
    (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)
    (hmin : is_minimally_k_extendable G k) :
    ∀ x ∈ A, 1 ≤ (C.filter (fun c => ¬ G.Adj x c)).card
Source
OP-1957: no full cross vertex in the nonclique two-five-block degree route.
Verified
24 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…
  • anticomplete_neighbor_defect_boundA vertex anticomplete to a specified block misses at most r of its allowed neighbors when its degree is within r of their total number.
  • four_by_five_defect_incidence_impossibleA relation between sets of sizes four and five cannot give each of the five vertices at least two neighbors while giving each of the four…
  • boundary_five_blocks_essential_edge_cross_defect_patternIn the displayed four-block partition with both selected blocks of size five, minimum degree at least 2k+2, a separator property and…
  • 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…
Used by 1

The proof, explained

The proof proceeds by contradiction: suppose some vertex x ∈ A has no non-neighbor in C, meaning x is adjacent to every vertex of C. We consider the bipartite non-adjacency relation between A \ {x} (of size 4) and C (of size 5). On one hand, the minimum degree condition deg ≥ 2k + 2 combined with anticompleteness between A and B limits the number of non-neighbors of any vertex of A \ {x} in C to at most 2. On the other hand, since x is completely adjacent to C and G is minimally k-extendable, each edge xc is essential, so the essential edge defect pattern requires each c ∈ C to have at least 2 non-neighbors in A \ {x}. A double-counting lemma shows such a bipartite incidence configuration between sets of sizes 4 and 5 is impossible, deriving the contradiction.

  1. Assuming for contradiction that some x ∈ A has fewer than 1 non-neighbor in C, x must be adjacent to every vertex in C.

    Suppose for contradiction that |{c ∈ C | ¬G.Adj x c}| < 1. Because cardinality is a non-negative integer, this count must be 0 (hz). If there were any vertex c ∈ C not adjacent to x, it would belong to this filtered set, making its cardinality strictly positive (hp), which contradicts hz. Hence x is adjacent to every vertex in C (hfull).

    lines 17–26

    uses Finset.card_pos.mpr, Finset.mem_filter.mpr

      classical
      intro x hx
      by_contra hn
      have hz : (C.filter (fun c => ¬ G.Adj x c)).card = 0 := by omega
      have hfull : ∀ c ∈ C, G.Adj x c := by
        intro c hc
        by_contra h
        have hp : 0 < (C.filter (fun c => ¬ G.Adj x c)).card :=
          Finset.card_pos.mpr ⟨c, Finset.mem_filter.mpr ⟨hc,h⟩⟩
        omega
  2. By the bipartite defect incidence lemma for sets of size 4 and 5, it suffices to show that each vertex in A \ {x} has at most 2 non-neighbors in C and each vertex in C has at least 2 non-neighbors in A \ {x}.

    We apply four_by_five_defect_incidence_impossible with vertex sets A \ {x} and C under the non-adjacency relation. Since |A| = 5 and x ∈ A, removing x gives |A \ {x}| = 4, and |C| = 5 by hypothesis. The lemma asserts that no bipartite relation between a 4-element set and a 5-element set can have degree at most 2 on the 4-element side and degree at least 2 on the 5-element side (which would force 10 ≤ incidences ≤ 8). This reduces the proof to verifying these two degree bounds.

    lines 27–29

    uses four_by_five_defect_incidence_impossible, Finset.card_erase_of_mem

      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
  3. Every vertex a ∈ A \ {x} has at most 2 non-neighbors in C.

    Let a ∈ A \ {x}. Since a ∈ A and A is anticomplete to B, a has no neighbors in B. The total number of vertices is 4k and |B| = 2k - 5, so there are 4k - (2k - 5) - 1 = 2k + 4 vertices outside B ∪ {a}. With deg(a) ≥ 2k + 2, the non-neighbor defect bound anticomplete_neighbor_defect_bound shows that a has at most (2k + 4) - (2k + 2) = 2 non-neighbors outside B ∪ {a}. Since C is disjoint from both B and A, all non-neighbors of a in C belong to this set of size at most 2, establishing the upper bound.

    lines 30–41

    uses Finset.mem_erase.mp, Finset.disjoint_left.mp, anticomplete_neighbor_defect_bound, le_trans, Finset.card_le_card, Finset.mem_filter, Finset.disjoint_left.mp, 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 hbudget := anticomplete_neighbor_defect_bound G B a haB (hnoAB a haA)
          (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 c ∈ C has at least 2 non-neighbors in A \ {x}, completing the contradiction.

    For any c ∈ C, x is adjacent to c by the full cross property. Since G is minimally k-extendable, deleting the edge xc destroys k-extendibility, so xc is an essential edge. Because x has 0 non-neighbors in C (which is ≤ 1), the defect pattern theorem boundary_five_blocks_essential_edge_cross_defect_pattern implies that c has exactly 2 non-neighbors in A. Since x is adjacent to c, x is not a non-neighbor, so removing x leaves the non-neighbor set of c unchanged. Thus c has exactly 2 non-neighbors in A \ {x}, satisfying the lower bound of 2 and completing the contradiction.

    lines 42–61

    uses boundary_five_blocks_essential_edge_cross_defect_pattern, Finset.mem_filter, Finset.mem_erase

      · intro c hc
        have hxc := hfull c hc
        have he : ¬ is_k_extendable (G.deleteEdges {s(x,c)}) k :=
          hmin.2 s(x,c) (by simpa using hxc)
        have hp := boundary_five_blocks_essential_edge_cross_defect_pattern k hk G A B C D
          hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD hnoAB hnoCD hdegree hsep
          hmin.1 x c hx hc hxc he
        have hc2 := hp.2 (by omega)
        have heq : (A.erase x).filter (fun a => ¬ G.Adj a c) = A.filter (fun a => ¬ G.Adj a c) := by
          ext a
          simp only [Finset.mem_filter, Finset.mem_erase]
          constructor
          · rintro ⟨⟨_,ha⟩,hn⟩; exact ⟨ha,hn⟩
          · rintro ⟨ha,hn⟩
            refine ⟨⟨?_,ha⟩,hn⟩
            intro h
            subst a
            exact hn hxc
        rw [heq]
        omega
Finset.card_pos.mpr
A finite set has strictly positive cardinality if and only if it is nonempty.
Finset.mem_filter.mpr
An element belongs to a filtered subset {x ∈ s | p x} if it belongs to s and satisfies p.
four_by_five_defect_incidence_impossible
No bipartite relation between a 4-element set and a 5-element set can simultaneously have every element of the 4-element set related to at most 2 elements and every element of the 5-element set related to at least 2 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 s.erase b, then it is not equal to b and belongs to s.
Finset.disjoint_left.mp
If two sets are disjoint, any element of the first set is not in the second set.
anticomplete_neighbor_defect_bound
In a graph of order |B| + d + 1 where a vertex x ∉ B has no neighbors in B and degree at least d - r, the number of non-neighbors of x outside B ∪ {x} is at most r.
le_trans
The preorder relation ≤ is transitive: a ≤ b and b ≤ c imply a ≤ c.
Finset.card_le_card
If s ⊆ t for finite sets s and t, then |s| ≤ |t|.
Finset.mem_filter
An element belongs to {x ∈ s | p x} if and only if it belongs to s and satisfies p.
Finset.mem_sdiff
An element belongs to s \ t if and only if it belongs to s and does not belong to t.
Finset.mem_erase
An element belongs to s.erase b if and only if it is not equal to b and belongs to s.
Finset.mem_univ
Every element of a finite type belongs to the universal finset Finset.univ.
true_and
The conjunction True ∧ p is logically 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_blocks_essential_edge_cross_defect_pattern
In the four-block partition with an essential edge xy between x ∈ A and y ∈ C, if x has at most 1 non-neighbor in C, then y has exactly 2 non-neighbors in A.

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_blocks_minimal_no_full_cross    (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)    (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)    (hmin : is_minimally_k_extendable G k) :    ∀ x ∈ A, 1 ≤ (C.filter (fun c => ¬ G.Adj x c)).card := by  classical  intro x hx  by_contra hn  have hz : (C.filter (fun c => ¬ G.Adj x c)).card = 0 := by omega  have hfull : ∀ c ∈ C, G.Adj x c := by    intro c hc    by_contra h    have hp : 0 < (C.filter (fun c => ¬ G.Adj x c)).card :=      Finset.card_pos.mpr ⟨c, Finset.mem_filter.mpr ⟨hc,h⟩⟩    omega  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 hbudget := anticomplete_neighbor_defect_bound G B a haB (hnoAB a haA)      (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 hxc := hfull c hc    have he : ¬ is_k_extendable (G.deleteEdges {s(x,c)}) k :=      hmin.2 s(x,c) (by simpa using hxc)    have hp := boundary_five_blocks_essential_edge_cross_defect_pattern k hk G A B C D      hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD hnoAB hnoCD hdegree hsep      hmin.1 x c hx hc hxc he    have hc2 := hp.2 (by omega)    have heq : (A.erase x).filter (fun a => ¬ G.Adj a c) = A.filter (fun a => ¬ G.Adj a c) := by      ext a      simp only [Finset.mem_filter, Finset.mem_erase]      constructor      · rintro ⟨⟨_,ha⟩,hn⟩; exact ⟨ha,hn⟩      · rintro ⟨ha,hn⟩        refine ⟨⟨?_,ha⟩,hn⟩        intro h        subst a        exact hn hxc    rw [heq]    omega
See it in the graphDiscuss this resultChallenge it