Lemma 3.13: the optimal projector of an affine reconstructor
ProvedDeepONetError.optimal_projectionLet . Let with and linearly independent , and let . Let be the dual basis, . Then:
- The reconstruction error is minimized over all Borel measurable projectors by
- For this ,
and is the orthogonal projection of onto .
Formalization Note The dual basis is defined explicitly through the inverse Gram matrix, . Its two defining properties (it lies in the span and is dual to ) are included as conclusions. That is the orthogonal projection onto the complement is stated as: lies in the complement and lies in the span.
import Mathlib import Definitions.Def_DeepONetError_Basic open MeasureTheory
namespace DeepONetError
theorem optimal_projection {n p : ℕ} {U : Set (Fin n → ℝ)}
[MeasurableSpace (L2 U)] [BorelSpace (L2 U)]
(tau : Fin (p + 1) → L2 U) (htau : LinearIndependent ℝ (fun k : Fin p => tau k.succ))
(nu : Measure (L2 U)) (hnu : IsP2 nu) :
(∀ k, dualBasis (fun j => tau j.succ) k ∈
Submodule.span ℝ (Set.range fun j : Fin p => tau j.succ)) ∧
(∀ k l : Fin p, inner ℝ (tau l.succ) (dualBasis (fun j => tau j.succ) k) =
if l = k then 1 else 0) ∧
(∀ Proj : L2 U → EuclideanSpace ℝ (Fin p), Measurable Proj →
recErr nu (trunkRec tau) (optProj tau) ≤ recErr nu (trunkRec tau) Proj) ∧
(∀ u : L2 U, trunkRec tau (optProj tau u) =
(tau 0 - ∑ k, inner ℝ (tau 0) (dualBasis (fun j => tau j.succ) k) • tau k.succ) +
∑ k, inner ℝ u (dualBasis (fun j => tau j.succ) k) • tau k.succ) ∧
(tau 0 - ∑ k, inner ℝ (tau 0) (dualBasis (fun j => tau j.succ) k) • tau k.succ ∈
(Submodule.span ℝ (Set.range fun j : Fin p => tau j.succ))ᗮ ∧
∑ k, inner ℝ (tau 0) (dualBasis (fun j => tau j.succ) k) • tau k.succ ∈
Submodule.span ℝ (Set.range fun j : Fin p => tau j.succ)) := by sorry
end DeepONetErrorRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix natural numbers and and an arbitrary set . No boundedness or measurability of is assumed. Let be the real Hilbert space of square-integrable functions on with respect to Lebesgue measure restricted to , modulo a.e. equality. Its inner product is . carries a -algebra that is assumed to be its Borel -algebra for the norm topology.
The data are:
- elements , such that are linearly independent (no condition is placed on );
- a measure on that is a probability measure with finite second moment, .
Write . Let be the Gram matrix for , and let be its matrix inverse. The inverse convention returns the zero matrix when is singular, but is invertible here by linear independence. Define the "dual vectors"
Define the reconstructor and the projector , where carries the Euclidean norm:
For any map , the reconstruction error is the value in
This is computed as a lower Lebesgue integral of a -valued function, so it is defined even for non-measurable integrands and may equal .
The theorem asserts that all five of the following hold simultaneously:
- Each , for , lies in .
- For all , equals if and otherwise.
- For every Borel-measurable map , . The comparison is only against measurable and only for this fixed ; it is not asserted that is the unique minimizer.
- For every :
- The vector lies in the orthogonal complement , and lies in .
The hypothesis on is not referenced by parts 1, 2, 4 and 5.
Edge cases.
- . The linear-independence hypothesis holds vacuously and . Parts 1 and 2 are vacuous. is the constant , so every gives the same error and part 3 is trivial. Part 4 reads . Part 5 says and .
- of Lebesgue measure zero. is the zero space. The linear-independence hypothesis can then hold only when .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.