Theorem 3.5 (as proved): -FNO approximation of the Darcy solution operator
OpenFourierNeuralOperator.darcy_psi_fno_approximationLet be non-linear (not affine). Let with , , , , and let . Let be the set of -coercive coefficients of Setting 3.4 and , , the solution operator of
Then there is a constant such that for every integer there is a -FNO with
and , , .
So the Darcy solution operator is approximated to accuracy by -FNOs of size .
Formalization Note Setting 3.4 asks only . The proof emulates Algorithm 3.2, whose convergence (Theorem 3.3, Appendix E.1) needs ; this hypothesis is added. The constant is chosen after (the paper writes , but it must depend on ). "Non-linear" is read as "not affine", as the proof needs somewhere. The solution is characterised by its Fourier coefficients: the bound is asserted for every solving the equation. Coefficients are taken continuous on . Depth is allowed, which is what the bound forces at .
import Mathlib import Definitions.Def_FourierNeuralOperator_Basic open MeasureTheory Filter Topology
namespace FourierNeuralOperator
theorem darcy_psi_fno_approximation {d : ℕ} (σ : ℝ → ℝ) (hσ3 : ContDiff ℝ 3 σ)
(hσnl : ¬ ∃ c₀ c₁ : ℝ, ∀ x, σ x = c₀ + c₁ * x)
(k : ℕ) (hk : (d : ℝ) / 2 + 1 < k) (δ : ℝ) (hδ₀ : 0 < δ) (hδ₁ : δ < 1)
(s : ℝ) (hs : (d : ℝ) / 2 + k + δ ≤ s) (lam : ℝ) (hlam₀ : 0 < lam) (hlam₁ : lam < 1)
(f : TorusFun d (Fin 1)) (hf : MemSobolev ((k : ℝ) - 1) f) (hf₀ : MeanZero f) :
∃ C : ℝ, 0 < C ∧ ∀ N : ℕ, 1 ≤ N → ∃ Np : PsiFNO d (Fin 1) (Fin 1),
(∀ a ∈ darcyCoeffSet d s δ lam, ContinuousOn a (torusBox d) →
∀ u, IsDarcySolution a f u →
sobolevNorm 1 (u - Np.eval σ a) ≤ ENNReal.ofReal (C * (N : ℝ) ^ (-(k : ℝ)))) ∧
(Np.width : ℝ) ≤ C * (N : ℝ) ^ d ∧ (Np.depth : ℝ) ≤ C * Real.log N ∧
(Np.lift : ℝ) ≤ C := by sorry
end FourierNeuralOperatorRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting and notation. Fix a natural number ; the case is allowed. A torus function with values in is any map . Only its values on the box enter integrals and norms. Here all functions are scalar (). For a torus function and , the Fourier coefficient is
This is a Bochner integral, so it is taken to be whenever the integrand is not integrable on the box.
For real , the Sobolev norm is the extended real number
where is the Euclidean norm and means , a real power. The norm is if the series diverges.
- "" means two things: is square-integrable on the box, and .
- " has mean zero" means .
- is the essential supremum of on the box.
- is the supremum of over all scalar with .
Hypotheses. The theorem takes the following data:
- a function that is and is not of the form for any real constants . No Lipschitz condition and no non-polynomiality is assumed.
- a natural number with , which forces ;
- a real with ;
- a real with ;
- a real with ;
- a scalar torus function with mean zero.
Coefficient set. The set (the code's darcyCoeffSet with parameters ) consists of the scalar torus functions satisfying all of the following:
- ;
- ;
- ;
- .
Here is . All comparisons are in , where .
Darcy solution. A scalar torus function is a Darcy solution for if three conditions hold:
- and has mean zero.
- There exist square-integrable scalar torus functions with
- For every ,
Here is the pointwise product, and its Fourier coefficient is if is not integrable on the box.
-FNO. A -FNO consists of:
- a lifting dimension , a depth , a mode bound , and a grid degree ;
- matrices and ;
- for each layer : a matrix , a bias with every component square-integrable on the box, and complex matrices for .
The interpolation operator acts componentwise:
Layer acts by
The output of on is computed in three steps:
- Start with .
- For , set .
- Output .
The width of is .
Conclusion. There exists a real constant such that, for every natural number , there exists a -FNO (scalar input, scalar output) satisfying all four of the following:
- Error bound. For every that is continuous on the box , and for every that is a Darcy solution for :
- Width bound. .
- Depth bound. .
- Lifting bound. .
Remarks on the quantifiers.
- is chosen before . It may depend on , , , , , and .
- may depend on , but it is chosen before, and independently of, and .
- The grid degree of is not required to equal . It is linked to only through the width bound.
- At we have , so the depth bound forces .
- For any that admits no Darcy solution for , the error-bound clause holds vacuously. The same applies if contains no function continuous on the box.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.