weak_oddness_le_card_of_third_colour_perfect
Let G be a cubic graph on a finite vertex type, s a finite set of unordered pairs of vertices, and C a proper 3-edge-colouring (colours 0,1,2, i.e. a colouring of the line graph) of G with the edges of s deleted, such that every vertex is incident in G − s with exactly one edge of colour 2. Then the weak oddness of G is at most |s|.
Statement
theorem weak_oddness_le_card_of_third_colour_perfect {V : Type*} [Fintype V] (G : SimpleGraph V) (hcub : ∀ v, Nat.card (G.neighborSet v) = 3) (s : Finset (Sym2 V)) (C : (G.deleteEdges ↑s).lineGraph.Coloring (Fin 3)) (h3 : ∀ v, ∃! w, ∃ h : (G.deleteEdges ↑s).Adj v w, C ⟨s(v, w), h⟩ = 2) : simple_graph_weak_oddness G ≤ s.card
- Source
- arXiv:2611.32276 (weak oddness to resistance ratios in snarks), proof of Theorem 1: the case p = q = 0 (every vertex incident with exactly one edge of the third colour, so the edges of the other colours form a 2-factor whose odd cycles each contain a deleted edge). Helper for weak_oddness_le_two_mul_resistance_sub_two.
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- simple_graph_weak_oddnessThe weak oddness of a finite simple graph G is the infimum of the number of odd components over all even factors of G.
- weak_oddness_le_card_all_three_add_card_zeroLet G be a cubic graph on a finite vertex type and c an assignment of colours 0,1,2,3 to the edges (any function Sym2 V → Fin 4) such that…
The proof, explained
The proof reduces the upper bound on weak oddness using weak_oddness_le_card_all_three_add_card_zero, which bounds the weak oddness of a cubic graph G by A + B, where A counts vertices all of whose incident edges have colour 3, and B counts edges of colour 0, for a suitable 4-edge-colouring c. We define c on G by shifting the proper 3-edge-colouring C of H = G − s from {0, 1, 2} to {1, 2, 3} and setting all non-edges of H to colour 0. The hypothesis that colour 2 forms a 1-factor on H ensures that each vertex in G is incident to exactly one edge of colour 3, which satisfies the oddness condition and forces A = 0 since G is cubic. Any edge of G coloured 0 must lie in s, giving B ≤ |s|, and properness of C guarantees that monochromatic incident edges can only have colour 0 or 3.
Define the deleted subgraph H = G − s and the 4-colouring c on unordered pairs of vertices.
We let H be the graph obtained from G by deleting the edges in s. We then define a colouring c on all unordered pairs of vertices by shifting the proper 3-edge-colouring C by 1 (mapping {0, 1, 2} to {1, 2, 3}) for edges in H, and setting c(e) = 0 for any pair not in H.
classical let H := G.deleteEdges ↑s let c : Sym2 V → Fin 4 := fun e => if h : e ∈ H.edgeSet then (C ⟨e, h⟩).succ else 0
Edges in H take value C(e) + 1 under c, while pairs not in H take value 0.
Unfolding the definition of c using dif_pos when the pair belongs to the edge set of H and dif_neg when it does not establishes the two basic evaluation cases for c.
uses
dif_pos,dif_neghave hc_in : ∀ v w (h : H.Adj v w), c s(v, w) = (C ⟨s(v, w), h⟩).succ := by intro v w h show (if h' : s(v, w) ∈ H.edgeSet then (C ⟨s(v, w), h'⟩).succ else 0) = _ rw [dif_pos (H.mem_edgeSet.mpr h)] have hc_out : ∀ e, e ∉ H.edgeSet → c e = 0 := by intro e h simp only [c] rw [dif_neg h]
An edge of G has colour 3 under c if and only if it is an edge of H and has colour 2 under C.
For an edge vw of G, we case-split on whether vw is in H. If it is in H, c(vw) = (C(vw)).succ = 3 is equivalent to C(vw) = 2 by injectivity of the successor map (Fin.succ_injective). If vw is not in H, then c(vw) = 0 ≠ 3 and vw ∉ E(H), so both conditions are false.
uses
Fin.succ_injectivehave h3c : ∀ v w, G.Adj v w → (c s(v, w) = 3 ↔ ∃ h : H.Adj v w, C ⟨s(v, w), h⟩ = 2) := by intro v w hvw by_cases hH : H.Adj v w · rw [hc_in v w hH] constructor · intro h exact ⟨hH, Fin.succ_injective _ (by rw [h]; rfl)⟩ · rintro ⟨h', h⟩ rw [h]; rfl · rw [hc_out _ hH] constructor · intro h; exact absurd h (by decide) · rintro ⟨h', _⟩; exact absurd h' hH
By the weak oddness bound, the problem reduces to bounding the number of edges coloured 0, since no vertex has all incident edges coloured 3.
We invoke weak_oddness_le_card_all_three_add_card_zero, which bounds the weak oddness of G by the number of vertices with all incident edges coloured 3 plus the number of edges coloured 0. To show the vertex set is empty (Nat.card_eq_zero), suppose some vertex v had all incident edges coloured 3. Since G is cubic, v has 3 neighbors, hence at least two distinct neighbors a ≠ b (Fintype.exists_pair_of_one_lt_card). Both edges va and vb would have colour 3, meaning both are incident edges in H coloured 2 under C. But hypothesis h3 asserts that v has a unique incident edge coloured 2 in H, so a = b, a contradiction. Thus no such vertex exists, and by zero_add the bound reduces to the number of edges coloured 0.
uses
weak_oddness_le_card_all_three_add_card_zero,Nat.card_eq_zero,Nat.card_eq_fintype_card,Fintype.exists_pair_of_one_lt_card,Subtype.ext,zero_addhave hmain := weak_oddness_le_card_all_three_add_card_zero G c hcub ?_ ?_ · refine hmain.trans ?_ have hA : Nat.card {v // ∀ w, G.Adj v w → c s(v, w) = 3} = 0 := by rw [Nat.card_eq_zero] left refine ⟨fun ⟨v, hv⟩ => ?_⟩ have h1 : 1 < Nat.card (G.neighborSet v) := by rw [hcub v]; omega rw [Nat.card_eq_fintype_card] at h1 obtain ⟨⟨a, ha⟩, ⟨b, hb⟩, hab⟩ := Fintype.exists_pair_of_one_lt_card h1 have hab' : a ≠ b := fun h => hab (Subtype.ext h) obtain ⟨w, _, hw⟩ := h3 v obtain ⟨ha', _⟩ := (h3c v a ha).mp (hv a ha) obtain ⟨hb', _⟩ := (h3c v b hb).mp (hv b hb) have e1 := hw a ((h3c v a ha).mp (hv a ha)) have e2 := hw b ((h3c v b hb).mp (hv b hb)) exact hab' (e1.trans e2.symm) rw [hA, zero_add]
The number of edges of G coloured 0 is at most |s|.
We define an injection ι from the edges of G coloured 0 into s. If an edge e ∈ E(G) with c(e) = 0 were not in s, it would belong to H = G − s (SimpleGraph.edgeSet_deleteEdges), giving c(e) = (C(e)).succ ≠ 0 (Fin.succ_ne_zero), a contradiction. Hence every such edge belongs to s. Since ι is injective (congrArg, Subtype.ext), the cardinality of its domain is at most |s| (Nat.card_le_card_of_injective, Nat.card_coe_set_eq, Set.ncard_coe_finset), completing the proof of the main inequality.
uses
SimpleGraph.edgeSet_deleteEdges,dif_pos,Fin.succ_ne_zero,Subtype.ext,congrArg,Nat.card_le_card_of_injective,Nat.card_coe_set_eq,Set.ncard_coe_finsetlet ι : {e // e ∈ G.edgeSet ∧ c e = 0} → (↑s : Set (Sym2 V)) := fun e => ⟨e.1, by by_contra hnot have hin : e.1 ∈ H.edgeSet := by rw [SimpleGraph.edgeSet_deleteEdges]; exact ⟨e.2.1, hnot⟩ have := e.2.2 simp only [c] at this rw [dif_pos hin] at this exact Fin.succ_ne_zero _ this⟩ have hι : Function.Injective ι := by intro a b h apply Subtype.ext have := congrArg (fun x : (↑s : Set (Sym2 V)) => x.1) h exact this have := Nat.card_le_card_of_injective ι hι rw [Nat.card_coe_set_eq, Set.ncard_coe_finset] at this exact this
Every vertex v has an odd number of incident edges coloured 3 in G (in fact, exactly one).
An incident edge vw in G has c(vw) = 3 if and only if it is an edge in H with C(vw) = 2 (SimpleGraph.deleteEdges_adj.mp). By hypothesis h3, there is a unique such neighbor w in H, so the set of such neighbors has cardinality 1 (Nat.card_eq_one_iff_exists, Subtype.ext). Since 1 is odd (odd_one), the first hypothesis of the reduction theorem is satisfied.
uses
SimpleGraph.deleteEdges_adj.mp,Nat.card_eq_one_iff_exists,Subtype.ext,odd_one· intro v have hiff : ∀ w, (G.Adj v w ∧ c s(v, w) = 3) ↔ ∃ h : H.Adj v w, C ⟨s(v, w), h⟩ = 2 := by intro w constructor · rintro ⟨hvw, h⟩; exact (h3c v w hvw).mp h · rintro ⟨h, h'⟩ exact ⟨(SimpleGraph.deleteEdges_adj.mp h).1, (h3c v w (SimpleGraph.deleteEdges_adj.mp h).1).mpr ⟨h, h'⟩⟩ have : Nat.card {w // G.Adj v w ∧ c s(v, w) = 3} = 1 := by rw [Nat.card_eq_one_iff_exists] obtain ⟨w, hw, hu⟩ := h3 v refine ⟨⟨w, (hiff w).mpr hw⟩, fun y => Subtype.ext (hu y.1 ((hiff y.1).mp y.2))⟩ rw [this]; exact odd_one
If two distinct incident edges in G have the same colour under c, that colour is 0 or 3.
Let vw₁ and vw₂ be distinct edges incident to v with c(vw₁) = c(vw₂). If vw₁ is not in H, then c(vw₁) = 0. If vw₁ is in H while vw₂ is not, then c(vw₁) ≠ 0 while c(vw₂) = 0 (Fin.succ_ne_zero), a contradiction. If both edges belong to H, then C(vw₁) = C(vw₂) by Fin.succ_injective. But since vw₁ and vw₂ share the vertex v (Sym2.mem_mk_left), they are adjacent in the line graph of H (SimpleGraph.lineGraph_adj_iff_exists), contradicting the fact that C is a proper line-graph colouring.
uses
Fin.succ_injective,SimpleGraph.lineGraph_adj_iff_exists,Sym2.mem_mk_left,congrArg,Sym2.eq_iff,Fin.succ_ne_zero· intro v w₁ w₂ h₁ h₂ hne heq by_cases k₁ : H.Adj v w₁ · by_cases k₂ : H.Adj v w₂ · exfalso rw [hc_in v w₁ k₁, hc_in v w₂ k₂] at heq have heq' := Fin.succ_injective _ heq refine C.valid ?_ heq' rw [SimpleGraph.lineGraph_adj_iff_exists] refine ⟨?_, v, Sym2.mem_mk_left _ _, Sym2.mem_mk_left _ _⟩ intro h have := congrArg Subtype.val h simp only [Sym2.eq_iff] at this rcases this with ⟨_, h⟩ | ⟨_, h⟩ · exact hne h · subst h; exact H.irrefl k₁ · exfalso rw [hc_in v w₁ k₁, hc_out _ k₂] at heq exact Fin.succ_ne_zero _ heq · left; exact hc_out _ k₁
dif_pos- Dependent if-then-else evaluates to its true branch when the condition holds.
dif_neg- Dependent if-then-else evaluates to its false branch when the condition does not hold.
Fin.succ_injective- The successor map Fin.succ on Fin n is injective.
weak_oddness_le_card_all_three_add_card_zero- For a cubic graph G and an edge 4-colouring c such that every vertex is incident with an odd number of edges of colour 3 and no two distinct incident edges share colour 1 or 2, the weak oddness of G is at most the number of vertices whose incident edges all have colour 3 plus the number of edges of colour 0.
Nat.card_eq_zero- The cardinality Nat.card of a type is 0 if and only if the type is empty or infinite.
Nat.card_eq_fintype_card- For any finite type, Nat.card equals Fintype.card.
Fintype.exists_pair_of_one_lt_card- Any finite type with cardinality strictly greater than 1 contains at least two distinct elements.
Subtype.ext- Two elements of a subtype are equal if and only if their underlying values are equal.
zero_add- In an additive structure with zero, 0 + a = a.
SimpleGraph.edgeSet_deleteEdges- Deleting a set of edges s from G produces an edge set equal to the edge set of G with s removed.
Fin.succ_ne_zero- The successor of any element in Fin n is non-zero in Fin (n + 1).
congrArg- Equality is preserved under function application: if a = b then f(a) = f(b).
Nat.card_le_card_of_injective- An injective map from a type into a finite type implies the cardinality of the domain is at most the cardinality of the codomain.
Nat.card_coe_set_eq- The Nat.card of a coerced set equals its set cardinality ncard.
Set.ncard_coe_finset- The set cardinality ncard of a Finset viewed as a set equals its finset cardinality card.
SimpleGraph.deleteEdges_adj.mp- If two vertices are adjacent in G deleteEdges s, they are adjacent in G and their joining edge is not in s.
Nat.card_eq_one_iff_exists- The Nat.card of a type is 1 if and only if there is a unique element in the type.
odd_one- The integer 1 is odd.
SimpleGraph.lineGraph_adj_iff_exists- Two distinct edges of a graph are adjacent in its line graph if and only if they share an endpoint.
Sym2.mem_mk_left- The vertex x is an endpoint of the unordered pair s(x, y).
Sym2.eq_iff- Two unordered pairs s(x, y) and s(z, w) are equal if and only if (x = z and y = w) or (x = w and y = z).
- The colours in the 3-edge-colouring C of H (taking values in Fin 3, i.e., {0, 1, 2}) are shifted by 1 via Fin.succ into Fin 4, taking values {1, 2, 3}; colour 0 is reserved for pairs not in H.
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.
theorem weak_oddness_le_card_of_third_colour_perfect {V : Type*} [Fintype V] (G : SimpleGraph V) (hcub : ∀ v, Nat.card (G.neighborSet v) = 3) (s : Finset (Sym2 V)) (C : (G.deleteEdges ↑s).lineGraph.Coloring (Fin 3)) (h3 : ∀ v, ∃! w, ∃ h : (G.deleteEdges ↑s).Adj v w, C ⟨s(v, w), h⟩ = 2) : simple_graph_weak_oddness G ≤ s.card := by classical let H := G.deleteEdges ↑s let c : Sym2 V → Fin 4 := fun e => if h : e ∈ H.edgeSet then (C ⟨e, h⟩).succ else 0 have hc_in : ∀ v w (h : H.Adj v w), c s(v, w) = (C ⟨s(v, w), h⟩).succ := by intro v w h show (if h' : s(v, w) ∈ H.edgeSet then (C ⟨s(v, w), h'⟩).succ else 0) = _ rw [dif_pos (H.mem_edgeSet.mpr h)] have hc_out : ∀ e, e ∉ H.edgeSet → c e = 0 := by intro e h simp only [c] rw [dif_neg h] have h3c : ∀ v w, G.Adj v w → (c s(v, w) = 3 ↔ ∃ h : H.Adj v w, C ⟨s(v, w), h⟩ = 2) := by intro v w hvw by_cases hH : H.Adj v w · rw [hc_in v w hH] constructor · intro h exact ⟨hH, Fin.succ_injective _ (by rw [h]; rfl)⟩ · rintro ⟨h', h⟩ rw [h]; rfl · rw [hc_out _ hH] constructor · intro h; exact absurd h (by decide) · rintro ⟨h', _⟩; exact absurd h' hH have hmain := weak_oddness_le_card_all_three_add_card_zero G c hcub ?_ ?_ · refine hmain.trans ?_ have hA : Nat.card {v // ∀ w, G.Adj v w → c s(v, w) = 3} = 0 := by rw [Nat.card_eq_zero] left refine ⟨fun ⟨v, hv⟩ => ?_⟩ have h1 : 1 < Nat.card (G.neighborSet v) := by rw [hcub v]; omega rw [Nat.card_eq_fintype_card] at h1 obtain ⟨⟨a, ha⟩, ⟨b, hb⟩, hab⟩ := Fintype.exists_pair_of_one_lt_card h1 have hab' : a ≠ b := fun h => hab (Subtype.ext h) obtain ⟨w, _, hw⟩ := h3 v obtain ⟨ha', _⟩ := (h3c v a ha).mp (hv a ha) obtain ⟨hb', _⟩ := (h3c v b hb).mp (hv b hb) have e1 := hw a ((h3c v a ha).mp (hv a ha)) have e2 := hw b ((h3c v b hb).mp (hv b hb)) exact hab' (e1.trans e2.symm) rw [hA, zero_add] let ι : {e // e ∈ G.edgeSet ∧ c e = 0} → (↑s : Set (Sym2 V)) := fun e => ⟨e.1, by by_contra hnot have hin : e.1 ∈ H.edgeSet := by rw [SimpleGraph.edgeSet_deleteEdges]; exact ⟨e.2.1, hnot⟩ have := e.2.2 simp only [c] at this rw [dif_pos hin] at this exact Fin.succ_ne_zero _ this⟩ have hι : Function.Injective ι := by intro a b h apply Subtype.ext have := congrArg (fun x : (↑s : Set (Sym2 V)) => x.1) h exact this have := Nat.card_le_card_of_injective ι hι rw [Nat.card_coe_set_eq, Set.ncard_coe_finset] at this exact this · intro v have hiff : ∀ w, (G.Adj v w ∧ c s(v, w) = 3) ↔ ∃ h : H.Adj v w, C ⟨s(v, w), h⟩ = 2 := by intro w constructor · rintro ⟨hvw, h⟩; exact (h3c v w hvw).mp h · rintro ⟨h, h'⟩ exact ⟨(SimpleGraph.deleteEdges_adj.mp h).1, (h3c v w (SimpleGraph.deleteEdges_adj.mp h).1).mpr ⟨h, h'⟩⟩ have : Nat.card {w // G.Adj v w ∧ c s(v, w) = 3} = 1 := by rw [Nat.card_eq_one_iff_exists] obtain ⟨w, hw, hu⟩ := h3 v refine ⟨⟨w, (hiff w).mpr hw⟩, fun y => Subtype.ext (hu y.1 ((hiff y.1).mp y.2))⟩ rw [this]; exact odd_one · intro v w₁ w₂ h₁ h₂ hne heq by_cases k₁ : H.Adj v w₁ · by_cases k₂ : H.Adj v w₂ · exfalso rw [hc_in v w₁ k₁, hc_in v w₂ k₂] at heq have heq' := Fin.succ_injective _ heq refine C.valid ?_ heq' rw [SimpleGraph.lineGraph_adj_iff_exists] refine ⟨?_, v, Sym2.mem_mk_left _ _, Sym2.mem_mk_left _ _⟩ intro h have := congrArg Subtype.val h simp only [Sym2.eq_iff] at this rcases this with ⟨_, h⟩ | ⟨_, h⟩ · exact hne h · subst h; exact H.irrefl k₁ · exfalso rw [hc_in v w₁ k₁, hc_out _ k₂] at heq exact Fin.succ_ne_zero _ heq · left; exact hc_out _ k₁