Documentation

DescriptiveComplexity.Problems.Coloring.Defs

The coloring family: definitions #

Three problems built on one generic property, DescriptiveComplexity.ColorableOn: a map into Fin k separating the pairs related by a conflict relation.

Loops, and why the two threshold problems ignore them #

The two marked-graph problems take their conflict relation off the diagonal (x ≠ y ∧ …), i.e. they are about the underlying loopless graph, which is the convention of the clique family on this vocabulary. It is also what makes them interreducible by edge complementation: complementing off the diagonal is an involution on loopless graphs, but forgets loops. The price is paid once, in the reduction from 3-colorability (DescriptiveComplexity.Problems.Coloring.Reductions), whose input is loop-sensitive: a self-looped vertex is turned into a K₄, which no 3-coloring survives.

The palette form of a threshold #

A k-coloring with k the cardinality of the marked set can equivalently be given as a map into the marked set itself (DescriptiveComplexity.paletteColorableOn_iff): the marked elements are k colors. This is the form the second-order definitions guess, since it needs only a binary relation variable, where the number k is not available to the formulas.

The generic property #

def DescriptiveComplexity.ColorableOn {A : Type} (Cfl : AAProp) (k : ) :

A k-coloring for the conflict relation Cfl: a map into Fin k giving distinct values to conflicting elements.

Equations
Instances For
    Dependency graph
    def DescriptiveComplexity.PaletteColorableOn {A : Type} (Cfl : AAProp) (Kp : AProp) :

    A coloring whose palette is the marked set itself: a map into the Kp-marked elements giving distinct values to conflicting elements.

    Equations
    Instances For
      Dependency graph
      theorem DescriptiveComplexity.paletteColorableOn_iff {A : Type} [Finite A] (Cfl : AAProp) (Kp : AProp) :

      Colors are the marked elements: on a finite universe, colorability with as many colors as the marked set is colorability by the marked set. This is the bridge between the numeric reading of the threshold and its second-order rendering, where the coloring is guessed as a binary relation variable.

      Dependency graph
      theorem DescriptiveComplexity.colorableOn_congr {A : Type} {Cfl Cfl' : AAProp} {k : } (h : ∀ (x y : A), Cfl x y Cfl' x y) :

      ColorableOn only depends on the extension of the conflict relation.

      Dependency graph
      theorem DescriptiveComplexity.ColorableOn.of_equiv {A B : Type} (u : B A) {CflB : BBProp} {CflA : AAProp} {k : } (hcfl : ∀ (b b' : B), CflB b b' CflA (u b) (u b')) (h : ColorableOn CflB k) :

      ColorableOn transports along an equivalence commuting with the conflict relations.

      Dependency graph
      theorem DescriptiveComplexity.ColorableOn.equiv_iff {A B : Type} (u : B A) {CflB : BBProp} {CflA : AAProp} {k : } (hcfl : ∀ (b b' : B), CflB b b' CflA (u b) (u b')) :

      ColorableOn transports along an equivalence, iff version.

      Dependency graph

      k-colorability, for a fixed k #

      A Language.graph-structure is k-colorable if the vertices can be colored with k colors so that adjacent vertices get distinct colors.

      Equations
      Instances For
        Dependency graph
        Dependency graph

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

        Equations
        Instances For
          Dependency graph

          At k = 3, k-colorability is 3-colorability.

          Dependency graph

          Chromatic number and clique cover, with the threshold in the instance #

          The conflict relation of the chromatic-number problem: adjacency off the diagonal.

          Equations
          Instances For
            Dependency graph

            The conflict relation of the clique-cover problem: non-adjacency off the diagonal – two vertices may share a clique exactly when they are adjacent.

            Equations
            Instances For
              Dependency graph

              A marked graph has chromatic number at most the size of its marked set. (Finiteness of the universe is part of the property: cardinality thresholds are only meaningful on finite structures.)

              Equations
              Instances For
                Dependency graph
                Dependency graph
                Dependency graph
                Dependency graph

                CHROMATIC NUMBER, as a problem on marked graphs: can the graph be properly colored with as many colors as the marked set has elements?

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  Dependency graph

                  CLIQUE COVER, as a problem on marked graphs: can the vertices be covered by at most as many cliques as the marked set has elements?

                  Equations
                  Instances For
                    Dependency graph