Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5: universal approximation theorem for operators (TW activation)

Proved
DeepONetUniversal.universal_approximation_operator_tw

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

arzela-ascolideeponetneural-operatorsoperator-learninguniversal-approximation

Let σ\sigmaσ be a Tauber–Wiener function, XXX a Banach space, K1⊂XK_1\subset XK1​⊂X a nonempty compact set, K2⊂RdK_2\subset\mathbb{R}^dK2​⊂Rd compact, V⊂C(K1)V\subset C(K_1)V⊂C(K1​) compact, and G:V→C(K2)G:V\to C(K_2)G:V→C(K2​) a (possibly nonlinear) continuous operator. Then for every ε>0\varepsilon>0ε>0 there are positive integers n,p,mn,p,mn,p,m, constants cik,ξijk,θik,ζk∈Rc_i^k,\xi_{ij}^k,\theta_i^k,\zeta_k\in\mathbb{R}cik​,ξijk​,θik​,ζk​∈R, wk∈Rdw_k\in\mathbb{R}^dwk​∈Rd and sensors xj∈K1x_j\in K_1xj​∈K1​ (i≤ni\le ni≤n, k≤pk\le pk≤p, j≤mj\le mj≤m) such that

∣G(u)(y)−∑k=1p∑i=1ncik σ(∑j=1mξijku(xj)+θik)σ(wk⋅y+ζk)∣<ε\Big|G(u)(y)-\sum_{k=1}^p\sum_{i=1}^nc_i^k\,\sigma\Big(\sum_{j=1}^m\xi_{ij}^ku(x_j)+\theta_i^k\Big)\sigma(w_k\cdot y+\zeta_k)\Big|<\varepsilon​G(u)(y)−k=1∑p​i=1∑n​cik​σ(j=1∑m​ξijk​u(xj​)+θik​)σ(wk​⋅y+ζk​)​<ε

for all u∈Vu\in Vu∈V and y∈K2y\in K_2y∈K2​.

Formalization Note GGG is a map on all of C(K1)C(K_1)C(K1​) that is continuous on VVV; its values off VVV play no role. The hypothesis K1≠∅K_1\neq\emptysetK1​=∅ is added: the conclusion asks for m≥1m\ge1m≥1 sensors in K1K_1K1​, which is impossible when K1K_1K1​ is empty.

Preamble
import Mathlib
import Definitions.Def_DeepONetUniversal_Basic

open MeasureTheory Filter Topology
Formal statement
namespace DeepONetUniversal

theorem universal_approximation_operator_tw {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X]
    [CompleteSpace X] {d : ℕ} (σ : ℝ → ℝ) (hσ : IsTauberWiener σ)
    (K₁ : Set X) (hK₁ : IsCompact K₁) (hK₁ne : K₁.Nonempty)
    (K₂ : Set (Fin d → ℝ)) (hK₂ : IsCompact K₂)
    (V : Set C(K₁, ℝ)) (hV : IsCompact V) (G : C(K₁, ℝ) → C(K₂, ℝ)) (hG : ContinuousOn G V)
    (ε : ℝ) (hε : 0 < ε) :
    ∃ n p m : ℕ, 0 < n ∧ 0 < p ∧ 0 < m ∧
      ∃ (c : Fin p → Fin n → ℝ) (ξ : Fin p → Fin n → Fin m → ℝ) (θ : Fin p → Fin n → ℝ)
        (ζ : Fin p → ℝ) (w : Fin p → Fin d → ℝ) (x : Fin m → K₁),
        ∀ u ∈ V, ∀ y : K₂, |G u y - operatorNet σ c ξ θ w ζ (fun j => u (x j)) y| < ε := by sorry

end DeepONetUniversal
Source
Lu, Jin and Karniadakis, DeepONet: Learning nonlinear operators for identifying differential equations based on the universal approximation theorem of operators, arXiv:1910.03193v3 (2019), Appendix A, Theorem 5, p. 19
Read-back

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

Let XXX be a real Banach space (a complete real normed vector space), and let d≥0d \ge 0d≥0 be a natural number, with Rd\mathbb{R}^dRd the space of real ddd-tuples. When d=0d = 0d=0, R0\mathbb{R}^0R0 is a single point. The hypotheses are:

  • σ:R→R\sigma : \mathbb{R} \to \mathbb{R}σ:R→R is an arbitrary function that is Tauber–Wiener in the following sense. For all reals a,ba, ba,b, every function fff continuous on [a,b][a,b][a,b], and every ε′>0\varepsilon' > 0ε′>0, there exist N∈NN \in \mathbb{N}N∈N (possibly N=0N = 0N=0) and reals ci,λi,θic_i, \lambda_i, \theta_ici​,λi​,θi​ (i=1,…,Ni = 1,\dots,Ni=1,…,N) such that
