AFTD Auto-Formalizing Theoretical Domains

op1957_dense_balanced_half_conditions_do_not_force_separator

theoremverified

There is a graph on 16 vertices of minimum degree at least 10 and independence number at most two, whose every induced subgraph has at most two odd components and whose every eight-vertex induced subgraph has a matching of at least three edges, yet which has a seven-vertex separator and is not 4-extendible.

Statement

theorem op1957_dense_balanced_half_conditions_do_not_force_separator :
    ∃ G : SimpleGraph (Fin 16),
    (∀ v : Fin 16, ∃ N : Finset (Fin 16), 10 ≤ N.card ∧ ∀ u ∈ N, G.Adj v u) ∧
    (∀ I : Finset (Fin 16),
      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ 2) ∧
    (∀ C : Finset (Fin 16),
      (G.induce {v | v ∈ C}).oddComponents.ncard ≤ 2) ∧
    (∀ C : Finset (Fin 16), C.card = 8 →
      ∃ M : G.Subgraph, M.IsMatching ∧ M.verts ⊆ (C : Set (Fin 16)) ∧
        3 ≤ M.edgeSet.ncard) ∧
    (∃ X U V : Finset (Fin 16), X.card=7 ∧ 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)) ∧
    ¬ is_k_extendable G 4
Source
OP-1957: clique-join control for the separator-transfer route; experiment 42155.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8
  • 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…
  • extendible_two_odd_anticomplete_shores_complement_unmatchableIn a finite k-extendible graph, if disjoint odd vertex sets T and N are anticomplete and their complement has 2k vertices, that complement…
  • perfect_matching_of_adjacency_involutionA simple graph has a perfect matching if it has an involution that sends every vertex to an adjacent vertex.
  • induced_odd_components_le_independenceThe number of odd components of an induced finite graph is at most the independence bound of the ambient graph.
  • finite_subset_has_maximum_matchingEvery vertex subset of a finite graph contains a maximum matching.
  • maximum_matching_size_from_independenceA maximum matching inside S covers enough vertices that |S| is at most twice its edge count plus the independence bound.
  • MFor a group $G$, $M$ is the set of elements $s \in G \setminus \{1\}$ such that $c_G(x) \le c_G(s)$ for all $x \in G \setminus \{1\}$.
  • cFor a group $G$ and an element $s \in G$, the local count $c_G(s)$ is the cardinality of the set of elements $g \in G$ such that…

The proof, explained

