Strict-PPT 1-D discrete Gaussian sampler (sampleZ) #
This module constructs the finite-parameter strict probabilistic polynomial-time (IsPPTOn) 1-D
discrete Gaussian sampler Cslib.Probability.sampleZ together with explicit statistical-distance
(CloseTo) and support-radius certificates, without matrix or determinant dependencies.
On input inp : SampleZInput with rational squared width sSq = s² > 0 and rational center c,
each trial draws a uniform integer proposal from the padded interval [⌊c⌋ - R, ⌊c⌋ + R] about
⌊c⌋ (with R = ⌊√⌊t² · s²⌋⌋ + 2), containing the paper's window ℤ ∩ [c - s · t, c + s · t],
and accepts via a prec-bit dyadic coin computed by the deterministic fixed-point Machin-π and
range-reduced exp(-z) primitives in CslibFrontier.Computability.PolyTime.FixedPointExp.
Repeating for at most maxTrials blocks with timeout fallback ⌊c⌋ realizes the capped-trial
variant of [GPV08], §4.1, Lemmas 4.2–4.3 (pp. 14–15). The asymptotic
ω(log n) endpoint is not formalized here (tracked in
#6861 and
#1213).
Main definitions #
Cslib.Probability.SampleZInput,Cslib.Probability.SampleZInput.enc: input parameters and framing multi-tape Turing machine encoding forsampleZ.Cslib.Probability.sampleZ: finite-parameter strict-PPT 1-D discrete Gaussian sampler.
Main results #
Cslib.Probability.isPPTOn_sampleZ: unconditional strict-PPT certificate forsampleZ.Cslib.Probability.closeTo_eval_sampleZ_discreteGaussian,Cslib.Probability.closeTo_eval_sampleZ_discreteGaussian_of_smoothingParameter_le: finite-parameterCloseTocertificates againstZLattice.discreteGaussianIntin dual-mass and smoothing-parameter forms.Cslib.Probability.mem_support_sampleZ_abs_sub_le: real distance support bound|(z : ℝ) - inp.center| ≤ inp.tail * √(inp.sSq) + 3for0 < inp.sSq.
References #
- C. Gentry, C. Peikert, and V. Vaikuntanathan, Trapdoors for Hard Lattices and New Cryptographic Constructions, §4.1, Lemmas 4.2–4.3 (full version of August 25, 2008, pp. 14–15).
1. SampleZInput, search radius, weight numerator, and sampleZ #
Finite-parameter strict-PPT capped-trial 1-D discrete Gaussian sampler after
[GPV08], §4.1, Lemma 4.3 (p. 15). Proposals are drawn uniformly from the
padded integer interval [⌊c⌋ - R, ⌊c⌋ + R] about ⌊c⌋ (with R = ⌊√⌊t² · s²⌋⌋ + 2), which
contains the paper's window ℤ ∩ [c - s · t, c + s · t]; the asymptotic ω(log n) endpoint is not
formalized here (tracked in #6861
and #1213).
Strict-PPT certificate for the 1-D discrete Gaussian sampler sampleZ.
Finite-parameter strict-PPT CloseTo step for sampleZ against discreteGaussianInt under
the 1-D dual-mass premise ρ_{1/s}(ℤ* \ {0}) ≤ ε ≤ 1 / 2, after
[GPV08], §4.1, Lemmas 4.2–4.3 (pp. 14–15); the asymptotic ω(log n)
endpoint is not formalized here (tracked in
#6861 and
#1213).
Smoothing-parameter (η_ε(ℤ) ≤ √sSq) form of the finite-parameter strict-PPT CloseTo step
closeTo_eval_sampleZ_discreteGaussian, after [GPV08], §4.1,
Lemmas 4.2–4.3 (pp. 14–15); the asymptotic ω(log n) endpoint is not formalized here (tracked in
#6861 and
#1213).
Every point in the support of sampleZ inp lies within (inp.tail : ℝ) * √(inp.sSq) + 3 of
inp.center for 0 < inp.sSq (including the timeout fallback inp.center.floor).