AFTD Auto-Formalizing Theoretical Domains

op309_girth5_twelve_graph_properties

theoremverified

The displayed graph is connected, cubic, and has no cycles of lengths three or four.

Statement

theorem op309_girth5_twelve_graph_properties :
  op309_girth5_twelve_graph.Connected ∧
  (∀ v : Fin 12, (op309_girth5_twelve_graph.neighborSet v).ncard = 3) ∧
  (∀ a b c : Fin 12, [a,b,c].Nodup → ¬ (op309_girth5_twelve_graph.Adj a b ∧ op309_girth5_twelve_graph.Adj b c ∧ op309_girth5_twelve_graph.Adj c a)) ∧
  (∀ a b c d : Fin 12, [a,b,c,d].Nodup → ¬ (op309_girth5_twelve_graph.Adj a b ∧ op309_girth5_twelve_graph.Adj b c ∧ op309_girth5_twelve_graph.Adj c d ∧ op309_girth5_twelve_graph.Adj d a))
Source
OP-309; girth-five fixed-P3 obstruction, experiments 41671, 41673, 41674, 41678 and 41684.
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
  • op309_girth5_twelve_graphThe explicit twelve-vertex simple graph used for the fixed-P3 obstruction.
  • Arena.Reachable.transReachability is transitive.
  • VThe ambient space $V = \mathbb{F}_p^n \times \mathbb{F}_p^n$ of pairs of coordinate vectors.
  • 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 proves that a specific 12-vertex graph is connected, 3-regular, and has girth at least 5 (no triangles or 4-cycles) by combining four lemmas. Connectivity is established by finding explicit paths from vertex 0 to all other vertices and connecting any two vertices through 0. Regularity is proved by showing that every vertex has exactly three neighbors via finite set evaluation. Finally, the absence of 3-cycles and 4-cycles is verified by exhaustive computation over all tuples of distinct vertices.

  1. Eleven specific edges exist in the graph. automation

    Using the decidability of graph adjacency, we verify eleven edges by computation (`decide`): (0, 5), (0, 7), (0, 8), (1, 7), (3, 7), (2, 8), (4, 8), (1, 6), (3, 9), (5, 10), and (5, 11).

    lines 13–23

      have e05 : op309_girth5_twelve_graph.Adj (0 : Fin 12) 5 := by decide
      have e07 : op309_girth5_twelve_graph.Adj (0 : Fin 12) 7 := by decide
      have e08 : op309_girth5_twelve_graph.Adj (0 : Fin 12) 8 := by decide
      have e17 : op309_girth5_twelve_graph.Adj (1 : Fin 12) 7 := by decide
      have e37 : op309_girth5_twelve_graph.Adj (3 : Fin 12) 7 := by decide
      have e28 : op309_girth5_twelve_graph.Adj (2 : Fin 12) 8 := by decide
      have e48 : op309_girth5_twelve_graph.Adj (4 : Fin 12) 8 := by decide
      have e16 : op309_girth5_twelve_graph.Adj (1 : Fin 12) 6 := by decide
      have e39 : op309_girth5_twelve_graph.Adj (3 : Fin 12) 9 := by decide
      have e510 : op309_girth5_twelve_graph.Adj (5 : Fin 12) 10 := by decide
      have e511 : op309_girth5_twelve_graph.Adj (5 : Fin 12) 11 := by decide
  2. Vertex 0 can reach every vertex in the graph.

    We perform an exhaustive case analysis on all twelve vertices $v \in \{0, \dots, 11\}$ (`fin_cases v`). Reachability from 0 to 0 is reflexive (`SimpleGraph.Reachable.refl`). For each other vertex $v$, reachability is shown by composing the verified edges and their reversals using symmetry and transitivity.

    lines 24–38

    uses SimpleGraph.Reachable.refl

      have h : ∀ v : Fin 12, op309_girth5_twelve_graph.Reachable 0 v := by
        intro v
        fin_cases v
        · exact SimpleGraph.Reachable.refl _
        · exact e07.reachable.trans e17.reachable.symm
        · exact e08.reachable.trans e28.reachable.symm
        · exact e07.reachable.trans e37.reachable.symm
        · exact e08.reachable.trans e48.reachable.symm
        · exact e05.reachable
        · exact e07.reachable.trans (e17.reachable.symm.trans e16.reachable)
        · exact e07.reachable
        · exact e08.reachable
        · exact e07.reachable.trans (e37.reachable.symm.trans e39.reachable)
        · exact e05.reachable.trans e510.reachable
        · exact e05.reachable.trans e511.reachable
  3. The graph is connected.

    Since every vertex is reachable from 0, any two vertices $u$ and $v$ are connected via $u \rightsquigarrow 0 \rightsquigarrow v$ by symmetry and transitivity. Because the vertex set $\mathrm{Fin}\; 12$ is nonempty, this establishes connectivity (`SimpleGraph.Connected.mk`).

    line 39

    uses SimpleGraph.Connected.mk

      exact SimpleGraph.Connected.mk (V := Fin 12) (fun u v => (h u).symm.trans (h v))
  4. For every vertex, the finite set of its neighbors has size 3. automation

    The decision procedure `decide` exhaustively evaluates the cardinality of the neighbor set filter within the finite universe for every vertex and confirms it equals 3.

    lines 43–47

      have hdeg : ∀ v : Fin 12,
          (Finset.univ.filter (fun w : Fin 12 => op309_girth5_twelve_graph.Adj v w)).card = 3 := by
        intro v
        revert v
        decide
  5. Every vertex in the graph has degree 3.

    For an arbitrary vertex $v$, extensionality and the definition of `SimpleGraph.neighborSet` identify the neighbor set with the coerced finite set of adjacent vertices. Applying `Set.ncard_coe_finset` equates its set cardinality `ncard` with the finset cardinality, which is 3 by the previous step.

    lines 48–52

    uses SimpleGraph.neighborSet, Set.ncard_coe_finset

      intro v
      rw [show op309_girth5_twelve_graph.neighborSet v
          = ↑(Finset.univ.filter (fun w : Fin 12 => op309_girth5_twelve_graph.Adj v w)) from by
            ext w; simp [SimpleGraph.neighborSet], Set.ncard_coe_finset]
      exact hdeg v
  6. The graph contains no triangles. automation

    The decision procedure `decide` exhaustively checks all triples of distinct vertices $a, b, c \in \mathrm{Fin}\; 12$ and verifies that none form a triangle.

    line 58

      decide
  7. The graph contains no cycles of length 4. automation

    The decision procedure `decide` exhaustively checks all quadruples of distinct vertices $a, b, c, d \in \mathrm{Fin}\; 12$ and verifies that none form a 4-cycle.

    line 64

      decide