∣f(x)−∑i=1Nci σ(λix+θi)∣<ε′for all x∈[a,b].\Big| f(x) - \sum_{i=1}^{N} c_i\, \sigma(\lambda_i x + \theta_i) \Big| < \varepsilon' \quad \text{for all } x \in [a,b].​f(x)−i=1∑N​ci​σ(λi​x+θi​)​<ε′for all x∈[a,b].

No continuity, measurability or boundedness of σ\sigmaσ is assumed beyond this. The condition is vacuous for intervals with a>ba > ba>b.

  • K1⊆XK_1 \subseteq XK1​⊆X is compact and nonempty.
  • K2⊆RdK_2 \subseteq \mathbb{R}^dK2​⊆Rd is compact. It may be empty.
  • VVV is a compact subset of C(K1,R)C(K_1, \mathbb{R})C(K1​,R). This space is given its standard topology, the compact-open topology, which here coincides with the topology of uniform convergence on K1K_1K1​.
  • G:C(K1,R)→C(K2,R)G : C(K_1,\mathbb{R}) \to C(K_2,\mathbb{R})G:C(K1​,R)→C(K2​,R) is an arbitrary map that is continuous on VVV. This is continuity of the restriction G∣VG|_VG∣V​ for the subspace topology; GGG is unconstrained off VVV. The target space C(K2,R)C(K_2,\mathbb{R})C(K2​,R) carries the same kind of topology.
  • ε>0\varepsilon > 0ε>0 is a real number.

The theorem asserts that there exist natural numbers n≥1n \ge 1n≥1, p≥1p \ge 1p≥1, m≥1m \ge 1m≥1 together with the following parameters:

  • real coefficients cikc^k_icik​, ξijk\xi^k_{ij}ξijk​, θik\theta^k_iθik​ and ζk\zeta_kζk​, for k=1,…,pk = 1,\dots,pk=1,…,p, i=1,…,ni = 1,\dots,ni=1,…,n, j=1,…,mj = 1,\dots,mj=1,…,m;
  • vectors wk∈Rdw_k \in \mathbb{R}^dwk​∈Rd, for k=1,…,pk = 1,\dots,pk=1,…,p;
  • sensor points x1,…,xm∈K1x_1, \dots, x_m \in K_1x1​,…,xm​∈K1​. These are chosen freely in K1K_1K1​, need not be distinct, and are not required to have any particular arrangement.

These satisfy, for every u∈Vu \in Vu∈V and every y∈K2y \in K_2y∈K2​,

∣G(u)(y)  −  ∑k=1p[∑i=1ncik σ(∑j=1mξijk u(xj)+θik)] σ(wk⋅y+ζk)∣<ε.\Big| G(u)(y) \;-\; \sum_{k=1}^{p} \Big[ \sum_{i=1}^{n} c^k_i\, \sigma\Big( \sum_{j=1}^{m} \xi^k_{ij}\, u(x_j) + \theta^k_i \Big) \Big]\, \sigma\big( w_k \cdot y + \zeta_k \big) \Big| < \varepsilon .​G(u)(y)−k=1∑p​[i=1∑n​cik​σ(j=1∑m​ξijk​u(xj​)+θik​)]σ(wk​⋅y+ζk​)​<ε.

Here wk⋅y=∑l=1d(wk)l ylw_k \cdot y = \sum_{l=1}^{d} (w_k)_l\, y_lwk​⋅y=∑l=1d​(wk​)l​yl​ is the ordinary dot product. The same function σ\sigmaσ is used in both the inner ("branch") sums and the outer ("trunk") factors. The bracketed term is the kkk-th branch network evaluated at the sensor values (u(x1),…,u(xm))(u(x_1),\dots,u(x_m))(u(x1​),…,u(xm​)), and σ(wk⋅y+ζk)\sigma(w_k \cdot y + \zeta_k)σ(wk​⋅y+ζk​) is the kkk-th trunk unit.

All of n,p,mn, p, mn,p,m, the coefficients, and the sensor points may depend on ε\varepsilonε, σ\sigmaσ, K1K_1K1​, K2K_2K2​, VVV and GGG. They are fixed before uuu and yyy are chosen, so a single network works uniformly over all of V×K2V \times K_2V×K2​, with strict inequality <ε< \varepsilon<ε.

Some edge cases are allowed by the hypotheses:

  • If VVV is empty or K2K_2K2​ is empty, the conclusion holds trivially. The only remaining requirement is that some point of K1K_1K1​ exists to serve as a sensor, and the nonemptiness hypothesis guarantees this.
  • If d=0d = 0d=0, each trunk factor reduces to the constant σ(ζk)\sigma(\zeta_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