The discrete tent function #
Adapted for Lean Pool by changing module paths, selecting explicit imports, and simplifying the polynomial arithmetic in the tent-sum identities.
Komlos.tent M j = max (M - |j|) 0 is the tent of half-width M on ℤ. Its square, after
normalisation, gives the one-dimensional probability weights used in Komlos.Grid.
The file computes ∑ j, tent M j ^ 2 and proves
∑ j ∈ s, (tent M j - tent M (j - m)) ^ 2 ≤ 2 * M * m ^ 2.
The latter follows by expressing a shift as a sum of one-step differences and applying
Cauchy–Schwarz.
The one-step difference of the tent.
Equations
- Komlos.step M j = Komlos.tent M j - Komlos.tent M (j - 1)