Documentation

CslibFrontier.Computability.Probabilistic.Sampling.BitString

Uniform fixed-width bit strings in strict polynomial time #

A uniform BitString k, written as its bit list encBitString k, is sampled exactly by k fair coins (BitString.sampleList). So the typed sampler ProbComp.uniform (BitString (k a)) is uniform strict PPT whenever the width k a is computable in polynomial time in unary.

Main results #

Uniform fixed-width bit strings are strict PPT: for a width k a computable in polynomial time in unary, sampling a uniform BitString (k a) and writing its bit list is uniform strict PPT.