Plain-English statement
Generic actual Hilbert feature derivative and visible ball bounds yield scalar potential derivative, tangent Riesz representation and joint residual-point field control. No manifold API identity is asserted. Fresh independent source and compiler audits accepted. Final root/reader gates and postmerge purification remain separate; no whole-model or convergence credit.
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 quadratic_feature_potential_tangent_gradient
{E H : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
[NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H]
(F : E → H) (D : E → E →L[ℝ] H)
(hF : ∀ w, HasFDerivAt F (D w) w)
(M₁ M₂ : ℝ) (hM₁ : 0 ≤ M₁) (hM₂ : 0 ≤ M₂)
(hBound : ∀ w : E, ‖w‖ ≤ 1 → ‖D w‖ ≤ M₁)
(hLip : ∀ w u : E, ‖w‖ ≤ 1 → ‖u‖ ≤ 1 → ‖D w-D u‖ ≤ M₂*‖w-u‖) :
let V : H → E → ℝ := fun r w => 2 * ⟪r,F w⟫_ℝ
let G : H → E → E := fun r w =>
(2 : ℝ) • ((D w).adjoint r - ⟪(D w).adjoint r,w⟫_ℝ • w)
(∀ r w, HasFDerivAt (V r) ((2 : ℝ) • innerSL ℝ ((D w).adjoint r)) w) ∧
(∀ r w, ‖w‖ = 1 →
⟪w,G r w⟫_ℝ = 0 ∧
(∀ v, ⟪w,v⟫_ℝ = 0 → ⟪G r w,v⟫_ℝ = 2 * ⟪r,D w v⟫_ℝ) ∧
‖G r w‖ ≤ 2 * M₁ * ‖r‖) ∧
∀ r q w u, ‖w‖ = 1 → ‖u‖ = 1 →
‖G r w-G q u‖ ≤ 2 * M₁ * ‖r-q‖ +
2 * (M₂+2*M₁) * ‖q‖ * ‖w-u‖ := by
dsimp only
have hAdj (w : E) (hw : ‖w‖ ≤ 1) (r : H) :
‖(D w).adjoint r‖ ≤ M₁ * ‖r‖ := by
have h := (D w).adjoint.le_opNorm r
rw [ContinuousLinearMap.adjoint.norm_map] at h
exact h.trans (mul_le_mul_of_nonneg_right (hBound w hw) (norm_nonneg _))
have hAdjDiff (w u : E) (hw : ‖w‖ ≤ 1) (hu : ‖u‖ ≤ 1) (q : H) :
‖((D w).adjoint-(D u).adjoint) q‖ ≤ (M₂*‖w-u‖)*‖q‖ := by
have h := ((D w).adjoint-(D u).adjoint).le_opNorm q
rw [← map_sub,ContinuousLinearMap.adjoint.norm_map] at h
simpa only [map_sub] using h.trans (mul_le_mul_of_nonneg_right (hLip w u hw hu) (norm_nonneg _))
have hFixed (q : H) (w u : E) (hw : ‖w‖ = 1) (hu : ‖u‖ = 1) :
‖P w ((D w).adjoint q) - P u ((D u).adjoint q)‖ ≤
(M₂+2*M₁) * ‖q‖ * ‖w-u‖ := by
have he : P w ((D w).adjoint q) - P u ((D u).adjoint q) =
P w (((D w).adjoint-(D u).adjoint) q) +
(P w ((D u).adjoint q) - P u ((D u).adjoint q)) := by
rw [ContinuousLinearMap.sub_apply,P_sub]
abel
rw [he]
calc
‖P w (((D w).adjoint-(D u).adjoint) q) +
(P w ((D u).adjoint q) - P u ((D u).adjoint q))‖ ≤
‖P w (((D w).adjoint-(D u).adjoint) q)‖ +
‖P w ((D u).adjoint q) - P u ((D u).adjoint q)‖ := norm_add_le _ _
_ ≤ ‖((D w).adjoint-(D u).adjoint) q‖ + 2 * ‖(D u).adjoint q‖ * ‖w-u‖ :=
add_le_add (P_norm_le _ _ hw) (P_point_lip _ _ _ hw hu)
_ ≤ (M₂*‖w-u‖)*‖q‖ + 2 * (M₁*‖q‖) * ‖w-u‖ := by
gcongr
· exact hAdjDiff w u hw.le hu.le q
· exact hAdj u hu.le q
_ = (M₂+2*M₁)*‖q‖*‖w-u‖ := by ring
refine ⟨?_,?_,?_⟩
· intro r w
have he : (innerSL ℝ r).comp (D w) = innerSL ℝ ((D w).adjoint r) := by
ext v
simpa only [ContinuousLinearMap.comp_apply,innerSL_apply_apply] using
((D w).adjoint_inner_left v r).symm
have h := (innerSL ℝ r).hasFDerivAt.comp w (hF w)
rw [he] at h
convert h.const_smul (2 : ℝ) using 1 <;>
(first | rfl | (ext q; simp [Pi.smul_apply,smul_eq_mul,innerSL_apply_apply]))
· intro r w hw
refine ⟨?_,?_,?_⟩
· simp only [inner_smul_right,inner_sub_right,inner_smul_right,real_inner_self_eq_norm_sq,hw]
rw [real_inner_comm w ((D w).adjoint r)]
ring
· intro v hv
simp only [real_inner_smul_left,inner_sub_left,real_inner_smul_left,hv,mul_zero,
sub_zero,ContinuousLinearMap.adjoint_inner_left]
· change ‖(2 : ℝ) • P w ((D w).adjoint r)‖ ≤ _
rw [norm_smul,Real.norm_of_nonneg (by norm_num : (0:ℝ) ≤ 2)]
exact (mul_le_mul_of_nonneg_left ((P_norm_le _ _ hw).trans (hAdj w hw.le r))
(by norm_num : (0:ℝ) ≤ 2)).trans_eq (by ring)
· intro r q w u hw hu
change ‖(2 : ℝ) • P w ((D w).adjoint r) - (2 : ℝ) • P u ((D u).adjoint q)‖ ≤ _
rw [← smul_sub,norm_smul,Real.norm_of_nonneg (by norm_num : (0:ℝ) ≤ 2)]
have he : P w ((D w).adjoint r) - P u ((D u).adjoint q) =
P w ((D w).adjoint (r-q)) +
(P w ((D w).adjoint q) - P u ((D u).adjoint q)) := by
rw [map_sub,P_sub]
abel
have hn : ‖P w ((D w).adjoint r) - P u ((D u).adjoint q)‖ ≤
M₁*‖r-q‖ + (M₂+2*M₁)*‖q‖*‖w-u‖ := by
rw [he]
exact (norm_add_le _ _).trans (add_le_add
((P_norm_le _ _ hw).trans (hAdj w hw.le (r-q))) (hFixed q w u hw hu))
exact (mul_le_mul_of_nonneg_left hn (by norm_num : (0:ℝ) ≤ 2)).trans_eq (by ring)
end AutoSamplingTheory.TechnicalLemmas.Geometry.QuadraticFeatureTangentGradient
Open AutoSamplingTheory/TechnicalLemmas/Geometry/QuadraticFeatureTangentGradient.lean:41published source at ed709a7f320d
Proof architecture
Generic probability, optimisation and sphere-feature prerequisites; concrete model compositions remain separate
Lean proof walkthrough
- Read the quantified variables and typeclass brackets as part of the mathematical statement; inferred arguments are not missing assumptions.
- `intro` introduces quantified hypotheses into the local proof context.
- `have` creates a named intermediate mathematical fact.
- `calc` records an equality or inequality chain matching a paper calculation.
- `rw` rewrites by an established identity.
- `simp` normalizes through registered definitional and theorem rewrites.
- `refine` instantiates a reusable theorem while leaving explicit subgoals.
- `exact` closes the current goal with an already typed term.
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.