Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 2.1: Hilbert covariance square root

Open
QAlgorithms.Papers.Independent.Intake100.P89.hilbert_covariance_squareRoot

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let WWW be a Borel centered Gaussian element of a separable real Hilbert space BBB. Its covariance operator SSS is continuous linear, positive, self-adjoint and has finite trace. It admits a positive self-adjoint square root RRR with R2=SR^2=SR2=S, and

HW=R(B),∥Rb∥H=∥b∥Bfor b⊥ker⁡R.H_W=R(B),\qquad \|Rb\|_H=\|b\|_B\quad\text{for }b\perp\ker R.HW​=R(B),∥Rb∥H​=∥b∥B​for b⊥kerR.

The restriction selects the minimum-norm preimage and includes degenerate covariance operators; the printed formula without this restriction fails when ker⁡S≠0\ker S\ne0kerS=0.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P89
Formal statement
noncomputable section

open Set Filter MeasureTheory ProbabilityTheory

open scoped Topology BigOperators ENNReal

namespace QAlgorithms.Papers.Independent.Intake100.P89

universe u v w

variable {Omega : Type u} [MeasurableSpace Omega]

section MoreResults

variable (P : Measure Omega) [hP : IsProbabilityMeasure P]

include hP

/-- Example 2.1: Hilbert covariance square root, arXiv:0805.3252v1, PDF p.6.
SOURCE CORRECTION: printed ||R b||_H=||b|| is restricted to b perpendicular to ker R; the source proof substitutes c=R b, forcing this minimum-preimage reading. Finite trace is the uniform bound on all finite orthonormal diagonal sums; no injectivity is assumed. -/
theorem hilbert_covariance_squareRoot
{E : Type v} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [CompleteSpace E] [TopologicalSpace.SeparableSpace E]
    (W : Omega → E) (hW : BorelCenteredGaussianElement P W) :
    ∃ S R : E →L[ℝ] E,
      (∀ b : E, S b = ∫ o, (inner ℝ (W o) b) • W o ∂P) ∧
      (∀ x y : E, inner ℝ x (S y) = inner ℝ (S x) y) ∧
      (∀ x : E, 0 ≤ inner ℝ x (S x)) ∧
      (∃ bound : ℝ, 0 ≤ bound ∧ ∀ (n : ℕ) (e : Fin n → E),
        Orthonormal ℝ e → ∑ i, inner ℝ (e i) (S (e i)) ≤ bound) ∧
      (∀ x y : E, inner ℝ x (R y) = inner ℝ (R x) y) ∧
      (∀ x : E, 0 ≤ inner ℝ x (R x)) ∧
      (∀ x : E, R (R x) = S x) ∧
      banachRKHS P W = Set.range R ∧
      ∀ b : E, (∀ c : E, R c = 0 → inner ℝ b c = 0) →
        banachNorm P W (R b) = ‖b‖ := by sorry

end MoreResults

end QAlgorithms.Papers.Independent.Intake100.P89

end
Source
Reproducing kernel Hilbert spaces of Gaussian priors, arXiv:0805.3252v1, PDF p. 6, Example 2.1: Hilbert covariance square root
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let PPP be a measure on a measurable space Ω\OmegaΩ, let EEE be a complete separable real inner-product space, and let W:Ω→EW:\Omega\to EW:Ω→E be Borel measurable. Assume that every continuous real-linear functional ℓ:E→R\ell:E\to\mathbb Rℓ:E→R sends WWW to a random variable whose distribution under PPP is Gaussian with mean 000 and some nonnegative variance, possibly 000. Let J(X)J(X)J(X) denote the L2(P)L^2(P)L2(P) class of XXX if it belongs to L2(P)L^2(P)L2(P), and 000 otherwise; set

H=span⁡R{J(ℓ(W)):ℓ:E→R continuous and linear}‾,A(h)=∫Ωh(ω)W(ω) dP(ω),K=A(H).H=\overline{\operatorname{span}_{\mathbb R}\{J(\ell(W)):\ell:E\to\mathbb R \text{ continuous and linear}\}},\qquad A(h)=\int_\Omega h(\omega)W(\omega)\,dP(\omega),\qquad K=A(H).H=spanR​{J(ℓ(W)):ℓ:E→R continuous and linear}​,A(h)=∫Ω​h(ω)W(ω)dP(ω),K=A(H).

For x∈Kx\in Kx∈K, let L(x)L(x)L(x) be the definition’s chosen preimage in HHH, viewed in L2(P)L^2(P)L2(P); set L(x)=0L(x)=0L(x)=0 for x∉Kx\notin Kx∈/K, and write N(x)=∥L(x)∥L2(P)N(x)=\|L(x)\|_{L^2(P)}N(x)=∥L(x)∥L2(P)​. Then there exist continuous real-linear maps S,R:E→ES,R:E\to ES,R:E→E such that, for every b∈Eb\in Eb∈E,

S(b)=∫Ω⟨W(ω),b⟩W(ω) dP(ω);S(b)=\int_\Omega \langle W(\omega),b\rangle W(\omega)\,dP(\omega);S(b)=∫Ω​⟨W(ω),b⟩W(ω)dP(ω);

both maps are symmetric and nonnegative, meaning that for all x,y∈Ex,y\in Ex,y∈E,

⟨x,Sy⟩=⟨Sx,y⟩,⟨x,Ry⟩=⟨Rx,y⟩,0≤⟨x,Sx⟩,0≤⟨x,Rx⟩;\langle x,Sy\rangle=\langle Sx,y\rangle,\quad \langle x,Ry\rangle=\langle Rx,y\rangle,\quad 0\le\langle x,Sx\rangle,\quad 0\le\langle x,Rx\rangle;⟨x,Sy⟩=⟨Sx,y⟩,⟨x,Ry⟩=⟨Rx,y⟩,0≤⟨x,Sx⟩,0≤⟨x,Rx⟩;

there exists a real M≥0M\ge0M≥0 such that, for every natural number nnn and every orthonormal family e0,…,en−1e_0,\ldots,e_{n-1}e0​,…,en−1​ in EEE,

∑i=0n−1⟨ei,Sei⟩≤M;\sum_{i=0}^{n-1}\langle e_i,Se_i\rangle\le M;i=0∑n−1​⟨ei​,Sei​⟩≤M;

and R(Rx)=SxR(Rx)=SxR(Rx)=Sx for every x∈Ex\in Ex∈E, K=R(E)K=R(E)K=R(E), and

(∀c∈E, Rc=0 ⟹ ⟨b,c⟩=0) ⟹ N(Rb)=∥b∥for every b∈E.\bigl(\forall c\in E,\ Rc=0\ \Longrightarrow\ \langle b,c\rangle=0\bigr) \ \Longrightarrow\ N(Rb)=\|b\| \quad\text{for every }b\in E.(∀c∈E, Rc=0 ⟹ ⟨b,c⟩=0) ⟹ N(Rb)=∥b∥for every b∈E.

The finite-family bound includes n=0n=0n=0, with empty sum 000; the zero space and operators with nontrivial kernels are allowed. All displayed integrals are total integrals, equal to 000 when the relevant integrand is nonintegrable.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

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, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me