Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.15 (as proved): universal approximation by Ψ\PsiΨ-FNOs

Open
FourierNeuralOperator.psi_fno_universal_approximation

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

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

Let σ\sigmaσ satisfy Assumption 2.4, let s>d/2s>d/2s>d/2 and s′≥0s'\ge0s′≥0. Assume in addition that σ∈Cm\sigma\in C^mσ∈Cm for an integer m>max⁡(s′,d/2)m>\max(s',d/2)m>max(s′,d/2). 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 continuous 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 are N∈NN\in\mathbb NN∈N and a Ψ\PsiΨ-FNO N:LN2→LN2\mathcal N:L^2_N\to L^2_NN:LN2​→LN2​ 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 universality of the implementable, pseudo-spectral form of FNOs.

Formalization Note The hypothesis σ∈Cm\sigma\in C^mσ∈Cm with m>max⁡(s′,d/2)m>\max(s',d/2)m>max(s′,d/2) is not in the printed theorem. The proof uses Theorem 2.14 (which needs σ∈Cm\sigma\in C^mσ∈Cm with m>s~>d/2m>\tilde s>d/2m>s~>d/2) and Lemma 2.16 (which needs m>s′m>s'm>s′), and Assumption 2.4 gives only σ∈C3\sigma\in C^3σ∈C3. The elements of KKK are taken continuous on [0,2π]d[0,2\pi]^d[0,2π]d, i.e. they are the continuous representatives.

Preamble
import Mathlib
import Definitions.Def_FourierNeuralOperator_Basic

open MeasureTheory Filter Topology
Formal statement
namespace FourierNeuralOperator