SimpleGraph.Reachable.refl
Every vertex in a simple graph can reach itself.
SimpleGraph.Connected.mk
A simple graph is connected if any two vertices are reachable from each other and the vertex set is nonempty.
SimpleGraph.neighborSet
The set of neighbors of a vertex in a graph, consisting of all adjacent vertices.
Set.ncard_coe_finset
The cardinality (ncard) of a coerced finite set as a set is equal to its cardinality (card) as a finset.

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 op309_girth5_twelve_graph_properties_edges : List (ℕ × ℕ) :=  [(0, 5), (0, 7), (0, 8), (1, 6), (1, 7), (1, 11), (2, 6), (2, 8), (2, 10), (3, 7), (3, 9), (3, 10),   (4, 8), (4, 9), (4, 11), (5, 10), (5, 11), (6, 9)]private instance op309_girth5_twelve_graph_properties_adjDec :    DecidableRel op309_girth5_twelve_graph.Adj :=  fun u v =>    inferInstanceAs (Decidable ((u.val, v.val) ∈ op309_girth5_twelve_graph_properties_edges ∨      (v.val, u.val) ∈ op309_girth5_twelve_graph_properties_edges))private lemma op309_girth5_twelve_graph_properties_connected :    op309_girth5_twelve_graph.Connected := by  have e05 : op309_girth5_twelve_graph.Adj (0 : Fin 12) 5 := by decide  have e07 : op309_girth5_twelve_graph.Adj (0 : Fin 12) 7 := by decide  have e08 : op309_girth5_twelve_graph.Adj (0 : Fin 12) 8 := by decide  have e17 : op309_girth5_twelve_graph.Adj (1 : Fin 12) 7 := by decide  have e37 : op309_girth5_twelve_graph.Adj (3 : Fin 12) 7 := by decide  have e28 : op309_girth5_twelve_graph.Adj (2 : Fin 12) 8 := by decide  have e48 : op309_girth5_twelve_graph.Adj (4 : Fin 12) 8 := by decide  have e16 : op309_girth5_twelve_graph.Adj (1 : Fin 12) 6 := by decide  have e39 : op309_girth5_twelve_graph.Adj (3 : Fin 12) 9 := by decide  have e510 : op309_girth5_twelve_graph.Adj (5 : Fin 12) 10 := by decide  have e511 : op309_girth5_twelve_graph.Adj (5 : Fin 12) 11 := by decide  have h : ∀ v : Fin 12, op309_girth5_twelve_graph.Reachable 0 v := by    intro v    fin_cases v    · exact SimpleGraph.Reachable.refl _    · exact e07.reachable.trans e17.reachable.symm    · exact e08.reachable.trans e28.reachable.symm    · exact e07.reachable.trans e37.reachable.symm    · exact e08.reachable.trans e48.reachable.symm    · exact e05.reachable    · exact e07.reachable.trans (e17.reachable.symm.trans e16.reachable)    · exact e07.reachable    · exact e08.reachable    · exact e07.reachable.trans (e37.reachable.symm.trans e39.reachable)    · exact e05.reachable.trans e510.reachable    · exact e05.reachable.trans e511.reachable  exact SimpleGraph.Connected.mk (V := Fin 12) (fun u v => (h u).symm.trans (h v))private lemma op309_girth5_twelve_graph_properties_degree :    ∀ v : Fin 12, (op309_girth5_twelve_graph.neighborSet v).ncard = 3 := by  have hdeg : ∀ v : Fin 12,      (Finset.univ.filter (fun w : Fin 12 => op309_girth5_twelve_graph.Adj v w)).card = 3 := by    intro v    revert v    decide  intro v  rw [show op309_girth5_twelve_graph.neighborSet v      = ↑(Finset.univ.filter (fun w : Fin 12 => op309_girth5_twelve_graph.Adj v w)) from by        ext w; simp [SimpleGraph.neighborSet], Set.ncard_coe_finset]  exact hdeg vprivate lemma op309_girth5_twelve_graph_properties_no_triangle :    ∀ a b c : Fin 12, [a,b,c].Nodup →      ¬ (op309_girth5_twelve_graph.Adj a b ∧ op309_girth5_twelve_graph.Adj b c ∧        op309_girth5_twelve_graph.Adj c a) := by  decideprivate lemma op309_girth5_twelve_graph_properties_no_four_cycle :    ∀ a b c d : Fin 12, [a,b,c,d].Nodup →      ¬ (op309_girth5_twelve_graph.Adj a b ∧ op309_girth5_twelve_graph.Adj b c ∧        op309_girth5_twelve_graph.Adj c d ∧ op309_girth5_twelve_graph.Adj d a) := by  decidetheorem op309_girth5_twelve_graph_properties :  op309_girth5_twelve_graph.Connected ∧  (∀ v : Fin 12, (op309_girth5_twelve_graph.neighborSet v).ncard = 3) ∧  (∀ a b c : Fin 12, [a,b,c].Nodup → ¬ (op309_girth5_twelve_graph.Adj a b ∧ op309_girth5_twelve_graph.Adj b c ∧ op309_girth5_twelve_graph.Adj c a)) ∧  (∀ a b c d : Fin 12, [a,b,c,d].Nodup → ¬ (op309_girth5_twelve_graph.Adj a b ∧ op309_girth5_twelve_graph.Adj b c ∧ op309_girth5_twelve_graph.Adj c d ∧ op309_girth5_twelve_graph.Adj d a)) := ⟨op309_girth5_twelve_graph_properties_connected,    op309_girth5_twelve_graph_properties_degree,    op309_girth5_twelve_graph_properties_no_triangle,    op309_girth5_twelve_graph_properties_no_four_cycle⟩
See it in the graphDiscuss this resultChallenge it