Plain-English statement
- A minimum gradient norm is attained on the supplied time interval, and is bounded by the square root of the initial objective gap divided by elapsed time.
Read the mathematics first, then descend into Lean
You do not need to know Lean before opening this panel. The page keeps the paper-level theorem, rigorous proof obligations, exact Lean declaration, and proof dependencies as separate layers so a first-time reader can move down one layer at a time.
Proof architecture
Start with the tree when learning: prerequisites sit below the theorem and downstream results sit above it. Switch to the network when you want to understand where this declaration lives in the local formal library. Every mapped node is clickable.
Graph rule: only dependencies found by the ASTIS source scan are drawn. Missing tactic indirection is treated as an under-approximation; the site never invents an edge just to make a prettier graph.
How to read the exact Lean declaration
Read a Lean theorem left-to-right exactly as you would unpack a mathematical sentence: name → ambient types → automatically inferred structures → explicit hypotheses → conclusion → proof. Then read the proof top-to-bottom as transformations of the current goal.
- NameWhat reusable mathematical fact is being created?
- ParametersWhich symbols are arbitrary, and which structures are inferred by typeclass search?
- PropositionAfter the colon, translate the Lean expression back into a paper statement.
- Proof actionsAfter
by, ask what each tactic does to the mathematical goal—not only what syntax it uses.
Syntax used on this page
This glossary is filtered to syntax that actually occurs in the declaration above. Open a symbol only when you meet it, rather than memorizing Lean grammar in advance.
Source voice and ASTIS voice stay separate
When Samplinglib shows a short quotation from Chewi, it is labeled as a source excerpt and linked to the canonical book page. Intuition, expanded proof steps, hidden regularity assumptions, and Lean explanations are ASTIS-authored commentary. A quotation never substitutes for a formal proof, and an ASTIS explanation is never attributed to the textbook author.
Lean statement
theorem exists_min_norm_le {f : E → ℝ} {X : ℝ → E} {z : E} {T : ℝ}
(hT : 0 < T) (hf : ContDiff ℝ 1 f) (hz : IsMinOn f univ z)
(hX : ContinuousOn X (Icc 0 T))
(hflow : ∀ t ∈ Ico 0 T, HasDerivWithinAt X (-gradient f (X t)) (Ici t) t) :
∃ s ∈ Icc 0 T, IsMinOn (fun u => ‖gradient f (X u)‖) (Icc 0 T) s ∧
‖gradient f (X s)‖ ≤ Real.sqrt ((f (X 0) - f z) / T) := by
have hdf : Differentiable ℝ f := hf.differentiable (by norm_num)
have hcg : Continuous (gradient f) :=
(InnerProductSpace.toDual ℝ E).symm.continuous.comp (hf.continuous_fderiv (by norm_num))
obtain ⟨s, hs, hmin⟩ := isCompact_Icc.exists_isMinOn
(nonempty_Icc.mpr hT.le) (hcg.comp_continuousOn hX).norm
refine ⟨s, hs, hmin, ?_⟩
have hd (u : ℝ) (hu : u ∈ Ico 0 T) :
HasDerivWithinAt (fun v => f (X v)) (-‖gradient f (X u)‖ ^ 2) (Ici u) u := by
have hg : HasFDerivAt f (InnerProductSpace.toDual ℝ E (gradient f (X u))) (X u) :=
(hdf (X u)).hasGradientAt
simpa only [Function.comp_def, InnerProductSpace.toDual_apply_apply,
inner_neg_right, real_inner_self_eq_norm_sq] using
hg.comp_hasDerivWithinAt u (hflow u hu)
have hb := le_gronwallBound_of_liminf_deriv_right_le
(f' := fun u => -‖gradient f (X u)‖ ^ 2) (δ := f (X 0))
(K := 0) (ε := -‖gradient f (X s)‖ ^ 2)
(hf.continuous.comp_continuousOn hX)
(fun u hu r hr => by simpa [slope] using (hd u hu).liminf_right_slope_le hr)
le_rfl (fun u hu => by
have hm := hmin (show u ∈ Icc 0 T from ⟨hu.1, hu.2.le⟩)
have hsq := sq_le_sq₀ (norm_nonneg (gradient f (X s))) (norm_nonneg (gradient f (X u)))
simpa using (neg_le_neg (hsq.mpr hm))) T ⟨hT.le, le_rfl⟩
simp only [gronwallBound_K0, sub_zero] at hb
apply (Real.le_sqrt (norm_nonneg _) (div_nonneg
(sub_nonneg.mpr (hz (mem_univ _))) hT.le)).mpr
apply (le_div_iff₀ hT).mpr
have hzT : f z ≤ f (X T) := hz (mem_univ (X T))
change f (X T) ≤ _ at hb
nlinarith
end AutoSamplingTheory.TechnicalLemmas.Analysis.GradientFlowStationarity
Open AutoSamplingTheory/TechnicalLemmas/Analysis/GradientFlowStationarity.lean:23published source at 0e31a3cda412
Proof architecture
Attained minimum of actual gradient norm over a positive time interval, bounded by the square root of initial objective gap divided by time.
Lean proof walkthrough
- Read the quantified variables and typeclass brackets as part of the mathematical statement; inferred arguments are not missing assumptions.
- `have` creates a named intermediate mathematical fact.
- `simp` normalizes through registered definitional and theorem rewrites.
- `apply` reduces the goal to the hypotheses of a reusable theorem.
- `refine` instantiates a reusable theorem while leaving explicit subgoals.
- `simpa` closes the goal after a controlled simplification of a typed result.
Why the statement has this shape
The declaration is kept at the reusable level recorded by its Registry tags and direct consumers. Explicit measures, spaces, wrappers, and regularity hypotheses expose interfaces that paper notation often infers. A theorem card explains those interfaces but never widens the compiled statement.
Hidden assumptions and non-claims
- Totalized `fderiv` values must not be read as a differentiability theorem.
- Genuine differentiability is localized to the hypotheses shown in the Lean statement.