Chromatic number
Lax825442.ChromaticNumber · concepts/Lax825442/ChromaticNumber.lean · lax-825442
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The chromatic number of a graph is the minimum number of colors needed for a proper vertex coloring.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Coloring.Vertex |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Chromatic number |
| 6 | type: definition |
| 7 | --- |
| 8 | The chromatic number of a graph is the minimum number of colors needed for a |
| 9 | proper vertex coloring. |
| 10 | -/ |
| 11 | |
| 12 | namespace Lax825442.ChromaticNumber |
| 13 | |
| 14 | /-- The natural-valued chromatic number of a finite graph. -/ |
| 15 | noncomputable def chromaticNumber {V : Type} [Fintype V] [DecidableEq V] |
| 16 | (G : SimpleGraph V) : ℕ := |
| 17 | G.chromaticNumber.toNat |
| 18 | |
| 19 | end Lax825442.ChromaticNumber |
| 20 | |
| 21 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments