Online Learning: A Modern Introduction Using Convex Optimization
Francesco Orabona
- Location
- Section 2.1.2; Algorithm 2.1, Proposition 2.11, Lemma 2.12, Theorem 2.13 fixed and decreasing steps, Eq. (2.1)
- Pages
- printed pp. 12-15; PDF pp. 24-27
Teaching chapter 03 of 31 · Canonical route compiled
The same causal projected algorithm with repaired arbitrary-open source regularity, sharp fixed/decreasing-step regret and fixed-horizon tuning. An affine prescient proximal chain treats current-loss access and retains negative movement energy.
How to read the status. It describes this page's canonical local Lean route, not completion of the cited textbook chapter or every extension listed below.
Who should read this. Readers of convex optimization and online learning; this route shares the canonical Lean declaration graph.
Textbook crosswalk
This reading follows Online Learning: A Modern Introduction Using Convex Optimization. Teaching routes group mathematical dependencies across the shared library. Visible page labels use the cited source's numbered pages; source buttons use the PDF viewer's physical page index, including front matter. Companion papers cover algorithm-specific results.
Francesco Orabona
Read top to bottom to follow the argument or procedure.
Choose x1 in V. Use a fixed positive eta, or a prescribed positive nonincreasing schedule eta_t for a bounded V.
Output the current point before seeing the current loss.
Evaluate the current loss gradient at the current point.
Project x_t - eta_t times the current gradient onto V and continue. The fixed-step branch uses the same eta throughout.
Projection cannot increase distance to a feasible comparator.
BanditRLlib relationship. Exact shared declaration: BanditRL.OnlineGradientDescent.proposition_2_11. Use the Hilbert projection variational inequality and expand squared distance.
The mathematical content is restated in this site's notation; wording is ours. See printed pp. 12-15 in the linked source for the original statement and full assumptions.
Convexity linearizes loss; projection turns that inner product into a potential decrease plus gradient energy.
BanditRLlib relationship. Exact shared declaration: BanditRL.OnlineGradientDescentSource.lemma_2_12. Derive the loss comparison from feasible-set convexity and the ambient derivative. Prove the linear gradient, then specialize the retained quadratic projection lemma to the genuine linear loss with this gradient. Both inequalities use the same original step. Convexity on V and a supplied ambient real extension differentiable on an arbitrary open U containing V. U need not be convex. source_to_feasible proves the conversion to FeasibleRegularLoss: convexity on V and ambient derivatives at every feasible point. On a thin V the supplied extension fixes the gradient; extension independence is not claimed.
The mathematical content is restated in this site's notation; wording is ours. See printed pp. 12-15 in the linked source for the original statement and full assumptions.
Cumulative comparator regret retains the negative terminal squared distance, with no bounded-domain premise.
BanditRLlib relationship. Exact shared declaration: BanditRL.OnlineGradientDescentSource.theorem_2_13_fixed. Sum the generated trajectory one-step inequality and telescope; divide by the positive fixed step. The proved source_to_feasible adapter supplies the source arbitrary-open regularity on the same old projected recurrence.
The mathematical content is restated in this site's notation; wording is ours. See printed pp. 12-15 in the linked source for the original statement and full assumptions.
A priori diameter and gradient bounds yield the source square-root regret rate.
BanditRLlib relationship. Exact shared declaration: BanditRL.OnlineGradientDescentSource.equation_2_1. Bound initial distance and gradient energy, then simplify the positive horizon-tuned step. The proved source_to_feasible adapter supplies the source arbitrary-open regularity on the same old projected recurrence.
The mathematical content is restated in this site's notation; wording is ours. See printed pp. 12-15 in the linked source for the original statement and full assumptions.
The same generated trajectory determines all gradients and the terminal residual.
BanditRLlib relationship. Exact shared declaration: BanditRL.OnlineGradientDescentSource.theorem_2_13_variable. Sum actual variable_one_step inequalities through weighted_potential_sum; boundedness supplies the finite Metric.diam interface. The proved source_to_feasible adapter supplies the source arbitrary-open regularity on the same old projected recurrence.
The mathematical content is restated in this site's notation; wording is ours. See printed pp. 13-14 in the linked source for the original statement and full assumptions.
Algorithm 15.8 receives the current loss before choosing its proximal minimizer. For affine loss ell_(t+1)(x)=<g_t,x>+b_t and psi(x)=||x|| squared/2, that minimizer is the actual projection P_V(z_t-eta g_t). Projection optimality gives the one-step inequality; summing along the same recurrence cancels adjacent distances and retains terminal distance and movement energy.
BanditRLlib relationship. These are derived affine-loss, quadratic-potential, constant-step results, extended from the finite-dimensional source to complete real Hilbert spaces. Conditional nonlinear/Bregman fixed and variable bounds now have derived library proofs for supplied valid interior argmin runs. Full source-algorithm acceptance and the remaining chapter obligations stay open. No chapter completion or source correction is asserted. The source leaves the constant-step proof as an exercise. In the general proof, the cited Theorem 2.8 assumes differentiability on an open neighborhood, whereas Theorem 15.30 states subdifferentiability on V; that applicability bridge remains open. The printed monotonicity range also mentions eta_(T+1), beyond the listed algorithm inputs. Neither issue is silently repaired here.
This displayed statement is derived in the library. The linked printed 14, 265–266 / PDF 26, 277–278 supplies its source context; this explicit statement is not printed there as-is.
Let E be a real normed vector space, V a convex subset, and f,h:E to R. Assume f is convex on V, p belongs to V, p minimizes f+h over V, and h has ambient Frechet derivative Dh(p). Every comparator u belongs to the same V. No derivative of f or convexity of h is needed; V may have a boundary or be a singleton. Finite dimension, completeness, an inner product, closedness and boundedness are not assumed.
BanditRLlib relationship. Derived supporting comparison for the proof context of Orabona, arXiv:1912.13213v10 (21 June 2026), Chapter 2 printed p.14 / PDF p.26 and Algorithm 15.8 / Theorem 15.30 printed pp.265-266 / PDF pp.277-278. The arbitrary real normed-space and generic f+h interface is an explicit library derivation, not a numbered theorem in the book. Theorem 2.8 assumes a differentiable objective; its citation does not by itself provide the nonsmooth subgradient bridge. This is a derived real-valued comparison interface associated with the prescient proof, not full Algorithm 15.8 or Theorem 15.30. The minimizer is supplied. Existence, uniqueness, extended-real/domain and subgradient adapters, Bregman specialization, valid current-loss recursion and same-run fixed/variable-step regret bounds remain separate obligations. The source invocation of differentiable Theorem 2.8 does not itself justify the nonsmooth subgradient step. The fixed-step source proof is left as an exercise. No source repair or chapter completion is claimed.
This displayed statement is derived in the library. The linked printed14,11,265–266 / PDF26,23,277–278 supplies its source context; this explicit statement is not printed there as-is.
Let E be a real normed vector space, V a convex subset, f and psi real-valued functions, and eta>0. Assume f is convex on V, p belongs to V and minimizes f(z)+eta^(-1) B_psi(z;x) there. The frozen comparison assumes ambient differentiability of psi at both x and p. Every comparator u belongs to V; x need not belong to V. No derivative of f, convexity of psi, inner product, completeness, closedness or minimum-existence theorem is assumed by this comparison.
BanditRLlib relationship. Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026). Chapter 2 printed p.14 / PDF p.26; Definition 6.4 printed p.63 / PDF p.75; nonnegativity and Lemma 6.7 printed p.64 / PDF p.76; Algorithm 15.8 and Theorem 15.30 printed pp.265-266 / PDF pp.277-278. These normed-space and real-loss interfaces are explicit library derivations associated with the cited source formulas. The source defines Bregman divergence on X times int(X), with a strictly convex potential on X and differentiability on its nonempty interior. The library formula instead uses the actual total ambient Frechet derivative on a real normed vector space. At a nondifferentiable base, fderiv is zero. Recovering the source interface requires interior base points and a valid ambient extension with local derivative agreement; the total formula does not supply those facts.
This displayed statement is derived in the library. The linked printed14,63–64,265–266 / PDF26,75–76,277–278 supplies its source context; this explicit statement is not printed there as-is.
In a real inner-product space, let V be convex and f be a proper extended-real function with a global source subgradient at every point of V. Then f is finite on V and f_fin(z)=(f(z)).toReal is convex on V. In a complete real inner-product space, take any set V, p in V, f finite at every point of V, any real-valued psi, any center x and any real eta. The EReal objective f(z)+eta^(-1)B_psi(z;x) is minimized over V at p if and only if the real objective f_fin(z)+eta^(-1)B_psi(z;x) is minimized there at p. In a complete real inner-product space, let V be convex, f proper with global source subgradients at every feasible point, and eta>0. Suppose p belongs to V and actually minimizes f(z)+eta^(-1)B_psi(z;x) there. If psi has ambient derivatives at both x and p, then every u in V satisfies eta*(f_fin(p)-f_fin(u))<=B_psi(u;x)-B_psi(u;p)-B_psi(p;x).
BanditRLlib relationship. Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026). Definitions 2.18 and 2.20, Theorem 2.21: printed pp.16-17 / PDF pp.28-29. Definition 6.4 and Lemma 6.7: printed pp.63-64 / PDF pp.75-76. Chapter 2 forward reference: printed p.14 / PDF p.26. Algorithm 15.8 and Theorem 15.30: printed pp.265-266 / PDF pp.277-278. These are derived library bridges, not a direct extended-real instantiation of the globally real-valued Theorem 2.21. B_psi(a;b)=psi(a)-psi(b)-Dpsi(b)[a-b] uses the actual total ambient Frechet derivative at its second argument. The source domain is X times int(X); a source instantiation needs a valid ambient extension and agreement of derivatives at interior base points. These hypotheses are not supplied by the total formula.
This displayed statement is derived in the library. The linked printed 16–17,63–64,265–266 / PDF 28–29,75–76,277–278 supplies its source context; this explicit statement is not printed there as-is.
State 0 is some x0. State t+1 consumes the whole current loss t and current stepsize t, matching source round t+1; it is played after that loss is received. The selector has no horizon, comparator or future loss input. Prefix equality concerns entire loss functions at indices below t. In a complete real inner-product space, suppose V is convex and states t and t+1 of this same recursion return x and p. Require positive current eta, a proper current loss with a global supporting subgradient at every feasible point, and differentiability of psi at both x and p. Then every u in V satisfies eta*((loss p).toReal-(loss u).toReal) <= D(u;x)-D(u;p)-D(p;x). Proper means no negative infinity and a finite ambient witness; each support compares every ambient point. These premises make all compared feasible loss values finite. No loss differentiability, psi convexity, boundedness, or x in V is assumed. Both signed negative residuals remain.
BanditRLlib relationship. Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026). Chapter 2 prescient observation: printed p.14 / PDF p.26; Definitions 2.18 and 2.20: printed pp.16-17 / PDF pp.28-29; Definition 6.4 and Lemma 6.7: printed pp.63-64 / PDF pp.75-76; Algorithm 15.8 and Theorem 15.30: printed pp.265-266 / PDF pp.277-278. These are derived library interfaces rather than additional printed results. Write D(a;b)=psi(a)-psi(b)-fderiv(psi,b)[a-b], target first and derivative base second. This ambient total formula agrees with source Bregman divergence only with a valid representation on X and interior derivative bases. At nondifferentiable points fderiv is zero by total convention; its resulting values are not source derivatives.
This displayed statement is derived in the library. The linked printed 14,16-17,63-64,265-266 / PDF 26,28-29,75-76,277-278 supplies its source context; this explicit statement is not printed there as-is.
Work in a complete real inner-product space with convex feasible V and an ambient real-valued generator psi differentiable on interior X. The same canonical partial recursion must return some(x_t) for every 0<=t<=T, with each x_t in interior X. For every played t<T, the loss is proper (no negative infinity and at least one finite ambient value) and has a global supporting subgradient at every z in V, tested against every ambient point. This makes comparator and played feasible loss values finite. The fixed comparator u belongs to V. Write D(a;b)=psi(a)-psi(b)-fderiv(psi,b)[a-b], with derivative base second. The current whole loss t is received before the successor x_(t+1) is played. Source round t+1 corresponds to Lean index t. The successful trajectory is a posthoc witness for this particular classical-choice recursion, not an algorithm input, an arbitrary tie-breaking sequence or a future oracle. Initial x0 need not belong to V.
BanditRLlib relationship. Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), Algorithm 15.8 and both claims of Theorem 15.30, printed pp.265-266 / PDF pp.277-278; Definition 6.4 and Lemma 6.7, printed pp.63-64 / PDF pp.75-76; properness and global subgradients, printed pp.16-17 / PDF pp.28-29. Five derived interfaces, including the source fixed-step exercise, not five independently numbered source results.
This displayed statement is derived in the library. The linked printed pp.14,16-17,63-64,265-266 / PDF pp.26,28-29,75-76,277-278 supplies its source context; this explicit statement is not printed there as-is.
The source-facing bounds use a finite-dimensional real inner-product space. V is nonempty, closed and convex, with V subset X. The real ambient representative psi is strictly convex on X, differentiable on interior X, and its extension by positive infinity outside X has closed real sublevels. Every x_t for 0<=t<=T is interior to X. Each played loss excludes negative infinity everywhere, is finite on V, and has a global supporting subgradient at every point of V, tested against every ambient point. Each x_(t+1) is feasible and actually minimizes Q_t over V. The comparator u belongs to V. Feasible finiteness justifies every toReal loss value; no convexity of a global zero-default real extension is assumed. Write B(a;b)=psi(a)-psi(b)-Dpsi(b)[a-b], with derivative base second, and Q_t(z)=loss_t(z)+B(z;x_t)/eta_t. The whole current loss is available before choosing and paying x_(t+1). Lean index t corresponds to source round t+1. A supplied trajectory starts at x0; its initial point need not lie in V or any loss domain.
BanditRLlib relationship. Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026). Chapter 2 forward observation: printed p.14 / PDF p.26. Properness and global supports: Definitions 2.16, 2.18, 2.20, printed p.16 / PDF p.28. Bregman convention: Definition 6.4 and Lemma 6.7, printed pp.63-64 / PDF pp.75-76. Algorithm 15.8 and Theorem 15.30: printed pp.265-266 / PDF pp.277-278. The ambient representative is immaterial at a target in X and reference in interior X: divergence_extension_eq proves this, and divergence_eq_gradient identifies the derivative pairing with the source gradient formula. Raw support and derivative formulas have wider library carriers. Advance returns some of an attained minimizer or none, without inventing a fallback point. Its source correspondence is conditional on valid attained updates; this classical selector is not an executable or measurable optimizer. The variable theorem compares only adjacent played rates, t+1<T. The printed extra comparison mentions eta_(T+1), which the algorithm does not supply; the library omits it as an explicit stronger extension, without declaring a source correction. The fixed theorem also permits T=0, an explicit extension with conclusion 0<=B(u;x0)/eta. The smooth Theorem 2.8 citation does not itself prove the nonsmooth optimality step. The implementation instead reuses the derived feasible-segment comparison. The fixed-step argument is left as an exercise in the source and is proved by the library telescope.
This displayed statement is derived in the library. The linked printed14,16-17,63,265-266 / PDF26,28-29,75,277-278 supplies its source context; this explicit statement is not printed there as-is.
For 0<alpha<1, take a natural T with T>=2/((1-alpha)*phi(alpha)), in a nontrivial finite-dimensional real inner-product space. Start the fixed unprojected OSD recursion at zero with source step eta_t=t^(-alpha). There exists a real-valued convex 1-Lipschitz loss sequence whose pre-update regret against zero is at least phi(alpha)*T^(2-alpha)/2.
BanditRLlib relationship. Orabona, A Modern Introduction to Online Learning, arXiv:1912.13213v10. Theorem 5.4, printed pp.52-53 / PDF pp.64-65, is a required dependency of the Chapter 2 forward observation on printed p.14 / PDF p.26. Lean index t corresponds to source round t+1. Start at X0=0 and score loss_t(X_t) before updating to X_(t+1). The comparator is zero. Set m=ceil(T/2) and k=floor(T/2); the first m signs are -1 and the last k are +1. The horizon-specific witness uses these signs along one unit direction. The canonical learner selects a subgradient from the current loss and point; its step size uses only alpha and the current index. Source interpretation restricts alpha to (0,1) and the losses to the finite played prefix. The library functions also have values outside that carrier. In particular total phi(1)=1 differs from the source left limit 1-log(2). The finite affine witness has a singleton global subdifferential, so the selector fallback is inactive; its loss values are finite before EReal.toReal. Finite-dimensional nontrivial real inner-product spaces express the positive-dimensional Euclidean setting without selecting coordinates.
The mathematical content is restated in this site's notation; wording is ours. See printed14,52-53 / PDF26,64-65 in the linked source for the original statement and full assumptions.
Let X be any type, V a feasible subset and ell_s:X->R ambient real losses. Only their restrictions to V enter the rule. Lean index t corresponds to source round t+1, and the queried objective sums exactly s<t. For predict, the supplied initial point belongs to V.
BanditRLlib relationship. Orabona, arXiv:1912.13213v10 (2026-06-21), Chapter 2, printed pp.11-12 / PDF pp.23-24. The source gives an argmin rule and a feasible first action. This library realization uses one fixed noncomputable classical Option choice: some p certifies an attained feasible minimum; none means no such minimum exists. No convexity or attainment premise is needed by the definitions or conditional soundness statements; the named unique-output lemma separately assumes an attained feasible minimizer and uniqueness. The source Euclidean setting is generalized to arbitrary X. Tied source choices need not agree; equality results compare this same fixed selector. Each prefix is queried separately, so a later some after none does not provide a complete online interaction. Feedback acquisition, a computable or measurable optimizer, unconditional attainment and a new regret bound are not supplied.
This displayed statement is derived in the library. The linked printed11-12 / PDF23-24 supplies its source context; this explicit statement is not printed there as-is.
Start at a nonnegative offset c. For T rounds, add a nonnegative increment at each round and evaluate f at the new cumulative total. If f is continuous, nonincreasing and nonnegative on the nonnegative half-line, the sum of those values weighted by the increments is at most the integral of f from c to the final total.
BanditRLlib relationship. Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10, Lemma 4.13, printed p. 40 (PDF p. 52). Lean uses b at index t for the book’s increment at t+1 and keeps c separate. Its real-valued extension of f is constrained only on the nonnegative half-line, with relative continuity at zero. The signature retains the book’s nonnegativity assumption on f. The comparison itself uses its monotonicity and continuity.
The mathematical content is restated in this site's notation; wording is ours. See printed p. 40 / PDF p. 52 in the linked source for the original statement and full assumptions.
Scale the normalized sum by half the diameter bound D. The result is at most D times the square root of total feedback energy.
BanditRLlib relationship. The unnumbered display follows Lemma 4.13 and precedes equation (4.4). Orabona uses the Euclidean norm and a positive offset taken to zero. The Lean proof uses the supporting-line inequality directly.
The mathematical content is restated in this site's notation; wording is ours. See printed p. 40 / PDF p. 52 in the linked source for the original statement and full assumptions.
Predict from past losses and plays. After observing the current loss, select a supporting subgradient at the played point, add its squared norm to the cumulative energy, and project the scaled step back onto the feasible set. Zero feedback leaves the prediction in place. The regret bound keeps a deduction for the final squared distance to the comparator. Regret sums the finite differences between the loss of each prediction and the loss of the comparator on that same round.
BanditRLlib relationship. Printed pages 13–14 give the weighted-distance calculation, including the negative terminal term. Printed pages 39–40 apply the adaptive energy schedule. The library combines these steps for general positive scale.
This displayed statement is derived in the library. The linked printed pp. 13–14 and 39–40 / PDF pp. 25–26 and 51–52 supplies its source context; this explicit statement is not printed there as-is.
With scale one, each nonzero subgradient uses the diameter bound divided by the square root of energy through that round. For every feasible comparator, regret is at most three halves of the diameter bound times the square root of final energy.
BanditRLlib relationship. Equation (4.4) appears on printed page 40, following the adaptive energy calculation. Its comparator is evaluated along the scale-one trajectory.
The mathematical content is restated in this site's notation; wording is ours. See printed p. 40 / PDF p. 52 in the linked source for the original statement and full assumptions.
With scale one over the square root of two, regret is at most the diameter bound times the square root of twice the realized energy. The printed fixed-step benchmark uses a minimum over positive steps. Its value extends to both zero axes as an infimum.
BanditRLlib relationship. On printed page 40, Theorem 4.14 changes the schedule and gives the tuned regret bound. Its final equality concerns a scalar benchmark evaluated with the energy of this tuned run.
This displayed statement is derived in the library. The linked printed p. 40 / PDF p. 52 supplies its source context; this explicit statement is not printed there as-is.
Weight each drop in squared distance by the reciprocal of twice the step size. Adding over the rounds leaves both endpoints and an interior correction whenever the step size changes.
BanditRLlib relationship. In the first equality of the variable-step calculation at the top of printed page 14, the sum of half the step size times the squared gradient norm appears unchanged on both sides. Cancel it to obtain the displayed identity for squared Euclidean distances. Monotonicity of the steps enters the later inequality. The identity itself also applies when consecutive step sizes increase.
The mathematical content is restated in this site's notation; wording is ours. See printed p. 14 / PDF p. 26 in the linked source for the original statement and full assumptions.
Fix a polynomially decreasing step schedule. At each sufficiently large horizon, affine losses that reverse direction partway through the run give gradient descent superlinear regret against zero. The switch time depends on the horizon.
BanditRLlib relationship. The Chapter 2 remark (printed p. 14, PDF p. 26) points to Section 5.2. Theorem 5.4 (printed pp. 52–53, PDF pp. 64–65) gives the bound for unprojected subgradient descent. On its affine switching losses the unique subgradient equals the gradient at every point, so gradient descent follows the same iterates.
This displayed statement is derived in the library. The linked printed pp. 14, 52–53 / PDF pp. 26, 64–65 supplies its source context; this explicit statement is not printed there as-is.
The mathematical readings are explanatory summaries. The exact generated Lean statement and its source link remain authoritative for hypotheses, types, constants, and indexing.
A curated route through definitions, key bridges, and canonical terminals stays visible. 87 additional dependency, extension, or research-frontier notes are grouped below.
Lean declarationBandit
Plain-English statement. The next iterate uses the current gradient after the current prediction is output.
def iterate (V : Domain E) (η : ℝ) (loss : ℕ → E → ℝ) (x₁ : E) : ℕ → E | 0 => x₁ | t + 1 => step V η (loss t) (iterate V η loss x₁ t) /-- Comparator regret of this exact generated trajectory over `T` rounds. -/ def regret (V : Domain E) (η : ℝ) (loss : ℕ → E → ℝ) (x₁ u : E) (T : ℕ) : ℝ
Lean declarationBandit
Plain-English statement. Both source one-step inequalities hold for the same actual projected update.
BanditRL.OnlineGradientDescentSource.first_order, BanditRL.OnlineGradientDescentSource.linear_regular, BanditRL.OnlineGradientDescentSource.gradient_linear, BanditRL.OnlineGradientDescent.lemma_2_12, BanditRL.OnlineGradientDescent.steptheorem lemma_2_12 (V : Domain E) (f : E → ℝ) (hf : FeasibleRegularLoss V f) (η : ℝ) (hη : 0 < η) (x u : E) (hx : x ∈ V.carrier) (hu : u ∈ V.carrier) : η * (f x - f u) ≤ η * inner ℝ (gradient f x) (x - u) ∧ η * inner ℝ (gradient f x) (x - u) ≤ ‖x - u‖ ^ 2 / 2 - ‖step V η f x - u‖ ^ 2 / 2 + η ^ 2 / 2 * ‖gradient f x‖ ^ 2
Lean declarationBandit
Plain-English statement. No bounded-domain premise; the negative terminal distance is retained.
BanditRL.OnlineGradientDescentSource.lemma_2_12, BanditRL.OnlineGradientDescent.iterate_mem, BanditRL.OnlineGradientDescent.regrettheorem theorem_2_13_fixed (V : Domain E) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hloss : ∀ t < T, FeasibleRegularLoss V (loss t)) (u : E) (hu : u ∈ V.carrier) : regret V η loss x₁ u T ≤ ‖x₁ - u‖ ^ 2 / (2 * η) + η / 2 * (∑ t ∈ range T, ‖gradient (loss t) (iterate V η loss x₁ t)‖ ^ 2) - ‖iterate V η loss x₁ T - u‖ ^ 2 / (2 * η)
Lean declarationBandit
Plain-English statement. One prescribed tuned trajectory satisfies DG sqrtT for every feasible comparator.
BanditRL.OnlineGradientDescentSource.equation_2_1_distancetheorem equation_2_1 (V : Domain E) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (D G : ℝ) (hD : 0 < D) (hG : 0 < G) (hdiam : ∀ x ∈ V.carrier, ∀ y ∈ V.carrier, ‖x - y‖ ≤ D) (hloss : ∀ t < T, FeasibleRegularLoss V (loss t)) (hgrad : ∀ t < T, ‖gradient (loss t) (iterate V (D / (G * Real.sqrt T)) loss x₁ t)‖ ≤ G) : ∀ u ∈ V.carrier, regret V (D / (G * Real.sqrt T)) loss x₁ u T ≤ D * G * Real.sqrt T
Lean declarationBandit
Plain-English statement. The selected projection attains the minimum of the current affine loss plus a quadratic movement penalty over V.
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlineGradientDescent.project, BanditRL.OnlineGradientDescent.project_spec, BanditRL.OnlinePrescientLinear.advance, BanditRL.OnlinePrescientLinear.advance_sharp_boundtheorem advance_proximal_minimizer (V : Domain E) (η : ℝ) (hη : 0 < η) (g x : E) (b : ℝ) : advance V η g x ∈ V.carrier ∧ ∀ u ∈ V.carrier, inner ℝ g (advance V η g x) + b + ‖advance V η g x - x‖ ^ 2 / (2 * η) ≤ inner ℝ g u + b + ‖u - x‖ ^ 2 / (2 * η)
Lean declarationBandit
Plain-English statement. For fixed eta>0, every feasible fixed comparator u and every natural horizon T, affine regret along the generated trajectory is bounded by initial distance minus terminal distance and movement energy.
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlinePrescientLinear.advance, BanditRL.OnlinePrescientLinear.advance_sharp_bound, BanditRL.OnlinePrescientLinear.iterate, BanditRL.OnlinePrescientLinear.prediction, BanditRL.OnlinePrescientLinear.regrettheorem regret_sharp_bound (V : Domain E) (η : ℝ) (hη : 0 < η) (g : ℕ → E) (x0 u : E) (T : ℕ) (hu : u ∈ V.carrier) : regret V η g x0 u T ≤ ‖x0 - u‖ ^ 2 / (2 * η) - ‖iterate V η g x0 T - u‖ ^ 2 / (2 * η) - (∑ t ∈ range T, ‖prediction V η g x0 t - iterate V η g x0 t‖ ^ 2) / (2 * η)
Lean declarationBandit
Plain-English statement. Every nonempty closed convex subset of a complete real inner-product space has exactly one point minimizing distance from any ambient point.
theorem project_existsUnique (V : Domain E) (z : E) : ∃! p : E, p ∈ V.carrier ∧ ‖z - p‖ = ⨅ w : V.carrier, ‖z - w‖
Lean declarationBandit
Plain-English statement. Projection cannot increase distance to a feasible comparator.
BanditRL.OnlineGradientDescent.project_spectheorem proposition_2_11 (V : Domain E) (z u : E) (hu : u ∈ V.carrier) : ‖project V z - u‖ ≤ ‖z - u‖
Lean declarationBandit
Plain-English statement. Convexity linearizes loss; projection turns that inner product into a potential decrease plus gradient energy.
BanditRL.OnlineGradientDescent.first_order, BanditRL.OnlineGradientDescent.proposition_2_11, BanditRL.OnlineGradientDescent.steptheorem lemma_2_12 (V : Domain E) (f : E → ℝ) (hf : RegularLoss V f) (η : ℝ) (hη : 0 < η) (x u : E) (hx : x ∈ V.carrier) (hu : u ∈ V.carrier) : η * (f x - f u) ≤ η * inner ℝ (gradient f x) (x - u) ∧ η * inner ℝ (gradient f x) (x - u) ≤ ‖x - u‖ ^ 2 / 2 - ‖step V η f x - u‖ ^ 2 / 2 + η ^ 2 / 2 * ‖gradient f x‖ ^ 2
Lean declarationBandit
Plain-English statement. Cumulative comparator regret retains the negative terminal squared distance, with no bounded-domain premise.
BanditRL.OnlineGradientDescent.lemma_2_12, BanditRL.OnlineGradientDescent.iterate_mem, BanditRL.OnlineGradientDescent.regrettheorem theorem_2_13_fixed (V : Domain E) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hloss : ∀ t < T, RegularLoss V (loss t)) (u : E) (hu : u ∈ V.carrier) : regret V η loss x₁ u T ≤ ‖x₁ - u‖ ^ 2 / (2 * η) + η / 2 * (∑ t ∈ range T, ‖gradient (loss t) (iterate V η loss x₁ t)‖ ^ 2) - ‖iterate V η loss x₁ T - u‖ ^ 2 / (2 * η)
Lean declarationBandit
Plain-English statement. A priori diameter and gradient bounds yield the source square-root regret rate.
BanditRL.OnlineGradientDescent.theorem_2_13_fixed, BanditRL.OnlineGradientDescent.equation_2_1_distancetheorem equation_2_1 (V : Domain E) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (D G : ℝ) (hD : 0 < D) (hG : 0 < G) (hdiam : ∀ x ∈ V.carrier, ∀ y ∈ V.carrier, ‖x - y‖ ≤ D) (hloss : ∀ t < T, RegularLoss V (loss t)) (hgrad : ∀ t < T, ‖gradient (loss t) (iterate V (D / (G * Real.sqrt T)) loss x₁ t)‖ ≤ G) : ∀ u ∈ V.carrier, regret V (D / (G * Real.sqrt T)) loss x₁ u T ≤ D * G * Real.sqrt T
Lean declarationBandit
Plain-English statement. Convexity on V and ambient derivatives at every feasible point.
def FeasibleRegularLoss (V : Domain E) (f : E → ℝ) : Prop
Lean declarationBandit
Plain-English statement. Convexity on V and a supplied ambient real extension differentiable on an arbitrary open U containing V. U need not be convex. source_to_feasible proves the conversion to FeasibleRegularLoss: convexity on V and ambient derivatives at every feasible point. On a thin V the supplied extension fixes the gradient; extension independence is not claimed.
def SourceRegularLoss (V : Domain E) (f : E → ℝ) : Prop
Lean declarationBandit
Plain-English statement. Every point of V lies in the open differentiability neighborhood.
BanditRL.OnlineGradientDescentSource.SourceRegularLoss, BanditRL.OnlineGradientDescentSource.FeasibleRegularLosstheorem source_to_feasible (V : Domain E) (f : E → ℝ) (hf : SourceRegularLoss V f) : FeasibleRegularLoss V f
Lean declarationBandit
Plain-English statement. The retained stronger predicate also supplies the repaired interface.
BanditRL.OnlineGradientDescent.RegularLoss, BanditRL.OnlineGradientDescentSource.FeasibleRegularLosstheorem regular_to_feasible (V : Domain E) (f : E → ℝ) (hf : RegularLoss V f) : FeasibleRegularLoss V f
Lean declarationBandit
Plain-English statement. The function z ↦ inner(g,z) is globally convex and differentiable.
BanditRL.OnlineGradientDescent.RegularLosstheorem linear_regular (V : Domain E) (g : E) : RegularLoss V (fun z => inner ℝ g z)
Lean declarationBandit
Plain-English statement. The gradient of inner(g,·) equals g at every ambient point.
theorem gradient_linear (g x : E) : gradient (fun z => inner ℝ g z) x = g
Lean declarationBandit
Plain-English statement. Loss comparison follows from convexity on V and the ambient derivative.
BanditRL.OnlineGradientDescentSource.FeasibleRegularLoss, BanditRL.OnlineConvex.convex_gradient_lower_boundtheorem first_order (V : Domain E) (f : E → ℝ) (hf : FeasibleRegularLoss V f) (x u : E) (hx : x ∈ V.carrier) (hu : u ∈ V.carrier) : f x - f u ≤ inner ℝ (gradient f x) (x - u)
Lean declarationBandit
Plain-English statement. The current scheduled update supplies its divided one-step inequality.
BanditRL.OnlineGradientDescentSource.lemma_2_12, BanditRL.OnlineGradientDescent.iterateVariable_memtheorem variable_one_step (V : Domain E) (η : ℕ → ℝ) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (t : ℕ) (hη : 0 < η t) (hloss : FeasibleRegularLoss V (loss t)) (u : E) (hu : u ∈ V.carrier) : loss t (iterateVariable V η loss x₁ t) - loss t u ≤ (‖iterateVariable V η loss x₁ t - u‖ ^ 2 - ‖iterateVariable V η loss x₁ (t + 1) - u‖ ^ 2) / (2 * η t) + η t / 2 * ‖gradient (loss t) (iterateVariable V η loss x₁ t)‖ ^ 2
Lean declarationBandit
Plain-English statement. A pairwise distance upper bound supplies the weighted potential telescope.
BanditRL.OnlineGradientDescentSource.variable_one_step, BanditRL.OnlineGradientDescent.weighted_potential_sum, BanditRL.OnlineGradientDescent.iterateVariable_memtheorem theorem_2_13_variable_bound (V : Domain E) (η : ℕ → ℝ) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (hη : ∀ t < T, 0 < η t) (hmono : ∀ t, t + 1 < T → η (t + 1) ≤ η t) (hloss : ∀ t < T, FeasibleRegularLoss V (loss t)) (D : ℝ) (hdiam : ∀ x ∈ V.carrier, ∀ y ∈ V.carrier, ‖x - y‖ ≤ D) (u : E) (hu : u ∈ V.carrier) : regretVariable V η loss x₁ u T ≤ D ^ 2 / (2 * η (T - 1)) + (∑ t ∈ range T, η t / 2 * ‖gradient (loss t) (iterateVariable V η loss x₁ t)‖ ^ 2) - ‖iterateVariable V η loss x₁ T - u‖ ^ 2 / (2 * η (T - 1))
Lean declarationBandit
Plain-English statement. Weight each drop in squared distance by the reciprocal of twice the step size. Adding over the rounds leaves both endpoints and an interior correction whenever the step size changes.
BanditRL.OnlineWeightedPotential.weighted_difference_sum_eqtheorem distance_potential_sum_eq {E : Type*} [NormedAddCommGroup E] (x : ℕ → E) (u : E) (η : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hη : ∀ t < T, 0 < η t) : (∑ t ∈ range T, (‖x t - u‖ ^ 2 - ‖x (t + 1) - u‖ ^ 2) / (2 * η t)) = ‖x 0 - u‖ ^ 2 / (2 * η 0) - ‖x T - u‖ ^ 2 / (2 * η (T - 1)) + (1 / 2 : ℝ) * ∑ t ∈ range (T - 1), (1 / η (t + 1) - 1 / η t) * ‖x (t + 1) - u‖ ^ 2
Lean declarationBandit
Plain-English statement. Boundedness makes Metric.diam the source diameter in the repaired same-run bound.
BanditRL.OnlineGradientDescentSource.theorem_2_13_variable_boundtheorem theorem_2_13_variable (V : Domain E) (hV : Bornology.IsBounded V.carrier) (η : ℕ → ℝ) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (hη : ∀ t < T, 0 < η t) (hmono : ∀ t, t + 1 < T → η (t + 1) ≤ η t) (hloss : ∀ t < T, FeasibleRegularLoss V (loss t)) (u : E) (hu : u ∈ V.carrier) : regretVariable V η loss x₁ u T ≤ (Metric.diam V.carrier) ^ 2 / (2 * η (T - 1)) + (∑ t ∈ range T, η t / 2 * ‖gradient (loss t) (iterateVariable V η loss x₁ t)‖ ^ 2) - ‖iterateVariable V η loss x₁ T - u‖ ^ 2 / (2 * η (T - 1))
Lean declarationBandit
Plain-English statement. An initial-distance bound and actual tuned-run gradient bounds give DG sqrtT.
BanditRL.OnlineGradientDescentSource.theorem_2_13_fixedtheorem equation_2_1_distance (V : Domain E) (loss : ℕ → E → ℝ) (x₁ : E) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hT : 0 < T) (D G : ℝ) (hD : 0 < D) (hG : 0 < G) (hloss : ∀ t < T, FeasibleRegularLoss V (loss t)) (u : E) (hu : u ∈ V.carrier) (hdist : ‖x₁ - u‖ ≤ D) (hgrad : ∀ t < T, ‖gradient (loss t) (iterate V (D / (G * Real.sqrt T)) loss x₁ t)‖ ≤ G) : regret V (D / (G * Real.sqrt T)) loss x₁ u T ≤ D * G * Real.sqrt T
Lean declarationBandit
Plain-English statement. A convex loss need not be differentiable for this comparison. Minimality of f+h and a derivative of h bound f(p)-f(u) for every feasible u.
theorem convex_minimizer_comparison (V : Set E) (f h : E → ℝ) (p : E) (hp : p ∈ V) (hf : ConvexOn ℝ V f) (hmin : IsMinOn (fun z => f z + h z) V p) (h' : E →L[ℝ] ℝ) (hd : HasFDerivAt h h' p) : ∀ u ∈ V, f p - f u ≤ h' (u - p)
Lean declarationBandit
Plain-English statement. B_psi(a;b) subtracts the affine approximation at b from the value at a. The second argument is the base; the actual total fderiv is used.
def divergence (ψ : E → ℝ) (x y : E) : ℝ
Lean declarationBandit
Plain-English statement. For every real-valued psi and every x, B_psi(x;x)=0, with no convexity or differentiability assumption.
BanditRL.OnlineBregman.divergencetheorem divergence_self (ψ : E → ℝ) (x : E) : divergence ψ x x = 0
Lean declarationBandit
Plain-English statement. For arbitrary x,y,z, B_psi(z;x)+B_psi(x;y)-B_psi(z;y)=(Dpsi(y)-Dpsi(x))[z-x]. The algebraic extension requires no derivative-existence or convexity hypothesis.
BanditRL.OnlineBregman.divergencetheorem three_point_identity (ψ : E → ℝ) (x y z : E) : divergence ψ z x + divergence ψ x y - divergence ψ z y = (fderiv ℝ ψ y - fderiv ℝ ψ x) (z - x)
Lean declarationBandit
Plain-English statement. If psi is convex on X, x and y belong to X, and psi has an ambient derivative at y, then B_psi(x;y)>=0.
BanditRL.OnlineBregman.divergencetheorem divergence_nonneg (X : Set E) (ψ : E → ℝ) (hψ : ConvexOn ℝ X ψ) (x y : E) (hx : x ∈ X) (hy : y ∈ X) (hd : DifferentiableAt ℝ ψ y) : 0 ≤ divergence ψ x y
Lean declarationBandit
Plain-English statement. A supplied minimum of a convex real loss plus a differentiable Bregman penalty yields eta(f(p)-f(u))<=B_psi(u;x)-B_psi(u;p)-B_psi(p;x) for every feasible comparator.
BanditRL.OnlineProximal.convex_minimizer_comparison, BanditRL.OnlineBregman.three_point_identitytheorem proximal_one_step (V : Set E) (f ψ : E → ℝ) (η : ℝ) (hη : 0 < η) (x p : E) (hp : p ∈ V) (hf : ConvexOn ℝ V f) (hdx : DifferentiableAt ℝ ψ x) (hdp : DifferentiableAt ℝ ψ p) (hmin : IsMinOn (fun z => f z + η⁻¹ * divergence ψ z x) V p) : ∀ u ∈ V, η * (f p - f u) ≤ divergence ψ u x - divergence ψ u p - divergence ψ p x
Lean declarationBandit
Plain-English statement. In a complete real inner-product space, at an ambient differentiable base y, B_psi(x;y)=psi(x)-psi(y)-<gradient psi(y),x-y>.
BanditRL.OnlineBregman.divergencetheorem divergence_eq_gradient (ψ : E → ℝ) (x y : E) (hd : DifferentiableAt ℝ ψ y) : divergence ψ x y = ψ x - ψ y - inner ℝ (gradient ψ y) (x - y)
Lean declarationBandit
Plain-English statement. In a real inner-product space, let V be convex and f be a proper extended-real function with a global source subgradient at every point of V. Then f is finite on V and f_fin(z)=(f(z)).toReal is convex on V.
BanditRL.OnlineConvex.subgradient_point_finitetheorem finitePart_convex_of_subdifferentiable (f : E → EReal) (V : Set E) (hV : Convex ℝ V) (hp : BanditRL.OnlineConvex.SourceProper f) (hs : ∀ x ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential f x).Nonempty) : ConvexOn ℝ V (fun x => (f x).toReal)
Lean declarationBandit
Plain-English statement. In a complete real inner-product space, take any set V, p in V, f finite at every point of V, any real-valued psi, any center x and any real eta. The EReal objective f(z)+eta^(-1)B_psi(z;x) is minimized over V at p if and only if the real objective f_fin(z)+eta^(-1)B_psi(z;x) is minimized there at p.
BanditRL.OnlineConvex.minOn_finitePart_ifftheorem proximal_finitePart_minimizer_iff (f : E → EReal) (V : Set E) (ψ : E → ℝ) (η : ℝ) (x p : E) (hp : p ∈ V) (hfin : ∀ z ∈ V, f z ≠ ⊤ ∧ f z ≠ ⊥) : IsMinOn (fun z => f z + ((η⁻¹ * divergence ψ z x : ℝ) : EReal)) V p ↔ IsMinOn (fun z => (f z).toReal + η⁻¹ * divergence ψ z x) V p
Lean declarationBandit
Plain-English statement. In a complete real inner-product space, let V be convex, f proper with global source subgradients at every feasible point, and eta>0. Suppose p belongs to V and actually minimizes f(z)+eta^(-1)B_psi(z;x) there. If psi has ambient derivatives at both x and p, then every u in V satisfies eta*(f_fin(p)-f_fin(u))<=B_psi(u;x)-B_psi(u;p)-B_psi(p;x).
BanditRL.OnlineConvex.subgradient_point_finite, BanditRL.OnlineBregman.finitePart_convex_of_subdifferentiable, BanditRL.OnlineBregman.proximal_finitePart_minimizer_iff, BanditRL.OnlineBregman.proximal_one_steptheorem proximal_one_step_extended (f : E → EReal) (V : Set E) (hV : Convex ℝ V) (hf : BanditRL.OnlineConvex.SourceProper f) (hs : ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential f z).Nonempty) (ψ : E → ℝ) (η : ℝ) (hη : 0 < η) (x p : E) (hp : p ∈ V) (hdx : DifferentiableAt ℝ ψ x) (hdp : DifferentiableAt ℝ ψ p) (hmin : IsMinOn (fun z => f z + ((η⁻¹ * divergence ψ z x : ℝ) : EReal)) V p) : ∀ u ∈ V, η * ((f p).toReal - (f u).toReal) ≤ divergence ψ u x - divergence ψ u p - divergence ψ p x
Lean declarationBandit
Plain-English statement. In a real normed space, two total functions equal on X have equal ordered divergence at a target a in X and a base b in interior X.
BanditRL.OnlineBregman.divergencetheorem divergence_extension_eq (X : Set E) (ψ φ : E → ℝ) (hEq : EqOn ψ φ X) (a b : E) (ha : a ∈ X) (hb : b ∈ interior X) : divergence ψ a b = divergence φ a b
Lean declarationBandit
Plain-English statement. For fixed V, psi, current eta, loss and predecessor x, test whether a feasible minimum of loss(z)+eta^{-1}D(z;x) exists. Return some of a classically chosen minimizer if it does, otherwise none.
BanditRL.OnlineBregman.divergencedef advance (V : Set E) (ψ : E → ℝ) (η : ℝ) (f : E → EReal) (x : E) : Option E := by
classical
exact if h : ∃ p, p ∈ V ∧
IsMinOn (fun z => f z + ((η⁻¹ * divergence ψ z x : ℝ) : EReal)) V p
then some (Classical.choose h) else none
Lean declarationBandit
Plain-English statement. Start with some x0. At each successor, bind the previous optional state to the current-step selector. A missing predecessor stays missing.
BanditRL.OnlinePrescientBregman.advancedef iterate (V : Set E) (ψ : E → ℝ) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 : E) : ℕ → Option E | 0 => some x0 | t + 1 => (iterate V ψ η loss x0 t).bind (advance V ψ (η t) (loss t))
Lean declarationBandit
Plain-English statement. Whenever the actual selector returns some p, p belongs to V and its penalized EReal objective is no larger than that of every u in V.
BanditRL.OnlineBregman.divergence, BanditRL.OnlinePrescientBregman.advancetheorem advance_some_spec (V : Set E) (ψ : E → ℝ) (η : ℝ) (f : E → EReal) (x p : E) (h : advance V ψ η f x = some p) : p ∈ V ∧ IsMinOn (fun z => f z + ((η⁻¹ * divergence ψ z x : ℝ) : EReal)) V p
Lean declarationBandit
Plain-English statement. The actual selector returns none exactly when no feasible attained minimum exists for its current penalized objective.
BanditRL.OnlineBregman.divergence, BanditRL.OnlinePrescientBregman.advancetheorem advance_none_iff (V : Set E) (ψ : E → ℝ) (η : ℝ) (f : E → EReal) (x : E) : advance V ψ η f x = none ↔ ¬ ∃ p, p ∈ V ∧ IsMinOn (fun z => f z + ((η⁻¹ * divergence ψ z x : ℝ) : EReal)) V p
Lean declarationBandit
Plain-English statement. With the same V, psi and initial x0, equal stepsizes and equal whole loss functions at every s<t produce equal optional states at t.
BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.iteratetheorem iterate_prefix (V : Set E) (ψ : E → ℝ) (η η' : ℕ → ℝ) (loss loss' : ℕ → E → EReal) (x0 : E) (t : ℕ) (hη : ∀ s < t, η s = η' s) (hloss : ∀ s < t, loss s = loss' s) : iterate V ψ η loss x0 t = iterate V ψ η' loss' x0 t
Lean declarationBandit
Plain-English statement. A successful state at t+1 exposes an actual successful predecessor x at t, feasible membership of p, and minimality of the current objective centered at that same x.
BanditRL.OnlineBregman.divergence, BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.advance_some_spec, BanditRL.OnlinePrescientBregman.iteratetheorem iterate_succ_some_spec (V : Set E) (ψ : E → ℝ) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 p : E) (t : ℕ) (h : iterate V ψ η loss x0 (t + 1) = some p) : ∃ x, iterate V ψ η loss x0 t = some x ∧ p ∈ V ∧ IsMinOn (fun z => loss t z + (((η t)⁻¹ * divergence ψ z x : ℝ) : EReal)) V p
Lean declarationBandit
Plain-English statement. If state t is none, then state t+k is none for every natural offset k on that same stream.
BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.iteratetheorem iterate_no_recovery (V : Set E) (ψ : E → ℝ) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 : E) (t k : ℕ) (h : iterate V ψ η loss x0 t = none) : iterate V ψ η loss x0 (t + k) = none
Lean declarationBandit
Plain-English statement. If each actually reached successful state at every t<T admits a feasible minimizer of its current objective, then state T is some p.
BanditRL.OnlineBregman.divergence, BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.advance_none_iff, BanditRL.OnlinePrescientBregman.iteratetheorem iterate_complete_of_step_attained (V : Set E) (ψ : E → ℝ) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 : E) (T : ℕ) (hatt : ∀ t < T, ∀ x, iterate V ψ η loss x0 t = some x → ∃ p, p ∈ V ∧ IsMinOn (fun z => loss t z + (((η t)⁻¹ * divergence ψ z x : ℝ) : EReal)) V p) : ∃ p, iterate V ψ η loss x0 T = some p
Lean declarationBandit
Plain-English statement. In a complete real inner-product space, suppose V is convex and states t and t+1 of this same recursion return x and p. Require positive current eta, a proper current loss with a global supporting subgradient at every feasible point, and differentiability of psi at both x and p. Then every u in V satisfies eta*((loss p).toReal-(loss u).toReal) <= D(u;x)-D(u;p)-D(p;x). Proper means no negative infinity and a finite ambient witness; each support compares every ambient point. These premises make all compared feasible loss values finite. No loss differentiability, psi convexity, boundedness, or x in V is assumed. Both signed negative residuals remain.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.proximal_one_step_extended, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_succ_some_spectheorem iterate_one_step (V : Set E) (hV : Convex ℝ V) (ψ : E → ℝ) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 x p : E) (t : ℕ) (hx : iterate V ψ η loss x0 t = some x) (hp : iterate V ψ η loss x0 (t + 1) = some p) (hη : 0 < η t) (hf : BanditRL.OnlineConvex.SourceProper (loss t)) (hs : ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (hdx : DifferentiableAt ℝ ψ x) (hdp : DifferentiableAt ℝ ψ p) : ∀ u ∈ V, η t * ((loss t p).toReal - (loss t u).toReal) ≤ divergence ψ u x - divergence ψ u p - divergence ψ p x
Lean declarationBandit
Plain-English statement. For any starting point x, positive eta and feasible comparator u, the updated point p=P_V(x-eta g) satisfies a one-step loss bound with both negative distance and movement terms.
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlineGradientDescent.project, BanditRL.OnlineGradientDescent.project_spec, BanditRL.OnlinePrescientLinear.advancetheorem advance_sharp_bound (V : Domain E) (η : ℝ) (hη : 0 < η) (g x u : E) (hu : u ∈ V.carrier) : inner ℝ g (advance V η g x - u) ≤ (‖x - u‖ ^ 2 - ‖advance V η g x - u‖ ^ 2 - ‖advance V η g x - x‖ ^ 2) / (2 * η)
Lean declarationBandit
Plain-English statement. Every prediction p_t belongs to V, even when the initial center x_0 lies outside V.
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlineGradientDescent.project, BanditRL.OnlineGradientDescent.project_spec, BanditRL.OnlinePrescientLinear.iteratetheorem prediction_mem (V : Domain E) (η : ℝ) (g : ℕ → E) (x0 : E) (t : ℕ) : prediction V η g x0 t ∈ V.carrier
Lean declarationBandit
Plain-English statement. Two vector sequences that agree through the current index t produce the same prediction p_t from the same initial center and fixed step.
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlinePrescientLinear.advance, BanditRL.OnlinePrescientLinear.iteratetheorem prediction_prefix (V : Domain E) (η : ℝ) (g g' : ℕ → E) (x0 : E) (t : ℕ) (h : ∀ s ≤ t, g s = g' s) : prediction V η g x0 t = prediction V η g' x0 t
Lean declarationBandit
Plain-English statement. The signed inner-product regret equals cumulative affine loss difference at the actual played predictions, for arbitrary time-dependent offsets.
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlinePrescientLinear.prediction, BanditRL.OnlinePrescientLinear.regrettheorem regret_eq_loss_difference (V : Domain E) (η : ℝ) (g : ℕ → E) (b : ℕ → ℝ) (x0 u : E) (T : ℕ) : regret V η g x0 u T = ∑ t ∈ range T, ((inner ℝ (g t) (prediction V η g x0 t) + b t) - (inner ℝ (g t) u + b t))
Lean declarationBandit
Plain-English statement. Removing only the nonnegative terminal-distance quotient gives the constant-step source-shaped bound with negative movement energy.
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlinePrescientLinear.iterate, BanditRL.OnlinePrescientLinear.prediction, BanditRL.OnlinePrescientLinear.regret, BanditRL.OnlinePrescientLinear.regret_sharp_boundtheorem regret_source_bound (V : Domain E) (η : ℝ) (hη : 0 < η) (g : ℕ → E) (x0 u : E) (T : ℕ) (hu : u ∈ V.carrier) : regret V η g x0 u T ≤ ‖x0 - u‖ ^ 2 / (2 * η) - (∑ t ∈ range T, ‖prediction V η g x0 t - iterate V η g x0 t‖ ^ 2) / (2 * η)
Lean declarationBandit
Plain-English statement. For any natural horizon T, including zero, and arbitrary positive played steps, sum the actual-transition comparisons. No stepsize monotonicity or convexity of psi is needed.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_one_steptheorem iterate_divergence_sum (V X : Set E) (hV : Convex ℝ V) (ψ : E → ℝ) (hd : DifferentiableOn ℝ ψ (interior X)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 : E) (x : ℕ → E) (T : ℕ) (hseq : ∀ t ≤ T, iterate V ψ η loss x0 t = some (x t)) (hinterior : ∀ t ≤ T, x t ∈ interior X) (hη : ∀ t < T, 0 < η t) (hf : ∀ t < T, BanditRL.OnlineConvex.SourceProper (loss t)) (hs : ∀ t < T, ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (u : E) (hu : u ∈ V) : (∑ t ∈ range T, ((loss t (x (t + 1))).toReal - (loss t u).toReal)) ≤ (∑ t ∈ range T, (divergence ψ u (x t) - divergence ψ u (x (t + 1))) / η t) - ∑ t ∈ range T, divergence ψ (x (t + 1)) (x t) / η t
Lean declarationBandit
Plain-English statement. With one positive constant step and any T>=0, the comparator divergence differences telescope to the initial value minus the terminal value; keep the entire negative movement sum.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_divergence_sumtheorem iterate_fixed_sharp (V X : Set E) (hV : Convex ℝ V) (ψ : E → ℝ) (hd : DifferentiableOn ℝ ψ (interior X)) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → EReal) (x0 : E) (x : ℕ → E) (T : ℕ) (hseq : ∀ t ≤ T, iterate V ψ (fun _ => η) loss x0 t = some (x t)) (hinterior : ∀ t ≤ T, x t ∈ interior X) (hf : ∀ t < T, BanditRL.OnlineConvex.SourceProper (loss t)) (hs : ∀ t < T, ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (u : E) (hu : u ∈ V) : (∑ t ∈ range T, ((loss t (x (t + 1))).toReal - (loss t u).toReal)) ≤ divergence ψ u x0 / η - divergence ψ u (x T) / η - (∑ t ∈ range T, divergence ψ (x (t + 1)) (x t)) / η
Lean declarationBandit
Plain-English statement. For T>0 and positive nonincreasing played steps, cap D(u;x_t) only for previous states t<T by an arbitrary real M. Retain the negative terminal value divided by the last played step and every weighted movement.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineGradientDescent.weighted_potential_sum, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_divergence_sumtheorem iterate_variable_sharp (V X : Set E) (hV : Convex ℝ V) (ψ : E → ℝ) (hd : DifferentiableOn ℝ ψ (interior X)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 : E) (x : ℕ → E) (T : ℕ) (hT : 0 < T) (hseq : ∀ t ≤ T, iterate V ψ η loss x0 t = some (x t)) (hinterior : ∀ t ≤ T, x t ∈ interior X) (hη : ∀ t < T, 0 < η t) (hmono : ∀ t, t + 1 < T → η (t + 1) ≤ η t) (hf : ∀ t < T, BanditRL.OnlineConvex.SourceProper (loss t)) (hs : ∀ t < T, ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (u : E) (hu : u ∈ V) (M : ℝ) (hbound : ∀ t < T, divergence ψ u (x t) ≤ M) : (∑ t ∈ range T, ((loss t (x (t + 1))).toReal - (loss t u).toReal)) ≤ M / η (T - 1) - divergence ψ u (x T) / η (T - 1) - ∑ t ∈ range T, divergence ψ (x (t + 1)) (x t) / η t
Lean declarationBandit
Plain-English statement. For a positive constant step, additionally assume V subset X and strict convexity of psi on X. Prove terminal D(u;x_T)>=0 and remove only its negative residual from the sharp fixed inequality.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.divergence_nonneg, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_fixed_sharptheorem iterate_fixed_regret (V X : Set E) (hV : Convex ℝ V) (hVX : V ⊆ X) (ψ : E → ℝ) (hc : StrictConvexOn ℝ X ψ) (hd : DifferentiableOn ℝ ψ (interior X)) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → EReal) (x0 : E) (x : ℕ → E) (T : ℕ) (hseq : ∀ t ≤ T, iterate V ψ (fun _ => η) loss x0 t = some (x t)) (hinterior : ∀ t ≤ T, x t ∈ interior X) (hf : ∀ t < T, BanditRL.OnlineConvex.SourceProper (loss t)) (hs : ∀ t < T, ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (u : E) (hu : u ∈ V) : (∑ t ∈ range T, ((loss t (x (t + 1))).toReal - (loss t u).toReal)) ≤ divergence ψ u x0 / η - (∑ t ∈ range T, divergence ψ (x (t + 1)) (x t)) / η
Lean declarationBandit
Plain-English statement. For T>0, positive nonincreasing played steps, V subset X and strict convexity on X, use the actual maximum of D(u;x_t) over 0<=t<T. Discard only the nonpositive terminal comparator residual.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.divergence_nonneg, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_variable_sharptheorem iterate_variable_regret (V X : Set E) (hV : Convex ℝ V) (hVX : V ⊆ X) (ψ : E → ℝ) (hc : StrictConvexOn ℝ X ψ) (hd : DifferentiableOn ℝ ψ (interior X)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 : E) (x : ℕ → E) (T : ℕ) (hT : 0 < T) (hseq : ∀ t ≤ T, iterate V ψ η loss x0 t = some (x t)) (hinterior : ∀ t ≤ T, x t ∈ interior X) (hη : ∀ t < T, 0 < η t) (hmono : ∀ t, t + 1 < T → η (t + 1) ≤ η t) (hf : ∀ t < T, BanditRL.OnlineConvex.SourceProper (loss t)) (hs : ∀ t < T, ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (u : E) (hu : u ∈ V) : (∑ t ∈ range T, ((loss t (x (t + 1))).toReal - (loss t u).toReal)) ≤ ((range T).sup' (nonempty_range_iff.mpr (Nat.ne_of_gt hT)) (fun t => divergence ψ u (x t))) / η (T - 1) - ∑ t ∈ range T, divergence ψ (x (t + 1)) (x t) / η t
Lean declarationBandit
Plain-English statement. For an arbitrary carrier E, let V be nonempty, let f never equal negative infinity, and require f(z)<positive infinity for every z in V. These assumptions provide a finite real witness and exclude negative infinity globally.
BanditRL.OnlineConvex.effectiveDomaintheorem sourceProper_of_domain (f : E → EReal) (V : Set E) (hV : V.Nonempty) (hbot : ∀ z, f z ≠ ⊥) (hdom : V ⊆ effectiveDomain f) : SourceProper f
Lean declarationBandit
Plain-English statement. In a real inner-product space, V is convex and contained in X, psi is strictly convex on X, f is proper and has a global supporting subgradient at every feasible point, and eta>0. The reference x may be arbitrary; differentiability at x and completeness are not premises.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.finitePart_convex_of_subdifferentiable, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferentialtheorem penalized_strictConvex (V X : Set E) (hV : Convex ℝ V) (hVX : V ⊆ X) (ψ : E → ℝ) (hψ : StrictConvexOn ℝ X ψ) (f : E → EReal) (hf : BanditRL.OnlineConvex.SourceProper f) (hs : ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential f z).Nonempty) (η : ℝ) (hη : 0 < η) (x : E) : StrictConvexOn ℝ V (fun z => (f z).toReal + η⁻¹ * divergence ψ z x)
Lean declarationBandit
Plain-English statement. Use the preceding strictness assumptions in a complete real inner-product space. Supply p in V that minimizes the extended-real loss plus the real penalty. Existence is supplied, not inferred from closedness or strictness.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.proximal_finitePart_minimizer_iff, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineConvex.subgradient_point_finite, BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.penalized_strictConvextheorem advance_eq_some_of_minimizer (V X : Set E) (hV : Convex ℝ V) (hVX : V ⊆ X) (ψ : E → ℝ) (hψ : StrictConvexOn ℝ X ψ) (f : E → EReal) (hf : BanditRL.OnlineConvex.SourceProper f) (hs : ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential f z).Nonempty) (η : ℝ) (hη : 0 < η) (x p : E) (hp : p ∈ V) (hmin : IsMinOn (fun z => f z + ((η⁻¹ * divergence ψ z x : ℝ) : EReal)) V p) : advance V ψ η f x = some p
Lean declarationBandit
Plain-English statement. For each t<T, require a positive rate, a proper globally supported loss and an actual feasible minimizer x_(t+1) of Q_t. The trajectory starts at x0. Completeness, convex V subset X and strict convexity of psi are retained. Initial feasibility and interiority are not needed for this library transport.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.advance_eq_some_of_minimizer, BanditRL.OnlinePrescientBregman.iteratetheorem iterate_eq_of_source_updates (V X : Set E) (hV : Convex ℝ V) (hVX : V ⊆ X) (ψ : E → ℝ) (hψ : StrictConvexOn ℝ X ψ) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 : E) (x : ℕ → E) (T : ℕ) (hinit : x 0 = x0) (hη : ∀ t < T, 0 < η t) (hf : ∀ t < T, BanditRL.OnlineConvex.SourceProper (loss t)) (hs : ∀ t < T, ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (hmin : ∀ t < T, x (t + 1) ∈ V ∧ IsMinOn (fun z => loss t z + (((η t)⁻¹ * divergence ψ z (x t) : ℝ) : EReal)) V (x (t + 1))) : ∀ t ≤ T, iterate V ψ η loss x0 t = some (x t)
Lean declarationBandit
Plain-English statement. The source-facing bounds use a finite-dimensional real inner-product space. V is nonempty, closed and convex, with V subset X. The real ambient representative psi is strictly convex on X, differentiable on interior X, and its extension by positive infinity outside X has closed real sublevels. Every x_t for 0<=t<=T is interior to X. Each played loss excludes negative infinity everywhere, is finite on V, and has a global supporting subgradient at every point of V, tested against every ambient point. Each x_(t+1) is feasible and actually minimizes Q_t over V. The comparator u belongs to V. Feasible finiteness justifies every toReal loss value; no convexity of a global zero-default real extension is assumed. Use one constant eta>0 and any T>=0.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceClosed, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineConvex.effectiveDomain, BanditRL.OnlineConvex.extendedIndicator, BanditRL.OnlineConvex.sourceProper_of_domain, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_eq_of_source_updates, BanditRL.OnlinePrescientBregman.iterate_fixed_regrettheorem source_fixed_regret (V X : Set E) (hV : Convex ℝ V) (hVn : V.Nonempty) (_hVc : IsClosed V) (hVX : V ⊆ X) (ψ : E → ℝ) (hψ : StrictConvexOn ℝ X ψ) (_hψc : BanditRL.OnlineConvex.SourceClosed (fun z => (ψ z : EReal) + BanditRL.OnlineConvex.extendedIndicator X z)) (hd : DifferentiableOn ℝ ψ (interior X)) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → EReal) (x0 : E) (x : ℕ → E) (T : ℕ) (hinit : x 0 = x0) (hinterior : ∀ t ≤ T, x t ∈ interior X) (hbot : ∀ t < T, ∀ z, loss t z ≠ ⊥) (hdom : ∀ t < T, V ⊆ BanditRL.OnlineConvex.effectiveDomain (loss t)) (hs : ∀ t < T, ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (hmin : ∀ t < T, x (t + 1) ∈ V ∧ IsMinOn (fun z => loss t z + ((η⁻¹ * divergence ψ z (x t) : ℝ) : EReal)) V (x (t + 1))) (u : E) (hu : u ∈ V) : (∑ t ∈ range T, ((loss t (x (t + 1))).toReal - (loss t u).toReal)) ≤ divergence ψ u x0 / η - (∑ t ∈ range T, divergence ψ (x (t + 1)) (x t)) / η
Lean declarationBandit
Plain-English statement. The source-facing bounds use a finite-dimensional real inner-product space. V is nonempty, closed and convex, with V subset X. The real ambient representative psi is strictly convex on X, differentiable on interior X, and its extension by positive infinity outside X has closed real sublevels. Every x_t for 0<=t<=T is interior to X. Each played loss excludes negative infinity everywhere, is finite on V, and has a global supporting subgradient at every point of V, tested against every ambient point. Each x_(t+1) is feasible and actually minimizes Q_t over V. The comparator u belongs to V. Feasible finiteness justifies every toReal loss value; no convexity of a global zero-default real extension is assumed. Require T>0, eta_t>0 for t<T and eta_(t+1)<=eta_t only when t+1<T. The maximum ranges over x0,...,x_(T-1), excluding x_T.
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceClosed, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineConvex.effectiveDomain, BanditRL.OnlineConvex.extendedIndicator, BanditRL.OnlineConvex.sourceProper_of_domain, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_eq_of_source_updates, BanditRL.OnlinePrescientBregman.iterate_variable_regrettheorem source_variable_regret (V X : Set E) (hV : Convex ℝ V) (hVn : V.Nonempty) (_hVc : IsClosed V) (hVX : V ⊆ X) (ψ : E → ℝ) (hψ : StrictConvexOn ℝ X ψ) (_hψc : BanditRL.OnlineConvex.SourceClosed (fun z => (ψ z : EReal) + BanditRL.OnlineConvex.extendedIndicator X z)) (hd : DifferentiableOn ℝ ψ (interior X)) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x0 : E) (x : ℕ → E) (T : ℕ) (hT : 0 < T) (hη : ∀ t < T, 0 < η t) (hinit : x 0 = x0) (hinterior : ∀ t ≤ T, x t ∈ interior X) (hmono : ∀ t, t + 1 < T → η (t + 1) ≤ η t) (hbot : ∀ t < T, ∀ z, loss t z ≠ ⊥) (hdom : ∀ t < T, V ⊆ BanditRL.OnlineConvex.effectiveDomain (loss t)) (hs : ∀ t < T, ∀ z ∈ V, (BanditRL.OnlineConvex.SourceSubdifferential (loss t) z).Nonempty) (hmin : ∀ t < T, x (t + 1) ∈ V ∧ IsMinOn (fun z => loss t z + (((η t)⁻¹ * divergence ψ z (x t) : ℝ) : EReal)) V (x (t + 1))) (u : E) (hu : u ∈ V) : (∑ t ∈ range T, ((loss t (x (t + 1))).toReal - (loss t u).toReal)) ≤ ((range T).sup' (nonempty_range_iff.mpr (Nat.ne_of_gt hT)) (fun t => divergence ψ u (x t))) / η (T - 1) - ∑ t ∈ range T, divergence ψ (x (t + 1)) (x t) / η t
Lean declarationBandit
Plain-English statement. Definition, not a separately numbered theorem. All real alpha and natural t; no alpha restriction or dimension. The positive base t+1 avoids zero to a negative exponent.
def powerSteps (α : ℝ) (t : ℕ) : ℝ
Lean declarationBandit
Plain-English statement. Definition on all real alpha using Lean total real division/power; source semantics and positivity are restricted to0<alpha<1.
def phi (α : ℝ) : ℝ
Lean declarationBandit
Plain-English statement. Definition for natural horizon T and natural t, including T0. This is the loss witness, not a horizon-dependent choice of learner.
def switchSlope (T t : ℕ) : ℝ
Lean declarationBandit
Plain-English statement. Definition in a real inner-product space E, no dimension or unit-norm premise; T,t natural, v,z arbitrary. Unit norm enters the regularity theorem.
BanditRL.OnlineUnboundedOSD.switchSlopedef switchLoss (T : ℕ) (v : E) (t : ℕ) (z : E) : ℝ
Lean declarationBandit
Plain-English statement. Any real inner-product E; arbitrary a,x in E and real intercept b. No completeness, finite dimension, step or convexity premise is needed.
BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineConvex.affine_subdifferential, BanditRL.OnlineSubgradientDescent.currentSubgradienttheorem currentSubgradient_affine (a x : E) (b : ℝ) : BanditRL.OnlineSubgradientDescent.currentSubgradient (fun z => ((inner ℝ a z + b : ℝ) : EReal)) x = a
Lean declarationBandit
Plain-English statement. Finite-dimensional real inner-product E; arbitrary real eta (including zero/negative), arbitrary a,x,b. Positive steps are only required at the source lower-bound endpoint.
BanditRL.OnlineGradientDescent.project, BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineHuber.project_fullSpace, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.step, BanditRL.OnlineUnboundedOSD.currentSubgradient_affinetheorem step_affine_fullSpace (η : ℝ) (a x : E) (b : ℝ) : BanditRL.OnlineSubgradientDescent.step BanditRL.OnlineHuber.fullSpace η (fun z => ((inner ℝ a z + b : ℝ) : EReal)) x = x - η • a
Lean declarationBandit
Plain-English statement. Finite-dimensional real inner-product E; arbitrary eta:N->R,a:N->E,b:N->R,initial x0 and natural t including0. No positive-step or bounded-domain assumption.
BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.step, BanditRL.OnlineUnboundedOSD.step_affine_fullSpacetheorem iterate_affine_prefix (η : ℕ → ℝ) (a : ℕ → E) (b : ℕ → ℝ) (x0 : E) (t : ℕ) : BanditRL.OnlineSubgradientDescent.iterate BanditRL.OnlineHuber.fullSpace η (fun s z => ((inner ℝ (a s) z + b s : ℝ) : EReal)) x0 t = x0 - ∑ s ∈ range t, η s • a s
Lean declarationBandit
Plain-English statement. All real alpha and natural t including0; no restriction alpha in(0,1).
BanditRL.OnlineUnboundedOSD.powerStepstheorem powerSteps_pos (α : ℝ) (t : ℕ) : 0 < powerSteps α t
Lean declarationBandit
Plain-English statement. Finite-dimensional real inner-product E as in the actual API; unit v with norm1, arbitrary T and t. No alpha or horizon threshold.
BanditRL.OnlineUnboundedOSD.switchLoss, BanditRL.OnlineUnboundedOSD.switchSlopetheorem switching_loss_regular (T : ℕ) (v : E) (hv : ‖v‖ = 1) (t : ℕ) : ConvexOn ℝ univ (switchLoss T v t) ∧ LipschitzWith 1 (switchLoss T v t)
Lean declarationBandit
Plain-English statement. Real scalar space with initial/comparator0; all real alpha and natural T including0,1. This is an identity with no desired-regret/trajectory premise.
BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.regret, BanditRL.OnlineUnboundedOSD.iterate_affine_prefix, BanditRL.OnlineUnboundedOSD.powerSteps, BanditRL.OnlineUnboundedOSD.switchLoss, BanditRL.OnlineUnboundedOSD.switchSlopetheorem switching_scalar_regret_identity (α : ℝ) (T : ℕ) : BanditRL.OnlineSubgradientDescent.regret BanditRL.OnlineHuber.fullSpace (powerSteps α) (fun t z => (switchLoss T (1 : ℝ) t z : EReal)) 0 0 T = -((((T + 1) / 2 : ℕ) : ℝ) - ((T / 2 : ℕ) : ℝ)) * (∑ i ∈ range ((T + 1) / 2), powerSteps α i) + (∑ i ∈ range T, ((i + 1 : ℕ) : ℝ) ^ (1 - α)) - (T : ℝ) * (∑ i ∈ Ico ((T + 1) / 2) T, powerSteps α i)
Lean declarationBandit
Plain-English statement. Real alpha with0<alpha<1; no horizon or learner premises.
BanditRL.OnlineUnboundedOSD.phitheorem phi_range (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) : 0 < phi α ∧ phi α < 1 - Real.log 2
Lean declarationBandit
Plain-English statement. No free parameters; left filter at1. The source interval is(0,1), and the total Lean definition at1 is deliberately not identified with the limit.
BanditRL.OnlineUnboundedOSD.phitheorem phi_limit : Tendsto phi (𝓝[<] (1 : ℝ)) (𝓝 (1 - Real.log 2)) ∧ (3 / 10 : ℝ) ≤ 1 - Real.log 2
Lean declarationBandit
Plain-English statement. Real alpha with0<alpha<1 and natural T>=2/((1-alpha)phi(alpha)); actual full-space scalar OSD, initial/comparator0, exact switching losses.
BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineSubgradientDescent.regret, BanditRL.OnlineUnboundedOSD.phi, BanditRL.OnlineUnboundedOSD.phi_range, BanditRL.OnlineUnboundedOSD.powerSteps, BanditRL.OnlineUnboundedOSD.powerSteps_pos, BanditRL.OnlineUnboundedOSD.switchLoss, BanditRL.OnlineUnboundedOSD.switching_scalar_regret_identitytheorem switching_scalar_lower_bound (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) (T : ℕ) (hT : 2 / ((1 - α) * phi α) ≤ (T : ℝ)) : (1 / 2 : ℝ) * phi α * (T : ℝ) ^ (2 - α) ≤ BanditRL.OnlineSubgradientDescent.regret BanditRL.OnlineHuber.fullSpace (powerSteps α) (fun t z => (switchLoss T (1 : ℝ) t z : EReal)) 0 0 T
Lean declarationBandit
Plain-English statement. Finite-dimensional real inner-product E, any supplied unit v;0<alpha<1 and the exact natural horizon threshold. Unit v already excludes the zero-space instance.
BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.regret, BanditRL.OnlineUnboundedOSD.iterate_affine_prefix, BanditRL.OnlineUnboundedOSD.phi, BanditRL.OnlineUnboundedOSD.powerSteps, BanditRL.OnlineUnboundedOSD.switchLoss, BanditRL.OnlineUnboundedOSD.switchSlope, BanditRL.OnlineUnboundedOSD.switching_scalar_lower_boundtheorem switching_vector_lower_bound (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) (T : ℕ) (hT : 2 / ((1 - α) * phi α) ≤ (T : ℝ)) (v : E) (hv : ‖v‖ = 1) : (1 / 2 : ℝ) * phi α * (T : ℝ) ^ (2 - α) ≤ BanditRL.OnlineSubgradientDescent.regret BanditRL.OnlineHuber.fullSpace (powerSteps α) (fun t z => (switchLoss T v t z : EReal)) 0 0 T
Lean declarationBandit
Plain-English statement. For 0<alpha<1, take a natural T with T>=2/((1-alpha)*phi(alpha)), in a nontrivial finite-dimensional real inner-product space. Start the fixed unprojected OSD recursion at zero with source step eta_t=t^(-alpha). There exists a real-valued convex 1-Lipschitz loss sequence whose pre-update regret against zero is at least phi(alpha)*T^(2-alpha)/2.
BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineSubgradientDescent.regret, BanditRL.OnlineUnboundedOSD.phi, BanditRL.OnlineUnboundedOSD.powerSteps, BanditRL.OnlineUnboundedOSD.switchLoss, BanditRL.OnlineUnboundedOSD.switching_loss_regular, BanditRL.OnlineUnboundedOSD.switching_vector_lower_boundtheorem theorem_5_4 [Nontrivial E] (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) (T : ℕ) (hT : 2 / ((1 - α) * phi α) ≤ (T : ℝ)) : ∃ loss : ℕ → E → ℝ, (∀ t < T, ConvexOn ℝ univ (loss t) ∧ LipschitzWith 1 (loss t)) ∧ (1 / 2 : ℝ) * phi α * (T : ℝ) ^ (2 - α) ≤ BanditRL.OnlineSubgradientDescent.regret BanditRL.OnlineHuber.fullSpace (powerSteps α) (fun t z => (loss t z : EReal)) 0 0 T
Lean declarationBandit
Plain-English statement. All finite history lengths including0, arbitrary X and real losses; no feasible-set or regularity premise.
def cumulative (past : Fin n → X → ℝ) (x : X) : ℝ
Lean declarationBandit
Plain-English statement. All V, histories and points; V may be empty and the minimum need not be attained.
BanditRL.OnlineFTLSelector.cumulativedef minimizers (V : Set X) (past : Fin n → X → ℝ) : Set X
Lean declarationBandit
Plain-English statement. All V and finite histories, with no nonemptiness or attainment premise.
BanditRL.OnlineFTLSelector.minimizersdef select (V : Set X) (past : Fin n → X → ℝ) : Option X
Lean declarationBandit
Plain-English statement. A supplied subtype initial:V, arbitrary loss stream and natural time. Feasibility of the initial excludes empty V.
BanditRL.OnlineFTLSelector.selectdef predict (V : Set X) (initial : V) (loss : ℕ → X → ℝ) (t : ℕ) : Option X
Lean declarationBandit
Plain-English statement. All natural t including0, every stream and ambient point; no V premise.
theorem cumulative_prefix (loss : ℕ → X → ℝ) (t : ℕ) (x : X) : cumulative (fun i : Fin t => loss i.val) x = ∑ i ∈ range t, loss i x
Lean declarationBandit
Plain-English statement. All V, finite histories and p; assumes the actual equality S_V(L)=some p.
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.minimizers, BanditRL.OnlineFTLSelector.selecttheorem select_some_spec (V : Set X) (past : Fin n → X → ℝ) (p : X) (h : select V past = some p) : p ∈ V ∧ IsMinOn (cumulative past) V p
Lean declarationBandit
Plain-English statement. All V and finite histories, including empty domains/history; no compactness premise.
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.minimizers, BanditRL.OnlineFTLSelector.selecttheorem select_none_iff (V : Set X) (past : Fin n → X → ℝ) : select V past = none ↔ ¬ ∃ p, p ∈ V ∧ IsMinOn (cumulative past) V p
Lean declarationBandit
Plain-English statement. Histories of the same length with EqOn(L_i,L_i',V) for every coordinate; tied minima permitted.
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.minimizers, BanditRL.OnlineFTLSelector.selecttheorem select_congr (V : Set X) (past past' : Fin n → X → ℝ) (h : ∀ i, EqOn (past i) (past' i) V) : select V past = select V past'
Lean declarationBandit
Plain-English statement. A supplied feasible p, its actual IsMinOn proof and uniqueness among feasible minimizers. These are explicit adapter premises.
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.select, BanditRL.OnlineFTLSelector.select_none_iff, BanditRL.OnlineFTLSelector.select_some_spectheorem select_eq_some_of_unique (V : Set X) (past : Fin n → X → ℝ) (p : X) (hp : p ∈ V) (hmin : IsMinOn (cumulative past) V p) (hunique : ∀ q ∈ V, IsMinOn (cumulative past) V q → q = p) : select V past = some p
Lean declarationBandit
Plain-English statement. Arbitrary X,V, supplied initial:V and stream; no loss values inspected.
BanditRL.OnlineFTLSelector.predicttheorem predict_zero (V : Set X) (initial : V) (loss : ℕ → X → ℝ) : predict V initial loss 0 = some (initial : X)
Lean declarationBandit
Plain-English statement. All natural t including0, feasible initial and actual equality P_t=some p.
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.cumulative_prefix, BanditRL.OnlineFTLSelector.predict, BanditRL.OnlineFTLSelector.predict_zero, BanditRL.OnlineFTLSelector.select, BanditRL.OnlineFTLSelector.select_some_spectheorem predict_some_spec (V : Set X) (initial : V) (loss : ℕ → X → ℝ) (t : ℕ) (p : X) (h : predict V initial loss t = some p) : p ∈ V ∧ IsMinOn (fun x => ∑ i ∈ range t, loss i x) V p
Lean declarationBandit
Plain-English statement. All natural t including0 and a feasible supplied initial; no regularity or attainment hypothesis.
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.cumulative_prefix, BanditRL.OnlineFTLSelector.predict, BanditRL.OnlineFTLSelector.predict_zero, BanditRL.OnlineFTLSelector.select, BanditRL.OnlineFTLSelector.select_none_ifftheorem predict_none_iff (V : Set X) (initial : V) (loss : ℕ → X → ℝ) (t : ℕ) : predict V initial loss t = none ↔ ¬ ∃ p, p ∈ V ∧ IsMinOn (fun x => ∑ i ∈ range t, loss i x) V p
Lean declarationBandit
Plain-English statement. The SAME feasible initial and V; all s<t losses agree only on V. No equality of current/future or outside-V values.
BanditRL.OnlineFTLSelector.predict, BanditRL.OnlineFTLSelector.predict_zero, BanditRL.OnlineFTLSelector.select, BanditRL.OnlineFTLSelector.select_congrtheorem predict_prefix (V : Set X) (initial : V) (loss loss' : ℕ → X → ℝ) (t : ℕ) (h : ∀ s < t, EqOn (loss s) (loss' s) V) : predict V initial loss t = predict V initial loss' t
Lean declarationBandit
Plain-English statement. Start at a nonnegative offset c. For T rounds, add a nonnegative increment at each round and evaluate f at the new cumulative total. If f is continuous, nonincreasing and nonnegative on the nonnegative half-line, the sum of those values weighted by the increments is at most the integral of f from c to the final total.
theorem lemma_4_13 (a₀ : ℝ) (a : ℕ → ℝ) (f : ℝ → ℝ) (T : ℕ) (h₀ : 0 ≤ a₀) (ha : ∀ t < T, 0 ≤ a t) (hcont : ContinuousOn f (Set.Ici 0)) (hmono : AntitoneOn f (Set.Ici 0)) (hf : ∀ x ∈ Set.Ici 0, 0 ≤ f x) : (∑ t ∈ range T, a t * f (a₀ + ∑ i ∈ range (t + 1), a i)) ≤ ∫ x in a₀..(a₀ + ∑ i ∈ range T, a i), f x
Lean declarationBandit
Plain-English statement. At each round, divide the squared feedback norm by the square root of all energy observed through that round. The sum of these normalized terms is at most twice the square root of the final energy.
BanditRL.OnlineAdaptiveEnergy.norm_sq_sum_div_sqrt_prefixtheorem source_energy_term_bound {E : Type*} [NormedAddCommGroup E] (g : ℕ → E) (T : ℕ) (D : ℝ) (hD : 0 ≤ D) : D / 2 * (∑ t ∈ range T, ‖g t‖ ^ 2 / Real.sqrt (∑ i ∈ range (t + 1), ‖g i‖ ^ 2)) ≤ D * Real.sqrt (∑ i ∈ range T, ‖g i‖ ^ 2)
Lean declarationBandit
Plain-English statement. Predict from past losses and plays. After observing the current loss, select a supporting subgradient at the played point, add its squared norm to the cumulative energy, and project the scaled step back onto the feasible set. Zero feedback leaves the prediction in place. The regret bound keeps a deduction for the final squared distance to the comparator. Regret sums the finite differences between the loss of each prediction and the loss of the comparator on that same round.
BanditRL.OnlineAdaptiveOSD.one_step, BanditRL.OnlineAdaptiveOSD.regret_zero_diameter, BanditRL.OnlineAdaptiveOSD.energy_eq_sum, BanditRL.OnlineAdaptiveOSD.energy_step_mono, BanditRL.OnlineAdaptiveOSD.output_mem, BanditRL.OnlineAdaptivePotential.weighted_potential_sum, BanditRL.OnlineAdaptiveEnergy.norm_sq_sum_div_sqrt_prefixtheorem regret_bound (V : Domain (E := E)) (α D : ℝ) (hα : 0 < α) (hD : 0 ≤ D) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback V α D loss x₁ p T) (hdiam : ∀ x ∈ V.carrier, ∀ y ∈ V.carrier, ‖x - y‖ ≤ D) (u : E) (hu : u ∈ V.carrier) : regret V α D loss x₁ p u T ≤ (1 / (2 * α) + α) * D * Real.sqrt (energy V α D loss x₁ p T) - ‖output V α D loss x₁ p T - u‖ ^ 2 * Real.sqrt (energy V α D loss x₁ p T) / (2 * α * D)
Lean declarationBandit
Plain-English statement. With scale one, each nonzero subgradient uses the diameter bound divided by the square root of energy through that round. For every feasible comparator, regret is at most three halves of the diameter bound times the square root of final energy.
BanditRL.OnlineAdaptiveOSD.regret_boundtheorem source_eq4_4 (V : Domain (E := E)) (D : ℝ) (hD : 0 ≤ D) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hconvex : ∀ t < T, IsConvexExtended (loss t)) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback V 1 D loss x₁ p T) (hdiam : ∀ x ∈ V.carrier, ∀ y ∈ V.carrier, ‖x - y‖ ≤ D) (u : E) (hu : u ∈ V.carrier) : regret V 1 D loss x₁ p u T ≤ (3 / 2 : ℝ) * D * Real.sqrt (energy V 1 D loss x₁ p T)
Lean declarationBandit
Plain-English statement. With scale one over the square root of two, regret is at most the diameter bound times the square root of twice the realized energy. The printed fixed-step benchmark uses a minimum over positive steps. Its value extends to both zero axes as an infimum.
BanditRL.OnlineAdaptiveOSD.source_theorem4_14, BanditRL.OnlineAdaptiveOSD.energy_nonneg, BanditRL.OnlineAdaptiveBenchmark.source_benchmark_valuetheorem source_theorem4_14_infimum (V : Domain (E := E)) (D : ℝ) (hD : 0 ≤ D) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (hx₁ : x₁ ∈ V.carrier) (T : ℕ) (hconvex : ∀ t < T, IsConvexExtended (loss t)) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback V (Real.sqrt 2 / 2) D loss x₁ p T) (hdiam : ∀ x ∈ V.carrier, ∀ y ∈ V.carrier, ‖x - y‖ ≤ D) (u : E) (hu : u ∈ V.carrier) : regret V (Real.sqrt 2 / 2) D loss x₁ p u T ≤ D * Real.sqrt (2 * energy V (Real.sqrt 2 / 2) D loss x₁ p T) ∧ D * Real.sqrt (2 * energy V (Real.sqrt 2 / 2) D loss x₁ p T) = Real.sqrt 2 * sInf {b : ℝ | ∃ η : ℝ, 0 < η ∧ b = BanditRL.OnlineOptimalStep.upperBound (D ^ 2) (energy V (Real.sqrt 2 / 2) D loss x₁ p T) η}
Lean declarationBandit
Plain-English statement. Fix a polynomially decreasing step schedule. At each sufficiently large horizon, affine losses that reverse direction partway through the run give gradient descent superlinear regret against zero. The switch time depends on the horizon.
BanditRL.OnlineGradientDescentSource.gradient_linear, BanditRL.OnlineUnboundedOSD.currentSubgradient_affine, BanditRL.OnlineUnboundedOSD.switching_loss_regular, BanditRL.OnlineUnboundedOSD.switching_vector_lower_boundtheorem regret_lower_bound [Nontrivial E] (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) (T : ℕ) (hT : 2 / ((1 - α) * BanditRL.OnlineUnboundedOSD.phi α) ≤ (T : ℝ)) : ∃ loss : ℕ → E → ℝ, (∀ t < T, ConvexOn ℝ univ (loss t) ∧ LipschitzWith 1 (loss t) ∧ Differentiable ℝ (loss t)) ∧ (1 / 2 : ℝ) * BanditRL.OnlineUnboundedOSD.phi α * (T : ℝ) ^ (2 - α) ≤ BanditRL.OnlineGradientDescent.regretVariable BanditRL.OnlineHuber.fullSpace (BanditRL.OnlineUnboundedOSD.powerSteps α) loss 0 0 T
Algorithm 2.1, Proposition 2.11, Lemma 2.12, the fixed and positive nonincreasing-step branches of Theorem 2.13, and Eq. (2.1), arXiv:1912.13213v10. Source-facing loss bounds use OnlineGradientDescentSource with the proved arbitrary-open adapter; the retained RegularLoss bounds require stronger convex-neighborhood regularity. Extended convexity and the supporting-gradient theorem are mapped in separate routes. This is not completion of Chapter 2. The affine/quadratic fixed-step prescient producer chain is a separate derived specialization. These are derived affine-loss, quadratic-potential, constant-step results, extended from the finite-dimensional source to complete real Hilbert spaces. Conditional nonlinear/Bregman fixed and variable bounds now have derived library proofs for supplied valid interior argmin runs. Full source-algorithm acceptance and the remaining chapter obligations stay open. No chapter completion or source correction is asserted. A derived real-valued convex minimizer comparison permits a nonsmooth loss and differentiable perturbation, with three concrete test families. The supplied minimum is a premise; the general prescient source obligations and chapter remain open. One canonical ordered Bregman definition, five derived helper proofs and two complete illustrative test families now support the general prescient dependency. These are derived real-valued supporting interfaces, not full Algorithm 15.8 or Theorem 15.30. The separate extended-loss bridges below establish feasible finite-part convexity and minimum transfer under their explicit assumptions. Source-domain and interior representative compatibility, the partial current-loss recursion, and conditional sharp fixed/variable same-run telescopes now have named proofs. The new source transport identifies each supplied valid argmin run with that recursion. General attainment and interior preservation remain open. The source fixed-step proof is left as an exercise. The printed variable-step eta_(T+1) indexing ambiguity and the unsupported use of differentiable Theorem 2.8 for a merely subdifferentiable loss remain explicit source obligations. Three derived extended-loss helper proofs and two complete infinity-domain test families extend this supporting layer. These three derived extended-loss bridges support the Chapter 2 prescient dependency. The library now supplies source-domain and interior representative compatibility, conditional actual-update correspondence, and sharp fixed/variable same-run telescopes. Full Algorithm 15.8/Theorem 15.30 acceptance and general guarantees of attained interior runs remain open. The nonsmooth optimality citation of differentiable Theorem 2.8, the eta_(T+1) indexing discrepancy and the fixed-step proof left as an exercise remain open. The additional partial-recursion layer proves current-loss selection, exact nonattainment and prefix properties, local representative equality, and the signed bound for its actual consecutive states. Eight derived lemmas and two literal partial definitions support the Chapter 2 prescient dependency. A successful partial state need not satisfy the source interior condition. The source-to-recursion layer now transports the stated source-domain and interior hypotheses along each supplied valid argmin run. The same-run cumulative layer supplies conditional fixed/variable inequalities. General attainment and interior preservation remain open; the source algorithm is not thereby made total. The printed nonsmooth-optimality citation and stepsize-index discrepancy remain unresolved. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction. The same-run cumulative layer derives a common signed divergence sum, sharp fixed/variable bounds and terminal-nonnegativity corollaries under explicit successful-interior-run hypotheses. These five conditional library inequalities support the Chapter 2 prescient dependency. The finite Euclidean source uses a generator on X; the library uses an ambient representative on a complete real inner-product space. The source-to-recursion layer now derives properness and identifies each supplied valid interior argmin run with the canonical recursion. General attainment and interior preservation remain open. The printed nonsmooth invocation of Theorem 2.8 and the literal eta_(T+1) indexing discrepancy remain unresolved. The library compares only adjacent played steps; its T=0 fixed/sum cases are derived extensions, not a printed empty-horizon convention. The fixed-step proof is an exercise in the source and a derived library proof here. The source-to-recursion layer derives properness from source loss domains, strict penalized convexity, equality of any supplied minimizer with the selected update, and the exact recursion identity. It then obtains both conditional source-facing regret bounds. These are four derived library transports and two conditional valid-run bounds supporting the Chapter 2 prescient dependency. Supplied minimizers are the algorithm update relation, not an assumed regret inequality. Closedness and strict convexity do not guarantee universal attainment or interior preservation. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows. The unbounded polynomial-step OSD package supplies the explicit switching witness, exact scalar regret identity, integral lower bound and vector embedding for Theorem 5.4, including the coefficient range and left-limit assertions. The lower bound concerns this fixed unprojected OSD recursion with polynomially decreasing steps. The adversarial loss sequence may depend on T. Four definitions, eight derived supporting theorems and three source-facing components describe one printed result. Theorem 5.4, phi_range and phi_limit together cover its bound, coefficient range and left-limit supplement. The generic strict-past FTL realization adds conditional selection soundness, exact no-attainment failure, feasible initialization and prefix invariance. One algorithm-definition anchor has four definitions and nine derived library proofs. It adds no printed theorem count or regret bound. Existing scalar linear and squared-loss FTL strategies remain source-qualified specializations without a proved equality to this generic selector. The 65 overlapping source containers are navigation, not an independent proof denominator. Chapter 2 stays partial and its proof denominator remains unknown. Lemma 4.13 supplies the finite right-endpoint sum estimate. The inverse-square-root energy estimate is available. The energy estimate supplies the sum of normalized squared feedback norms in adaptive OSD. The adaptive projected update now covers zero feedback, zero diameter and zero realized energy. Equation (4.4) and the regret bound in Theorem 4.14 use the energy of their respective runs. The benchmark has an infimum for all nonnegative diameters and energies. Chapter-wide obligations remain open. A separate library lemma formalizes the weighted-distance calculation in the proof of Theorem 2.13 with both endpoint terms and the interior correction for changing reciprocal step sizes. On the affine switching losses of Theorem 5.4, gradient descent follows the same iterates as subgradient descent. This resolves one of the eight required Chapter 2 forward containers. Seven remain open, including the full prescient result of Algorithm 15.8 and Theorem 15.30. The chapter, book and source-correction gates remain separate. The earlier chapter ledger recorded six unresolved enumeration items. The later inventory identifies 31 statement branches across ten historical forward topics. Chapter 2 remains partial and the total number of required proofs is unknown.
The compact summary keeps the reading route visible. Open it for source-linked declarations and exact remaining gaps.
| Milestone | Status | Lean declaration | Remaining gap |
|---|
| Module | Declarations | Project imports | Status |
|---|---|---|---|
BanditRLProof.OnlineAdaptiveBenchmark | 5 | 2 | Compiled |
BanditRLProof.OnlineAdaptiveEnergy | 3 | 1 | Compiled |
BanditRLProof.OnlineAdaptiveOSD | 34 | 3 | Compiled |
BanditRLProof.OnlineAdaptivePotential | 1 | 0 | Compiled |
BanditRLProof.OnlineAdaptiveSummation | 1 | 0 | Compiled |
BanditRLProof.OnlineBregmanExtended | 3 | 3 | Compiled |
BanditRLProof.OnlineBregmanProximal | 6 | 1 | Compiled |
BanditRLProof.OnlineFTLSelector | 13 | 0 | Compiled |
BanditRLProof.OnlineGradientDescent | 17 | 0 | Compiled |
BanditRLProof.OnlineGradientDescentSource | 14 | 2 | Compiled |
BanditRLProof.OnlineGradientDescentVariable | 8 | 1 | Compiled |
BanditRLProof.OnlinePrescientBregman | 10 | 1 | Compiled |
BanditRLProof.OnlinePrescientBregmanRegret | 5 | 2 | Compiled |
BanditRLProof.OnlinePrescientBregmanSource | 6 | 1 | Compiled |
BanditRLProof.OnlinePrescientLinear | 11 | 1 | Compiled |
BanditRLProof.OnlineProximalComparison | 1 | 0 | Compiled |
BanditRLProof.OnlineUnboundedOGD | 1 | 2 | Compiled |
BanditRLProof.OnlineUnboundedOSD | 15 | 3 | Compiled |
BanditRLProof.OnlineWeightedPotential | 2 | 0 | Compiled |