§2, p. 631, after (2.6) — if f(x_t) does not tend to −∞, then lim inf ‖∇f(x_t)‖ = 0
ProvedGradErrors.Deterministic.liminf_grad_eq_zeroLet be continuously differentiable with -Lipschitz gradient, for all (standing assumption (2.1) of the paper). Let and () satisfy the recursion
where, for positive constants and every ,
- (descent direction, (2.2)) and ;
- (error bound, (2.3)) ;
- (stepsizes) , and .
If does not tend to , then
that is, for every there are infinitely many with .
In the proof of Proposition 1 this is the step between (2.6) and the full convergence .
Formalization Note is EuclideanSpace ℝ (Fin n), is the real inner product and is Mathlib's gradient f (the true gradient, since ContDiff ℝ 1 f is assumed). The Lipschitz constant is taken as L : ℝ≥0 with LipschitzWith L (gradient f); this is equivalent to (2.1) for some real constant . are arbitrary sequences: nothing about how they are produced is assumed beyond (2.2)–(2.3). The lim inf is written out as "for every , frequently", not as Lean's liminf, which takes a junk value on sequences that are not bounded. The page states the claim in the branch where converges; by (2.6) that branch is exactly the negation of .
import Mathlib open Filter Topology NNReal InnerProductSpace
namespace GradErrors.Deterministic
theorem liminf_grad_eq_zero {n : ℕ} (f : EuclideanSpace ℝ (Fin n) → ℝ) (hf : ContDiff ℝ 1 f)
(L : ℝ≥0) (hL : LipschitzWith L (gradient f))
(x s w : ℕ → EuclideanSpace ℝ (Fin n)) (γ : ℕ → ℝ)
(c₁ c₂ p q : ℝ) (hc₁ : 0 < c₁) (hc₂ : 0 < c₂) (hp : 0 < p) (hq : 0 < q)
(hx : ∀ t, x (t + 1) = x t + γ t • (s t + w t))
(h22a : ∀ t, c₁ * ‖gradient f (x t)‖ ^ 2 ≤ -⟪gradient f (x t), s t⟫_ℝ)
(h22b : ∀ t, ‖s t‖ ≤ c₂ * (1 + ‖gradient f (x t)‖))
(h23 : ∀ t, ‖w t‖ ≤ γ t * (q + p * ‖gradient f (x t)‖))
(hγ : ∀ t, 0 < γ t)
(hsum : Tendsto (fun T => ∑ t ∈ Finset.range T, γ t) atTop atTop)
(hsq : Summable (fun t => γ t ^ 2)) :
¬ Tendsto (fun t => f (x t)) atTop atBot →
∀ ε > 0, ∃ᶠ t in atTop, ‖gradient f (x t)‖ < ε := by sorry
end GradErrors.Deterministic
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.