Distribution ensembles for average-case complexity #
An ensemble D : Cslib.Complexity.Ensemble is a family of distributions D.dist n on binary
words, where D.dist n is supported on words of length exactly n. This is the ensemble notion of
Bogdanov and Trevisan, §2.1 specialized to distributions on {0,1}^n, the
setting of their uniform ensemble U and of the compression argument in their Claim 20; the
length n is then available to algorithms as the length of the input. The source also allows
D_n to be supported on words of several lengths; such ensembles are not modelled here, and no
reindexing bridge is provided.
Two efficiency classes of ensembles are defined.
Cslib.Complexity.Ensemble.PComp, polynomial-time computable ensembles Bogdanov and Trevisan, Definition 2: the cumulative distributionCslib.Complexity.Ensemble.cdf, the probability of the words of length|x|that are at mostx, is a rationum x / den xof naturals computed in polynomial time in binary. On words of a fixed length the order used is the numeric order ofCslib.BitString.binaryValue, which is the lexicographic order of the source (Cslib.BitString.binaryValue_le_iff_le). Values are represented exactly as rationals; the source leaves the output representation implicit.Cslib.Complexity.Ensemble.PSamp, polynomial-time samplable ensembles Bogdanov and Trevisan, Definition 1: a native strict-PPT program (Cslib.Probability.IsPPTOn) givennin unary has output distribution exactlyD.dist n.
The uniform ensemble Cslib.Complexity.Ensemble.uniform lies in both classes.
Main definitions #
Cslib.Complexity.Ensemble: distributions on words of each length.Cslib.Complexity.Ensemble.cdf,Cslib.Complexity.Ensemble.cdfLo,Cslib.Complexity.Ensemble.PComp,Cslib.Complexity.Ensemble.PSamp.Cslib.Complexity.Ensemble.uniform: the uniform ensemble.
Main results #
Cslib.Complexity.Ensemble.cdf_eq_cdfLo_add: the cumulative distribution atxis the probability belowxplus that ofx.Cslib.Complexity.Ensemble.uniform_apply: a word has uniform probability2^{-|x|}.Cslib.Complexity.Ensemble.cdf_uniform: the uniform cumulative distribution is(binaryValue x + 1) / 2^{|x|}.Cslib.Complexity.Ensemble.uniform_toOuterMeasure_binaryValue_lt: the words of lengthNwith value belowK ≤ 2^Nhave uniform probabilityK / 2^N.Cslib.Complexity.Ensemble.uniform_pComp,Cslib.Complexity.Ensemble.uniform_pSamp.
References #
An ensemble of distributions on binary words, the n-th supported on words of length n
Bogdanov and Trevisan, §2.1.
The distribution on words of length
n.Every word in the support of
dist nhas lengthn.
The cumulative distribution D_{|x|}({y : y ≤ x}) of an ensemble, ordering words of the same
length by their binary value (equivalently, lexicographically:
Cslib.BitString.binaryValue_le_iff_le).
Nothing lies below a word of value 0.
Below a word of nonzero value lies the cumulative distribution of its predecessor.
The cumulative distribution at x is at most the probability below any later word of the same
length.
Polynomial-time computable ensembles
Bogdanov and Trevisan, Definition 2: the cumulative distribution is a
ratio of two naturals, each computable in polynomial time from x and written in binary.
Polynomial-time samplable ensembles
Bogdanov and Trevisan, Definition 1: a native strict-PPT program, given
n in unary, samples exactly D.dist n.
The uniform ensemble U = {U_n}, with U_n uniform on {0,1}^n.
The uniform ensemble is polynomial-time computable.
The uniform ensemble is polynomial-time samplable.