Skip to content

Commit 4f24d12

Browse files
committed
review
1 parent 0f855b1 commit 4f24d12

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

  • Mathlib/Combinatorics/SimpleGraph/Coloring

Mathlib/Combinatorics/SimpleGraph/Coloring/Edge.lean

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ open Fintype
4747
variable {V V' α β : Type*} {G H : SimpleGraph V} {G' : SimpleGraph V'} {n m : ℕ}
4848

4949
variable (G) in
50-
/-- An `α`-edge-coloring of a simple graph `G` is a coloring of `G.lineGraph`. -/
50+
/-- An `α`-edge-coloring of a simple graph `G` is an `α`-coloring of its line graph,
51+
`G.lineGraph`. -/
5152
abbrev EdgeColoring (α : Type*) :=
5253
G.lineGraph.Coloring α
5354

5455
/-- `α`-edge-coloring is a special case of `α`-edge-labeling. -/
55-
instance : Coe (G.EdgeColoring α) (G.EdgeLabeling α) :=
56-
⟨RelHom.toFun⟩
56+
instance : Coe (G.EdgeColoring α) (G.EdgeLabeling α) where
57+
coe := DFunLike.coe
5758

5859
variable (G) in
5960
/-- Whether a graph can be edge-colored using colors from `α`. -/
@@ -70,16 +71,16 @@ variable (G) in
7071
This is `⊤` (infinity) iff `G` isn't edge-colorable with finitely many colors.
7172
If `G` is edge-colorable, then `G.chromaticIndex.toNat` is the `ℕ`-valued chromatic number. -/
7273
noncomputable def chromaticIndex : ℕ∞ :=
73-
⨅ n ∈ setOf G.EdgeColorable, (n : ℕ∞)
74+
⨅ n, ⨅ _ : G.EdgeColorable n, (n : ℕ∞)
7475

7576
variable (α) in
7677
/-- The unique coloring of the empty graph. -/
77-
def EdgeColoring.ofBot : (⊥ : SimpleGraph V).EdgeColoring α :=
78+
def EdgeColoring.bot : (⊥ : SimpleGraph V).EdgeColoring α :=
7879
.mk (fun ⟨_, h⟩ ↦ edgeSet_bot ▸ h |>.elim) (lineGraph_bot ▸ · |>.elim)
7980

8081
variable (α) in
8182
theorem EdgeColorableWith.of_bot : (⊥ : SimpleGraph V).EdgeColorableWith α :=
82-
⟨.ofBot _⟩
83+
⟨.bot _⟩
8384

8485
variable (α) in
8586
@[simp]

0 commit comments

Comments
 (0)