Documentation

DescriptiveComplexity.Problems.ThreeColorability.Defs

3-colorability: definition #

A (directed) graph is a FirstOrder.Language.graph-structure (already in Mathlib); DescriptiveComplexity.ThreeColorable is properness of some 3-coloring, and DescriptiveComplexity.ThreeCol the bundled decision problem. On structures arising from Mathlib's SimpleGraph this agrees with SimpleGraph.Colorable (DescriptiveComplexity.threeColorable_iff_colorable).

The reductions to and from SAT, and NP-completeness, are in DescriptiveComplexity.Problems.ThreeColorability.

A Language.graph-structure is 3-colorable if the vertices can be colored with 3 colors so that adjacent vertices get distinct colors. (On structures with self-loops this is never satisfiable, matching the usual convention.)

Equations
Instances For
    Dependency graph
    Dependency graph

    3-colorability, as a problem on Language.graph-structures.

    Equations
    Instances For
      Dependency graph

      On the first-order structure associated to a simple graph, ThreeColorable coincides with Mathlib's SimpleGraph.Colorable 3.

      Dependency graph