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 #
Turing.MultiTapeTM.ComputableInPolyTime.uniformBitString: the typed uniform sampler ofBitString (k a)is uniform strict PPT.
theorem Turing.MultiTapeTM.ComputableInPolyTime.uniformBitString {α : Type} {input : α ↪ List Bool} {k : α → ℕ} (hk : ComputableInPolyTime k input encUnary) :
Cslib.Probability.IsPPTOn input encBits fun (a : α) =>
⇑(encBitString (k a)) <$> Cslib.ProbComp.uniform (Cslib.BitString (k a))
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.