Source audit
Definitions, theorems, assumptions, proof route, and exact anchors.
Stable source-facing chapter environment inside the shared Samplinglib reader.
Definitions, theorems, assumptions, proof route, and exact anchors.
Search Mathlib, Optlib, CvxLean, and shared Samplinglib interfaces; preserve the exact Chewi statement and use a small adapter when conventions differ.
Only genuinely missing mathematical edges become theorem-sized tasks.
Dependencies, consumers, cross-library bridges, and reusable shared interfaces.
Chenyi Li and Ziyu Wang, Optlib, Apache-2.0. ASTIS mathematical restatement.
Optlib 5da27c5f95aa6a8a45b8c14b968ade4c13ff18c3 · Lower_Strong_Convex, lines 144–155; ConvexFunction.lean::monotone_gradient_convex' is its upstream convexity dependency · faithful paraphrase
Let E be a complete real inner-product space, s a convex subset, f:E→ℝ, g:E→E and m∈ℝ. Suppose f has ambient gradient g(z) at every z∈s. If ⟨g(y)−g(x),y−x⟩≥m‖y−x‖² for every x,y∈s, then f is m-strongly convex on s, in the chord sense with quadratic correction m/2.
Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.
AutoSamplingTheory.TechnicalLemmas.Analysis.StrongConvexGradientConverse.strongConvexOn_of_gradient_inner_lower_bound · theorem · Teaching coverage
On a convex subset of a complete real inner-product space, a quantitative lower bound on differences of genuine gradients forces the matching strong-convexity chord inequality.
Fix x,y in the domain, put d=y−x and N=‖d‖². Convexity of the domain keeps the full segment inside s. Subtract a scalar quadratic along that segment.
Local p and q select this segment; hp uses Convex.add_smul_sub_mem.
Apply the chain rule to f composed with the affine segment, then differentiate the quadratic. The ambient gradient hypothesis supplies differentiability even at the endpoints. Therefore q is continuous on [0,1] and differentiable on its interior.
hq combines HasGradientAt.hasFDerivAt, HasFDerivAt.comp_hasDerivAt and derivatives of powers and scalar products.
For 0≤u<v≤1, the displacement is p(v)−p(u)=(v−u)d. Apply the gradient bound and divide by the positive parameter difference. Subtracting the quadratic derivative gives monotonicity of q′. Equal parameters require no division.
hdis rewrites the displacement. hscaled rewrites norm_smul using |v−u|²=(v−u)². le_of_mul_le_mul_left cancels v−u>0; hmon handles equality separately.
The mean value theorem implies that a continuous scalar function with nondecreasing derivative is convex on the interval. All three hypotheses have been established, so the chord bound for q follows.
hconv applies Mathlib MonotoneOn.convexOn_of_deriv. hq.deriv identifies the library derivative with the supplied q′. hchord evaluates the resulting ConvexOn inequality at 0 and 1.
Expand q at the three parameters and use a=1−b. The difference between b and b² is ab, producing exactly the strong-convexity correction. Nothing here requires m≥0.
hpoint identifies ax+by with p(b). norm_sub_rev aligns norm conventions; substitution of a=1−b and ring arithmetic finish the inequality.
Convex ℝ s and supplied HasGradientAt on s, together with the quantitative gradient bound for every ordered pair of domain points, imply StrongConvexOn s m f. The inherited CompleteSpace assumption is explicit.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem strongConvexOn_of_gradient_inner_lower_bound
{s : Set E} {f : E → ℝ} {m : ℝ} {grad : E → E}
(hs : Convex ℝ s)
(hgrad : ∀ z ∈ s, HasGradientAt f (grad z) z)
(hmono : ∀ x ∈ s, ∀ y ∈ s,
m * ‖y - x‖ ^ 2 ≤ inner ℝ (grad y - grad x) (y - x)) :
StrongConvexOn s m fOne segment-local quadratic correction reduces the target to Mathlib scalar derivative monotonicity. Equal segment parameters are separated before positive cancellation. The final chord bound uses the exact m/2 normalization.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem strongConvexOn_of_gradient_inner_lower_bound
{s : Set E} {f : E → ℝ} {m : ℝ} {grad : E → E}
(hs : Convex ℝ s)
(hgrad : ∀ z ∈ s, HasGradientAt f (grad z) z)
(hmono : ∀ x ∈ s, ∀ y ∈ s,
m * ‖y - x‖ ^ 2 ≤ inner ℝ (grad y - grad x) (y - x)) :
StrongConvexOn s m f := by
refine ⟨hs, ?_⟩
intro x hx y hy a b ha hb hab
let p : ℝ → E := fun t => x + t • (y - x)
let q : ℝ → ℝ := fun t => f (p t) - m / 2 * t ^ 2 * ‖y - x‖ ^ 2
let q' : ℝ → ℝ := fun t => inner ℝ (grad (p t)) (y - x) - m * t * ‖y - x‖ ^ 2
have hp : ∀ t ∈ Icc (0 : ℝ) 1, p t ∈ s := by
intro t ht
exact hs.add_smul_sub_mem hx hy ht
have hq : ∀ t ∈ Icc (0 : ℝ) 1, HasDerivAt q (q' t) t := by
intro t ht
have hline : HasDerivAt (fun u => f (p u))
(inner ℝ (grad (p t)) (y - x)) t := by
have hpderiv : HasDerivAt p (y - x) t := by
simpa [p] using ((hasDerivAt_id t).smul_const (y - x)).const_add x
convert! (hgrad (p t) (hp t ht)).hasFDerivAt.comp_hasDerivAt t hpderiv using 1
have hquad := (((hasDerivAt_id t).pow 2).const_mul (m / 2)).mul_const (‖y - x‖ ^ 2)
convert! hline.sub hquad using 1
simp only [q', id_eq]
ring
have hmon : MonotoneOn q' (Icc (0 : ℝ) 1) := by
intro u hu v hv huv
rcases eq_or_lt_of_le huv with rfl | huv
· exact le_rfl
have h := hmono (p u) (hp u hu) (p v) (hp v hv)
have hdis : p v - p u = (v - u) • (y - x) := by
simp only [p, add_sub_add_left_eq_sub, sub_smul]
rw [hdis, inner_smul_right, norm_smul, Real.norm_eq_abs, mul_pow, sq_abs] at h
have hscaled : (v - u) * (m * (v - u) * ‖y - x‖ ^ 2) ≤
(v - u) * inner ℝ (grad (p v) - grad (p u)) (y - x) := by
nlinarith [h]
have hbound := le_of_mul_le_mul_left hscaled (sub_pos.mpr huv)
rw [inner_sub_left] at hbound
dsimp [q']
linarith
have hconv : ConvexOn ℝ (Icc (0 : ℝ) 1) q := by
apply MonotoneOn.convexOn_of_deriv (convex_Icc (0 : ℝ) 1)
(fun t ht => (hq t ht).continuousAt.continuousWithinAt)
(fun t ht => (hq t (interior_subset ht)).differentiableAt.differentiableWithinAt)
intro u hu v hv huv
rw [(hq u (interior_subset hu)).deriv, (hq v (interior_subset hv)).deriv]
exact hmon (interior_subset hu) (interior_subset hv) huv
have hchord := hconv.2 (show (0 : ℝ) ∈ Icc 0 1 by norm_num)
(show (1 : ℝ) ∈ Icc 0 1 by norm_num) ha hb hab
have hpoint : a • x + b • y = p b := by
have ha' : a = 1 - b := by linarith
simp [p, ha', sub_smul, smul_sub]
abel
rw [hpoint]
simp only [smul_eq_mul, mul_zero, mul_one, zero_add] at hchord ⊢
norm_num [q, p] at hchord
rw [norm_sub_rev] at hchord
have ha' : a = 1 - b := by linarith
rw [ha'] at hchord ⊢
dsimp [p]
nlinarith [hchord]
end AutoSamplingTheory.TechnicalLemmas.Analysis.StrongConvexGradientConverse| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Complete real inner-product space, convex domain, ambient gradients on the domain; arbitrary real modulus. | Identical space/domain/gradient/modulus hypotheses; ordered pairs are written with y−x instead of x−y. | same | Swapping the universally quantified endpoints reconciles the gradient bound without changing the normalization or assumptions. |
| Supplied HasGradientAt at every domain point. | Continuity on each closed segment and differentiability on its interior are derived from those ambient gradients. | same | No extra regularity hypothesis is added. Measures, representatives, integrability and domination do not apply to this mean-value proof; endpoints are covered by the given gradients. |
| Chewi uses Euclidean whole-space C¹ and α≥0 for the corresponding implication. | The primary source here is the more general Optlib domain-local supplied-gradient statement with arbitrary m. | generalization | This comparison explains the intended textbook use, not a source repair or a claim that the integral proof has been reproduced. |
Exact pinned Optlib statement. Chewi Proposition 1.6 (1.5)→(1.3) is a potential whole-space C¹ specialization; its source-specialization obligation and full equivalence are not marked closed by this shared item.
Encoder–denoiser: source-reviewed · equivalent-after-elaboration
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
Existing Optlib mathematics adapted to pinned Mathlib 4.33.0. This is a compatibility integration, not a claim of first formalization. The implementation uses a segment-local quadratic correction instead of importing Optlib’s global quadratic-shift dependency chain.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
Sinho Chewi, Lectures on Optimization. ASTIS restatement, not quoted prose; no endorsement implied.
arXiv:2605.07006v1 · §1.2, Definition 1.5 and Proposition 1.6; equations (1.3)–(1.6) · faithful paraphrase
For a continuously differentiable real-valued function on Euclidean space and a nonnegative modulus, the chord inequality, quadratic lower model and gradient monotonicity inequality below are equivalent. Under twice continuous differentiability they are also equivalent to the Hessian bound.
Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.
AutoSamplingTheory.TechnicalLemmas.Analysis.StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn · theorem · Teaching coverage
On a convex subset of a real Hilbert space, a strongly convex function lies above its tangent model by a quadratic correction, provided its genuine gradients exist at the domain points.
Set v=y−x and p(t)=x+tv. The chord inequality gives
path is the affine segment; hpoint rewrites the convex combination. hsc.2 supplies the chord inequality.
Rearrange and divide by t:
The existing Geometry.GeodesicConvexity.firstOrder_geodesicConvexity parent handles the positive-parameter rearrangement; ASTIS does not duplicate that proof.
The genuine gradient identifies the difference-quotient limit below. Pass to the limit in the preceding inequality; the existing ASTIS firstOrder_geodesicConvexity theorem packages this scalar limiting step.
hline and hderiv obtain the real segment derivative from HasGradientAt; hfirst applies the scalar limit theorem and simpa reconciles norm and distance.
StrongConvexOn includes convexity of s and the chord inequality with the normalization m/2. HasGradientAt is an ambient derivative of f at each z∈s, including boundary points; it is not merely a derivative within s or a totalized gradient value. m is an arbitrary real number. No measure, integration or continuity of the gradient field is assumed. CompleteSpace is retained from the reused Hilbert-space API.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem firstOrder_lower_bound_of_strongConvexOn
{s : Set E} {f : E → ℝ} {m : ℝ} {grad : E → E}
(hsc : StrongConvexOn s m f)
(hgrad : ∀ z ∈ s, HasGradientAt f (grad z) z)
{x y : E} (hx : x ∈ s) (hy : y ∈ s) :
f y ≥ f x + inner ℝ (grad x) (y - x) + m / 2 * ‖y - x‖ ^ 2The local definitions path and isSelected encode the chosen affine segment; hconvex rewrites the Mathlib chord inequality into the geodesic parent's normalization. hgrad supplies HasFDerivAt, then HasLineDerivAt; hderiv identifies the real derivative of the segment composition. simpa reconciles dist and norm conventions.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem firstOrder_lower_bound_of_strongConvexOn
{s : Set E} {f : E → ℝ} {m : ℝ} {grad : E → E}
(hsc : StrongConvexOn s m f)
(hgrad : ∀ z ∈ s, HasGradientAt f (grad z) z)
{x y : E} (hx : x ∈ s) (hy : y ∈ s) :
f y ≥ f x + inner ℝ (grad x) (y - x) + m / 2 * ‖y - x‖ ^ 2 := by
let path : ℝ → E := fun t => x + t • (y - x)
let isSelected : (ℝ → E) → Prop := fun q => q = path
have hpath : isSelected path := rfl
have hconvex :
Geometry.GeodesicConvexity.IsAlphaGeodesicallyConvex isSelected f m := by
intro q hq t ht
subst q
have hnonneg_left : 0 ≤ 1 - t := sub_nonneg.mpr ht.2
have hnonneg_right : 0 ≤ t := ht.1
have hstrong := hsc.2 hx hy hnonneg_left hnonneg_right (by ring)
have hpoint : path t = (1 - t) • x + t • y := by
dsimp only [path]
rw [smul_sub, sub_smul, one_smul]
abel
calc
f (path t) = f ((1 - t) • x + t • y) := congrArg f hpoint
_ ≤ (1 - t) * f x + t * f y -
(1 - t) * t * (m / 2 * ‖x - y‖ ^ 2) := by
simpa [smul_eq_mul] using hstrong
_ = (1 - t) * f (path 0) + t * f (path 1) -
(m * t * (1 - t) / 2) * dist (path 0) (path 1) ^ 2 := by
simp [path, dist_eq_norm]
ring
have hline :
HasLineDerivAt ℝ f (inner ℝ (grad x) (y - x)) x (y - x) := by
have h := (hgrad x hx).hasFDerivAt.hasLineDerivAt (y - x)
simpa [InnerProductSpace.toDual_apply_apply] using h
have hderiv :
HasDerivAt (fun t : ℝ => f (path t)) (inner ℝ (grad x) (y - x)) 0 := by
simpa [HasLineDerivAt, path] using hline
have hfirst :=
Geometry.GeodesicConvexity.firstOrder_geodesicConvexity
hconvex hpath hderiv
simpa [path, dist_eq_norm, norm_sub_rev] using hfirst
/-- The gradient of a strongly convex function has the corresponding inner-product
lower bound on its domain.
Mathematical provenance: Optlib `Strong_Convex_lower`, commit
`5da27c5f95aa6a8a45b8c14b968ade4c13ff18c3`,
`Optlib/Convex/StronglyConvex.lean` (Apache-2.0; Chenyi Li and Ziyu Wang).
This proof reuses the local first-order bound in both directions, as in Chewi,
arXiv:2605.07006v1, Proposition 1.6, (1.4) implies (1.5).
The domain-local supplied-gradient interface retains arbitrary real `m`;
Chewi's whole-space `C¹`, nonnegative-modulus statement is a specialization.
-/| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Euclidean whole space; C¹; α≥0. | Complete real inner-product space; convex domain s; HasGradientAt on s; arbitrary real m. | generalization | Only genuine segment derivatives and the chord inequality are used. Gradient continuity is unnecessary for this direction. This interface generalization is not a repair of Chewi. |
| The gradient is the genuine derivative of f. | Ambient HasGradientAt, including boundary points of s; not a within-set or totalized gradient. | same | The difference quotient must converge to the gradient pairing. A totalized fderiv value cannot justify this step. |
Generic domain-local forward lower-model proof. Whole-space source specialization and complete equivalence are not certified. Existing proof from PR #239, registered during #248 integration; not a newly invented leaf.
Historical audit record: legacy_audit_debt. Historical independent Lean/source review is not a blind semantic round trip. Source fidelity remains pending; changing the Lean file invalidates this grandfathering. Any current review below applies to the current version; it does not certify a historical worker run.
Encoder–denoiser: accepted · lean-weakened-conclusion
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
Mathematical statement provenance: Optlib Strong_Convex_second_lower, commit 5da27c5f95aa6a8a45b8c14b968ade4c13ff18c3 (Chenyi Li and Ziyu Wang, Apache-2.0). ASTIS reuses its own geodesic limiting proof, not an imported Optlib proof. Chewi Lectures on Optimization, arXiv:2605.07006v1, Proposition 1.6, (1.3)→(1.4), is the whole-space specialization.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.StrongConvexFirstOrder.gradient_inner_lower_bound_of_strongConvexOn · theorem · Teaching coverage
The gradient of a strongly convex function has a quantitative monotonicity bound on its domain. A positive modulus therefore makes the gradient injective there.
Put v=y−x. Apply the parent at (x,y):
hxy applies the existing first-order bound with hx hy.
Apply the same parent at (y,x), using x−y=−v:
hyx applies that same bound with hy hx. Rewriting uses the reversed-displacement identity, inner_neg_right and norm_neg.
Add, cancel the function values, and use linearity of the real inner product. Rearranging the following inequality proves the claimed bound.
rw [inner_sub_left] expands the goal. linarith combines the two inequalities and cancels the function values.
If m>0 and g(x)=g(y), the bound forces the displacement to vanish, as calculated below. The focused test checks this consequence; it is not a second registered theorem.
The Set.InjOn example substitutes equal gradients. mul_pos hm (pow_pos hn' 2) excludes a nonzero displacement, and norm_eq_zero and sub_eq_zero conclude equality.
The set is convex as part of StrongConvexOn. Both x and y belong to s. Supplied gradients are genuine ambient derivatives at all domain points; no totalized derivative is used to manufacture differentiability. Complete real inner-product space, with arbitrary real m. No extra smoothness, Hessian, measure or integrability assumptions.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem gradient_inner_lower_bound_of_strongConvexOn
{s : Set E} {f : E → ℝ} {m : ℝ} {grad : E → E}
(hsc : StrongConvexOn s m f)
(hgrad : ∀ z ∈ s, HasGradientAt f (grad z) z)
{x y : E} (hx : x ∈ s) (hy : y ∈ s) :
m * ‖y - x‖ ^ 2 ≤ inner ℝ (grad y - grad x) (y - x)hxy and hyx are the two calls to the same ASTIS parent. rw changes the reversed displacement to a negative, normalizes its norm, and expands inner_sub_left. linarith combines the two scalar inequalities without assuming the desired conclusion.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem gradient_inner_lower_bound_of_strongConvexOn
{s : Set E} {f : E → ℝ} {m : ℝ} {grad : E → E}
(hsc : StrongConvexOn s m f)
(hgrad : ∀ z ∈ s, HasGradientAt f (grad z) z)
{x y : E} (hx : x ∈ s) (hy : y ∈ s) :
m * ‖y - x‖ ^ 2 ≤ inner ℝ (grad y - grad x) (y - x) := by
have hxy := firstOrder_lower_bound_of_strongConvexOn hsc hgrad hx hy
have hyx := firstOrder_lower_bound_of_strongConvexOn hsc hgrad hy hx
rw [show x - y = -(y - x) by abel, inner_neg_right, norm_neg] at hyx
rw [inner_sub_left]
linarith
end
end StrongConvexFirstOrder
end Analysis
end TechnicalLemmas
end AutoSamplingTheory| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The displayed proof edge starts from the first-order lower model. | StrongConvexOn and supplied gradients; two lower bounds are obtained from the compiled parent. | generalization | The local theorem packages the composed forward route, rather than a stand-alone arbitrary lower-model predicate. |
| Whole-space C¹; nonnegative α. | Complete real inner-product space; x,y∈s; ambient gradients on s; arbitrary real m. | generalization | Algebra works for signed m. Only the injectivity test needs m>0. No Hessian or integration is used. |
The declaration assumes StrongConvexOn and invokes the first-order parent twice; it does not expose (1.4) alone as a hypothesis. The proof mechanism is covered, not the whole equivalence. Gradient flow, reverse implication and invariance remain separate.
Historical audit record: legacy_audit_debt. Historical independent Lean/source review is not a blind semantic round trip. Source fidelity remains pending; changing the Lean file invalidates this grandfathering. Any current review below applies to the current version; it does not certify a historical worker run.
Encoder–denoiser: accepted · lean-weakened-conclusion
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
Source correspondence: Chewi Lectures on Optimization, arXiv:2605.07006v1, Proposition 1.6, (1.4)→(1.5). Reverse implications, Hessian equivalence, whole-space source-facing specialization and gradient-flow contraction remain separate obligations. This is not a Gibbs-invariance or sampling-rate theorem.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC1.sub_eq_integral_gradient · theorem · Teaching coverage
For every x,v in a complete real inner-product space and every C¹ real-valued f, the difference f(x+v)−f(x) equals the integral of the gradient pairing along that segment.
C¹ gives a genuine derivative of f at every point. The chain rule differentiates the composition with x+sv, including the two endpoints.
hd: DifferentiableAt.hasGradientAt, HasFDerivAt.comp_hasDerivAt and the derivative of x+s•v.
The derivative map is continuous because f is C¹. Evaluating it on the fixed direction v and composing with the segment gives a continuous scalar integrand; compact-interval integrability follows. FTC and the values at 0 and 1 give the identity.
hc uses ContDiff.continuous_fderiv and Continuous.clm_apply; Continuous.intervalIntegrable and intervalIntegral.integral_eq_sub_of_hasDerivAt finish.
For every x,v in a complete real inner-product space and every C¹ real-valued f, the difference f(x+v)−f(x) equals the integral of the gradient pairing along that segment.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem sub_eq_integral_gradient {f : E → ℝ} (hf : ContDiff ℝ 1 f) (x v : E) :
f (x + v) - f x = ∫ s : ℝ in 0..1, inner ℝ (gradient f (x + s • v)) vC¹ gives a genuine derivative of f at every point. The chain rule differentiates the composition with x+sv, including the two endpoints. The derivative map is continuous because f is C¹. Evaluating it on the fixed direction v and composing with the segment gives a continuous scalar integrand; compact-interval integrability follows. FTC and the values at 0 and 1 give the identity.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem sub_eq_integral_gradient {f : E → ℝ} (hf : ContDiff ℝ 1 f) (x v : E) :
f (x + v) - f x = ∫ s : ℝ in 0..1, inner ℝ (gradient f (x + s • v)) v := by
have hc : Continuous (fun s : ℝ => inner ℝ (gradient f (x + s • v)) v) := by
simpa [gradient, Function.comp_def] using
((hf.continuous_fderiv (by norm_num)).comp
(continuous_const.add (continuous_id.smul continuous_const))).clm_apply continuous_const
have hd (s : ℝ) : HasDerivAt (fun t : ℝ => f (x + t • v))
(inner ℝ (gradient f (x + s • v)) v) s := by
convert! (hf.differentiable_one (x + s • v)).hasGradientAt.hasFDerivAt.comp_hasDerivAt s
(((hasDerivAt_id s).smul_const v).const_add x) using 1
simp
simpa using (intervalIntegral.integral_eq_sub_of_hasDerivAt
(fun s _ => hd s) (hc.intervalIntegrable 0 1)).symm
/-- Quantitative gradient monotonicity implies the chord inequality by the
source's two affine-segment FTC identities and integration of their difference.
The modulus can be signed; no Hessian or extra integrability is assumed. -/| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The source proof uses C¹, genuine gradients and the segment FTC identities. | ContDiff ℝ 1 f supplies HasGradientAt and continuous segment integrands, hence interval integrability. | source-implicit | Continuity and integrability are derived; no measurable representative, domination or extra analytic premise is assumed. |
| Whole Euclidean space and nonnegative modulus (where relevant). | Complete real inner-product space; signed modulus for the chord lemma. | generalization | The final source adapter restores the exact source hypotheses; the reusable proof leaves need no finite-dimensional or positivity argument. |
C¹ proof boundary only; no C²/Hessian equivalence or full-proposition completion.
Encoder–denoiser: source-reviewed · domain-mismatch
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC1.strongConvexOn_univ_of_gradient_mono_integral · theorem · Teaching coverage
For C¹ f on a complete real inner-product space, a global gradient monotonicity lower bound with any real modulus m implies StrongConvexOn univ m f.
Put v=y−x and fix 0≤t≤1. Apply the segment identity to v and to tv. Scalar linearity moves t outside the second integral.
hy and hz invoke sub_eq_integral_gradient twice; smul_smul, inner_smul_right and integral_const_mul expose A and B.
The case t=1 is equality. For t<1 and 0<s<1, the difference of the two segment points is s(1−t)v. Apply gradient monotonicity and cancel s(1−t)>0. No division occurs at a zero displacement parameter.
hdis and hscaled rewrite the gradient hypothesis; le_of_mul_le_mul_left uses mul_pos hs.1 (sub_pos.mpr ht1).
C¹ makes A and B continuous and hence interval integrable. The inequality on the open interval suffices because Lebesgue measure gives its endpoints zero mass. Integrate s from 0 to 1.
integral_mono_on_of_le_Ioo, Continuous.intervalIntegrable, integral_sub, integral_id and scalar integral linearity.
Multiply the integrated lower bound by nonnegative t and substitute the two FTC identities. This gives the exact m/2 correction; it also covers t=0. The signed m is never divided by or required to be positive.
hpoint matches affine conventions; mul_le_mul_of_nonneg_left and ring arithmetic conclude StrongConvexOn.
For C¹ f on a complete real inner-product space, a global gradient monotonicity lower bound with any real modulus m implies StrongConvexOn univ m f.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem strongConvexOn_univ_of_gradient_mono_integral
{f : E → ℝ} {m : ℝ} (hf : ContDiff ℝ 1 f)
(hm : ∀ x y : E, m * ‖y - x‖ ^ 2 ≤
inner ℝ (gradient f y - gradient f x) (y - x)) :
StrongConvexOn (univ : Set E) m fPut v=y−x and fix 0≤t≤1. Apply the segment identity to v and to tv. Scalar linearity moves t outside the second integral. The case t=1 is equality. For t<1 and 0<s<1, the difference of the two segment points is s(1−t)v. Apply gradient monotonicity and cancel s(1−t)>0. No division occurs at a zero displacement parameter. C¹ makes A and B continuous and hence interval integrable. The inequality on the open interval suffices because Lebesgue measure gives its endpoints zero mass. Integrate s from 0 to 1. Multiply the integrated lower bound by nonnegative t and substitute the two FTC identities. This gives the exact m/2 correction; it also covers t=0. The signed m is never divided by or required to be positive.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem strongConvexOn_univ_of_gradient_mono_integral
{f : E → ℝ} {m : ℝ} (hf : ContDiff ℝ 1 f)
(hm : ∀ x y : E, m * ‖y - x‖ ^ 2 ≤
inner ℝ (gradient f y - gradient f x) (y - x)) :
StrongConvexOn (univ : Set E) m f := by
refine ⟨convex_univ, ?_⟩
intro x _ y _ a t ha ht hat
have hat' : a = 1 - t := by linarith
subst a
have ht1 : t ≤ 1 := by linarith
rcases eq_or_lt_of_le ht1 with ht1 | ht1
· subst t
simp
let v := y - x
let A : ℝ → ℝ := fun s => inner ℝ (gradient f (x + s • v)) v
let B : ℝ → ℝ := fun s => inner ℝ (gradient f (x + (s * t) • v)) v
have hA : Continuous A := by
simpa [A, gradient, Function.comp_def] using
((hf.continuous_fderiv (by norm_num)).comp
(continuous_const.add (continuous_id.smul continuous_const))).clm_apply continuous_const
have hB : Continuous B := by
simpa [B, gradient, Function.comp_def] using
((hf.continuous_fderiv (by norm_num)).comp
(continuous_const.add ((continuous_id.mul continuous_const).smul continuous_const))).clm_apply continuous_const
have hbound : ∫ s : ℝ in 0..1, m * s * (1 - t) * ‖v‖ ^ 2 ≤
∫ s : ℝ in 0..1, (A s - B s) := by
apply intervalIntegral.integral_mono_on_of_le_Ioo (by norm_num)
((show Continuous (fun s : ℝ => m * s * (1 - t) * ‖v‖ ^ 2) by fun_prop).intervalIntegrable 0 1)
((hA.sub hB).intervalIntegrable 0 1)
intro s hs
have h := hm (x + (s * t) • v) (x + s • v)
have hdis : (x + s • v) - (x + (s * t) • v) = (s * (1 - t)) • v := by module
rw [hdis, norm_smul, Real.norm_eq_abs, mul_pow, sq_abs, inner_smul_right] at h
have hscaled : (s * (1 - t)) * (m * s * (1 - t) * ‖v‖ ^ 2) ≤
(s * (1 - t)) * inner ℝ
(gradient f (x + s • v) - gradient f (x + (s * t) • v)) v := by nlinarith [h]
have hcancel := le_of_mul_le_mul_left hscaled (mul_pos hs.1 (sub_pos.mpr ht1))
simpa [A, B, inner_sub_left] using hcancel
have hpoly : (∫ s : ℝ in 0..1, m * s * (1 - t) * ‖v‖ ^ 2) =
m / 2 * (1 - t) * ‖v‖ ^ 2 := by
rw [intervalIntegral.integral_mul_const, intervalIntegral.integral_mul_const,
intervalIntegral.integral_const_mul, integral_id]
norm_num only [one_pow, zero_pow, sub_zero]
ring
rw [hpoly, intervalIntegral.integral_sub (hA.intervalIntegrable 0 1)
(hB.intervalIntegrable 0 1)] at hbound
have hy := sub_eq_integral_gradient hf x v
have hz := sub_eq_integral_gradient hf x (t • v)
have hpoint : (1 - t) • x + t • y = x + t • v := by dsimp [v]; module
have hys : x + v = y := by simp [v]
rw [hys] at hy
change f y - f x = ∫ s : ℝ in 0..1, A s at hy
simp only [smul_smul, inner_smul_right, intervalIntegral.integral_const_mul] at hz
change f (x + t • v) - f x = t * ∫ s : ℝ in 0..1, B s at hz
change f ((1 - t) • x + t • y) ≤ (1 - t) * f x + t * f y -
(1 - t) * t * (m / 2 * ‖x - y‖ ^ 2)
rw [hpoint, norm_sub_rev]
change f (x + t • v) ≤ (1 - t) * f x + t * f y -
(1 - t) * t * (m / 2 * ‖v‖ ^ 2)
nlinarith [mul_le_mul_of_nonneg_left hbound ht]
/-- Proposition 1.6, part 1: on all of Euclidean space, the C¹ chord,
quadratic lower-model and gradient-monotonicity conditions are equivalent.
The nonnegative modulus is retained exactly as in the source. -/| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The source proof uses C¹, genuine gradients and the segment FTC identities. | ContDiff ℝ 1 f supplies HasGradientAt and continuous segment integrands, hence interval integrability. | source-implicit | Continuity and integrability are derived; no measurable representative, domination or extra analytic premise is assumed. |
| Whole Euclidean space and nonnegative modulus (where relevant). | Complete real inner-product space; signed modulus for the chord lemma. | generalization | The final source adapter restores the exact source hypotheses; the reusable proof leaves need no finite-dimensional or positivity argument. |
C¹ proof boundary only; no C²/Hessian equivalence or full-proposition completion.
Encoder–denoiser: source-reviewed · domain-mismatch
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC1.convexity_equivalences · theorem · Teaching coverage
Let d be a natural number, f:ℝᵈ→ℝ be C¹ on all Euclidean space, and m≥0. The strong-convexity chord inequality is equivalent both to the global quadratic lower model and to the quantitative gradient monotonicity inequality.
C¹ supplies the ambient gradients everywhere. Apply the already compiled shared lower-model theorem, whose proof takes the derivative limit of the strong-convexity chord inequality.
hg derives HasGradientAt from hf; hforward calls StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn on univ.
Assume only the global lower-model condition, apply it in both orders, and add. Function values cancel, the two half-quadratic terms add, and the inner products combine into a gradient difference.
hsum rewrites x−y=−(y−x), inner_neg_right and inner_sub_left, then uses linear arithmetic.
The newly proved integral converse takes gradient monotonicity back to the chord condition. Package the two equivalences using this three-condition cycle.
strongConvexOn_univ_of_gradient_mono_integral closes both reverse directions. The final statement is the conjunction of the two iff results.
Let d be a natural number, f:ℝᵈ→ℝ be C¹ on all Euclidean space, and m≥0. The strong-convexity chord inequality is equivalent both to the global quadratic lower model and to the quantitative gradient monotonicity inequality.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem convexity_equivalences {d : ℕ} {f : EuclideanSpace ℝ (Fin d) → ℝ}
{m : ℝ} (_hm : 0 ≤ m) (hf : ContDiff ℝ 1 f) :
(StrongConvexOn univ m f ↔ ∀ x y,
f x + inner ℝ (gradient f x) (y - x) + m / 2 * ‖y - x‖ ^ 2 ≤ f y) ∧
(StrongConvexOn univ m f ↔ ∀ x y,
m * ‖y - x‖ ^ 2 ≤ inner ℝ (gradient f y - gradient f x) (y - x))C¹ supplies the ambient gradients everywhere. Apply the already compiled shared lower-model theorem, whose proof takes the derivative limit of the strong-convexity chord inequality. Assume only the global lower-model condition, apply it in both orders, and add. Function values cancel, the two half-quadratic terms add, and the inner products combine into a gradient difference. The newly proved integral converse takes gradient monotonicity back to the chord condition. Package the two equivalences using this three-condition cycle.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem convexity_equivalences {d : ℕ} {f : EuclideanSpace ℝ (Fin d) → ℝ}
{m : ℝ} (_hm : 0 ≤ m) (hf : ContDiff ℝ 1 f) :
(StrongConvexOn univ m f ↔ ∀ x y,
f x + inner ℝ (gradient f x) (y - x) + m / 2 * ‖y - x‖ ^ 2 ≤ f y) ∧
(StrongConvexOn univ m f ↔ ∀ x y,
m * ‖y - x‖ ^ 2 ≤ inner ℝ (gradient f y - gradient f x) (y - x)) := by
have hg : ∀ z ∈ (univ : Set (EuclideanSpace ℝ (Fin d))),
HasGradientAt f (gradient f z) z := fun z _ => (hf.differentiable_one z).hasGradientAt
have hforward := fun (hsc : StrongConvexOn univ m f) x y =>
StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn hsc hg
(mem_univ x) (mem_univ y)
have hsum : (∀ x y, f x + inner ℝ (gradient f x) (y - x) +
m / 2 * ‖y - x‖ ^ 2 ≤ f y) → ∀ x y,
m * ‖y - x‖ ^ 2 ≤ inner ℝ (gradient f y - gradient f x) (y - x) := by
intro hl x y
have hxy := hl x y
have hyx := hl y x
rw [show x - y = -(y - x) by abel, inner_neg_right, norm_neg] at hyx
rw [inner_sub_left]
linarith
exact ⟨⟨hforward, fun h => strongConvexOn_univ_of_gradient_mono_integral hf (hsum h)⟩,
⟨fun h => hsum (hforward h), strongConvexOn_univ_of_gradient_mono_integral hf⟩⟩
end AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC1| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The source proof uses C¹, genuine gradients and the segment FTC identities. | ContDiff ℝ 1 f supplies HasGradientAt and continuous segment integrands, hence interval integrability. | source-implicit | Continuity and integrability are derived; no measurable representative, domination or extra analytic premise is assumed. |
| Whole Euclidean space and nonnegative modulus (where relevant). | Same Euclidean whole-space C¹ and nonnegative modulus. | same | The final source adapter restores the exact source hypotheses; the reusable proof leaves need no finite-dimensional or positivity argument. |
C¹ proof boundary only; no C²/Hessian equivalence or full-proposition completion.
Encoder–denoiser: source-reviewed · equivalent-after-elaboration
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
AutoSamplingTheory.TechnicalLemmas.Analysis.StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOnAutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC1.strongConvexOn_univ_of_gradient_mono_integralASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC2.gradient_sub_inner_eq_integral_fderiv2 · theorem · Teaching coverage
For every C² real-valued f on a complete real inner-product space and every x,v, the gradient difference between x+v and x, paired with v, equals the integral of the Hessian quadratic form along that segment.
Set g(t)=Df(x+tv)[v]. Because f is C², Df is C¹; compose its derivative with the affine segment and evaluate the resulting linear functional at the fixed v.
hfd uses ContDiff.fderiv_right. hd uses HasFDerivAt.comp_hasDerivAt and HasDerivAt.clm_apply.
The second derivative is continuous. Composition with the segment and two evaluations preserve continuity, giving interval integrability. FTC gives g(1)−g(0). The gradient pairing identity identifies the endpoints.
hc: ContDiff.continuous_fderiv and Continuous.clm_apply; Continuous.intervalIntegrable and intervalIntegral.integral_eq_sub_of_hasDerivAt; gradient/Riesz simplification.
For every C² real-valued f on a complete real inner-product space and every x,v, the gradient difference between x+v and x, paired with v, equals the integral of the Hessian quadratic form along that segment.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem gradient_sub_inner_eq_integral_fderiv2
{f : E → ℝ} (hf : ContDiff ℝ 2 f) (x v : E) :
inner ℝ (gradient f (x + v) - gradient f x) v =
∫ t : ℝ in 0..1, (fderiv ℝ (fderiv ℝ f) (x + t • v) v) vSet g(t)=Df(x+tv)[v]. Because f is C², Df is C¹; compose its derivative with the affine segment and evaluate the resulting linear functional at the fixed v. The second derivative is continuous. Composition with the segment and two evaluations preserve continuity, giving interval integrability. FTC gives g(1)−g(0). The gradient pairing identity identifies the endpoints.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem gradient_sub_inner_eq_integral_fderiv2
{f : E → ℝ} (hf : ContDiff ℝ 2 f) (x v : E) :
inner ℝ (gradient f (x + v) - gradient f x) v =
∫ t : ℝ in 0..1, (fderiv ℝ (fderiv ℝ f) (x + t • v) v) v := by
have hfd : ContDiff ℝ 1 (fderiv ℝ f) := hf.fderiv_right (by norm_num)
have hd (t : ℝ) : HasDerivAt (fun s : ℝ => fderiv ℝ f (x + s • v) v)
((fderiv ℝ (fderiv ℝ f) (x + t • v) v) v) t := by
convert ((hfd.differentiable_one _).hasFDerivAt.comp_hasDerivAt t
(((hasDerivAt_id t).smul_const v).const_add x)).clm_apply
(hasDerivAt_const t v) using 1 <;> first | rfl | simp
have hc : Continuous (fun t : ℝ => (fderiv ℝ (fderiv ℝ f) (x + t • v) v) v) :=
(((hfd.continuous_fderiv (by norm_num)).comp
(continuous_const.add (continuous_id.smul continuous_const))).clm_apply
continuous_const).clm_apply continuous_const
simpa [inner_sub_left, gradient, Function.comp_def] using
(intervalIntegral.integral_eq_sub_of_hasDerivAt
(fun t _ => hd t) (hc.intervalIntegrable 0 1)).symm
/-- Global quantitative gradient monotonicity is equivalent to the genuine
Hessian diagonal lower bound, by a right derivative limit and the FTC. -/| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Twice continuous differentiability and the usual Euclidean Hessian. | ContDiff ℝ 2 f supplies the genuine derivative of fderiv, continuous scalar Hessian integrands and interval integrability. The quadratic form is (fderiv ℝ (fderiv ℝ f) x v) v. | source-implicit | The finite-dimensional Hessian is represented invariantly by its bilinear evaluation. No independently supplied derivative, symmetry or integrability premise is added. |
| The FTC identity is on whole Euclidean space and has no modulus parameter. | Complete real inner-product space, with no modulus parameter. | generalization | The segment derivative and scalar integral require no finite dimension; x and v remain arbitrary. |
The source segment identity generalized from Euclidean space to complete real inner-product space. No convexity or Hessian bound is assumed.
Encoder–denoiser: source-reviewed · domain-mismatch
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC2.gradient_mono_iff_fderiv2_lower · theorem · Teaching coverage
For C² f on a complete real inner-product space and any real m, the global quantitative gradient monotonicity inequality is equivalent to D²f(x)[v,v]≥m‖v‖² at every point and direction.
Fix x,v and let g(t)=Df(x+tv)[v]. Apply gradient monotonicity at x and x+tv with t>0. The displacement is tv and its squared norm is t²‖v‖². Cancelling the positive t and dividing once more by t gives a bound on the difference quotient.
hm, norm_smul, sq_abs and inner_smul_right give h; le_of_mul_le_mul_left and le_div_iff₀ cancel only ht:0<t.
C² gives g′(0)=D²f(x)[v,v]. The displayed inequality holds for all positive t, so passage to t↓0 preserves it. Neither m nor ‖v‖ is divided by.
hdAll and hd establish the genuine scalar derivative; HasDerivAt.tendsto_slope_zero_right and ge_of_tendsto pass to the limit.
For v=y−x the Hessian bound holds along x+tv. C² gives a continuous integrand and interval integrability. Integrate the constant lower bound over an interval of length one, then use the preceding segment identity.
intervalIntegral.integral_mono_on compares integrals; gradient_sub_inner_eq_integral_fderiv2 identifies the result.
For C² f on a complete real inner-product space and any real m, the global quantitative gradient monotonicity inequality is equivalent to D²f(x)[v,v]≥m‖v‖² at every point and direction.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem gradient_mono_iff_fderiv2_lower
{f : E → ℝ} {m : ℝ} (hf : ContDiff ℝ 2 f) :
(∀ x y : E, m * ‖y - x‖ ^ 2 ≤
inner ℝ (gradient f y - gradient f x) (y - x)) ↔
∀ x v : E, m * ‖v‖ ^ 2 ≤ (fderiv ℝ (fderiv ℝ f) x v) vFix x,v and let g(t)=Df(x+tv)[v]. Apply gradient monotonicity at x and x+tv with t>0. The displacement is tv and its squared norm is t²‖v‖². Cancelling the positive t and dividing once more by t gives a bound on the difference quotient. C² gives g′(0)=D²f(x)[v,v]. The displayed inequality holds for all positive t, so passage to t↓0 preserves it. Neither m nor ‖v‖ is divided by. For v=y−x the Hessian bound holds along x+tv. C² gives a continuous integrand and interval integrability. Integrate the constant lower bound over an interval of length one, then use the preceding segment identity.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem gradient_mono_iff_fderiv2_lower
{f : E → ℝ} {m : ℝ} (hf : ContDiff ℝ 2 f) :
(∀ x y : E, m * ‖y - x‖ ^ 2 ≤
inner ℝ (gradient f y - gradient f x) (y - x)) ↔
∀ x v : E, m * ‖v‖ ^ 2 ≤ (fderiv ℝ (fderiv ℝ f) x v) v := by
have hfd : ContDiff ℝ 1 (fderiv ℝ f) := hf.fderiv_right (by norm_num)
constructor
· intro hm x v
let g : ℝ → ℝ := fun t => fderiv ℝ f (x + t • v) v
have hdAll (t : ℝ) : HasDerivAt g
((fderiv ℝ (fderiv ℝ f) (x + t • v) v) v) t := by
convert ((hfd.differentiable_one _).hasFDerivAt.comp_hasDerivAt t
(((hasDerivAt_id t).smul_const v).const_add x)).clm_apply
(hasDerivAt_const t v) using 1 <;> first | rfl | simp
have hd : HasDerivAt g ((fderiv ℝ (fderiv ℝ f) x v) v) 0 := by
simpa using hdAll 0
apply ge_of_tendsto hd.tendsto_slope_zero_right
filter_upwards [self_mem_nhdsWithin] with t ht
have ht : 0 < t := ht
have h := hm x (x + t • v)
rw [add_sub_cancel_left, norm_smul, Real.norm_eq_abs, mul_pow, sq_abs,
inner_smul_right, inner_sub_left] at h
have hscaled : t * (m * ‖v‖ ^ 2) ≤ g t - g 0 := by
apply le_of_mul_le_mul_left (a := t) _ ht
simpa [g, gradient, Function.comp_def, pow_two, mul_assoc, mul_left_comm, mul_comm] using h
simpa [smul_eq_mul, div_eq_inv_mul] using
(le_div_iff₀ ht).mpr (by simpa [mul_comm] using hscaled)
· intro hH x y
let v := y - x
have hc : Continuous (fun t : ℝ => (fderiv ℝ (fderiv ℝ f) (x + t • v) v) v) :=
(((hfd.continuous_fderiv (by norm_num)).comp
(continuous_const.add (continuous_id.smul continuous_const))).clm_apply
continuous_const).clm_apply continuous_const
have h := intervalIntegral.integral_mono_on (by norm_num : (0 : ℝ) ≤ 1)
(intervalIntegrable_const : IntervalIntegrable (fun _ : ℝ => m * ‖v‖ ^ 2) volume 0 1)
(hc.intervalIntegrable 0 1) (fun t _ => hH (x + t • v) v)
rw [← gradient_sub_inner_eq_integral_fderiv2 hf x v] at h
simpa [v] using h
/-- Proposition 1.6 part 2, with the source's whole Euclidean domain,
nonnegative modulus and C² regularity. Together with the C¹ theorem this
connects all four source conditions. -/| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Twice continuous differentiability and the usual Euclidean Hessian. | ContDiff ℝ 2 f supplies the genuine derivative of fderiv, continuous scalar Hessian integrands and interval integrability. The quadratic form is (fderiv ℝ (fderiv ℝ f) x v) v. | source-implicit | The finite-dimensional Hessian is represented invariantly by its bilinear evaluation. No independently supplied derivative, symmetry or integrability premise is added. |
| All Euclidean space and nonnegative modulus. | Complete real inner-product space; arbitrary real m in the equivalence. | generalization | The source adapter restores its domain and parameter range; shared proofs do not need positive dimension, positive m or nonzero direction. |
The two directions follow the source derivative-limit and Hessian-integral routes. The complete-space and signed-modulus scope is an explicit generalization.
Encoder–denoiser: source-reviewed · domain-mismatch
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
ASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC2.strongConvexOn_iff_fderiv2_lower · theorem · Teaching coverage
For every natural dimension d, every nonnegative real m and every C² f on all Euclidean d-space, f is m-strongly convex if and only if its Hessian quadratic form is at least m times squared norm in every direction at every point.
C² implies C¹. Apply the already proved source equivalence between the chord condition and global gradient monotonicity.
ContDiff.of_le supplies C¹; ConvexityC1.convexity_equivalences supplies its second iff.
Compose with the derivative-limit/integral equivalence above. On Euclidean space D²f(x)[v,v] is the source Hessian matrix quadratic form. This finishes part 2 and connects it to the lower-model equivalence already in part 1.
Iff.trans with gradient_mono_iff_fderiv2_lower. No alternative assumed convexity or gradient interface is substituted.
For every natural dimension d, every nonnegative real m and every C² f on all Euclidean d-space, f is m-strongly convex if and only if its Hessian quadratic form is at least m times squared norm in every direction at every point.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem strongConvexOn_iff_fderiv2_lower
{d : ℕ} {f : EuclideanSpace ℝ (Fin d) → ℝ} {m : ℝ}
(hm : 0 ≤ m) (hf : ContDiff ℝ 2 f) :
StrongConvexOn univ m f ↔
∀ x v, m * ‖v‖ ^ 2 ≤ (fderiv ℝ (fderiv ℝ f) x v) vC² implies C¹. Apply the already proved source equivalence between the chord condition and global gradient monotonicity. Compose with the derivative-limit/integral equivalence above. On Euclidean space D²f(x)[v,v] is the source Hessian matrix quadratic form. This finishes part 2 and connects it to the lower-model equivalence already in part 1.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem strongConvexOn_iff_fderiv2_lower
{d : ℕ} {f : EuclideanSpace ℝ (Fin d) → ℝ} {m : ℝ}
(hm : 0 ≤ m) (hf : ContDiff ℝ 2 f) :
StrongConvexOn univ m f ↔
∀ x v, m * ‖v‖ ^ 2 ≤ (fderiv ℝ (fderiv ℝ f) x v) v := by
exact (ConvexityC1.convexity_equivalences hm (hf.of_le (by norm_num))).2.trans
(gradient_mono_iff_fderiv2_lower hf)
end AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC2| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Twice continuous differentiability and the usual Euclidean Hessian. | ContDiff ℝ 2 f supplies the genuine derivative of fderiv, continuous scalar Hessian integrands and interval integrability. The quadratic form is (fderiv ℝ (fderiv ℝ f) x v) v. | source-implicit | The finite-dimensional Hessian is represented invariantly by its bilinear evaluation. No independently supplied derivative, symmetry or integrability premise is added. |
| All Euclidean space and nonnegative modulus. | Same whole Euclidean space and m>=0. | same | The source adapter restores its domain and parameter range; shared proofs do not need positive dimension, positive m or nonzero direction. |
Exact Proposition 1.6 part 2; part 1 remains provided by the unchanged C¹ theorem. This does not complete the chapter or assert a Riemannian analogue.
Encoder–denoiser: source-reviewed · equivalent-after-elaboration
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC1.convexity_equivalencesAutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC2.gradient_mono_iff_fderiv2_lowerASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
Sinho Chewi, Lectures on Optimization. ASTIS restatement, not quoted prose; no endorsement implied.
arXiv:2605.07006v1 · §1.2, Definition1.12 equation(1.7) and Proposition1.13, both equivalence clauses · faithful paraphrase
For a continuously differentiable real-valued function on all Euclidean d-space and β≥0, the quadratic upper model is equivalent to the one-sided gradient bound below. With twice continuous differentiability, both are equivalent to the Hessian upper bound. The proof is omitted in the source by analogy with Proposition1.6.
Each statement and proof below has its own closed Lean disclosure. ASTIS parents, Mathlib calls and external mathematical sources are distinguished in each proof.
AutoSamplingTheory.TechnicalLemmas.Analysis.SmoothnessEquivalences.upper_model_iff_gradient_upper · theorem · Teaching coverage
For every C¹ real-valued function f on a complete real inner-product space and every real β, the global quadratic upper model with coefficient β/2 holds if and only if the gradient difference has inner product with the displacement at most β times squared displacement.
Write the upper model from x to y and from y to x. The values cancel on addition; the linear terms combine with opposite displacements. Each quadratic correction is β‖y−x‖²/2.
hxy and hyx, inner_neg_right and norm_neg; linarith derives the bound.
For the converse set g=−f and m=−β. Linearity of the derivative and Riesz map gives ∇g=−∇f. The assumed one-sided upper bound becomes quantitative gradient monotonicity of g with signed modulus m.
hg proves actual gradient negation; ConvexityC1.strongConvexOn_univ_of_gradient_mono_integral applies with m=-β.
The signed gradient-to-chord theorem integrates along affine segments; C¹ supplies derivative continuity and interval integrability. Its chord conclusion and the genuine gradient yield the existing first-order lower model for g. Negating this inequality gives exactly the upper model for f, with coefficient β/2.
StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn uses hf.neg.differentiable_one.hasGradientAt; hg and linarith finish.
For every C¹ real-valued function f on a complete real inner-product space and every real β, the global quadratic upper model with coefficient β/2 holds if and only if the gradient difference has inner product with the displacement at most β times squared displacement.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem upper_model_iff_gradient_upper {f : E → ℝ} {β : ℝ}
(hf : ContDiff ℝ 1 f) :
(∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2) ↔
∀ x y, inner ℝ (gradient f y - gradient f x) (y - x) ≤ β * ‖y - x‖ ^ 2Write the upper model from x to y and from y to x. The values cancel on addition; the linear terms combine with opposite displacements. Each quadratic correction is β‖y−x‖²/2. For the converse set g=−f and m=−β. Linearity of the derivative and Riesz map gives ∇g=−∇f. The assumed one-sided upper bound becomes quantitative gradient monotonicity of g with signed modulus m. The signed gradient-to-chord theorem integrates along affine segments; C¹ supplies derivative continuity and interval integrability. Its chord conclusion and the genuine gradient yield the existing first-order lower model for g. Negating this inequality gives exactly the upper model for f, with coefficient β/2.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem upper_model_iff_gradient_upper {f : E → ℝ} {β : ℝ}
(hf : ContDiff ℝ 1 f) :
(∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2) ↔
∀ x y, inner ℝ (gradient f y - gradient f x) (y - x) ≤ β * ‖y - x‖ ^ 2 := by
have hg (x : E) : gradient (fun z => -f z) x = -gradient f x := by
simp [gradient]
constructor
· intro h x y
have hxy := h x y
have hyx := h y x
rw [show x - y = -(y - x) by abel, inner_neg_right, norm_neg] at hyx
rw [inner_sub_left]
linarith
· intro h
have hn : StrongConvexOn (univ : Set E) (-β) (fun z => -f z) :=
ConvexityC1.strongConvexOn_univ_of_gradient_mono_integral hf.neg (by
intro x y
rw [hg, hg, inner_sub_left, inner_neg_left, inner_neg_left]
have hxy := h x y
rw [inner_sub_left] at hxy
linarith)
intro x y
have hl := StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn hn
(fun z _ => (hf.neg.differentiable_one z).hasGradientAt) (mem_univ x) (mem_univ y)
rw [hg, inner_neg_left] at hl
linarith
/-- With genuine C² regularity the same upper model is equivalent to the
Hessian diagonal upper bound, without assuming convexity. -/| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Whole Euclidean d-space and β≥0. | Complete real inner-product space and arbitrary real β. | generalization | The sign-reversal route uses the already available signed modulus -β. Completeness gives the genuine Riesz gradient; Euclidean spaces satisfy it, including dimension zero. |
| C¹ for the first equivalence and C² for the Hessian equivalence; proof omitted by analogy with Proposition1.6. | ContDiff ℝ 1 f; actual gradient and iterated fderiv. No separately assumed symmetry, segment integrability or derivative field. | source-implicit | Negation preserves the stated regularity. Existing signed convexity/FTC parents derive all needed interval regularity; the Hessian is represented by its bilinear evaluation. |
| One-sided upper bounds; convexity only appears in a subsequent separate Lipschitz-gradient consequence. | No convexity premise or Lipschitz conclusion. | same | The concave quadratic at β=0 is a focused boundary counterexample to conflating these conditions. |
These are one-sided upper bounds. They do not imply a β-Lipschitz gradient without an additional condition such as convexity; no such implication is asserted here. The source instance is E=ℝᵈ and β≥0.
Encoder–denoiser: source-reviewed · domain-mismatch
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
AutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC1.strongConvexOn_univ_of_gradient_mono_integralAutoSamplingTheory.TechnicalLemmas.Analysis.StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOnASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.SmoothnessEquivalences.upper_model_iff_fderiv2_upper · theorem · Teaching coverage
For every C² real-valued function f on a complete real inner-product space and every real β, the global quadratic upper model with coefficient β/2 holds if and only if the genuine Hessian quadratic form at each point is at most β times squared norm in every direction.
C² implies C¹, so the preceding theorem replaces the upper model by its one-sided gradient inequality.
upper_model_iff_gradient_upper with ContDiff.of_le.
Set g=−f and m=−β again. Genuine first and second Fréchet derivatives commute with negation. The compiled equivalence for g uses a positive-direction derivative limit in one direction and the Hessian segment FTC in the other.
hg and hH prove both sign identities; ConvexityC2.gradient_mono_iff_fderiv2_lower applies to hf.neg at m=-β.
Multiplying the two lower inequalities by −1 gives the upper gradient and Hessian bounds. Neither β nor the norm of the direction is divided by, so zero and negative β and v=0 remain valid.
The two directions use Iff.mp and Iff.mpr with linear real arithmetic; no source-specific matrix field replaces fderiv.
For every C² real-valued function f on a complete real inner-product space and every real β, the global quadratic upper model with coefficient β/2 holds if and only if the genuine Hessian quadratic form at each point is at most β times squared norm in every direction.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem upper_model_iff_fderiv2_upper {f : E → ℝ} {β : ℝ}
(hf : ContDiff ℝ 2 f) :
(∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2) ↔
∀ x v, (fderiv ℝ (fderiv ℝ f) x v) v ≤ β * ‖v‖ ^ 2C² implies C¹, so the preceding theorem replaces the upper model by its one-sided gradient inequality. Set g=−f and m=−β again. Genuine first and second Fréchet derivatives commute with negation. The compiled equivalence for g uses a positive-direction derivative limit in one direction and the Hessian segment FTC in the other. Multiplying the two lower inequalities by −1 gives the upper gradient and Hessian bounds. Neither β nor the norm of the direction is divided by, so zero and negative β and v=0 remain valid.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem upper_model_iff_fderiv2_upper {f : E → ℝ} {β : ℝ}
(hf : ContDiff ℝ 2 f) :
(∀ x y, f y ≤ f x + inner ℝ (gradient f x) (y - x) + β / 2 * ‖y - x‖ ^ 2) ↔
∀ x v, (fderiv ℝ (fderiv ℝ f) x v) v ≤ β * ‖v‖ ^ 2 := by
have hg (x : E) : gradient (fun z => -f z) x = -gradient f x := by
simp [gradient]
have hH (x v : E) :
(fderiv ℝ (fderiv ℝ (fun z => -f z)) x v) v =
-(fderiv ℝ (fderiv ℝ f) x v) v := by
rw [show fderiv ℝ (fun z => -f z) = -fderiv ℝ f by
funext z; exact fderiv_fun_neg]
rw [fderiv_neg]
rfl
rw [upper_model_iff_gradient_upper (hf.of_le (by norm_num))]
have h := ConvexityC2.gradient_mono_iff_fderiv2_lower (m := -β) hf.neg
simp only [hg, inner_sub_left, inner_neg_left, hH] at h
constructor
· intro hu x v
have hl := h.mp (by
intro x y
have hxy := hu x y
rw [inner_sub_left] at hxy
linarith) x v
linarith
· intro hu x y
have hl := h.mpr (by intro x v; have hv := hu x v; linarith) x y
rw [inner_sub_left]
linarith
end AutoSamplingTheory.TechnicalLemmas.Analysis.SmoothnessEquivalences| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Whole Euclidean d-space and β≥0. | Complete real inner-product space and arbitrary real β. | generalization | The sign-reversal route uses the already available signed modulus -β. Completeness gives the genuine Riesz gradient; Euclidean spaces satisfy it, including dimension zero. |
| C¹ for the first equivalence and C² for the Hessian equivalence; proof omitted by analogy with Proposition1.6. | ContDiff ℝ 2 f; actual gradient and iterated fderiv. No separately assumed symmetry, segment integrability or derivative field. | source-implicit | Negation preserves the stated regularity. Existing signed convexity/FTC parents derive all needed interval regularity; the Hessian is represented by its bilinear evaluation. |
| One-sided upper bounds; convexity only appears in a subsequent separate Lipschitz-gradient consequence. | No convexity premise or Lipschitz conclusion. | same | The concave quadratic at β=0 is a focused boundary counterexample to conflating these conditions. |
These are one-sided upper bounds. They do not imply a β-Lipschitz gradient without an additional condition such as convexity; no such implication is asserted here. The source instance is E=ℝᵈ and β≥0.
Encoder–denoiser: source-reviewed · domain-mismatch
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
AutoSamplingTheory.TechnicalLemmas.Analysis.SmoothnessEquivalences.upper_model_iff_gradient_upperAutoSamplingTheory.TechnicalLemmas.Analysis.ConvexityC2.gradient_mono_iff_fderiv2_lowerASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.