Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3.15: reconstruction error of approximate eigenfunctions

Proved
DeepONetError.reconstruction_error_trunk_approx

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

covariance-operatordeeponeterror-decompositionoperator-learningprincipal-component-analysis

Let ν∈P2(L2(U))\nu\in\mathcal{P}_2(L^2(U))ν∈P2​(L2(U)), and write its covariance operator as Γν=∑k≥1λk ϕk⊗ϕk\Gamma_\nu=\sum_{k\ge1}\lambda_k\,\phi_k\otimes\phi_kΓν​=∑k≥1​λk​ϕk​⊗ϕk​ with λ1≥λ2≥⋯\lambda_1\ge\lambda_2\ge\cdotsλ1​≥λ2​≥⋯ and orthonormal ϕk\phi_kϕk​. Let τ^0=Eν[v]\hat\tau_0=\mathbb{E}_\nu[v]τ^0​=Eν​[v] and τ^k=ϕk\hat\tau_k=\phi_kτ^k​=ϕk​ for k=1,…,pk=1,\dots,pk=1,…,p. Let τ0,…,τp∈L2(U)\tau_0,\dots,\tau_p\in L^2(U)τ0​,…,τp​∈L2(U) with τ1,…,τp\tau_1,\dots,\tau_pτ1​,…,τp​ linearly independent, let R(α)=τ0+∑kαkτk\mathcal{R}(\alpha)=\tau_0+\sum_k\alpha_k\tau_kR(α)=τ0​+∑k​αk​τk​, and let P\mathcal{P}P be its optimal projection (3.19). Then

E^R≤1+Tr(Γν) max⁡k=0,…,p∥τ^k−τk∥L2+∑k>pλk,Tr(Γν)=∑kλk.\widehat{\mathcal{E}}_{\mathcal{R}}\le\sqrt{1+\mathrm{Tr}(\Gamma_\nu)}\,\max_{k=0,\dots,p}\|\hat\tau_k-\tau_k\|_{L^2}+\sqrt{\sum_{k>p}\lambda_k},\qquad\mathrm{Tr}(\Gamma_\nu)=\sum_k\lambda_k.ER​≤1+Tr(Γν​)​k=0,…,pmax​∥τ^k​−τk​∥L2​+k>p∑​λk​​,Tr(Γν​)=k∑​λk​.

Trunk networks that approximate the mean and the top eigenfunctions of the covariance operator therefore achieve a nearly optimal reconstruction error.

Formalization Note The trunk functions are arbitrary elements of L2(U)L^2(U)L2(U), so trunk networks are a special case. Linear independence of τ1,…,τp\tau_1,\dots,\tau_pτ1​,…,τp​ is required for the projection (3.19) to be defined, and the paper presupposes it.

Preamble
import Mathlib
import Definitions.Def_DeepONetError_Basic

open MeasureTheory
Formal statement
namespace DeepONetError