The theorem is established by constructing an explicit graph separatorControl on 16 vertices, defined by taking the complete graph on 16 vertices and deleting all edges between U = {0, 1, 2, 3} and V = {4, 5, 6, 7, 8}. Because X = {9, ..., 15} has size 7 and completely separates U from V, X serves as a 7-vertex separator, while the high connectivity to X ensures minimum degree at least 10 and independence number at most 2. General bounds relating the independence number to odd components and matching sizes immediately guarantee that every induced subgraph has at most 2 odd components and every 8-vertex subgraph has a matching of size at least 3. Finally, the graph is not 4-extendable because deleting the odd anticomplete sets P = {1, 2, 3} and Q = {4, 5, 6, 7, 8} leaves an 8-vertex subgraph that admits an explicit perfect matching via a fixed-point-free involution, violating the odd-shore obstruction to extendability.

  1. The graph separatorControl is well-defined: its adjacency relation is symmetric and loopless (irreflexive).

    Adjacency is defined as being distinct and not belonging to the forbidden cross-pair relation between {0, 1, 2, 3} and {4, 5, 6, 7, 8}. Symmetry follows because distinctness is symmetric and the forbidden condition is symmetric by commutativity of disjunction (or_comm). Looplessness holds because no vertex is distinct from itself.

    lines 4–7

    uses or_comm

      symm := ⟨by
        intro u v h
        exact ⟨h.1.symm, by simpa [or_comm] using h.2⟩⟩
      loopless := ⟨by intro v h; exact h.1 rfl⟩
  2. Adjacency in separatorControl is decidable.

    Unfolding the definition expresses adjacency as boolean combinations of decidable inequalities on Fin 16, which Lean infers automatically.

    lines 9–11

    local instance  aftdLocal_f875dc8b2a91628b_0 : DecidableRel separatorControl.Adj := by
      unfold separatorControl
      infer_instance
  3. Assume for contradiction that separatorControl is 4-extendable; then P = {1, 2, 3} and Q = {4, 5, 6, 7, 8} are disjoint odd-sized sets with no edges between them.

    We introduce the assumption that the graph is 4-extendable to derive a contradiction. By direct computation (decide), |P| = 3 is odd, |Q| = 5 is odd, P and Q are disjoint, and there are no edges between any vertex in P and any vertex in Q because all edges between {0, 1, 2, 3} and {4, 5, 6, 7, 8} were deleted in separatorControl.

    lines 21–27

    theorem in1238_separator_control_not_extendible : ¬ is_k_extendable separatorControl 4 := by
      classical
      intro hext
      have hp : P.card % 2 = 1 := by decide
      have hq : Q.card % 2 = 1 := by decide
      have hd : Disjoint P Q := by decide
      have hcross : ∀ a ∈ P, ∀ b ∈ Q, ¬ separatorControl.Adj a b := by decide
  4. The complement of P ∪ Q is the 8-element set W = {0, 9, 10, 11, 12, 13, 14, 15}, so its cardinality is 2 × 4.

    By exhaustive case analysis over all 16 vertices of Fin 16, the vertices not in P and not in Q are exactly the elements of W. Converting the finset cardinality to set cardinality via Set.ncard_coe_finset, computation confirms that |W| = 8 = 2 × 4.

    lines 28–35

    uses Set.ncard_coe_finset

      have heq : ({v : Fin 16 | v ∉ P ∧ v ∉ Q} : Set (Fin 16)) = W := by
        ext v
        fin_cases v <;> simp [P,Q,W,Wfin]
      have hw : ({v : Fin 16 | v ∉ P ∧ v ∉ Q} : Set (Fin 16)).ncard = 2*4 := by
        rw [heq]
        change (Wfin : Set (Fin 16)).ncard = 2*4
        rw [Set.ncard_coe_finset]
        decide
  5. The induced subgraph on W cannot have a perfect matching.

    We apply extendible_two_odd_anticomplete_shores_complement_unmatchable to separatorControl with k = 4, using the assumption of 4-extendability and the two disjoint, mutually anticomplete odd sets P and Q. Since the complement W has size 2 × 4 = 8, the lemma implies that the induced subgraph on W has no perfect matching.

    lines 36–37

    uses extendible_two_odd_anticomplete_shores_complement_unmatchable

      have hn := extendible_two_odd_anticomplete_shores_complement_unmatchable separatorControl 4 hext P Q hp hq hd hcross hw
      rw [heq] at hn
  6. The function mate restricts to a fixed-point-free involution f on W such that every vertex in W is adjacent to its mate.

    The function mate swaps 0 with 15, 9 with 10, 11 with 12, and 13 with 14, while fixing other vertices. By finite exhaustion (fin_cases) over all 16 vertices, we verify that mate maps W into W, that its restriction f to W is an involution (Subtype.ext), and that each vertex v ∈ W is adjacent to f(v) in the induced subgraph on W.

    lines 38–53

    uses Subtype.ext

      let f (v : W) : W := ⟨mate v.val, by
        rcases v with ⟨v,hv⟩
        change v ∈ Wfin at hv
        change mate v ∈ Wfin
        fin_cases v <;> simp [Wfin,mate] at hv ⊢⟩
      have hi : Function.Involutive f := by
        intro v
        apply Subtype.ext
        rcases v with ⟨v,hv⟩
        fin_cases v <;> simp [f,mate]
      have ha : ∀ v : W, (separatorControl.induce W).Adj v (f v) := by
        intro v
        rcases v with ⟨v,hv⟩
        change v ∈ Wfin at hv
        change separatorControl.Adj v (mate v)
        fin_cases v <;> simp [Wfin,separatorControl,mate] at hv ⊢
  7. Contradiction: separatorControl is not 4-extendable.

    By perfect_matching_of_adjacency_involution, the fixed-point-free involution f whose edges all belong to separatorControl induces a perfect matching on W. This contradicts the unmatchability of W proven in step 5, concluding that separatorControl is not 4-extendable.

    line 54

    uses perfect_matching_of_adjacency_involution

      exact hn (perfect_matching_of_adjacency_involution _ f hi ha)
  8. The minimum degree of separatorControl is at least 10, every three vertices contain at least one edge, and therefore the independence number is at most 2.

    Exhaustive evaluation (decide) verifies that every vertex has at least 10 neighbors and that every triple of distinct vertices contains at least one edge (htriangle). If an independent set I had size greater than 2, Finset.two_lt_card.mp would provide three distinct vertices in I, which by htriangle must contain an edge, contradicting independence.

    lines 72–84

    uses Finset.two_lt_card.mp

      classical
      have hdeg : ∀ v : Fin 16, 10 ≤ (separatorControl.neighborFinset v).card := by decide
      have htriangle : ∀ x y z : Fin 16, x ≠ y → x ≠ z → y ≠ z →
          separatorControl.Adj x y ∨ separatorControl.Adj x z ∨ separatorControl.Adj y z := by decide
      have hind : ∀ I : Finset (Fin 16),
          (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ separatorControl.Adj u v) → I.card ≤ 2 := by
        intro I hI
        by_contra h
        obtain ⟨a,ha,b,hb,c,hc,hab,hac,hbc⟩ := Finset.two_lt_card.mp (by omega : 2 < I.card)
        rcases htriangle a b c hab hac hbc with hab' | hac' | hbc'
        · exact hI a ha b hb hab hab'
        · exact hI a ha c hc hac hac'
        · exact hI b hb c hc hbc hbc'
  9. Every vertex in separatorControl has degree at least 10.

    We break the main conjunction into subgoals, supplying the independence bound α ≤ 2 and the non-extendability result in1238_separator_control_not_extendible. For the minimum degree goal, each vertex v is provided with its neighbor finset neighborFinset v, which has size at least 10 by the earlier check, and every element is indeed adjacent to v.

    lines 85–89

    uses in1238_separator_control_not_extendible

      refine ⟨?_,hind,?_,?_,?_,in1238_separator_control_not_extendible⟩
      · intro v
        refine ⟨separatorControl.neighborFinset v,hdeg v,?_⟩
        intro u hu
        simpa using hu
  10. Every induced subgraph of separatorControl has at most two odd components.

    By induced_odd_components_le_independence, the number of odd components of any induced subgraph is bounded above by the graph's independence number, which was shown to be at most 2.

    lines 90–91

    uses induced_odd_components_le_independence

      · intro C
        exact induced_odd_components_le_independence separatorControl {v | v ∈ C} 2 hind
  11. Every 8-vertex induced subgraph has a matching of at least 3 edges.

    For any subset C of size 8, finite_subset_has_maximum_matching yields a maximum matching M in C. Then maximum_matching_size_from_independence gives |C| ≤ 2|M| + α(G) ≤ 2|M| + 2. Since |C| = 8, linear arithmetic (omega) deduces 3 ≤ |M|.

    lines 92–95

    uses finite_subset_has_maximum_matching, maximum_matching_size_from_independence

      · intro C hC
        obtain ⟨M,hM,hMC,hmax⟩ := finite_subset_has_maximum_matching separatorControl C
        have hh := maximum_matching_size_from_independence separatorControl C M hM hMC hmax 2 hind
        exact ⟨M,hM,hMC,by omega⟩
  12. There exists a 7-vertex separator dividing the graph into two non-empty anticomplete components.

    We provide the explicit candidate partition X = {9, 10, 11, 12, 13, 14, 15}, U = {0, 1, 2, 3}, and V = {4, 5, 6, 7, 8}. Direct computation (decide) verifies that |X| = 7, U and V are non-empty, the three sets are mutually disjoint, their union is the entire vertex set, and there are no edges between U and V.

    line 96

      · refine ⟨{9,10,11,12,13,14,15},{0,1,2,3},{4,5,6,7,8},?_,?_,?_,?_,?_,?_,?_,?_⟩ <;> decide
  13. There exists a graph on 16 vertices satisfying all the stated properties.

    We witness the graph separatorControl. The conjunction of all required properties holds by in1238_separator_control_properties.

    line 112

    uses in1238_separator_control_properties

      exact ⟨separatorControl, in1238_separator_control_properties⟩
