Documentation

Complexitylib.Algebraic.LowerBound.Cutwidth.Gaussian.Edge.Exact.Internal

Sheppard's crossing bound: proofs #

The planar angle law #

The standard planar Gaussian density in polar coordinates.

The angles with |cos θ| ≤ k |sin θ| are those with |cos θ| ≤ sin (arctan k).

The angles in (-π, π) with |cos θ| ≤ k |sin θ| form two arcs centered at ±π/2.

The angles in (-π, π) with |cos θ| ≤ k |sin θ| have total length 4 arctan k.

The radial factor of the planar Gaussian integrates to one.

Planar angle law for the product of two standard Gaussians.

Planar angle law for gaussPi (Fin 2).

Symmetric intervals carry the most mass #

theorem Algebraic.Cutwidth.Gaussian.Internal.intervalIntegral_shift_le {f : ℝ → ℝ} (hf : Continuous f) {c w : ℝ} (hc : 0 ≤ c) (hmono : ∀ (x : ℝ), -w ≤ x → f (x + 2 * w) ≤ f x) :
∫ (x : ℝ) in c - w..c + w, f x ≤ ∫ (x : ℝ) in -w..w, f x

If translating by 2w does not increase f to the right of -w, then the interval of radius w around c ≥ 0 carries at most the mass of the centered one.

The centered Gaussian density decreases under the translation by 2w to the right of -w.

One-dimensional Anderson inequality. For a centered Gaussian, an interval of radius w carries the most mass when it is centered at the mean.

Anderson's inequality for the event |X - c| ≤ |Y| with X, Y independent and X centered Gaussian.

gaussianReal 0 s is the image of the standard Gaussian under x ↦ √s x.

Planar angle law for two independent centered Gaussians of variances s > 0 and r.

Sheppard's bound #

A threshold separating two values lies within half their gap of their midpoint.

theorem Algebraic.Cutwidth.Gaussian.Internal.gaussPi_between_le_arctan {ι : Type} [Fintype ι] (α β : ι → ℝ) (hnorm : ∑ i : ι, α i ^ 2 = ∑ i : ι, β i ^ 2) (hsum : 0 < ∑ i : ι, (α i + β i) ^ 2) (t : ℝ) :
(gaussPi ι).real {ω : ι → ℝ | Between t (form α ω) (form β ω)} ≤ 2 / Real.pi * Real.arctan (√(∑ i : ι, (β i - α i) ^ 2) / √(∑ i : ι, (α i + β i) ^ 2))

Sheppard's bound for coefficient vectors of equal norm with nonzero sum.

2 arctan (tanHalf x) = arccos x.

theorem Algebraic.Cutwidth.Gaussian.Internal.gaussPi_between_le_arccos {ι : Type} [Fintype ι] {α β : ι → ℝ} (hα : ∑ i : ι, α i ^ 2 = 1) (hβ : ∑ i : ι, β i ^ 2 = 1) (hx : -1 < ∑ i : ι, α i * β i) (t : ℝ) :
(gaussPi ι).real {ω : ι → ℝ | Between t (form α ω) (form β ω)} ≤ Real.arccos (∑ i : ι, α i * β i) / Real.pi

Sheppard's bound for unit forms.