Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.5 (as proved): universal approximation by Fourier neural operators

Proved
FourierNeuralOperator.fno_universal_approximation

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

fourier-neural-operatoroperator-learningpseudo-spectral-methodssobolev-spacesuniversal-approximation

Let the activation σ\sigmaσ satisfy Assumption 2.4, and let s,s′≥0s,s'\ge0s,s′≥0. Assume in addition that σ∈Cm\sigma\in C^mσ∈Cm for some integer m>s′m>s'm>s′. Let G:Hs(Td;Rda)→Hs′(Td;Rdu)G:H^s(\mathbb T^d;\mathbb R^{d_a})\to H^{s'}(\mathbb T^d;\mathbb R^{d_u})G:Hs(Td;Rda​)→Hs′(Td;Rdu​) be a continuous operator and let K⊂Hs(Td;Rda)K\subset H^s(\mathbb T^d;\mathbb R^{d_a})K⊂Hs(Td;Rda​) be compact. Then for every ε>0\varepsilon>0ε>0 there is an FNO N\mathcal NN of the form (2.6), continuous as an operator Hs→Hs′H^s\to H^{s'}Hs→Hs′, such that

sup⁡a∈K∥G(a)−N(a)∥Hs′≤ε.\sup_{a\in K}\|G(a)-\mathcal N(a)\|_{H^{s'}}\le\varepsilon.a∈Ksup​∥G(a)−N(a)∥Hs′​≤ε.

This is the paper's main result. Fourier neural operators approximate every continuous operator between Sobolev spaces on the torus, uniformly on compact sets.

Formalization Note The hypothesis σ∈Cm\sigma\in C^mσ∈Cm with m>s′m>s'm>s′ is not in the printed theorem, which assumes only Assumption 2.4 (σ∈C3\sigma\in C^3σ∈C3). The proof of the case s′>0s'>0s′>0 (Lemma 2.6, via Lemma D.1) uses it. It is automatic for s′<3s'<3s′<3. The FNO produced has finite width (Definition 2.13), as the construction of Appendix D.4 does.

Preamble
import Mathlib
import Definitions.Def_FourierNeuralOperator_Basic

open MeasureTheory Filter Topology
Formal statement
namespace FourierNeuralOperator

theorem fno_universal_approximation {d : ℕ} {ιa ιu : Type} [Fintype ιa] [Fintype ιu]
    (σ : ℝ → ℝ) (hσ : IsActivation σ) (s s' : ℝ) (hs : 0 ≤ s) (hs' : 0 ≤ s')
    (m : ℕ) (hm : s' < m) (hσm : ContDiff ℝ m σ)
    (G : TorusFun d ιa → TorusFun d ιu) (hG : SobolevContinuous s s' G)
    (K : Set (TorusFun d ιa)) (hK : IsSobolevCompact s K) (ε : ℝ) (hε : 0 < ε) :
    ∃ Nn : FNO d ιa ιu, SobolevContinuous s s' (Nn.eval σ) ∧
      ∀ a ∈ K, sobolevNorm s' (G a - Nn.eval σ a) ≤ ENNReal.ofReal ε := by sorry

end FourierNeuralOperator
Source
Kovachki, Lanthaler and Mishra, On universal approximation and error bounds for Fourier Neural Operators, arXiv:2107.07562v1 (2021), Section 2.4, Theorem 2.5, p. 5; proof in Appendix D.4, pp. 36-40, and Appendix D.1
Read-back

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

Fix a dimension d∈Nd \in \mathbb{N}d∈N, finite index sets ιa\iota_aιa​ (input components) and ιu\iota_uιu​ (output components), and an activation function σ:R→R\sigma : \mathbb{R} \to \mathbb{R}σ:R→R. A "function on the torus" with values in Rι\mathbb{R}^{\iota}Rι is any map v:Rd→Rιv : \mathbb{R}^d \to \mathbb{R}^{\iota}v:Rd→Rι, written v(x)iv(x)_iv(x)i​. It is not required to be periodic. Every quantity below depends only on its values on the closed box B=[0,2π]dB = [0, 2\pi]^dB=[0,2π]d, except the operators themselves, which are evaluated pointwise on all of Rd\mathbb{R}^dRd.

Definitions used.

  • Fourier coefficients. For k∈Zdk \in \mathbb{Z}^dk∈Zd and component iii,
v^k,i=(2π)−d∫Bv(x)i e−i⟨k,x⟩ dx,⟨k,x⟩=∑jkjxj.\hat v_{k,i} = (2\pi)^{-d} \int_{B} v(x)_i \, e^{-i\langle k, x\rangle}\, dx, \qquad \langle k, x\rangle = \textstyle\sum_j k_j x_j.v^k,i​=(2π)−d∫B​v(x)i​e−i⟨k,x⟩dx,⟨k,x⟩=∑j​kj​xj​.

The integral is the Lebesgue (Bochner) integral, which by convention equals 000 when the integrand is not integrable.

  • Membership in L2L^2L2. v∈L2v \in L^2v∈L2 means every component v(⋅)iv(\cdot)_iv(⋅)i​ is almost-everywhere strongly measurable and square-integrable on BBB with respect to Lebesgue measure.

  • Sobolev norm. For real rrr, the norm takes values in [0,∞][0, \infty][0,∞]:

∥v∥Hr=(∑k∈Zd(2π)d2(1+∣k∣2r)∑i∣v^k,i∣2)1/2.\|v\|_{H^r} = \Big( \sum_{k \in \mathbb{Z}^d} \tfrac{(2\pi)^d}{2}\big(1 + |k|^{2r}\big) \sum_{i} |\hat v_{k,i}|^2 \Big)^{1/2}.∥v∥Hr​=(k∈Zd∑​2(2π)d​(1+∣k∣2r)i∑​∣v^k,i​∣2)1/2.

Here ∣k∣|k|∣k∣ is the Euclidean norm, and ∣k∣2r|k|^{2r}∣k∣2r means (∑jkj2)r(\sum_j k_j^2)^r(∑j​kj2​)r as a real power. At k=0k = 0k=0 this factor equals 111 when r=0r = 0r=0 and 000 when r>0r > 0r>0.

  • Membership in HrH^rHr. v∈Hrv \in H^rv∈Hr means v∈L2v \in L^2v∈L2 and ∥v∥Hr<∞\|v\|_{H^r} < \infty∥v∥Hr​<∞.

Operators and compact sets.

  • Sobolev continuity. An operator TTT is (s,s′)(s, s')(s,s′)-Sobolev-continuous if both of the following hold:

    • every a∈Hsa \in H^sa∈Hs has T(a)∈Hs′T(a) \in H^{s'}T(a)∈Hs′;
    • for every a∈Hsa \in H^sa∈Hs and every ϵ′>0\epsilon' > 0ϵ′>0 there is δ>0\delta > 0δ>0 such that every b∈Hsb \in H^sb∈Hs with ∥b−a∥Hs<δ\|b - a\|_{H^s} < \delta∥b−a∥Hs​<δ satisfies ∥T(b)−T(a)∥Hs′<ϵ′\|T(b) - T(a)\|_{H^{s'}} < \epsilon'∥T(b)−T(a)∥Hs′​<ϵ′.

    Here TTT maps all functions Rd→Rιa\mathbb{R}^d \to \mathbb{R}^{\iota_a}Rd→Rιa​ to functions Rd→Rιu\mathbb{R}^d \to \mathbb{R}^{\iota_u}Rd→Rιu​, and differences are pointwise.

  • Sobolev compactness. A set KKK is HsH^sHs-compact if both of the following hold:

    • K⊆HsK \subseteq H^sK⊆Hs;
    • every sequence (un)(u_n)(un​) in KKK has a strictly increasing index map φ\varphiφ and some a∈Ka \in Ka∈K with ∥uφ(n)−a∥Hs→0\|u_{\varphi(n)} - a\|_{H^s} \to 0∥uφ(n)​−a∥Hs​→0.

    The empty set satisfies this.

Fourier neural operators. An FNO consists of the following data:

  • a lifting dimension dv∈Nd_v \in \mathbb{N}dv​∈N;
  • a depth L∈NL \in \mathbb{N}L∈N;
  • a mode cutoff W∈NW \in \mathbb{N}W∈N;
  • a real dv×ιad_v \times \iota_adv​×ιa​ matrix RRR;
  • a real ιu×dv\iota_u \times d_vιu​×dv​ matrix QQQ;
  • real dv×dvd_v \times d_vdv​×dv​ matrices WℓW_\ellWℓ​, for ℓ=1,…,L\ell = 1, \dots, Lℓ=1,…,L;
  • bias functions bℓ:Rd→Rdvb_\ell : \mathbb{R}^d \to \mathbb{R}^{d_v}bℓ​:Rd→Rdv​ with each bℓ∈L2b_\ell \in L^2bℓ​∈L2;
  • complex dv×dvd_v \times d_vdv​×dv​ matrices Pℓ(k)P_\ell(k)Pℓ​(k) for every k∈Zdk \in \mathbb{Z}^dk∈Zd. These are unconstrained; only the ones with ∣k∣∞≤W|k|_\infty \le W∣k∣∞​≤W are ever used.

The values dv=0d_v = 0dv​=0 and L=0L = 0L=0 are allowed, and no size bound is imposed.

Its evaluation Nσ(a)\mathcal{N}_\sigma(a)Nσ​(a) is computed in three steps:

  1. Lift: v0(x)=R a(x)v_0(x) = R\,a(x)v0​(x)=Ra(x).
  2. Apply the layers in order, vℓ=Lℓ(vℓ−1)v_\ell = \mathcal{L}_\ell(v_{\ell-1})vℓ​=Lℓ​(vℓ−1​), where σ\sigmaσ acts componentwise:
Lℓ(v)(x)i=σ((Wℓv(x))i+bℓ(x)i+Re⁡∑∣k∣∞≤W∑jPℓ(k)ij v^k,j ei⟨k,x⟩).\mathcal{L}_\ell(v)(x)_i = \sigma\Big( (W_\ell v(x))_i + b_\ell(x)_i + \operatorname{Re} \sum_{|k|_\infty \le W} \sum_j P_\ell(k)_{ij}\, \hat v_{k,j}\, e^{i\langle k, x\rangle} \Big).Lℓ​(v)(x)i​=σ((Wℓ​v(x))i​+bℓ​(x)i​+Re∣k∣∞​≤W∑​j∑​Pℓ​(k)ij​v^k,j​ei⟨k,x⟩).
  1. Project: Nσ(a)(x)=Q vL(x)\mathcal{N}_\sigma(a)(x) = Q\, v_L(x)Nσ​(a)(x)=QvL​(x).

Hypotheses.

  • Activation. σ\sigmaσ satisfies all of the following:
    • it is not equal everywhere to any real polynomial;
    • it is globally Lipschitz;
    • it is C3C^3C3.
  • Smoothness indices. s≥0s \ge 0s≥0 and s′≥0s' \ge 0s′≥0 are real numbers.
  • Extra smoothness of σ\sigmaσ. There is a natural number mmm with s′<ms' < ms′<m, and σ\sigmaσ is CmC^mCm. Since s′≥0s' \ge 0s′≥0, necessarily m≥1m \ge 1m≥1. This hypothesis adds nothing beyond C3C^3C3 when m≤3m \le 3m≤3.
  • Target operator. GGG, mapping functions Rd→Rιa\mathbb{R}^d \to \mathbb{R}^{\iota_a}Rd→Rιa​ to functions Rd→Rιu\mathbb{R}^d \to \mathbb{R}^{\iota_u}Rd→Rιu​, is (s,s′)(s, s')(s,s′)-Sobolev-continuous. Its values outside HsH^sHs are unconstrained.
  • Compact set. KKK is an HsH^sHs-compact set of such input functions.
  • Accuracy. ϵ\epsilonϵ is a real number with ϵ>0\epsilon > 0ϵ>0.

Conclusion. There exists an FNO N\mathcal{N}N with both of the following properties:

  • its evaluation a↦Nσ(a)a \mapsto \mathcal{N}_\sigma(a)a↦Nσ​(a) is itself (s,s′)(s, s')(s,s′)-Sobolev-continuous;
  • for every a∈Ka \in Ka∈K (pointwise difference, non-strict inequality),
∥G(a)−Nσ(a)∥Hs′≤ϵ.\|G(a) - \mathcal{N}_\sigma(a)\|_{H^{s'}} \le \epsilon.∥G(a)−Nσ​(a)∥Hs′​≤ϵ.

Degenerate cases.

  • Empty KKK. If K=∅K = \emptysetK=∅, the conclusion reduces to the existence of some Sobolev-continuous FNO.
  • Empty ιu\iota_uιu​. If ιu\iota_uιu​ is empty, all output norms are 000 and the bound holds trivially.
  • d=0d = 0d=0. Here BBB is a single point carrying unit mass.
  • Indistinguishable functions. The norms see a function only through its Fourier coefficients on BBB. Functions that differ outside BBB, or that have the same Fourier coefficients, are indistinguishable to every hypothesis and to the conclusion.
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