Documentation

CslibFrontier.Foundations.Probability.Gaussian.Discrete

Discrete Gaussian distributions on lattices #

A discrete subgroup of a finite-dimensional real normed space has finite, strictly positive Gaussian mass at every center and every positive width. Normalizing this mass gives a PMF on the lattice, including lattices that do not span the ambient space.

Main definitions #

Main results #

References #

The Euclidean specialization is [Reg09], §2, equations (4) and (6), printed pages 13–14 of the May 2, 2009 author version. Here the center is explicit, and the convergence proof also works for arbitrary norms and lower-rank discrete subgroups. This constructs a mathematical distribution; it supplies no sampling algorithm, smoothing estimate, or worst-case reduction.

noncomputable def ProbabilityTheory.gaussianWeight {E : Type u_1} [NormedAddCommGroup E] (s : ℝ) (x : E) :

The unnormalized Gaussian weight of width s. The width is required to be positive when constructing a distribution.

Gaussian weights are strictly positive.

theorem ZLattice.summable_gaussianWeight {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E) [DiscreteTopology ↥L] (s : ℝ) (hs : 0 < s) (c : E) :
Summable fun (z : ↥L) => ProbabilityTheory.gaussianWeight s (↑z - c)

Gaussian weights are summable on every shifted discrete lattice at positive width.

noncomputable def ZLattice.gaussianMass {E : Type u_1} [NormedAddCommGroup E] (L : Submodule ℤ E) (s : ℝ) (c : E) :

The total unnormalized Gaussian mass of L, centered at c with width s.

theorem ZLattice.gaussianMass_pos {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E) [DiscreteTopology ↥L] (s : ℝ) (hs : 0 < s) (c : E) :
0 < gaussianMass L s c

At positive width the convergent Gaussian normalizer is strictly positive.

noncomputable def ZLattice.discreteGaussian {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E) [DiscreteTopology ↥L] (s : ℝ) (hs : 0 < s) (c : E) :
PMF ↥L

The discrete Gaussian on L centered at c, with strictly positive width s. The sample is a lattice point; the center need not belong to the lattice.

The probability of a point is its Gaussian weight divided by the total lattice mass.

theorem ZLattice.discreteGaussian_apply_toReal {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E) [DiscreteTopology ↥L] (s : ℝ) (hs : 0 < s) (c : E) (z : ↥L) :

The real-valued probability of a lattice point.

@[simp]

Every point of the lattice is in the support of its discrete Gaussian.

theorem ZLattice.gaussianMass_add {E : Type u_1} [NormedAddCommGroup E] (L : Submodule ℤ E) (s : ℝ) (c : E) (a : ↥L) :
gaussianMass L s (c + ↑a) = gaussianMass L s c

Moving the center by a lattice vector leaves the total Gaussian mass unchanged.

theorem ZLattice.discreteGaussian_apply_add {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E) [DiscreteTopology ↥L] (s : ℝ) (hs : 0 < s) (c : E) (a z : ↥L) :
(discreteGaussian L s hs (c + ↑a)) (z + a) = (discreteGaussian L s hs c) z

Translating the center and the sampled point by the same lattice vector preserves mass.

theorem ZLattice.map_add_discreteGaussian {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] (L : Submodule ℤ E) [DiscreteTopology ↥L] (s : ℝ) (hs : 0 < s) (c : E) (a : ↥L) :
PMF.map (fun (z : ↥L) => z + a) (discreteGaussian L s hs c) = discreteGaussian L s hs (c + ↑a)

Translating a discrete Gaussian by a lattice vector translates its center.

Removing the zero term from the convergent Gaussian sum subtracts exactly one.

The mass of the nonzero lattice points is nonnegative.