Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 4 — Arbitrarily Sharp Observationally Equivalent Minima

Proved
DinhSharpness.ArbitrarilySharpEquivalentMinima

by Minghui · Sep 26, 2026 · Mathlib c5ea003 (Lean v4.30.0)

analysismachine-learningneural-networks

Let the parameter loss LLL be continuous. Suppose θ\thetaθ is a local minimum, DL(θ)=0DL(\theta)=0DL(θ)=0, the local twice Fréchet differentiability condition holds, and HL(θ)≠0H_L(\theta)\ne0HL​(θ)=0. Then

∀M>0 ∃α>0:M≤∥HL(Tαθ)∥.\forall M>0\ \exists\alpha>0:\quad M\le\|H_L(T_\alpha\theta)\|.∀M>0 ∃α>0:M≤∥HL​(Tα​θ)∥.

For that same α\alphaα, predictions on every input and the loss value are unchanged; TαθT_\alpha\thetaTα​θ is again a critical local minimum satisfying the same local regularity. No condition W≠0W\ne0W=0 or v≠0v\ne0v=0 is added.

Formalization note: direct source Theorem 4, including its accompanying observational-equivalence interpretation and explicitly stating the regularity implicit in the Hessian notation. This is the full arbitrary-dimensional, one-hidden-layer result, not a prescribed scalar example or an assumed Hessian-transformation rule. It asserts a parameterization dependence of sharpness; it is not a statistical generalization bound.

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 4 (Sharpest direction); proof and interpretation continue on PDF p. 6; Section 2, PDF p. 2. Displays are unnumbered.

Notation and network conventions

Let d,h≥1d,h\ge1d,h≥1 be the input dimension and hidden width. The parameter θ=(W,v)\theta=(W,v)θ=(W,v) consists of W∈Rd×hW\in\mathbb R^{d\times h}W∈Rd×h and v∈Rhv\in\mathbb R^hv∈Rh, with the Euclidean norm on all n=dh+hn=dh+hn=dh+h entries. The scalar-output network is

fθ(x)=∑j=1hmax⁡ ⁣(∑i=1dxiWij,0)vj,x∈Rd.f_\theta(x)=\sum_{j=1}^h \max\!\left(\sum_{i=1}^d x_i W_{ij},0\right)v_j, \qquad x\in\mathbb R^d.fθ​(x)=j=1∑h​max(i=1∑d​xi​Wij​,0)vj​,x∈Rd.

There are no biases and no output activation. For any real-valued functional ℓ\ellℓ on prediction functions, L(θ)=ℓ(fθ)L(\theta)=\ell(f_\theta)L(θ)=ℓ(fθ​). In particular, losses with additional parameter-dependent penalties are not included unless they also admit this representation. The positive rescaling is

Tα(W,v)=(αW,α−1v),α>0.T_\alpha(W,v)=(\alpha W,\alpha^{-1}v),\qquad \alpha>0.Tα​(W,v)=(αW,α−1v),α>0.

Observational equivalence means equality of predictions on every input.

The local regularity condition means that LLL is Fréchet differentiable at every point of some neighborhood of θ\thetaθ, and the map z↦DL(z)z\mapsto DL(z)z↦DL(z) is Fréchet differentiable at θ\thetaθ. Write HL(θ)=D(DL)(θ)H_L(\theta)=D(DL)(\theta)HL​(θ)=D(DL)(θ), a continuous bilinear form. Its norm is

∥HL(θ)∥=sup⁡∥u∥≤1, ∥w∥≤1∣HL(θ)[u,w]∣.\|H_L(\theta)\|=\sup_{\|u\|\le1,\,\|w\|\le1} |H_L(\theta)[u,w]|.∥HL​(θ)∥=∥u∥≤1,∥w∥≤1sup​∣HL​(θ)[u,w]∣.

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.

Preamble
import Definitions.Def_DinhSharpness_Model
Formal statement
namespace DinhSharpness
theorem ArbitrarilySharpEquivalentMinima :
  ∀ (d h : ℕ), 0 < d → 0 < h →
    ∀ (ℓ : (Input d → ℝ) → ℝ), Continuous (parameterLoss (h := h) ℓ) →
      ∀ (θ : Parameter d h), TwiceDifferentiableAt (parameterLoss ℓ) θ →
        IsLocalMin (parameterLoss ℓ) θ → fderiv ℝ (parameterLoss ℓ) θ = 0 →
          hessian (parameterLoss ℓ) θ ≠ 0 →
            ∀ M : ℝ, 0 < M → ∃ α : ℝ, 0 < α ∧
              prediction (scale α θ) = prediction θ ∧
              parameterLoss ℓ (scale α θ) = parameterLoss ℓ θ ∧
              IsLocalMin (parameterLoss ℓ) (scale α θ) ∧
              TwiceDifferentiableAt (parameterLoss ℓ) (scale α θ) ∧
              fderiv ℝ (parameterLoss ℓ) (scale α θ) = 0 ∧
              M ≤ ‖hessian (parameterLoss ℓ) (scale α θ)‖ := by sorry
