simple_graph_is_proper_edge_coloring
A function c on the edge set of a simple graph G is a proper edge-coloring with colors in {1, ..., k} if each edge receives a color between 1 and k and adjacent edges in the line graph receive distinct colors.
Statement
def simple_graph_is_proper_edge_coloring {V : Type*} (G : SimpleGraph V) (k : ℕ) (c : G.edgeSet → ℕ) : Prop
- Defined in
- folklore
- Verified
- 28 Nov 2026
- Axioms
- none listed
- Used by 1
- simple_graph_local_chromatic_indexFor a finite simple graph G with decidable adjacency on a finite vertex type V with decidable equality, the local chromatic index…
Read back from the Lean
For a type V, a simple graph G : SimpleGraph V, a natural number k : ℕ, and an edge-coloring function c : G.edgeSet → ℕ, simple_graph_is_proper_edge_coloring G k c is the proposition that:
1. For every edge e ∈ G.edgeSet, 1 ≤ c e and c e ≤ k (the color of every edge is an integer between 1 and k, inclusive); and
2. For all edges e₁, e₂ ∈ G.edgeSet, if e₁ and e₂ are adjacent in the line graph of G (that is, e₁ ≠ e₂ and they share an incident vertex), then c e₁ ≠ c e₂.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- A proper edge-coloring of a simple graph G using colors in {1, ..., k}. -/ def simple_graph_is_proper_edge_coloring {V : Type*} (G : SimpleGraph V) (k : ℕ) (c : G.edgeSet → ℕ) : Prop := (∀ e, 1 ≤ c e ∧ c e ≤ k) ∧ ∀ ⦃e₁ e₂ : G.edgeSet⦄, G.lineGraph.Adj e₁ e₂ → c e₁ ≠ c e₂