or_comm
Disjunction is commutative: a ∨ b ↔ b ∨ a.
Set.ncard_coe_finset
The set cardinality (ncard) of a coerced finset equals the finset cardinality (card).
extendible_two_odd_anticomplete_shores_complement_unmatchable
In a k-extendable graph, the complement of two disjoint, mutually anticomplete sets of odd cardinality whose complement has size 2k cannot have a perfect matching.
Subtype.ext
Two elements of a subtype are equal if and only if their underlying values are equal.
perfect_matching_of_adjacency_involution
If a graph has an involution on its vertices mapping each vertex to an adjacent neighbor, the graph has a perfect matching.
Finset.two_lt_card.mp
A finite set with cardinality strictly greater than 2 contains at least three distinct elements.
in1238_separator_control_not_extendible
The graph separatorControl is not 4-extendable.
induced_odd_components_le_independence
The number of odd connected components of an induced subgraph is at most the independence number of the ambient graph.
finite_subset_has_maximum_matching
Every finite vertex subset in a graph has a maximum matching among subgraphs supported on that subset.
maximum_matching_size_from_independence
For any vertex subset S and maximum matching M supported on S, the size of S is at most 2|M| plus the independence number.
in1238_separator_control_properties
The graph separatorControl has minimum degree at least 10, independence number at most 2, at most 2 odd components in any induced subgraph, a matching of size at least 3 in every 8-vertex subgraph, a 7-vertex separator, and is not 4-extendable.

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

