AFTD Auto-Formalizing Theoretical Domains

minimally_k_extendable_five_odd_block_degree_bound_with_separator

theoremverifiedoriginal

For every odd natural number c at least seven and every k at least c, let G be a connected minimally k-extendible graph on 4k vertices, with decidable adjacency. Suppose the vertices partition into pairwise disjoint sets A, B, C, D of sizes 5, 2k−5, c and 2k−c respectively, with A anticomplete to B, C anticomplete to D, and the induced B-block graph 1-factor-critical. Assume that every partition into pairwise disjoint sets X, U, V covering all vertices, with U and V nonempty and anticomplete, has |X| at least 2k. Then G has a vertex of degree at most 2k+1.

Statement

theorem minimally_k_extendable_five_odd_block_degree_bound_with_separator
    (k c : ℕ) (hc : 7 ≤ c) (hcodd : Odd c) (hkc : c ≤ k)
    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (hconn : G.Connected) (hmin : is_minimally_k_extendable G k)
    (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) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)
    (hcritB : is_k_factor_critical (G.induce {v | v ∈ B}) 1)
    (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) :
    ∃ v, (G.neighborFinset v).card ≤ 2*k+1
Related work
OP-1957: conditional five-by-arbitrary-odd-block boundary degree route.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8

Read back from the Lean

