Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Continuous extension of positive-definiteness

Proved
ClockRoPE.posDef_continuous_extension

by Elsie66 · Sep 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

fourier-analysisharmonic-analysispositive-definite-kernels

This 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 f:R→Rf:\mathbb R\to\mathbb Rf:R→R be continuous and positive-definite: for every finite family of points and complex coefficients, the associated Hermitian quadratic form ∑i,jci‾cjf(xi−xj)\sum_{i,j}\overline{c_i}c_j f(x_i-x_j)∑i,j​ci​​cj​f(xi​−xj​) is real and nonnegative. The theorem asserts that this extends to arbitrary continuous test functions φ:R→C\varphi:\mathbb R\to\mathbb Cφ:R→C: for every a≤ba\le ba≤b,

∫ab∫abφ(x)‾ φ(y) f(x−y) dx dy∈R≥0.\int_a^b\int_a^b \overline{\varphi(x)}\,\varphi(y)\,f(x-y)\,dx\,dy \in \mathbb R_{\ge 0}.∫ab​∫ab​φ(x)​φ(y)f(x−y)dxdy∈R≥0​.

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 φ\varphiφ by its values on a fine equally-spaced partition of [a,b][a,b][a,b], applying the finite positive-definite condition to each partition, and passing to the limit using uniform continuity of φ\varphiφ and fff on the compact square [a,b]2[a,b]^2[a,b]2). It underlies the passage from Bochner's theorem (continuous case) to Herglotz's theorem (periodic case, Corollary 3.3): evaluating it at the character φ(x)=e−i2πkx/T\varphi(x)=e^{-i2\pi kx/T}φ(x)=e−i2πkx/T 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.

Preamble
import Mathlib
import Definitions.Def_PositiveDefiniteKernel
Formal statement
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
Source
Walter Rudin, Fourier Analysis on Groups, Interscience, 1962, Section 1.4 (positive-definite functions); standard extension of Bochner's theorem's finite condition to continuous test functions

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me