Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.3 (as proved): error decomposition of a DeepONet

Proved
DeepONetError.error_decomposition

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

covariance-operatordeeponeterror-decompositionoperator-learningprincipal-component-analysis

Consider the setting of Definition 2.1. Let α∈(0,1]\alpha\in(0,1]α∈(0,1], and let Lipα(G)∈[0,∞]\mathrm{Lip}_\alpha(\mathcal{G})\in[0,\infty]Lipα​(G)∈[0,∞] be the α\alphaα-Hölder constant of G\mathcal{G}G on the set AAA of continuous inputs (no finiteness is assumed; if it is ∞\infty∞ the bound holds under the conventions of [0,∞][0,\infty][0,∞]). Let the following maps be given, all Borel measurable:

  1. an encoder E:X→Rm\mathcal{E}:X\to\mathbb{R}^mE:X→Rm;
  2. an approximator A:Rm→Rp\mathcal{A}:\mathbb{R}^m\to\mathbb{R}^pA:Rm→Rp;
  3. a decoder D:Rm→X\mathcal{D}:\mathbb{R}^m\to XD:Rm→X with D(E(u))∈A\mathcal{D}(\mathcal{E}(u))\in AD(E(u))∈A for every u∈Au\in Au∈A;
  4. a projector P:L2(U)→Rp\mathcal{P}:L^2(U)\to\mathbb{R}^pP:L2(U)→Rp.

Let R(α)=τ0+∑k=1pαkτk\mathcal{R}(\alpha)=\tau_0+\sum_{k=1}^p\alpha_k\tau_kR(α)=τ0​+∑k=1p​αk​τk​ be a reconstruction with τ0,…,τp∈L2(U)\tau_0,\dots,\tau_p\in L^2(U)τ0​,…,τp​∈L2(U), and Rm,Rp\mathbb{R}^m,\mathbb{R}^pRm,Rp carry the Euclidean norm. Then the DeepONet N=R∘A∘E\mathcal{N}=\mathcal{R}\circ\mathcal{A}\circ\mathcal{E}N=R∘A∘E satisfies

E^≤Lipα(G) Lip(R∘P) (E^E)α+Lip(R) E^A+E^R,\widehat{\mathcal{E}}\le\mathrm{Lip}_\alpha(\mathcal{G})\,\mathrm{Lip}(\mathcal{R}\circ\mathcal{P})\,(\widehat{\mathcal{E}}_{\mathcal{E}})^\alpha+\mathrm{Lip}(\mathcal{R})\,\widehat{\mathcal{E}}_{\mathcal{A}}+\widehat{\mathcal{E}}_{\mathcal{R}},E≤Lipα​(G)Lip(R∘P)(EE​)α+Lip(R)EA​+ER​,

where E^\widehat{\mathcal{E}}E is the total error (2.11), and E^E\widehat{\mathcal{E}}_{\mathcal{E}}EE​, E^A\widehat{\mathcal{E}}_{\mathcal{A}}EA​ and E^R\widehat{\mathcal{E}}_{\mathcal{R}}ER​ are the encoding, approximation and reconstruction errors (3.1)-(3.3). Here E^R\widehat{\mathcal{E}}_{\mathcal{R}}ER​ is taken with respect to G#μ\mathcal{G}_\#\muG#​μ, and Lip(R∘P)\mathrm{Lip}(\mathcal{R}\circ\mathcal{P})Lip(R∘P) is the Lipschitz constant on L2(U)L^2(U)L2(U).

This is the paper's central reduction. It bounds the DeepONet error by an encoding error that depends only on μ\muμ, a reconstruction error that depends only on G#μ\mathcal{G}_\#\muG#​μ, and a finite-dimensional neural network approximation error.

Formalization Note The paper does not state the hypothesis D(E(u))∈A\mathcal{D}(\mathcal{E}(u))\in AD(E(u))∈A for u∈Au\in Au∈A, but its proof (Appendix C.2) uses it: it applies the Hölder bound on AAA to the pair (DEu,u)(\mathcal{D}\mathcal{E}u,u)(DEu,u). Without it the bound fails (see REPORT). Encoder and approximator are arbitrary Borel maps, as the paper's wording "arbitrary encoder ... approximator" and its proof allow, so the point-evaluation encoder and ReLU approximators are special cases. All quantities take values in [0,∞][0,\infty][0,∞], with 0⋅∞=00\cdot\infty=00⋅∞=0.

Preamble
import Mathlib
import Definitions.Def_DeepONetError_Basic

open MeasureTheory
Formal statement
namespace DeepONetError

