Documentation

DescriptiveComplexity.Problems.Coloring

The coloring family is NP-complete #

Umbrella file for k-colorability, Chromatic Number and Clique Cover (DescriptiveComplexity.KCol, DescriptiveComplexity.ChromaticNumber, DescriptiveComplexity.CliqueCover, defined in DescriptiveComplexity.Problems.Coloring.Defs), collecting the reductions of DescriptiveComplexity.Problems.Coloring.Reductions and deriving NP-completeness from

The chain is 3COL ≤ᶠᵒ[≤] ChromaticNumber ≤ᶠᵒ CliqueCover ≤ᶠᵒ ChromaticNumber: the last two problems are interreducible, so it does not matter which of them carries the hardness. As with any complexity-theoretic statement, these results are about finite structures only (DescriptiveComplexity.ComplexityClass.mem_congr_finite/hard_congr_finite).

k-colorability #

k-colorability is in NP: it is Σ₁-definable.

Dependency graph
theorem DescriptiveComplexity.kCol_NP_hard {k : } (hk : 3 k) :

For k ≥ 3, k-colorability is NP-hard: 3-colorability, which is NP-hard, reduces to it by padding.

Dependency graph

k-colorability is NP-complete for every k ≥ 3.

Dependency graph

Chromatic Number and Clique Cover #

Chromatic Number is in NP: it is Σ₁-definable.

Dependency graph

Chromatic Number is NP-hard: 3-colorability, which is NP-hard, reduces to it by an ordered FO reduction.

Dependency graph

Chromatic Number is NP-complete, derived from the first-order reductions of this library and the Cook–Levin theorem.

Dependency graph

Clique Cover is in NP: it is Σ₁-definable.

Dependency graph

Clique Cover is NP-hard: Chromatic Number, which is NP-hard, reduces to it by complementing the edges.

Dependency graph
Dependency graph