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.
Sinho Chewi, Lectures on Optimization. ASTIS restatement, not quoted prose; no endorsement implied.
arXiv:2605.07006v1 · Section4.1 opening radius-certified optimization convention; Lemma4.1 statement and proof (4.1) · faithful paraphrase
Assume an algorithm optimizes every convex beta-smooth Euclidean objective from a point within radius R of a minimizer to objective error epsilon in phi(beta R²/epsilon) first-order queries. For an alpha-strongly convex beta-smooth objective, Lemma4.1 constructs a restarted method with stated order O(phi(8kappa) log(alpha R²/epsilon)), kappa=beta/alpha. Its proof calls the base method at radii R/2^k and tolerances alpha(R/2^k)²/8; quadratic growth halves the radius after each call. After reaching radius at most sqrt(epsilon/alpha), one final call at tolerance epsilon gives the desired objective accuracy. The proof records per-stage phi(8kappa) and final phi(kappa) costs. The finite construction, final call and full asymptotic/oracle conclusion are distinct obligations.
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.RestartReduction.radius_accuracy_and_cost · theorem · Teaching coverage
E is a complete real inner-product space and f:E→R is C1 and alpha-strongly convex on E, with the alpha/2 chord convention. A global minimizer z is supplied. Alpha,beta,R,epsilon are strictly positive real numbers. The initial point satisfies ||x0-z||<=R. R is a supplied positive upper radius, not an exact unknown distance. A(y,r,delta) returns a point and a natural certified cost. For every y and positive r,delta with ||y-z||<=r, its output gap is <=delta and its cost is <=phi(beta*r²/delta). Phi:R→N is arbitrary; monotonicity is not assumed. N is a natural number, including zero, and alpha*(R/2^N)²<=epsilon. Set r_k=R/2^k and define the actual state/cost recursion and final call below. The recursion has the stated radius and cumulative cost, and its final output has gap at most epsilon.
Fermat gives the genuine gradient at z equal to zero. Apply the existing strong-convexity first-order lower bound at z. The resulting alpha/2 factor is essential: the older midpoint-only alpha/4 bound would not give the prescribed halving constant.
StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn; IsLocalMin.fderiv_eq_zero and actual HasGradientAt from C1.
Assume the actual current point has distance at most r_k. Positivity of R and alpha makes r_k and delta_k=alpha*r_k²/8 positive, so the base solver contract applies. Its objective guarantee combined with quadratic growth yields squared distance at most r_k²/4. Nonnegative norms and r_k>0 then give radius r_k/2=r_(k+1). The initial radius is the supplied hypothesis.
Nat.rec and natural induction; solver contract, positive-radius cancellation, pow_succ and div_mul_eq_div_div.
At every stage the prescribed radius appears in both the tolerance and the solver budget. Their ratio is exactly 8beta/alpha, so no monotonicity of phi is needed. The recursion adds the returned cost to the accumulated natural count. Induction gives c_N<=N phi(8beta/alpha).
field_simp uses r_k nonzero; Nat.add_le_add and Nat.add_mul propagate the actual accumulated count.
The chosen horizon gives r_N<=sqrt(epsilon/alpha). Pass that positive upper radius, together with tolerance epsilon, to the same solver at the actual state x_N. Its output has objective gap at most epsilon. The final budget argument simplifies exactly to beta/alpha. Add this final returned cost, including when N=0.
Real.le_sqrt_of_sq_le, Real.sqrt_pos, Real.sq_sqrt; final hA call and Nat.add_le_add.
Actual scheduled state/cost recursion and final solver call.
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 radius_accuracy_and_cost {f : E → ℝ} {α β R ε : ℝ}
(hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
(hα : 0 < α) (hβ : 0 < β) (hR : 0 < R) (hε : 0 < ε)
{z x₀ : E} (hmin : IsMinOn f univ z) (hx₀ : ‖x₀-z‖ ≤ R)
(A : E → ℝ → ℝ → E × ℕ) (φ : ℝ → ℕ)
(hA : ∀ y r δ, 0 < r → 0 < δ → ‖y-z‖ ≤ r →
f (A y r δ).1 - f z ≤ δ ∧ (A y r δ).2 ≤ φ (β*r^2/δ))
(N : ℕ) (hN : α * (R / (2:ℝ)^N)^2 ≤ ε) :
let r := fun k : ℕ => R / (2:ℝ)^k
let run : ℕ → E × ℕ := Nat.rec (x₀, 0) (fun k p =>
let w := A p.1 (r k) (α*(r k)^2/8)
(w.1, p.2 + w.2))
let last := A (run N).1 (Real.sqrt (ε/α)) ε
‖(run N).1-z‖ ≤ r N ∧ (run N).2 ≤ N * φ (8*(β/α)) ∧
f last.1 - f z ≤ ε ∧ (run N).2 + last.2 ≤ N * φ (8*(β/α)) + φ (β/α)Fermat gives the genuine gradient at z equal to zero. Apply the existing strong-convexity first-order lower bound at z. The resulting alpha/2 factor is essential: the older midpoint-only alpha/4 bound would not give the prescribed halving constant. Assume the actual current point has distance at most r_k. Positivity of R and alpha makes r_k and delta_k=alpha*r_k²/8 positive, so the base solver contract applies. Its objective guarantee combined with quadratic growth yields squared distance at most r_k²/4. Nonnegative norms and r_k>0 then give radius r_k/2=r_(k+1). The initial radius is the supplied hypothesis. At every stage the prescribed radius appears in both the tolerance and the solver budget. Their ratio is exactly 8beta/alpha, so no monotonicity of phi is needed. The recursion adds the returned cost to the accumulated natural count. Induction gives c_N<=N phi(8beta/alpha). The chosen horizon gives r_N<=sqrt(epsilon/alpha). Pass that positive upper radius, together with tolerance epsilon, to the same solver at the actual state x_N. Its output has objective gap at most epsilon. The final budget argument simplifies exactly to beta/alpha. Add this final returned cost, including when N=0.
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 radius_accuracy_and_cost {f : E → ℝ} {α β R ε : ℝ}
(hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
(hα : 0 < α) (hβ : 0 < β) (hR : 0 < R) (hε : 0 < ε)
{z x₀ : E} (hmin : IsMinOn f univ z) (hx₀ : ‖x₀-z‖ ≤ R)
(A : E → ℝ → ℝ → E × ℕ) (φ : ℝ → ℕ)
(hA : ∀ y r δ, 0 < r → 0 < δ → ‖y-z‖ ≤ r →
f (A y r δ).1 - f z ≤ δ ∧ (A y r δ).2 ≤ φ (β*r^2/δ))
(N : ℕ) (hN : α * (R / (2:ℝ)^N)^2 ≤ ε) :
let r := fun k : ℕ => R / (2:ℝ)^k
let run : ℕ → E × ℕ := Nat.rec (x₀, 0) (fun k p =>
let w := A p.1 (r k) (α*(r k)^2/8)
(w.1, p.2 + w.2))
let last := A (run N).1 (Real.sqrt (ε/α)) ε
‖(run N).1-z‖ ≤ r N ∧ (run N).2 ≤ N * φ (8*(β/α)) ∧
f last.1 - f z ≤ ε ∧ (run N).2 + last.2 ≤ N * φ (8*(β/α)) + φ (β/α) := by
let r := fun k : ℕ => R / (2:ℝ)^k
let run : ℕ → E × ℕ := Nat.rec (x₀, 0) (fun k p =>
let w := A p.1 (r k) (α*(r k)^2/8)
(w.1, p.2 + w.2))
change ‖(run N).1-z‖ ≤ r N ∧ (run N).2 ≤ N * φ (8*(β/α)) ∧ _
have hr (k : ℕ) : 0 < r k := div_pos hR (pow_pos (by norm_num) _)
have hgrad : gradient f z = 0 := by
simp [gradient, (hmin.isLocalMin Filter.univ_mem).fderiv_eq_zero]
have hqg (y : E) : α/2 * ‖y-z‖^2 ≤ f y - f z := by
have h := StrongConvexFirstOrder.firstOrder_lower_bound_of_strongConvexOn hsc
(fun x _ => (hf.differentiable_one x).hasGradientAt) (mem_univ z) (mem_univ y)
rw [hgrad, inner_zero_left] at h
linarith
have hind (k : ℕ) : ‖(run k).1-z‖ ≤ r k ∧ (run k).2 ≤ k * φ (8*(β/α)) := by
induction k with
| zero => simpa [run, r] using hx₀
| succ k ih =>
have hδ : 0 < α*(r k)^2/8 := by positivity
have hw := hA (run k).1 (r k) (α*(r k)^2/8) (hr k) hδ ih.1
have hid : β*(r k)^2 / (α*(r k)^2/8) = 8*(β/α) := by
field_simp [ne_of_gt (hr k)]
rw [hid] at hw
have hs : r (k+1) = r k / 2 := by dsimp [r]; rw [pow_succ, div_mul_eq_div_div]
constructor
· change ‖(A (run k).1 (r k) (α*(r k)^2/8)).1-z‖ ≤ r (k+1)
rw [hs]
have hg := (hqg (A (run k).1 (r k) (α*(r k)^2/8)).1).trans hw.1
have hsquare : ‖(A (run k).1 (r k) (α*(r k)^2/8)).1-z‖^2 ≤ (r k/2)^2 := by
nlinarith
nlinarith [norm_nonneg ((A (run k).1 (r k) (α*(r k)^2/8)).1-z), hr k]
· change (run k).2 + (A (run k).1 (r k) (α*(r k)^2/8)).2 ≤ (k+1) * φ (8*(β/α))
simpa only [Nat.add_mul, Nat.one_mul] using Nat.add_le_add ih.2 hw.2
have hs : r N ≤ Real.sqrt (ε/α) := by
apply Real.le_sqrt_of_sq_le
exact (le_div_iff₀ hα).mpr (by nlinarith [hN])
have hlast := hA (run N).1 (Real.sqrt (ε/α)) ε
(Real.sqrt_pos.mpr (div_pos hε hα)) hε ((hind N).1.trans hs)
have hid : β * (Real.sqrt (ε/α))^2 / ε = β/α := by
rw [Real.sq_sqrt (div_nonneg hε.le hα.le)]
field_simp
rw [hid] at hlast
exact ⟨(hind N).1, (hind N).2, hlast.1, Nat.add_le_add (hind N).2 hlast.2⟩
end AutoSamplingTheory.TechnicalLemmas.Analysis.RestartReduction| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Convex beta-smooth class algorithm applied to an alpha-strongly convex Euclidean objective. | C1 strongly convex Hilbert objective plus a uniform radius-certified output/cost contract for A. | generalization | The restart argument only uses sharp quadratic growth and base-call guarantees. Smoothness belongs to the assumed base algorithm correctness; the theorem does not certify a first-order implementation or construct it for all objectives. |
| Initial radius, strong-convexity parameter and tolerances in repeated calls. | Alpha,beta,R,epsilon strictly positive, with actual initial distance at most R. | source-implicit | Positive scheduled radii prevent zero-tolerance calls and justify exact cancellation. An initially optimal point is permitted via positive R; literal R0 is deferred. |
| Radius R_k bounds the current distance; final radius at most sqrt(epsilon/alpha). | A receives the prescribed upper radius; final call uses exactly sqrt(epsilon/alpha). | same | The opening source convention is for an upper distance bound. Exact ratios give phi(8kappa) and phi(kappa) without assuming monotonicity. |
| Full asymptotic query complexity in the lemma conclusion. | Given N satisfying the algebraic radius condition, actual output accuracy and N phi(8kappa)+phi(kappa) certified cost. | same | This binding covers the finite proof components only. Choosing N logarithmically, formal oracle-machine semantics and comparing the two phi terms remain separate obligations. |
This is the finite restart construction and certified cost composition in the proof of Lemma4.1. It is not a new proof of correctness of every possible base solver, a formal first-order-oracle machine, or the full class-level asymptotic reduction. The solver contract is exactly the assumed ingredient being transformed. The formal reduction works for C1 strongly convex Hilbert objectives admitting the stated base solver contract. Source beta-smoothness motivates that contract; it is not independently inferred from beta or from an arbitrary returned pair. No supplied quadratic-growth or stage-radius invariant replaces the proof. R>0 avoids zero-tolerance calls. An exactly minimizing initial point is allowed by any positive upper-radius certificate, but the R=0 stopping branch is outside this declaration. N=0 still makes the distinct final polishing call; the radius condition alone is not used as an objective-accuracy certificate. The radius supplied to a base call is a known upper bound, consistent with the opening definition in Section4.1. The final call uses sqrt(epsilon/alpha) rather than the unknown exact distance; its cost is exactly bounded by phi(kappa) without monotonicity. No logarithmic round-count normalization or absorption of phi(kappa) into phi(8kappa) is claimed. A global bound must account for the last call when the logarithm is small or nonpositive; an asymptotic small-tolerance convention and any phi comparison must be stated when formalized. The concrete test uses actual gradient descent on x²/2 at step1/2. Each base call executes ceil(r²/delta)+1 gradient updates and reports that count; the existing convex value theorem proves its uniform contract. All restart counts, including zero, exercise the real recursion and final call. No hidden access to the supplied minimizer is passed to A. No minimizer-existence, reverse regularization reduction, oracle lower bound, Riemannian/stochastic method or companion-paper completion is asserted.
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.
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.RestartLogComplexity.logarithmic_accuracy_and_cost · theorem · Teaching coverage
E is a complete real inner-product space. The fixed function f:E→R is C1 and alpha-strongly convex on E with the alpha/2 convention. A global minimizer z is supplied. Alpha,beta,R,epsilon are positive; ||x0-z||<=R. R is a supplied upper radius. For every point y and positive radius r and tolerance delta with ||y-z||<=r, A(y,r,delta) returns a point whose objective gap is <=delta and a natural cost <=phi(beta*r²/delta). Phi:R→N is arbitrary. Beta is the positive budget parameter of this contract; beta-smoothness and an oracle implementation are not independently inferred. Let q=alpha R²/epsilon, L=log(q)/log4 and N=ceil(L) in the natural numbers, so a nonpositive L yields N=0. Define the actual restart states and final call below; C counts all returned stage costs plus the final cost. The stated radius, accuracy and cost bounds hold. Budget absorption and the small-error bound are conditional as detailed below.
All logarithm arguments are positive. Natural ceiling gives L<=N. Multiply by the positive log4 and use monotonicity of log together with log(4^N)=N log4 to obtain q<=4^N. Since (2^N)²=4^N, this is exactly the horizon condition required by the finite restart theorem.
Nat.le_ceil; Real.log_pow and Real.log_le_log_iff on positive arguments; positive-denominator algebra.
For L>=0, the natural ceiling is less than L+1. For L<0, it equals zero. Thus N<=max(0,L)+1 globally. More precisely, N=0 iff L<=0 iff q<=1 iff alpha R²<=epsilon. This certifies only that no halving stage is needed; the final solver call remains.
Nat.ceil_lt_add_one requires nonnegative L; Nat.ceil_eq_zero handles the other branch. Real.log_le_log_iff relates q and1.
Apply the existing radius_accuracy_and_cost theorem at this N using the horizon just proved. Its Nat.rec is exactly the recursion below. It supplies the actual state radius, final output error, and the natural sum of all certified call costs. The new theorem does not assume a radius invariant or an adequate iteration count.
RestartReduction.radius_accuracy_and_cost; alpha/2 quadratic growth and the genuine solver recursion are reused, not reproved.
Cast the natural cost inequality to real numbers. Both phi values are nonnegative, so replacing N by its upper bound preserves the inequality. This global logarithmic bound uses no comparison between the two phi values.
Nat.cast_le, Nat.cast_add, Nat.cast_mul and multiplication by a nonnegative natural-valued budget.
Under the additional condition phi(kappa)<=phi(8kappa), the final cost can be absorbed with the displayed universal factor. The result is (max(0,L)+2)phi(8kappa). If additionally q>=4, then L>=1, so L+2<=3L. This gives the explicit constant3/log4 in front of phi(8kappa)logq. These are conditional consequences; no monotonicity of phi or all-accuracy logarithmic bound is silently asserted.
Order of natural casts, Real.log_le_log, division by positive log4, and nonnegative multiplication. The last implication is inside the phi-comparison implication.
The exact logarithmic count, recursive calls and conditional cost conclusions.
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 logarithmic_accuracy_and_cost {f : E → ℝ} {α β R ε : ℝ}
(hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
(hα : 0 < α) (hβ : 0 < β) (hR : 0 < R) (hε : 0 < ε)
{z x₀ : E} (hmin : IsMinOn f univ z) (hx₀ : ‖x₀-z‖ ≤ R)
(A : E → ℝ → ℝ → E × ℕ) (φ : ℝ → ℕ)
(hA : ∀ y r δ, 0 < r → 0 < δ → ‖y-z‖ ≤ r →
f (A y r δ).1 - f z ≤ δ ∧ (A y r δ).2 ≤ φ (β*r^2/δ)) :
let L := Real.log (α*R^2/ε) / Real.log 4
let N := ⌈L⌉₊
let r := fun k : ℕ => R / (2:ℝ)^k
let run : ℕ → E × ℕ := Nat.rec (x₀, 0) (fun k p =>
let w := A p.1 (r k) (α*(r k)^2/8)
(w.1, p.2 + w.2))
let last := A (run N).1 (Real.sqrt (ε/α)) ε
let C := (run N).2 + last.2
(N : ℝ) ≤ max 0 L + 1 ∧ (N = 0 ↔ α*R^2 ≤ ε) ∧
‖(run N).1-z‖ ≤ r N ∧ f last.1 - f z ≤ ε ∧
C ≤ N * φ (8*(β/α)) + φ (β/α) ∧
(C : ℝ) ≤ (max 0 L + 1) * φ (8*(β/α)) + φ (β/α) ∧
(φ (β/α) ≤ φ (8*(β/α)) →
(C : ℝ) ≤ (max 0 L + 2) * φ (8*(β/α)) ∧
(4 ≤ α*R^2/ε → (C : ℝ) ≤ 3*L*φ (8*(β/α))))All logarithm arguments are positive. Natural ceiling gives L<=N. Multiply by the positive log4 and use monotonicity of log together with log(4^N)=N log4 to obtain q<=4^N. Since (2^N)²=4^N, this is exactly the horizon condition required by the finite restart theorem. For L>=0, the natural ceiling is less than L+1. For L<0, it equals zero. Thus N<=max(0,L)+1 globally. More precisely, N=0 iff L<=0 iff q<=1 iff alpha R²<=epsilon. This certifies only that no halving stage is needed; the final solver call remains. Apply the existing radius_accuracy_and_cost theorem at this N using the horizon just proved. Its Nat.rec is exactly the recursion below. It supplies the actual state radius, final output error, and the natural sum of all certified call costs. The new theorem does not assume a radius invariant or an adequate iteration count. Cast the natural cost inequality to real numbers. Both phi values are nonnegative, so replacing N by its upper bound preserves the inequality. This global logarithmic bound uses no comparison between the two phi values. Under the additional condition phi(kappa)<=phi(8kappa), the final cost can be absorbed with the displayed universal factor. The result is (max(0,L)+2)phi(8kappa). If additionally q>=4, then L>=1, so L+2<=3L. This gives the explicit constant3/log4 in front of phi(8kappa)logq. These are conditional consequences; no monotonicity of phi or all-accuracy logarithmic bound is silently asserted.
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 logarithmic_accuracy_and_cost {f : E → ℝ} {α β R ε : ℝ}
(hf : ContDiff ℝ 1 f) (hsc : StrongConvexOn univ α f)
(hα : 0 < α) (hβ : 0 < β) (hR : 0 < R) (hε : 0 < ε)
{z x₀ : E} (hmin : IsMinOn f univ z) (hx₀ : ‖x₀-z‖ ≤ R)
(A : E → ℝ → ℝ → E × ℕ) (φ : ℝ → ℕ)
(hA : ∀ y r δ, 0 < r → 0 < δ → ‖y-z‖ ≤ r →
f (A y r δ).1 - f z ≤ δ ∧ (A y r δ).2 ≤ φ (β*r^2/δ)) :
let L := Real.log (α*R^2/ε) / Real.log 4
let N := ⌈L⌉₊
let r := fun k : ℕ => R / (2:ℝ)^k
let run : ℕ → E × ℕ := Nat.rec (x₀, 0) (fun k p =>
let w := A p.1 (r k) (α*(r k)^2/8)
(w.1, p.2 + w.2))
let last := A (run N).1 (Real.sqrt (ε/α)) ε
let C := (run N).2 + last.2
(N : ℝ) ≤ max 0 L + 1 ∧ (N = 0 ↔ α*R^2 ≤ ε) ∧
‖(run N).1-z‖ ≤ r N ∧ f last.1 - f z ≤ ε ∧
C ≤ N * φ (8*(β/α)) + φ (β/α) ∧
(C : ℝ) ≤ (max 0 L + 1) * φ (8*(β/α)) + φ (β/α) ∧
(φ (β/α) ≤ φ (8*(β/α)) →
(C : ℝ) ≤ (max 0 L + 2) * φ (8*(β/α)) ∧
(4 ≤ α*R^2/ε → (C : ℝ) ≤ 3*L*φ (8*(β/α)))) := by
let L := Real.log (α*R^2/ε) / Real.log 4
let N := ⌈L⌉₊
have hlog : 0 < Real.log 4 := Real.log_pos (by norm_num)
have hq : 0 < α*R^2/ε := by positivity
have hround : (N : ℝ) ≤ max 0 L + 1 := by
by_cases hL : 0 ≤ L
· exact (Nat.ceil_lt_add_one hL).le.trans (by rw [max_eq_right hL])
· have hz : N = 0 := Nat.ceil_eq_zero.mpr (le_of_not_ge hL)
rw [hz, Nat.cast_zero, max_eq_left (le_of_not_ge hL)]
norm_num
have hzero : N = 0 ↔ α*R^2 ≤ ε := by
change ⌈Real.log (α*R^2/ε) / Real.log 4⌉₊ = 0 ↔ _
rw [Nat.ceil_eq_zero, div_le_iff₀ hlog, zero_mul]
rw [← Real.log_one, Real.log_le_log_iff hq (by norm_num)]
exact (div_le_iff₀ hε).trans (by simp)
have hpow : α*R^2/ε ≤ (4:ℝ)^N := by
apply (Real.log_le_log_iff hq (by positivity)).mp
rw [Real.log_pow]
exact (div_le_iff₀ hlog).mp (Nat.le_ceil L)
have hid : ((2:ℝ)^N)^2 = (4:ℝ)^N := by
rw [← pow_mul, Nat.mul_comm N 2, pow_mul]
norm_num
have hN : α*(R/(2:ℝ)^N)^2 ≤ ε := by
rw [div_pow, ← mul_div_assoc, hid]
apply (div_le_iff₀ (by positivity : 0 < (4:ℝ)^N)).mpr
have h := (div_le_iff₀ hε).mp hpow
nlinarith
have hb := RestartReduction.radius_accuracy_and_cost hf hsc hα hβ hR hε
hmin hx₀ A φ hA N hN
let r := fun k : ℕ => R / (2:ℝ)^k
let run : ℕ → E × ℕ := Nat.rec (x₀, 0) (fun k p =>
let w := A p.1 (r k) (α*(r k)^2/8)
(w.1, p.2 + w.2))
let last := A (run N).1 (Real.sqrt (ε/α)) ε
let C := (run N).2 + last.2
have hcast : (C : ℝ) ≤ (N : ℝ) * φ (8*(β/α)) + φ (β/α) := by
have hc : C ≤ N * φ (8*(β/α)) + φ (β/α) := hb.2.2.2
simpa only [Nat.cast_add, Nat.cast_mul] using ((Nat.cast_le (α := ℝ)).mpr hc)
have hm : (N : ℝ) * φ (8*(β/α)) ≤
(max 0 L + 1) * φ (8*(β/α)) :=
mul_le_mul_of_nonneg_right hround (Nat.cast_nonneg _)
have hreal : (C : ℝ) ≤ (max 0 L + 1) * φ (8*(β/α)) + φ (β/α) := by
linarith
refine ⟨hround, hzero, hb.1, hb.2.2.1, hb.2.2.2, hreal, ?_⟩
intro hφ
have hp : (φ (β/α) : ℝ) ≤ φ (8*(β/α)) := by exact_mod_cast hφ
have ha : (C : ℝ) ≤ (max 0 L + 2) * φ (8*(β/α)) := by nlinarith
refine ⟨ha, ?_⟩
intro hsmall
have hL : 1 ≤ L := by
apply (le_div_iff₀ hlog).mpr
simpa using (Real.log_le_log (by norm_num : (0:ℝ)<4) hsmall)
rw [max_eq_right (by linarith : 0 ≤ L)] at ha
have hfactor : L+2 ≤ 3*L := by linarith
exact ha.trans (mul_le_mul_of_nonneg_right hfactor (Nat.cast_nonneg _))
end AutoSamplingTheory.TechnicalLemmas.Analysis.RestartLogComplexity| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Smooth strongly convex Euclidean objective and a first-order solver for the convex class. | E is a complete real inner-product space. The fixed function f:E→R is C1 and alpha-strongly convex on E with the alpha/2 convention. A global minimizer z is supplied. Alpha,beta,R,epsilon are positive; ||x0-z||<=R. R is a supplied upper radius. For every point y and positive radius r and tolerance delta with ||y-z||<=r, A(y,r,delta) returns a point whose objective gap is <=delta and a natural cost <=phi(beta*r²/delta). Phi:R→N is arbitrary. Beta is the positive budget parameter of this contract; beta-smoothness and an oracle implementation are not independently inferred. | generalization | The finite argument consumes an explicit fixed-objective solver contract; Hilbert C1 geometry suffices. Oracle/class realization is not promoted from a natural cost label. |
| Repeat O(log(alpha R²/epsilon)) rounds. | N=Nat.ceil(log(alpha R²/epsilon)/log4); positive parameters; N=0 iff alpha R²<=epsilon. | source-implicit | Integer rounding and coarse-accuracy behavior are explicit. No source claim on totalized log0 is used. |
| Absorb the last phi(kappa) call in the source O(phi(8kappa)log(alpha R²/epsilon)) expression. | Always retain the two-term bound. Only under phi(kappa)<=phi(8kappa) get (max(0,L)+2)phi(8kappa); under q>=4 also get3Lphi(8kappa). | unresolved | These are separately stated sufficient hypotheses of conditional conclusions. They are not silently assumed, asserted necessary, or accepted as a source repair; complete source oracle/class fidelity remains unresolved. |
This closes logarithmic horizon selection and certified cost normalization for the actual fixed-objective restart construction. It does not formalize oracle execution, uniform algorithm existence over the source function class, or the entire Lemma4.1. The positive radius and supplied minimizer/base-solver contract are inherited. Literal R=0 stopping, minimizer existence and reverse regularization remain separate. C1 Hilbert geometry generalizes the smooth Euclidean source specialization. The unconditional bound retains both phi values and the final call for N=0. The displayed absorbed bound is an implication with phi(kappa)<=phi(8kappa); the pure logarithmic constant3/log4 also requires q>=4. These are sufficient conditions for these consequences, not an accepted repair of the original source. No whole-lemma source equivalence or asymptotic first-order class theorem is claimed. An actual oracle interpretation needs an external implementation of the supplied A contract. Tests instantiate a real step1/2 gradient-descent solver on x²/2, with each call executing and counting ceil(r²/delta)+1 updates. For every positive epsilon the theorem gives C<=9N+2, a global real bound9(max(0,L)+1)+2 and, for epsilon<=1/4, C<=27L. Separate ceiling checks cover q=4³,q=1/4 and q=1.
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.
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 · Section4.1 Lemma4.2 statement and proof; regularized minimum and radius comparisons · faithful paraphrase
Assume a first-order method optimizes the alpha-strongly convex beta-smooth class in phi(kappa) log(alpha R²/epsilon) queries, where kappa=beta/alpha. Lemma4.2 reduces the convex beta-smooth class to it with stated order O(phi(2 beta R²/epsilon)). The proof forms W=f+delta||x-x0||²/2 with delta=epsilon/R², solves W to tolerance epsilon/2, and compares its minimizer w with an original minimizer z. W(w)<=W(z) and f(z)<=f(w) show ||w-x0||<=||z-x0||<=R; the two half-error terms then give f(x)-f(z)<=epsilon. In the regime epsilon<=beta R², the regularized smoothness is beta+delta<=2beta and its condition number is at most2 beta R²/epsilon. The existence/comparison, curvature/smoothness and oracle-complexity obligations are separate.
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.QuadraticRegularizationTransfer.exists_minimizer_radius_and_accuracy · theorem · Teaching coverage
E is a normed additive commutative group whose closed metric balls are compact (ProperSpace). The function f:E→R is continuous. A global minimizer z of f is supplied: f(z)<=f(x) for every x. The center x0 and positive real numbers R,epsilon satisfy ||z-x0||<=R. Set delta=epsilon/R² and W(x)=f(x)+delta||x-x0||²/2. The theorem constructs a global minimizer w of this same W; it does not assume a regularized minimizer, convexity or differentiability. There exists such a w with the radius bound below, and every epsilon/2-accurate regularized point is epsilon-accurate for f.
Delta is positive because epsilon and R are positive. The squared distance to x0 is continuous, so W is continuous. The closed ball of radius R centered at x0 is compact and contains z. The extreme value theorem gives w in that ball minimizing W there; in particular W(w)<=W(z).
isCompact_closedBall; IsCompact.exists_isMinOn; continuity of distance and its square. Properness is used here.
Inside the ball the comparison is already proved. Outside it, ||x-x0||>R>=||z-x0||. The original global minimality gives f(z)<=f(x), and the nonnegative quadratic coefficient gives the same order for the two penalties. Therefore W(z)<=W(x), and W(w)<=W(z)<=W(x). This constructs actual global minimality, not just constrained minimality.
Membership split for closedBall, dist_eq_norm, positive scalar multiplication and the supplied IsMinOn f Set.univ z.
Combine W(w)<=W(z) with f(z)<=f(w). Subtract the objective terms, then cancel the positive delta/2. The squared distance of w from x0 is no larger than that of z. Both norms are nonnegative, so their order follows. No uniqueness or convexity is used.
The same compactly constructed w and W(w)<=W(z); positive-coefficient algebra and norm_nonneg.
For any x whose W-gap above W(w) is at most epsilon/2, nonnegativity of the penalty gives f(x)<=W(x). The minimizer comparison bounds W(w) by W(z). The radius certificate gives delta||z-x0||²/2<=delta R²/2=epsilon/2. Adding the two half-error terms yields f(x)-f(z)<=epsilon.
Uniform all-x implication for the same witness w; δ=ε/R² and R>0 justify cancellation, with no totalized division assumption.
Existence of one actual W-minimizer, its sharp radius comparison and an all-points approximation implication.
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 exists_minimizer_radius_and_accuracy
{E : Type*} [NormedAddCommGroup E] [ProperSpace E]
{f : E → ℝ} (hf : Continuous f) {z x₀ : E} (hz : IsMinOn f univ z)
{R ε : ℝ} (hR : 0 < R) (hε : 0 < ε) (hx : ‖z-x₀‖ ≤ R) :
let δ := ε/R^2
let W := fun x => f x + δ/2*‖x-x₀‖^2
∃ w, IsMinOn W univ w ∧ ‖w-x₀‖ ≤ ‖z-x₀‖ ∧
∀ x, W x - W w ≤ ε/2 → f x - f z ≤ εDelta is positive because epsilon and R are positive. The squared distance to x0 is continuous, so W is continuous. The closed ball of radius R centered at x0 is compact and contains z. The extreme value theorem gives w in that ball minimizing W there; in particular W(w)<=W(z). Inside the ball the comparison is already proved. Outside it, ||x-x0||>R>=||z-x0||. The original global minimality gives f(z)<=f(x), and the nonnegative quadratic coefficient gives the same order for the two penalties. Therefore W(z)<=W(x), and W(w)<=W(z)<=W(x). This constructs actual global minimality, not just constrained minimality. Combine W(w)<=W(z) with f(z)<=f(w). Subtract the objective terms, then cancel the positive delta/2. The squared distance of w from x0 is no larger than that of z. Both norms are nonnegative, so their order follows. No uniqueness or convexity is used. For any x whose W-gap above W(w) is at most epsilon/2, nonnegativity of the penalty gives f(x)<=W(x). The minimizer comparison bounds W(w) by W(z). The radius certificate gives delta||z-x0||²/2<=delta R²/2=epsilon/2. Adding the two half-error terms yields f(x)-f(z)<=epsilon.
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 exists_minimizer_radius_and_accuracy
{E : Type*} [NormedAddCommGroup E] [ProperSpace E]
{f : E → ℝ} (hf : Continuous f) {z x₀ : E} (hz : IsMinOn f univ z)
{R ε : ℝ} (hR : 0 < R) (hε : 0 < ε) (hx : ‖z-x₀‖ ≤ R) :
let δ := ε/R^2
let W := fun x => f x + δ/2*‖x-x₀‖^2
∃ w, IsMinOn W univ w ∧ ‖w-x₀‖ ≤ ‖z-x₀‖ ∧
∀ x, W x - W w ≤ ε/2 → f x - f z ≤ ε := by
let δ := ε/R^2
let W := fun x => f x + δ/2*‖x-x₀‖^2
have hδ : 0 < δ := div_pos hε (sq_pos_of_pos hR)
have hn : Continuous (fun x : E => ‖x-x₀‖^2) :=
((continuous_id.sub continuous_const).norm).pow 2
have hW : Continuous W := hf.add (continuous_const.mul hn)
have hzball : z ∈ closedBall x₀ R := by simpa [mem_closedBall, dist_eq_norm] using hx
obtain ⟨w, _, hw⟩ := (isCompact_closedBall x₀ R).exists_isMinOn ⟨z,hzball⟩ hW.continuousOn
have hwz : W w ≤ W z := hw hzball
have hglobal : IsMinOn W univ w := by
intro x _
by_cases hb : x ∈ closedBall x₀ R
· exact hw hb
· have hr : R < ‖x-x₀‖ := by simpa [mem_closedBall, dist_eq_norm] using hb
have hs : ‖z-x₀‖^2 ≤ ‖x-x₀‖^2 := by
nlinarith [norm_nonneg (z-x₀), norm_nonneg (x-x₀)]
have hzfx : f z ≤ f x := hz (mem_univ x)
have hquad := mul_le_mul_of_nonneg_left hs (le_of_lt (div_pos hδ (by norm_num : (0:ℝ)<2)))
have hzW : W z ≤ W x := by dsimp [W]; linarith
exact hwz.trans hzW
have hradius : ‖w-x₀‖ ≤ ‖z-x₀‖ := by
have hzw : f z ≤ f w := hz (mem_univ w)
have hs : ‖w-x₀‖^2 ≤ ‖z-x₀‖^2 := by
dsimp [W] at hwz
nlinarith
nlinarith [norm_nonneg (w-x₀), norm_nonneg (z-x₀)]
refine ⟨w,hglobal,hradius,?_⟩
intro x he
have hbase : f x ≤ W x := by
dsimp [W]
exact le_add_of_nonneg_right (mul_nonneg (div_nonneg hδ.le (by norm_num)) (sq_nonneg _))
have hs : ‖z-x₀‖^2 ≤ R^2 := by nlinarith [norm_nonneg (z-x₀)]
have hquad := mul_le_mul_of_nonneg_left hs (le_of_lt (div_pos hδ (by norm_num : (0:ℝ)<2)))
have hid : δ/2*R^2 = ε/2 := by dsimp [δ]; field_simp
rw [hid] at hquad
dsimp [W] at hwz
change W x - W w ≤ ε/2 at he
have : W w ≤ f z + ε/2 := by dsimp [W]; linarith
linarith
end AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationTransfer| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Convex beta-smooth Euclidean objective with an attained original minimum. | Continuous real-valued objective on a proper normed additive commutative group with a supplied original global minimizer. | generalization | Only continuity, closed-ball compactness and the original lower bound are needed for this component. No smoothness is silently strengthened toC2; source Euclidean spaces meet properness. |
| The proof names a minimizer of W. | Construct one via compact-ball minimization and a proved outside-ball comparison. | source-implicit | This supplies the omitted existence justification. No uniqueness is claimed in the broader setting. |
| delta=epsilon/R² and upper initial-radius certificate. | R>0,epsilon>0 and ||z-x0||<=R; the same W and same constructed w appear in the uniform approximation implication. | source-implicit | Positivity justifies the penalty comparison and cancellation. Symmetry of norm makes this radius convention equivalent to ||x0-z||<=R; literal R0 is separate. |
| Full curvature and oracle complexity reduction. | Only global-minimum existence, sharp radius comparison and pointwise value transfer. | same | This binding supports precisely the listed proof components; it makes no full-lemma completion claim. |
This establishes the regularized-minimum existence, radius comparison and objective-accuracy transfer in Lemma4.2. It does not prove regularized strong convexity or smoothness, an optimizer implementation, query complexity or the complete class-level reduction. The proper normed-group formulation generalizes the source Euclidean geometry. Continuity suffices for this comparison component, so convexity and beta-smoothness are not formal assumptions here. Closed-ball compactness is explicit; no result for arbitrary complete infinite-dimensional Hilbert spaces is asserted. The original global minimizer is supplied; the regularized one is constructed. Uniqueness is not claimed in the broader continuous, possibly nonconvex setting. Positive R and epsilon ensure positive delta; the literal R=0 branch is outside this declaration. The approximation implication is a value-transfer interface, not a claim that every numerical method satisfies its input gap. Tests use an actual gradient step on a quadratic regularized objective to supply that gap without giving the algorithm the constructed minimizer. Existing C2/Hessian QuadraticRegularization and the stronger SPHMC proximal constructor were searched. They do not supply this weaker-assumption interface and are not claimed as invoked dependencies. Future curvature/smoothness and oracle-cost work must preserve the source regularity and budget conventions.
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.
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.QuadraticRegularizationFirstOrder.curvature_gradient_and_smoothness · theorem · Teaching coverage
E is a complete real inner-product space. The real-valued function f on E is everywhere Frechet differentiable and convex on the whole space. Beta and delta are nonnegative real constants (Lean NNReal), and the genuine gradient of f is beta-Lipschitz. The center u is arbitrary. W(x)=f(x)+delta||x-u||²/2 is the actual regularized objective. No second derivative, Hessian field or supplied gradient of W is assumed. Then W is differentiable, delta-strongly convex and (beta+delta)-smooth, with the exact gradient formula below.
Subtract delta||x||²/2 from W. Expanding the squared distance leaves f plus a linear functional and a constant. This is convex because f is convex. The Mathlib characterization therefore proves delta-strong convexity, with the delta/2 chord convention.
strongConvexOn_iff_convex; LinearMap.convexOn; ConvexOn.add; ConvexOn.add_const; norm_sub_sq_real.
Differentiate the squared norm composed with x↦x-u, multiply by delta/2 and add the derivative of f. The factors two and one-half cancel. This gives the genuine Frechet derivative of W and hence its differentiability.
HasFDerivAt.norm_sq; HasFDerivAt.const_mul; HasFDerivAt.add; DifferentiableAt.hasFDerivAt.
Apply the inverse Riesz isometry to the derivative just computed. Linearity preserves addition and scalar multiplication, while the inverse of the functional v↦⟨x-u,v⟩ is x-u. Thus the claimed gradient is computed from W, not supplied as an assumption.
gradient; InnerProductSpace.toDual; map_add; map_smul; LinearIsometryEquiv.symm_apply_apply.
Subtract the gradient identity at y from the one at x; the center cancels. The triangle inequality, the given beta-Lipschitz estimate for the true gradient of f, and nonnegativity of delta bound the two terms. Add the bounds to obtain beta+delta.
LipschitzWith.of_dist_le_mul; LipschitzWith.dist_le_mul; norm_add_le; norm_smul; dist_eq_norm.
Differentiability, exact delta-strong convexity, genuine gradient formula and beta+delta gradient Lipschitz continuity.
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 curvature_gradient_and_smoothness
{E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
{f : E → ℝ} (hd : Differentiable ℝ f) (hc : ConvexOn ℝ univ f)
{β δ : ℝ≥0} (hL : LipschitzWith β (gradient f)) (u : E) :
let W := fun x => f x + (δ : ℝ)/2*‖x-u‖^2
Differentiable ℝ W ∧ StrongConvexOn univ (δ : ℝ) W ∧
(∀ x, gradient W x = gradient f x + (δ : ℝ) • (x-u)) ∧
LipschitzWith (β+δ) (gradient W)Subtract delta||x||²/2 from W. Expanding the squared distance leaves f plus a linear functional and a constant. This is convex because f is convex. The Mathlib characterization therefore proves delta-strong convexity, with the delta/2 chord convention. Differentiate the squared norm composed with x↦x-u, multiply by delta/2 and add the derivative of f. The factors two and one-half cancel. This gives the genuine Frechet derivative of W and hence its differentiability. Apply the inverse Riesz isometry to the derivative just computed. Linearity preserves addition and scalar multiplication, while the inverse of the functional v↦⟨x-u,v⟩ is x-u. Thus the claimed gradient is computed from W, not supplied as an assumption. Subtract the gradient identity at y from the one at x; the center cancels. The triangle inequality, the given beta-Lipschitz estimate for the true gradient of f, and nonnegativity of delta bound the two terms. Add the bounds to obtain beta+delta.
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 curvature_gradient_and_smoothness
{E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
{f : E → ℝ} (hd : Differentiable ℝ f) (hc : ConvexOn ℝ univ f)
{β δ : ℝ≥0} (hL : LipschitzWith β (gradient f)) (u : E) :
let W := fun x => f x + (δ : ℝ)/2*‖x-u‖^2
Differentiable ℝ W ∧ StrongConvexOn univ (δ : ℝ) W ∧
(∀ x, gradient W x = gradient f x + (δ : ℝ) • (x-u)) ∧
LipschitzWith (β+δ) (gradient W) := by
let W := fun x => f x + (δ : ℝ)/2*‖x-u‖^2
have hq (x : E) : HasFDerivAt (fun z => (δ : ℝ)/2*‖z-u‖^2)
((δ : ℝ) • innerSL ℝ (x-u)) x := by
convert (((hasFDerivAt_id x).sub_const u).norm_sq).const_mul ((δ : ℝ)/2)
using 1 <;> first | rfl | (ext v; simp; ring)
have hWd : Differentiable ℝ W := fun x => ((hd x).hasFDerivAt.add (hq x)).differentiableAt
have hgrad (x : E) : gradient W x = gradient f x + (δ : ℝ) • (x-u) := by
have hfd : fderiv ℝ W x = fderiv ℝ f x + (δ : ℝ) • innerSL ℝ (x-u) :=
((hd x).hasFDerivAt.add (hq x)).fderiv
rw [gradient, hfd, map_add, map_smul]
congr 1
exact congrArg (fun v : E => (δ : ℝ) • v) ((toDual ℝ E).symm_apply_apply (x-u))
have hstrong : StrongConvexOn univ (δ : ℝ) W := by
apply strongConvexOn_iff_convex.mpr
have ha := (hc.add (((-(δ : ℝ)) • (innerSL ℝ u).toLinearMap).convexOn convex_univ)).add_const
((δ : ℝ)/2*‖u‖^2)
convert! ha using 1
ext x
simp [W, norm_sub_sq_real, real_inner_comm]
ring
refine ⟨hWd,hstrong,hgrad,?_⟩
apply LipschitzWith.of_dist_le_mul
intro x y
rw [dist_eq_norm, hgrad, hgrad]
have he : gradient f x + (δ : ℝ) • (x-u) -
(gradient f y + (δ : ℝ) • (y-u)) =
(gradient f x-gradient f y) + (δ : ℝ) • (x-y) := by
simp only [smul_sub]
abel
rw [he]
have hb := hL.dist_le_mul x y
rw [dist_eq_norm, dist_eq_norm] at hb
calc
_ ≤ ‖gradient f x-gradient f y‖ + ‖(δ : ℝ) • (x-y)‖ := norm_add_le _ _
_ ≤ (β : ℝ)*‖x-y‖ + (δ : ℝ)*‖x-y‖ := by
rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg δ.coe_nonneg]
linarith
_ = ((β+δ : ℝ≥0) : ℝ)*dist x y := by rw [dist_eq_norm]; simp; ring
end AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationFirstOrder| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| Convex beta-smooth Euclidean objective. | Differentiable convex real-valued function on a complete real inner-product space, with genuine beta-Lipschitz gradient. | generalization | Source Euclidean spaces fit the Hilbert formulation. No C2/Hessian strengthening; differentiability prevents totalized-gradient artifacts. |
| Positive delta=epsilon/R² in the small-accuracy proof. | Arbitrary nonnegative delta and beta, with delta=0 allowed. | generalization | Exact curvature/gradient/smoothness identities hold at zero too. Positive parameter arithmetic is checked separately and no condition-number division at zero is claimed. |
| Complete algorithmic class reduction and query bound. | Actual regularized curvature and gradient smoothness only. | same | The binding supports only curvature-smoothness; oracle-cost-class remains uncovered. |
This is the curvature and smoothness component of Chewi Lemma4.2: W is differentiable and delta-strongly convex, its genuine gradient is identified, and that gradient is (beta+delta)-Lipschitz. It does not close the full first-order-oracle or class-uniform complexity reduction. Hilbert spaces generalize the source Euclidean space. Completeness supplies Riesz representation for genuine gradients; finite dimension and compactness are unnecessary here. Differentiability plus Lipschitz gradient is the source first-order smoothness contract, with no C2 strengthening. Beta=0 and delta=0 are included. At delta=0 the strong-convexity predicate reduces to ordinary convexity. Strict convexity, uniqueness and condition-number division require further positive-modulus hypotheses and are not asserted here. The general precision delta is not forced to epsilon/R² in this declaration. A compiled test checks the source parameter inequalities for positive beta,R,epsilon with epsilon<=beta R². Those anonymous arithmetic checks are not a public oracle-cost theorem or complete reduction. The earlier regularized-minimum existence/radius/accuracy theorem is separately compiled and reviewed. It is a downstream companion ingredient, not an invoked dependency of this theorem. The existing C2/Hessian shift theorem was searched but is not used.
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.
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.QuadraticRegularizationOracle.run · def · Teaching coverage
S,Q,A,X are arbitrary types of state, query, reply and output. A fixed deterministic policy next:S→X⊕Q either halts (left) or asks a query (right). An update:S→Q→A→S and oracle:Q→A are given. Fuel n is a natural query allowance and s is any initial state. There are no analytic assumptions. The following recursion defines its final state, optional successful output and actual interaction counter.
If next(s) halts with x, return the current state, some x, and zero queries, even when n=0. If it asks q with n=0, return state s, none, and zero queries.
Outer match on next s; zero-fuel branch.
For a query q with positive fuel, obtain the single answer a=O(q), update to s′, and recurse with one fewer query. Preserve the final state and halt/exhaustion outcome; increment only the returned counter.
Structural recursion on natural query fuel; let-bound answer and tail.
Generic fuel-bounded state/output/query-count recursion.
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.
def run {S Q A X : Type*} (next : S → Sum X Q) (update : S → Q → A → S)
(oracle : Q → A) : ℕ → S → (S × Option X) × ℕ
| fuel, s => match next s with
| .inl x => ((s, some x), 0)
| .inr q => match fuel with
| 0 => ((s, none), 0)
| n+1 =>
let answer := oracle q
let tail := run next update oracle n (update s q answer)
(tail.1, tail.2+1)
set_option backward.isDefEq.respectTransparency false in
/-- Correct each original value/gradient reply using known quadratic data.
For every adaptive program and fuel, this preserves the actual regularized
execution, including its state, halt/exhaustion outcome and query count. -/If next(s) halts with x, return the current state, some x, and zero queries, even when n=0. If it asks q with n=0, return state s, none, and zero queries. For a query q with positive fuel, obtain the single answer a=O(q), update to s′, and recurse with one fewer query. Preserve the final state and halt/exhaustion outcome; increment only the returned counter.
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.
def run {S Q A X : Type*} (next : S → Sum X Q) (update : S → Q → A → S)
(oracle : Q → A) : ℕ → S → (S × Option X) × ℕ
| fuel, s => match next s with
| .inl x => ((s, some x), 0)
| .inr q => match fuel with
| 0 => ((s, none), 0)
| n+1 =>
let answer := oracle q
let tail := run next update oracle n (update s q answer)
(tail.1, tail.2+1)
set_option backward.isDefEq.respectTransparency false in
/-- Correct each original value/gradient reply using known quadratic data.
For every adaptive program and fuel, this preserves the actual regularized
execution, including its state, halt/exhaustion outcome and query count. -/| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| First-order replies are (f(x),gradient f(x)); oracle interactions alone count. | Explicit deterministic state/control/update recursion with a query counter and distinguished halt/exhaustion result. | API-limitation | A bounded deterministic realization of the implicit query conversion, not the full class of oracle algorithms. |
| A convex beta-smooth Euclidean objective and positive precision in Lemma4.2. | Generic types for the interpreter; the simulation uses a differentiable convex Hilbert objective with beta-Lipschitz genuine gradient and nonnegative precision. | generalization | Hilbert and zero precision are valid for this scoped identity. The parent supplies actual gradient calculus at source first-order regularity. |
| One method works for every objective in the class with the prescribed budget. | Execution equality for any fixed program and initial state, for every finite allowance. | API-limitation | Only a prerequisite/simulation edge is bound. Uniform correctness, halting budget and the final complexity substitution remain uncovered. |
The interpreter counts exact oracle interactions; local arithmetic and control inspection are free. It is a mathematical semantics on exact replies, not executable real arithmetic, finite precision or machine runtime. This is a finite deterministic simulation component. Equality holds for every fixed program and initial state, including adaptive queries and early stopping. It does not prove that a program chosen using f is information-restricted. Class-uniform work must quantify a single program/initialization before f and prove its halting accuracy and budget over the whole class. Halting after the last allowed reply is detected with no extra query. A halted output is some x; none means fuel exhaustion and carries no successful-output claim. No randomized/unbounded-machine equivalence, minimizer existence or full Lemma4.2 complexity reduction is asserted.
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.
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.QuadraticRegularizationOracle.simulate_regularized · theorem · Teaching coverage
E is a complete real inner-product space. The objective f:E→R is everywhere differentiable and convex, with genuine beta-Lipschitz gradient; beta,delta are nonnegative (including zero), and u:E is arbitrary. S and X are arbitrary state and output types. Fix next:S→X⊕E and update:S→E→(R×E)→S. Quantify every query allowance n:N and initial state s:S. Set W(x)=f(x)+delta||x-u||²/2, O_f(x)=(f(x),gradient f(x)), and O_W(x)=(W(x),gradient W(x)). Correct a reply a using the known x,u,delta before applying the same update. The corrected original run equals the true regularized run in final state, halt/exhaustion outcome and actual count; that count is at most n.
The compiled first-order regularization theorem computes the genuine gradient of W. Its value is W by definition. Therefore adding the known quadratic value and gradient correction to one O_f reply produces exactly O_W(x). Convexity and gradient Lipschitzness are inherited source-class premises of the reused parent; no Hessian or second derivative is needed.
AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationFirstOrder.curvature_gradient_and_smoothness (third conjunct).
Induct on query allowance, for every state. Both runs inspect the same next(s). A halt or zero-fuel exhaustion returns the same result without querying. In the positive-fuel query branch, corrected and true replies update to exactly the same state. Apply the induction hypothesis there; this handles reply-dependent future queries and stopping.
Natural induction generalizing s; cases on next s; rewrite actual gradient identity; congrArg on recursive pair.
In the only querying branch both interpreters make one interaction and add one to the equal recursive counters. The inductive bound c≤n gives c+1≤n+1. Halt/exhaustion branches have zero cost. No externally supplied cost label or objective minimizer enters the execution.
Nat.succ_le_succ; run query branch.
Full execution equality and actual query counter bounded by fuel.
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 simulate_regularized
{E S X : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
(next : S → Sum X E) (update : S → E → (ℝ × E) → S)
{f : E → ℝ} (hd : Differentiable ℝ f) (hc : ConvexOn ℝ univ f)
{β δ : ℝ≥0} (hL : LipschitzWith β (gradient f)) (u : E) (fuel : ℕ) (s : S) :
let W := fun x => f x + (δ : ℝ)/2*‖x-u‖^2
let corrected := fun s x (a : ℝ × E) =>
update s x (a.1 + (δ : ℝ)/2*‖x-u‖^2, a.2 + (δ : ℝ) • (x-u))
let base := run next corrected (fun x => (f x, gradient f x)) fuel s
let target := run next update (fun x => (W x, gradient W x)) fuel s
base = target ∧ base.2 ≤ fuelThe compiled first-order regularization theorem computes the genuine gradient of W. Its value is W by definition. Therefore adding the known quadratic value and gradient correction to one O_f reply produces exactly O_W(x). Convexity and gradient Lipschitzness are inherited source-class premises of the reused parent; no Hessian or second derivative is needed. Induct on query allowance, for every state. Both runs inspect the same next(s). A halt or zero-fuel exhaustion returns the same result without querying. In the positive-fuel query branch, corrected and true replies update to exactly the same state. Apply the induction hypothesis there; this handles reply-dependent future queries and stopping. In the only querying branch both interpreters make one interaction and add one to the equal recursive counters. The inductive bound c≤n gives c+1≤n+1. Halt/exhaustion branches have zero cost. No externally supplied cost label or objective minimizer enters the execution.
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 simulate_regularized
{E S X : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
(next : S → Sum X E) (update : S → E → (ℝ × E) → S)
{f : E → ℝ} (hd : Differentiable ℝ f) (hc : ConvexOn ℝ univ f)
{β δ : ℝ≥0} (hL : LipschitzWith β (gradient f)) (u : E) (fuel : ℕ) (s : S) :
let W := fun x => f x + (δ : ℝ)/2*‖x-u‖^2
let corrected := fun s x (a : ℝ × E) =>
update s x (a.1 + (δ : ℝ)/2*‖x-u‖^2, a.2 + (δ : ℝ) • (x-u))
let base := run next corrected (fun x => (f x, gradient f x)) fuel s
let target := run next update (fun x => (W x, gradient W x)) fuel s
base = target ∧ base.2 ≤ fuel := by
dsimp only
have hg := (QuadraticRegularizationFirstOrder.curvature_gradient_and_smoothness
hd hc hL (δ := δ) u).2.2.1
induction fuel generalizing s with
| zero => cases h : next s <;> simp [run, h]
| succ n ih =>
cases h : next s with
| inl x => simp [run, h]
| inr x =>
have step (upd : S → E → (ℝ × E) → S) (O : E → ℝ × E) :
run next upd O (n+1) s =
let tail := run next upd O n (upd s x (O x))
(tail.1, tail.2+1) := by rw [run, h]
simp only [step, hg]
obtain ⟨he, hn⟩ := ih (update s x
(f x + (δ : ℝ)/2*‖x-u‖^2, gradient f x + (δ : ℝ) • (x-u)))
refine ⟨?_, Nat.succ_le_succ hn⟩
simpa only [hg] using congrArg (fun r => (r.1, r.2+1)) he
end AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationOracle| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| First-order replies are (f(x),gradient f(x)); oracle interactions alone count. | Explicit deterministic state/control/update recursion with a query counter and distinguished halt/exhaustion result. | API-limitation | A bounded deterministic realization of the implicit query conversion, not the full class of oracle algorithms. |
| A convex beta-smooth Euclidean objective and positive precision in Lemma4.2. | Generic types for the interpreter; the simulation uses a differentiable convex Hilbert objective with beta-Lipschitz genuine gradient and nonnegative precision. | generalization | Hilbert and zero precision are valid for this scoped identity. The parent supplies actual gradient calculus at source first-order regularity. |
| One method works for every objective in the class with the prescribed budget. | Execution equality for any fixed program and initial state, for every finite allowance. | API-limitation | Only a prerequisite/simulation edge is bound. Uniform correctness, halting budget and the final complexity substitution remain uncovered. |
The interpreter counts exact oracle interactions; local arithmetic and control inspection are free. It is a mathematical semantics on exact replies, not executable real arithmetic, finite precision or machine runtime. This is a finite deterministic simulation component. Equality holds for every fixed program and initial state, including adaptive queries and early stopping. It does not prove that a program chosen using f is information-restricted. Class-uniform work must quantify a single program/initialization before f and prove its halting accuracy and budget over the whole class. Halting after the last allowed reply is detected with no extra query. A halted output is some x; none means fuel exhaustion and carries no successful-output claim. No randomized/unbounded-machine equivalence, minimizer existence or full Lemma4.2 complexity reduction is asserted.
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.
AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationOracle.runAutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationFirstOrder.curvature_gradient_and_smoothnessASTIS 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.UniformRegularization.uniform_accuracy_and_query_bound · theorem · Teaching coverage
E is a proper complete real inner-product space and S is any state type. Beta is nonnegative; R and epsilon are positive and epsilon<=beta R² (hence beta is actually positive). The center u is fixed. Phi:R→N is an arbitrary natural-valued budget function, with no monotonicity. Fix next:S→E⊕E, update:S→E→(R×E)→S and initial state s0 before quantifying any objective. Left control is a successful output, right control is a query. Set delta=epsilon/R²>0 and N=ceil_nat(Phi(2beta/delta) log(delta R²/(epsilon/2))). For every differentiable delta-strongly-convex g whose genuine gradient is 2beta-Lipschitz, and every global minimizer w with ||w-u||<=R, assume this same program really halts with some x within query allowance N and satisfies g(x)-g(w)<=epsilon/2. The convex consumer is any differentiable convex f with genuine beta-Lipschitz gradient and a supplied global minimizer z satisfying ||z-u||<=R. Neither z nor the subsequently constructed regularized minimizer is passed into the program. Then the fixed corrected program succeeds for every such f with objective error at most epsilon, identical successful state/output, and actual query count at most both ceil_nat(Phi(2beta R²/epsilon)log2) and Phi(2beta R²/epsilon).
The chosen positive regularization satisfies delta<=beta. The existing first-order theorem proves the actual W=f+delta||x-u||²/2 is differentiable, delta-strongly convex and has (beta+delta)-Lipschitz gradient. Weaken that Lipschitz constant to 2beta and invoke the solver with that declared parameter. This avoids replacing Phi at unequal arguments.
QuadraticRegularizationFirstOrder.curvature_gradient_and_smoothness; LipschitzWith.of_dist_le_mul; multiplication of nonnegative distance bounds.
Apply the existing compact-ball comparison theorem to continuous f and its supplied original minimizer z. It constructs a global minimizer w of the actual W, proves the original radius bound also holds for w, and provides the half-error-to-full-error implication. Do not assume that W already has a minimizer.
QuadraticRegularizationTransfer.exists_minimizer_radius_and_accuracy; Differentiable.continuous.
All premises of the uniform strongly convex solver contract now hold. Its execution against the actual value/gradient oracle of W halts with some x and the required half-error. The program and its initial state were fixed before the function was quantified, so this instantiation cannot choose a new solver using W or w.
Instantiate the universally quantified actual-execution hypothesis at W and the constructed w.
Correct each original reply by the known quadratic value and gradient terms. The previous oracle simulation gives identical final state, successful output and query count, with c<=N. Apply the previously obtained value-transfer implication to this actual halted output. Exhaustion never counts as successful optimization.
QuadraticRegularizationOracle.simulate_regularized; equality transitivity; constructed accuracy implication.
Positive R and epsilon justify cancellation in both budget arguments. The logarithmic ratio is exactly two; the condition-number parameter is exactly 2beta R²/epsilon. Finally log2<=1 and the nonnegative natural value Phi(q) give ceil_nat(Phi(q)log2)<=Phi(q). Thus the actual query count obeys both bounds.
Field cancellation using R,epsilon>0; Real.log_le_sub_one_of_pos; Nat.ceil_le.
A single supplied uniform strongly convex program yields one corrected uniform convex program with actual halting accuracy and exact normalized query bound.
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 uniform_accuracy_and_query_bound
{E S : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[CompleteSpace E] [ProperSpace E]
(β : ℝ≥0) (u : E) {R ε : ℝ} (hR : 0 < R) (hε : 0 < ε)
(hsmall : ε ≤ (β : ℝ)*R^2) (φ : ℝ → ℕ)
(next : S → Sum E E) (update : S → E → (ℝ × E) → S) (s₀ : S) :
let δ : ℝ≥0 := NNReal.mk (ε/R^2) (div_pos hε (sq_pos_of_pos hR)).le
let N := ⌈(φ ((2*(β : ℝ))/(δ : ℝ)) : ℝ) *
Real.log ((δ : ℝ)*R^2/(ε/2))⌉₊
(∀ g : E → ℝ, Differentiable ℝ g → StrongConvexOn univ (δ : ℝ) g →
LipschitzWith (2*β) (gradient g) → ∀ w : E,
IsMinOn g univ w → ‖w-u‖ ≤ R →
∃ t x c, run next update (fun y => (g y, gradient g y)) N s₀ =
((t, some x), c) ∧ g x-g w ≤ ε/2) →
let corrected := fun s y (a : ℝ × E) =>
update s y (a.1+(δ : ℝ)/2*‖y-u‖^2, a.2+(δ : ℝ) • (y-u))
∀ f : E → ℝ, Differentiable ℝ f → ConvexOn ℝ univ f →
LipschitzWith β (gradient f) → ∀ z : E,
IsMinOn f univ z → ‖z-u‖ ≤ R →
∃ t x c, run next corrected (fun y => (f y, gradient f y)) N s₀ =
((t, some x), c) ∧ f x-f z ≤ ε ∧
c ≤ ⌈(φ (2*(β : ℝ)*R^2/ε) : ℝ)*Real.log 2⌉₊ ∧
c ≤ φ (2*(β : ℝ)*R^2/ε)The chosen positive regularization satisfies delta<=beta. The existing first-order theorem proves the actual W=f+delta||x-u||²/2 is differentiable, delta-strongly convex and has (beta+delta)-Lipschitz gradient. Weaken that Lipschitz constant to 2beta and invoke the solver with that declared parameter. This avoids replacing Phi at unequal arguments. Apply the existing compact-ball comparison theorem to continuous f and its supplied original minimizer z. It constructs a global minimizer w of the actual W, proves the original radius bound also holds for w, and provides the half-error-to-full-error implication. Do not assume that W already has a minimizer. All premises of the uniform strongly convex solver contract now hold. Its execution against the actual value/gradient oracle of W halts with some x and the required half-error. The program and its initial state were fixed before the function was quantified, so this instantiation cannot choose a new solver using W or w. Correct each original reply by the known quadratic value and gradient terms. The previous oracle simulation gives identical final state, successful output and query count, with c<=N. Apply the previously obtained value-transfer implication to this actual halted output. Exhaustion never counts as successful optimization. Positive R and epsilon justify cancellation in both budget arguments. The logarithmic ratio is exactly two; the condition-number parameter is exactly 2beta R²/epsilon. Finally log2<=1 and the nonnegative natural value Phi(q) give ceil_nat(Phi(q)log2)<=Phi(q). Thus the actual query count obeys both bounds.
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 uniform_accuracy_and_query_bound
{E S : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[CompleteSpace E] [ProperSpace E]
(β : ℝ≥0) (u : E) {R ε : ℝ} (hR : 0 < R) (hε : 0 < ε)
(hsmall : ε ≤ (β : ℝ)*R^2) (φ : ℝ → ℕ)
(next : S → Sum E E) (update : S → E → (ℝ × E) → S) (s₀ : S) :
let δ : ℝ≥0 := NNReal.mk (ε/R^2) (div_pos hε (sq_pos_of_pos hR)).le
let N := ⌈(φ ((2*(β : ℝ))/(δ : ℝ)) : ℝ) *
Real.log ((δ : ℝ)*R^2/(ε/2))⌉₊
(∀ g : E → ℝ, Differentiable ℝ g → StrongConvexOn univ (δ : ℝ) g →
LipschitzWith (2*β) (gradient g) → ∀ w : E,
IsMinOn g univ w → ‖w-u‖ ≤ R →
∃ t x c, run next update (fun y => (g y, gradient g y)) N s₀ =
((t, some x), c) ∧ g x-g w ≤ ε/2) →
let corrected := fun s y (a : ℝ × E) =>
update s y (a.1+(δ : ℝ)/2*‖y-u‖^2, a.2+(δ : ℝ) • (y-u))
∀ f : E → ℝ, Differentiable ℝ f → ConvexOn ℝ univ f →
LipschitzWith β (gradient f) → ∀ z : E,
IsMinOn f univ z → ‖z-u‖ ≤ R →
∃ t x c, run next corrected (fun y => (f y, gradient f y)) N s₀ =
((t, some x), c) ∧ f x-f z ≤ ε ∧
c ≤ ⌈(φ (2*(β : ℝ)*R^2/ε) : ℝ)*Real.log 2⌉₊ ∧
c ≤ φ (2*(β : ℝ)*R^2/ε) := by
dsimp only
let δ : ℝ≥0 := NNReal.mk (ε/R^2) (div_pos hε (sq_pos_of_pos hR)).le
let N := ⌈(φ ((2*(β : ℝ))/(δ : ℝ)) : ℝ)*
Real.log ((δ : ℝ)*R^2/(ε/2))⌉₊
intro hs f hd hc hL z hz hr
let W := fun x => f x+(δ : ℝ)/2*‖x-u‖^2
have hδβ : (δ : ℝ) ≤ β := (div_le_iff₀ (sq_pos_of_pos hR)).mpr hsmall
obtain ⟨hWd,hsc,_,hWL⟩ :=
QuadraticRegularizationFirstOrder.curvature_gradient_and_smoothness hd hc hL (δ := δ) u
have hWL' : LipschitzWith (2*β) (gradient W) := by
apply LipschitzWith.of_dist_le_mul
intro x y
calc
dist (gradient W x) (gradient W y) ≤ ((β+δ : ℝ≥0) : ℝ)*dist x y :=
hWL.dist_le_mul x y
_ ≤ ((2*β : ℝ≥0) : ℝ)*dist x y := by
apply mul_le_mul_of_nonneg_right _ dist_nonneg
norm_num only [NNReal.coe_add, NNReal.coe_mul, NNReal.coe_ofNat]
linarith
obtain ⟨w,hw,hwR,haccuracy⟩ :=
QuadraticRegularizationTransfer.exists_minimizer_radius_and_accuracy hd.continuous hz hR hε hr
obtain ⟨t,x,c,hex,hgap⟩ := hs W hWd hsc hWL' w hw (hwR.trans hr)
obtain ⟨heq,hcount⟩ :=
QuadraticRegularizationOracle.simulate_regularized next update hd hc hL (δ := δ) u N s₀
have hout : run next
(fun s y (a : ℝ × E) => update s y
(a.1+(δ : ℝ)/2*‖y-u‖^2,a.2+(δ : ℝ) • (y-u)))
(fun y => (f y,gradient f y)) N s₀ = ((t,some x),c) := heq.trans hex
have hcN : c ≤ N := by simpa only [hout] using hcount
have hratio : 2*(β : ℝ)/(δ : ℝ) = 2*(β : ℝ)*R^2/ε := by
change 2*(β : ℝ)/(ε/R^2) = 2*(β : ℝ)*R^2/ε
field_simp [ne_of_gt hε, ne_of_gt hR]
have hlog : (δ : ℝ)*R^2/(ε/2) = 2 := by
change ε/R^2*R^2/(ε/2) = 2
field_simp [ne_of_gt hε, ne_of_gt hR]
have hN : N = ⌈(φ (2*(β : ℝ)*R^2/ε) : ℝ)*Real.log 2⌉₊ := by
simp only [N, hratio, hlog]
have hceil : N ≤ φ (2*(β : ℝ)*R^2/ε) := by
rw [hN, Nat.ceil_le]
have hl : Real.log 2 ≤ 1 := by
have := Real.log_le_sub_one_of_pos (by norm_num : (0:ℝ)<2)
linarith
simpa using mul_le_mul_of_nonneg_left hl
(Nat.cast_nonneg (φ (2*(β : ℝ)*R^2/ε)) : (0:ℝ) ≤ _)
exact ⟨t,x,c,hout,haccuracy x hgap,by simpa only [← hN] using hcN,hcN.trans hceil⟩
end AutoSamplingTheory.TechnicalLemmas.Analysis.UniformRegularization| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| A single strongly convex solver succeeds over its function class. | Fixed callbacks and initial state, followed by a universal genuine-halting/accuracy contract over differentiable strongly convex gradient-Lipschitz objectives. | API-limitation | Explicit finite deterministic model; no f-dependent solver choice or arbitrary cost label. General oracle-model equivalence is not claimed. |
| Euclidean convex beta-smooth objective with initial radius R and accuracy epsilon. | Proper complete real inner-product space; actual differentiability and gradient Lipschitzness; R,epsilon positive and epsilon<=beta R². | generalization | Proper Hilbert formulation includes the source domain and constructs W minimizers; zero-radius and large-error branches remain separate, as does any source smoothness-convention adapter. |
| Phi(kappa)log(alpha R²/tolerance) query bound, yielding O(Phi(2beta R²/epsilon)). | Phi:R→Nat and natural ceiling allowance, giving actual count<=ceil(Phi(q)log2)<=Phi(q). | API-limitation | Natural budget convention explicit; exact parameter substitution at declared smoothness2beta avoids any Phi monotonicity. Not an exact adapter for arbitrary real-valued or hidden-constant budgets. |
This closes a uniform class reduction within the existing finite deterministic exact-oracle interpreter. The strongly convex solver guarantee is a uniform hypothesis, as in the source reduction; it is about actual successful executions, not arbitrary returned cost labels. The corrected program depends only on the supplied program and known regularization parameters, never on the particular f or a minimizer. Properness supplies compact closed balls for the independently proved regularized-minimizer construction. Source finite-dimensional Euclidean spaces satisfy it; arbitrary infinite-dimensional Hilbert minimizer existence is not claimed. Differentiability and actual gradient Lipschitzness are the first-order smoothness interface; no C2/Hessian assumption is added. This declaration is in the positive small-error regime epsilon<=beta R². The zero-radius and larger-tolerance stopping branches, and an adapter from the source quadratic-upper smoothness convention where needed, remain outside the declared interface. Phi is natural-valued. The premise uses a natural ceiling of the source-shaped real budget; the output is bounded by ceil(Phi(q)log2)<=Phi(q). This is not an exact equivalence to every possible real-valued Phi or hidden-constant convention. No monotonicity of Phi is used: choose the declared smoothness parameter 2beta before invoking the solver. No universal equivalence with randomized or unbounded oracle-machine models, machine runtime or finite-precision computation is asserted. Full unrestricted Lemma4.2 completion remains separate. The test proves a real one-query half-gradient-step solver guarantee for the entire differentiable 1-strong/2-gradient-Lipschitz scalar class; it does not assume success only on one preselected function.
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.
AutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationOracle.runAutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationOracle.simulate_regularizedAutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationFirstOrder.curvature_gradient_and_smoothnessAutoSamplingTheory.TechnicalLemmas.Analysis.QuadraticRegularizationTransfer.exists_minimizer_radius_and_accuracyASTIS prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.