theorem error_decomposition {d n m p : ℕ} {Dset : Set (Fin d → ℝ)} {U : Set (Fin n → ℝ)}
    {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [CompleteSpace X]
    [TopologicalSpace.SeparableSpace X] [MeasurableSpace X] [BorelSpace X]
    [MeasurableSpace (L2 U)] [BorelSpace (L2 U)]
    (iota : X →L[ℝ] L2 Dset) (mu : Measure X) (A : Set X) (G : X → L2 U)
    (hdata : IsDeepONetData Dset U iota mu A G) (alpha : ℝ) (halpha0 : 0 < alpha)
    (halpha1 : alpha ≤ 1)
    (E : X → EuclideanSpace ℝ (Fin m)) (hE : Measurable E)
    (Apx : EuclideanSpace ℝ (Fin m) → EuclideanSpace ℝ (Fin p)) (hApx : Measurable Apx)
    (tau : Fin (p + 1) → L2 U)
    (Dec : EuclideanSpace ℝ (Fin m) → X) (hDec : Measurable Dec) (hDecA : ∀ u ∈ A, Dec (E u) ∈ A)
    (Proj : L2 U → EuclideanSpace ℝ (Fin p)) (hProj : Measurable Proj) :
    totalErr mu G (fun u => trunkRec tau (Apx (E u))) ≤
      holderConst alpha G A * lipConst (fun v => trunkRec tau (Proj v)) * encErr mu E Dec ^ alpha +
        lipConst (trunkRec tau) * approxErr mu G E Apx Dec Proj +
        recErr (mu.map G) (trunkRec tau) Proj := 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.2.1, Theorem 3.3, eq. (3.4), p. 11; errors (2.11), (3.1)-(3.3), p. 6 and p. 11; proof in Appendix C.2, pp. 77-78
Read-back

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

Setting. Fix natural numbers d,n,m,pd, n, m, pd,n,m,p, which may be 000. Let D⊆RdD \subseteq \mathbb{R}^dD⊆Rd and U⊆RnU \subseteq \mathbb{R}^nU⊆Rn be sets. Write L2(D)L^2(D)L2(D) and L2(U)L^2(U)L2(U) for the real spaces of square-integrable functions on DDD and UUU with respect to Lebesgue measure, taken modulo almost-everywhere equality. Write Rm,Rp\mathbb{R}^m, \mathbb{R}^pRm,Rp for Euclidean space with the usual ℓ2\ell^2ℓ2 norm.

Let XXX be a real Banach space (normed and complete) that is separable and carries its Borel σ\sigmaσ-algebra. Equip L2(U)L^2(U)L2(U) with some σ\sigmaσ-algebra, which is assumed to be its Borel σ\sigmaσ-algebra. The data are:

  • ι:X→L2(D)\iota : X \to L^2(D)ι:X→L2(D), a continuous linear map;
  • μ\muμ, a measure on XXX;
  • A⊆XA \subseteq XA⊆X, a set;
  • G:X→L2(U)G : X \to L^2(U)G:X→L2(U), a map.

Hypotheses on the data. All of the following are assumed:

  • DDD and UUU are bounded and Lebesgue measurable.
  • ι\iotaι is injective.
  • μ\muμ is a probability measure with ∫X∥u∥X2 dμ(u)<∞\int_X \|u\|_X^2 \, d\mu(u) < \infty∫X​∥u∥X2​dμ(u)<∞.
  • AAA is measurable and μ(A)=1\mu(A) = 1μ(A)=1.
  • For every u∈Au \in Au∈A, the class ι(u)∈L2(D)\iota(u) \in L^2(D)ι(u)∈L2(D) agrees Lebesgue-a.e. on DDD with some function f:Rd→Rf : \mathbb{R}^d \to \mathbb{R}f:Rd→R that is continuous on DDD.
  • GGG is measurable and ∫X∥G(u)∥L2(U)2 dμ(u)<∞\int_X \|G(u)\|_{L^2(U)}^2 \, d\mu(u) < \infty∫X​∥G(u)∥L2(U)2​dμ(u)<∞.

The map ι\iotaι and the continuity condition appear only in these hypotheses. They do not appear in the conclusion.

Further hypotheses.

  • A real number α\alphaα with 0<α≤10 < \alpha \le 10<α≤1.
  • An arbitrary measurable "encoder" E:X→RmE : X \to \mathbb{R}^mE:X→Rm.
  • An arbitrary measurable map A:Rm→Rp\mathcal{A} : \mathbb{R}^m \to \mathbb{R}^pA:Rm→Rp. It is not required to be a neural network.
  • An arbitrary family τ0,…,τp∈L2(U)\tau_0, \dots, \tau_p \in L^2(U)τ0​,…,τp​∈L2(U). These are not required to come from a network.
  • An arbitrary measurable "decoder" D:Rm→X\mathcal{D} : \mathbb{R}^m \to XD:Rm→X with D(E(u))∈A\mathcal{D}(E(u)) \in AD(E(u))∈A for every u∈Au \in Au∈A.
  • An arbitrary measurable "projector" P:L2(U)→RpP : L^2(U) \to \mathbb{R}^pP:L2(U)→Rp. It is not required to be linear or related to the τk\tau_kτk​.

Derived maps. The affine reconstructor R:Rp→L2(U)R : \mathbb{R}^p \to L^2(U)R:Rp→L2(U) is

R(a)=τ0+∑k=1pakτk.R(a) = \tau_0 + \sum_{k=1}^{p} a_k \tau_k .R(a)=τ0​+k=1∑p​ak​τk​.

When p=0p = 0p=0, RRR is the constant τ0\tau_0τ0​. The approximating operator is N(u)=R(A(E(u)))\mathcal{N}(u) = R(\mathcal{A}(E(u)))N(u)=R(A(E(u))).

Error quantities. All of these are valued in [0,∞][0, \infty][0,∞], with all integrals being integrals of nonnegative extended-real functions:

E=(∫X∥G(u)−N(u)∥L2(U)2 dμ(u))1/2,Eenc=(∫X∥D(E(u))−u∥X2 dμ(u))1/2,\mathcal{E} = \Big(\int_X \|G(u) - \mathcal{N}(u)\|_{L^2(U)}^2 \, d\mu(u)\Big)^{1/2}, \qquad \mathcal{E}_{\mathrm{enc}} = \Big(\int_X \|\mathcal{D}(E(u)) - u\|_X^2 \, d\mu(u)\Big)^{1/2},E=(∫X​∥G(u)−N(u)∥L2(U)2​dμ(u))1/2,Eenc​=(∫X​∥D(E(u))−u∥X2​dμ(u))1/2, Eapx=(∫Rm∥A(y)−P(G(D(y)))∥ℓ22 d(E#μ)(y))1/2,Erec=(∫L2(U)∥R(P(v))−v∥L2(U)2 d(G#μ)(v))1/2,\mathcal{E}_{\mathrm{apx}} = \Big(\int_{\mathbb{R}^m} \|\mathcal{A}(y) - P(G(\mathcal{D}(y)))\|_{\ell^2}^2 \, d(E_\#\mu)(y)\Big)^{1/2}, \qquad \mathcal{E}_{\mathrm{rec}} = \Big(\int_{L^2(U)} \|R(P(v)) - v\|_{L^2(U)}^2 \, d(G_\#\mu)(v)\Big)^{1/2},Eapx​=(∫Rm​∥A(y)−P(G(D(y)))∥ℓ22​d(E#​μ)(y))1/2,Erec​=(∫L2(U)​∥R(P(v))−v∥L2(U)2​d(G#​μ)(v))1/2,

Here E#μE_\#\muE#​μ and G#μG_\#\muG#​μ are the pushforward measures.

Constants. These are also valued in [0,∞][0, \infty][0,∞]:

  • The Hölder constant of GGG on AAA:
Lipα(G;A)=sup⁡u,u′∈A∥G(u)−G(u′)∥L2(U)∥u−u′∥Xα.\mathrm{Lip}_\alpha(G; A) = \sup_{u, u' \in A} \frac{\|G(u) - G(u')\|_{L^2(U)}}{\|u - u'\|_X^{\alpha}} .Lipα​(G;A)=u,u′∈Asup​∥u−u′∥Xα​∥G(u)−G(u′)∥L2(U)​​.
  • The global Lipschitz constant of R∘PR \circ PR∘P, with the supremum taken over all pairs v,v′∈L2(U)v, v' \in L^2(U)v,v′∈L2(U), not only over the range of GGG:
Lip(R∘P)=sup⁡v,v′∥R(P(v))−R(P(v′))∥L2(U)∥v−v′∥L2(U).\mathrm{Lip}(R \circ P) = \sup_{v, v'} \frac{\|R(P(v)) - R(P(v'))\|_{L^2(U)}}{\|v - v'\|_{L^2(U)}} .Lip(R∘P)=v,v′sup​∥v−v′∥L2(U)​∥R(P(v))−R(P(v′))∥L2(U)​​.
  • The Lipschitz constant Lip(R)\mathrm{Lip}(R)Lip(R) of RRR on all of Rp\mathbb{R}^pRp.

In each supremum, a pair with equal arguments contributes 000. When p=0p = 0p=0, Lip(R)=0\mathrm{Lip}(R) = 0Lip(R)=0.

Conclusion. The theorem asserts the inequality in [0,∞][0, \infty][0,∞]

E  ≤  Lipα(G;A)⋅Lip(R∘P)⋅Eenc α  +  Lip(R)⋅Eapx  +  Erec.\mathcal{E} \;\le\; \mathrm{Lip}_\alpha(G; A) \cdot \mathrm{Lip}(R \circ P) \cdot \mathcal{E}_{\mathrm{enc}}^{\,\alpha} \;+\; \mathrm{Lip}(R) \cdot \mathcal{E}_{\mathrm{apx}} \;+\; \mathcal{E}_{\mathrm{rec}} .E≤Lipα​(G;A)⋅Lip(R∘P)⋅Eencα​+Lip(R)⋅Eapx​+Erec​.

Extended arithmetic applies:

  • 0⋅∞=00 \cdot \infty = 00⋅∞=0. For example, if Eenc=0\mathcal{E}_{\mathrm{enc}} = 0Eenc​=0, the first term is 000 even when the Hölder or Lipschitz constant is infinite.
  • ∞α=∞\infty^{\alpha} = \infty∞α=∞.
  • Any infinite term makes the right-hand side ∞\infty∞, and the inequality then holds trivially.
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