op309_triple_star_forest_properties
On Fin n with 3 dividing n, if every pair inside a consecutive triple {3t,3t+1,3t+2} that contains 3t is an edge of G, then the set R of these edges (each triple a path centred at 3t) is an uncolored almost-star forest, every vertex meets at most two R-edges, no R-edge joins two vertices of R-degree two, and every edge of G meets an R-edge in the line graph.
Statement
theorem op309_triple_star_forest_properties (n : ℕ) (h3 : 3 ∣ n) (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (hstar : ∀ a b : Fin n, a ≠ b → a.val / 3 = b.val / 3 → (a.val % 3 = 0 ∨ b.val % 3 = 0) → G.Adj a b) (R : Finset G.edgeSet) (hR : ∀ e : G.edgeSet, e ∈ R ↔ ∃ a b : Fin n, e.1 = s(a,b) ∧ a ≠ b ∧ a.val / 3 = b.val / 3 ∧ (a.val % 3 = 0 ∨ b.val % 3 = 0)) : op309_uncolored_almost_star_forest G R ∧ (∀ v, (R.filter fun e => v ∈ e.1).card ≤ 2) ∧ (∀ e ∈ R, ¬ ∃ a b : Fin n, e.1 = s(a,b) ∧ (R.filter fun f => a ∈ f.1).card = 2 ∧ (R.filter fun f => b ∈ f.1).card = 2) ∧ (∀ e : G.edgeSet, ∃ f ∈ R, G.lineGraph.Adj e f)
- Source
- OP-309 girth-nine block-ring construction (experiment 42423): helper for op309_girth9_acyclic_source_unbounded_switch_cost; the forest of every block of the ring.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- op309_uncolored_almost_star_forestA selected edge set whose nonempty components are trees with two or three edges.
- Used by 5
- op309_girth9_acyclic_source_unbounded_switch_costFor every k at least two, a connected cubic girth-nine graph has a spanning P3 forest with a selected-rich five-coloring and an…
- op309_girth9_block_ring_rich_coloringFor every k, the k-block ring of the explicit 132-vertex girth-nine graph (copy j's vertex 36 joined to copy j+1's vertex 39 in place of…
- op309_girth9_block_ring_unchanged_block_keeps_pairsIn the k-block ring of the explicit 132-vertex girth-nine graph with its triple-star forest R, let qb and q be two port labellings that…
- op309_girth9_block_ring_untouched_block_obstructionIn the k-block ring of the explicit 132-vertex girth-nine graph with its triple-star forest R, any valid padded port quotient Q, q that…
- op309_triple_star_forest_degreesOn Fin n with 3 dividing n, if every pair inside a consecutive triple that contains its first element 3t is an edge, then in the forest R…
The proof, explained
The proof shows that the set R of edges within each triple forms a collection of disjoint 2-edge paths (stars of size 2 centered at each multiple of 3). By examining the endpoints of edges in R, the proof verifies that R is an uncolored almost-star forest, has maximum degree 2, contains no edge joining two vertices of degree 2, and dominates the line graph of G.
Any edge in R can be written as s(x, c) where x % 3 ≠ 0 and c is the center 3 * (x / 3)
By definition of R, an edge has endpoints a and b in the same triple with at least one divisible by 3. Splitting on whether a is divisible by 3 identifies the center c and the leaf x.
uses
in1267_repobtain ⟨a, b, hab, hne, h3, h0⟩ := (hR e).1 he have hne' : a.val ≠ b.val := fun h => hne (Fin.ext h) by_cases ha : a.val % 3 = 0 · exact ⟨b, a, by omega, by omega, by rw [hab, Sym2.eq_swap]⟩ · exact ⟨a, b, ha, by omega, hab⟩
The edge from a leaf x to its center is uniquely determined
Since c and c' both equal 3 * (x / 3), they are equal, so e and f are the same edge.
theorem in1267_uniq {n : ℕ} {G : SimpleGraph (Fin n)} {e f : G.edgeSet} {x c c' : Fin n} (hc : c.val = 3 * (x.val / 3)) (hc' : c'.val = 3 * (x.val / 3)) (he : e.1 = s(x, c)) (hf : f.1 = s(x, c')) : e = f := by have : c = c' := Fin.ext (by omega) subst this exact Subtype.ext (he.trans hf.symm)
Endpoints of an edge in R belong to the same triple with at least one divisible by 3
Any edge in R has endpoints in the same triple with one being the center.
theorem in1267_mem_image {n : ℕ} {G : SimpleGraph (Fin n)} {R : Finset G.edgeSet} (hR : ∀ e : G.edgeSet, e ∈ R ↔ ∃ a b : Fin n, e.1 = s(a,b) ∧ a ≠ b ∧ a.val / 3 = b.val / 3 ∧ (a.val % 3 = 0 ∨ b.val % 3 = 0)) {a b : Fin n} (h : s(a,b) ∈ R.image Subtype.val) : a.val ≠ b.val ∧ a.val / 3 = b.val / 3 ∧ (a.val % 3 = 0 ∨ b.val % 3 = 0) := by obtain ⟨e, he, hea⟩ := Finset.mem_image.1 h obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR he rw [hea] at hxc rcases Sym2.eq_iff.1 hxc with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ <;> omega
Op309 triple star forest properties hold
The properties are verified.
theorem op309_triple_star_forest_properties (n : ℕ) (h3 : 3 ∣ n) (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (hstar : ∀ a b : Fin n, a ≠ b → a.val / 3 = b.val / 3 → (a.val % 3 = 0 ∨ b.val % 3 = 0) → G.Adj a b) (R : Finset G.edgeSet) (hR : ∀ e : G.edgeSet, e ∈ R ↔ ∃ a b : Fin n, e.1 = s(a,b) ∧ a ≠ b ∧ a.val / 3 = b.val / 3 ∧ (a.val % 3 = 0 ∨ b.val % 3 = 0)) : op309_uncolored_almost_star_forest G R ∧ (∀ v, (R.filter fun e => v ∈ e.1).card ≤ 2) ∧ (∀ e ∈ R, ¬ ∃ a b : Fin n, e.1 = s(a,b) ∧ (R.filter fun f => a ∈ f.1).card = 2 ∧ (R.filter fun f => b ∈ f.1).card = 2) ∧ (∀ e : G.edgeSet, ∃ f ∈ R, G.lineGraph.Adj e f) := by obtain ⟨m, hm⟩ := h3 -- an R-edge between two given vertices of a triple have mkE : ∀ a b : Fin n, a.val ≠ b.val → a.val / 3 = b.val / 3 → (a.val % 3 = 0 ∨ b.val % 3 = 0) → ∃ e ∈ R, e.1 = s(a,b) := by intro a b hne h3 h0 have hne' : a ≠ b := fun h => hne (congrArg Fin.val h) refine ⟨⟨s(a,b), hstar a b hne' h3 h0⟩, (hR _).2 ⟨a, b, rfl, hne', h3, h0⟩, rfl⟩ -- every vertex lies on an R-edge have atv : ∀ v : Fin n, ∃ f ∈ R, v ∈ f.1 := by intro v have hv := v.isLt by_cases h0 : v.val % 3 = 0 · obtain ⟨f, hf, hf1⟩ := mkE v ⟨v.val + 1, by omega⟩ (by simp) (by simp <;> omega) (Or.inl h0) exact ⟨f, hf, by rw [hf1]; exact Sym2.mem_mk_left _ _⟩ · obtain ⟨f, hf, hf1⟩ := mkE v ⟨3 * (v.val / 3), by omega⟩ (by simp <;> omega) (by simp <;> omega) (Or.inr (by simp)) exact ⟨f, hf, by rw [hf1]; exact Sym2.mem_mk_left _ _⟩ -- the centre of a leaf's edge lies on a second R-edge have sib : ∀ x c : Fin n, x.val % 3 ≠ 0 → c.val = 3 * (x.val / 3) → ∃ f ∈ R, c ∈ f.1 ∧ f.1 ≠ s(x, c) := by intro x c hx hc have hxl := x.isLt have hlt : c.val + 2 < n := by omega have key : ∀ y : Fin n, y.val ≠ x.val → y.val ≠ c.val → (∃ f ∈ R, c ∈ f.1 ∧ f.1 = s(c, y)) → ∃ f ∈ R, c ∈ f.1 ∧ f.1 ≠ s(x, c) := by rintro y hyx hyc ⟨f, hf, hcf, hf1⟩ refine ⟨f, hf, hcf, fun h => ?_⟩ rw [hf1] at h rcases Sym2.eq_iff.1 h with ⟨h1', h2'⟩ | ⟨h1', h2'⟩ · exact hyc (congrArg Fin.val h2') · exact hyx (congrArg Fin.val h2') by_cases h1 : x.val % 3 = 1 · obtain ⟨f, hf, hf1⟩ := mkE c ⟨c.val + 2, hlt⟩ (by simp) (by simp <;> omega) (Or.inl (by omega)) exact key ⟨c.val + 2, hlt⟩ (by simp <;> omega) (by simp) ⟨f, hf, by rw [hf1]; exact Sym2.mem_mk_left _ _, hf1⟩ · obtain ⟨f, hf, hf1⟩ := mkE c ⟨c.val + 1, by omega⟩ (by simp) (by simp <;> omega) (Or.inl (by omega)) exact key ⟨c.val + 1, by omega⟩ (by simp <;> omega) (by simp) ⟨f, hf, by rw [hf1]; exact Sym2.mem_mk_left _ _, hf1⟩ -- vertices of an R-edge lie in the triple of its leaf have tri : ∀ (v x c : Fin n), c.val = 3 * (x.val / 3) → v ∈ s(x, c) → v.val / 3 = x.val / 3 := by intro v x c hc hv rcases Sym2.mem_iff.1 hv with rfl | rfl <;> omega -- edges at a leaf have leafE : ∀ (v : Fin n), v.val % 3 ≠ 0 → ∀ f ∈ R, v ∈ f.1 → ∃ c : Fin n, c.val = 3 * (v.val / 3) ∧ f.1 = s(v, c) := by intro v hv f hf hvf obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR hf rw [hxc] at hvf rcases Sym2.mem_iff.1 hvf with rfl | rfl · exact ⟨c, hc, hxc⟩ · omega refine ⟨⟨?_, ?_, ?_⟩, ?_, ?_, ?_⟩ · intro e he obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR he obtain ⟨f, hf, hcf, hne⟩ := sib x c hx hc refine ⟨f, hf, SimpleGraph.lineGraph_adj_iff_exists.2 ⟨fun h => hne (by rw [← h, hxc]), c, by rw [hxc]; exact Sym2.mem_mk_right _ _, hcf⟩⟩ · intro a b d _ ⟨h1, h2, h3⟩ have := in1267_mem_image hR h1 have := in1267_mem_image hR h2 have := in1267_mem_image hR h3 omega · intro e0 he0 e1 he1 e2 he2 e3 he3 hnd ⟨h01, h2, _⟩ simp only [List.nodup_cons, List.mem_cons, List.not_mem_nil, or_false, not_or, List.nodup_nil] at hnd obtain ⟨x0, c0, hx0, hc0, hxc0⟩ := in1267_rep hR he0 obtain ⟨x1, c1, hx1, hc1, hxc1⟩ := in1267_rep hR he1 obtain ⟨x2, c2, hx2, hc2, hxc2⟩ := in1267_rep hR he2 have shared : ∀ (e f : G.edgeSet) (x c y d : Fin n), c.val = 3 * (x.val / 3) → d.val = 3 * (y.val / 3) → e.1 = s(x, c) → f.1 = s(y, d) → G.lineGraph.Adj e f → x.val / 3 = y.val / 3 := by intro e f x c y d hc hd he hf hadj obtain ⟨-, v, hve, hvf⟩ := SimpleGraph.lineGraph_adj_iff_exists.1 hadj rw [he] at hve rw [hf] at hvf have := tri v x c hc hve have := tri v y d hd hvf omega have s01 := shared e0 e1 x0 c0 x1 c1 hc0 hc1 hxc0 hxc1 h01 have s2 : x2.val / 3 = x0.val / 3 := by rcases h2 with h | h · exact shared e2 e0 x2 c2 x0 c0 hc2 hc0 hxc2 hxc0 h · have := shared e2 e1 x2 c2 x1 c1 hc2 hc1 hxc2 hxc1 h; omega have hcase : x0.val = x1.val ∨ x0.val = x2.val ∨ x1.val = x2.val := by omega rcases hcase with h | h | h · have hx : x1 = x0 := Fin.ext h.symm subst hx exact hnd.1.1 (in1267_uniq hc0 hc1 hxc0 hxc1) · have hx : x2 = x0 := Fin.ext h.symm subst hx exact hnd.1.2.1 (in1267_uniq hc0 hc2 hxc0 hxc2) · have hx : x2 = x1 := Fin.ext h.symm subst hx exact hnd.2.1.1 (in1267_uniq hc1 hc2 hxc1 hxc2) · intro v have hv := v.isLt -- the R-edges at v are among the two edges of its triple obtain ⟨E1, hE1, hE11⟩ := mkE ⟨3 * (v.val / 3), by omega⟩ ⟨3 * (v.val / 3) + 1, by omega⟩ (by simp) (by simp <;> omega) (Or.inl (by simp)) obtain ⟨E2, hE2, hE21⟩ := mkE ⟨3 * (v.val / 3), by omega⟩ ⟨3 * (v.val / 3) + 2, by omega⟩ (by simp) (by simp <;> omega) (Or.inl (by simp)) have hsub : (R.filter fun e => v ∈ e.1) ⊆ {E1, E2} := by intro f hf rw [Finset.mem_filter] at hf obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR hf.1 have hvx := tri v x c hc (hxc ▸ hf.2) simp only [Finset.mem_insert, Finset.mem_singleton] have b0 : 3 * (v.val / 3) < n := by omega have b1 : 3 * (v.val / 3) + 1 < n := by omega have b2 : 3 * (v.val / 3) + 2 < n := by omega by_cases h1 : x.val % 3 = 1 · left refine Subtype.ext (hxc.trans (Eq.trans ?_ hE11.symm)) have e1 : c = ⟨3 * (v.val / 3), b0⟩ := Fin.ext (by show c.val = 3 * (v.val / 3); omega) have e2 : x = ⟨3 * (v.val / 3) + 1, b1⟩ := Fin.ext (by show x.val = 3 * (v.val / 3) + 1; omega) rw [e1, e2, Sym2.eq_swap] · right refine Subtype.ext (hxc.trans (Eq.trans ?_ hE21.symm)) have e1 : c = ⟨3 * (v.val / 3), b0⟩ := Fin.ext (by show c.val = 3 * (v.val / 3); omega) have e2 : x = ⟨3 * (v.val / 3) + 2, b2⟩ := Fin.ext (by show x.val = 3 * (v.val / 3) + 2; omega) rw [e1, e2, Sym2.eq_swap] exact (Finset.card_le_card hsub).trans Finset.card_le_two · rintro e he ⟨a, b, hab, ha, hb⟩ obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR he have hle : (R.filter fun f => x ∈ f.1).card ≤ 1 := by apply Finset.card_le_one.2 intro f hf g hg rw [Finset.mem_filter] at hf hg obtain ⟨c1, hc1, hf1⟩ := leafE x hx f hf.1 hf.2 obtain ⟨c2, hc2, hg1⟩ := leafE x hx g hg.1 hg.2 exact in1267_uniq hc1 hc2 hf1 hg1 rw [hab] at hxc rcases Sym2.eq_iff.1 hxc with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ · omega · omega · intro e obtain ⟨e, he⟩ := e induction e using Sym2.inductionOn with | hf u w => by_cases hR' : (⟨s(u, w), he⟩ : G.edgeSet) ∈ R · obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR hR' obtain ⟨f, hf, hcf, hne⟩ := sib x c hx hc refine ⟨f, hf, SimpleGraph.lineGraph_adj_iff_exists.2 ⟨fun h => hne ?_, c, by rw [hxc]; exact Sym2.mem_mk_right _ _, hcf⟩⟩ rw [← h]; exact hxc · obtain ⟨f, hf, huf⟩ := atv u refine ⟨f, hf, SimpleGraph.lineGraph_adj_iff_exists.2 ⟨fun h => hR' (h ▸ hf), u, Sym2.mem_mk_left _ _, huf⟩⟩
in1267_rep- Any edge in R has one endpoint that is a multiple of 3 and one that is not, within the same triple.
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 in1267_rep {n : ℕ} {G : SimpleGraph (Fin n)} {R : Finset G.edgeSet} (hR : ∀ e : G.edgeSet, e ∈ R ↔ ∃ a b : Fin n, e.1 = s(a,b) ∧ a ≠ b ∧ a.val / 3 = b.val / 3 ∧ (a.val % 3 = 0 ∨ b.val % 3 = 0)) {e : G.edgeSet} (he : e ∈ R) : ∃ x c : Fin n, x.val % 3 ≠ 0 ∧ c.val = 3 * (x.val / 3) ∧ e.1 = s(x, c) := by obtain ⟨a, b, hab, hne, h3, h0⟩ := (hR e).1 he have hne' : a.val ≠ b.val := fun h => hne (Fin.ext h) by_cases ha : a.val % 3 = 0 · exact ⟨b, a, by omega, by omega, by rw [hab, Sym2.eq_swap]⟩ · exact ⟨a, b, ha, by omega, hab⟩theorem in1267_uniq {n : ℕ} {G : SimpleGraph (Fin n)} {e f : G.edgeSet} {x c c' : Fin n} (hc : c.val = 3 * (x.val / 3)) (hc' : c'.val = 3 * (x.val / 3)) (he : e.1 = s(x, c)) (hf : f.1 = s(x, c')) : e = f := by have : c = c' := Fin.ext (by omega) subst this exact Subtype.ext (he.trans hf.symm)theorem in1267_mem_image {n : ℕ} {G : SimpleGraph (Fin n)} {R : Finset G.edgeSet} (hR : ∀ e : G.edgeSet, e ∈ R ↔ ∃ a b : Fin n, e.1 = s(a,b) ∧ a ≠ b ∧ a.val / 3 = b.val / 3 ∧ (a.val % 3 = 0 ∨ b.val % 3 = 0)) {a b : Fin n} (h : s(a,b) ∈ R.image Subtype.val) : a.val ≠ b.val ∧ a.val / 3 = b.val / 3 ∧ (a.val % 3 = 0 ∨ b.val % 3 = 0) := by obtain ⟨e, he, hea⟩ := Finset.mem_image.1 h obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR he rw [hea] at hxc rcases Sym2.eq_iff.1 hxc with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ <;> omegatheorem op309_triple_star_forest_properties (n : ℕ) (h3 : 3 ∣ n) (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (hstar : ∀ a b : Fin n, a ≠ b → a.val / 3 = b.val / 3 → (a.val % 3 = 0 ∨ b.val % 3 = 0) → G.Adj a b) (R : Finset G.edgeSet) (hR : ∀ e : G.edgeSet, e ∈ R ↔ ∃ a b : Fin n, e.1 = s(a,b) ∧ a ≠ b ∧ a.val / 3 = b.val / 3 ∧ (a.val % 3 = 0 ∨ b.val % 3 = 0)) : op309_uncolored_almost_star_forest G R ∧ (∀ v, (R.filter fun e => v ∈ e.1).card ≤ 2) ∧ (∀ e ∈ R, ¬ ∃ a b : Fin n, e.1 = s(a,b) ∧ (R.filter fun f => a ∈ f.1).card = 2 ∧ (R.filter fun f => b ∈ f.1).card = 2) ∧ (∀ e : G.edgeSet, ∃ f ∈ R, G.lineGraph.Adj e f) := by obtain ⟨m, hm⟩ := h3 -- an R-edge between two given vertices of a triple have mkE : ∀ a b : Fin n, a.val ≠ b.val → a.val / 3 = b.val / 3 → (a.val % 3 = 0 ∨ b.val % 3 = 0) → ∃ e ∈ R, e.1 = s(a,b) := by intro a b hne h3 h0 have hne' : a ≠ b := fun h => hne (congrArg Fin.val h) refine ⟨⟨s(a,b), hstar a b hne' h3 h0⟩, (hR _).2 ⟨a, b, rfl, hne', h3, h0⟩, rfl⟩ -- every vertex lies on an R-edge have atv : ∀ v : Fin n, ∃ f ∈ R, v ∈ f.1 := by intro v have hv := v.isLt by_cases h0 : v.val % 3 = 0 · obtain ⟨f, hf, hf1⟩ := mkE v ⟨v.val + 1, by omega⟩ (by simp) (by simp <;> omega) (Or.inl h0) exact ⟨f, hf, by rw [hf1]; exact Sym2.mem_mk_left _ _⟩ · obtain ⟨f, hf, hf1⟩ := mkE v ⟨3 * (v.val / 3), by omega⟩ (by simp <;> omega) (by simp <;> omega) (Or.inr (by simp)) exact ⟨f, hf, by rw [hf1]; exact Sym2.mem_mk_left _ _⟩ -- the centre of a leaf's edge lies on a second R-edge have sib : ∀ x c : Fin n, x.val % 3 ≠ 0 → c.val = 3 * (x.val / 3) → ∃ f ∈ R, c ∈ f.1 ∧ f.1 ≠ s(x, c) := by intro x c hx hc have hxl := x.isLt have hlt : c.val + 2 < n := by omega have key : ∀ y : Fin n, y.val ≠ x.val → y.val ≠ c.val → (∃ f ∈ R, c ∈ f.1 ∧ f.1 = s(c, y)) → ∃ f ∈ R, c ∈ f.1 ∧ f.1 ≠ s(x, c) := by rintro y hyx hyc ⟨f, hf, hcf, hf1⟩ refine ⟨f, hf, hcf, fun h => ?_⟩ rw [hf1] at h rcases Sym2.eq_iff.1 h with ⟨h1', h2'⟩ | ⟨h1', h2'⟩ · exact hyc (congrArg Fin.val h2') · exact hyx (congrArg Fin.val h2') by_cases h1 : x.val % 3 = 1 · obtain ⟨f, hf, hf1⟩ := mkE c ⟨c.val + 2, hlt⟩ (by simp) (by simp <;> omega) (Or.inl (by omega)) exact key ⟨c.val + 2, hlt⟩ (by simp <;> omega) (by simp) ⟨f, hf, by rw [hf1]; exact Sym2.mem_mk_left _ _, hf1⟩ · obtain ⟨f, hf, hf1⟩ := mkE c ⟨c.val + 1, by omega⟩ (by simp) (by simp <;> omega) (Or.inl (by omega)) exact key ⟨c.val + 1, by omega⟩ (by simp <;> omega) (by simp) ⟨f, hf, by rw [hf1]; exact Sym2.mem_mk_left _ _, hf1⟩ -- vertices of an R-edge lie in the triple of its leaf have tri : ∀ (v x c : Fin n), c.val = 3 * (x.val / 3) → v ∈ s(x, c) → v.val / 3 = x.val / 3 := by intro v x c hc hv rcases Sym2.mem_iff.1 hv with rfl | rfl <;> omega -- edges at a leaf have leafE : ∀ (v : Fin n), v.val % 3 ≠ 0 → ∀ f ∈ R, v ∈ f.1 → ∃ c : Fin n, c.val = 3 * (v.val / 3) ∧ f.1 = s(v, c) := by intro v hv f hf hvf obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR hf rw [hxc] at hvf rcases Sym2.mem_iff.1 hvf with rfl | rfl · exact ⟨c, hc, hxc⟩ · omega refine ⟨⟨?_, ?_, ?_⟩, ?_, ?_, ?_⟩ · intro e he obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR he obtain ⟨f, hf, hcf, hne⟩ := sib x c hx hc refine ⟨f, hf, SimpleGraph.lineGraph_adj_iff_exists.2 ⟨fun h => hne (by rw [← h, hxc]), c, by rw [hxc]; exact Sym2.mem_mk_right _ _, hcf⟩⟩ · intro a b d _ ⟨h1, h2, h3⟩ have := in1267_mem_image hR h1 have := in1267_mem_image hR h2 have := in1267_mem_image hR h3 omega · intro e0 he0 e1 he1 e2 he2 e3 he3 hnd ⟨h01, h2, _⟩ simp only [List.nodup_cons, List.mem_cons, List.not_mem_nil, or_false, not_or, List.nodup_nil] at hnd obtain ⟨x0, c0, hx0, hc0, hxc0⟩ := in1267_rep hR he0 obtain ⟨x1, c1, hx1, hc1, hxc1⟩ := in1267_rep hR he1 obtain ⟨x2, c2, hx2, hc2, hxc2⟩ := in1267_rep hR he2 have shared : ∀ (e f : G.edgeSet) (x c y d : Fin n), c.val = 3 * (x.val / 3) → d.val = 3 * (y.val / 3) → e.1 = s(x, c) → f.1 = s(y, d) → G.lineGraph.Adj e f → x.val / 3 = y.val / 3 := by intro e f x c y d hc hd he hf hadj obtain ⟨-, v, hve, hvf⟩ := SimpleGraph.lineGraph_adj_iff_exists.1 hadj rw [he] at hve rw [hf] at hvf have := tri v x c hc hve have := tri v y d hd hvf omega have s01 := shared e0 e1 x0 c0 x1 c1 hc0 hc1 hxc0 hxc1 h01 have s2 : x2.val / 3 = x0.val / 3 := by rcases h2 with h | h · exact shared e2 e0 x2 c2 x0 c0 hc2 hc0 hxc2 hxc0 h · have := shared e2 e1 x2 c2 x1 c1 hc2 hc1 hxc2 hxc1 h; omega have hcase : x0.val = x1.val ∨ x0.val = x2.val ∨ x1.val = x2.val := by omega rcases hcase with h | h | h · have hx : x1 = x0 := Fin.ext h.symm subst hx exact hnd.1.1 (in1267_uniq hc0 hc1 hxc0 hxc1) · have hx : x2 = x0 := Fin.ext h.symm subst hx exact hnd.1.2.1 (in1267_uniq hc0 hc2 hxc0 hxc2) · have hx : x2 = x1 := Fin.ext h.symm subst hx exact hnd.2.1.1 (in1267_uniq hc1 hc2 hxc1 hxc2) · intro v have hv := v.isLt -- the R-edges at v are among the two edges of its triple obtain ⟨E1, hE1, hE11⟩ := mkE ⟨3 * (v.val / 3), by omega⟩ ⟨3 * (v.val / 3) + 1, by omega⟩ (by simp) (by simp <;> omega) (Or.inl (by simp)) obtain ⟨E2, hE2, hE21⟩ := mkE ⟨3 * (v.val / 3), by omega⟩ ⟨3 * (v.val / 3) + 2, by omega⟩ (by simp) (by simp <;> omega) (Or.inl (by simp)) have hsub : (R.filter fun e => v ∈ e.1) ⊆ {E1, E2} := by intro f hf rw [Finset.mem_filter] at hf obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR hf.1 have hvx := tri v x c hc (hxc ▸ hf.2) simp only [Finset.mem_insert, Finset.mem_singleton] have b0 : 3 * (v.val / 3) < n := by omega have b1 : 3 * (v.val / 3) + 1 < n := by omega have b2 : 3 * (v.val / 3) + 2 < n := by omega by_cases h1 : x.val % 3 = 1 · left refine Subtype.ext (hxc.trans (Eq.trans ?_ hE11.symm)) have e1 : c = ⟨3 * (v.val / 3), b0⟩ := Fin.ext (by show c.val = 3 * (v.val / 3); omega) have e2 : x = ⟨3 * (v.val / 3) + 1, b1⟩ := Fin.ext (by show x.val = 3 * (v.val / 3) + 1; omega) rw [e1, e2, Sym2.eq_swap] · right refine Subtype.ext (hxc.trans (Eq.trans ?_ hE21.symm)) have e1 : c = ⟨3 * (v.val / 3), b0⟩ := Fin.ext (by show c.val = 3 * (v.val / 3); omega) have e2 : x = ⟨3 * (v.val / 3) + 2, b2⟩ := Fin.ext (by show x.val = 3 * (v.val / 3) + 2; omega) rw [e1, e2, Sym2.eq_swap] exact (Finset.card_le_card hsub).trans Finset.card_le_two · rintro e he ⟨a, b, hab, ha, hb⟩ obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR he have hle : (R.filter fun f => x ∈ f.1).card ≤ 1 := by apply Finset.card_le_one.2 intro f hf g hg rw [Finset.mem_filter] at hf hg obtain ⟨c1, hc1, hf1⟩ := leafE x hx f hf.1 hf.2 obtain ⟨c2, hc2, hg1⟩ := leafE x hx g hg.1 hg.2 exact in1267_uniq hc1 hc2 hf1 hg1 rw [hab] at hxc rcases Sym2.eq_iff.1 hxc with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ · omega · omega · intro e obtain ⟨e, he⟩ := e induction e using Sym2.inductionOn with | hf u w => by_cases hR' : (⟨s(u, w), he⟩ : G.edgeSet) ∈ R · obtain ⟨x, c, hx, hc, hxc⟩ := in1267_rep hR hR' obtain ⟨f, hf, hcf, hne⟩ := sib x c hx hc refine ⟨f, hf, SimpleGraph.lineGraph_adj_iff_exists.2 ⟨fun h => hne ?_, c, by rw [hxc]; exact Sym2.mem_mk_right _ _, hcf⟩⟩ rw [← h]; exact hxc · obtain ⟨f, hf, huf⟩ := atv u refine ⟨f, hf, SimpleGraph.lineGraph_adj_iff_exists.2 ⟨fun h => hR' (h ▸ hf), u, Sym2.mem_mk_left _ _, huf⟩⟩