The areas / V30. Combinatorics
Mathlib.Combinatorics.SimpleGraph.Coloring.Constructions
18 declarations and 1 deprecated aliases. Mathlib docs · Source
def SimpleGraph.pathGraph.bicoloring E1 #
(n : ℕ) → (SimpleGraph.pathGraph n).Coloring Bool
Bicoloring of a path graph
theorem SimpleGraph.IsBipartite.pathGraph E1 #
∀ (n : ℕ), (SimpleGraph.pathGraph n).IsBipartite
def SimpleGraph.pathGraph_two_embedding E1 #
(n : ℕ) → 2 ≤ n → SimpleGraph.pathGraph 2 ↪g SimpleGraph.pathGraph n
Embedding of pathGraph 2 into the first two elements of pathGraph n for 2 ≤ n
theorem SimpleGraph.chromaticNumber_pathGraph E1 #
∀ (n : ℕ), 2 ≤ n → (SimpleGraph.pathGraph n).chromaticNumber = 2
theorem SimpleGraph.Coloring.even_length_iff_congr E1 #
∀ {α : Type u_1} {G : SimpleGraph α} (c : G.Coloring Bool) {u v : α} (p : G.Walk u v),
Even p.length ↔ (c u = true ↔ c v = true)
theorem SimpleGraph.Coloring.odd_length_iff_not_congr E1 #
∀ {α : Type u_1} {G : SimpleGraph α} (c : G.Coloring Bool) {u v : α} (p : G.Walk u v),
Odd p.length ↔ (¬c u = true ↔ c v = true)
theorem SimpleGraph.Walk.three_le_chromaticNumber_of_odd_loop E1 #
∀ {α : Type u_1} {G : SimpleGraph α} {u : α} (p : G.Walk u u), Odd p.length → 3 ≤ G.chromaticNumber
def SimpleGraph.cycleGraph.bicoloring_of_even E1 #
(n : ℕ) → Even n → (SimpleGraph.cycleGraph n).Coloring Bool
Bicoloring of a cycle graph of even size
theorem SimpleGraph.IsBipartite.cycleGraph_of_even E1 #
∀ {n : ℕ}, Even n → (SimpleGraph.cycleGraph n).IsBipartite
theorem SimpleGraph.chromaticNumber_cycleGraph_of_even E1 #
∀ (n : ℕ), 2 ≤ n → Even n → (SimpleGraph.cycleGraph n).chromaticNumber = 2
def SimpleGraph.cycleGraph.tricoloring E1 #
(n : ℕ) → (SimpleGraph.cycleGraph n).Coloring (Fin 3)
Tricoloring of a cycle graph
theorem SimpleGraph.chromaticNumber_cycleGraph_of_odd E1 #
∀ (n : ℕ), 2 ≤ n → Odd n → (SimpleGraph.cycleGraph n).chromaticNumber = 3
def SimpleGraph.Coloring.completeEquipartiteGraph E1 #
{r t : ℕ} → (SimpleGraph.completeEquipartiteGraph r t).Coloring (Fin r)
The injection (x₁, x₂) ↦ x₁ is always an r-coloring of a completeEquipartiteGraph r ·.
theorem SimpleGraph.completeEquipartiteGraph_colorable E1 #
∀ {r t : ℕ}, (SimpleGraph.completeEquipartiteGraph r t).Colorable r
The completeEquipartiteGraph r t is always r-colorable.
def SimpleGraph.Coloring.turanGraph E1 #
(n r : ℕ) → [NeZero r] → (SimpleGraph.turanGraph n r).Coloring (Fin r)
Taking the remainder upon dividing by r produces an r-coloring of turanGraph n r for
nonzero r.
theorem SimpleGraph.Coloring.turanGraph_apply E0 #
∀ (n r : ℕ) [inst : NeZero r] (x : Fin n), (SimpleGraph.Coloring.turanGraph n r) x = Fin.ofNat r ↑x
theorem SimpleGraph.Colorable.turanGraph E1 #
∀ (n r : ℕ) [NeZero r], (SimpleGraph.turanGraph n r).Colorable r
theorem SimpleGraph.isBipartite_iff_forall_walk_even_length E1 #
∀ {V : Type u_1} {G : SimpleGraph V}, G.IsBipartite ↔ ∀ (v : V) (p : G.Walk v v), Even p.length
Deprecated aliases
| Name | New name | Since |
|---|---|---|
SimpleGraph.two_colorable_iff_forall_loop_even | SimpleGraph.isBipartite_iff_forall_walk_even_length | 2026-08-12 |