AFTD Auto-Formalizing Theoretical Domains

op1957_literal_theorem_1_2_false

theoremverifiederratum

Under the definition in Section 2 of arXiv:2611.22690, which does not require connectedness, the assertion that every minimally 2-extendable graph on six vertices has minimum degree 3, 4, or 5 is false. Three disjoint edges give a counterexample of minimum degree 1 to this six-vertex case of Theorem 1.2. The standard formulation with connectedness is not refuted.

Statement

theorem op1957_literal_theorem_1_2_false :
    ¬ (∀ G : SimpleGraph (Fin 6), ∀ [DecidableRel G.Adj],
      is_minimally_k_extendable G 2 →
      G.minDegree = 3 ∨ G.minDegree = 4 ∨ G.minDegree = 5)
Corrects
arXiv:2611.22690, Section 2 and Theorem 1.2, specialized to six vertices; the counterexample applies to the definition as written, without connectedness.
Verified
20 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…

Read back from the Lean

It is not the case that for every simple graph $G$ on the vertex set $\mathrm{Fin}(6)$ with decidable adjacency, if $G$ is minimally 2-extendable, then the minimum degree of $G$ is 3, 4, or 5.

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 assertion is refuted by constructing a graph on six vertices consisting of three disjoint edges. This graph is 2-extendable because any 2-edge matching is contained in the full graph, which is itself a perfect matching, and it is minimal because deleting any edge leaves a vertex with no remaining incident edges, preventing any perfect matching. Since its minimum degree is 1, it contradicts the claim that every minimally 2-extendable graph on six vertices has minimum degree 3, 4, or 5.

  1. The graph of three disjoint edges on six vertices is loopless. automation

    By exhaustively checking all six vertices of Fin 6, no vertex is adjacent to itself.

    line 8

      loopless := ⟨by intro u; fin_cases u <;> decide⟩
  2. The two-edge subgraph on vertices {0, 1, 2, 3} has symmetric adjacency.

    Adjacency requires both endpoints to have value below 4 and to be adjacent in the ambient graph; swapping endpoints preserves both conditions by symmetry of the ambient graph.

    line 20

      symm := ⟨by intro u v h; exact ⟨h.1.symm, h.2.2, h.2.1⟩⟩
  3. The maximal subgraph ⊤ of the three-edge matching graph is a perfect matching. automation

    Rewriting the definition of perfect matching into the condition that every vertex has a unique neighbor, the claim is verified by exhaustive check over all six vertices.

    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 two-edge subgraph is a matching. automation

    Exhaustive check confirms that each vertex in its vertex set {v | v < 4} has exactly one neighbor in the subgraph.

    lines 30–31

      intro v hv
      fin_cases v <;> simp_all [op1957_erratum_two_pairs, op1957_erratum_three_pairs] <;> unfold ExistsUnique <;> decide
  5. The two-edge subgraph has exactly 2 edges.

    By induction on unordered pairs and exhaustive case analysis on vertices, its edge set is shown to be {s(0, 1), s(2, 3)}, which simplifies to cardinality 2.

    lines 34–42

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

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

    Every vertex has degree 1, so the minimum degree is 1, verified by computation.

    line 44

    theorem op1957_erratum_min_degree : op1957_erratum_three_pairs.minDegree = 1 := by decide
  7. Every vertex in the three-edge matching graph has at most one neighbor. automation

    Direct finite evaluation over all triples of vertices confirms that adjacent vertices to the same node must coincide.

    line 47

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

    If P were a perfect matching after deleting edge e = s(u, v), vertex u would have a neighbor w in P. Because P is in the deleted graph, {u, w} is an edge of the original graph, forcing w = v by uniqueness of neighbors. Thus {u, w} is the edge e that was deleted, a contradiction.

    lines 51–61

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

      induction e using Sym2.ind with
      | _ u v =>
        intro h
        obtain ⟨P,hP⟩ := h
        have huv : op1957_erratum_three_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_erratum_unique_neighbors u w v hdel.1 huv
        subst w
        exact hdel.2 (Set.mem_singleton _)
  9. The three-edge matching graph is 2-extendable.

    The vertex condition 2 · 2 + 2 ≤ 6 holds, the two-edge subgraph witnesses an initial matching of size 2, and any 2-edge matching is trivially contained in the maximal subgraph ⊤, which is a perfect matching.

    lines 64–67

    uses op1957_erratum_two_matching, op1957_erratum_two_card, op1957_erratum_all_perfect, le_top

      constructor
      · refine ⟨by decide, ⟨op1957_erratum_two_pairs, op1957_erratum_two_matching, op1957_erratum_two_card⟩, ?_⟩
        intro M hM hMsize
        exact ⟨⊤, op1957_erratum_all_perfect, le_top⟩
  10. The three-edge matching graph is minimally 2-extendable.

    Deleting any edge e destroys 2-extendability, because an extending perfect matching would have to exist in the deleted graph, which has already been shown impossible.

    lines 68–71

    uses op1957_erratum_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_erratum_no_perfect_after_deletion e he ⟨P,hP⟩
  11. Under the assumed theorem, the counterexample graph would have minimum degree 3, 4, or 5.

    We assume for contradiction that every minimally 2-extendable graph on six vertices has minimum degree 3, 4, or 5, and instantiate this hypothesis with our 3-edge matching graph.

    lines 77–78

    uses op1957_erratum_three_pairs_minimal

      intro h
      have bad := h op1957_erratum_three_pairs op1957_erratum_three_pairs_minimal
  12. Contradiction. automation

    Rewriting with the fact that the minimum degree is 1 reduces the hypothesis to 1 = 3 ∨ 1 = 4 ∨ 1 = 5, which linear integer arithmetic refutes.

    lines 79–80

    uses op1957_erratum_min_degree

      rw [op1957_erratum_min_degree] at bad
      omega
