Documentation

Complexity.Computability.Probabilistic.CenteredBinomial

Native centered binomial sampling #

The actual two-count program has one strict fair-coin polynomial-time implementation for all unary parameters η. Its signed output uses the binary integer encoding. The certificate charges both blocks of independent trials, their counts, and signed subtraction.

Main results #

References #

The centered-binomial program is uniformly strict PPT, with a unary parameter and binary signed output. No fixed finite output type or finite-rank encoding is used.

theorem Turing.MultiTapeTM.ComputableInPolyTime.sampleCenteredBinomial {α : Type} {input : α ↪ List Bool} {parameter : α → ℕ} (hparameter : ComputableInPolyTime parameter input encUnary) :

Sample a centered-binomial integer using an efficiently computed unary parameter.