(34) — telescoping representation of J_xF_l(θ; x) − J_xF_l(θ; x′)
ProvedCertDRO.NNSmooth.eq_34Let every operation , , of a network of depth be differentiable. Then for every and all inputs ,
where products are taken in network order, the empty product () is the identity, and .
This is the telescoping identity for a difference of products of linear maps, applied to the Jacobians of Lemma 6; the proof of the second half of Proposition 5 bounds each of (a), (b), (c) separately.
Formalization Note The paper's display first writes the difference of products as a "product of differences"; that line is a misprint (a difference of products is not a product of differences) and is not formalized. Only the telescoped sum, which is what the proof uses, is stated. In Lean the summation index is 0-based (summand is the paper's ), and term (a) is the tail product of the definition file, from layer to layer , at the input .
import Mathlib import Definitions.Def_CertDRO_NNSmooth_Network
namespace CertDRO.NNSmooth
open Network
/-- (34) (§B.8, p. 45), the telescoping identity: if every `σ_l` of a depth-`L` network is
differentiable, then for `l ≤ L` and inputs `x, x'`,
`J_x F_l(θ; x) − J_x F_l(θ; x') = ∑_{j=1}^{l} (a)_j · (b)_j · (c)_j` with
(a) the tail product `∏_{k=j+1}^{l} ∇σ_k(θ_k · F_{k-1}(θ; x')) · θ_k` (at `x'`),
(b) `∇σ_j(θ_j · F_{j-1}(θ; x)) − ∇σ_j(θ_j · F_{j-1}(θ; x'))`, and
(c) `θ_j · J_x F_{j-1}(θ; x)` (at `x`).
In 0-based indices the summand `j ∈ range l` is the paper's `j + 1`. -/
theorem eq_34 (N : Network) (L : ℕ) (hσ : ∀ l < L, Differentiable ℝ (N.σ l)) :
∀ l ≤ L, ∀ x x' : E (N.dO 0),
fderiv ℝ (N.F l) x - fderiv ℝ (N.F l) x' =
∑ j ∈ Finset.range l, (N.tailJac x' (j + 1) l).comp
((fderiv ℝ (N.σ j) (N.θ j (N.F j x)) - fderiv ℝ (N.σ j) (N.θ j (N.F j x'))).comp
((N.θ j).comp (fderiv ℝ (N.F j) x))) := by sorry
end CertDRO.NNSmooth
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.