le_top
Every subgraph is contained in the maximal subgraph ⊤.
op1957_erratum_all_perfect
The entire three-edge matching graph (as the maximal subgraph ⊤) is a perfect matching.
op1957_erratum_min_degree
The minimum degree of the three-edge matching graph is 1.
op1957_erratum_no_perfect_after_deletion
Deleting any edge from the three-edge matching graph leaves a graph with no perfect matching.
op1957_erratum_three_pairs_minimal
The three-edge matching graph on six vertices is minimally 2-extendable.
op1957_erratum_two_card
The number of edges in the two-edge subgraph op1957_erratum_two_pairs is 2.
op1957_erratum_two_matching
The two-edge subgraph op1957_erratum_two_pairs is a matching.
op1957_erratum_unique_neighbors
In the three-edge matching graph, every vertex has at most one neighbor.
Set.mem_singleton
An element x belongs to the singleton set {a} if and only if x = a.
SimpleGraph.deleteEdges_adj
Two vertices are adjacent in G with edges s deleted if and only if they are adjacent in G and the edge between them is not in s.
SimpleGraph.Subgraph.isPerfectMatching_iff
A subgraph is a perfect matching if and only if every vertex of the ambient graph has a unique neighbor in the subgraph.
SimpleGraph.Subgraph.isPerfectMatching_iff.mp
If a subgraph is a perfect matching, then every vertex has a unique neighbor in the subgraph.
SimpleGraph.Subgraph.top_adj
Adjacency in the maximal subgraph ⊤ is equivalent to adjacency in the underlying graph.
Sym2.eq
Two unordered pairs s(a, b) and s(c, d) are equal if and only if (a, b) and (c, d) are related under the Sym2 quotient relation.
Sym2.ind
To prove a property for all unordered pairs in Sym2 α, it suffices to prove it for pairs of the form s(x, y).
Sym2.rel_iff'
Two ordered pairs are related under Sym2.Rel if and only if they are identical or transposed.

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_erratum_three_pairs : SimpleGraph (Fin 6) where  Adj u v := ((u.val, v.val) ∈ ([(0,1), (2,3), (4,5)] : List (ℕ × ℕ))) ∨    ((v.val, u.val) ∈ ([(0,1), (2,3), (4,5)] : List (ℕ × ℕ)))  symm := ⟨fun _ _ h => h.elim Or.inr Or.inl⟩  loopless := ⟨by intro u; fin_cases u <;> decide⟩instance : DecidableRel op1957_erratum_three_pairs.Adj := fun u v =>  inferInstanceAs (Decidable    (((u.val, v.val) ∈ ([(0,1), (2,3), (4,5)] : List (ℕ × ℕ))) ∨     ((v.val, u.val) ∈ ([(0,1), (2,3), (4,5)] : List (ℕ × ℕ)))))def op1957_erratum_two_pairs : op1957_erratum_three_pairs.Subgraph where  verts := {v | v.val < 4}  Adj u v := op1957_erratum_three_pairs.Adj u v ∧ u.val < 4 ∧ v.val < 4  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_erratum_all_perfect : (⊤ : op1957_erratum_three_pairs.Subgraph).IsPerfectMatching := by  rw [SimpleGraph.Subgraph.isPerfectMatching_iff]  intro v  simp only [SimpleGraph.Subgraph.top_adj]  unfold ExistsUnique  fin_cases v <;> decidetheorem op1957_erratum_two_matching : op1957_erratum_two_pairs.IsMatching := by  intro v hv  fin_cases v <;> simp_all [op1957_erratum_two_pairs, op1957_erratum_three_pairs] <;> unfold ExistsUnique <;> decidetheorem op1957_erratum_two_card : op1957_erratum_two_pairs.edgeSet.ncard = 2 := by  classical  have hs : op1957_erratum_two_pairs.edgeSet = ({s((0 : Fin 6), 1), s(2, 3)} : Set (Sym2 (Fin 6))) := by    ext e    induction e using Sym2.ind with    | _ u v =>      change op1957_erratum_two_pairs.Adj u v ↔ s(u, v) ∈ ({s((0 : Fin 6), 1), s(2, 3)} : Set (Sym2 (Fin 6)))      fin_cases u <;> fin_cases v <;> simp [op1957_erratum_two_pairs, op1957_erratum_three_pairs, Sym2.eq, Sym2.rel_iff']  rw [hs]  simptheorem op1957_erratum_min_degree : op1957_erratum_three_pairs.minDegree = 1 := by decidetheorem op1957_erratum_unique_neighbors : ∀ u v w : Fin 6, op1957_erratum_three_pairs.Adj u v → op1957_erratum_three_pairs.Adj u w → v = w := by  decidetheorem op1957_erratum_no_perfect_after_deletion (e : Sym2 (Fin 6)) (he : e ∈ op1957_erratum_three_pairs.edgeSet) :    ¬ ∃ P : (op1957_erratum_three_pairs.deleteEdges {e}).Subgraph, P.IsPerfectMatching := by  induction e using Sym2.ind with  | _ u v =>    intro h    obtain ⟨P,hP⟩ := h    have huv : op1957_erratum_three_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_erratum_unique_neighbors u w v hdel.1 huv    subst w    exact hdel.2 (Set.mem_singleton _)theorem op1957_erratum_three_pairs_minimal : is_minimally_k_extendable op1957_erratum_three_pairs 2 := by  constructor  · refine ⟨by decide, ⟨op1957_erratum_two_pairs, op1957_erratum_two_matching, op1957_erratum_two_card⟩, ?_⟩    intro M hM hMsize    exact ⟨⊤, op1957_erratum_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_erratum_no_perfect_after_deletion e he ⟨P,hP⟩theorem op1957_literal_theorem_1_2_false :    ¬ (∀ G : SimpleGraph (Fin 6), ∀ [DecidableRel G.Adj],      is_minimally_k_extendable G 2 →      G.minDegree = 3 ∨ G.minDegree = 4 ∨ G.minDegree = 5) := by  intro h  have bad := h op1957_erratum_three_pairs op1957_erratum_three_pairs_minimal  rw [op1957_erratum_min_degree] at bad  omega
See it in the graphDiscuss this resultChallenge it