op_2378_petersen_graph_basic
The witness graph has exactly the 15 listed edges and is cubic: every vertex has exactly 3 neighbours.
Statement
theorem op_2378_petersen_graph_basic :
op_2378_petersen_graph.edgeSet = (↑op_2378_petersen_edges : Set (Sym2 (Fin 10))) ∧
op_2378_petersen_edges.card = 15 ∧
∀ v : Fin 10, Nat.card ↑(op_2378_petersen_graph.neighborSet v) = 3- Source
- step towards op_2378_partial_r_two
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- op_2378_petersen_edgesThe 15-edge list of the Petersen graph on Fin 10: outer 5-cycle 0-1-2-3-4, inner 5-cycle 5-7-9-6-8, spokes 05,16,27,38,49.
- op_2378_petersen_graphThe Petersen graph on Fin 10, the graph whose edge set is op_2378_petersen_edges.
- Used by 8
- op_2378_petersen_is_snarkThe witness graph is a snark.
- op_2378_petersen_even_factor_two_oddThere is an even factor of the witness graph with exactly two odd components.
- op_2378_petersen_bridgelessNo edge of the witness graph is a bridge.
- op_2378_petersen_single_deletion_not_colorableFor every edge e of the witness graph, deleting e still leaves a graph whose line graph is not 3-colourable.
- op_2378_petersen_resistance_upperThere is a 2-element set of edges whose deletion leaves the witness graph 3-edge-colourable.
- op_2378_petersen_weak_oddness_lowerEvery even factor of the witness graph has at least two odd components.
- op_2378_partial_r_twoThere exists a snark G on a finite vertex type V such that the resistance of G is 2 and the weak oddness of G is 2.
- op_2378_petersen_resistance_lowerFor any edge set whose deletion leaves the witness 3-edge-colourable, the set has at least two edges.
The proof, explained
The theorem establishes three properties of the Petersen witness graph: its edge set matches the 15 given unordered pairs, its edge count is 15, and every vertex has degree 3. The first property holds because the graph is defined from the given edges and none of them is a self-loop (checked by finite enumeration). The edge count is verified by direct calculation, and 3-regularity is established by expressing the neighbor set of an arbitrary vertex as a computable finite filter and evaluating its cardinality for all 10 vertices.
The edge set of op_2378_petersen_graph is equal to op_2378_petersen_edges.
We prove the auxiliary statement h1. By definition, the graph is constructed via SimpleGraph.fromEdgeSet, whose edge set equals the generating set minus self-loops by SimpleGraph.edgeSet_fromEdgeSet. By extensionality, we simplify set difference and finset membership with Set.mem_diff, Finset.mem_coe, and Set.mem_setOf_eq. The forward direction is immediate, and the reverse direction requires that no edge in op_2378_petersen_edges is a self-loop, which Lean confirms by exhaustive finite evaluation (decide).
uses
SimpleGraph.edgeSet_fromEdgeSet,Set.mem_diff,Finset.mem_coe,Set.mem_setOf_eqhave h1 : op_2378_petersen_graph.edgeSet = ↑op_2378_petersen_edges := by rw [op_2378_petersen_graph, SimpleGraph.edgeSet_fromEdgeSet] ext e simp only [Set.mem_diff, Finset.mem_coe, Set.mem_setOf_eq] constructor · exact fun h => h.1 · intro h exact ⟨h, by revert e; decide⟩
The edge set equality and the edge count of 15 hold, reducing the goal to 3-regularity.
We supply h1 for the first conjunct and verify by direct computation (decide) that the finite set of edges has cardinality 15, leaving only the condition that every vertex has degree 3.
refine ⟨h1, by decide, ?_⟩
For each vertex v, its neighbor set consists of all vertices w ≠ v such that s(v, w) is an edge.
Fixing an arbitrary vertex v, we apply extensionality on w to characterize its neighbors. Unfolding the definition of op_2378_petersen_graph along with SimpleGraph.mem_neighborSet, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe, and Set.mem_setOf_eq, a vertex w is adjacent to v if and only if w ≠ v and the unordered pair s(v, w) belongs to op_2378_petersen_edges.
uses
SimpleGraph.mem_neighborSet,SimpleGraph.fromEdgeSet_adj,Finset.mem_coe,Set.mem_setOf_eqintro v have e : op_2378_petersen_graph.neighborSet v = {w | s(v, w) ∈ op_2378_petersen_edges ∧ v ≠ w} := by ext w simp only [SimpleGraph.mem_neighborSet, op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe, Set.mem_setOf_eq]
Every vertex has degree 3.
Rewriting the neighbor set using the characterization e, we convert its cardinality from Nat.card on subtypes to set cardinality via Nat.card_coe_set_eq, and then to finset cardinality via Set.ncard_eq_toFinset_card'. Applying Set.toFinset_ofPred represents the neighbor set as a finset filtered by a decidable predicate over Fin 10. After clearing auxiliary hypotheses, universally quantifying over all 10 vertices, the claim that each degree equals 3 is verified by exhaustive computation (decide).
uses
Nat.card_coe_set_eq,Set.ncard_eq_toFinset_card',Set.toFinset_ofPredrw [e, Nat.card_coe_set_eq, Set.ncard_eq_toFinset_card'] simp only [Set.toFinset_ofPred] clear e h1 revert v decide
SimpleGraph.edgeSet_fromEdgeSet- The edge set of a simple graph formed from a set of pairs s consists of all edges in s except self-loops (diagonal elements).
Set.mem_diff- An element belongs to the set difference s \ t if and only if it belongs to s and not to t.
Finset.mem_coe- An element belongs to the set coercion of a finset if and only if it belongs to the finset.
Set.mem_setOf_eq- Membership of an element x in the set {y | p y} is equivalent to p x holding.
SimpleGraph.mem_neighborSet- A vertex w belongs to the neighbor set of v in a graph G if and only if v and w are adjacent.
SimpleGraph.fromEdgeSet_adj- Two vertices v and w are adjacent in a graph generated by an edge set s if and only if the unordered pair s(v, w) is in s and v ≠ w.
Nat.card_coe_set_eq- The type-theoretic cardinality Nat.card of a set viewed as a subtype equals its set cardinality ncard.
Set.ncard_eq_toFinset_card'- For a set with finite subtype, its set cardinality ncard equals the cardinality of its representation as a finset.
Set.toFinset_ofPred- The finset representation of a set comprehension {x | p x} on a finite type is obtained by filtering the universal finset by the decidable predicate p.
- The absence of self-loops among the 15 edges and the degree check for all 10 vertices are discharged mechanically by Lean's `decide` tactic via finite kernel evaluation.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- Edge set, edge count and 3-regularity of the Petersen witness graph. -/theorem op_2378_petersen_graph_basic : op_2378_petersen_graph.edgeSet = (↑op_2378_petersen_edges : Set (Sym2 (Fin 10))) ∧ op_2378_petersen_edges.card = 15 ∧ ∀ v : Fin 10, Nat.card ↑(op_2378_petersen_graph.neighborSet v) = 3 := by have h1 : op_2378_petersen_graph.edgeSet = ↑op_2378_petersen_edges := by rw [op_2378_petersen_graph, SimpleGraph.edgeSet_fromEdgeSet] ext e simp only [Set.mem_diff, Finset.mem_coe, Set.mem_setOf_eq] constructor · exact fun h => h.1 · intro h exact ⟨h, by revert e; decide⟩ refine ⟨h1, by decide, ?_⟩ intro v have e : op_2378_petersen_graph.neighborSet v = {w | s(v, w) ∈ op_2378_petersen_edges ∧ v ≠ w} := by ext w simp only [SimpleGraph.mem_neighborSet, op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe, Set.mem_setOf_eq] rw [e, Nat.card_coe_set_eq, Set.ncard_eq_toFinset_card'] simp only [Set.toFinset_ofPred] clear e h1 revert v decide