private def separatorControl : SimpleGraph (Fin 16) where  Adj u v := u ≠ v ∧ ¬ ((u.val < 4 ∧ 4 ≤ v.val ∧ v.val < 9) ∨                         (v.val < 4 ∧ 4 ≤ u.val ∧ u.val < 9))  symm := ⟨by    intro u v h    exact ⟨h.1.symm, by simpa [or_comm] using h.2⟩⟩  loopless := ⟨by intro v h; exact h.1 rfl⟩local instance  aftdLocal_f875dc8b2a91628b_0 : DecidableRel separatorControl.Adj := by  unfold separatorControl  infer_instanceprivate def P : Finset (Fin 16) := {1,2,3}private def Q : Finset (Fin 16) := {4,5,6,7,8}private def Wfin : Finset (Fin 16) := {0,9,10,11,12,13,14,15}private def W : Set (Fin 16) := {v | v ∈ Wfin}private def mate : Fin 16 → Fin 16 :=  ![15,1,2,3,4,5,6,7,8,10,9,12,11,14,13,0]set_option maxHeartbeats 4000000 intheorem in1238_separator_control_not_extendible : ¬ is_k_extendable separatorControl 4 := by  classical  intro hext  have hp : P.card % 2 = 1 := by decide  have hq : Q.card % 2 = 1 := by decide  have hd : Disjoint P Q := by decide  have hcross : ∀ a ∈ P, ∀ b ∈ Q, ¬ separatorControl.Adj a b := by decide  have heq : ({v : Fin 16 | v ∉ P ∧ v ∉ Q} : Set (Fin 16)) = W := by    ext v    fin_cases v <;> simp [P,Q,W,Wfin]  have hw : ({v : Fin 16 | v ∉ P ∧ v ∉ Q} : Set (Fin 16)).ncard = 2*4 := by    rw [heq]    change (Wfin : Set (Fin 16)).ncard = 2*4    rw [Set.ncard_coe_finset]    decide  have hn := extendible_two_odd_anticomplete_shores_complement_unmatchable separatorControl 4 hext P Q hp hq hd hcross hw  rw [heq] at hn  let f (v : W) : W := ⟨mate v.val, by    rcases v with ⟨v,hv⟩    change v ∈ Wfin at hv    change mate v ∈ Wfin    fin_cases v <;> simp [Wfin,mate] at hv ⊢⟩  have hi : Function.Involutive f := by    intro v    apply Subtype.ext    rcases v with ⟨v,hv⟩    fin_cases v <;> simp [f,mate]  have ha : ∀ v : W, (separatorControl.induce W).Adj v (f v) := by    intro v    rcases v with ⟨v,hv⟩    change v ∈ Wfin at hv    change separatorControl.Adj v (mate v)    fin_cases v <;> simp [Wfin,separatorControl,mate] at hv ⊢  exact hn (perfect_matching_of_adjacency_involution _ f hi ha)set_option maxHeartbeats 4000000 intheorem in1238_separator_control_properties :    (∀ v : Fin 16, ∃ N : Finset (Fin 16), 10 ≤ N.card ∧ ∀ u ∈ N, separatorControl.Adj v u) ∧    (∀ I : Finset (Fin 16),      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ separatorControl.Adj u v) → I.card ≤ 2) ∧    (∀ C : Finset (Fin 16),      (separatorControl.induce {v | v ∈ C}).oddComponents.ncard ≤ 2) ∧    (∀ C : Finset (Fin 16), C.card = 8 →      ∃ M : separatorControl.Subgraph, M.IsMatching ∧ M.verts ⊆ (C : Set (Fin 16)) ∧        3 ≤ M.edgeSet.ncard) ∧    (∃ X U V : Finset (Fin 16), X.card=7 ∧ U.Nonempty ∧ V.Nonempty ∧      Disjoint X U ∧ Disjoint X V ∧ Disjoint U V ∧ X ∪ U ∪ V = Finset.univ ∧      (∀ u ∈ U, ∀ v ∈ V, ¬ separatorControl.Adj u v)) ∧    ¬ is_k_extendable separatorControl 4 := by  classical  have hdeg : ∀ v : Fin 16, 10 ≤ (separatorControl.neighborFinset v).card := by decide  have htriangle : ∀ x y z : Fin 16, x ≠ y → x ≠ z → y ≠ z →      separatorControl.Adj x y ∨ separatorControl.Adj x z ∨ separatorControl.Adj y z := by decide  have hind : ∀ I : Finset (Fin 16),      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ separatorControl.Adj u v) → I.card ≤ 2 := by    intro I hI    by_contra h    obtain ⟨a,ha,b,hb,c,hc,hab,hac,hbc⟩ := Finset.two_lt_card.mp (by omega : 2 < I.card)    rcases htriangle a b c hab hac hbc with hab' | hac' | hbc'    · exact hI a ha b hb hab hab'    · exact hI a ha c hc hac hac'    · exact hI b hb c hc hbc hbc'  refine ⟨?_,hind,?_,?_,?_,in1238_separator_control_not_extendible⟩  · intro v    refine ⟨separatorControl.neighborFinset v,hdeg v,?_⟩    intro u hu    simpa using hu  · intro C    exact induced_odd_components_le_independence separatorControl {v | v ∈ C} 2 hind  · intro C hC    obtain ⟨M,hM,hMC,hmax⟩ := finite_subset_has_maximum_matching separatorControl C    have hh := maximum_matching_size_from_independence separatorControl C M hM hMC hmax 2 hind    exact ⟨M,hM,hMC,by omega⟩  · refine ⟨{9,10,11,12,13,14,15},{0,1,2,3},{4,5,6,7,8},?_,?_,?_,?_,?_,?_,?_,?_⟩ <;> decidetheorem op1957_dense_balanced_half_conditions_do_not_force_separator :    ∃ G : SimpleGraph (Fin 16),    (∀ v : Fin 16, ∃ N : Finset (Fin 16), 10 ≤ N.card ∧ ∀ u ∈ N, G.Adj v u) ∧    (∀ I : Finset (Fin 16),      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ 2) ∧    (∀ C : Finset (Fin 16),      (G.induce {v | v ∈ C}).oddComponents.ncard ≤ 2) ∧    (∀ C : Finset (Fin 16), C.card = 8 →      ∃ M : G.Subgraph, M.IsMatching ∧ M.verts ⊆ (C : Set (Fin 16)) ∧        3 ≤ M.edgeSet.ncard) ∧    (∃ X U V : Finset (Fin 16), X.card=7 ∧ 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)) ∧    ¬ is_k_extendable G 4 := by  exact ⟨separatorControl, in1238_separator_control_properties⟩
See it in the graphDiscuss this resultChallenge it