Documentation

Complexitylib.DescriptiveComplexity.SecondOrder.Encoding.Defs

Binary certificates for relation environments #

List each relation's truth table in context order, using the same tuple order as the structure encoder. The universe size and arities are supplied externally, so the certificate needs no header or delimiters. Its length is exactly the sum of card ^ arity. Every string of that length represents one environment.

These are the guessed relation tables in Immerman's Descriptive Complexity, Section 7.1, Proposition 7.6. The functions are computable; their machine time bounds are a separate obligation.

@[reducible, inline]

A cell in one of the relation-variable truth tables.

Equations
Instances For

    Certificate cells in relation-context order, then canonical tuple order.

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

      Exact number of bits required to describe all supplied relations.

      Equations
      Instances For

        The certificate-length polynomial for a fixed list of relation arities.

        Equations
        Instances For

          Concatenate the supplied relation truth tables without headers or padding.

          Equations
          Instances For
            def Complexity.DescriptiveComplexity.DecREnv.read (card : ℕ) (rctx : List ℕ) (bits : List Bool) :
            DecREnv card rctx

            Read a relation environment, defaulting missing entries to false.

            Equations
            Instances For

              Decode a certificate, rejecting precisely the strings of the wrong length.

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