op309_girth6_twentyfour_three_leafdirty_selected_rich_example
There is a connected 24-vertex cubic graph of girth at least six with a totally edge-dominating P3 forest having exactly three leaf-dirty edges and a five-edge-coloring in which all selected edges are rich.
Statement
theorem op309_girth6_twentyfour_three_leafdirty_selected_rich_example : ∃ (G : SimpleGraph (Fin 24)) (inst : DecidableRel G.Adj), letI : DecidableRel G.Adj := inst ∃ R : Finset G.edgeSet, G.Connected ∧ (∀ v, G.degree v = 3) ∧ (6 : ℕ∞) ≤ G.egirth ∧ (∀ e : G.edgeSet, ∃ f ∈ R, G.lineGraph.Adj e f) ∧ (∀ v, (R.filter fun e => v ∈ e.1).card ≤ 2) ∧ (∀ e ∈ R, ¬ ∃ a b : Fin 24, e.1 = s(a,b) ∧ (R.filter fun f => a ∈ f.1).card = 2 ∧ (R.filter fun f => b ∈ f.1).card = 2) ∧ (∀ e ∈ R, ∃ f ∈ R, G.lineGraph.Adj e f) ∧ ((Finset.univ : Finset G.edgeSet).filter fun e => e ∉ R ∧ (∃ v, v ∈ e.1 ∧ (R.filter fun f => v ∈ f.1).card = 1) ∧ ∀ v, v ∈ e.1 → (R.filter fun f => v ∈ f.1).card ≠ 0).card = 3 ∧ ∃ color : G.lineGraph.Coloring (Fin 5), simple_graph_is_rich_neighbor_coloring G color ∧ ∀ e ∈ R, simple_graph_edge_is_rich G color e
- Source
- Sharp example for the OP-309 leaf-dirty lower bound; experiments 43721–43723.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- simple_graph_is_rich_neighbor_coloringA proper edge colouring is a rich-neighbor edge colouring if every non-isolated edge (one with at least one adjacent edge) is adjacent to…
- simple_graph_edge_is_richIn an edge colouring c, an edge e is rich if all edges adjacent to e receive pairwise distinct colours.
- maxDegree_le_two_exists_rich_neighbor_five_coloringEvery finite simple graph of maximum degree at most 2 admits a rich-neighbor 5-edge-colouring.
The proof, explained
A connected 24-vertex cubic graph of girth 6 is constructed with a 12-edge P3 forest and a proper 5-edge-coloring. Girth is verified by checking the absence of cycles of length 3, 4, and 5. The remaining properties are checked by finite evaluation and matching against the definitions.
The adjacency relation is symmetric and loopless. automation
Verified by finite exhaustiveness (decide).
symm := ⟨by decide⟩ loopless := ⟨by decide⟩
There are no 3-cycles in the graph.
Verified by instantiating the boolean checker.
uses
op309_girth6_check3_truehave h := op309_girth6_check3_true unfold op309_girth6_check3 at h rw [List.all_eq_true] at h have h1 := h a (List.mem_finRange a) rw [List.all_eq_true] at h1 have h2 := h1 b hb rw [List.all_eq_true] at h2 have h3 := h2 c hc have hcab : (c == a) = false := beq_eq_false_iff_ne.mpr hca rw [hcab, Bool.false_or] at h3 have headjb : decide (a ∈ op309_girth6_nbrTable c) = true := decide_eq_true headj rw [headjb] at h3 revert h3 decide
The rest
The rest
have h := op309_girth6_check4_true unfold op309_girth6_check4 at h rw [List.all_eq_true] at h have h1 := h a (List.mem_finRange a) rw [List.all_eq_true] at h1 have h2 := h1 b hb rw [List.all_eq_true] at h2 have h3 := h2 c hc have hcab : (c == a) = false := beq_eq_false_iff_ne.mpr hca rw [hcab, Bool.false_or, List.all_eq_true] at h3 have h4 := h3 d hd have hdbb : (d == b) = false := beq_eq_false_iff_ne.mpr hdb have hdab : (d == a) = false := beq_eq_false_iff_ne.mpr hda rw [hdbb, hdab, Bool.false_or, Bool.false_or] at h4 have headjb : decide (a ∈ op309_girth6_nbrTable d) = true := decide_eq_true headj rw [headjb] at h4 revert h4 decide def op309_girth6_check5 : Bool := (List.finRange 24).all fun a => (op309_girth6_nbrTable a).all fun b => (op309_girth6_nbrTable b).all fun c => (c == a) || (op309_girth6_nbrTable c).all fun d => (d == b || d == a) || (op309_girth6_nbrTable d).all fun e => (e == c || e == b || e == a) || !(decide (a ∈ op309_girth6_nbrTable e)) theorem op309_girth6_check5_true : op309_girth6_check5 = true := rfl lemma op309_girth6_no_c5 (a b c d e : Fin 24) (hb : b ∈ op309_girth6_nbrTable a) (hc : c ∈ op309_girth6_nbrTable b) (hd : d ∈ op309_girth6_nbrTable c) (he : e ∈ op309_girth6_nbrTable d) (hca : c ≠ a) (hdb : d ≠ b) (hda : d ≠ a) (hec : e ≠ c) (heb : e ≠ b) (hea : e ≠ a) (headj : a ∈ op309_girth6_nbrTable e) : False := by have h := op309_girth6_check5_true unfold op309_girth6_check5 at h rw [List.all_eq_true] at h have h1 := h a (List.mem_finRange a) rw [List.all_eq_true] at h1 have h2 := h1 b hb rw [List.all_eq_true] at h2 have h3 := h2 c hc have hcab : (c == a) = false := beq_eq_false_iff_ne.mpr hca rw [hcab, Bool.false_or, List.all_eq_true] at h3 have h4 := h3 d hd have hdbb : (d == b) = false := beq_eq_false_iff_ne.mpr hdb have hdab : (d == a) = false := beq_eq_false_iff_ne.mpr hda rw [hdbb, hdab, Bool.false_or, Bool.false_or, List.all_eq_true] at h4 have h5 := h4 e he have hecb : (e == c) = false := beq_eq_false_iff_ne.mpr hec have hebb : (e == b) = false := beq_eq_false_iff_ne.mpr heb have heab : (e == a) = false := beq_eq_false_iff_ne.mpr hea rw [hecb, hebb, heab, Bool.false_or, Bool.false_or, Bool.false_or] at h5 have headjb : decide (a ∈ op309_girth6_nbrTable e) = true := decide_eq_true headj rw [headjb] at h5 revert h5 decide lemma op309_girth6_example_girth_ge_6 : (6 : ℕ∞) ≤ op309_girth6_example_graph.egirth := by rw [SimpleGraph.le_egirth] intro a w hw by_contra hb have hlt : w.length < 6 := by exact_mod_cast Nat.not_le.mp (by exact_mod_cast hb) have hge : 3 ≤ w.length := hw.three_le_length have hne : ∀ i j, i < w.length → j < w.length → i ≠ j → w.getVert i ≠ w.getVert j := by intro i j hi hj hij he apply hij apply hw.getVert_injOn' _ _ he <;> simp only [Set.mem_setOf_eq] <;> omega have h3 : w.length = 3 → False := by intro hlen have e0 := w.adj_getVert_succ (i := 0) (by omega) have e1 := w.adj_getVert_succ (i := 1) (by omega) have elast : op309_girth6_example_graph.Adj (w.getVert 2) (w.getVert 0) := by have h := w.adj_getVert_succ (i := 2) (by omega) rw [show 2 + 1 = 3 from rfl, ← hlen, w.getVert_length] at h simpa only [w.getVert_zero] using h exact op309_girth6_no_c3 (w.getVert 0) (w.getVert 1) (w.getVert 2) e0 e1 (hne 2 0 (by omega) (by omega) (by omega)) elast have h4 : w.length = 4 → False := by intro hlen have e0 := w.adj_getVert_succ (i := 0) (by omega) have e1 := w.adj_getVert_succ (i := 1) (by omega) have e2 := w.adj_getVert_succ (i := 2) (by omega) have elast : op309_girth6_example_graph.Adj (w.getVert 3) (w.getVert 0) := by have h := w.adj_getVert_succ (i := 3) (by omega) rw [show 3 + 1 = 4 from rfl, ← hlen, w.getVert_length] at h simpa only [w.getVert_zero] using h exact op309_girth6_no_c4 (w.getVert 0) (w.getVert 1) (w.getVert 2) (w.getVert 3) e0 e1 e2 (hne 2 0 (by omega) (by omega) (by omega)) (hne 3 1 (by omega) (by omega) (by omega)) (hne 3 0 (by omega) (by omega) (by omega)) elast have h5 : w.length = 5 → False := by intro hlen have e0 := w.adj_getVert_succ (i := 0) (by omega) have e1 := w.adj_getVert_succ (i := 1) (by omega) have e2 := w.adj_getVert_succ (i := 2) (by omega) have e3 := w.adj_getVert_succ (i := 3) (by omega) have elast : op309_girth6_example_graph.Adj (w.getVert 4) (w.getVert 0) := by have h := w.adj_getVert_succ (i := 4) (by omega) rw [show 4 + 1 = 5 from rfl, ← hlen, w.getVert_length] at h simpa only [w.getVert_zero] using h exact op309_girth6_no_c5 (w.getVert 0) (w.getVert 1) (w.getVert 2) (w.getVert 3) (w.getVert 4) e0 e1 e2 e3 (hne 2 0 (by omega) (by omega) (by omega)) (hne 3 1 (by omega) (by omega) (by omega)) (hne 3 0 (by omega) (by omega) (by omega)) (hne 4 2 (by omega) (by omega) (by omega)) (hne 4 1 (by omega) (by omega) (by omega)) (hne 4 0 (by omega) (by omega) (by omega)) elast rcases (show w.length = 3 ∨ w.length = 4 ∨ w.length = 5 by omega) with h | h | h · exact h3 h · exact h4 h · exact h5 h def op309_girth6_R_sym : Finset (Sym2 (Fin 24)) := {s(0, 6), s(0, 7), s(1, 8), s(1, 9), s(2, 10), s(2, 11), s(3, 12), s(3, 13), s(4, 14), s(4, 15), s(5, 16), s(5, 17)} def op309_girth6_example_R : Finset op309_girth6_example_graph.edgeSet := Finset.univ.filter (fun e => e.1 ∈ op309_girth6_R_sym) def op309_girth6_color_of_pair (u v : Nat) : Fin 5 := let p := if u < v then (u, v) else (v, u) match p with | (0, 1) => 0 | (0, 6) => 1 | (0, 7) => 3 | (1, 8) => 4 | (1, 9) => 1 | (2, 3) => 3 | (2, 10) => 1 | (2, 11) => 0 | (3, 12) => 2 | (3, 13) => 4 | (4, 5) => 2 | (4, 14) => 4 | (4, 15) => 1 | (5, 16) => 3 | (5, 17) => 4 | (6, 10) => 2 | (6, 18) => 4 | (7, 19) => 2 | (7, 21) => 4 | (8, 14) => 3 | (8, 22) => 2 | (9, 20) => 3 | (9, 23) => 2 | (10, 22) => 4 | (11, 19) => 4 | (11, 20) => 2 | (12, 16) => 0 | (12, 23) => 1 | (13, 18) => 1 | (13, 21) => 0 | (14, 18) => 0 | (15, 21) => 3 | (15, 23) => 0 | (16, 19) => 1 | (17, 20) => 1 | (17, 22) => 0 | _ => 0 lemma op309_girth6_color_of_pair_symm (u v : Nat) : op309_girth6_color_of_pair u v = op309_girth6_color_of_pair v u := by unfold op309_girth6_color_of_pair rcases lt_trichotomy u v with h | rfl | h · have h2 : ¬ v < u := by omega simp only [h, h2, ite_true, ite_false] · rfl · have h2 : ¬ u < v := by omega simp only [h, h2, ite_true, ite_false] def op309_girth6_edge_color (s : Sym2 (Fin 24)) : Fin 5 := Quot.liftOn s (fun (u, v) => op309_girth6_color_of_pair u.val v.val) (by intro ⟨u1, v1⟩ ⟨u2, v2⟩ h cases h with | refl => rfl | swap => exact op309_girth6_color_of_pair_symm u1.val v1.val) def op309_girth6_example_color : op309_girth6_example_graph.lineGraph.Coloring (Fin 5) := ⟨fun e => op309_girth6_edge_color e.1, by decide⟩ theorem op309_girth6_twentyfour_three_leafdirty_selected_rich_example : ∃ (G : SimpleGraph (Fin 24)) (inst : DecidableRel G.Adj), letI : DecidableRel G.Adj := inst ∃ R : Finset G.edgeSet, G.Connected ∧ (∀ v, G.degree v = 3) ∧ (6 : ℕ∞) ≤ G.egirth ∧ (∀ e : G.edgeSet, ∃ f ∈ R, G.lineGraph.Adj e f) ∧ (∀ v, (R.filter fun e => v ∈ e.1).card ≤ 2) ∧ (∀ e ∈ R, ¬ ∃ a b : Fin 24, e.1 = s(a,b) ∧ (R.filter fun f => a ∈ f.1).card = 2 ∧ (R.filter fun f => b ∈ f.1).card = 2) ∧ (∀ e ∈ R, ∃ f ∈ R, G.lineGraph.Adj e f) ∧ ((Finset.univ : Finset G.edgeSet).filter fun e => e ∉ R ∧ (∃ v, v ∈ e.1 ∧ (R.filter fun f => v ∈ f.1).card = 1) ∧ ∀ v, v ∈ e.1 → (R.filter fun f => v ∈ f.1).card ≠ 0).card = 3 ∧ ∃ color : G.lineGraph.Coloring (Fin 5), simple_graph_is_rich_neighbor_coloring G color ∧ ∀ e ∈ R, simple_graph_edge_is_rich G color e := by refine ⟨op309_girth6_example_graph, inferInstance, op309_girth6_example_R, by decide, by decide, op309_girth6_example_girth_ge_6, by decide, by decide, by decide, by decide, by decide, op309_girth6_example_color, ?_, by unfold simple_graph_edge_is_rich; decide⟩ · intro e _ have hdom : ∀ e : op309_girth6_example_graph.edgeSet, ∃ f ∈ op309_girth6_example_R, op309_girth6_example_graph.lineGraph.Adj e f := by decide obtain ⟨f, hfR, hadj⟩ := hdom e have hrich : ∀ e ∈ op309_girth6_example_R, simple_graph_edge_is_rich op309_girth6_example_graph op309_girth6_example_color e := by unfold simple_graph_edge_is_rich; decide exact ⟨f, hadj, hrich f hfR⟩
op309_girth6_check3_true- test
- Unresolved check: step 3's explanation only repeats its claim: say how it is shown
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.
def op309_girth6_nbrTable (u : Fin 24) : List (Fin 24) := match u.val with | 0 => [1, 6, 7] | 1 => [0, 8, 9] | 2 => [3, 10, 11] | 3 => [2, 12, 13] | 4 => [5, 14, 15] | 5 => [4, 16, 17] | 6 => [0, 10, 18] | 7 => [0, 19, 21] | 8 => [1, 14, 22] | 9 => [1, 20, 23] | 10 => [2, 6, 22] | 11 => [2, 19, 20] | 12 => [3, 16, 23] | 13 => [3, 18, 21] | 14 => [4, 8, 18] | 15 => [4, 21, 23] | 16 => [5, 12, 19] | 17 => [5, 20, 22] | 18 => [6, 13, 14] | 19 => [7, 11, 16] | 20 => [9, 11, 17] | 21 => [7, 13, 15] | 22 => [8, 10, 17] | 23 => [9, 12, 15] | _ => []def op309_girth6_adj (u v : Fin 24) : Prop := v ∈ op309_girth6_nbrTable uinstance : DecidableRel op309_girth6_adj := fun u v => inferInstanceAs (Decidable (v ∈ op309_girth6_nbrTable u))def op309_girth6_example_graph : SimpleGraph (Fin 24) where Adj := op309_girth6_adj symm := ⟨by decide⟩ loopless := ⟨by decide⟩instance : DecidableRel op309_girth6_example_graph.Adj := inferInstanceAs (DecidableRel op309_girth6_adj)def op309_girth6_check3 : Bool := (List.finRange 24).all fun a => (op309_girth6_nbrTable a).all fun b => (op309_girth6_nbrTable b).all fun c => (c == a) || !(decide (a ∈ op309_girth6_nbrTable c))theorem op309_girth6_check3_true : op309_girth6_check3 = true := rfllemma op309_girth6_no_c3 (a b c : Fin 24) (hb : b ∈ op309_girth6_nbrTable a) (hc : c ∈ op309_girth6_nbrTable b) (hca : c ≠ a) (headj : a ∈ op309_girth6_nbrTable c) : False := by have h := op309_girth6_check3_true unfold op309_girth6_check3 at h rw [List.all_eq_true] at h have h1 := h a (List.mem_finRange a) rw [List.all_eq_true] at h1 have h2 := h1 b hb rw [List.all_eq_true] at h2 have h3 := h2 c hc have hcab : (c == a) = false := beq_eq_false_iff_ne.mpr hca rw [hcab, Bool.false_or] at h3 have headjb : decide (a ∈ op309_girth6_nbrTable c) = true := decide_eq_true headj rw [headjb] at h3 revert h3 decidedef op309_girth6_check4 : Bool := (List.finRange 24).all fun a => (op309_girth6_nbrTable a).all fun b => (op309_girth6_nbrTable b).all fun c => (c == a) || (op309_girth6_nbrTable c).all fun d => (d == b || d == a) || !(decide (a ∈ op309_girth6_nbrTable d))theorem op309_girth6_check4_true : op309_girth6_check4 = true := rfllemma op309_girth6_no_c4 (a b c d : Fin 24) (hb : b ∈ op309_girth6_nbrTable a) (hc : c ∈ op309_girth6_nbrTable b) (hd : d ∈ op309_girth6_nbrTable c) (hca : c ≠ a) (hdb : d ≠ b) (hda : d ≠ a) (headj : a ∈ op309_girth6_nbrTable d) : False := by have h := op309_girth6_check4_true unfold op309_girth6_check4 at h rw [List.all_eq_true] at h have h1 := h a (List.mem_finRange a) rw [List.all_eq_true] at h1 have h2 := h1 b hb rw [List.all_eq_true] at h2 have h3 := h2 c hc have hcab : (c == a) = false := beq_eq_false_iff_ne.mpr hca rw [hcab, Bool.false_or, List.all_eq_true] at h3 have h4 := h3 d hd have hdbb : (d == b) = false := beq_eq_false_iff_ne.mpr hdb have hdab : (d == a) = false := beq_eq_false_iff_ne.mpr hda rw [hdbb, hdab, Bool.false_or, Bool.false_or] at h4 have headjb : decide (a ∈ op309_girth6_nbrTable d) = true := decide_eq_true headj rw [headjb] at h4 revert h4 decidedef op309_girth6_check5 : Bool := (List.finRange 24).all fun a => (op309_girth6_nbrTable a).all fun b => (op309_girth6_nbrTable b).all fun c => (c == a) || (op309_girth6_nbrTable c).all fun d => (d == b || d == a) || (op309_girth6_nbrTable d).all fun e => (e == c || e == b || e == a) || !(decide (a ∈ op309_girth6_nbrTable e))theorem op309_girth6_check5_true : op309_girth6_check5 = true := rfllemma op309_girth6_no_c5 (a b c d e : Fin 24) (hb : b ∈ op309_girth6_nbrTable a) (hc : c ∈ op309_girth6_nbrTable b) (hd : d ∈ op309_girth6_nbrTable c) (he : e ∈ op309_girth6_nbrTable d) (hca : c ≠ a) (hdb : d ≠ b) (hda : d ≠ a) (hec : e ≠ c) (heb : e ≠ b) (hea : e ≠ a) (headj : a ∈ op309_girth6_nbrTable e) : False := by have h := op309_girth6_check5_true unfold op309_girth6_check5 at h rw [List.all_eq_true] at h have h1 := h a (List.mem_finRange a) rw [List.all_eq_true] at h1 have h2 := h1 b hb rw [List.all_eq_true] at h2 have h3 := h2 c hc have hcab : (c == a) = false := beq_eq_false_iff_ne.mpr hca rw [hcab, Bool.false_or, List.all_eq_true] at h3 have h4 := h3 d hd have hdbb : (d == b) = false := beq_eq_false_iff_ne.mpr hdb have hdab : (d == a) = false := beq_eq_false_iff_ne.mpr hda rw [hdbb, hdab, Bool.false_or, Bool.false_or, List.all_eq_true] at h4 have h5 := h4 e he have hecb : (e == c) = false := beq_eq_false_iff_ne.mpr hec have hebb : (e == b) = false := beq_eq_false_iff_ne.mpr heb have heab : (e == a) = false := beq_eq_false_iff_ne.mpr hea rw [hecb, hebb, heab, Bool.false_or, Bool.false_or, Bool.false_or] at h5 have headjb : decide (a ∈ op309_girth6_nbrTable e) = true := decide_eq_true headj rw [headjb] at h5 revert h5 decidelemma op309_girth6_example_girth_ge_6 : (6 : ℕ∞) ≤ op309_girth6_example_graph.egirth := by rw [SimpleGraph.le_egirth] intro a w hw by_contra hb have hlt : w.length < 6 := by exact_mod_cast Nat.not_le.mp (by exact_mod_cast hb) have hge : 3 ≤ w.length := hw.three_le_length have hne : ∀ i j, i < w.length → j < w.length → i ≠ j → w.getVert i ≠ w.getVert j := by intro i j hi hj hij he apply hij apply hw.getVert_injOn' _ _ he <;> simp only [Set.mem_setOf_eq] <;> omega have h3 : w.length = 3 → False := by intro hlen have e0 := w.adj_getVert_succ (i := 0) (by omega) have e1 := w.adj_getVert_succ (i := 1) (by omega) have elast : op309_girth6_example_graph.Adj (w.getVert 2) (w.getVert 0) := by have h := w.adj_getVert_succ (i := 2) (by omega) rw [show 2 + 1 = 3 from rfl, ← hlen, w.getVert_length] at h simpa only [w.getVert_zero] using h exact op309_girth6_no_c3 (w.getVert 0) (w.getVert 1) (w.getVert 2) e0 e1 (hne 2 0 (by omega) (by omega) (by omega)) elast have h4 : w.length = 4 → False := by intro hlen have e0 := w.adj_getVert_succ (i := 0) (by omega) have e1 := w.adj_getVert_succ (i := 1) (by omega) have e2 := w.adj_getVert_succ (i := 2) (by omega) have elast : op309_girth6_example_graph.Adj (w.getVert 3) (w.getVert 0) := by have h := w.adj_getVert_succ (i := 3) (by omega) rw [show 3 + 1 = 4 from rfl, ← hlen, w.getVert_length] at h simpa only [w.getVert_zero] using h exact op309_girth6_no_c4 (w.getVert 0) (w.getVert 1) (w.getVert 2) (w.getVert 3) e0 e1 e2 (hne 2 0 (by omega) (by omega) (by omega)) (hne 3 1 (by omega) (by omega) (by omega)) (hne 3 0 (by omega) (by omega) (by omega)) elast have h5 : w.length = 5 → False := by intro hlen have e0 := w.adj_getVert_succ (i := 0) (by omega) have e1 := w.adj_getVert_succ (i := 1) (by omega) have e2 := w.adj_getVert_succ (i := 2) (by omega) have e3 := w.adj_getVert_succ (i := 3) (by omega) have elast : op309_girth6_example_graph.Adj (w.getVert 4) (w.getVert 0) := by have h := w.adj_getVert_succ (i := 4) (by omega) rw [show 4 + 1 = 5 from rfl, ← hlen, w.getVert_length] at h simpa only [w.getVert_zero] using h exact op309_girth6_no_c5 (w.getVert 0) (w.getVert 1) (w.getVert 2) (w.getVert 3) (w.getVert 4) e0 e1 e2 e3 (hne 2 0 (by omega) (by omega) (by omega)) (hne 3 1 (by omega) (by omega) (by omega)) (hne 3 0 (by omega) (by omega) (by omega)) (hne 4 2 (by omega) (by omega) (by omega)) (hne 4 1 (by omega) (by omega) (by omega)) (hne 4 0 (by omega) (by omega) (by omega)) elast rcases (show w.length = 3 ∨ w.length = 4 ∨ w.length = 5 by omega) with h | h | h · exact h3 h · exact h4 h · exact h5 hdef op309_girth6_R_sym : Finset (Sym2 (Fin 24)) := {s(0, 6), s(0, 7), s(1, 8), s(1, 9), s(2, 10), s(2, 11), s(3, 12), s(3, 13), s(4, 14), s(4, 15), s(5, 16), s(5, 17)}def op309_girth6_example_R : Finset op309_girth6_example_graph.edgeSet := Finset.univ.filter (fun e => e.1 ∈ op309_girth6_R_sym)def op309_girth6_color_of_pair (u v : Nat) : Fin 5 := let p := if u < v then (u, v) else (v, u) match p with | (0, 1) => 0 | (0, 6) => 1 | (0, 7) => 3 | (1, 8) => 4 | (1, 9) => 1 | (2, 3) => 3 | (2, 10) => 1 | (2, 11) => 0 | (3, 12) => 2 | (3, 13) => 4 | (4, 5) => 2 | (4, 14) => 4 | (4, 15) => 1 | (5, 16) => 3 | (5, 17) => 4 | (6, 10) => 2 | (6, 18) => 4 | (7, 19) => 2 | (7, 21) => 4 | (8, 14) => 3 | (8, 22) => 2 | (9, 20) => 3 | (9, 23) => 2 | (10, 22) => 4 | (11, 19) => 4 | (11, 20) => 2 | (12, 16) => 0 | (12, 23) => 1 | (13, 18) => 1 | (13, 21) => 0 | (14, 18) => 0 | (15, 21) => 3 | (15, 23) => 0 | (16, 19) => 1 | (17, 20) => 1 | (17, 22) => 0 | _ => 0lemma op309_girth6_color_of_pair_symm (u v : Nat) : op309_girth6_color_of_pair u v = op309_girth6_color_of_pair v u := by unfold op309_girth6_color_of_pair rcases lt_trichotomy u v with h | rfl | h · have h2 : ¬ v < u := by omega simp only [h, h2, ite_true, ite_false] · rfl · have h2 : ¬ u < v := by omega simp only [h, h2, ite_true, ite_false]def op309_girth6_edge_color (s : Sym2 (Fin 24)) : Fin 5 := Quot.liftOn s (fun (u, v) => op309_girth6_color_of_pair u.val v.val) (by intro ⟨u1, v1⟩ ⟨u2, v2⟩ h cases h with | refl => rfl | swap => exact op309_girth6_color_of_pair_symm u1.val v1.val)def op309_girth6_example_color : op309_girth6_example_graph.lineGraph.Coloring (Fin 5) := ⟨fun e => op309_girth6_edge_color e.1, by decide⟩theorem op309_girth6_twentyfour_three_leafdirty_selected_rich_example : ∃ (G : SimpleGraph (Fin 24)) (inst : DecidableRel G.Adj), letI : DecidableRel G.Adj := inst ∃ R : Finset G.edgeSet, G.Connected ∧ (∀ v, G.degree v = 3) ∧ (6 : ℕ∞) ≤ G.egirth ∧ (∀ e : G.edgeSet, ∃ f ∈ R, G.lineGraph.Adj e f) ∧ (∀ v, (R.filter fun e => v ∈ e.1).card ≤ 2) ∧ (∀ e ∈ R, ¬ ∃ a b : Fin 24, e.1 = s(a,b) ∧ (R.filter fun f => a ∈ f.1).card = 2 ∧ (R.filter fun f => b ∈ f.1).card = 2) ∧ (∀ e ∈ R, ∃ f ∈ R, G.lineGraph.Adj e f) ∧ ((Finset.univ : Finset G.edgeSet).filter fun e => e ∉ R ∧ (∃ v, v ∈ e.1 ∧ (R.filter fun f => v ∈ f.1).card = 1) ∧ ∀ v, v ∈ e.1 → (R.filter fun f => v ∈ f.1).card ≠ 0).card = 3 ∧ ∃ color : G.lineGraph.Coloring (Fin 5), simple_graph_is_rich_neighbor_coloring G color ∧ ∀ e ∈ R, simple_graph_edge_is_rich G color e := by refine ⟨op309_girth6_example_graph, inferInstance, op309_girth6_example_R, by decide, by decide, op309_girth6_example_girth_ge_6, by decide, by decide, by decide, by decide, by decide, op309_girth6_example_color, ?_, by unfold simple_graph_edge_is_rich; decide⟩ · intro e _ have hdom : ∀ e : op309_girth6_example_graph.edgeSet, ∃ f ∈ op309_girth6_example_R, op309_girth6_example_graph.lineGraph.Adj e f := by decide obtain ⟨f, hfR, hadj⟩ := hdom e have hrich : ∀ e ∈ op309_girth6_example_R, simple_graph_edge_is_rich op309_girth6_example_graph op309_girth6_example_color e := by unfold simple_graph_edge_is_rich; decide exact ⟨f, hadj, hrich f hfR⟩