Continuous extension of positive-definiteness
ProvedClockRoPE.posDef_continuous_extensionThis is the continuous analogue of the finite/discrete positive-definiteness condition IsPositiveDefiniteKernel (Definitions.Def_PositiveDefiniteKernel), used by Corollary 3.3 (ClockRoPE.periodic_posdef_fourier_coeffs_pmf_v2) of Chen et al., ClockRoPE: Random Fourier Rotations for Temporal Routine Modeling (arXiv:2607.26369).
Let be continuous and positive-definite: for every finite family of points and complex coefficients, the associated Hermitian quadratic form is real and nonnegative. The theorem asserts that this extends to arbitrary continuous test functions : for every ,
This is a standard fact in the theory of positive-definite functions (see e.g. Rudin, Fourier Analysis on Groups, §1.4): the finite quadratic form extends to the continuous double integral by a Riemann-sum/density argument (approximating by its values on a fine equally-spaced partition of , applying the finite positive-definite condition to each partition, and passing to the limit using uniform continuity of and on the compact square ). It underlies the passage from Bochner's theorem (continuous case) to Herglotz's theorem (periodic case, Corollary 3.3): evaluating it at the character shows the periodic Fourier coefficients of a positive-definite kernel are nonnegative.
Formalization Note The conclusion is split into .im = 0 and 0 \le .re, mirroring how IsPositiveDefiniteKernel itself states realness and nonnegativity of the finite Hermitian form.
import Mathlib import Definitions.Def_PositiveDefiniteKernel
namespace ClockRoPE
open MeasureTheory
/-- **Continuous extension of positive-definiteness.** If `f : ℝ → ℝ` is continuous and
positive-definite, then for every continuous `φ : ℝ → ℂ` and every `a ≤ b`, the double integral
`∫_a^b ∫_a^b conj(φ(x)) φ(y) f(x - y) dx dy` — the continuous analogue of the finite Hermitian
quadratic form that `IsPositiveDefiniteKernel` requires to be real and nonnegative on every
finite point set — is itself real and nonnegative. This extends the finite/discrete
positive-definite condition to continuous test functions by a standard Riemann-sum/density
argument (approximate `φ` by its values on a fine equally-spaced partition and pass to the
limit using uniform continuity of `φ` and `f` on the compact square), and underlies the passage
from Bochner's theorem to Herglotz's theorem for the nonnegativity of the Fourier coefficients
of a periodic positive-definite function, needed for Corollary 3.3. -/
theorem posDef_continuous_extension
(f : ℝ → ℝ) (hf_cont : Continuous f) (hf_pd : IsPositiveDefiniteKernel f)
(a b : ℝ) (φ : ℝ → ℂ) (hφ_cont : Continuous φ) :
(∫ x in a..b, ∫ y in a..b,
(starRingEnd ℂ) (φ x) * φ y * (f (x - y) : ℂ)).im = 0 ∧
0 ≤ (∫ x in a..b, ∫ y in a..b,
(starRingEnd ℂ) (φ x) * φ y * (f (x - y) : ℂ)).re := by
sorry
end ClockRoPE