theorem reconstruction_error_trunk_approx {n p : ℕ} {U : Set (Fin n → ℝ)}
    [MeasurableSpace (L2 U)] [BorelSpace (L2 U)]
    (nu : Measure (L2 U)) (hnu : IsP2 nu)
    (lam : ℕ → ℝ) (phi : ℕ → L2 U) (hspec : IsSpectralDecomp (covOp nu) lam phi)
    (tau : Fin (p + 1) → L2 U) (htau : LinearIndependent ℝ (fun k : Fin p => tau k.succ)) :
    recErr nu (trunkRec tau) (optProj tau) ≤
      (1 + ∑' k, ENNReal.ofReal (lam k)) ^ ((1 : ℝ) / 2) *
          (⨆ k : Fin (p + 1), ‖optTrunk nu phi k - tau k‖ₑ) +
        (∑' k, ENNReal.ofReal (lam (k + p))) ^ ((1 : ℝ) / 2) := by sorry

end DeepONetError
Source
Lanthaler, Mishra and Karniadakis, Error estimates for DeepOnets: A deep learning framework in infinite dimensions, arXiv:2102.09618v3 (2022), Section 3.4, Proposition 3.15, eq. (3.25), p. 21; proof in Appendix C.5, p. 86
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let nnn and ppp be natural numbers. Let U⊆RnU \subseteq \mathbb{R}^nU⊆Rn be an arbitrary set; it is not assumed bounded, measurable or of positive measure. Write L2(U)L^2(U)L2(U) for the real Hilbert space of (classes of) square-integrable real functions on Rn\mathbb{R}^nRn with respect to Lebesgue measure restricted to UUU. It carries an inner product ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle⟨⋅,⋅⟩ and norm ∥⋅∥\|\cdot\|∥⋅∥, and is equipped with its Borel σ\sigmaσ-algebra.

Hypotheses.

  • The measure ν\nuν. ν\nuν is a Borel probability measure on L2(U)L^2(U)L2(U) with finite second moment, ∫∥v∥2 dν(v)<∞\int \|v\|^2\,d\nu(v) < \infty∫∥v∥2dν(v)<∞.
  • Mean and covariance. Let mν=∫v dν(v)m_\nu = \int v\,d\nu(v)mν​=∫vdν(v) be the Bochner mean of ν\nuν. The integral convention returns 000 for a non-integrable integrand. Let Γ\GammaΓ be the covariance operator
Γw=∫⟨v−mν,w⟩ (v−mν) dν(v).\Gamma w = \int \langle v - m_\nu, w\rangle\,(v - m_\nu)\,d\nu(v).Γw=∫⟨v−mν​,w⟩(v−mν​)dν(v).
  • Spectral decomposition of Γ\GammaΓ. (λk)k≥0(\lambda_k)_{k \ge 0}(λk​)k≥0​ is a real sequence and (φk)k≥0(\varphi_k)_{k\ge 0}(φk​)k≥0​ is a sequence in L2(U)L^2(U)L2(U) such that:

    • (φk)(\varphi_k)(φk​) is orthonormal;
    • λ0≥λ1≥λ2≥⋯\lambda_0 \ge \lambda_1 \ge \lambda_2 \ge \cdotsλ0​≥λ1​≥λ2​≥⋯ (non-increasing; the λk\lambda_kλk​ are not assumed nonnegative);
    • for every w∈L2(U)w \in L^2(U)w∈L2(U), the series ∑k≥0λk⟨φk,w⟩ φk\sum_{k\ge 0} \lambda_k \langle \varphi_k, w\rangle\,\varphi_k∑k≥0​λk​⟨φk​,w⟩φk​ converges unconditionally to Γw\Gamma wΓw.

    Since (φk)(\varphi_k)(φk​) is an infinite orthonormal sequence, this hypothesis can only hold if L2(U)L^2(U)L2(U) is infinite-dimensional. It is therefore unsatisfiable when UUU is Lebesgue-null, and also when n=0n = 0n=0, where R0\mathbb{R}^0R0 is a single point and L2(U)L^2(U)L2(U) has dimension at most 111.

  • The functions τk\tau_kτk​. τ0,τ1,…,τp\tau_0, \tau_1, \dots, \tau_pτ0​,τ1​,…,τp​ are arbitrary elements of L2(U)L^2(U)L2(U), with τ1,…,τp\tau_1, \dots, \tau_pτ1​,…,τp​ linearly independent. No other relation to ν\nuν, φ\varphiφ or any network is assumed. When p=0p = 0p=0 the independence condition is vacuous.

Objects in the conclusion.

  • Reconstructor. Rτ:Rp→L2(U)R_\tau : \mathbb{R}^p \to L^2(U)Rτ​:Rp→L2(U) is defined by Rτ(α)=τ0+∑k=1pαkτkR_\tau(\alpha) = \tau_0 + \sum_{k=1}^p \alpha_k \tau_kRτ​(α)=τ0​+∑k=1p​αk​τk​.
  • Gram matrix and dual basis. Let G=(⟨τi,τj⟩)i,j=1pG = (\langle \tau_i, \tau_j\rangle)_{i,j=1}^pG=(⟨τi​,τj​⟩)i,j=1p​ be the Gram matrix. It is invertible by linear independence; the matrix-inverse convention would otherwise give 000. Define τk∗=∑j=1p(G−1)kj τj\tau_k^* = \sum_{j=1}^p (G^{-1})_{kj}\,\tau_jτk∗​=∑j=1p​(G−1)kj​τj​.
  • Projector. Pτ:L2(U)→RpP_\tau : L^2(U) \to \mathbb{R}^pPτ​:L2(U)→Rp is defined by
Pτ(u)=(⟨u−τ0,τ1∗⟩,…,⟨u−τ0,τp∗⟩).P_\tau(u) = \big(\langle u - \tau_0, \tau_1^*\rangle, \dots, \langle u - \tau_0, \tau_p^*\rangle\big).Pτ​(u)=(⟨u−τ0​,τ1∗​⟩,…,⟨u−τ0​,τp∗​⟩).
  • Reference functions. Set τ^0=mν\hat\tau_0 = m_\nuτ^0​=mν​ and τ^k=φk−1\hat\tau_k = \varphi_{k-1}τ^k​=φk−1​ for k=1,…,pk = 1, \dots, pk=1,…,p.

Conclusion. In the extended nonnegative reals [0,∞][0,\infty][0,∞], the following holds:

(∫∥Rτ(Pτ(v))−v∥2 dν(v))1/2  ≤  (1+∑k=0∞max⁡(λk,0))1/2⋅max⁡0≤k≤p∥τ^k−τk∥  +  (∑k=0∞max⁡(λk+p,0))1/2.\left(\int \big\|R_\tau(P_\tau(v)) - v\big\|^2\,d\nu(v)\right)^{1/2} \;\le\; \Big(1 + \sum_{k=0}^{\infty} \max(\lambda_k, 0)\Big)^{1/2} \cdot \max_{0 \le k \le p} \|\hat\tau_k - \tau_k\| \;+\; \Big(\sum_{k=0}^{\infty} \max(\lambda_{k+p}, 0)\Big)^{1/2}.(∫​Rτ​(Pτ​(v))−v​2dν(v))1/2≤(1+k=0∑∞​max(λk​,0))1/2⋅0≤k≤pmax​∥τ^k​−τk​∥+(k=0∑∞​max(λk+p​,0))1/2.

The integral on the left is a Lebesgue integral of a [0,∞][0,\infty][0,∞]-valued function. Negative eigenvalues are replaced by 000 in both series. Each series may equal +∞+\infty+∞; in that case its square root is +∞+\infty+∞, and the convention ∞⋅0=0\infty \cdot 0 = 0∞⋅0=0 applies to the product.

The second series is the tail λp,λp+1,…\lambda_p, \lambda_{p+1}, \dotsλp​,λp+1​,…, omitting λ0,…,λp−1\lambda_0, \dots, \lambda_{p-1}λ0​,…,λp−1​. The maximum ranges over the p+1p+1p+1 indices k=0,…,pk = 0, \dots, pk=0,…,p.

In the case p=0p = 0p=0:

  • RτR_\tauRτ​ is the constant τ0\tau_0τ0​;
  • the maximum is just ∥mν−τ0∥\|m_\nu - \tau_0\|∥mν​−τ0​∥;
  • the tail series runs over all the λk\lambda_kλk​.
Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 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