AFTD Auto-Formalizing Theoretical Domains

op1957_disconnected_formal_statement_false

theoremverified

The formal minimum-degree statement that omits connectedness is false: for k = 4, the graph consisting of five disjoint edges is minimally k-extendable under the repository definition and has minimum degree one. This concerns the disconnected formalization, while the connected conjecture remains open.

Statement

theorem op1957_disconnected_formal_statement_false :
    ¬ (∀ k : ℕ, 4 ≤ k → ∀ n : ℕ, ∀ G : SimpleGraph (Fin n), ∀ [DecidableRel G.Adj],
      is_minimally_k_extendable G k → n ≤ 4 * k →
      G.minDegree = k + 1 ∨ G.minDegree = 2 * k ∨ G.minDegree = 2 * k + 1)
Source
OP-1957: refutation of the incomplete disconnected formalization; the standard connected formulation is a distinct open statement.
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • 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…
  • OrderAn order of dimension d is a permutation of the attribute set {0, ..., d-1}, represented as a list without duplicates containing all…

The proof, explained

The formal statement asserts that any minimally k-extendable graph on n ≤ 4k vertices (with k ≥ 4) must have minimum degree k + 1, 2k, or 2k + 1. The proof refutes this by exhibiting a counterexample: a 1-regular graph on 10 vertices consisting of 5 independent edges is minimally 4-extendable, but its minimum degree is 1.

  1. The graph op1957_1050_five_pairs has no self-loops automation

    By exhaustion over all 10 vertices, none of the pairs (u, u) appear in the edge list.

    line 8

      loopless := ⟨by intro u; fin_cases u <;> decide⟩
  2. The four-edge subgraph has a symmetric adjacency relation

    The adjacency relation of the subgraph inherits symmetry from the ambient graph.

    line 20

      symm := ⟨by intro u v h; exact ⟨h.1.symm, h.2.2, h.2.1⟩⟩
  3. The entire graph ⊤ is a perfect matching automation

    Using the characterization that a subgraph is a perfect matching if and only if every vertex has a unique neighbor, we check every vertex in Fin 10 by exhaustive decision.

    lines 23–27

    uses SimpleGraph.Subgraph.isPerfectMatching_iff, SimpleGraph.Subgraph.top_adj

      rw [SimpleGraph.Subgraph.isPerfectMatching_iff]
      intro v
      simp only [SimpleGraph.Subgraph.top_adj]
      unfold ExistsUnique
      fin_cases v <;> decide
  4. The four-edge subgraph is a matching automation

    For each vertex in the subgraph, we verify by case analysis and computation that it has a unique neighbor in the subgraph.

    lines 30–31

      intro v hv
      fin_cases v <;> simp_all [op1957_1050_four_pairs, op1957_1050_five_pairs] <;> unfold ExistsUnique <;> decide
  5. The four-edge subgraph contains exactly 4 edges automation

    We determine the edge set by checking all 100 vertex pairs and compute that its cardinality is 4.

    lines 34–42

    uses Sym2.ind, Sym2.eq, Sym2.rel_iff'

      classical
      have hs : op1957_1050_four_pairs.edgeSet = ({s((0 : Fin 10), 1), s(2, 3), s(4, 5), s(6, 7)} : Set (Sym2 (Fin 10))) := by
        ext e
        induction e using Sym2.ind with
        | _ u v =>
          change op1957_1050_four_pairs.Adj u v ↔ s(u, v) ∈ ({s((0 : Fin 10), 1), s(2, 3), s(4, 5), s(6, 7)} : Set (Sym2 (Fin 10)))
          fin_cases u <;> fin_cases v <;> simp [op1957_1050_four_pairs, op1957_1050_five_pairs, Sym2.eq, Sym2.rel_iff']
      rw [hs]
      simp
  6. The minimum degree of the five-edge graph is 1 automation

    Every vertex has degree 1, so the minimum degree is 1, checked by decide.

    line 44

    theorem op1957_1050_min_degree : op1957_1050_five_pairs.minDegree = 1 := by decide
  7. Every vertex in the five-edge graph has a unique neighbor automation

    Direct evaluation confirms that any vertex u has at most one neighbor.

    line 47

      decide
  8. Deleting any edge from the five-edge graph leaves a graph with no perfect matching

    If a perfect matching existed after deleting an edge e = s(u, v), vertex u would have a neighbor w in the remaining graph. But v is the unique neighbor of u in the entire graph, so w = v, contradicting the deletion of e.

    lines 51–61

    uses Sym2.ind, SimpleGraph.Subgraph.isPerfectMatching_iff.mp, SimpleGraph.deleteEdges_adj, op1957_1050_unique_neighbors, Set.mem_singleton

      induction e using Sym2.ind with
      | _ u v =>
        intro h
        obtain ⟨P,hP⟩ := h
        have huv : op1957_1050_five_pairs.Adj u v := he
        obtain ⟨w, hw, _⟩ := (SimpleGraph.Subgraph.isPerfectMatching_iff.mp hP) u
        have hdel := P.adj_sub hw
        rw [SimpleGraph.deleteEdges_adj] at hdel
        have hwv : w = v := op1957_1050_unique_neighbors u w v hdel.1 huv
        subst w
        exact hdel.2 (Set.mem_singleton _)
  9. The five-edge graph is 4-extendable

    First, 2 * 4 + 2 ≤ 10. Second, the four-edge subgraph is an explicit matching of size 4. Third, any matching of size 4 extends to the entire graph ⊤, which is a perfect matching.

    lines 64–67

    uses op1957_1050_four_matching, op1957_1050_four_card, op1957_1050_all_perfect, le_top

      constructor
      · refine ⟨by decide, ⟨op1957_1050_four_pairs, op1957_1050_four_matching, op1957_1050_four_card⟩, ?_⟩
        intro M hM hMsize
        exact ⟨⊤, op1957_1050_all_perfect, le_top⟩
  10. The five-edge graph is minimally 4-extendable

    If deleting an edge e resulted in a 4-extendable graph, its 4-edge matching would extend to a perfect matching, which was proven impossible.

    lines 68–71

    uses op1957_1050_no_perfect_after_deletion

      · intro e he h
        obtain ⟨M, hM, hMsize⟩ := h.2.1
        obtain ⟨P,hP,_⟩ := h.2.2 M hM hMsize
        exact op1957_1050_no_perfect_after_deletion e he ⟨P,hP⟩
  11. Instantiate the universal statement with k = 4, n = 10, and the five-edge graph

    Assuming the general theorem holds, we specialize it to k = 4, n = 10, and our five-edge graph G, which satisfies n ≤ 4k and is minimally 4-extendable.

    lines 77–78

    uses op1957_1050_five_pairs_minimal

      intro h
      have bad := h 4 (by decide) 10 op1957_1050_five_pairs op1957_1050_five_pairs_minimal (by decide)
  12. The statement implies minDegree is 5, 8, or 9, contradicting minDegree = 1 automation

    The general statement requires minDegree to be 4 + 1 = 5, 2 * 4 = 8, or 2 * 4 + 1 = 9, but the minimum degree is 1. Linear integer arithmetic derives the contradiction.

    lines 79–80

    uses op1957_1050_min_degree

      rw [op1957_1050_min_degree] at bad
      omega
op1957_1050_all_perfect
The entire graph is a perfect matching of itself
op1957_1050_four_card
The four-edge subgraph has exactly 4 edges
op1957_1050_four_matching
The four-edge subgraph is a matching
op1957_1050_min_degree
Minimum degree of the five-edge graph is 1
op1957_1050_no_perfect_after_deletion
Deleting any edge from the five-edge graph leaves no perfect matching
op1957_1050_unique_neighbors
Each vertex in the five-edge graph has at most one neighbor
op1957_1050_five_pairs_minimal
The five-edge graph is minimally 4-extendable
SimpleGraph.Subgraph.isPerfectMatching_iff
A subgraph is a perfect matching iff every vertex has a unique neighbor in it
SimpleGraph.Subgraph.top_adj
Adjacency in the top subgraph coincides with adjacency in the ambient graph
Sym2.ind
Induction principle for unordered pairs (Sym2)
Sym2.eq
Equality of unordered pairs is the symmetric relation on pairs
Sym2.rel_iff'
Equivalence condition for pairs in Sym2
SimpleGraph.deleteEdges_adj
Adjacency in a graph with deleted edges requires being adjacent in the original graph and not being in the deleted set
Set.mem_singleton
Every element is in its own singleton set
le_top
Every element of a poset with top is less than or equal to top
SimpleGraph.Subgraph.isPerfectMatching_iff.mp
A perfect matching gives each vertex a unique neighbor in the subgraph

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

set_option maxRecDepth 8192set_option maxHeartbeats 4000000def op1957_1050_five_pairs : SimpleGraph (Fin 10) where  Adj u v := ((u.val, v.val) ∈ ([(0,1), (2,3), (4,5), (6,7), (8,9)] : List (ℕ × ℕ))) ∨    ((v.val, u.val) ∈ ([(0,1), (2,3), (4,5), (6,7), (8,9)] : List (ℕ × ℕ)))  symm := ⟨fun _ _ h => h.elim Or.inr Or.inl⟩  loopless := ⟨by intro u; fin_cases u <;> decide⟩instance : DecidableRel op1957_1050_five_pairs.Adj := fun u v =>  inferInstanceAs (Decidable    (((u.val, v.val) ∈ ([(0,1), (2,3), (4,5), (6,7), (8,9)] : List (ℕ × ℕ))) ∨     ((v.val, u.val) ∈ ([(0,1), (2,3), (4,5), (6,7), (8,9)] : List (ℕ × ℕ)))))def op1957_1050_four_pairs : op1957_1050_five_pairs.Subgraph where  verts := {v | v.val < 8}  Adj u v := op1957_1050_five_pairs.Adj u v ∧ u.val < 8 ∧ v.val < 8  adj_sub := fun h => h.1  edge_vert := fun h => h.2.1  symm := ⟨by intro u v h; exact ⟨h.1.symm, h.2.2, h.2.1⟩⟩theorem op1957_1050_all_perfect : (⊤ : op1957_1050_five_pairs.Subgraph).IsPerfectMatching := by  rw [SimpleGraph.Subgraph.isPerfectMatching_iff]  intro v  simp only [SimpleGraph.Subgraph.top_adj]  unfold ExistsUnique  fin_cases v <;> decidetheorem op1957_1050_four_matching : op1957_1050_four_pairs.IsMatching := by  intro v hv  fin_cases v <;> simp_all [op1957_1050_four_pairs, op1957_1050_five_pairs] <;> unfold ExistsUnique <;> decidetheorem op1957_1050_four_card : op1957_1050_four_pairs.edgeSet.ncard = 4 := by  classical  have hs : op1957_1050_four_pairs.edgeSet = ({s((0 : Fin 10), 1), s(2, 3), s(4, 5), s(6, 7)} : Set (Sym2 (Fin 10))) := by    ext e    induction e using Sym2.ind with    | _ u v =>      change op1957_1050_four_pairs.Adj u v ↔ s(u, v) ∈ ({s((0 : Fin 10), 1), s(2, 3), s(4, 5), s(6, 7)} : Set (Sym2 (Fin 10)))      fin_cases u <;> fin_cases v <;> simp [op1957_1050_four_pairs, op1957_1050_five_pairs, Sym2.eq, Sym2.rel_iff']  rw [hs]  simptheorem op1957_1050_min_degree : op1957_1050_five_pairs.minDegree = 1 := by decidetheorem op1957_1050_unique_neighbors : ∀ u v w : Fin 10, op1957_1050_five_pairs.Adj u v → op1957_1050_five_pairs.Adj u w → v = w := by  decidetheorem op1957_1050_no_perfect_after_deletion (e : Sym2 (Fin 10)) (he : e ∈ op1957_1050_five_pairs.edgeSet) :    ¬ ∃ P : (op1957_1050_five_pairs.deleteEdges {e}).Subgraph, P.IsPerfectMatching := by  induction e using Sym2.ind with  | _ u v =>    intro h    obtain ⟨P,hP⟩ := h    have huv : op1957_1050_five_pairs.Adj u v := he    obtain ⟨w, hw, _⟩ := (SimpleGraph.Subgraph.isPerfectMatching_iff.mp hP) u    have hdel := P.adj_sub hw    rw [SimpleGraph.deleteEdges_adj] at hdel    have hwv : w = v := op1957_1050_unique_neighbors u w v hdel.1 huv    subst w    exact hdel.2 (Set.mem_singleton _)theorem op1957_1050_five_pairs_minimal : is_minimally_k_extendable op1957_1050_five_pairs 4 := by  constructor  · refine ⟨by decide, ⟨op1957_1050_four_pairs, op1957_1050_four_matching, op1957_1050_four_card⟩, ?_⟩    intro M hM hMsize    exact ⟨⊤, op1957_1050_all_perfect, le_top⟩  · intro e he h    obtain ⟨M, hM, hMsize⟩ := h.2.1    obtain ⟨P,hP,_⟩ := h.2.2 M hM hMsize    exact op1957_1050_no_perfect_after_deletion e he ⟨P,hP⟩theorem op1957_disconnected_formal_statement_false :    ¬ (∀ k : ℕ, 4 ≤ k → ∀ n : ℕ, ∀ G : SimpleGraph (Fin n), ∀ [DecidableRel G.Adj],      is_minimally_k_extendable G k → n ≤ 4 * k →      G.minDegree = k + 1 ∨ G.minDegree = 2 * k ∨ G.minDegree = 2 * k + 1) := by  intro h  have bad := h 4 (by decide) 10 op1957_1050_five_pairs op1957_1050_five_pairs_minimal (by decide)  rw [op1957_1050_min_degree] at bad  omega
See it in the graphDiscuss this resultChallenge it