Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 4.2: Gaussian polynomial RKHS

Open
QAlgorithms.Papers.Independent.Intake100.P89.polynomial_rkhs

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

prove2quantum

Let k≥0k\ge0k≥0 be an integer, let Z0,…,ZkZ_0,\ldots,Z_kZ0​,…,Zk​ be iid standard normals, and set X(t)=∑i=0kZiti/i!X(t)=\sum_{i=0}^kZ_it^i/i!X(t)=∑i=0k​Zi​ti/i! on [0,1][0,1][0,1]. Its RKHS is exactly the polynomials of degree at most kkk, written Pa(t)=∑i=0kaiti/i!P_a(t)=\sum_{i=0}^ka_it^i/i!Pa​(t)=∑i=0k​ai​ti/i!, with

⟨Pa,Pb⟩H=∑i=0kaibi,∥Pa∥H2=∑i=0kai2=∑i=0k(Pa(i)(0))2.\langle P_a,P_b\rangle_H=\sum_{i=0}^ka_ib_i,\qquad\|P_a\|_H^2=\sum_{i=0}^ka_i^2=\sum_{i=0}^k(P_a^{(i)}(0))^2.⟨Pa​,Pb​⟩H​=i=0∑k​ai​bi​,∥Pa​∥H2​=i=0∑k​ai2​=i=0∑k​(Pa(i)​(0))2.

For k=0k=0k=0 this is the variance-one constant process, and the zero polynomial is included.

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 PathResults

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

include hP

/-- Example 4.2: Gaussian polynomial RKHS, arXiv:0805.3252v1, PDF p.13.
Factorials are retained. The process function model equals the C[0,1] model by Theorem 2.1; derivatives are of the global polynomial, avoiding boundary derivative conventions. -/
theorem polynomial_rkhs
(k : ℕ) (Z : Fin (k + 1) → Omega → ℝ) (hZ : StandardNormals P Z) :
    let X := fun t : Time => fun o => polynomialReal k (fun i => Z i o) (t : ℝ)
    processRKHS P X = Set.range (fun a : Fin (k + 1) → ℝ =>
      fun t : Time => polynomialReal k a (t : ℝ)) ∧
    (∀ a b : Fin (k + 1) → ℝ,
      processInner P X (fun t => polynomialReal k a (t : ℝ))
        (fun t => polynomialReal k b (t : ℝ)) = ∑ i, a i * b i) ∧
    (∀ a : Fin (k + 1) → ℝ,
      processNorm P X (fun t => polynomialReal k a (t : ℝ)) ^ 2 = ∑ i, (a i) ^ 2) ∧
    ∀ (a : Fin (k + 1) → ℝ) (i : Fin (k + 1)),
      iteratedDeriv (i : ℕ) (polynomialReal k a) 0 = a i := by sorry

end PathResults

end QAlgorithms.Papers.Independent.Intake100.P89

end
Source
Reproducing kernel Hilbert spaces of Gaussian priors, arXiv:0805.3252v1, PDF p. 13, Example 4.2: Gaussian polynomial RKHS
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 k∈Nk\in\mathbb Nk∈N, and let Z0,…,Zk:Ω→RZ_0,\ldots,Z_k:\Omega\to\mathbb RZ0​,…,Zk​:Ω→R be jointly independent measurable random variables, each with law N(0,1)N(0,1)N(0,1) under PPP. For a=(a0,…,ak)∈Rk+1a=(a_0,\ldots,a_k)\in\mathbb R^{k+1}a=(a0​,…,ak​)∈Rk+1, define the polynomial pa(x)=∑i=0kaixi/i!p_a(x)=\sum_{i=0}^k a_ix^i/i!pa​(x)=∑i=0k​ai​xi/i!, and define Xt(o)=∑i=0kZi(o)ti/i!X_t(o)=\sum_{i=0}^k Z_i(o)t^i/i!Xt​(o)=∑i=0k​Zi​(o)ti/i! for t∈[0,1]t\in[0,1]t∈[0,1]. Let CXC_XCX​ be the closed real linear span in L2(P)L^2(P)L2(P) of the L2L^2L2 classes of XtX_tXt​, with a coordinate replaced by zero if it does not belong to L2(P)L^2(P)L2(P), and put JX(h)(t)=∫ΩXt(o)h(o) dP(o)J_X(h)(t)=\int_\Omega X_t(o)h(o)\,dP(o)JX​(h)(t)=∫Ω​Xt​(o)h(o)dP(o). For each function f:[0,1]→Rf:[0,1]\to\mathbb Rf:[0,1]→R, let LX(f)L_X(f)LX​(f) be the element selected by the definition among h∈CXh\in C_Xh∈CX​ with JX(h)=fJ_X(h)=fJX​(h)=f, or zero if there is no such element. Then

{JX(h):h∈CX}={pa∣[0,1]:a∈Rk+1}.\{J_X(h):h\in C_X\}=\{p_a|_{[0,1]}:a\in\mathbb R^{k+1}\}.{JX​(h):h∈CX​}={pa​∣[0,1]​:a∈Rk+1}.

For every a,b∈Rk+1a,b\in\mathbb R^{k+1}a,b∈Rk+1,

⟨LX(pa∣[0,1]),LX(pb∣[0,1])⟩L2(P)=∑i=0kaibi,∥LX(pa∣[0,1])∥L2(P)2=∑i=0kai2.\left\langle L_X(p_a|_{[0,1]}),L_X(p_b|_{[0,1]})\right\rangle_{L^2(P)} =\sum_{i=0}^k a_ib_i, \qquad \left\|L_X(p_a|_{[0,1]})\right\|_{L^2(P)}^2 =\sum_{i=0}^k a_i^2.⟨LX​(pa​∣[0,1]​),LX​(pb​∣[0,1]​)⟩L2(P)​=i=0∑k​ai​bi​,​LX​(pa​∣[0,1]​)​L2(P)2​=i=0∑k​ai2​.

Furthermore, for every aaa and every i∈{0,…,k}i\in\{0,\ldots,k\}i∈{0,…,k}, the iii-fold derivative of the real polynomial pap_apa​, evaluated at zero, is aia_iai​. This includes k=0k=0k=0, and the zeroth derivative is the polynomial itself.

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