Theorem 3 — Transformation of the Gradient and Hessian
ProvedDinhSharpness.DerivativeTransformationLet be continuous and satisfy the local twice Fréchet differentiability condition at . For every , the same regularity holds at , and for all parameter directions ,
No critical-point or minimum assumption is imposed here. Formalization note: direct source Theorem 3, expressing its row-gradient formula as equality of linear functionals and its Hessian congruence as equality on two arguments. Transport of local regularity records that these are actual derivatives.
Source: Laurent Dinh, Razvan Pascanu, Samy Bengio, Yoshua Bengio, Sharp Minima Can Generalize For Deep Nets, ICML 2017, arXiv:1703.04933v2, https://arxiv.org/abs/1703.04933v2; Section 4.2, PDF p. 5, Theorem 3 and its unnumbered first- and second-derivative identities; Section 2, PDF p. 2.
Notation and network conventions
Let be the input dimension and hidden width. The parameter consists of and , with the Euclidean norm on all entries. The scalar-output network is
There are no biases and no output activation. For any real-valued functional on prediction functions, . In particular, losses with additional parameter-dependent penalties are not included unless they also admit this representation. The positive rescaling is
Observational equivalence means equality of predictions on every input.
The local regularity condition means that is Fréchet differentiable at every point of some neighborhood of , and the map is Fréchet differentiable at . Write , a continuous bilinear form. Its norm is
Under Euclidean/Riesz identification, this is the spectral operator norm of the Hessian matrix. A local minimum uses the usual Euclidean neighborhood; it need not be isolated or global. No probability model is assumed: the claim is deterministic and compares the same prediction function.
Formalization note: the network and scaling directly encode Section 3, Definition 3 (PDF p. 3), Theorem 1 and Definition 5 (PDF p. 4). The function-based continuous-loss convention is Section 2, PDF p. 2. For the Hessian targets, the local regularity condition makes the source's implicit second differentiability explicit without requiring global smoothness or continuity of second derivatives. The model defines actual Fréchet derivatives, not an arbitrary matrix constrained by desired conclusions. Relevant displayed formulas have no equation numbers.
import Definitions.Def_DinhSharpness_Model
namespace DinhSharpness
theorem DerivativeTransformation :
∀ (d h : ℕ), 0 < d → 0 < h →
∀ (ℓ : (Input d → ℝ) → ℝ), Continuous (parameterLoss (h := h) ℓ) →
∀ (θ : Parameter d h), TwiceDifferentiableAt (parameterLoss ℓ) θ →
∀ (α : ℝ), 0 < α →
TwiceDifferentiableAt (parameterLoss ℓ) (scale α θ) ∧
(∀ u : Parameter d h,
fderiv ℝ (parameterLoss ℓ) (scale α θ) u =
fderiv ℝ (parameterLoss ℓ) θ (scale α⁻¹ u)) ∧
(∀ u v : Parameter d h,
hessian (parameterLoss ℓ) (scale α θ) u v =
hessian (parameterLoss ℓ) θ (scale α⁻¹ u) (scale α⁻¹ v)) := by sorry
end DinhSharpnessRead-back
What the Lean code literally says, in plain math · gpt-6
For every pair of natural numbers with and , identify the input space with Euclidean and the parameter space with the Euclidean space , whose coordinates are indexed by the disjoint union . For every functional , define the scalar parameter function by , and suppose that is continuous on all of . Write for the real Fréchet derivative, viewed as a continuous linear map , and write for the real Fréchet derivative of the map , viewed as a continuous linear map from to the space of continuous linear maps ; these derivative operators take the zero map at points where the corresponding function is not differentiable. For every parameter , suppose that there is a neighborhood of on which is differentiable at every point, and that the map is differentiable at . Then, for every real , at the scaled parameter there is likewise a neighborhood on which is differentiable at every point, and the map is differentiable at ; moreover, for every direction and every pair of directions , respectively, and . Thus the inverse scaling in each direction multiplies its matrix coordinates by and its final coordinates by . The quantifiers exclude zero input dimension, zero hidden dimension, and zero or negative scaling factors, so no inverse of zero occurs in these conclusions; they include arbitrary zero coordinates, the zero parameter, and zero directions. No regularity assumption is imposed on itself beyond the stated continuity and differentiability conditions on its composite , and differentiability of is assumed at only, rather than throughout a neighborhood.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.