Lemma 3.1: training dynamics of a PINN under gradient flow
ProvedPINNNeuralTangent.pinn_training_dynamicsLet be bounded, let be any operator taking functions on to functions on , and let be a network with finitely many parameters. Take boundary points () and collocation points (). Assume that and are differentiable. Let , with , solve the gradient flow of the PINN loss
Then , and for every
where is the NTK of the PINN at .
This identity is the starting point of the kernel analysis: the NTK of a PINN governs how the boundary fit and the PDE residual evolve during training.
Formalization Note The paper does not specify the time domain of the gradient flow (3.7). Here it is on a time interval , with one-sided derivatives at its endpoints. The differentiability of the outputs in is implicit in the paper.
import Mathlib import Definitions.Def_PINNNeuralTangent_Basic open MeasureTheory ProbabilityTheory Filter Topology open scoped ContDiff
namespace PINNNeuralTangent
theorem pinn_training_dynamics {d : ℕ} {P : Type*} [Fintype P] [DecidableEq P] {Nb Nr : ℕ}
(Ω : Set (Fin d → ℝ)) (hΩ : Bornology.IsBounded Ω)
(Lop : ((Fin d → ℝ) → ℝ) → (Fin d → ℝ) → ℝ) (u : (Fin d → ℝ) → (P → ℝ) → ℝ)
(f g : (Fin d → ℝ) → ℝ) (xb : Fin Nb → Fin d → ℝ) (xr : Fin Nr → Fin d → ℝ)
(hxb : ∀ i, xb i ∈ frontier Ω) (hxr : ∀ j, xr j ∈ Ω)
(hu : ∀ i, Differentiable ℝ (bdryOutputs u xb i))
(hLu : ∀ j, Differentiable ℝ (opOutputs Lop u xr j))
(T : ℝ) (hT : 0 < T) (θ : ℝ → P → ℝ)
(hθ : IsGradFlow (pinnLoss (bdryOutputs u xb) (opOutputs Lop u xr)
(fun i => g (xb i)) (fun j => f (xr j))) θ T) :
(∀ t, ntkBlock (opOutputs Lop u xr) (bdryOutputs u xb) (θ t) =
(ntkBlock (bdryOutputs u xb) (opOutputs Lop u xr) (θ t)).transpose) ∧
∀ t ∈ Set.Icc 0 T,
HasDerivWithinAt
(fun s => Sum.elim (fun i => u (xb i) (θ s)) (fun j => opOutput Lop u (xr j) (θ s)))
(-(pinnNTK (bdryOutputs u xb) (opOutputs Lop u xr) (θ t)).mulVec
(Sum.elim (fun i => u (xb i) (θ t) - g (xb i))
(fun j => opOutput Lop u (xr j) (θ t) - f (xr j))))
(Set.Icc 0 T) t := by sorry
end PINNNeuralTangentRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix natural numbers , , and a finite index set of parameters. Points of are parameter vectors . If , is a single point. The data are:
- a bounded set . It is not assumed open, connected, nonempty or regular.
- an arbitrary map sending each function to another function . No linearity, locality or differential structure is assumed. It is only called an "operator" by name.
- an arbitrary function , the "network" .
- arbitrary functions .
- boundary points , each lying in the topological frontier .
- collocation points , each lying in . Since need not be open, they may also lie on .
Write and . That is, applies to the function and evaluates the result at .
Differentiability. Each and each is assumed to be (Fréchet) differentiable everywhere on .
Partial derivatives. For a function , the symbol means the ordinary derivative at of the one-variable function . By convention this is wherever that derivative does not exist.
Loss. The loss is
Gradient flow. Fix a real and a curve , . The curve is assumed to satisfy the following: for every , has a derivative at relative to , and that derivative equals
At and this is a one-sided derivative. Nothing is assumed about outside .
Kernel blocks. For families of functions and on , define the matrix
The full kernel is the block matrix
Conclusion. Under these hypotheses, both of the following hold.
- Transpose identity. For every real , including outside ,
Entrywise, this says at .
- Output dynamics. Consider the vector-valued map
For every , this map has a derivative at relative to (one-sided at the endpoints), and that derivative equals
Degenerate cases included by the quantifiers.
- or : the corresponding blocks and sums are empty.
- : every kernel entry is , and the flow is trivial.
- : then , so the hypotheses force .
- : every subset of the one-point space has empty frontier, so the boundary-point hypothesis is satisfiable only when .
The boundedness of is assumed, but nothing else in the statement refers to it.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.