end DinhSharpness
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 4 (Sharpest direction); proof and interpretation continue on PDF p. 6; Section 2, PDF p. 2. Displays are unnumbered.
Read-back

What the Lean code literally says, in plain math · gpt-6

For every pair of positive natural numbers d,hd,hd,h, identify the input space with Rd\mathbb R^dRd and the parameter space with Rd×h×Rh\mathbb R^{d\times h}\times\mathbb R^hRd×h×Rh, with Euclidean norm ∥(W,v)∥=(∑i=1d∑j=1hWij2+∑j=1hvj2)1/2\|(W,v)\|=(\sum_{i=1}^d\sum_{j=1}^h W_{ij}^2+\sum_{j=1}^h v_j^2)^{1/2}∥(W,v)∥=(∑i=1d​∑j=1h​Wij2​+∑j=1h​vj2​)1/2. For every functional ℓ:(Rd→R)→R\ell:(\mathbb R^d\to\mathbb R)\to\mathbb Rℓ:(Rd→R)→R, define fW,v(x)=∑j=1hmax⁡{∑i=1dxiWij,0} vjf_{W,v}(x)=\sum_{j=1}^h\max\{\sum_{i=1}^d x_iW_{ij},0\}\,v_jfW,v​(x)=∑j=1h​max{∑i=1d​xi​Wij​,0}vj​ for every x∈Rdx\in\mathbb R^dx∈Rd, and define L(W,v)=ℓ(fW,v)L(W,v)=\ell(f_{W,v})L(W,v)=ℓ(fW,v​). Write DL(z)DL(z)DL(z) for the real Fréchet derivative, with value the zero linear map at points where LLL is not differentiable. Assume LLL is continuous on the entire parameter space. For every parameter θ=(W,v)\theta=(W,v)θ=(W,v), suppose that LLL is Fréchet differentiable at every point of some neighborhood of θ\thetaθ, that the map z↦DL(z)z\mapsto DL(z)z↦DL(z) into the space of continuous real linear functionals is Fréchet differentiable at θ\thetaθ, that L(θ)≤L(z)L(\theta)\le L(z)L(θ)≤L(z) for every zzz in some neighborhood of θ\thetaθ, that DL(θ)=0DL(\theta)=0DL(θ)=0, and that Hθ:=D(z↦DL(z))(θ)≠0H_\theta:=D(z\mapsto DL(z))(\theta)\ne0Hθ​:=D(z↦DL(z))(θ)=0 as a continuous linear map from the parameter space to its space of continuous real linear functionals. Then, for every real M>0M>0M>0, there exists a real α>0\alpha>0α>0 such that, with θα=(αW,α−1v)\theta_\alpha=(\alpha W,\alpha^{-1}v)θα​=(αW,α−1v), one has fθα(x)=fθ(x)f_{\theta_\alpha}(x)=f_\theta(x)fθα​​(x)=fθ​(x) for every x∈Rdx\in\mathbb R^dx∈Rd, L(θα)=L(θ)L(\theta_\alpha)=L(\theta)L(θα​)=L(θ), and L(θα)≤L(z)L(\theta_\alpha)\le L(z)L(θα​)≤L(z) for every zzz in some neighborhood of θα\theta_\alphaθα​; moreover, LLL is Fréchet differentiable at every point of some neighborhood of θα\theta_\alphaθα​, the map z↦DL(z)z\mapsto DL(z)z↦DL(z) is Fréchet differentiable at θα\theta_\alphaθα​, DL(θα)=0DL(\theta_\alpha)=0DL(θα​)=0, and M≤∥D(z↦DL(z))(θα)∥M\le\|D(z\mapsto DL(z))(\theta_\alpha)\|M≤∥D(z↦DL(z))(θα​)∥, where the final norm is the iterated operator norm, equivalently sup⁡∥a∥≤1, ∥b∥≤1∣D(z↦DL(z))(θα)[a][b]∣\sup_{\|a\|\le1,\ \|b\|\le1}|D(z\mapsto DL(z))(\theta_\alpha)[a][b]|sup∥a∥≤1, ∥b∥≤1​∣D(z↦DL(z))(θα​)[a][b]∣. The dimensions d=0d=0d=0 and h=0h=0h=0 are excluded by the hypotheses; no entry of WWW or vvv is individually required to be nonzero, and the quantified loss functional ℓ\ellℓ has no additional assumptions beyond the stated properties of its composite LLL. The inverse α−1\alpha^{-1}α−1 is taken only for the positive, hence nonzero, scale supplied by the conclusion.

Human review
  • Endorsed by Shuze Chen · Sep 26, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Minghui · Sep 26, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me