Documentation

Complexitylib.Circuits.RandomRestriction.Defs

Finite random restrictions #

This file defines a completely finite sample space for sparse restrictions on exactly N variables. A symbol is either:

Uniform sampling from Symbol q therefore leaves a coordinate free with probability 1 / (2 * q + 1) and fixes it to either Boolean value with probability q / (2 * q + 1). Retaining the copy label makes the distribution uniform on an honest finite type; no measure-theoretic or rational-probability convention is hidden in later counting arguments.

@[reducible, inline]

One coordinate of the sparse-restriction sample space.

The left summand is the unique free symbol. The right summand fixes the coordinate and records one of q equiprobable copies of the chosen bit.

Equations
Instances For
    @[reducible, inline]

    An independent sparse-restriction seed on exactly N variables.

    Equations
    Instances For

      Forget the multiplicity label and interpret a sample symbol as a partial Boolean assignment.

      Equations
      Instances For

        Decode a finite seed to the corresponding finite-arity restriction.

        Equations
        Instances For

          The set of coordinates left free by a seed.

          Equations
          Instances For

            The exact number of seeds whose decoded restriction satisfies event.

            Equations
            Instances For
              @[reducible, inline]

              Seeds whose decoded restriction satisfies event. This subtype is the domain used by injective finite-encoding arguments.

              Equations
              Instances For
                noncomputable def Complexity.RandomRestriction.positionOf {s N : } (queries : Fin s Fin N) (index : Fin N) :

                Locate an input coordinate in the range of an embedding.

                Equations
                Instances For
                  noncomputable def Complexity.RandomRestriction.assignmentAlong {s N : } (queries : Fin s Fin N) (values : Fin sBool) :

                  The finite partial assignment induced by embedded coordinates and their Boolean values.

                  Equations
                  Instances For
                    noncomputable def Complexity.RandomRestriction.fixAlong {N q s : } (seed : Seed N q) (queries : Fin s Fin N) (copies : Fin sFin q) (values : Fin sBool) :
                    Seed N q

                    Replace the coordinates selected by queries by fixed symbols carrying the supplied copy labels and branch values.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      noncomputable def Complexity.RandomRestriction.freeAlong {N q s : } (seed : Seed N q) (queries : Fin s Fin N) :
                      Seed N q

                      Restore every coordinate selected by queries to the unique free symbol.

                      Equations
                      Instances For