AFTD Auto-Formalizing Theoretical Domains

op309_edge_endpoints_rich_witnesses_imply_rich_neighbor

theoremverified

If rich edges meet an endpoint of every edge, and each designated rich edge has a different adjacent designated rich edge, the coloring is rich-neighbor.

Statement

theorem op309_edge_endpoints_rich_witnesses_imply_rich_neighbor
    {V : Type*} (G : SimpleGraph V) (c : G.lineGraph.Coloring (Fin 5))
    (R : Set G.edgeSet)
    (hrich : ∀ e ∈ R, simple_graph_edge_is_rich G c e)
    (hcover : ∀ e : G.edgeSet, ∃ v : V, v ∈ e.1 ∧ ∃ f ∈ R, v ∈ f.1)
    (hpaired : ∀ e ∈ R, ∃ f ∈ R, G.lineGraph.Adj e f) :
    simple_graph_is_rich_neighbor_coloring G c
Source
Assembly step for triangle-dominated cubic graphs in OP-309.
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2

The proof, explained

To show that the coloring is rich-neighbor, we take an arbitrary edge e and seek an adjacent rich edge. The covering hypothesis yields an endpoint of e incident to a designated rich edge f ∈ R. If e = f, the pairing hypothesis guarantees a distinct rich edge adjacent to e; if e ≠ f, then f itself shares an endpoint with e and is rich.

  1. For an arbitrary edge e of G, there exists an endpoint v ∈ e and an edge f ∈ R incident to v.

    To show that c is a rich-neighbor coloring, we consider an edge e of G. By the covering hypothesis (hcover), there exists a vertex v of e that is also incident to some designated edge f in R.

    lines 8–9

      intro e _
      obtain ⟨v, hve, f, hfR, hvf⟩ := hcover e
  2. If e = f, there is an edge adjacent to e that is rich under c.

    We split into cases on whether e = f. If e = f, then e ∈ R. By the pairing hypothesis (hpaired), there exists an edge f' ∈ R adjacent to e in the line graph. Since all edges in R are rich (hrich), f' is rich, which provides the required adjacent rich edge.

    lines 10–13

      by_cases hef : e = f
      · subst hef
        obtain ⟨f', hf'R, hadj⟩ := hpaired e hfR
        exact ⟨f', hadj, hrich f' hf'R⟩
  3. If e ≠ f, then f itself is an edge adjacent to e that is rich under c.

    In the remaining case e ≠ f, f is already in R and therefore rich by hrich. Furthermore, e and f are distinct and share the vertex v, so by SimpleGraph.lineGraph_adj_iff_exists they are adjacent in the line graph. Hence f is the required adjacent rich edge.

    lines 14–16

    uses SimpleGraph.lineGraph_adj_iff_exists

      · refine ⟨f, ?_, hrich f hfR⟩
        rw [SimpleGraph.lineGraph_adj_iff_exists]
        exact ⟨hef, v, hve, hvf⟩
SimpleGraph.lineGraph_adj_iff_exists
Two edges of a simple graph are adjacent in its line graph if and only if they are distinct and share at least one vertex.

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

theorem op309_edge_endpoints_rich_witnesses_imply_rich_neighbor    {V : Type*} (G : SimpleGraph V) (c : G.lineGraph.Coloring (Fin 5))    (R : Set G.edgeSet)    (hrich : ∀ e ∈ R, simple_graph_edge_is_rich G c e)    (hcover : ∀ e : G.edgeSet, ∃ v : V, v ∈ e.1 ∧ ∃ f ∈ R, v ∈ f.1)    (hpaired : ∀ e ∈ R, ∃ f ∈ R, G.lineGraph.Adj e f) :    simple_graph_is_rich_neighbor_coloring G c := by  intro e _  obtain ⟨v, hve, f, hfR, hvf⟩ := hcover e  by_cases hef : e = f  · subst hef    obtain ⟨f', hf'R, hadj⟩ := hpaired e hfR    exact ⟨f', hadj, hrich f' hf'R⟩  · refine ⟨f, ?_, hrich f hfR⟩    rw [SimpleGraph.lineGraph_adj_iff_exists]    exact ⟨hef, v, hve, hvf⟩
See it in the graphDiscuss this resultChallenge it