theorem psi_fno_universal_approximation {d : ℕ} {ιa ιu : Type} [Fintype ιa] [Fintype ιu]
    (σ : ℝ → ℝ) (hσ : IsActivation σ) (s s' : ℝ) (hs : (d : ℝ) / 2 < s) (hs' : 0 ≤ s')
    (m : ℕ) (hm₁ : s' < m) (hm₂ : (d : ℝ) / 2 < 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)
    (hKc : ∀ a ∈ K, ContinuousOn a (torusBox d)) (ε : ℝ) (hε : 0 < ε) :
    ∃ Np : PsiFNO d ιa ιu, ∀ a ∈ K, sobolevNorm s' (G a - Np.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.5, Theorem 2.15, p. 11; proof on p. 11 and in Appendices D.5-D.6
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 (the case d=0d = 0d=0 is allowed) and two finite index sets ιa\iota_aιa​ and ιu\iota_uιu​, either of which may be empty. A "function on the torus with values in Rι\mathbb{R}^{\iota}Rι" here means any map v:Rd→Rιv : \mathbb{R}^d \to \mathbb{R}^{\iota}v:Rd→Rι, with components viv_ivi​. All integrals below are Lebesgue integrals over the box Bd=[0,2π]dB_d = [0, 2\pi]^dBd​=[0,2π]d, so values of vvv outside BdB_dBd​ never enter any norm. Subtraction of such functions is pointwise on all of Rd\mathbb{R}^dRd.

Notation used in the statement.

  • Fourier coefficients. For k∈Zdk \in \mathbb{Z}^dk∈Zd, write ⟨k,x⟩=∑ikixi\langle k, x\rangle = \sum_i k_i x_i⟨k,x⟩=∑i​ki​xi​. The kkk-th Fourier coefficient of component iii is
v^k,i=(2π)−d∫Bdvi(x) e−i⟨k,x⟩ dx.\hat v_{k,i} = (2\pi)^{-d} \int_{B_d} v_i(x)\, e^{-i\langle k, x\rangle}\, dx.v^k,i​=(2π)−d∫Bd​​vi​(x)e−i⟨k,x⟩dx.

This is set to 000 if the integrand is not integrable.

  • L2L^2L2 membership. "v∈L2v \in L^2v∈L2" means every component viv_ivi​ is square-integrable on BdB_dBd​.

  • Sobolev norm. For r∈Rr \in \mathbb{R}r∈R, the norm is the extended-real quantity

∥v∥Hr=(∑k∈Zd(2π)d2(1+∣k∣2r)∑i∣v^k,i∣2)1/2∈[0,∞].\|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} \in [0, \infty].∥v∥Hr​=(k∈Zd∑​2(2π)d​(1+∣k∣2r)i∑​∣v^k,i​∣2)1/2∈[0,∞].
  • Here ∣k∣2r|k|^{2r}∣k∣2r means (∑jkj2)r\big(\sum_j k_j^2\big)^{r}(∑j​kj2​)r, a real power.

  • At k=0k = 0k=0 this power is 000 when r≠0r \neq 0r=0 and 111 when r=0r = 0r=0.

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

  • Sobolev continuity. A map GGG from Rιa\mathbb{R}^{\iota_a}Rιa​-valued functions to Rιu\mathbb{R}^{\iota_u}Rιu​-valued functions is (s,s′)(s, s')(s,s′)-Sobolev-continuous if both of the following hold:

    1. GGG maps HsH^sHs into Hs′H^{s'}Hs′.
    2. For every a∈Hsa \in H^sa∈Hs and every η>0\eta > 0η>0 there is a δ>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 ∥G(b)−G(a)∥Hs′<η\|G(b) - G(a)\|_{H^{s'}} < \eta∥G(b)−G(a)∥Hs′​<η.
  • Sobolev compactness. A set KKK is HsH^sHs-compact if both of the following hold:

    1. K⊆HsK \subseteq H^sK⊆Hs.
    2. Every sequence (un)(u_n)(un​) in KKK has a strictly increasing subsequence (uφ(n))(u_{\varphi(n)})(uφ(n)​) and a point a∈Ka \in Ka∈K with ∥uφ(n)−a∥Hs→0\|u_{\varphi(n)} - a\|_{H^s} \to 0∥uφ(n)​−a∥Hs​→0.
  • Activation hypothesis. "σ\sigmaσ is an activation" means all three of the following:

    1. σ:R→R\sigma : \mathbb{R} \to \mathbb{R}σ:R→R does not agree everywhere with any real polynomial.
    2. σ\sigmaσ is globally Lipschitz.
    3. σ\sigmaσ is C3C^3C3.
  • Ψ\PsiΨ-FNO. A Ψ\PsiΨ-FNO N\mathcal{N}N consists of the following data:

    • natural numbers dvd_vdv​ (the lifting dimension, possibly 000), LLL (the depth, possibly 000), WWW (the number of modes), and N≥1N \ge 1N≥1 (the grid degree);
    • real matrices R∈Rdv×ιaR \in \mathbb{R}^{d_v \times \iota_a}R∈Rdv​×ιa​, Q∈Rιu×dvQ \in \mathbb{R}^{\iota_u \times d_v}Q∈Rιu​×dv​ and W1,…,WL∈Rdv×dvW_1, \dots, W_L \in \mathbb{R}^{d_v \times d_v}W1​,…,WL​∈Rdv​×dv​;
    • bias functions bℓ:Rd→Rdvb_\ell : \mathbb{R}^d \to \mathbb{R}^{d_v}bℓ​:Rd→Rdv​, each in L2L^2L2 but otherwise arbitrary;
    • arbitrary complex matrices Pℓ(k)∈Cdv×dvP_\ell(k) \in \mathbb{C}^{d_v \times d_v}Pℓ​(k)∈Cdv​×dv​ for k∈Zdk \in \mathbb{Z}^dk∈Zd, with no reality or symmetry constraint.
  • Interpolation operator. Let KM={k∈Zd:∣k∣∞≤M}\mathcal{K}_M = \{k \in \mathbb{Z}^d : |k|_\infty \le M\}KM​={k∈Zd:∣k∣∞​≤M}. The grid points are

xj=2πj2N+1,j∈{0,…,2N}d.x_j = \frac{2\pi j}{2N+1}, \qquad j \in \{0, \dots, 2N\}^d.xj​=2N+12πj​,j∈{0,…,2N}d.

The operator is

INv(x)=Re⁡∑k∈KNFN(v)(k) ei⟨k,x⟩,whereFN(v)(k)=(2N+1)−d∑jv(xj) e−i⟨k,xj⟩.\mathcal{I}_N v(x) = \operatorname{Re} \sum_{k \in \mathcal{K}_N} \mathcal{F}_N(v)(k)\, e^{i\langle k, x\rangle}, \qquad \text{where} \qquad \mathcal{F}_N(v)(k) = (2N+1)^{-d} \sum_{j} v(x_j)\, e^{-i\langle k, x_j\rangle}.IN​v(x)=Rek∈KN​∑​FN​(v)(k)ei⟨k,x⟩,whereFN​(v)(k)=(2N+1)−dj∑​v(xj​)e−i⟨k,xj​⟩.

This is applied componentwise.

  • Layers. The ℓ\ellℓ-th layer acts, with σ\sigmaσ applied componentwise, by
Lℓ(v)(x)i=σ((Wℓ v(x))i+bℓ(x)i+Re⁡∑k∈KW∑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 \in \mathcal{K}_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​+Rek∈KW​∑​j∑​Pℓ​(k)ij​v^k,j​ei⟨k,x⟩).
  • Output of the Ψ\PsiΨ-FNO. Set v0=IN(x↦R a(x))v_0 = \mathcal{I}_N(x \mapsto R\, a(x))v0​=IN​(x↦Ra(x)) and vℓ=IN(Lℓ(vℓ−1))v_\ell = \mathcal{I}_N(\mathcal{L}_\ell(v_{\ell-1}))vℓ​=IN​(Lℓ​(vℓ−1​)) for ℓ=1,…,L\ell = 1, \dots, Lℓ=1,…,L. The output is
N(a)(x)=Q vL(x).\mathcal{N}(a)(x) = Q\, v_L(x).N(a)(x)=QvL​(x).

The statement. Assume the following:

  • σ\sigmaσ is an activation in the above sense.
  • s,s′∈Rs, s' \in \mathbb{R}s,s′∈R satisfy s>d/2s > d/2s>d/2 and s′≥0s' \ge 0s′≥0.
  • m∈Nm \in \mathbb{N}m∈N satisfies m>s′m > s'm>s′ and m>d/2m > d/2m>d/2, and σ\sigmaσ is CmC^mCm. These conditions force m≥1m \ge 1m≥1.
  • GGG is an arbitrary (s,s′)(s, s')(s,s′)-Sobolev-continuous map.
  • KKK is an HsH^sHs-compact set, and each a∈Ka \in Ka∈K is continuous on the box BdB_dBd​ (every component is continuous there).
  • ε>0\varepsilon > 0ε>0 is a real number.

Then there exists a Ψ\PsiΨ-FNO N\mathcal{N}N such that

∥G(a)−N(a)∥Hs′≤εfor every a∈K.\|G(a) - \mathcal{N}(a)\|_{H^{s'}} \le \varepsilon \quad \text{for every } a \in K.∥G(a)−N(a)∥Hs′​≤εfor every a∈K.

What the conclusion does not require.

  • No constraint is placed on NNN, dvd_vdv​, LLL or WWW: there is no lower bound on the grid degree and no "for all sufficiently large NNN".
  • N\mathcal{N}N is not required to be continuous.
  • G(a)−N(a)G(a) - \mathcal{N}(a)G(a)−N(a) is not required to lie in L2L^2L2; only the Fourier-series quantity ∥⋅∥Hs′\|\cdot\|_{H^{s'}}∥⋅∥Hs′​ must be at most ε\varepsilonε.

Degenerate cases.

  • If K=∅K = \emptysetK=∅ the conclusion holds trivially.
  • If ιu\iota_uιu​ is empty every Hs′H^{s'}Hs′ norm is 000, so the conclusion also 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