Documentation

Complexitylib.Metacomplexity.MCSP.Succinct.Defs

Succinct MCSP -- definitions #

SuccinctMCSP replaces a complete truth table by a finite list of sampled input/output constraints. The list may repeat an input, so contradictory constraints are represented rather than ruled out by syntax. An instance is accepted exactly when one circuit within its threshold matches every sample.

The codec is total and canonical. Each typed sample is framed separately, the sample count is explicit, and decoding rejects wrong-width inputs, non-singleton outputs, missing samples, trailing samples, noncanonical natural fields, and malformed pairing.

Positive arities use Basis.andOr2. Since the circuit type has no zero-input member, a zero-arity witness is an explicitly chosen constant bit of size zero. Thus contradictory zero-arity samples are rejected while every consistent list is accepted at every natural threshold.

One typed input/output constraint for an arity-input Boolean function.

  • input : BitString arity

    Input on which the candidate circuit is constrained.

  • output : Bool

    Required output on input.

Instances For
    def Complexity.SuccinctMCSP.Sample.ofFunction {arity : } (f : BitString arityBool) (input : BitString arity) :
    Sample arity

    Package one evaluation of a Boolean function as a sample.

    Equations
    Instances For
      def Complexity.SuccinctMCSP.Sample.MatchesFunction {arity : } (sample : Sample arity) (f : BitString arityBool) :

      A sample is satisfied when the function has its required output.

      Equations
      Instances For
        def Complexity.SuccinctMCSP.Sample.encode {arity : } (sample : Sample arity) :

        Canonically encode a sample as a framed input and singleton output.

        Equations
        Instances For

          Decode exactly one sample at the supplied arity.

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

            Canonically encode a list of samples as a right-nested sequence of pairs.

            Equations
            Instances For

              Decode exactly count right-nested samples and reject all trailing data.

              Equations
              Instances For

                A sampled circuit-minimization instance. Repeated inputs are permitted.

                • arity :

                  Number of input bits in every sample.

                • samples : List (Sample self.arity)

                  Finite list of constraints; repetitions and contradictions are retained.

                • threshold :

                  Maximum allowed circuit size.

                Instances For
                  def Complexity.SuccinctMCSP.Instance.ofInputs {arity : } (threshold : ) (f : BitString arityBool) (inputs : List (BitString arity)) :

                  Build the sampled constraints induced by a function on a chosen input list.

                  Equations
                  Instances For

                    Every sample in the instance is satisfied by the supplied function.

                    Equations
                    Instances For

                      Canonically encode arity, threshold, count, and the framed sample payload.

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

                        Decode exactly one canonical sampled instance.

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

                          A direct typed witness formulation of sampled circuit minimization.

                          At positive arity the witness is a fan-in-two circuit matching every listed constraint. At arity zero the witness is an explicit constant output bit of size zero.

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

                            Total succinct MCSP over canonical sampled-instance codes.

                            Malformed strings are no-instances.

                            Equations
                            Instances For