Let $k$ and $c$ be natural numbers satisfying $7 \le c$, $c$ is odd, and $c \le k$. Let $G$ be a connected simple graph on the vertex set $\mathrm{Fin}(4k)$ with decidable adjacency. Assume that $G$ is minimally $k$-extendable. Let $A, B, C, D$ be pairwise disjoint finsets of $\mathrm{Fin}(4k)$ whose union is the entire vertex set $\mathrm{Fin}(4k)$, with cardinalities: - $|A| = 5$ - $|B| = 2k - 5$ - $|C| = c$ - $|D| = 2k - c$ Assume there are no edges in $G$ between $A$ and $B$ (for all $a \in A$ and $b \in B$, $\neg G.\mathrm{Adj}(a, b)$). Assume there are no edges in $G$ between $C$ and $D$ (for all $c' \in C$ and $d \in D$, $\neg G.\mathrm{Adj}(c', d)$). Assume that the subgraph induced by $G$ on $B$ is 1-factor-critical. Assume that every vertex separator partitioning the remaining vertices into two nonempty sets has size at least $2k$: for all finsets $X, U, V \subseteq \mathrm{Fin}(4k)$, if $U \neq \emptyset$, $V \neq \emptyset$, $X, U, V$ are pairwise disjoint, $X \cup U \cup V = \mathrm{Finset.univ}$, and there are no edges between $U$ and $V$, then $|X| \ge 2k$. Then there exists a vertex $v \in \mathrm{Fin}(4k)$ whose degree in $G$ (the cardinality of its neighbor finset) is at most $2k + 1$.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The theorem is proved by contradiction: suppose every vertex of G has degree at least 2k+2. Choosing a vertex x ∈ A, the anticomplete condition between A and B leaves x with at most two non-neighbors outside B ∪ {x}, which implies x has at most two non-neighbors in C. However, a structural lemma for minimally k-extendible graphs (op1957_one_defect_impossible_minimal) forces x to have at least two non-neighbors in C, so x has exactly two non-neighbors in C and is adjacent to every vertex in (A \ {x}) ∪ D. This fully saturated configuration with defect 2 contradicts boundary_five_odd_saturated_two_defect_minimal_contradiction.

  1. Assuming no vertex has degree at most 2k+1, every vertex v has degree at least 2k+2.

    We proceed by contradiction. Negating the existential statement that some vertex has degree at most 2k+1 implies that every vertex has degree strictly greater than 2k+1, which means degree at least 2k+2 by integer arithmetic.

    lines 17–23

      classical
      by_contra hnone
      push_neg at hnone
      have hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card := by
        intro v
        have hh := hnone v
        omega
  2. There exists a vertex x ∈ A.

    Since |A| = 5 > 0, the set A is nonempty, so we may choose an element x ∈ A.

    lines 24–27

    uses Finset.card_pos.mp

      have hAlarge : A.Nonempty := by
        apply Finset.card_pos.mp
        omega
      obtain ⟨x,hx⟩ := hAlarge
  3. The set Q of non-neighbors of x outside B ∪ {x} has cardinality at most 2.

    We define P to be the set of non-neighbors of x in C, and Q to be the set of non-neighbors of x in the complement of B ∪ {x}. Since A and B are disjoint, x ∉ B. Since A is anticomplete to B, x has no neighbors in B. The total vertex count is 4k and |B| = 2k-5, so the size of the complement (V \ B) \ {x} is 2k+4. Because deg(x) ≥ 2k+2, the defect bound lemma anticomplete_neighbor_defect_bound shows that x can have at most (2k+4) - (2k+2) = 2 non-neighbors outside B ∪ {x}, so |Q| ≤ 2.

    lines 28–32

    uses Finset.disjoint_left.mp, anticomplete_neighbor_defect_bound, Fintype.card_fin

      let P := C.filter (fun y => ¬ G.Adj x y)
      let Q := ((Finset.univ \ B).erase x) \ G.neighborFinset x
      have hxB : x ∉ B := fun h => Finset.disjoint_left.mp hAB hx h
      have hbudget : Q.card ≤ 2 := anticomplete_neighbor_defect_bound G B x hxB (hnoAB x hx)
        (2*k+4) 2 (by simp only [Fintype.card_fin]; omega) (by have := hdegree x; omega)
  4. The set P of non-neighbors of x in C is a subset of Q.

    Let y ∈ P, so y ∈ C and x is not adjacent to y. Since C is disjoint from B, y ∉ B. Since A and C are disjoint and x ∈ A, y ≠ x. Thus y belongs to (V \ B) \ {x}, and since it is not adjacent to x, it belongs to Q.

    lines 33–39

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

      have hPsub : P ⊆ Q := by
        intro y hy
        have hy' := Finset.mem_filter.mp hy
        have hyB : y ∉ B := fun h => Finset.disjoint_left.mp hBC h hy'.1
        have hyx : y ≠ x := fun h => Finset.disjoint_left.mp hAC hx (h ▸ hy'.1)
        simp only [Q,Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinset]
        exact ⟨⟨hyx,hyB⟩,hy'.2⟩
  5. |P| = 2 and P = Q.

    By lemma op1957_one_defect_impossible_minimal, every vertex in A has at least 2 non-neighbors in C, so |P| ≥ 2. Since P ⊆ Q and |Q| ≤ 2, we obtain 2 ≤ |P| ≤ |Q| ≤ 2, forcing |P| = 2 and |Q| = 2. A subset with the same cardinality as the ambient finite set must equal it, so P = Q.

    lines 40–46

    uses op1957_one_defect_impossible_minimal, Finset.card_le_card, Finset.eq_of_subset_of_card_le

      have hlower := op1957_one_defect_impossible_minimal k c hc hcodd hkc G A B C D
        hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hcritB hdegree hsep hmin x hx
      have hPcard : P.card=2 := by
        have hh := Finset.card_le_card hPsub
        change 2 ≤ P.card at hlower
        omega
      have hPQ : P=Q := Finset.eq_of_subset_of_card_le hPsub (by omega)
  6. P = {p, q} for distinct p, q ∈ C not adjacent to x, and x is adjacent to every other vertex of C.

    Since |P| = 2, we can write P = {p, q} for distinct elements p, q ∈ C, neither of which is adjacent to x. Any other element y ∈ C cannot belong to P, meaning it cannot be a non-neighbor of x, so x is adjacent to y.

    lines 47–59

    uses Finset.card_eq_two.mp, Finset.mem_filter.mp, Finset.mem_filter.mpr

      obtain ⟨p,q,hpq,hP⟩ := Finset.card_eq_two.mp hPcard
      have hpP : p ∈ P := by rw [hP]; simp
      have hqP : q ∈ P := by rw [hP]; simp
      have hpC : p ∈ C := (Finset.mem_filter.mp hpP).1
      have hqC : q ∈ C := (Finset.mem_filter.mp hqP).1
      have hxp : ¬ G.Adj x p := (Finset.mem_filter.mp hpP).2
      have hxq : ¬ G.Adj x q := (Finset.mem_filter.mp hqP).2
      have hfull : ∀ y ∈ C, y ≠ p → y ≠ q → G.Adj x y := by
        intro y hy hyp hyq
        by_contra h
        have hyP : y ∈ P := Finset.mem_filter.mpr ⟨hy,h⟩
        rw [hP] at hyP
        simp [hyp,hyq] at hyP
  7. x is adjacent to every vertex in A \ {x} and to every vertex in D.

    If any a ∈ A with a ≠ x were not adjacent to x, then since a ∉ B, a would belong to Q. But Q = P ⊆ C, which would imply a ∈ C, contradicting the disjointness of A and C. Likewise, if any d ∈ D were not adjacent to x, then since d ∉ B and d ≠ x, d would belong to Q = P ⊆ C, contradicting the disjointness of C and D. Therefore, x is adjacent to all vertices in A \ {x} and all vertices in D.

    lines 60–80

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

      have hsatA : ∀ a ∈ A, a ≠ x → G.Adj x a := by
        intro a ha hax
        by_contra h
        have haB : a ∉ B := fun hb => Finset.disjoint_left.mp hAB ha hb
        have haQ : a ∈ Q := by
          simp only [Q,Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinset]
          exact ⟨⟨hax,haB⟩,h⟩
        have haP : a ∈ P := by rw [hPQ]; exact haQ
        have haC := (Finset.mem_filter.mp haP).1
        exact Finset.disjoint_left.mp hAC ha haC
      have hsatD : ∀ d ∈ D, G.Adj x d := by
        intro d hd
        by_contra h
        have hdB : d ∉ B := fun hb => Finset.disjoint_left.mp hBD hb hd
        have hdx : d ≠ x := fun he => Finset.disjoint_left.mp hAD hx (he ▸ hd)
        have hdQ : d ∈ Q := by
          simp only [Q,Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinset]
          exact ⟨⟨hdx,hdB⟩,h⟩
        have hdP : d ∈ P := by rw [hPQ]; exact hdQ
        have hdC := (Finset.mem_filter.mp hdP).1
        exact Finset.disjoint_left.mp hCD hdC hd
  8. False.

    We have established the existence of a vertex x ∈ A that has exactly two non-neighbors in C and is fully adjacent to (A \ {x}) ∪ D. Lemma boundary_five_odd_saturated_two_defect_minimal_contradiction proves that such a configuration cannot exist under the given hypotheses, producing the desired contradiction.

    lines 81–83

    uses boundary_five_odd_saturated_two_defect_minimal_contradiction

      exact boundary_five_odd_saturated_two_defect_minimal_contradiction k c hc hcodd hkc G A B C D
        hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hcritB hdegree hsep hmin
        x p q hx hpC hqC hpq hxp hxq hfull hsatA hsatD
Finset.card_pos.mp
A finite set with strictly positive cardinality is nonempty.
Finset.disjoint_left.mp
If two sets are disjoint, an element belonging to the first cannot belong to the second.
anticomplete_neighbor_defect_bound
If a vertex x is not in B and has no neighbors in B, the total number of vertices is |B| + d + 1, and the degree of x is at least d - r, then the number of non-neighbors of x outside B ∪ {x} is at most r.
Fintype.card_fin
The cardinality of the standard finite type Fin n is n.
Finset.mem_filter.mp
An element in a filtered set belongs to the original set and satisfies the filtering predicate.
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 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.
true_and
Conjunction of True with any proposition p is equivalent to p.
SimpleGraph.mem_neighborFinset
A vertex w is in the neighbor set of v if and only if v and w are adjacent in G.
op1957_one_defect_impossible_minimal
In a minimally k-extendible graph satisfying the theorem's partition and separator assumptions and with minimum degree at least 2k+2, every vertex in A has at least 2 non-neighbors in 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 larger set.
Finset.eq_of_subset_of_card_le
If s is a subset of t and |t| ≤ |s|, then s = t.
Finset.card_eq_two.mp
A finite set has cardinality 2 if and only if it consists of two distinct elements.
Finset.mem_filter.mpr
If an element belongs to s and satisfies predicate p, then it belongs to the filter of s by p.
boundary_five_odd_saturated_two_defect_minimal_contradiction
Under the theorem's assumptions and minimum degree at least 2k+2, no vertex in A can have exactly two non-neighbors in C while being fully adjacent to (A \ {x}) ∪ D.

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 minimally_k_extendable_five_odd_block_degree_bound_with_separator    (k c : ℕ) (hc : 7 ≤ c) (hcodd : Odd c) (hkc : c ≤ k)    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (hconn : G.Connected) (hmin : is_minimally_k_extendable G k)    (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) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)    (hcritB : is_k_factor_critical (G.induce {v | v ∈ B}) 1)    (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) :    ∃ v, (G.neighborFinset v).card ≤ 2*k+1 := by  classical  by_contra hnone  push_neg at hnone  have hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card := by    intro v    have hh := hnone v    omega  have hAlarge : A.Nonempty := by    apply Finset.card_pos.mp    omega  obtain ⟨x,hx⟩ := hAlarge  let P := C.filter (fun y => ¬ G.Adj x y)  let Q := ((Finset.univ \ B).erase x) \ G.neighborFinset x  have hxB : x ∉ B := fun h => Finset.disjoint_left.mp hAB hx h  have hbudget : Q.card ≤ 2 := anticomplete_neighbor_defect_bound G B x hxB (hnoAB x hx)    (2*k+4) 2 (by simp only [Fintype.card_fin]; omega) (by have := hdegree x; omega)  have hPsub : P ⊆ Q := by    intro y hy    have hy' := Finset.mem_filter.mp hy    have hyB : y ∉ B := fun h => Finset.disjoint_left.mp hBC h hy'.1    have hyx : y ≠ x := fun h => Finset.disjoint_left.mp hAC hx (h ▸ hy'.1)    simp only [Q,Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinset]    exact ⟨⟨hyx,hyB⟩,hy'.2⟩  have hlower := op1957_one_defect_impossible_minimal k c hc hcodd hkc G A B C D    hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hcritB hdegree hsep hmin x hx  have hPcard : P.card=2 := by    have hh := Finset.card_le_card hPsub    change 2 ≤ P.card at hlower    omega  have hPQ : P=Q := Finset.eq_of_subset_of_card_le hPsub (by omega)  obtain ⟨p,q,hpq,hP⟩ := Finset.card_eq_two.mp hPcard  have hpP : p ∈ P := by rw [hP]; simp  have hqP : q ∈ P := by rw [hP]; simp  have hpC : p ∈ C := (Finset.mem_filter.mp hpP).1  have hqC : q ∈ C := (Finset.mem_filter.mp hqP).1  have hxp : ¬ G.Adj x p := (Finset.mem_filter.mp hpP).2  have hxq : ¬ G.Adj x q := (Finset.mem_filter.mp hqP).2  have hfull : ∀ y ∈ C, y ≠ p → y ≠ q → G.Adj x y := by    intro y hy hyp hyq    by_contra h    have hyP : y ∈ P := Finset.mem_filter.mpr ⟨hy,h⟩    rw [hP] at hyP    simp [hyp,hyq] at hyP  have hsatA : ∀ a ∈ A, a ≠ x → G.Adj x a := by    intro a ha hax    by_contra h    have haB : a ∉ B := fun hb => Finset.disjoint_left.mp hAB ha hb    have haQ : a ∈ Q := by      simp only [Q,Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinset]      exact ⟨⟨hax,haB⟩,h⟩    have haP : a ∈ P := by rw [hPQ]; exact haQ    have haC := (Finset.mem_filter.mp haP).1    exact Finset.disjoint_left.mp hAC ha haC  have hsatD : ∀ d ∈ D, G.Adj x d := by    intro d hd    by_contra h    have hdB : d ∉ B := fun hb => Finset.disjoint_left.mp hBD hb hd    have hdx : d ≠ x := fun he => Finset.disjoint_left.mp hAD hx (he ▸ hd)    have hdQ : d ∈ Q := by      simp only [Q,Finset.mem_sdiff,Finset.mem_erase,Finset.mem_univ,true_and,SimpleGraph.mem_neighborFinset]      exact ⟨⟨hdx,hdB⟩,h⟩    have hdP : d ∈ P := by rw [hPQ]; exact hdQ    have hdC := (Finset.mem_filter.mp hdP).1    exact Finset.disjoint_left.mp hCD hdC hd  exact boundary_five_odd_saturated_two_defect_minimal_contradiction k c hc hcodd hkc G A B C D    hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD hcritB hdegree hsep hmin    x p q hx hpC hqC hpq hxp hxq hfull hsatA hsatD
See it in the graphDiscuss this resultChallenge it