Documentation

CslibFrontier.Languages.Probabilistic.UniformNat.Support

Supported residues of bounded samplers #

The positive-modulus support bound for sampleModNat lets callers recover a canonical residue from a supported sampled natural. It is kept separate from the sampler's definition and exact law.

Main results #

theorem Cslib.ProbComp.lt_of_mem_support_sampleModNat {width modulus value : ℕ} (hmodulus : 0 < modulus) (hvalue : value ∈ (sampleModNat width modulus).eval.support) :
value < modulus

Every supported residue is strictly below a positive modulus.