Documentation

Complexitylib.Metacomplexity.MCSP.Magnification.AntiChecker.Counter.Randomized.Defs

Randomized anti-checker counters -- definitions #

A randomized approximate counter circuit receives a random seed before the fixed-width labeled-sample input and prints a little-endian count estimate. Its correctness contract bounds, separately for every input, the uniform probability that the estimate violates the existing relative-error predicate.

The failure exponent includes one bit of strict union-bound slack. This is the exact finite contract needed to select one seed that is accurate on every fixed-width input simultaneously.

def Complexity.GapMCSP.Magnification.AntiCheckerLemma.CounterOutputIsAccurate {arity prefixLength : } (beta : PositiveRationalScale) (input : BitString ((prefixLength + 1) * (arity + 1))) (output : BitString (counterOutputWidth beta arity)) :

A counter output relatively approximates the labeled survivor count for one fixed-width input.

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

    A size-bounded randomized counter with random bits placed before its labeled-sample input. Correctness is kept as the separate IsCorrect predicate below, mirroring ApproximateCounterCircuit.

    Instances For
      def Complexity.GapMCSP.Magnification.AntiCheckerLemma.RandomizedApproximateCounterCircuit.failureEvent {overhead arity prefixLength seedWidth : } {beta : PositiveRationalScale} (counter : RandomizedApproximateCounterCircuit overhead beta arity prefixLength seedWidth) (input : BitString ((prefixLength + 1) * (arity + 1))) :
      Finset (BitString seedWidth)

      Seeds on which the randomized counter violates relative accuracy at one fixed input.

      Equations
      Instances For
        def Complexity.GapMCSP.Magnification.AntiCheckerLemma.RandomizedApproximateCounterCircuit.IsCorrect {overhead arity prefixLength seedWidth : } {beta : PositiveRationalScale} (counter : RandomizedApproximateCounterCircuit overhead beta arity prefixLength seedWidth) :

        Every fixed input has failure probability at most one over 2^(inputWidth + 1), leaving strict slack for a union bound over all inputs.

        Equations
        Instances For