Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2.7: an FNO approximates the Fourier coefficients v^k\hat v_kv^k​, ∣k∣∞≤N|k|_\infty\le N∣k∣∞​≤N

Proved
FourierNeuralOperator.fno_approximates_fourier_coefficients

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, and let B>0B>0B>0 and N∈NN\in\mathbb NN∈N. For every ε>0\varepsilon>0ε>0 there is an FNO N:L2(Td)→L2(Td;R2KN)\mathcal N:L^2(\mathbb T^d)\to L^2(\mathbb T^d;\mathbb R^{2\mathcal K_N})N:L2(Td)→L2(Td;R2KN​), v↦{N(v)ℓ,k}ℓ∈{1,2},k∈KNv\mapsto\{\mathcal N(v)_{\ell,k}\}_{\ell\in\{1,2\},k\in\mathcal K_N}v↦{N(v)ℓ,k​}ℓ∈{1,2},k∈KN​​, whose output functions are constant in x∈Tdx\in\mathbb T^dx∈Td for every input v∈L2(Td)v\in L^2(\mathbb T^d)v∈L2(Td), such that for every real v∈L2(Td)v\in L^2(\mathbb T^d)v∈L2(Td) with ∥v∥L2≤B\|v\|_{L^2}\le B∥v∥L2​≤B and every k∈Zdk\in\mathbb Z^dk∈Zd with ∣k∣∞≤N|k|_\infty\le N∣k∣∞​≤N,

∥Re(v^k)−N(v)1,k∥L∞≤ε,∥Im(v^k)−N(v)2,k∥L∞≤ε.\|\mathrm{Re}(\hat v_k)-\mathcal N(v)_{1,k}\|_{L^\infty}\le\varepsilon,\qquad\|\mathrm{Im}(\hat v_k)-\mathcal N(v)_{2,k}\|_{L^\infty}\le\varepsilon.∥Re(v^k​)−N(v)1,k​∥L∞​≤ε,∥Im(v^k​)−N(v)2,k​∥L∞​≤ε.

Formalization Note The output is constant at every point, so the L∞L^\inftyL∞ bounds are written pointwise for every xxx. The components ℓ=1,2\ell=1,2ℓ=1,2 are indexed by 0,10,10,1.

Preamble
import Mathlib
import Definitions.Def_FourierNeuralOperator_Basic

open MeasureTheory Filter Topology
Formal statement
namespace FourierNeuralOperator

theorem fno_approximates_fourier_coefficients {d : ℕ} (σ : ℝ → ℝ) (hσ : IsActivation σ)
    (B : ℝ) (hB : 0 < B) (N : ℕ) (ε : ℝ) (hε : 0 < ε) :
    ∃ Nn : FNO d (Fin 1) (Fin 2 × freqBox d N),
      (∀ v : TorusFun d (Fin 1), MemL2 v → ∀ x y, Nn.eval σ v x = Nn.eval σ v y) ∧
      ∀ v : TorusFun d (Fin 1), MemL2 v → l2Norm v ≤ ENNReal.ofReal B →
        ∀ (k : freqBox d N) (x : Fin d → ℝ),
          |(fourierCoeff v k.1 0).re - Nn.eval σ v x (0, k)| ≤ ε ∧
          |(fourierCoeff v k.1 0).im - Nn.eval σ v x (1, k)| ≤ ε := 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, Lemma 2.7, p. 6; proof in Appendix D.2, pp. 33-35
Read-back

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

Let d∈Nd \in \mathbb{N}d∈N, let σ:R→R\sigma : \mathbb{R} \to \mathbb{R}σ:R→R, and let BBB, NNN, ε\varepsilonε be given with

B∈R, B>0,N∈N,ε∈R, ε>0.B \in \mathbb{R},\ B > 0, \qquad N \in \mathbb{N}, \qquad \varepsilon \in \mathbb{R},\ \varepsilon > 0 .B∈R, B>0,N∈N,ε∈R, ε>0.

