op_2378_petersen_resistance_upper
There is a 2-element set of edges whose deletion leaves the witness graph 3-edge-colourable.
Statement
theorem op_2378_petersen_resistance_upper :
∃ s : Finset (Sym2 (Fin 10)), (↑s : Set (Sym2 (Fin 10))) ⊆ op_2378_petersen_graph.edgeSet ∧
(op_2378_petersen_graph.deleteEdges (↑s)).lineGraph.Colorable 3 ∧ s.card = 2- Source
- step towards op_2378_partial_r_two
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- op_2378_petersen_graph_basicThe witness graph has exactly the 15 listed edges and is cubic: every vertex has exactly 3 neighbours.
- op_2378_petersen_graphThe Petersen graph on Fin 10, the graph whose edge set is op_2378_petersen_edges.
- 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.
- Used by 2
- op_2378_petersen_resistance_eqThe resistance of the witness graph equals 2.
- 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.
The proof, explained
The resistance of a graph is the minimum number of edges whose removal leaves it 3-edge-colourable. The theorem establishes an upper bound of 2 for the Petersen graph by exhibiting an explicit pair of edges, {s(0,1), s(2,3)}, whose deletion leaves a 3-edge-colourable subgraph. The edge-coloring is given by an explicit lookup function into three color classes, and the proof reduces properness of this coloring on adjacent remaining edges to an exhaustive check over all pairs of edges verified by finite evaluation.
The lookup function `in1203u_col` agrees with the color assignment `in1203u_C` on each enumerated edge.
Verified by finite evaluation (`decide`), checking for each of the 15 edge indices in `Fin 15` that searching the edge list for `in1203u_E i` recovers the color `in1203u_C i`.
theorem in1203u_col_E : ∀ i : Fin 15, in1203u_col (in1203u_E i) = in1203u_C i := by decide
Every edge in `op_2378_petersen_edges` appears in the enumerated edge list `in1203u_E`.
Verified by finite evaluation (`decide`), which checks that each of the 15 edges in the Petersen graph's edge set matches an entry in the list `in1203u_E`.
theorem in1203u_edges_idx : ∀ x ∈ op_2378_petersen_edges, ∃ i : Fin 15, in1203u_E i = x := by decide
The coloring `in1203u_C` assigns distinct colors to any two remaining adjacent edges.
Verified by finite evaluation (`decide`), exhaustively testing all pairs of indices i, j in `Fin 15` to confirm that whenever two distinct edges share a vertex and neither is in the deleted set {s(0,1), s(2,3)}, their colors `in1203u_C i` and `in1203u_C j` differ.
(∃ v, v ∈ in1203u_E i ∧ v ∈ in1203u_E j) → in1203u_C i ≠ in1203u_C j := by decide
The candidate set of edges s = {s(0,1), s(2,3)} has cardinality 2.
We extract the fact that the graph's edge set is `op_2378_petersen_edges` from `op_2378_petersen_graph_basic.1`, and propose the two-element set s = {s(0,1), s(2,3)} as the witness. Its cardinality being 2 is verified immediately by `decide`.
uses
op_2378_petersen_graph_basic.1have h1 := op_2378_petersen_graph_basic.1 refine ⟨{s(0,1), s(2,3)}, ?_, ?_, by decide⟩
The set s is a subset of the graph's edge set.
Rewriting the edge set using the basic characterization of the Petersen graph reduces the claim to {s(0,1), s(2,3)} ⊆ op_2378_petersen_edges. Applying `Finset.coe_subset.2`, this finite set inclusion is verified by computation (`decide`).
uses
Finset.coe_subset.2· rw [h1] exact Finset.coe_subset.2 (by decide)
To show 3-edge-colourability of the edge-deleted subgraph, it suffices to prove that the color function `in1203u_col` assigns distinct colors to adjacent edges.
We instantiate a 3-coloring of the line graph using `SimpleGraph.Coloring.mk`, assigning each remaining edge e the color `in1203u_col e.1`. This leaves the obligation to verify that adjacent edges receive different colors.
uses
SimpleGraph.Coloring.mk· refine ⟨SimpleGraph.Coloring.mk (fun e => in1203u_col e.1) ?_⟩
Adjacent edges x and y in the line graph belong to the Petersen graph and do not belong to the deleted set s.
Given two line-graph vertices ⟨x, hx⟩ and ⟨y, hy⟩ that are adjacent, we rewrite their membership hypotheses using `SimpleGraph.edgeSet_deleteEdges`. This establishes that x and y belong to `op_2378_petersen_edges \ {s(0,1), s(2,3)}`.
uses
SimpleGraph.edgeSet_deleteEdgesrintro ⟨x, hx⟩ ⟨y, hy⟩ hadj have he := hx have hf := hy rw [SimpleGraph.edgeSet_deleteEdges, h1] at he hfThe edges x and y can be identified with indexed edges E(i) and E(j) that are distinct and share a vertex v.
Using `in1203u_edges_idx`, we find indices i and j in `Fin 15` such that x = `in1203u_E i` and y = `in1203u_E j`. By `SimpleGraph.lineGraph_adj_iff_exists.1`, adjacency in the line graph means ⟨x, hx⟩ ≠ ⟨y, hy⟩ and there exists a common endpoint v belonging to both edges.
uses
in1203u_edges_idx,SimpleGraph.lineGraph_adj_iff_exists.1obtain ⟨i, hi⟩ := in1203u_edges_idx _ he.1 obtain ⟨j, hj⟩ := in1203u_edges_idx _ hf.1 obtain ⟨hne, v, hv1, hv2⟩ := SimpleGraph.lineGraph_adj_iff_exists.1 hadj
Showing `in1203u_col x ≠ in1203u_col y` reduces to checking that the indices are distinct and that neither edge is in s.
Substituting x and y by their indexed representations and applying `in1203u_col_E` rewrites the goal to `in1203u_C i ≠ in1203u_C j`. We then invoke `in1203u_C_proper`, which guarantees distinct colors provided i ≠ j, neither edge is in {s(0,1), s(2,3)}, and they share vertex v.
uses
in1203u_col_E,in1203u_C_propershow in1203u_col x ≠ in1203u_col y subst hi hj rw [in1203u_col_E, in1203u_col_E] refine in1203u_C_proper i j ?_ ?_ ?_ ⟨v, hv1, hv2⟩
The edge indices i and j are distinct.
If i = j, the two edge vertices in the line graph would be identical, contradicting the line-graph adjacency hypothesis which requires distinct vertices.
· rintro rfl exact hne rfl
Neither E(i) nor E(j) is in the deleted set {s(0,1), s(2,3)}.
Both x and y were established to belong to the edge set of the graph with s deleted, which explicitly excludes all elements of {s(0,1), s(2,3)}.
· exact_mod_cast he.2 · exact_mod_cast hf.2
op_2378_petersen_graph_basic.1- The edge set of the Petersen graph equals the 15-element set of edges `op_2378_petersen_edges`.
Finset.coe_subset.2- A subset relation between finite sets implies the corresponding inclusion between their coerced sets.
SimpleGraph.Coloring.mk- Constructs a vertex coloring of a graph from a color assignment function that maps adjacent vertices to distinct colors.
SimpleGraph.edgeSet_deleteEdges- Deleting a set of edges from a graph yields an edge set equal to the original edge set with the deleted edges removed.
in1203u_edges_idx- Every edge of the Petersen graph appears as the i-th edge in the enumeration `in1203u_E` for some index i.
SimpleGraph.lineGraph_adj_iff_exists.1- Two vertices in the line graph are adjacent if and only if they represent distinct edges that share a vertex.
in1203u_col_E- Evaluating the color lookup function on the i-th edge yields the tabulated color `in1203u_C i`.
in1203u_C_proper- Any two distinct edges in `in1203u_E` that share a vertex and do not belong to the deleted pair receive different colors in `in1203u_C`.
- The properness of the 3-edge-coloring on the remaining 13 edges (lemma `in1203u_C_proper`), the edge indexing (`in1203u_edges_idx`), the lookup correctness (`in1203u_col_E`), and the set inclusion and cardinality checks are all proved by exhaustive finite computation via Lean's `decide` tactic.
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.
set_option maxRecDepth 100000def in1203u_E : Fin 15 → Sym2 (Fin 10) := ![s(0,1), s(0,4), s(0,5), s(1,2), s(1,6), s(2,3), s(2,7), s(3,4), s(3,8), s(4,9), s(5,7), s(5,8), s(6,8), s(6,9), s(7,9)]def in1203u_C : Fin 15 → Fin 3 := ![0, 0, 1, 0, 2, 0, 1, 2, 0, 1, 0, 2, 1, 0, 2]def in1203u_col (x : Sym2 (Fin 10)) : Fin 3 := match (List.finRange 15).find? (fun i => in1203u_E i = x) with | some i => in1203u_C i | none => 0theorem in1203u_col_E : ∀ i : Fin 15, in1203u_col (in1203u_E i) = in1203u_C i := by decidetheorem in1203u_edges_idx : ∀ x ∈ op_2378_petersen_edges, ∃ i : Fin 15, in1203u_E i = x := by decidetheorem in1203u_C_proper : ∀ i j : Fin 15, i ≠ j → in1203u_E i ∉ ({s(0,1), s(2,3)} : Finset (Sym2 (Fin 10))) → in1203u_E j ∉ ({s(0,1), s(2,3)} : Finset (Sym2 (Fin 10))) → (∃ v, v ∈ in1203u_E i ∧ v ∈ in1203u_E j) → in1203u_C i ≠ in1203u_C j := by decide/-- Deleting the two edges s(0,1) and s(2,3) leaves a 3-edge-colourable graph, so the resistance of the witness is at most 2. -/theorem op_2378_petersen_resistance_upper : ∃ s : Finset (Sym2 (Fin 10)), (↑s : Set (Sym2 (Fin 10))) ⊆ op_2378_petersen_graph.edgeSet ∧ (op_2378_petersen_graph.deleteEdges (↑s)).lineGraph.Colorable 3 ∧ s.card = 2 := by have h1 := op_2378_petersen_graph_basic.1 refine ⟨{s(0,1), s(2,3)}, ?_, ?_, by decide⟩ · rw [h1] exact Finset.coe_subset.2 (by decide) · refine ⟨SimpleGraph.Coloring.mk (fun e => in1203u_col e.1) ?_⟩ rintro ⟨x, hx⟩ ⟨y, hy⟩ hadj have he := hx have hf := hy rw [SimpleGraph.edgeSet_deleteEdges, h1] at he hf obtain ⟨i, hi⟩ := in1203u_edges_idx _ he.1 obtain ⟨j, hj⟩ := in1203u_edges_idx _ hf.1 obtain ⟨hne, v, hv1, hv2⟩ := SimpleGraph.lineGraph_adj_iff_exists.1 hadj show in1203u_col x ≠ in1203u_col y subst hi hj rw [in1203u_col_E, in1203u_col_E] refine in1203u_C_proper i j ?_ ?_ ?_ ⟨v, hv1, hv2⟩ · rintro rfl exact hne rfl · exact_mod_cast he.2 · exact_mod_cast hf.2