Lemma B.1: the expected PINN loss is bounded by a regularized empirical loss on covering samples
ProvedPINNConvergence.expected_loss_le_of_coveringAssume Assumption 3.1 with and constants . Let and . Suppose , , and are finite. Let and () be such that every lies within of some , and every within of some . With ,
This is the deterministic half of Theorem 3.1. Lemma B.2 supplies the covering with high probability.
Formalization Note The operators are arbitrary maps on functions. Only the values and enter. The expected loss takes values in and is compared with the real right-hand side.
import Mathlib import Definitions.Def_PINNConvergence_Basic open MeasureTheory Filter Topology
namespace PINNConvergence
theorem expected_loss_le_of_covering {d : ℕ} (hd : 2 ≤ d) (U Gam : Set (Rd d))
(μr μb : Measure (Rd d)) (cr Cr cb Cb : ℝ) (hA : DataDistAssumption U Gam μr μb cr Cr cb Cb)
(α : ℝ) (hα : 0 < α ∧ α ≤ 1) (Lop Bop : (Rd d → ℝ) → Rd d → ℝ) (f g h : Rd d → ℝ)
(lr lb : ℝ) (hl : 0 ≤ lr ∧ 0 ≤ lb)
(hLh : holderConst α U (Lop h) < ⊤) (hBh : holderConst α Gam (Bop h) < ⊤)
(hf : holderConst α U f < ⊤) (hg : holderConst α Gam g < ⊤)
{mr mb : ℕ} (hmr : 1 ≤ mr) (hmb : 1 ≤ mb) (xr : Fin mr → Rd d) (xb : Fin mb → Rd d)
(hxr : ∀ i, xr i ∈ U) (hxb : ∀ j, xb j ∈ Gam) (er eb : ℝ) (her : 0 < er) (heb : 0 < eb)
(hcovr : ∀ x ∈ U, ∃ i, ‖x - xr i‖ ≤ er) (hcovb : ∀ x ∈ Gam, ∃ j, ‖x - xb j‖ ≤ eb) :
let Cm := 3 * max (Cr * mr * er ^ d) (Cb * mb * eb ^ (d - 1))
pinnLossExp Lop Bop f g lr lb μr μb h ≤
ENNReal.ofReal (Cm * (pinnLossEmp Lop Bop f g lr lb xr xb h +
3 * lr * er ^ (2 * α) / Cm * (holderConst α U (Lop h)).toReal ^ 2 +
3 * lb * eb ^ (2 * α) / Cm * (holderConst α Gam (Bop h)).toReal ^ 2) +
3 * lr * er ^ (2 * α) * (holderConst α U f).toReal ^ 2 +
3 * lb * eb ^ (2 * α) * (holderConst α Gam g).toReal ^ 2) := by sorry
end PINNConvergenceRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix an integer and work in with the Euclidean norm . The data are:
- sets ;
- Borel measures on ;
- real constants ;
- a real exponent with ;
- two completely arbitrary maps , each sending a function to another function . No linearity, continuity or differential structure is assumed.
- arbitrary functions . No measurability, continuity or boundedness is assumed, and is not required to be a neural network.
- real weights and ;
- integers and , with points and . The points need not be distinct.
- radii and .
Hölder constant. For a set and a function , write
This value is if has at most one point.
Hypotheses on the data distribution.
-
is bounded, open and connected, so in particular it is nonempty.
-
At every boundary point there exist:
- a radius ,
- a map ,
- a constant ,
- a coordinate index ,
such that, for all in the open ball ,
with for and for . Nothing further is required of ; for example, surjectivity onto a half-space is not required. 3. is closed and . 4. and are probability measures. 5. has a density with respect to Lebesgue measure restricted to . That is, for some measurable , and there is some with on . 6. has a density with respect to the -dimensional Hausdorff measure restricted to . That is, for some measurable , and there is some with on . 7. . 8. Cube partitions of . For every with , is the disjoint union of finitely many measurable sets . Each contains a point and satisfies
The left condition says lies in the closed cube of side centred at . 9. Cube partitions of . The same holds for , with , and exponent , for every with . 10. Ball bounds. For every , with denoting the closed ball,
Further hypotheses.
- The four Hölder constants , , and are all finite.
- Covering. Every satisfies for some . Every satisfies for some .
- No relation between and or the constants is imposed beyond the covering property.
Conclusion. Set
This is strictly positive under the hypotheses. Define the empirical loss
Define the expected loss, valued in , as
These are lower Lebesgue integrals of nonnegative functions. They are defined without any measurability or integrability assumption and may be .
The theorem asserts the inequality in :
Notes on the right-hand side:
- It is computed as a real number and then embedded in , with negative values clamped to . Under the hypotheses all its terms are nonnegative, so no clamping occurs.
- The Hölder constants enter as their (finite) real values.
- Multiplying out, the right-hand side equals
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.