The function σ\sigmaσ is assumed to be an admissible activation, which means all three of the following hold:

  • σ\sigmaσ is not a polynomial: no real polynomial ppp has σ(x)=p(x)\sigma(x) = p(x)σ(x)=p(x) for all x∈Rx \in \mathbb{R}x∈R.
  • σ\sigmaσ is globally Lipschitz with some constant L≥0L \ge 0L≥0.
  • σ\sigmaσ is C3C^3C3 on R\mathbb{R}R.

Setting. A "scalar function on the torus" here is simply any function v:Rd→Rv : \mathbb{R}^d \to \mathbb{R}v:Rd→R. No periodicity is imposed. Only the values of vvv on the box Td=[0,2π]dT_d = [0, 2\pi]^dTd​=[0,2π]d enter the integrals below.

  • L2L^2L2 membership. v∈L2v \in L^2v∈L2 means vvv is almost-everywhere strongly measurable and square-integrable with respect to Lebesgue measure restricted to TdT_dTd​.
  • L2L^2L2 norm. This is the extended-real number
∥v∥L2=(∫Tdv(x)2 dx)1/2∈[0,∞].\|v\|_{L^2} = \Big(\int_{T_d} v(x)^2\,dx\Big)^{1/2} \in [0,\infty].∥v∥L2​=(∫Td​​v(x)2dx)1/2∈[0,∞].
  • Fourier coefficients. For k∈Zdk \in \mathbb{Z}^dk∈Zd,
v^k=(2π)−d∫Tdv(x) e−i⟨k,x⟩ dx∈C,⟨k,x⟩=∑ikixi.\hat v_k = (2\pi)^{-d} \int_{T_d} v(x)\, e^{-i\langle k, x\rangle}\,dx \in \mathbb{C}, \qquad \langle k, x\rangle = \sum_{i} k_i x_i .v^k​=(2π)−d∫Td​​v(x)e−i⟨k,x⟩dx∈C,⟨k,x⟩=i∑​ki​xi​.

The integral is the Lebesgue/Bochner integral, which is assigned the value 000 if the integrand is not integrable. For v∈L2v \in L^2v∈L2 it is integrable, because TdT_dTd​ has finite measure.

  • Frequency set. KN={k∈Zd:∣k∣∞≤N}\mathcal{K}_N = \{k \in \mathbb{Z}^d : |k|_\infty \le N\}KN​={k∈Zd:∣k∣∞​≤N} is a finite set with (2N+1)d(2N+1)^d(2N+1)d elements.

Fourier neural operators. A Fourier neural operator (FNO) N\mathcal{N}N from scalar functions to functions with values in R{0,1}×KN\mathbb{R}^{\{0,1\} \times \mathcal{K}_N}R{0,1}×KN​ consists of the following data. Nothing about its size is constrained.

  • A lifting dimension dv∈Nd_v \in \mathbb{N}dv​∈N, a depth L∈NL \in \mathbb{N}L∈N (possibly 000), and a mode cutoff W∈NW \in \mathbb{N}W∈N.
  • A lifting matrix R∈Rdv×1R \in \mathbb{R}^{d_v \times 1}R∈Rdv​×1 and a projection matrix Q∈R({0,1}×KN)×dvQ \in \mathbb{R}^{(\{0,1\}\times\mathcal{K}_N) \times d_v}Q∈R({0,1}×KN​)×dv​.
  • For each layer ℓ=1,…,L\ell = 1,\dots,Lℓ=1,…,L:
    • a matrix Wℓ∈Rdv×dvW_\ell \in \mathbb{R}^{d_v \times d_v}Wℓ​∈Rdv​×dv​;
    • a bias function bℓ:Rd→Rdvb_\ell : \mathbb{R}^d \to \mathbb{R}^{d_v}bℓ​:Rd→Rdv​, each of whose components is in L2L^2L2 on TdT_dTd​, and which is otherwise arbitrary;
    • complex matrices Pℓ(k)∈Cdv×dvP_\ell(k) \in \mathbb{C}^{d_v\times d_v}Pℓ​(k)∈Cdv​×dv​, one for each k∈Zdk \in \mathbb{Z}^dk∈Zd.

Its output on an input vvv is computed in three stages:

  1. Lift: v0(x)=R v(x)v_0(x) = R\,v(x)v0​(x)=Rv(x).
  2. For each layer, set
