Documentation

Complexitylib.Classes.AverageCase.Ensemble.Defs

Exact dyadic distribution ensembles -- definitions #

A DyadicEnsemble α represents each parameter slice by a uniformly random finite Boolean seed and a deterministic sample map. Repeated samples may map to the same output, so this representation captures arbitrary finite dyadic distributions without quotienting away sampler multiplicity.

This is the representation-independent finite layer needed by average-case complexity. Polynomial-time samplability is a separate machine-level property.

structure Complexity.DyadicEnsemble (α : Type u) :

A parameterized family of finite dyadic distributions on α.

At parameter n, a uniformly random Boolean string of length seedLength n is mapped to an output by sample n. Distinct seeds may produce the same output.

  • seedLength :

    Number of uniformly random bits used by the nth slice.

  • sample (n : ) : (Fin (self.seedLength n)Bool)α

    Deterministic sample produced from the parameter and random seed.

Instances For
    def Complexity.DyadicEnsemble.event {α : Type u} (D : DyadicEnsemble α) (n : ) (P : αProp) [DecidablePred P] :

    The seed event whose samples satisfy P.

    Equations
    Instances For
      def Complexity.DyadicEnsemble.probability {α : Type u} (D : DyadicEnsemble α) (n : ) (P : αProp) [DecidablePred P] :

      Exact probability of P in the nth ensemble slice.

      Equations
      Instances For
        def Complexity.DyadicEnsemble.mass {α : Type u} [DecidableEq α] (D : DyadicEnsemble α) (n : ) (x : α) :

        Probability mass of one output in the nth slice.

        Equations
        Instances For

          Finite support of the nth slice.

          Equations
          Instances For
            def Complexity.DyadicEnsemble.map {α : Type u} {β : Type v} (D : DyadicEnsemble α) (f : αβ) :

            Push an ensemble forward through a deterministic map.

            Equations
            Instances For

              Independently sample two ensembles using disjoint blocks of one seed.

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

                Point-mass ensemble. Its slices use no random bits.

                Equations
                Instances For

                  Uniform distribution on all Boolean strings of length n, represented as lists in increasing index order.

                  Equations
                  Instances For