Proper colorings as functions #
Sampling and counting arguments for colorings ([LP17], Sections 3.3.1 and 14.3–14.4)
work with arbitrary maps x : V → Fin q, proper or not, rather than with the bundled
SimpleGraph.Coloring. This file provides the predicate SimpleGraph.IsProperColoring, the finset
SimpleGraph.properColorings of proper q-colorings, and the colors allowed at a vertex,
SimpleGraph.allowedColors: those absent from its neighbors. At most Δ colors are excluded
(SimpleGraph.sub_maxDegree_le_card_allowedColors), and recoloring a vertex of a proper coloring
with an allowed color keeps it proper (SimpleGraph.IsProperColoring.update_of_mem). The proper
colorings agreeing with a fixed coloring b off a vertex set U, SimpleGraph.frozenColorings,
are the state spaces of the approximate counting algorithm of [LP17], Section 14.4.2.
Main definitions #
SimpleGraph.IsProperColoring: adjacent vertices have different colors.SimpleGraph.allowedColors: the colors absent from the neighbors of a vertex.SimpleGraph.properColorings: the finset of properq-colorings.SimpleGraph.frozenColorings: the proper colorings agreeing withboffU.
Main results #
SimpleGraph.isProperColoring_iff_exists_coloring: proper colorings are theSimpleGraph.Colorings.SimpleGraph.sub_maxDegree_le_card_allowedColors: at leastq - Δcolors are allowed.SimpleGraph.properColorings_nonempty: proper colorings exist whenΔ < q.SimpleGraph.IsProperColoring.update_of_mem: recoloring with an allowed color.SimpleGraph.frozenColorings_univ,SimpleGraph.frozenColorings_empty,SimpleGraph.frozenColorings_erase: nothing frozen, everything frozen, and freezing one more vertex.
References #
- [LP17], Sections 3.1, 3.3.1 and 14.4.2.
x is a proper coloring of G: adjacent vertices have different colors.
Instances For
Proper colorings are the colorings of G in the sense of SimpleGraph.Coloring.
The colors absent from the neighbors of w under the coloring x ([LP17],
Section 3.3.1).
At most Δ colors are excluded.
The allowed colors at w depend only on the colors of the neighbors of w.
The proper q-colorings of G.
Greedy coloring: if Δ < q, proper q-colorings exist.
The proper colorings agreeing with b off U, the state space X_k of [LP17],
Section 14.4.2, when U is the set of the first k vertices.
With every vertex frozen, only b itself remains.
Freezing one more vertex v at its color in b keeps the colorings with x v = b v.
Recoloring a vertex of a proper coloring with an allowed color gives a proper coloring.