vℓ(x)i=σ((Wℓvℓ−1(x))i+bℓ(x)i+Re⁡∑k∈KW∑jPℓ(k)ij (vℓ−1)j^,k ei⟨k,x⟩).v_\ell(x)_i = \sigma\Big( (W_\ell v_{\ell-1}(x))_i + b_\ell(x)_i + \operatorname{Re} \sum_{k \in \mathcal{K}_W} \sum_{j} P_\ell(k)_{ij}\, \widehat{(v_{\ell-1})_j}{}_{,k}\, e^{i\langle k, x\rangle} \Big).vℓ​(x)i​=σ((Wℓ​vℓ−1​(x))i​+bℓ​(x)i​+Rek∈KW​∑​j∑​Pℓ​(k)ij​(vℓ−1​)j​​,k​ei⟨k,x⟩).

Here the Fourier coefficients of the intermediate functions are computed as above, over TdT_dTd​, with the convention that a non-integrable integrand gives 000. 3. Project: N(v)(x)=Q vL(x)\mathcal{N}(v)(x) = Q\, v_L(x)N(v)(x)=QvL​(x), defined for every x∈Rdx \in \mathbb{R}^dx∈Rd.

Claim. There exists such an FNO N\mathcal{N}N (depending on d,σ,B,N,εd, \sigma, B, N, \varepsilond,σ,B,N,ε) with both of the following properties.

  1. Constant output on L2L^2L2 inputs. For every v:Rd→Rv : \mathbb{R}^d \to \mathbb{R}v:Rd→R with v∈L2v \in L^2v∈L2, no norm bound required, the output N(v)\mathcal{N}(v)N(v) is constant on all of Rd\mathbb{R}^dRd, not merely on TdT_dTd​:
N(v)(x)=N(v)(y)for all x,y∈Rd.\mathcal{N}(v)(x) = \mathcal{N}(v)(y) \quad \text{for all } x, y \in \mathbb{R}^d .N(v)(x)=N(v)(y)for all x,y∈Rd.
  1. Uniform approximation of Fourier coefficients. Take any v∈L2v \in L^2v∈L2 with ∥v∥L2≤B\|v\|_{L^2} \le B∥v∥L2​≤B, any k∈KNk \in \mathcal{K}_Nk∈KN​ and any x∈Rdx \in \mathbb{R}^dx∈Rd. Then
∣Re⁡v^k−N(v)(x)(0,k)∣≤εand∣Im⁡v^k−N(v)(x)(1,k)∣≤ε.\big|\operatorname{Re}\hat v_k - \mathcal{N}(v)(x)_{(0,k)}\big| \le \varepsilon \quad\text{and}\quad \big|\operatorname{Im}\hat v_k - \mathcal{N}(v)(x)_{(1,k)}\big| \le \varepsilon .​Rev^k​−N(v)(x)(0,k)​​≤εand​Imv^k​−N(v)(x)(1,k)​​≤ε.

The bound is uniform over all such vvv, all k∈KNk \in \mathcal{K}_Nk∈KN​ and all x∈Rdx \in \mathbb{R}^dx∈Rd. The output coordinate (0,k)(0,k)(0,k) approximates the real part and (1,k)(1,k)(1,k) the imaginary part.

What is not claimed.

  • Nothing is asserted about inputs v∉L2v \notin L^2v∈/L2.
  • No continuity of N\mathcal{N}N in any norm is asserted.
  • No bound on dvd_vdv​, LLL or WWW is asserted.

Degenerate cases.

  • d=0d = 0d=0. R0\mathbb{R}^0R0 is a single point, T0T_0T0​ is that point, KN\mathcal{K}_NKN​ has exactly one element, and v^k\hat v_kv^k​ equals the value of vvv at the point.
  • N=0N = 0N=0. Only k=0k = 0k=0 is involved, and v^0\hat v_0v^0​ is the mean of vvv over TdT_dTd​ in the sense (2π)−d∫Tdv(2\pi)^{-d}\int_{T_d} v(2π)−d∫Td​​v.
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