Documentation

Complexitylib.Metacomplexity.MCSP.Raw.Defs

Raw truth-table MCSP -- definitions #

Hardness-magnification papers conventionally give MCSP only the N = 2^n truth-table bits and fix the circuit-size threshold externally. The canonical MCSP.Instance codec instead stores arity and threshold metadata. This module defines the raw convention and total maps between the two representations.

A raw string is well formed exactly when its length is a power of two. Its arity is recovered by base-two logarithm. Malformed lengths are outside both sides of every raw gap problem; no arbitrary threshold or arity is assigned to them.

A list is a raw truth table when its length is exactly 2^arity for some arity. In particular, the empty list is not a raw truth table.

Equations
Instances For

    Recover the arity of a prospective raw truth table from its length.

    Equations
    Instances For
      def Complexity.MCSP.rawDecode? (threshold : ) (bits : List Bool) :

      Decode a raw truth table at an externally supplied arity-indexed threshold.

      The decoder succeeds only at exact power-of-two lengths.

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

        Raw MCSP[threshold]: the input contains only its truth-table bits.

        Equations
        Instances For
          def Complexity.MCSP.rawToCanonical (threshold : ) (bits : List Bool) :

          Add canonical arity and threshold metadata to a raw truth table. Malformed raw strings are sent to the empty, noncanonical code.

          Equations
          Instances For

            Erase arity and threshold metadata from a canonical MCSP code. Malformed canonical strings are sent to the empty, malformed raw string.

            Equations
            Instances For

              Yes side of raw GapMCSP[s_yes,s_no].

              Equations
              Instances For

                No side of raw GapMCSP[s_yes,s_no]. The input has no encoded threshold; the no cutoff is supplied entirely by the problem parameters.

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