Gaussian lattice sums #
This file defines the Gaussian lattice sum
Z(c, s) = ∑ n : ℤ, exp (-(n - c) ^ 2 / (2 * s ^ 2))
and develops its elementary theory for a centre c : ℝ and a nonzero width s : ℝ.
The sum Z(c, s) is the normalizing constant of the discrete Gaussian law on ℤ with centre c
and width s, whose masses are exp (-(n - c) ^ 2 / (2 * s ^ 2)) / Z(c, s). The moments of that
law are polynomially weighted lattice sums, and are obtained by differentiating Z(c, s) in the
centre c.
Main declarations #
Real.gaussianLatticeSum— the Gaussian lattice sumZ(c, s).Real.hasSum_gaussianLatticeSumandReal.gaussianLatticeSum_pos— convergence and positivity fors ≠ 0;Real.gaussianLatticeSum_zero_rightrecords the totalized value0ats = 0.Real.summable_pow_mul_exp_neg_sub_sq— convergence of the lattice sums with polynomial weights;Real.summable_abs_pow_mul_exp_neg_sub_sq_divis the absolute version for any positive denominator, as used for domination arguments.Real.gaussianLatticeSum_add_intCast,Real.gaussianLatticeSum_periodic,Real.gaussianLatticeSum_neg_leftandReal.gaussianLatticeSum_intCast_sub— invariance under integer translations and reflections of the centre.Real.gaussianLatticeSum_eq_jacobiTheta₂— the expressionZ(c, s) = exp (-c ^ 2 / (2 * s ^ 2)) * Re (θ(-i c / (2π s ^ 2), i / (2π s ^ 2)))through Mathlib's two-variable Jacobi theta functionjacobiTheta₂.Real.hasDerivAt_tsum_pow_mul_exp_neg_sub_sqandReal.hasDerivAt_gaussianLatticeSum— termwise differentiation in the centre of the lattice sums with weightn ^ k.Real.contDiff_gaussianLatticeSum,Real.continuousAt_gaussianLatticeSumandReal.measurable_gaussianLatticeSum— analyticity in the centre, joint continuity ons ≠ 0, and joint measurability.
References #
- C. L. Canonne, G. Kamath and T. Steinke, The Discrete Gaussian for Differential Privacy, 2020, arXiv:2004.00010.
The Gaussian lattice sum Z(c, s) = ∑ n : ℤ, exp (-(n - c) ^ 2 / (2 * s ^ 2)) with centre
c and width s.
The series converges exactly when s ≠ 0; at s = 0 every term is 1, so the totalized sum is
0 (see Real.gaussianLatticeSum_zero_right).
Instances For
At width zero every term of the Gaussian lattice series is 1, so the totalized sum is 0.
For a nonzero width the Gaussian lattice sum is positive.
The Gaussian lattice sum depends on the width only through its square.
The Gaussian lattice sum is invariant under integer translations of the centre.
The Gaussian lattice sum is 1-periodic in the centre.
The Gaussian lattice sum is even in the centre.
The Gaussian lattice sum is invariant under the reflection c ↦ k - c for every integer
k.
Theta-function expression of the Gaussian lattice sum:
Z(c, s) = exp (-c ^ 2 / (2 * s ^ 2)) * Re (θ(-i c / (2π s ^ 2), i / (2π s ^ 2))), where θ is
Mathlib's two-variable Jacobi theta function jacobiTheta₂.
At s = 0 both sides vanish.
Termwise differentiation of weighted Gaussian lattice sums: for every natural weight
exponent k and every width s, the derivative in the centre of
x ↦ ∑ n : ℤ, n ^ k * exp (-(n - x) ^ 2 / (2 * s ^ 2)) is the sum of the termwise derivatives. At
width zero the function is constant and every termwise derivative is 0.
The Gaussian lattice sum is analytic, in particular smooth, in the centre.
The Gaussian lattice sum is jointly continuous in the centre and the width at every nonzero width.
The Gaussian lattice sum is jointly measurable in the centre and the width.