BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.

Teaching chapter 03 of 31 · Canonical route compiled

Projected OGD: Orabona Chapter 2

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.

Orientation

Who should read this. Readers of convex optimization and online learning; this route shares the canonical Lean declaration graph.

Learning goals

  • Follow the actual projected recurrence and strict-prefix information flow.
  • Keep the negative terminal residual for fixed and decreasing learning rates.
  • Distinguish fixed-step unbounded-domain analysis from diameter-based tuning.
  • Distinguish arbitrary open differentiability neighborhoods from the retained stronger convex-neighborhood predicate.
  • Derive affine prescient regret from the attained proximal projection, retaining terminal distance and movement energy.
  • Derive a nonsmooth convex-loss comparison from an actual proximal minimum by differentiating only the perturbation along a feasible segment.
  • Derive canonical Bregman three-point/nonnegative/gradient identities and a nonsmooth proximal one-step comparison with both negative residuals.
  • Derive feasible finite-part convexity, the actual extended proximal minimum equivalence and the signed one-step comparison.
  • Trace a genuine current-loss partial argmin recursion, its exact failure and prefix semantics, and its actual signed one-step bound.
  • Derive sharp fixed and decreasing-step cumulative regret from the same actual prescient updates, with correct previous-state maximum and negative movement terms.
  • Derive properness and uniqueness from source hypotheses, identify the actual source argmin run, and obtain both printed signed prescient regret bounds.
  • Derive the unbounded polynomially decreasing-step OSD failure from its actual recursion, including phi range/left limit and the exact source horizon threshold.
  • Construct the generic strict-past FTL partial minimizer rule with feasible initialization, exact failure semantics and restricted-domain prefix causality.
  • Compare a cumulative right-endpoint weighted sum with its integral, retaining zero increments and the initial offset.
  • Telescope cumulative energy sums, retaining zero prefixes, empty horizons and zero external scaling.
  • Derive actual adaptive projected-subgradient regret from causal state, zero-feedback skips, weighted potentials and cumulative energy.
  • Separate the source Theorem4.14 regret guarantee from the infimum/attainment correction in its scalar benchmark display.
  • Explain the exact weighted-distance equality, its interior reciprocal-step correction and terminal residual.

Textbook crosswalk

Read the mathematics before the Lean interface

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.

Primary spine · arXiv:1912.13213v10, 21 June 2026

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
Open at the cited pages
projected online gradient descent · ordered flow

Algorithm 2.1 with fixed or positive nonincreasing steps

Read top to bottom to follow the argument or procedure.

  1. Initialize

    Choose x1 in V. Use a fixed positive eta, or a prescribed positive nonincreasing schedule eta_t for a bounded V.

  2. Predict

    Output the current point before seeing the current loss.

  3. Read current feedback

    Evaluate the current loss gradient at the current point.

  4. Project

    Project x_t - eta_t times the current gradient onto V and continue. The fixed-step branch uses the same eta throughout.

21 distinct theory routes, one frontier.Open the statement you want to compare; the other routes stay compact.
Source theorem · faithful restatementProposition 2.11: projection decreases distanceCompiled OGD core in the accepted libraryprinted pp. 12-15
Source theorem · faithful restatement

Proposition 2.11: projection decreases distance

Original at printed pp. 12-15 ↗
Compiled OGD core in the accepted libraryThese bounded OGD results are integrated in the accepted library. Each card retains its stated hypotheses, exact source relationship and horizon restrictions. Chapter 2 and the book remain incomplete.

Projection cannot increase distance to a feasible comparator.

Model
Projection onto a nonempty closed convex set in real Euclidean space; Lean supports complete real Hilbert spaces.
Assumptions
Nonempty closed convex V; feasible comparator.
Algorithm parameters
Arbitrary ambient point z and feasible comparator u; no loss, learning rate or horizon.
Regret notion
Pointwise comparison of distances; no regret functional.
Guarantee
Projection cannot increase distance to a feasible comparator.
Source mathematical statement. 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.

Source theorem · faithful restatementLemma 2.12: one-step regretCompiled OGD core in the accepted libraryprinted pp. 12-15
Source theorem · faithful restatement

Lemma 2.12: one-step regret

Original at printed pp. 12-15 ↗
Compiled OGD core in the accepted libraryThese bounded OGD results are integrated in the accepted library. Each card retains its stated hypotheses, exact source relationship and horizon restrictions. Chapter 2 and the book remain incomplete.

Convexity linearizes loss; projection turns that inner product into a potential decrease plus gradient energy.

Model
Finite-dimensional real Euclidean projected OGD; Lean additionally supports real Hilbert spaces.
Assumptions
Nonempty closed convex V, feasible x and u, eta>0. 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.
Algorithm parameters
A single current loss, current feasible point x, feasible comparator u and positive step eta; x_next is the same actual projected update.
Regret notion
One-round loss difference and its gradient linearization; no cumulative horizon premise.
Guarantee
Convexity linearizes loss; projection turns that inner product into a potential decrease plus gradient energy.
Source mathematical statement. 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.

Source theorem · faithful restatementTheorem 2.13: fixed step onlyCompiled OGD core in the accepted libraryprinted pp. 12-15
Source theorem · faithful restatement

Theorem 2.13: fixed step only

Original at printed pp. 12-15 ↗
Compiled OGD core in the accepted libraryThese bounded OGD results are integrated in the accepted library. Each card retains its stated hypotheses, exact source relationship and horizon restrictions. Chapter 2 and the book remain incomplete.

Cumulative comparator regret retains the negative terminal squared distance, with no bounded-domain premise.

Model
Finite-dimensional real Euclidean projected OGD; Lean additionally supports real Hilbert spaces.
Assumptions
Nonempty closed convex V, feasible initial point and comparator, eta>0; no bounded-domain premise. 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.
Algorithm parameters
Fixed eta and any natural horizon T, including T=0 where the two distances cancel.
Regret notion
Deterministic cumulative loss difference on the same generated trajectory.
Guarantee
Cumulative comparator regret retains the negative terminal squared distance, with no bounded-domain premise.
Source mathematical statement. 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.

Source theorem · faithful restatementEquation (2.1): horizon tuningCompiled OGD core in the accepted libraryprinted pp. 12-15
Source theorem · faithful restatement

Equation (2.1): horizon tuning

Original at printed pp. 12-15 ↗
Compiled OGD core in the accepted libraryThese bounded OGD results are integrated in the accepted library. Each card retains its stated hypotheses, exact source relationship and horizon restrictions. Chapter 2 and the book remain incomplete.

A priori diameter and gradient bounds yield the source square-root regret rate.

Model
Finite-dimensional real Euclidean projected OGD; Lean additionally supports real Hilbert spaces.
Assumptions
Nonempty closed convex V, feasible initial point; T,D,G>0; pairwise distances<=D and gradient norms<=G on this actual tuned trajectory. 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.
Algorithm parameters
One horizon-prescribed eta=D/(G sqrtT) before the conclusion for all feasible comparators. No zero-parameter or anytime claim.
Regret notion
Deterministic cumulative loss difference on the same generated trajectory.
Guarantee
A priori diameter and gradient bounds yield the source square-root regret rate.
Source mathematical statement. 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.

Source theorem · faithful restatementTheorem 2.13: positive nonincreasing stepsCompiled OGD core in the accepted libraryprinted pp. 13-14
Source theorem · faithful restatement

Theorem 2.13: positive nonincreasing steps

Original at printed pp. 13-14 ↗
Compiled OGD core in the accepted libraryThese bounded OGD results are integrated in the accepted library. Each card retains its stated hypotheses, exact source relationship and horizon restrictions. Chapter 2 and the book remain incomplete.

The same generated trajectory determines all gradients and the terminal residual.

Model
Projected OGD in finite-dimensional real Euclidean space; the Lean interface supports real Hilbert spaces.
Assumptions
Nonempty closed convex bounded V; feasible initial point and comparator; T>=1; positive adjacent nonincreasing prescribed steps. 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.
Algorithm parameters
Exact finite Metric.diam V. Both distance denominators use the last played step eta(T-1); D=0 is allowed.
Regret notion
Deterministic cumulative comparator loss difference for iterateVariable; source eta_T is Lean eta(T-1).
Guarantee
D squared over twice the final step, plus weighted gradient energy, minus the terminal squared distance over twice the final step.
Source mathematical statement. Decreasing learning rates give a finite-diameter regret bound with the negative terminal squared distance retained.

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.

Derived library resultPrescient proximal updates: derived affine/quadratic constant-step caseDerived affine constant-step chain compiled; general source remains openprinted 14, 265–266 / PDF 26, 277–278
Derived library result

Prescient proximal updates: derived affine/quadratic constant-step case

Source context at printed 14, 265–266 / PDF 26, 277–278 ↗
Derived affine constant-step chain compiled; general source remains openThese 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.

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.

Model
For a fixed step eta and vector sequence g, z_0=x_0, z_(t+1)=P_V(z_t-eta g_t), and the played prediction is p_t=z_(t+1). The current affine loss is received before p_t is played; future vectors are irrelevant. Lean t=0 is source round 1.
Assumptions
E is a complete real inner-product space and V is a nonempty closed convex subset. Write P_V for the unique nearest-point projection. eta>0 is fixed, u belongs to V, and x_0 is any ambient point. T is any natural number, including zero. No bounded-domain, bounded-gradient or stochastic assumption is made.
Algorithm parameters
In the finite-dimensional source specialization take X=E, psi(x)=||x|| squared/2, B_psi(a;b)=||a-b|| squared/2, and source index k=t+1. The library also allows complete real Hilbert spaces.
Regret notion
R_T(u) is the signed finite sum of affine loss differences at post-update predictions against the same fixed comparator. It is neither averaged nor in expectation.
Guarantee
The actual projection minimizes the affine proximal objective. The sharp bound retains both residuals; the simpler bound discards only terminal distance. The feasibility, current-inclusive prefix and affine-offset identities are supporting library facts.
Derived mathematical statement. Receive each affine loss before predicting. Project the previous state minus eta times its vector. Signed cumulative loss is at most initial squared distance minus terminal squared distance and all squared movements, divided by positive 2 eta.

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.

Derived library resultA derived nonsmooth minimizer comparisonLocally compiled derived comparisonprinted14,11,265–266 / PDF26,23,277–278
Derived library result

A derived nonsmooth minimizer comparison

Source context at printed14,11,265–266 / PDF26,23,277–278 ↗
Locally compiled derived comparisonThis 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.

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.

Model
Deterministic comparison at a supplied feasible global minimizer; no temporal or probabilistic model.
Assumptions
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.
Algorithm parameters
Every u in V; no step size or horizon.
Regret notion
One loss difference f(p)-f(u), not cumulative regret.
Guarantee
Fix u in V and move along q(a)=p+a(u-p), with 0<=a<=1. Convexity of V keeps q(a) feasible. Minimality and convexity of f give f(p)+h(p)<=f(q(a))+h(q(a))<=(1-a)f(p)+a f(u)+h(q(a)). Thus H(a)=a(f(u)-f(p))+h(q(a))-h(p) has a minimum at a=0 on [0,1]. Differentiate h along the affine segment: Hprime(0)=f(u)-f(p)+Dh(p)[u-p]. The feasible positive tangent direction gives Hprime(0)>=0, which is the claimed comparison. 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.
Derived mathematical statement. Fix u in V and move along q(a)=p+a(u-p), with 0<=a<=1. Convexity of V keeps q(a) feasible. Minimality and convexity of f give f(p)+h(p)<=f(q(a))+h(q(a))<=(1-a)f(p)+a f(u)+h(q(a)). Thus H(a)=a(f(u)-f(p))+h(q(a))-h(p) has a minimum at a=0 on [0,1]. Differentiate h along the affine segment: Hprime(0)=f(u)-f(p)+Dh(p)[u-p]. The feasible positive tangent direction gives Hprime(0)>=0, which is the claimed comparison. 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.

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.

Derived library resultOrdered Bregman algebra and a derived proximal stepLocally compiled derived Bregman interfacesprinted14,63–64,265–266 / PDF26,75–76,277–278
Derived library result

Ordered Bregman algebra and a derived proximal step

Source context at printed14,63–64,265–266 / PDF26,75–76,277–278 ↗
Locally compiled derived Bregman interfacesThese 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown.

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.

Model
Static supplied minimum and actual derivative; no temporal or probabilistic model.
Assumptions
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. 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.
Algorithm parameters
Positive eta and every comparator in the same V. No horizon, diameter or stochastic parameter.
Regret notion
One current-loss comparison with both signed residuals; no cumulative regret conclusion.
Guarantee
Differentiate the penalty h(z)=eta^(-1) B_psi(z;x) at p. Its derivative is eta^(-1)(Dpsi(p)-Dpsi(x)). The shared convex_minimizer_comparison uses the supplied feasible minimum and convexity of f to give f(p)-f(u)<=Dh(p)[u-p]. Multiply by positive eta. Apply three_point_identity with (p,x,u), then rearrange to retain both subtracted divergences. The derivative at x remains in the frozen interface for source instantiation, although the proof clears it: the fixed linear map Dpsi(x) is already differentiable as a function of z. Two illustrative tests construct their minimizing conditions. For psi(z)=z^4/4+z^2/2 and f(z)=|z| on R, eta=1, x=1/2 and p=0, the ordered divergences are B(1/2;0)=9/64 and B(0;1/2)=11/64. The potential is strictly convex and the loss is not differentiable at zero. The comparison at u=1/2 gives -1/2<=-5/16. For the globally strictly convex potential psi(z)=z^2/2 on R, again with f(z)=|z| and eta=1, take V=[0,1], x=-1 outside V and boundary minimizer p=0, with objective minimum value 1/2; B(0;-1)=1/2 and the comparison at u=1/2 gives -1/2<=1/2. Each full test retains its universal comparison and transports that comparison into its final numerical inequality. Both use the public gradient conversion. These are concrete instances, not a general attainment theorem or an algorithm construction. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. In the two real-loss examples the minimizer is p=0, whereas the objective minimum values are 11/64 and 1/2. In the second example x=-1 is the center outside V=[0,1]; the value 1/2 is not the outside point.
Derived mathematical statement. Differentiate the penalty h(z)=eta^(-1) B_psi(z;x) at p. Its derivative is eta^(-1)(Dpsi(p)-Dpsi(x)). The shared convex_minimizer_comparison uses the supplied feasible minimum and convexity of f to give f(p)-f(u)<=Dh(p)[u-p]. Multiply by positive eta. Apply three_point_identity with (p,x,u), then rearrange to retain both subtracted divergences. The derivative at x remains in the frozen interface for source instantiation, although the proof clears it: the fixed linear map Dpsi(x) is already differentiable as a function of z. Two illustrative tests construct their minimizing conditions. For psi(z)=z^4/4+z^2/2 and f(z)=|z| on R, eta=1, x=1/2 and p=0, the ordered divergences are B(1/2;0)=9/64 and B(0;1/2)=11/64. The potential is strictly convex and the loss is not differentiable at zero. The comparison at u=1/2 gives -1/2<=-5/16. For the globally strictly convex potential psi(z)=z^2/2 on R, again with f(z)=|z| and eta=1, take V=[0,1], x=-1 outside V and boundary minimizer p=0, with objective minimum value 1/2; B(0;-1)=1/2 and the comparison at u=1/2 gives -1/2<=1/2. Each full test retains its universal comparison and transports that comparison into its final numerical inequality. Both use the public gradient conversion. These are concrete instances, not a general attainment theorem or an algorithm construction. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. In the two real-loss examples the minimizer is p=0, whereas the objective minimum values are 11/64 and 1/2. In the second example x=-1 is the center outside V=[0,1]; the value 1/2 is not the outside point.

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.

Derived library resultExtended losses: feasible convexity, minimum transfer and one stepThree locally compiled derived extended-loss bridgesprinted 16–17,63–64,265–266 / PDF 28–29,75–76,277–278
Derived library result

Extended losses: feasible convexity, minimum transfer and one step

Source context at printed 16–17,63–64,265–266 / PDF 28–29,75–76,277–278 ↗
Three locally compiled derived extended-loss bridgesThese 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown.

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).

Model
Static supplied minimum with ambient extended loss; no temporal or probabilistic model.
Assumptions
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. Proper means f never equals negative infinity and equals a real value at at least one ambient point. A global source subgradient g at z satisfies f(z)+<g,y-z><=f(y) for every ambient y, including points outside V. Combining this inequality with the finite witness excludes positive infinity at z; properness excludes negative infinity. 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). 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.
Algorithm parameters
Minimum equivalence permits every real eta, including zero and negative values with total inverse. The signed comparison requires eta>0. Each comparator belongs to V; x may lie outside V and the finite-loss domain.
Regret notion
One finite loss difference with both signed residuals; no cumulative regret claim.
Guarantee
First use subgradient_point_finite and properness to write f(z) as the real embedding of f_fin(z) at every feasible z. For a,b>=0 with a+b=1, take z=a*x+b*y in V and select a global support at z. Its inequalities at x and y become real inequalities. Multiply by a and b and add. The inner-product term cancels because a*(x-z)+b*(y-z)=0, leaving f_fin(z)<=a*f_fin(x)+b*f_fin(y). On V, the penalized EReal objective F is exactly the real embedding of f_fin(z)+eta^(-1)B_psi(z;x), so F is finite there. Apply minOn_finitePart_iff to F with the supplied membership p in V. Rewrite F.toReal at p and each feasible competitor to obtain both implications. Obtain feasible finiteness from the global supports and properness. Use finitePart_convex_of_subdifferentiable for convexity of f_fin on V, and proximal_finitePart_minimizer_iff for the actual real penalized minimum. Apply the shared real-valued proximal_one_step with the same V, psi, positive eta, center x, minimizer p and comparator u. Both subtracted divergences retain their ordered arguments. Two complete test examples use eta=1 and set the loss to positive infinity outside the indicated interval. On V=[-1,1], f(z)=|z| and psi(z)=z^4/4+z^2/2 give minimizer p=0 at center x=1/2, with objective minimum value 11/64. The potential is globally strictly convex, the loss is nondifferentiable at zero, and B(1/2;0)=9/64 while B(0;1/2)=11/64. On V=[0,1], f(z)=z and the globally strictly convex psi(z)=z^2/2 give boundary minimizer p=0 and objective minimum value 1/2 at center x=-1. This center is outside V and outside the finite-loss domain. Both examples prove properness, global supports on V, feasible finite-part convexity, failure of global finite-part convexity, the actual EReal minimum and the universal one-step comparison. At u=1/2 their final inequalities are -1/2<=-5/16 and -1/2<=1/2, obtained by equality transport of the extended one-step comparison. These examples do not prove general attainment or construct a trajectory. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown.
Derived mathematical statement. First use subgradient_point_finite and properness to write f(z) as the real embedding of f_fin(z) at every feasible z. For a,b>=0 with a+b=1, take z=a*x+b*y in V and select a global support at z. Its inequalities at x and y become real inequalities. Multiply by a and b and add. The inner-product term cancels because a*(x-z)+b*(y-z)=0, leaving f_fin(z)<=a*f_fin(x)+b*f_fin(y). On V, the penalized EReal objective F is exactly the real embedding of f_fin(z)+eta^(-1)B_psi(z;x), so F is finite there. Apply minOn_finitePart_iff to F with the supplied membership p in V. Rewrite F.toReal at p and each feasible competitor to obtain both implications. Obtain feasible finiteness from the global supports and properness. Use finitePart_convex_of_subdifferentiable for convexity of f_fin on V, and proximal_finitePart_minimizer_iff for the actual real penalized minimum. Apply the shared real-valued proximal_one_step with the same V, psi, positive eta, center x, minimizer p and comparator u. Both subtracted divergences retain their ordered arguments. Two complete test examples use eta=1 and set the loss to positive infinity outside the indicated interval. On V=[-1,1], f(z)=|z| and psi(z)=z^4/4+z^2/2 give minimizer p=0 at center x=1/2, with objective minimum value 11/64. The potential is globally strictly convex, the loss is nondifferentiable at zero, and B(1/2;0)=9/64 while B(0;1/2)=11/64. On V=[0,1], f(z)=z and the globally strictly convex psi(z)=z^2/2 give boundary minimizer p=0 and objective minimum value 1/2 at center x=-1. This center is outside V and outside the finite-loss domain. Both examples prove properness, global supports on V, feasible finite-part convexity, failure of global finite-part convexity, the actual EReal minimum and the universal one-step comparison. At u=1/2 their final inequalities are -1/2<=-5/16 and -1/2<=1/2, obtained by equality transport of the extended one-step comparison. These examples do not prove general attainment or construct a trajectory. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown.

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.

Derived library resultChapter 2 prescient dependency: actual partial updates and interior-base localityEight derived lemmas and two partial definitionsprinted 14,16-17,63-64,265-266 / PDF 26,28-29,75-76,277-278
Derived library result

Chapter 2 prescient dependency: actual partial updates and interior-base locality

Source context at printed 14,16-17,63-64,265-266 / PDF 26,28-29,75-76,277-278 ↗
Eight derived lemmas and two partial definitionsEight 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.

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.

Model
Deterministic noncomputable partial recursion with known-current-whole-loss feedback.
Assumptions
The generic definitions use a real normed space, arbitrary V, arbitrary real stepsizes (including zero and negative with total inverse), and arbitrary EReal losses. They allow infeasible initial centers and infinite objective minima. Classical choice is a mathematical selector, with no executable optimizer or measurable-selection claim. None means absence of a feasible attained minimum, not nonuniqueness, timeout, or failure of an interior test. 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. 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.
Algorithm parameters
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.
Regret notion
One actual-transition loss difference with both signed residuals; two concrete finite-run examples do not establish general cumulative regret.
Guarantee
Success specifies a feasible minimum, failure is exact nonattainment, prefix equality fixes the consumed state, and failure is absorbing. Finite completion assumes attainment only at every actually reached predecessor below the horizon. Initialization is always some x0. Four complete tests retain distinct roles. On [-1,1], restricted absolute then restricted affine -5z/8 losses and psi=z^4/4+z^2/2 yield actual states 1/2,0,1/2, movements 11/64 and 9/64, and the two-round comparison -1/2<=-5/16. A restricted linear loss on [0,1] starts at -1 outside feasibility and loss domain, selects boundary 0 and yields -1/2<=1/2. Both numeric conclusions consume the actual-transition bound. On (-infinity,0], f(z)=z and psi=exp give objective exp(z)-1 with no attained minimum, despite closed strict convex differentiable regularization; every positive partial state is none. Finally z^2+z and z^2+abs(z) agree on [0,infinity), with divergence 1 at target2/base1 but total-formula values4 and6 at boundarybase0. The second function is nondifferentiable there, so those boundary values are diagnostics. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Derived mathematical statement. The guard supplies a feasible actual minimum when it succeeds. Option.bind exposes the actual predecessor; equality of returned values identifies that predecessor with x. The accepted extended-loss proximal theorem then gives the signed comparison. Local extension equality follows from neighborhood equality at an interior base. Four complete tests retain distinct roles. On [-1,1], restricted absolute then restricted affine -5z/8 losses and psi=z^4/4+z^2/2 yield actual states 1/2,0,1/2, movements 11/64 and 9/64, and the two-round comparison -1/2<=-5/16. A restricted linear loss on [0,1] starts at -1 outside feasibility and loss domain, selects boundary 0 and yields -1/2<=1/2. Both numeric conclusions consume the actual-transition bound. On (-infinity,0], f(z)=z and psi=exp give objective exp(z)-1 with no attained minimum, despite closed strict convex differentiable regularization; every positive partial state is none. Finally z^2+z and z^2+abs(z) agree on [0,infinity), with divergence 1 at target2/base1 but total-formula values4 and6 at boundarybase0. The second function is nondifferentiable there, so those boundary values are diagnostics.

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.

Derived library resultChapter 2 prescient dependency: same-run cumulative sharp and printed boundsFive conditional same-run cumulative boundsprinted pp.14,16-17,63-64,265-266 / PDF pp.26,28-29,75-76,277-278
Derived library result

Chapter 2 prescient dependency: same-run cumulative sharp and printed bounds

Source context at printed pp.14,16-17,63-64,265-266 / PDF pp.26,28-29,75-76,277-278 ↗
Five conditional same-run cumulative boundsThese 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Full acceptance of Algorithm 15.8, Theorem 15.30, the chapter, the book and the proposed source corrections remains open.

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.

Model
Deterministic current-whole-loss recursion, conditional on the particular selected run succeeding and staying interior.
Assumptions
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.
Algorithm parameters
Shared sum: any T>=0 and arbitrary positive played steps, no monotonicity. Fixed forms: any T>=0 with a positive constant step. Only variable forms require T>0 and eta_(t+1)<=eta_t for t+1<T. Their cap/maximum is over x0,...,x_(T-1), excluding x_T. Sharp forms do not require psi convex or V subset X, and an arbitrary cap M need not be nonnegative. Final corollaries add V subset X and strict convexity of psi on X.
Regret notion
Sum over t<T of loss_t(x_(t+1))-loss_t(u), using finite EReal.toReal values. Sharp bounds retain both negative terminal and movement residuals. Final corollaries retain every negative movement term.
Guarantee
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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Full acceptance of Algorithm 15.8, Theorem 15.30, the chapter, the book and the proposed source corrections remains open.
Derived mathematical statement. Apply the accepted actual-transition bound at every played step, divide by its positive stepsize and sum. The fixed case telescopes directly and retains the terminal comparator and all movement residuals. The variable case uses the canonical weighted-potential telescope: nonnegative inverse-step increments permit a cap on previous states only. The two final corollaries prove terminal divergence nonnegative from strict convexity on X and discard only its negative term. Two complete finite diagnostics use V=[-1,1] and psi(z)=z^4/4+z^2/2. Restricted absolute loss followed by restricted affine -5z/8 at steps1,1 gives the actual states1/2,0,1/2, movements11/64 and9/64, terminal divergence5/8 at u=-1/2, and sharp/printed values -9/8<=-5/16 and -9/8<=5/16. Steps1,1/2 instead use the different second loss -5z/4 and prove the actual new unique penalized minimum. Weighted movements are29/64; previous-state maxima are5/8 at u=-1/2 and9/64 at u=1/2, whose initial divergence is0. The sharp/printed instances are -7/4<=-29/64 and -1/2<=-11/64. These values distinguish the previous-state maximum from the initial divergence; this is an endpoint diagnostic, not a counterexample to every initial-only bound. The theorem retains the previous-state maximum. These are complete 16/22-conjunct tests, not extra numbered source theorems. The one-step library dependency uses a feasible-segment comparison that differentiates only the penalty; it bypasses the source selected-subgradient assertion without proving it, so G-optimality remains open.

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.

Derived library resultChapter 2 prescient dependency: source hypotheses and the actual valid runConditional source-to-recursion transportprinted14,16-17,63,265-266 / PDF26,28-29,75,277-278
Derived library result

Chapter 2 prescient dependency: source hypotheses and the actual valid run

Source context at printed14,16-17,63,265-266 / PDF26,28-29,75,277-278 ↗
Conditional source-to-recursion transportThese 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows.

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.

Model
Deterministic prescient current-whole-loss access, conditional on supplied feasible interior argmin updates.
Assumptions
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.
Algorithm parameters
Fixed: T>=0 and positive constant eta. Variable: T>0, positive played rates with eta_(t+1)<=eta_t only for t+1<T. Both use one comparator u in V and post-update losses. The variable maximum includes x0 and excludes x_T.
Regret notion
Sum over t<T of loss_t(x_(t+1))-loss_t(u). Source-facing formulas retain all negative movement penalties and omit only the nonpositive terminal comparator term. Feasible losses are finite.
Guarantee
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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows. 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.
Derived mathematical statement. Choose a finite feasible witness for properness. Global supports imply convex finite loss, so the positive Bregman penalty makes any supplied attained minimizer unique. This identifies each supplied argmin step and the whole finite prefix with the canonical recursion. The accepted signed one-step and weighted-telescope chain then yields both bounds. The two complete diagnostics use V=[-1,1], psi(z)=z^4/4+z^2/2 and the states 1/2,0,1/2. With restricted absolute loss followed by restricted affine loss -5z/8 and steps 1,1, the movements are 11/64 and 9/64 and the new fixed bound gives -9/8<=5/16. With second loss -5z/4 and steps 1,1/2, weighted movements are 29/64, and previous-state maxima are 5/8 at u=-1/2 and 9/64 at u=1/2. The new variable bound gives -1/2<=-11/64. Every original 8/6 conjunct is retained, and both numeric proof branches actually use their new source endpoint.

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.

Source theorem · faithful restatementChapter2 required dependency: Theorem5.4 unbounded decreasing-step OSD failureTheorem 5.4 and coefficient supplementsprinted14,52-53 / PDF26,64-65
Source theorem · faithful restatement

Chapter2 required dependency: Theorem5.4 unbounded decreasing-step OSD failure

Original at printed14,52-53 / PDF26,64-65 ↗
Theorem 5.4 and coefficient supplementsThe 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.

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.

Model
The fixed causal unprojected OSD recursion on the full space, scoring each loss before its update.
Assumptions
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.
Algorithm parameters
0<alpha<1; natural T>=2/((1-alpha)*phi(alpha)); zero initial point and zero comparator; positive finite dimension. The witness may depend on the horizon.
Regret notion
R_T(0)=sum_{t<T}(loss_t(X_t)-loss_t(0)) >= phi(alpha)*T^(2-alpha)/2. The source coefficient lies in (0,1-log(2)) and has left limit 1-log(2)>=3/10.
Guarantee
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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Source mathematical statement. Unroll the affine updates and sum the pre-update losses. The exact regret identity retains the odd-horizon parity term. Integral comparison bounds regret below by phi(alpha)*T^(2-alpha)-T^(1-alpha)/(1-alpha). The exact threshold absorbs the negative correction into half the leading term. A unit vector lifts the scalar witness to the source space. The library also proves 0<phi(alpha)<1-log(2) and its left limit 1-log(2)>=3/10. At alpha=1/2, the seven-part scalar T=2 diagnostic checks steps 1 and 2^(-1/2), their positivity and decrease, states 0,1,1-2^(-1/2), and pre-update regret 1. This small horizon tests the identity rather than the lower-bound threshold. The nine-part T=64 diagnostic in R^2 checks the unit direction, first update, regularity of all played losses, phi(1/2)>=1/15, the exact threshold, the source-form bound, regret>=256/15 and regret>17, and the fully applied existential theorem. The T=2 and T=64 loss streams have different switch times. The final existential does not itself identify its witness with the earlier explicit test stream.

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.

Derived library resultGeneric strict-past FTL: conditional minimizer and feasible initializationConditional FTL selector and its library propertiesprinted11-12 / PDF23-24
Derived library result

Generic strict-past FTL: conditional minimizer and feasible initialization

Source context at printed11-12 / PDF23-24 ↗
Conditional FTL selector and its library propertiesOne 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. Seven required forward containers and whole-chapter reconciliation remain open. Chapter 2 stays partial and its proof denominator remains unknown. 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.

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.

Model
Fixed classical partial FTL selector, with an explicitly supplied feasible initial action.
Assumptions
Arbitrary type X, subset V and ambient real-valued losses; initial:V. No convexity, closedness, compactness, uniqueness or attainment is assumed by the definitions or conditional soundness statements.
Algorithm parameters
Zero-based t; only indices s<t contribute. Compare the same initial action and fixed choice convention in prefix equality.
Regret notion
No regret guarantee is proved by this package.
Guarantee
Success returns a feasible minimum of the full strict-past sum. Failure is exactly nonattainment. Equal earlier losses on V give equal predictions. A uniquely attained minimum identifies the chosen point. The eight complete tests check the quadratic predictions 3/4,1/4,1/2 with feasible prefix minima; current/future independence; off-domain invariance; tied feasible minima without naming the chosen endpoint; an empty domain; an empty history and two different supplied initial actions; affine nonattainment on the nonempty closed convex real line; and a separately queried longer prefix with an attained square minimum. The last example gives no playable action at the failed prefix.
Derived mathematical statement. At index zero return the supplied feasible point. At a positive index select from the full feasible minimizer set of the strict-past sum, returning none exactly when it is empty.

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.

Source theorem · faithful restatementLemma 4.13. A right-endpoint sum is bounded by its integralLemma 4.13printed p. 40 / PDF p. 52
Source theorem · faithful restatement

Lemma 4.13. A right-endpoint sum is bounded by its integral

Original at printed p. 40 / PDF p. 52 ↗
Lemma 4.13The inverse-square-root energy estimate is available. 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.

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.

Model
Deterministic finite-increment right-endpoint integration comparison.
Assumptions
Nonnegative initial offset and played increments; f continuous, nonincreasing and nonnegative on the nonnegative half-line.
Algorithm parameters
Source increments1..T; Lean increments0..T-1; initial offset kept separate. Empty horizon and zero increments allowed.
Regret notion
The conclusion compares a finite sum with an integral.
Guarantee
For every permitted offset, finite horizon, increment sequence and function, the sum of the right-endpoint rectangles is at most the integral over the full cumulative interval.
Source mathematical 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.

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.

Source theorem · faithful restatementCumulative feedback energy in adaptive OSDEnergy estimateprinted p. 40 / PDF p. 52
Source theorem · faithful restatement

Cumulative feedback energy in adaptive OSD

Original at printed p. 40 / PDF p. 52 ↗
Energy estimateThe 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.

Scale the normalized sum by half the diameter bound D. The result is at most D times the square root of total feedback energy.

Model
A deterministic finite feedback sequence in the energy estimate for adaptive OSD.
Assumptions
The book takes Euclidean norms, a diameter bound D and skips zero-gradient rounds. The analytic Lean statement permits a normed additive commutative group and any nonnegative D.
Algorithm parameters
The denominator at round t includes all squared norms through t. A zero prefix contributes zero. Empty horizons and D=0 are valid boundary cases of the formal estimate.
Regret notion
Summing the normalized squared feedback norms bounds the energy term in the regret of the adaptive trajectory.
Guarantee
For every allowed feedback stream, finite horizon and nonnegative D, the scaled normalized sum is at most D times the square root of cumulative squared feedback norms.
Source mathematical statement. The scaled normalized sum is bounded by D times the square root of the final sum of squared feedback norms.

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.

Derived library resultWeighted distances in Theorem 2.13 and the calculation before equation (4.4)General-scale terminal-distance boundprinted pp. 13–14 and 39–40 / PDF pp. 25–26 and 51–52
Derived library result

Weighted distances in Theorem 2.13 and the calculation before equation (4.4)

Source context at printed pp. 13–14 and 39–40 / PDF pp. 25–26 and 51–52 ↗
General-scale terminal-distance boundWith no rounds, regret is zero. For D = 0 the feasible set is a singleton and regret is zero, even with positive energy. With zero realized energy and D positive, each selected support is zero and regret is at most zero. Zero feedback always keeps the play fixed. The step formula below uses a positive energy denominator; the Lean rate is totalized to zero when the prefix energy is zero.

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.

Model
Deterministic actual causal full-information projected adaptive subgradient run.
Assumptions
Feasible initial point; finite-dimensional real inner-product space; nonempty closed convex domain of diameter at most D>=0; finite horizon; proper losses subdifferentiable on the domain; chosen supports legal at actual played points. Source specializations additionally retain convexity. General alpha endpoint requires alpha>0 and is support-sufficient without an extra convexity premise. For each t before T the extended-real loss is proper and has a global supporting subgradient at every feasible point. The predictions and comparator are feasible, so all evaluated losses are finite. The comparator is fixed. The two source specializations also assume convex losses. Fix the policy before the run. At time t the prediction uses only the complete earlier loss functions. The selector then receives t, those earlier functions, the play history through the new prediction, and the current loss. It must return a global supporting subgradient at the actual prediction. A uniform oracle satisfies this requirement on every admissible history. The canonical selector uses mathematical choice.
Algorithm parameters
Rounds 1 through T in the book correspond to indices 0 through T − 1 in Lean. The rate uses energy through the current feedback. The terminal play has Lean index T. The expression for the stepsize uses positive cumulative energy, and zero feedback leaves the play fixed for every prefix.
Regret notion
For positive scale and D > 0, the displayed general bound retains the final squared-distance deduction. The abstract weighted sum uses a nonempty horizon, signed potentials bounded above at played indices, and nonnegative nondecreasing weights. A zero diameter forces regret zero on every horizon. An empty horizon has regret zero for every diameter. If final energy is zero then regret is at most zero.
Guarantee
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.
Derived mathematical 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.

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.

Source theorem · faithful restatementEquation (4.4). Regret for the scale-one runScale-one regret boundprinted p. 40 / PDF p. 52
Source theorem · faithful restatement

Equation (4.4). Regret for the scale-one run

Original at printed p. 40 / PDF p. 52 ↗
Scale-one regret boundFix the policy before the run. At time t the prediction uses only the complete earlier loss functions. The selector then receives t, those earlier functions, the play history through the new prediction, and the current loss. It must return a global supporting subgradient at the actual prediction. A uniform oracle satisfies this requirement on every admissible history. The canonical selector uses mathematical choice.

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.

Model
Deterministic actual causal full-information projected adaptive subgradient run.
Assumptions
Feasible initial point; finite-dimensional real inner-product space; nonempty closed convex domain of diameter at most D>=0; finite horizon; proper losses subdifferentiable on the domain; chosen supports legal at actual played points. Source specializations additionally retain convexity. General alpha endpoint requires alpha>0 and is support-sufficient without an extra convexity premise.
Algorithm parameters
Rounds 1 through T in the book correspond to indices 0 through T − 1 in Lean. The rate uses energy through the current feedback. The terminal play has Lean index T.
Regret notion
For every comparator in the feasible domain, the actual alpha=1 projected adaptive run has regret at most (3/2)*D*sqrt(S_T), including zero energy, zero diameter and the empty horizon.
Guarantee
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.
Source mathematical 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.

BanditRLlib relationship. Equation (4.4) appears on printed page 40, following the adaptive energy calculation. Its comparator is evaluated along the scale-one trajectory.

Derived library resultTheorem 4.14. Tuned regret and the fixed-step benchmarkTuned regret and fixed-step infimumprinted p. 40 / PDF p. 52
Derived library result

Theorem 4.14. Tuned regret and the fixed-step benchmark

Source context at printed p. 40 / PDF p. 52 ↗
Tuned regret and fixed-step infimumThe regret inequality retains the printed statement. The infimum correction applies to the scalar positive-step comparison. Its energy is fixed after observing the tuned trajectory. Changing the scale can change the predictions, selected feedback and total energy. A singleton with nonzero linear feedback realizes D = 0 and S = 9. A unit interval with zero losses realizes D = 1 and S = 0. For positive D and S the unique minimizing step is D/√S. If D = S = 0, every positive step attains zero. If exactly one of D and S is positive, the infimum is zero and no positive step attains it.

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.

Model
Deterministic actual causal full-information projected adaptive subgradient run.
Assumptions
Feasible initial point; finite-dimensional real inner-product space; nonempty closed convex domain of diameter at most D>=0; finite horizon; proper losses subdifferentiable on the domain; chosen supports legal at actual played points. Source specializations additionally retain convexity. General alpha endpoint requires alpha>0 and is support-sufficient without an extra convexity premise.
Algorithm parameters
Rounds 1 through T in the book correspond to indices 0 through T − 1 in Lean. The rate uses energy through the current feedback. The terminal play has Lean index T.
Regret notion
The actual alpha=sqrt(2)/2 adaptive run satisfies R_T(u)<=D*sqrt(2*S_T). Its numerical bound equals sqrt(2) times the infimum of the fixed-energy positive-step upper-bound family. The regret inequality preserves the source regimes; the infimum display explicitly repairs unattained one-zero minima.
Guarantee
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. For positive D and S the unique minimizing step is D/√S. If D = S = 0, every positive step attains zero. If exactly one of D and S is positive, the infimum is zero and no positive step attains it.
Derived mathematical 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.

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.

Source theorem · faithful restatementTheorem 2.13 proof. Exact weighted-distance identityExact weighted-distance identityprinted p. 14 / PDF p. 26
Source theorem · faithful restatement

Theorem 2.13 proof. Exact weighted-distance identity

Original at printed p. 14 / PDF p. 26 ↗
Exact weighted-distance identityThe proof needs only the weighted scalar identity. Deterministic projected OGD and subgradient examples exercise the formula on actual iterates. Chapter 2 retains its separate source and forward obligations.

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.

Model
A finite sequence of points and a fixed comparator. Orabona uses Euclidean space. The Lean result applies to a normed additive commutative group.
Assumptions
At least one round and a positive step on each played round. The points and comparator may be chosen arbitrarily.
Algorithm parameters
Round 1 in the book is index 0 in Lean. The final iterate is x(T), and the final played step is η(T−1).
Regret notion
The weighted distance difference is one term in the proof of the OGD regret bound.
Guarantee
An exact identity with a negative terminal term and an interior correction. At one round the interior sum is empty. With a constant step it vanishes.
Source mathematical statement. Initial weighted distance minus final weighted distance, plus one half of the sum of interior squared distances times the change in reciprocal step size.

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.

Derived instantiation of source guaranteeUnbounded-domain OGD on the switching losses of Theorem 5.4OGD lower bound for the affine switching lossesprinted pp. 14, 52–53 / PDF pp. 26, 64–65
Derived instantiation of source guarantee

Unbounded-domain OGD on the switching losses of Theorem 5.4

Source context at printed pp. 14, 52–53 / PDF pp. 26, 64–65 ↗
OGD lower bound for the affine switching lossesThe source gives the OSD bound. The library transfers it to actual OGD on the same run. Seven required Chapter 2 forward containers remain open.

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.

Model
Gradient descent on the full space, initialized at zero, compared with zero. Losses are evaluated before each update.
Assumptions
A nontrivial finite-dimensional real inner-product space, an exponent strictly between zero and one, and a natural horizon satisfying the displayed threshold.
Algorithm parameters
At source round t, starting at one, take step size t raised to the power −α. The loss sequence may be chosen separately for each horizon.
Regret notion
Add up the played loss minus the loss at zero over the first T rounds.
Guarantee
There is a sequence of globally convex, differentiable, 1-Lipschitz losses on the played rounds for which OGD regret is at least half of φ(α) times T raised to the power 2−α.
Derived explicit guarantee. For each exponent 0 < α < 1 and each natural T with T ≥ 2 / ((1−α) φ(α)), there is a sequence of convex, differentiable, 1-Lipschitz losses on which OGD with steps t^(−α), starting at zero, has regret against zero of at least φ(α) T^(2−α) / 2.

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.

Natural-language and Lean side by side

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.

Mathematics ↔ Lean

Algorithm 2.1: projected OGD

Lean declarationBanditRL.OnlineGradientDescent.iterate

Compiled

Plain-English statement. The next iterate uses the current gradient after the current prediction is output.

Mathematical reading. The next iterate uses the current gradient after the current prediction is output.
Intuition
The next iterate uses the current gradient after the current prediction is output.
Why it is needed
This supplies the next interface in the same source-aligned projected OGD chain.
Place in the proof
Orabona v10 Chapter 2 fixed-step package; not the whole chapter.
Proof and Lean reading notes
Proof idea
Recursion from the fixed initial point; iterate_prefix proves strict-prefix causality.
Lean reading notes
Real Hilbert-space statements specialize to finite-dimensional Euclidean space. Lean time 0 is source round 1. No probabilistic regret claim.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
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 : ℕ) : ℝ
Mathematics ↔ Lean

Lemma 2.12 with source regularity

Lean declarationBanditRL.OnlineGradientDescentSource.lemma_2_12

Compiled

Plain-English statement. Both source one-step inequalities hold for the same actual projected update.

Mathematical reading. Both source one-step inequalities hold for the same actual projected update.
Intuition
Both source one-step inequalities hold for the same actual projected update.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Proved first-order bound plus genuine affine specialization of the retained quadratic lemma. No assumed one-step bound.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.first_order, BanditRL.OnlineGradientDescentSource.linear_regular, BanditRL.OnlineGradientDescentSource.gradient_linear, BanditRL.OnlineGradientDescent.lemma_2_12, BanditRL.OnlineGradientDescent.step
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Theorem 2.13 fixed step with source regularity

Lean declarationBanditRL.OnlineGradientDescentSource.theorem_2_13_fixed

Compiled

Plain-English statement. No bounded-domain premise; the negative terminal distance is retained.

Mathematical reading. No bounded-domain premise; the negative terminal distance is retained.
Intuition
No bounded-domain premise; the negative terminal distance is retained.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Sum the actual same-run one-step chain by induction, telescope and divide by eta>0. T=0 is a canceling extension.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.lemma_2_12, BanditRL.OnlineGradientDescent.iterate_mem, BanditRL.OnlineGradientDescent.regret
Exact Lean statement
theorem 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 * η)
Mathematics ↔ Lean

Equation (2.1) with arbitrary-open regularity

Lean declarationBanditRL.OnlineGradientDescentSource.equation_2_1

Compiled

Plain-English statement. One prescribed tuned trajectory satisfies DG sqrtT for every feasible comparator.

Mathematical reading. One prescribed tuned trajectory satisfies DG sqrtT for every feasible comparator.
Intuition
One prescribed tuned trajectory satisfies DG sqrtT for every feasible comparator.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Positive D,G,T, pairwise domain distances<=D, actual tuned-run gradient norms<=G. No comparator-dependent rerun or anytime bound.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.equation_2_1_distance
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Choose the affine proximal minimizer before playing

Lean declarationBanditRL.OnlinePrescientLinear.advance_proximal_minimizer

Compiled

Plain-English statement. The selected projection attains the minimum of the current affine loss plus a quadratic movement penalty over V.

Mathematical reading. The selected projection attains the minimum of the current affine loss plus a quadratic movement penalty over V.
Intuition
A projected gradient step is the exact proximal update for an affine loss.
Why it is needed
Understand the affine prescient update and its signed regret on the actual generated trajectory.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), Chapter 2 printed page 14 and Section 15.5.1, Algorithm 15.8/Theorem 15.30, printed pages 265–266 (PDF 26, 277–278). Source-facing algorithm characterization for affine loss and quadratic potential.
Proof and Lean reading notes
Proof idea
Use the one-step inequality and add ||p-x|| squared/(2 eta) to both sides. Rewrite ||x-u|| as ||u-x||, and drop the nonnegative distance ||p-u|| squared/(2 eta). Expand <g,p-u> and add the same arbitrary offset b. Projection supplies feasibility.
Lean reading notes
E is a complete real inner-product space and V is a nonempty closed convex subset. Write P_V for the unique nearest-point projection. eta>0 and b is any real offset. The center x need not be feasible. This theorem proves attainment and the minimizing inequality, not a separately stated uniqueness theorem for the objective. The reused projection itself has an existence-and-uniqueness theorem. 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.
Teaching dependencies
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlineGradientDescent.project, BanditRL.OnlineGradientDescent.project_spec, BanditRL.OnlinePrescientLinear.advance, BanditRL.OnlinePrescientLinear.advance_sharp_bound
Exact Lean statement
theorem 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 * η)
Mathematics ↔ Lean

Telescope while retaining both negative residuals

Lean declarationBanditRL.OnlinePrescientLinear.regret_sharp_bound

Compiled

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.

Mathematical reading. 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.
Intuition
Successive comparator-distance terms cancel, leaving every movement penalty.
Why it is needed
Understand the affine prescient update and its signed regret on the actual generated trajectory.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), Chapter 2 printed page 14 and Section 15.5.1, Algorithm 15.8/Theorem 15.30, printed pages 265–266 (PDF 26, 277–278). Source-facing derived constant-step affine/quadratic endpoint with the sharp terminal residual.
Proof and Lean reading notes
Proof idea
Apply advance_sharp_bound to z_t and g_t on the same trajectory. Multiply by 2 eta and induct on T. The previous terminal distance cancels the next initial distance, while the new movement square is subtracted. Divide by 2 eta. At T=0 both sums are empty and z_T=x_0, so the sharp inequality is 0<=0.
Lean reading notes
E is a complete real inner-product space and V is a nonempty closed convex subset. Write P_V for the unique nearest-point projection. The initial center is arbitrary in E; u belongs to V. Neither bounded V nor bounded g is assumed. The terminal is iterate T, equal to the last played prediction when T>0. T=0 and complete Hilbert spaces are explicit extensions of the source presentation. 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.
Teaching dependencies
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlinePrescientLinear.advance, BanditRL.OnlinePrescientLinear.advance_sharp_bound, BanditRL.OnlinePrescientLinear.iterate, BanditRL.OnlinePrescientLinear.prediction, BanditRL.OnlinePrescientLinear.regret
Exact Lean statement
theorem 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 * η)
Explore 87 additional Lean teaching notes
Mathematics ↔ Lean

A unique nearest point exists before selection

Lean declarationBanditRL.OnlineGradientDescent.project_existsUnique

Compiled

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.

Mathematical reading. Every nonempty closed convex subset of a complete real inner-product space has exactly one point minimizing distance from any ambient point.
Intuition
Existence supplies a minimizer. Convexity makes two minimizers satisfy opposite variational inequalities, forcing their squared separation to vanish.
Why it is needed
Algorithm 2.1 and Proposition 2.11 use a well-defined unique Euclidean projection. This theorem establishes existence and uniqueness before the existing choice-based definition.
Place in the proof
Well-definedness obligation for Orabona v10, printed p.12 / PDF p.24. The proof is library-derived; it is not an additional numbered source theorem.
Proof and Lean reading notes
Proof idea
Take a minimizer from Mathlib. For two minimizing points p and q, the variational characterization gives <z-p,q-p> <= 0 and <z-q,p-q> <= 0. Adding these inequalities gives ||q-p||^2 <= 0, hence q=p.
Lean reading notes
The source finite-dimensional Euclidean setting is generalized to a complete real inner-product space. Nonempty, closed and convex are explicit Domain fields; no boundedness or compactness is added. project_spec characterizes the unchanged selected projection using exactly this minimizer predicate. No executable solver, arbitrary Banach-space projection or nonexpansiveness claim. The proof reuses Mathlib exists_norm_eq_iInf_of_complete_convex and norm_eq_iInf_iff_real_inner_le_zero; these upstream dependencies are not local declaration nodes.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem project_existsUnique (V : Domain E) (z : E) : ∃! p : E, p ∈ V.carrier ∧ ‖z - p‖ = ⨅ w : V.carrier, ‖z - w‖
Mathematics ↔ Lean

Proposition 2.11: projection decreases distance

Lean declarationBanditRL.OnlineGradientDescent.proposition_2_11

Compiled

Plain-English statement. Projection cannot increase distance to a feasible comparator.

Mathematical reading. Projection cannot increase distance to a feasible comparator.
Intuition
Projection cannot increase distance to a feasible comparator.
Why it is needed
This supplies the next interface in the same source-aligned projected OGD chain.
Place in the proof
Orabona v10 Chapter 2 fixed-step package; not the whole chapter.
Proof and Lean reading notes
Proof idea
Use the Hilbert projection variational inequality and expand squared distance.
Lean reading notes
Real Hilbert-space statements specialize to finite-dimensional Euclidean space. Lean time 0 is source round 1. No probabilistic regret claim.
Teaching dependencies
BanditRL.OnlineGradientDescent.project_spec
Exact Lean statement
theorem proposition_2_11 (V : Domain E) (z u : E) (hu : u ∈ V.carrier) : ‖project V z - u‖ ≤ ‖z - u‖
Mathematics ↔ Lean

Lemma 2.12: one-step regret (historical stronger interface)

Lean declarationBanditRL.OnlineGradientDescent.lemma_2_12

Compiled

Plain-English statement. Convexity linearizes loss; projection turns that inner product into a potential decrease plus gradient energy.

Mathematical reading. Convexity linearizes loss; projection turns that inner product into a potential decrease plus gradient energy.
Intuition
Convexity linearizes loss; projection turns that inner product into a potential decrease plus gradient energy.
Why it is needed
This supplies the next interface in the same source-aligned projected OGD chain.
Place in the proof
Historical stronger-assumption interface in the same shared library; source cards use the repaired namespace.
Proof and Lean reading notes
Proof idea
Derive first_order through a differentiable convex affine restriction, then expand the actual projected update.
Lean reading notes
Real Hilbert-space statements specialize to finite-dimensional Euclidean space. Lean time 0 is source round 1. No probabilistic regret claim. Uses RegularLoss with a convex open differentiability neighborhood. The repaired arbitrary-open source endpoint is BanditRL.OnlineGradientDescentSource.lemma_2_12. Old links and true proofs are retained.
Teaching dependencies
BanditRL.OnlineGradientDescent.first_order, BanditRL.OnlineGradientDescent.proposition_2_11, BanditRL.OnlineGradientDescent.step
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Theorem 2.13: fixed step only (historical stronger interface)

Lean declarationBanditRL.OnlineGradientDescent.theorem_2_13_fixed

Compiled

Plain-English statement. Cumulative comparator regret retains the negative terminal squared distance, with no bounded-domain premise.

Mathematical reading. Cumulative comparator regret retains the negative terminal squared distance, with no bounded-domain premise.
Intuition
Cumulative comparator regret retains the negative terminal squared distance, with no bounded-domain premise.
Why it is needed
This supplies the next interface in the same source-aligned projected OGD chain.
Place in the proof
Historical stronger-assumption interface in the same shared library; source cards use the repaired namespace.
Proof and Lean reading notes
Proof idea
Sum the generated trajectory one-step inequality and telescope; divide by the positive fixed step.
Lean reading notes
Real Hilbert-space statements specialize to finite-dimensional Euclidean space. Lean time 0 is source round 1. No probabilistic regret claim. Uses RegularLoss with a convex open differentiability neighborhood. The repaired arbitrary-open source endpoint is BanditRL.OnlineGradientDescentSource.theorem_2_13_fixed. Old links and true proofs are retained.
Teaching dependencies
BanditRL.OnlineGradientDescent.lemma_2_12, BanditRL.OnlineGradientDescent.iterate_mem, BanditRL.OnlineGradientDescent.regret
Exact Lean statement
theorem 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 * η)
Mathematics ↔ Lean

Equation (2.1): horizon tuning (historical stronger interface)

Lean declarationBanditRL.OnlineGradientDescent.equation_2_1

Compiled

Plain-English statement. A priori diameter and gradient bounds yield the source square-root regret rate.

Mathematical reading. A priori diameter and gradient bounds yield the source square-root regret rate.
Intuition
A priori diameter and gradient bounds yield the source square-root regret rate.
Why it is needed
This supplies the next interface in the same source-aligned projected OGD chain.
Place in the proof
Historical stronger-assumption interface in the same shared library; source cards use the repaired namespace.
Proof and Lean reading notes
Proof idea
Bound initial distance and gradient energy, then simplify the positive horizon-tuned step.
Lean reading notes
Real Hilbert-space statements specialize to finite-dimensional Euclidean space. Lean time 0 is source round 1. No probabilistic regret claim. Uses RegularLoss with a convex open differentiability neighborhood. The repaired arbitrary-open source endpoint is BanditRL.OnlineGradientDescentSource.equation_2_1. Old links and true proofs are retained.
Teaching dependencies
BanditRL.OnlineGradientDescent.theorem_2_13_fixed, BanditRL.OnlineGradientDescent.equation_2_1_distance
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Feasible-point loss regularity

Lean declarationBanditRL.OnlineGradientDescentSource.FeasibleRegularLoss

Compiled

Plain-English statement. Convexity on V and ambient derivatives at every feasible point.

Mathematical reading. Convexity on V and ambient derivatives at every feasible point.
Intuition
Convexity on V and ambient derivatives at every feasible point.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
This is the weaker library interface; boundary/thin-domain points are included.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def FeasibleRegularLoss (V : Domain E) (f : E → ℝ) : Prop
Mathematics ↔ Lean

Arbitrary-open source regularity

Lean declarationBanditRL.OnlineGradientDescentSource.SourceRegularLoss

Compiled

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.

Mathematical reading. 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.
Intuition
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.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
A supplied ambient extension; not an extension-existence or extension-independence theorem.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def SourceRegularLoss (V : Domain E) (f : E → ℝ) : Prop
Mathematics ↔ Lean

Source hypothesis supplies the weaker interface

Lean declarationBanditRL.OnlineGradientDescentSource.source_to_feasible

Compiled

Plain-English statement. Every point of V lies in the open differentiability neighborhood.

Mathematical reading. Every point of V lies in the open differentiability neighborhood.
Intuition
Every point of V lies in the open differentiability neighborhood.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Openness supplies a neighborhood at each feasible point; DifferentiableOn gives the ambient derivative.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.SourceRegularLoss, BanditRL.OnlineGradientDescentSource.FeasibleRegularLoss
Exact Lean statement
theorem source_to_feasible (V : Domain E) (f : E → ℝ) (hf : SourceRegularLoss V f) : FeasibleRegularLoss V f
Mathematics ↔ Lean

Compatibility with the historical predicate

Lean declarationBanditRL.OnlineGradientDescentSource.regular_to_feasible

Compiled

Plain-English statement. The retained stronger predicate also supplies the repaired interface.

Mathematical reading. The retained stronger predicate also supplies the repaired interface.
Intuition
The retained stronger predicate also supplies the repaired interface.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Restrict convexity from the old U to convex V and take local ambient derivatives. No reverse implication.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescent.RegularLoss, BanditRL.OnlineGradientDescentSource.FeasibleRegularLoss
Exact Lean statement
theorem regular_to_feasible (V : Domain E) (f : E → ℝ) (hf : RegularLoss V f) : FeasibleRegularLoss V f
Mathematics ↔ Lean

True linear loss satisfies the stronger interface

Lean declarationBanditRL.OnlineGradientDescentSource.linear_regular

Compiled

Plain-English statement. The function z ↦ inner(g,z) is globally convex and differentiable.

Mathematical reading. The function z ↦ inner(g,z) is globally convex and differentiable.
Intuition
The function z ↦ inner(g,z) is globally convex and differentiable.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
The continuous Riesz dual supplies an actual linear map and derivative, including g=0 and unbounded V.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescent.RegularLoss
Exact Lean statement
theorem linear_regular (V : Domain E) (g : E) : RegularLoss V (fun z => inner ℝ g z)
Mathematics ↔ Lean

Actual gradient of the linear loss

Lean declarationBanditRL.OnlineGradientDescentSource.gradient_linear

Compiled

Plain-English statement. The gradient of inner(g,·) equals g at every ambient point.

Mathematical reading. The gradient of inner(g,·) equals g at every ambient point.
Intuition
The gradient of inner(g,·) equals g at every ambient point.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Use the derivative of the continuous dual and the Riesz gradient identity; this is a producer, not an oracle assumption.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem gradient_linear (g x : E) : gradient (fun z => inner ℝ g z) x = g
Mathematics ↔ Lean

Feasible-set first-order comparison

Lean declarationBanditRL.OnlineGradientDescentSource.first_order

Compiled

Plain-English statement. Loss comparison follows from convexity on V and the ambient derivative.

Mathematical reading. Loss comparison follows from convexity on V and the ambient derivative.
Intuition
Loss comparison follows from convexity on V and the ambient derivative.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Apply the existing feasible convex_gradient_lower_bound and reverse the displacement.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.FeasibleRegularLoss, BanditRL.OnlineConvex.convex_gradient_lower_bound
Exact Lean statement
theorem 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)
Mathematics ↔ Lean

Actual variable-step loss comparison

Lean declarationBanditRL.OnlineGradientDescentSource.variable_one_step

Compiled

Plain-English statement. The current scheduled update supplies its divided one-step inequality.

Mathematical reading. The current scheduled update supplies its divided one-step inequality.
Intuition
The current scheduled update supplies its divided one-step inequality.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Use new lemma_2_12 and actual iterateVariable feasibility; only current eta_t must be positive here.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.lemma_2_12, BanditRL.OnlineGradientDescent.iterateVariable_mem
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Sharp decreasing-step diameter-upper-bound interface

Lean declarationBanditRL.OnlineGradientDescentSource.theorem_2_13_variable_bound

Compiled

Plain-English statement. A pairwise distance upper bound supplies the weighted potential telescope.

Mathematical reading. A pairwise distance upper bound supplies the weighted potential telescope.
Intuition
A pairwise distance upper bound supplies the weighted potential telescope.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
T>=1, positive adjacent nonincreasing used steps; Lean last step is eta(T-1). D=0 allowed. Preserve the negative terminal.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.variable_one_step, BanditRL.OnlineGradientDescent.weighted_potential_sum, BanditRL.OnlineGradientDescent.iterateVariable_mem
Exact Lean statement
theorem 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))
Mathematics ↔ LeanClosest local match to the source theorem

Why changing step sizes leaves an interior correction

Lean declarationBanditRL.OnlineWeightedPotential.distance_potential_sum_eq

Compiled

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.

Mathematical reading. 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.
Intuition
With constant weights, adjacent potentials cancel completely; changing weights leaves their successive differences.
Why it is needed
The equality shows exactly where the distance at the final iterate enters the proof, before any diameter bound is applied.
Place in the proof
The first equality in the variable-step calculation at the top of printed page 14 carries the same gradient-energy sum on both sides. Cancel that sum to obtain the displayed distance identity. The same algebra applies to any trajectory in a normed additive commutative group. In the OGD proof, one then bounds the interior terms to obtain the regret inequality.
Proof and Lean reading notes
Proof idea
Write a_t for squared distance and w_t for the reciprocal of twice the step size. Expand the weighted differences. An interior distance occurs twice, once with each adjacent weight, so its coefficient is their difference. The initial distance occurs once positively and the terminal distance once negatively. In a three-round example with affine loss slopes 1, −2, 2 and steps 1, 2, 1, projected OGD and projected subgradient descent both follow 0, −1, 3, 1 on the real line. At comparator 2 the initial term is 2, the terminal term is −1/2, and the interior correction is −2. Their sum is −1/2.
Lean reading notes
The scalar identity applies to arbitrary real sequences of potentials and weights, including negative and zero values, with no terminal bound. Its proof uses Finset.sum_range_by_parts and Finset.sum_range_sub'. The distance theorem calls weighted_difference_sum_eq and specializes it to squared norms and reciprocal weights, retaining the positive horizon and positive played steps of the source. The displayed formula uses the Euclidean norm of the book. The two trajectory tests apply this identity to generated iterates. Lean numbers plays from zero, so x(T) is the last iterate and η(T−1) is the last played step.
Teaching dependencies
BanditRL.OnlineWeightedPotential.weighted_difference_sum_eq
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Theorem 2.13 exact finite diameter

Lean declarationBanditRL.OnlineGradientDescentSource.theorem_2_13_variable

Compiled

Plain-English statement. Boundedness makes Metric.diam the source diameter in the repaired same-run bound.

Mathematical reading. Boundedness makes Metric.diam the source diameter in the repaired same-run bound.
Intuition
Boundedness makes Metric.diam the source diameter in the repaired same-run bound.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
Apply the pairwise-bound producer with Metric.dist_le_diam_of_mem. No compactness or convex-open-neighborhood assumption.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.theorem_2_13_variable_bound
Exact Lean statement
theorem 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))
Mathematics ↔ Lean

Positive horizon tuning for one comparator

Lean declarationBanditRL.OnlineGradientDescentSource.equation_2_1_distance

Compiled

Plain-English statement. An initial-distance bound and actual tuned-run gradient bounds give DG sqrtT.

Mathematical reading. An initial-distance bound and actual tuned-run gradient bounds give DG sqrtT.
Intuition
An initial-distance bound and actual tuned-run gradient bounds give DG sqrtT.
Why it is needed
One repaired source chain using the existing shared projected algorithm.
Place in the proof
Orabona v10 printed12–15/PDF24–27; library refinement, not an extra printed source result.
Proof and Lean reading notes
Proof idea
D,G,T>0. Bound the initial distance and energy in the fixed sharp producer, then discard the nonnegative terminal magnitude. No future-gradient optimizer.
Lean reading notes
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. Compiled local OGD source-repair candidate, with distinct source/body review. Full harness, actual graph, shared Book registry, final reader/site and PR gates remain separate. This is not all Chapter2 or the whole book, and is not merged or live.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.theorem_2_13_fixed
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Compare a convex loss at a supplied proximal minimum

Lean declarationBanditRL.OnlineProximal.convex_minimizer_comparison

Compiled

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.

Mathematical reading. 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.
Intuition
Move a small positive distance toward the comparator. Convexity bounds the loss by its endpoint values; only the perturbation is differentiated.
Why it is needed
Provide a reusable loss-comparison ingredient for a later prescient Bregman argument.
Place in the proof
Orabona, arXiv:1912.13213v10,2026-06-21; Chapter2 printed14/PDF26 prescient forward observation -> Section15.5.1, Algorithm15.8/Theorem15.30 printed265–266/PDF277–278. Derived loss-comparison dependency, not the complete source theorem. Theorem2.8 printed11/PDF23 explicitly assumes a differentiable objective and is not applied to a nonsmooth f+h here. PDF SHA cef4edfa97a6e063e53e9c532717c50aa156e5bc782ea49f969b3385011a1b17.
Proof and Lean reading notes
Proof idea
Fix u in V and move along q(a)=p+a(u-p), with 0<=a<=1. Convexity of V keeps q(a) feasible. Minimality and convexity of f give f(p)+h(p)<=f(q(a))+h(q(a))<=(1-a)f(p)+a f(u)+h(q(a)). Thus H(a)=a(f(u)-f(p))+h(q(a))-h(p) has a minimum at a=0 on [0,1]. Differentiate h along the affine segment: Hprime(0)=f(u)-f(p)+Dh(p)[u-p]. The feasible positive tangent direction gives Hprime(0)>=0, which is the claimed comparison.
Lean reading notes
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. The implementation uses IsLocalMinOn.hasFDerivWithinAt_nonneg, sub_mem_posTangentConeAt_of_segment_subset, Convex.segment_subset and HasFDerivAt.comp_hasDerivAt_of_eq, together with scalar derivative algebra. No earlier ABRL theorem is a direct proof parent. Three test families supply their own minimizing conditions and derivative data: an absolute-value loss with a shifted quadratic; a boundary minimum on [0,1] that is not a whole-line minimum; and a convex quadratic loss with a nonconvex perturbation. These examples are not additional source theorems. 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.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
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)
Mathematics ↔ Lean

Ordered divergence from the derivative at the base

Lean declarationBanditRL.OnlineBregman.divergence

Compiled

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.

Mathematical reading. 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.
Intuition
Measure the error of the first-order affine approximation, keeping the base and target ordered.
Why it is needed
Give the shared library one canonical dual-map expression for the Bregman algebra.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
This is a definition. It evaluates psi(a)-psi(b)-Dpsi(b)[a-b]. No freely supplied gradient field is substituted.
Lean reading notes
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 definition alone gives no nonnegativity, strict separation, symmetry or metric property.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def divergence (ψ : E → ℝ) (x y : E) : ℝ
Mathematics ↔ Lean

Self divergence vanishes algebraically

Lean declarationBanditRL.OnlineBregman.divergence_self

Compiled

Plain-English statement. For every real-valued psi and every x, B_psi(x;x)=0, with no convexity or differentiability assumption.

Mathematical reading. For every real-valued psi and every x, B_psi(x;x)=0, with no convexity or differentiability assumption.
Intuition
Equal arguments give a zero displacement.
Why it is needed
Cancel the self term when a comparator equals a Bregman base.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
The two values psi(x) cancel. Every continuous linear map sends the zero displacement to zero.
Lean reading notes
This normed-space identity uses the canonical definition and linear-map evaluation at zero. It has no converse: B_psi(x;y)=0 does not imply x=y. 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.
Teaching dependencies
BanditRL.OnlineBregman.divergence
Exact Lean statement
theorem divergence_self (ψ : E → ℝ) (x : E) : divergence ψ x x = 0
Mathematics ↔ Lean

Three-point algebra with ordered bases

Lean declarationBanditRL.OnlineBregman.three_point_identity

Compiled

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.

Mathematical reading. 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.
Intuition
The function values cancel, leaving the difference between the two affine approximations.
Why it is needed
Turn the derivative comparison at a proximal minimum into the exact two signed Bregman residuals.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
Expand all three divergences. Use linearity to distribute each derivative over differences, cancel function values, and collect the coefficient of z-x. The order is the one displayed in Lemma 6.7.
Lean reading notes
The compiled proof uses the canonical divergence, ContinuousLinearMap.sub_apply, map_sub and scalar ring algebra. Its unrestricted ambient inputs are an explicit algebraic generalization of the source domain. 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.
Teaching dependencies
BanditRL.OnlineBregman.divergence
Exact Lean statement
theorem three_point_identity (ψ : E → ℝ) (x y z : E) : divergence ψ z x + divergence ψ x y - divergence ψ z y = (fderiv ℝ ψ y - fderiv ℝ ψ x) (z - x)
Mathematics ↔ Lean

Convex support makes the divergence nonnegative

Lean declarationBanditRL.OnlineBregman.divergence_nonneg

Compiled

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.

Mathematical reading. 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.
Intuition
A convex function lies above its supporting affine approximation at a differentiable base.
Why it is needed
Supply a separate nonnegativity theorem when the needed convexity and domain assumptions are available.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
Restrict psi to the affine line y+t(x-y). Convexity transfers to the preimage of X, which contains t=0 and t=1. Its derivative at zero is Dpsi(y)[x-y]. The convex derivative-versus-secant inequality gives Dpsi(y)[x-y]<=psi(x)-psi(y). Rearranging is exactly nonnegativity.
Lean reading notes
ConvexOn includes convexity of X. The actual Mathlib support parent is ConvexOn.le_slope_of_hasDerivAt, with composition along AffineMap.lineMap. Only the derivative at y is assumed. Strict positivity and separation are not concluded. A generic public-value witness is checked; the two concrete Test declarations are not claimed as VALUE consumers of this nonnegativity theorem.
Teaching dependencies
BanditRL.OnlineBregman.divergence
Exact Lean statement
theorem 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
Mathematics ↔ Lean

A proximal minimum preserves both Bregman residuals

Lean declarationBanditRL.OnlineBregman.proximal_one_step

Compiled

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.

Mathematical reading. 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.
Intuition
Compare along a feasible segment toward u, differentiating the penalty while using only convexity of the loss.
Why it is needed
Specialize the shared nonsmooth minimizer comparison to an ordered Bregman penalty.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
Differentiate the penalty h(z)=eta^(-1) B_psi(z;x) at p. Its derivative is eta^(-1)(Dpsi(p)-Dpsi(x)). The shared convex_minimizer_comparison uses the supplied feasible minimum and convexity of f to give f(p)-f(u)<=Dh(p)[u-p]. Multiply by positive eta. Apply three_point_identity with (p,x,u), then rearrange to retain both subtracted divergences. The derivative at x remains in the frozen interface for source instantiation, although the proof clears it: the fixed linear map Dpsi(x) is already differentiable as a function of z.
Lean reading notes
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. Both residuals stay signed: the comparison does not assume convexity of psi, so their nonnegativity cannot be inferred here. Two illustrative tests construct their minimizing conditions. For psi(z)=z^4/4+z^2/2 and f(z)=|z| on R, eta=1, x=1/2 and p=0, the ordered divergences are B(1/2;0)=9/64 and B(0;1/2)=11/64. The potential is strictly convex and the loss is not differentiable at zero. The comparison at u=1/2 gives -1/2<=-5/16. For the globally strictly convex potential psi(z)=z^2/2 on R, again with f(z)=|z| and eta=1, take V=[0,1], x=-1 outside V and boundary minimizer p=0, with objective minimum value 1/2; B(0;-1)=1/2 and the comparison at u=1/2 gives -1/2<=1/2. Each full test retains its universal comparison and transports that comparison into its final numerical inequality. Both use the public gradient conversion. These are concrete instances, not a general attainment theorem or an algorithm construction. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. In the two real-loss examples the minimizer is p=0, whereas the objective minimum values are 11/64 and 1/2. In the second example x=-1 is the center outside V=[0,1]; the value 1/2 is not the outside point.
Teaching dependencies
BanditRL.OnlineProximal.convex_minimizer_comparison, BanditRL.OnlineBregman.three_point_identity
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Convert the dual formula to an inner product

Lean declarationBanditRL.OnlineBregman.divergence_eq_gradient

Compiled

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>.

Mathematical reading. 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>.
Intuition
The gradient represents the derivative functional through the inner product.
Why it is needed
Connect the canonical dual-map formula to the source gradient notation and the concrete real-line examples.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
Obtain HasGradientAt from ambient differentiability at y. Use HasGradientAt.fderiv_apply to replace the derivative applied to x-y by the corresponding inner product in the defining formula.
Lean reading notes
Only this adapter requires InnerProductSpace and CompleteSpace. Those assumptions do not extend to the other five interfaces. Both illustrative Test declarations use this adapter with actual polynomial derivatives. 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.
Teaching dependencies
BanditRL.OnlineBregman.divergence
Exact Lean statement
theorem divergence_eq_gradient (ψ : E → ℝ) (x y : E) (hd : DifferentiableAt ℝ ψ y) : divergence ψ x y = ψ x - ψ y - inner ℝ (gradient ψ y) (x - y)
Mathematics ↔ Lean

Global supports give convexity on the finite feasible domain

Lean declarationBanditRL.OnlineBregman.finitePart_convex_of_subdifferentiable

Compiled

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.

Mathematical reading. 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.
Intuition
At the convex combination, the support inequalities at both endpoints cancel their linear terms.
Why it is needed
Transport an actual extended-real proximal minimum into the shared real comparison while preserving the feasible domain.
Place in the proof
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. Derived supporting interface.
Proof and Lean reading notes
Proof idea
First use subgradient_point_finite and properness to write f(z) as the real embedding of f_fin(z) at every feasible z. For a,b>=0 with a+b=1, take z=a*x+b*y in V and select a global support at z. Its inequalities at x and y become real inequalities. Multiply by a and b and add. The inner-product term cancels because a*(x-z)+b*(y-z)=0, leaving f_fin(z)<=a*f_fin(x)+b*f_fin(y).
Lean reading notes
Proper means f never equals negative infinity and equals a real value at at least one ambient point. A global source subgradient g at z satisfies f(z)+<g,y-z><=f(y) for every ambient y, including points outside V. Combining this inequality with the finite witness excludes positive infinity at z; properness excludes negative infinity. Completeness is not required by this first bridge. Values outside V may be positive infinity. Since toReal maps either infinity to zero, the total finite-part function need not be globally convex. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown.
Teaching dependencies
BanditRL.OnlineConvex.subgradient_point_finite
Exact Lean statement
theorem 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)
Mathematics ↔ Lean

Transfer the actual penalized minimum through finite values

Lean declarationBanditRL.OnlineBregman.proximal_finitePart_minimizer_iff

Compiled

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.

Mathematical reading. 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.
Intuition
Real embeddings preserve the comparison of finite objective values at the minimizer and every competitor.
Why it is needed
Transport an actual extended-real proximal minimum into the shared real comparison while preserving the feasible domain.
Place in the proof
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. Derived supporting interface.
Proof and Lean reading notes
Proof idea
On V, the penalized EReal objective F is exactly the real embedding of f_fin(z)+eta^(-1)B_psi(z;x), so F is finite there. Apply minOn_finitePart_iff to F with the supplied membership p in V. Rewrite F.toReal at p and each feasible competitor to obtain both implications.
Lean reading notes
This equivalence assumes neither convexity nor properness, global supports, derivatives, a positive step size, or existence of a minimizer. Each direction transfers a supplied IsMinOn proof; p in V is a separate explicit premise. The center may be outside V and the finite-loss domain. Completeness is retained from minOn_finitePart_iff and is an API inheritance. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown.
Teaching dependencies
BanditRL.OnlineConvex.minOn_finitePart_iff
Exact Lean statement
theorem 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
Mathematics ↔ Lean

An extended-loss minimum preserves both signed residuals

Lean declarationBanditRL.OnlineBregman.proximal_one_step_extended

Compiled

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).

Mathematical reading. 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).
Intuition
Use the finite-domain and order bridges to apply the existing real-loss comparison without subtracting infinities.
Why it is needed
Transport an actual extended-real proximal minimum into the shared real comparison while preserving the feasible domain.
Place in the proof
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. Derived supporting interface.
Proof and Lean reading notes
Proof idea
Obtain feasible finiteness from the global supports and properness. Use finitePart_convex_of_subdifferentiable for convexity of f_fin on V, and proximal_finitePart_minimizer_iff for the actual real penalized minimum. Apply the shared real-valued proximal_one_step with the same V, psi, positive eta, center x, minimizer p and comparator u. Both subtracted divergences retain their ordered arguments.
Lean reading notes
Proper means f never equals negative infinity and equals a real value at at least one ambient point. A global source subgradient g at z satisfies f(z)+<g,y-z><=f(y) for every ambient y, including points outside V. Combining this inequality with the finite witness excludes positive infinity at z; properness excludes negative infinity. Both generator derivative assumptions remain in the sealed interface. No loss derivative, convexity of psi, closedness or boundedness of V is required. The center x may lie outside V and the finite-loss domain. Dropping either signed residual needs separate nonnegativity conditions. 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. Two complete test examples use eta=1 and set the loss to positive infinity outside the indicated interval. On V=[-1,1], f(z)=|z| and psi(z)=z^4/4+z^2/2 give minimizer p=0 at center x=1/2, with objective minimum value 11/64. The potential is globally strictly convex, the loss is nondifferentiable at zero, and B(1/2;0)=9/64 while B(0;1/2)=11/64. On V=[0,1], f(z)=z and the globally strictly convex psi(z)=z^2/2 give boundary minimizer p=0 and objective minimum value 1/2 at center x=-1. This center is outside V and outside the finite-loss domain. Both examples prove properness, global supports on V, feasible finite-part convexity, failure of global finite-part convexity, the actual EReal minimum and the universal one-step comparison. At u=1/2 their final inequalities are -1/2<=-5/16 and -1/2<=1/2, obtained by equality transport of the extended one-step comparison. These examples do not prove general attainment or construct a trajectory. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown.
Teaching dependencies
BanditRL.OnlineConvex.subgradient_point_finite, BanditRL.OnlineBregman.finitePart_convex_of_subdifferentiable, BanditRL.OnlineBregman.proximal_finitePart_minimizer_iff, BanditRL.OnlineBregman.proximal_one_step
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Ambient representatives give the same divergence at interior bases

Lean declarationBanditRL.OnlineBregman.divergence_extension_eq

Compiled

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.

Mathematical reading. 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.
Intuition
Turn interior membership into an eventual neighborhood equality, reuse Filter.EventuallyEq.fderiv_eq, then substitute equal point values.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Interior membership supplies a neighborhood contained in X, hence eventual equality and equal total Frechet derivatives at b. Substitute equality at a and b in the ordered divergence.
Lean reading notes
No differentiability or convexity is assumed for this algebraic equality. It does not supply an extension, source regularity, positivity, or invariance of a chosen trajectory. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlineBregman.divergence
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Choose a current feasible minimum, or expose nonattainment

Lean declarationBanditRL.OnlinePrescientBregman.advance

Compiled

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.

Mathematical reading. 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.
Intuition
An explicit dependent if separates mathematical attainment from nonattainment; Classical.choose is applied only under its actual existence proof.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
The dependent existence test guards Classical.choose; the returned witness includes feasible membership and comparison against every feasible point.
Lean reading notes
The generic definitions use a real normed space, arbitrary V, arbitrary real stepsizes (including zero and negative with total inverse), and arbitrary EReal losses. They allow infeasible initial centers and infinite objective minima. Classical choice is a mathematical selector, with no executable optimizer or measurable-selection claim. None means absence of a feasible attained minimum, not nonuniqueness, timeout, or failure of an interior test. The definition is literal on its entire carrier, not a uniquely characterized source optimizer. It performs no X/interior validity test. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlineBregman.divergence
Exact Lean statement
def 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
Mathematics ↔ Lean

Consume the current loss through the same partial recursion

Lean declarationBanditRL.OnlinePrescientBregman.iterate

Compiled

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.

Mathematical reading. Start with some x0. At each successor, bind the previous optional state to the current-step selector. A missing predecessor stays missing.
Intuition
The natural recursion calls the already fixed current-only selector at each successor.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Natural recursion uses exactly the fixed selector with eta t and loss t; no future validity check is performed.
Lean reading notes
The generic definitions use a real normed space, arbitrary V, arbitrary real stepsizes (including zero and negative with total inverse), and arbitrary EReal losses. They allow infeasible initial centers and infinite objective minima. Classical choice is a mathematical selector, with no executable optimizer or measurable-selection claim. None means absence of a feasible attained minimum, not nonuniqueness, timeout, or failure of an interior test. 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. The initial state has no feasibility or interior guarantee. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlinePrescientBregman.advance
Exact Lean statement
def 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))
Mathematics ↔ Lean

Every returned point is an actual feasible current minimum

Lean declarationBanditRL.OnlinePrescientBregman.advance_some_spec

Compiled

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.

Mathematical reading. 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.
Intuition
Unfold the actual guard and use Classical.choose_spec, transporting its feasible-minimum conjunction to the returned point.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Unfold the actual guard and use Classical.choose_spec; injectivity of some identifies the returned point.
Lean reading notes
The generic definitions use a real normed space, arbitrary V, arbitrary real stepsizes (including zero and negative with total inverse), and arbitrary EReal losses. They allow infeasible initial centers and infinite objective minima. Classical choice is a mathematical selector, with no executable optimizer or measurable-selection claim. None means absence of a feasible attained minimum, not nonuniqueness, timeout, or failure of an interior test. The conclusion is one-way: an arbitrary tied minimizer need not be the chosen point. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlinePrescientBregman.advance
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Failure is exactly absence of a feasible attained minimum

Lean declarationBanditRL.OnlinePrescientBregman.advance_none_iff

Compiled

Plain-English statement. The actual selector returns none exactly when no feasible attained minimum exists for its current penalized objective.

Mathematical reading. The actual selector returns none exactly when no feasible attained minimum exists for its current penalized objective.
Intuition
Split on the actual existence guard and prove the two iff branches without changing the objective or imposing regularity.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Split the existence guard. The success branch cannot be none, and the failure branch is none by definition.
Lean reading notes
The generic definitions use a real normed space, arbitrary V, arbitrary real stepsizes (including zero and negative with total inverse), and arbitrary EReal losses. They allow infeasible initial centers and infinite objective minima. Classical choice is a mathematical selector, with no executable optimizer or measurable-selection claim. None means absence of a feasible attained minimum, not nonuniqueness, timeout, or failure of an interior test. In particular, an infinite minimum may count as success; no finite-value or source-interior conclusion follows. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlinePrescientBregman.advance
Exact Lean statement
theorem 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
Mathematics ↔ Lean

The actual state depends only on the consumed prefix

Lean declarationBanditRL.OnlinePrescientBregman.iterate_prefix

Compiled

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.

Mathematical reading. 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.
Intuition
Induct on t; the predecessor states agree by the shorter prefix, then the equal current eta/loss give identical bind calls.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Induct on t. Shorter prefix equality identifies predecessor states; current step and function equality identify both bind calls.
Lean reading notes
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. This proves equality for the fixed classical selector, not for arbitrary tie-breaking rules or functions equal only on V. It is not prediction before the current loss. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.iterate
Exact Lean statement
theorem 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
Mathematics ↔ Lean

A successful successor exposes its real predecessor and current minimum

Lean declarationBanditRL.OnlinePrescientBregman.iterate_succ_some_spec

Compiled

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.

Mathematical reading. 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.
Intuition
Option.bind_eq_some_iff extracts the real previous state and successful advance; advance_some_spec supplies its feasible minimum.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Use Option.bind_eq_some_iff, then apply advance_some_spec to the extracted successful step.
Lean reading notes
The generic definitions use a real normed space, arbitrary V, arbitrary real stepsizes (including zero and negative with total inverse), and arbitrary EReal losses. They allow infeasible initial centers and infinite objective minima. Classical choice is a mathematical selector, with no executable optimizer or measurable-selection claim. None means absence of a feasible attained minimum, not nonuniqueness, timeout, or failure of an interior test. Minimality is produced from the actual recursion; it is not an extra desired comparison assumption. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.advance_some_spec, BanditRL.OnlinePrescientBregman.iterate
Exact Lean statement
theorem 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
Mathematics ↔ Lean

A missing state remains missing at every later offset

Lean declarationBanditRL.OnlinePrescientBregman.iterate_no_recovery

Compiled

Plain-English statement. If state t is none, then state t+k is none for every natural offset k on that same stream.

Mathematical reading. If state t is none, then state t+k is none for every natural offset k on that same stream.
Intuition
Induct on the offset; the next bind applied to none is none by definition.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Induct on k and use that binding none yields none.
Lean reading notes
The generic definitions use a real normed space, arbitrary V, arbitrary real stepsizes (including zero and negative with total inverse), and arbitrary EReal losses. They allow infeasible initial centers and infinite objective minima. Classical choice is a mathematical selector, with no executable optimizer or measurable-selection claim. None means absence of a feasible attained minimum, not nonuniqueness, timeout, or failure of an interior test. This is absorbing partial failure, not a claim that all later objectives lack minimizers when considered independently. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.iterate
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Actual local attainment suffices for a finite successful run

Lean declarationBanditRL.OnlinePrescientBregman.iterate_complete_of_step_attained

Compiled

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.

Mathematical reading. If each actually reached successful state at every t<T admits a feasible minimizer of its current objective, then state T is some p.
Intuition
Induct on the horizon, apply local attainment to the successful predecessor, rule out advance=none with the exact iff, and bind its successful value.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Induct on T, invoke local attainment at the successful predecessor, use the exact none equivalence to obtain a successful advance, and bind it.
Lean reading notes
The generic definitions use a real normed space, arbitrary V, arbitrary real stepsizes (including zero and negative with total inverse), and arbitrary EReal losses. They allow infeasible initial centers and infinite objective minima. Classical choice is a mathematical selector, with no executable optimizer or measurable-selection claim. None means absence of a feasible attained minimum, not nonuniqueness, timeout, or failure of an interior test. The premise quantifies over all actual predecessor values and t<T. At T=0 it is vacuous and x0 is returned. No unconditional attainment, all-horizon result, or interior preservation is established. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.advance_none_iff, BanditRL.OnlinePrescientBregman.iterate
Exact Lean statement
theorem 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
Mathematics ↔ Lean

The very same produced transition gives both signed residuals

Lean declarationBanditRL.OnlinePrescientBregman.iterate_one_step

Compiled

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.

Mathematical reading. 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.
Intuition
Recover the actual predecessor and feasible current minimum from the successor; identify the predecessor with the supplied actual prior state by Option injectivity. Apply proximal_one_step_extended to that very minimum.
Why it is needed
Expose the actual partial update and its precise source relationship.
Place in the proof
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. Derived library interface or literal partial definition.
Proof and Lean reading notes
Proof idea
Extract the actual predecessor and minimum from the successful successor, then identify that predecessor with the supplied state x by injectivity of some. Apply proximal_one_step_extended to the extracted minimum.
Lean reading notes
The complete inner-product context is inherited from the accepted extended-loss parent. Properness and global supports justify finite loss differences; both derivative assumptions remain explicit. 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. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. This is not full Algorithm 15.8, Theorem 15.30, chapter/book completion, or an approved source correction.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.proximal_one_step_extended, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_succ_some_spec
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Obtain negative movement from the actual projection

Lean declarationBanditRL.OnlinePrescientLinear.advance_sharp_bound

Compiled

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.

Mathematical reading. 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.
Intuition
Projection optimality controls the loss at the updated point.
Why it is needed
Understand the affine prescient update and its signed regret on the actual generated trajectory.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), Chapter 2 printed page 14 and Section 15.5.1, Algorithm 15.8/Theorem 15.30, printed pages 265–266 (PDF 26, 277–278). Canonical-library one-step producer supporting the source specialization.
Proof and Lean reading notes
Proof idea
The projection variational inequality gives <x-eta g-p,u-p> <= 0, hence eta<g,p-u> <= <x-p,p-u>. Expand ||x-u|| squared as ||x-p|| squared + 2<x-p,p-u> + ||p-u|| squared, then divide by positive 2 eta. The starting point x may lie outside V.
Lean reading notes
E is a complete real inner-product space and V is a nonempty closed convex subset. Write P_V for the unique nearest-point projection. Here x and g are arbitrary, eta>0, and u belongs to V. This local inequality is derived from the attained projection; no minimizer oracle or regret inequality is assumed. 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.
Teaching dependencies
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlineGradientDescent.project, BanditRL.OnlineGradientDescent.project_spec, BanditRL.OnlinePrescientLinear.advance
Exact Lean statement
theorem 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 * η)
Mathematics ↔ Lean

Every played prediction lies in the feasible set

Lean declarationBanditRL.OnlinePrescientLinear.prediction_mem

Compiled

Plain-English statement. Every prediction p_t belongs to V, even when the initial center x_0 lies outside V.

Mathematical reading. Every prediction p_t belongs to V, even when the initial center x_0 lies outside V.
Intuition
The played point is always a projected point.
Why it is needed
Understand the affine prescient update and its signed regret on the actual generated trajectory.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), Chapter 2 printed page 14 and Section 15.5.1, Algorithm 15.8/Theorem 15.30, printed pages 265–266 (PDF 26, 277–278). Canonical-library feasibility property of the generated trajectory.
Proof and Lean reading notes
Proof idea
Unfold the prediction and one recursive update. The membership part of project_spec places P_V(z_t-eta g_t) in V. This argument also applies at t=0.
Lean reading notes
E is a complete real inner-product space and V is a nonempty closed convex subset. Write P_V for the unique nearest-point projection. eta may be any real number for this feasibility identity. It does not claim that z_0=x_0 is feasible, or that eta<=0 implements the positive-step source algorithm. 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.
Teaching dependencies
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlineGradientDescent.project, BanditRL.OnlineGradientDescent.project_spec, BanditRL.OnlinePrescientLinear.iterate
Exact Lean statement
theorem prediction_mem (V : Domain E) (η : ℝ) (g : ℕ → E) (x0 : E) (t : ℕ) : prediction V η g x0 t ∈ V.carrier
Mathematics ↔ Lean

Use the current vector while ignoring the future

Lean declarationBanditRL.OnlinePrescientLinear.prediction_prefix

Compiled

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.

Mathematical reading. Two vector sequences that agree through the current index t produce the same prediction p_t from the same initial center and fixed step.
Intuition
Prediction depends on a current-inclusive finite prefix.
Why it is needed
Understand the affine prescient update and its signed regret on the actual generated trajectory.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), Chapter 2 printed page 14 and Section 15.5.1, Algorithm 15.8/Theorem 15.30, printed pages 265–266 (PDF 26, 277–278). Canonical-library relational lemma, not a printed Source Anchor.
Proof and Lean reading notes
Proof idea
Induct on the number n of updates. Agreement for all s<n gives the same previous state and the same vector at update n-1. Apply this statement at n=t+1. Agreement only for s<t is not sufficient.
Lean reading notes
E is a complete real inner-product space and V is a nonempty closed convex subset. Write P_V for the unique nearest-point projection. eta is any real number. The prefix-equality hypothesis belongs only to this relational infrastructure theorem; it is not a premise of either regret bound. This is deterministic information-flow invariance, not a filtration, probability or bandit-feedback theorem. 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.
Teaching dependencies
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlinePrescientLinear.advance, BanditRL.OnlinePrescientLinear.iterate
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Cancel affine offsets on the same trajectory

Lean declarationBanditRL.OnlinePrescientLinear.regret_eq_loss_difference

Compiled

Plain-English statement. The signed inner-product regret equals cumulative affine loss difference at the actual played predictions, for arbitrary time-dependent offsets.

Mathematical reading. The signed inner-product regret equals cumulative affine loss difference at the actual played predictions, for arbitrary time-dependent offsets.
Intuition
The offset cancels separately in every round.
Why it is needed
Understand the affine prescient update and its signed regret on the actual generated trajectory.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), Chapter 2 printed page 14 and Section 15.5.1, Algorithm 15.8/Theorem 15.30, printed pages 265–266 (PDF 26, 277–278). Canonical-library loss-interpretation identity.
Proof and Lean reading notes
Proof idea
Distribute the inner product over p_t-u. Add and subtract the same b_t, then sum over exactly range T. The trajectory is unchanged by this algebraic interpretation.
Lean reading notes
E is a complete real inner-product space and V is a nonempty closed convex subset. Write P_V for the unique nearest-point projection. eta is any real number, u may be any ambient point, and T may be zero. No comparator feasibility or positive-step assumption is needed for this equality. It is a finite signed sum, not an expectation or normalized average. 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.
Teaching dependencies
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlinePrescientLinear.prediction, BanditRL.OnlinePrescientLinear.regret
Exact Lean statement
theorem 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))
Mathematics ↔ Lean

Drop terminal distance but keep movement energy

Lean declarationBanditRL.OnlinePrescientLinear.regret_source_bound

Compiled

Plain-English statement. Removing only the nonnegative terminal-distance quotient gives the constant-step source-shaped bound with negative movement energy.

Mathematical reading. Removing only the nonnegative terminal-distance quotient gives the constant-step source-shaped bound with negative movement energy.
Intuition
The simpler bound preserves the useful negative movement term.
Why it is needed
Understand the affine prescient update and its signed regret on the actual generated trajectory.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), Chapter 2 printed page 14 and Section 15.5.1, Algorithm 15.8/Theorem 15.30, printed pages 265–266 (PDF 26, 277–278). Source-facing derived affine/quadratic specialization of the constant-step form; the full source theorem remains open.
Proof and Lean reading notes
Proof idea
Start from regret_sharp_bound. Since eta>0, ||z_T-u|| squared/(2 eta) is nonnegative, so omitting its subtraction increases the right-hand side. The movement sum is unchanged.
Lean reading notes
E is a complete real inner-product space and V is a nonempty closed convex subset. Write P_V for the unique nearest-point projection. eta>0, u belongs to V, x_0 is arbitrary and T may be zero. On a constrained domain, projection may clip a step; movement energy cannot generally be replaced by eta squared times gradient energy. A concrete canary disproves that replacement while another verifies equality in the unconstrained example. 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.
Teaching dependencies
BanditRL.OnlineGradientDescent.Domain, BanditRL.OnlinePrescientLinear.iterate, BanditRL.OnlinePrescientLinear.prediction, BanditRL.OnlinePrescientLinear.regret, BanditRL.OnlinePrescientLinear.regret_sharp_bound
Exact Lean statement
theorem 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 * η)
Mathematics ↔ Lean

Sum the comparisons from the very same actual updates

Lean declarationBanditRL.OnlinePrescientBregman.iterate_divergence_sum

Compiled

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.

Mathematical reading. 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.
Intuition
At each t<T, obtain the actual consecutive outputs from the same run. Interiority gives both derivatives. Apply iterate_one_step, divide by eta_t>0, sum the inequalities and distribute subtraction. The two ordered divergence differences and negative movement term retain their signs.
Why it is needed
Close a conditional same-run cumulative proof edge in the required Chapter 2 prescient dependency.
Place in the proof
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. Derived conditional library interface.
Proof and Lean reading notes
Proof idea
At each t<T, obtain the actual consecutive outputs from the same run. Interiority gives both derivatives. Apply iterate_one_step, divide by eta_t>0, sum the inequalities and distribute subtraction. The two ordered divergence differences and negative movement term retain their signs.
Lean reading notes
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. T=0 is permitted and all played-loss/stepsize conditions are vacuous. No nonnegative divergence, V subset X or bounded domain is assumed. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Full acceptance of Algorithm 15.8, Theorem 15.30, the chapter, the book and the proposed source corrections remains open.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_one_step
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Telescope constant steps while retaining both negative residuals

Lean declarationBanditRL.OnlinePrescientBregman.iterate_fixed_sharp

Compiled

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.

Mathematical reading. 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.
Intuition
Specialize iterate_divergence_sum to the constant schedule. The actual recursion at0 identifies x(0)=x0. Apply the finite telescope and distribute division. This proves the sharp fixed formula without assuming terminal nonnegativity.
Why it is needed
Close a conditional same-run cumulative proof edge in the required Chapter 2 prescient dependency.
Place in the proof
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. Derived conditional library interface.
Proof and Lean reading notes
Proof idea
Specialize iterate_divergence_sum to the constant schedule. The actual recursion at0 identifies x(0)=x0. Apply the finite telescope and distribute division. This proves the sharp fixed formula without assuming terminal nonnegativity.
Lean reading notes
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. T=0 gives the exact initial-minus-identical-terminal cancellation. No generator convexity or V subset X is needed. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Full acceptance of Algorithm 15.8, Theorem 15.30, the chapter, the book and the proposed source corrections remains open.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_divergence_sum
Exact Lean statement
theorem 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)) / η
Mathematics ↔ Lean

Bound the weighted telescope and keep its final negative term

Lean declarationBanditRL.OnlinePrescientBregman.iterate_variable_sharp

Compiled

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.

Mathematical reading. 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.
Intuition
Apply iterate_divergence_sum. Reuse weighted_potential_sum with potential2D and cap2M, then cancel the factor2. Nonnegative inverse-step increments justify the cap without requiring M>=0. Subtract the unchanged movement sum.
Why it is needed
Close a conditional same-run cumulative proof edge in the required Chapter 2 prescient dependency.
Place in the proof
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. Derived conditional library interface.
Proof and Lean reading notes
Proof idea
Apply iterate_divergence_sum. Reuse weighted_potential_sum with potential2D and cap2M, then cancel the factor2. Nonnegative inverse-step increments justify the cap without requiring M>=0. Subtract the unchanged movement sum.
Lean reading notes
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. Monotonicity compares only t+1<T. M can be negative; it does not bound x_T. Both leading and terminal denominators are eta_(T-1). T=1 has no adjacent-step comparisons. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Full acceptance of Algorithm 15.8, Theorem 15.30, the chapter, the book and the proposed source corrections remains open.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineGradientDescent.weighted_potential_sum, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_divergence_sum
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Derive the printed fixed-step form by terminal nonnegativity

Lean declarationBanditRL.OnlinePrescientBregman.iterate_fixed_regret

Compiled

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.

Mathematical reading. 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.
Intuition
Invoke iterate_fixed_sharp. Strict convexity implies convexity on X; u belongs to X and the terminal point is interior. Apply divergence_nonneg with the actual derivative at x_T, divide by positive eta and drop that one nonpositive term.
Why it is needed
Close a conditional same-run cumulative proof edge in the required Chapter 2 prescient dependency.
Place in the proof
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. Derived conditional library interface.
Proof and Lean reading notes
Proof idea
Invoke iterate_fixed_sharp. Strict convexity implies convexity on X; u belongs to X and the terminal point is interior. Apply divergence_nonneg with the actual derivative at x_T, divide by positive eta and drop that one nonpositive term.
Lean reading notes
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. All movement terms remain subtracted. T=0 is allowed as a derived library case, reducing to nonnegativity of the initial comparator divergence; it is not a printed empty-horizon claim. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Full acceptance of Algorithm 15.8, Theorem 15.30, the chapter, the book and the proposed source corrections remains open.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.divergence_nonneg, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_fixed_sharp
Exact Lean statement
theorem 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)) / η
Mathematics ↔ Lean

Use the exact previous-state maximum in the printed variable form

Lean declarationBanditRL.OnlinePrescientBregman.iterate_variable_regret

Compiled

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.

Mathematical reading. 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.
Intuition
The finite range is nonempty. The finite-maximum bound supplies the previous-state cap for iterate_variable_sharp. Convexity and the terminal interior derivative prove terminal nonnegativity; the last played step is positive, so drop only that divided terminal term.
Why it is needed
Close a conditional same-run cumulative proof edge in the required Chapter 2 prescient dependency.
Place in the proof
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. Derived conditional library interface.
Proof and Lean reading notes
Proof idea
The finite range is nonempty. The finite-maximum bound supplies the previous-state cap for iterate_variable_sharp. Convexity and the terminal interior derivative prove terminal nonnegativity; the last played step is positive, so drop only that divided terminal term.
Lean reading notes
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. The maximum includes x0 and excludes x_T. It depends on u and cannot be silently replaced by the initial value or a domain diameter. No empty-maximum convention or eta_T is used. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Full acceptance of Algorithm 15.8, Theorem 15.30, the chapter, the book and the proposed source corrections remains open.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.divergence_nonneg, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.iterate, BanditRL.OnlinePrescientBregman.iterate_variable_sharp
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Choose one finite feasible value to establish properness.

Lean declarationBanditRL.OnlineConvex.sourceProper_of_domain

Compiled

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.

Mathematical reading. 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.
Intuition
Pick z in V. Domain membership excludes positive infinity and hbot excludes negative infinity, so EReal.coe_toReal identifies f(z) with its finite real value. Pair this witness with hbot. No convexity, closedness or topology is used.
Why it is needed
Transport the source loss and update relation into the existing canonical prescient proof chain.
Place in the proof
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. Derived properness adapter for Definition 2.18; not a separately numbered source theorem.
Proof and Lean reading notes
Proof idea
Pick z in V. Domain membership excludes positive infinity and hbot excludes negative infinity, so EReal.coe_toReal identifies f(z) with its finite real value. Pair this witness with hbot. No convexity, closedness or topology is used.
Lean reading notes
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. 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. Derived properness adapter for Definition 2.18; not a separately numbered source theorem. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows.
Teaching dependencies
BanditRL.OnlineConvex.effectiveDomain
Exact Lean statement
theorem sourceProper_of_domain (f : E → EReal) (V : Set E) (hV : V.Nonempty) (hbot : ∀ z, f z ≠ ⊥) (hdom : V ⊆ effectiveDomain f) : SourceProper f
Mathematics ↔ Lean

The actual loss plus a positive Bregman penalty is strictly convex on the feasible set.

Lean declarationBanditRL.OnlinePrescientBregman.penalized_strictConvex

Compiled

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.

Mathematical reading. 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.
Intuition
finitePart_convex_of_subdifferentiable gives convexity of f.toReal on V. For fixed x, the derivative term Dpsi(x)[z-x] and constant psi(x) are affine in z. Subtracting them preserves strict Jensen inequality for psi. Multiplication by eta inverse, which is positive, and addition of the convex finite loss yield strictness.
Why it is needed
Transport the source loss and update relation into the existing canonical prescient proof chain.
Place in the proof
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. Derived strictness of an objective. Total derivative algebra at an arbitrary center does not claim source Bregman nonnegativity or attainment.
Proof and Lean reading notes
Proof idea
finitePart_convex_of_subdifferentiable gives convexity of f.toReal on V. For fixed x, the derivative term Dpsi(x)[z-x] and constant psi(x) are affine in z. Subtracting them preserves strict Jensen inequality for psi. Multiplication by eta inverse, which is positive, and addition of the convex finite loss yield strictness.
Lean reading notes
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. 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. Derived strictness of an objective. Total derivative algebra at an arbitrary center does not claim source Bregman nonnegativity or attainment. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlineBregman.finitePart_convex_of_subdifferentiable, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential
Exact Lean statement
theorem 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)
Mathematics ↔ Lean

Any supplied feasible minimizer is exactly the selected some-value.

Lean declarationBanditRL.OnlinePrescientBregman.advance_eq_some_of_minimizer

Compiled

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.

Mathematical reading. 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.
Intuition
Properness and the global supports make f finite on V. proximal_finitePart_minimizer_iff transfers both p and the classical selected witness to minima of the same real objective. StrictConvexOn.eq_of_isMinOn makes these minima equal. Unfold advance on the attained branch and substitute that equality.
Why it is needed
Transport the source loss and update relation into the existing canonical prescient proof chain.
Place in the proof
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. Together with advance_some_spec and advance_none_iff, this gives the complete conditional valid-domain characterization and uniqueness. No default feasible point is introduced.
Proof and Lean reading notes
Proof idea
Properness and the global supports make f finite on V. proximal_finitePart_minimizer_iff transfers both p and the classical selected witness to minima of the same real objective. StrictConvexOn.eq_of_isMinOn makes these minima equal. Unfold advance on the attained branch and substitute that equality.
Lean reading notes
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. 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. Together with advance_some_spec and advance_none_iff, this gives the complete conditional valid-domain characterization and uniqueness. No default feasible point is introduced. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows.
Teaching dependencies
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_strictConvex
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Every supplied valid source-update prefix coincides with the canonical recursion.

Lean declarationBanditRL.OnlinePrescientBregman.iterate_eq_of_source_updates

Compiled

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.

Mathematical reading. 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.
Intuition
At t=0, iterate is some x0. If the recursion equals some x_t, Option.bind reduces the next step to advance at x_t. advance_eq_some_of_minimizer identifies its result with the supplied x_(t+1). Induction proves the equality through t=T; iterate_succ_some_spec supplies the converse update relation for a successful prefix.
Why it is needed
Transport the source loss and update relation into the existing canonical prescient proof chain.
Place in the proof
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. This is a finite-prefix identity. It constructs neither a source trajectory nor an interior invariant and says nothing about later steps.
Proof and Lean reading notes
Proof idea
At t=0, iterate is some x0. If the recursion equals some x_t, Option.bind reduces the next step to advance at x_t. advance_eq_some_of_minimizer identifies its result with the supplied x_(t+1). Induction proves the equality through t=T; iterate_succ_some_spec supplies the converse update relation for a successful prefix.
Lean reading notes
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. 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. This is a finite-prefix identity. It constructs neither a source trajectory nor an interior invariant and says nothing about later steps. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows.
Teaching dependencies
BanditRL.OnlineBregman.divergence, BanditRL.OnlineConvex.SourceProper, BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlinePrescientBregman.advance, BanditRL.OnlinePrescientBregman.advance_eq_some_of_minimizer, BanditRL.OnlinePrescientBregman.iterate
Exact Lean statement
theorem 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)
Mathematics ↔ Lean

The source hypotheses yield the fixed-step bound while retaining every movement penalty.

Lean declarationBanditRL.OnlinePrescientBregman.source_fixed_regret

Compiled

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.

Mathematical reading. 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.
Intuition
sourceProper_of_domain first derives properness of every played loss from nonempty V and the source codomain/domain premises. iterate_eq_of_source_updates then proves the actual recursion identity from the supplied argmin relation. Apply iterate_fixed_regret to that identity and the interior states. Its signed one-step sum telescopes; terminal Bregman nonnegativity removes only the terminal comparator residual, leaving every movement cost.
Why it is needed
Transport the source loss and update relation into the existing canonical prescient proof chain.
Place in the proof
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 literal closedness premises stay in the statement even though this conditional proof does not use them to establish attainment. T=0 is a library extension. The source fixed-step clause is an exercise.
Proof and Lean reading notes
Proof idea
sourceProper_of_domain first derives properness of every played loss from nonempty V and the source codomain/domain premises. iterate_eq_of_source_updates then proves the actual recursion identity from the supplied argmin relation. Apply iterate_fixed_regret to that identity and the interior states. Its signed one-step sum telescopes; terminal Bregman nonnegativity removes only the terminal comparator residual, leaving every movement cost.
Lean reading notes
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. 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 literal closedness premises stay in the statement even though this conditional proof does not use them to establish attainment. T=0 is a library extension. The source fixed-step clause is an exercise. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows.
Teaching dependencies
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_regret
Exact Lean statement
theorem 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)) / η
Mathematics ↔ Lean

Positive nonincreasing played rates give the finite maximum over previous states.

Lean declarationBanditRL.OnlinePrescientBregman.source_variable_regret

Compiled

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.

Mathematical reading. 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.
Intuition
Derive properness and the exact recursion identity as in the fixed case, now using the supplied rate sequence. Apply iterate_variable_regret. Its weighted telescope is bounded by the previous-state maximum, divided by the last played rate eta_(T-1). Terminal nonnegativity removes only the terminal comparator residual; all individually weighted movement costs remain.
Why it is needed
Transport the source loss and update relation into the existing canonical prescient proof chain.
Place in the proof
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 maximum depends on u and cannot be replaced by its initial value or a domain diameter. At T=1 there is no adjacent-rate comparison. The omitted printed extra rate comparison remains an explicit source delta.
Proof and Lean reading notes
Proof idea
Derive properness and the exact recursion identity as in the fixed case, now using the supplied rate sequence. Apply iterate_variable_regret. Its weighted telescope is bounded by the previous-state maximum, divided by the last played rate eta_(T-1). Terminal nonnegativity removes only the terminal comparator residual; all individually weighted movement costs remain.
Lean reading notes
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. 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 maximum depends on u and cannot be replaced by its initial value or a domain diameter. At T=1 there is no adjacent-rate comparison. The omitted printed extra rate comparison remains an explicit source delta. 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. 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. No full Algorithm 15.8, Theorem 15.30, chapter/book completion, whole-carrier literal-definition seal or source-repair approval follows.
Teaching dependencies
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_regret
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Polynomially decreasing played steps

Lean declarationBanditRL.OnlineUnboundedOSD.powerSteps

Compiled

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.

Mathematical reading. 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.
Intuition
The definition only uses alpha and the current index. powerSteps_pos proves every step positive, while the source lower bound later restricts alpha to(0,1).
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Source witness definition; not a separately numbered result.
Proof and Lean reading notes
Proof idea
The definition only uses alpha and the current index. powerSteps_pos proves every step positive, while the source lower bound later restricts alpha to(0,1).
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def powerSteps (α : ℝ) (t : ℕ) : ℝ
Mathematics ↔ Lean

The exact source coefficient phi

Lean declarationBanditRL.OnlineUnboundedOSD.phi

Compiled

Plain-English statement. Definition on all real alpha using Lean total real division/power; source semantics and positivity are restricted to0<alpha<1.

Mathematical reading. Definition on all real alpha using Lean total real division/power; source semantics and positivity are restricted to0<alpha<1.
Intuition
Preserve both denominators and the exact source expression. phi_range proves the source codomain, and phi_limit proves its left limit. Total phi(1)=1 is not its left limit, so no continuity at1 is claimed.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Source witness definition; not a separately numbered result.
Proof and Lean reading notes
Proof idea
Preserve both denominators and the exact source expression. phi_range proves the source codomain, and phi_limit proves its left limit. Total phi(1)=1 is not its left limit, so no continuity at1 is claimed.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def phi (α : ℝ) : ℝ
Mathematics ↔ Lean

The horizon-dependent adversarial signs

Lean declarationBanditRL.OnlineUnboundedOSD.switchSlope

Compiled

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.

Mathematical reading. Definition for natural horizon T and natural t, including T0. This is the loss witness, not a horizon-dependent choice of learner.
Intuition
Split the first ceil(T/2) played losses and remaining floor(T/2) losses. The all-natural extension is only a total representation of a finite source sequence.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Source witness definition; not a separately numbered result.
Proof and Lean reading notes
Proof idea
Split the first ceil(T/2) played losses and remaining floor(T/2) losses. The all-natural extension is only a total representation of a finite source sequence.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def switchSlope (T t : ℕ) : ℝ
Mathematics ↔ Lean

Embed the switching losses along one direction

Lean declarationBanditRL.OnlineUnboundedOSD.switchLoss

Compiled

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.

Mathematical reading. 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.
Intuition
Use one canonical witness on E. In dimension1 with v=1 this is exactly the source sequence of -x and+x; a unit vector embeds the same scalar regret into a positive-dimensional E.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Source witness definition; not a separately numbered result.
Proof and Lean reading notes
Proof idea
Use one canonical witness on E. In dimension1 with v=1 this is exactly the source sequence of -x and+x; a unit vector embeds the same scalar regret into a positive-dimensional E.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
BanditRL.OnlineUnboundedOSD.switchSlope
Exact Lean statement
def switchLoss (T : ℕ) (v : E) (t : ℕ) (z : E) : ℝ
Mathematics ↔ Lean

The actual affine subgradient selector

Lean declarationBanditRL.OnlineUnboundedOSD.currentSubgradient_affine

Compiled

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.

Mathematical reading. Any real inner-product E; arbitrary a,x in E and real intercept b. No completeness, finite dimension, step or convexity premise is needed.
Intuition
The existing affine_subdifferential theorem identifies the global source subdifferential with the singleton{a}. The actual classical selector chooses a member of that singleton. No new oracle or desired-bound premise is introduced.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Derived supporting theorem in the explicit witness proof.
Proof and Lean reading notes
Proof idea
The existing affine_subdifferential theorem identifies the global source subdifferential with the singleton{a}. The actual classical selector chooses a member of that singleton. No new oracle or desired-bound premise is introduced.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
BanditRL.OnlineConvex.SourceSubdifferential, BanditRL.OnlineConvex.affine_subdifferential, BanditRL.OnlineSubgradientDescent.currentSubgradient
Exact Lean statement
theorem currentSubgradient_affine (a x : E) (b : ℝ) : BanditRL.OnlineSubgradientDescent.currentSubgradient (fun z => ((inner ℝ a z + b : ℝ) : EReal)) x = a
Mathematics ↔ Lean

One actual full-space affine update

Lean declarationBanditRL.OnlineUnboundedOSD.step_affine_fullSpace

Compiled

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.

Mathematical reading. 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.
Intuition
Unfold the canonical step, replace its actual selector by currentSubgradient_affine, then use the existing full-space projection identity. This derives the update rather than assuming a one-step regret inequality.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Derived supporting theorem in the explicit witness proof.
Proof and Lean reading notes
Proof idea
Unfold the canonical step, replace its actual selector by currentSubgradient_affine, then use the existing full-space projection identity. This derives the update rather than assuming a one-step regret inequality.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
BanditRL.OnlineGradientDescent.project, BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineHuber.project_fullSpace, BanditRL.OnlineSubgradientDescent.currentSubgradient, BanditRL.OnlineSubgradientDescent.step, BanditRL.OnlineUnboundedOSD.currentSubgradient_affine
Exact Lean statement
theorem step_affine_fullSpace (η : ℝ) (a x : E) (b : ℝ) : BanditRL.OnlineSubgradientDescent.step BanditRL.OnlineHuber.fullSpace η (fun z => ((inner ℝ a z + b : ℝ) : EReal)) x = x - η • a
Mathematics ↔ Lean

Unroll the same affine recursion

Lean declarationBanditRL.OnlineUnboundedOSD.iterate_affine_prefix

Compiled

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.

Mathematical reading. 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.
Intuition
Induct on the actual iterate definition; the successor uses step_affine_fullSpace and sum_range_succ. Only the played prefix appears. The canonical iterate_prefix theorem separately supplies information-causality semantics.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Derived supporting theorem in the explicit witness proof.
Proof and Lean reading notes
Proof idea
Induct on the actual iterate definition; the successor uses step_affine_fullSpace and sum_range_succ. Only the played prefix appears. The canonical iterate_prefix theorem separately supplies information-causality semantics.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.step, BanditRL.OnlineUnboundedOSD.step_affine_fullSpace
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Every polynomial step is positive

Lean declarationBanditRL.OnlineUnboundedOSD.powerSteps_pos

Compiled

Plain-English statement. All real alpha and natural t including0; no restriction alpha in(0,1).

Mathematical reading. All real alpha and natural t including0; no restriction alpha in(0,1).
Intuition
The natural successor has strictly positive real cast; apply Real.rpow_pos_of_pos. The source admissible alpha range is imposed by later theorems, not hidden here.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Derived supporting theorem in the explicit witness proof.
Proof and Lean reading notes
Proof idea
The natural successor has strictly positive real cast; apply Real.rpow_pos_of_pos. The source admissible alpha range is imposed by later theorems, not hidden here.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
BanditRL.OnlineUnboundedOSD.powerSteps
Exact Lean statement
theorem powerSteps_pos (α : ℝ) (t : ℕ) : 0 < powerSteps α t
Mathematics ↔ Lean

Every constructed loss is globally convex and1-Lipschitz

Lean declarationBanditRL.OnlineUnboundedOSD.switching_loss_regular

Compiled

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.

Mathematical reading. Finite-dimensional real inner-product E as in the actual API; unit v with norm1, arbitrary T and t. No alpha or horizon threshold.
Intuition
Affine convex-combination equality proves convexity. abs(c_t)=1 and Cauchy-Schwarz with norm(v)=1 prove LipschitzWith1. Regularity is produced for the actual witness, not assumed in the lower bound.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Derived supporting theorem in the explicit witness proof.
Proof and Lean reading notes
Proof idea
Affine convex-combination equality proves convexity. abs(c_t)=1 and Cauchy-Schwarz with norm(v)=1 prove LipschitzWith1. Regularity is produced for the actual witness, not assumed in the lower bound.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
BanditRL.OnlineUnboundedOSD.switchLoss, BanditRL.OnlineUnboundedOSD.switchSlope
Exact Lean statement
theorem switching_loss_regular (T : ℕ) (v : E) (hv : ‖v‖ = 1) (t : ℕ) : ConvexOn ℝ univ (switchLoss T v t) ∧ LipschitzWith 1 (switchLoss T v t)
Mathematics ↔ Lean

Exact scalar regret of the actual run

Lean declarationBanditRL.OnlineUnboundedOSD.switching_scalar_regret_identity

Compiled

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.

Mathematical reading. Real scalar space with initial/comparator0; all real alpha and natural T including0,1. This is an identity with no desired-regret/trajectory premise.
Intuition
Unroll the actual affine run, evaluate each pre-update state, and interchange the finite strict triangular sums using Finset.sum_Ico_Ico_comm'. Split at m, count the suffix signs and factor the polynomial steps. This is the source proof identity for even and odd horizons.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Derived supporting theorem in the explicit witness proof.
Proof and Lean reading notes
Proof idea
Unroll the actual affine run, evaluate each pre-update state, and interchange the finite strict triangular sums using Finset.sum_Ico_Ico_comm'. Split at m, count the suffix signs and factor the polynomial steps. This is the source proof identity for even and odd horizons.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
BanditRL.OnlineHuber.fullSpace, BanditRL.OnlineSubgradientDescent.iterate, BanditRL.OnlineSubgradientDescent.regret, BanditRL.OnlineUnboundedOSD.iterate_affine_prefix, BanditRL.OnlineUnboundedOSD.powerSteps, BanditRL.OnlineUnboundedOSD.switchLoss, BanditRL.OnlineUnboundedOSD.switchSlope
Exact Lean statement
theorem 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)
Mathematics ↔ Lean

The source coefficient has its stated range

Lean declarationBanditRL.OnlineUnboundedOSD.phi_range

Compiled

Plain-English statement. Real alpha with0<alpha<1; no horizon or learner premises.

Mathematical reading. Real alpha with0<alpha<1; no horizon or learner premises.
Intuition
Put beta=1-alpha and q(z)=(1+z)2^{-z}. Strict Bernoulli yields q(beta)>1. Two explicit derivatives show q concave on[0,1], hence its tangent at0 bounds q(beta)-1. Divide by beta(1+beta)>0 to obtain the strict source upper bound.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Component of the one printed Theorem 5.4.
Proof and Lean reading notes
Proof idea
Put beta=1-alpha and q(z)=(1+z)2^{-z}. Strict Bernoulli yields q(beta)>1. Two explicit derivatives show q concave on[0,1], hence its tangent at0 bounds q(beta)-1. Divide by beta(1+beta)>0 to obtain the strict source upper bound.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open. The source asserts this supplement without a displayed derivation. The library supplies an analytic proof; it is not a newly attributed source proof.
Teaching dependencies
BanditRL.OnlineUnboundedOSD.phi
Exact Lean statement
theorem phi_range (α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) : 0 < phi α ∧ phi α < 1 - Real.log 2
Mathematics ↔ Lean

The mandatory endpoint limit and numerical constant

Lean declarationBanditRL.OnlineUnboundedOSD.phi_limit

Compiled

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.

Mathematical reading. 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.
Intuition
Differentiate (1/2)^(1-z) at1 and use HasDerivAt.tendsto_slope on the left punctured filter. The first rational term tends to1; log(1/2)=-log2 gives the limit. The verified mathlib bound log_two_lt_d9 proves the numerical inequality.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Component of the one printed Theorem 5.4.
Proof and Lean reading notes
Proof idea
Differentiate (1/2)^(1-z) at1 and use HasDerivAt.tendsto_slope on the left punctured filter. The first rational term tends to1; log(1/2)=-log2 gives the limit. The verified mathlib bound log_two_lt_d9 proves the numerical inequality.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open. The source asserts this supplement without a displayed derivation. The library supplies an analytic proof; it is not a newly attributed source proof.
Teaching dependencies
BanditRL.OnlineUnboundedOSD.phi
Exact Lean statement
theorem phi_limit : Tendsto phi (𝓝[<] (1 : ℝ)) (𝓝 (1 - Real.log 2)) ∧ (3 / 10 : ℝ) ≤ 1 - Real.log 2
Mathematics ↔ Lean

The printed scalar lower bound

Lean declarationBanditRL.OnlineUnboundedOSD.switching_scalar_lower_bound

Compiled

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.

Mathematical reading. Real alpha with0<alpha<1 and natural T>=2/((1-alpha)phi(alpha)); actual full-space scalar OSD, initial/comparator0, exact switching losses.
Intuition
Start from the exact scalar identity. Monotone/antitone sum-integral comparisons and integral_rpow give R>=-T^(1-alpha)/(1-alpha)+phi(alpha)T^(2-alpha). Control ceil/floor parity without discarding odd horizons. The proved horizon threshold absorbs the negative term into half the main coefficient.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Derived supporting theorem in the explicit witness proof.
Proof and Lean reading notes
Proof idea
Start from the exact scalar identity. Monotone/antitone sum-integral comparisons and integral_rpow give R>=-T^(1-alpha)/(1-alpha)+phi(alpha)T^(2-alpha). Control ceil/floor parity without discarding odd horizons. The proved horizon threshold absorbs the negative term into half the main coefficient.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open.
Teaching dependencies
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_identity
Exact Lean statement
theorem 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
Mathematics ↔ Lean

The same lower bound in a chosen unit direction

Lean declarationBanditRL.OnlineUnboundedOSD.switching_vector_lower_bound

Compiled

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.

Mathematical reading. 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.
Intuition
Use iterate_affine_prefix to identify the actual vector states with the scalar coefficient times v. Unit inner-product evaluation identifies the same canonical regrets. Invoke switching_scalar_lower_bound; no arbitrary prescribed vector trajectory is substituted.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Derived supporting theorem in the explicit witness proof.
Proof and Lean reading notes
Proof idea
Use iterate_affine_prefix to identify the actual vector states with the scalar coefficient times v. Unit inner-product evaluation identifies the same canonical regrets. Invoke switching_scalar_lower_bound; no arbitrary prescribed vector trajectory is substituted.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open. The displayed equality of scalar and vector regrets is established inside the proof; the public header concludes the lower bound.
Teaching dependencies
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_bound
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Theorem5.4: unbounded decreasing-step OSD can fail

Lean declarationBanditRL.OnlineUnboundedOSD.theorem_5_4

Compiled

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.

Mathematical reading. 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.
Intuition
Positive dimension supplies a unit vector using exists_norm_eq. Choose the actual switching loss witness. switching_loss_regular proves the required global regularity and switching_vector_lower_bound proves the actual run's regret. The separate phi_range and phi_limit terminals preserve the complete printed theorem content.
Why it is needed
Explain how polynomially decreasing steps can incur superlinear regret on an unbounded domain.
Place in the proof
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. Component of the one printed Theorem 5.4.
Proof and Lean reading notes
Proof idea
Positive dimension supplies a unit vector using exists_norm_eq. Choose the actual switching loss witness. switching_loss_regular proves the required global regularity and switching_vector_lower_bound proves the actual run's regret. The separate phi_range and phi_limit terminals preserve the complete printed theorem content.
Lean reading notes
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 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. Seven required Chapter 2 forward containers remain open. The total number of required chapter proofs is unknown. Whole-book acceptance remains open. At alpha=1/2, the seven-part scalar T=2 diagnostic checks steps 1 and 2^(-1/2), their positivity and decrease, states 0,1,1-2^(-1/2), and pre-update regret 1. This small horizon tests the identity rather than the lower-bound threshold. The nine-part T=64 diagnostic in R^2 checks the unit direction, first update, regularity of all played losses, phi(1/2)>=1/15, the exact threshold, the source-form bound, regret>=256/15 and regret>17, and the fully applied existential theorem. The T=2 and T=64 loss streams have different switch times. The final existential does not itself identify its witness with the earlier explicit test stream.
Teaching dependencies
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_bound
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Finite cumulative loss

Lean declarationBanditRL.OnlineFTLSelector.cumulative

Compiled

Plain-English statement. All finite history lengths including0, arbitrary X and real losses; no feasible-set or regularity premise.

Mathematical reading. All finite history lengths including0, arbitrary X and real losses; no feasible-set or regularity premise.
Intuition
Sum the supplied finite tuple. The empty sum is zero. cumulative_prefix later identifies the exact natural-index strict prefix.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Definition in the library realization of the one source rule.
Proof and Lean reading notes
Proof idea
Sum the supplied finite tuple. The empty sum is zero. cumulative_prefix later identifies the exact natural-index strict prefix.
Lean reading notes
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. 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.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
def cumulative (past : Fin n → X → ℝ) (x : X) : ℝ
Mathematics ↔ Lean

The complete feasible minimizer set

Lean declarationBanditRL.OnlineFTLSelector.minimizers

Compiled

Plain-English statement. All V, histories and points; V may be empty and the minimum need not be attained.

Mathematical reading. All V, histories and points; V may be empty and the minimum need not be attained.
Intuition
Include both membership and global minimum comparison on V. IsMinOn alone is not used as a replacement for feasibility.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Definition in the library realization of the one source rule.
Proof and Lean reading notes
Proof idea
Include both membership and global minimum comparison on V. IsMinOn alone is not used as a replacement for feasibility.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.cumulative
Exact Lean statement
def minimizers (V : Set X) (past : Fin n → X → ℝ) : Set X
Mathematics ↔ Lean

Conditional classical minimizer selection

Lean declarationBanditRL.OnlineFTLSelector.select

Compiled

Plain-English statement. All V and finite histories, with no nonemptiness or attainment premise.

Mathematical reading. All V and finite histories, with no nonemptiness or attainment premise.
Intuition
Branch on nonemptiness of exactly the minimizer set and use Classical.choose only in the successful branch. No default minimizer is fabricated.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Definition in the library realization of the one source rule.
Proof and Lean reading notes
Proof idea
Branch on nonemptiness of exactly the minimizer set and use Classical.choose only in the successful branch. No default minimizer is fabricated.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.minimizers
Exact Lean statement
def select (V : Set X) (past : Fin n → X → ℝ) : Option X
Mathematics ↔ Lean

FTL with the supplied feasible initial action

Lean declarationBanditRL.OnlineFTLSelector.predict

Compiled

Plain-English statement. A supplied subtype initial:V, arbitrary loss stream and natural time. Feasibility of the initial excludes empty V.

Mathematical reading. A supplied subtype initial:V, arbitrary loss stream and natural time. Feasibility of the initial excludes empty V.
Intuition
Use the given initial at zero; at positive time form Fin t from strict-past losses. Each query is recomputed from its prefix, not an absorbing Option recursion.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Definition in the library realization of the one source rule.
Proof and Lean reading notes
Proof idea
Use the given initial at zero; at positive time form Fin t from strict-past losses. Each query is recomputed from its prefix, not an absorbing Option recursion.
Lean reading notes
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. 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. The eight complete tests check the quadratic predictions 3/4,1/4,1/2 with feasible prefix minima; current/future independence; off-domain invariance; tied feasible minima without naming the chosen endpoint; an empty domain; an empty history and two different supplied initial actions; affine nonattainment on the nonempty closed convex real line; and a separately queried longer prefix with an attained square minimum. The last example gives no playable action at the failed prefix. 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. Seven required forward containers and whole-chapter reconciliation remain open. Chapter 2 stays partial and its proof denominator remains unknown.
Teaching dependencies
BanditRL.OnlineFTLSelector.select
Exact Lean statement
def predict (V : Set X) (initial : V) (loss : ℕ → X → ℝ) (t : ℕ) : Option X
Mathematics ↔ Lean

The exact strict-past sum convention

Lean declarationBanditRL.OnlineFTLSelector.cumulative_prefix

Compiled

Plain-English statement. All natural t including0, every stream and ambient point; no V premise.

Mathematical reading. All natural t including0, every stream and ambient point; no V premise.
Intuition
Use the finite-index/range sum identity to identify the same t summands. No loss argument, reordering approximation or normalization is changed.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
Use the finite-index/range sum identity to identify the same t summands. No loss argument, reordering approximation or normalization is changed.
Lean reading notes
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. 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.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem cumulative_prefix (loss : ℕ → X → ℝ) (t : ℕ) (x : X) : cumulative (fun i : Fin t => loss i.val) x = ∑ i ∈ range t, loss i x
Mathematics ↔ Lean

A successful selection is feasible and minimizes

Lean declarationBanditRL.OnlineFTLSelector.select_some_spec

Compiled

Plain-English statement. All V, finite histories and p; assumes the actual equality S_V(L)=some p.

Mathematical reading. All V, finite histories and p; assumes the actual equality S_V(L)=some p.
Intuition
Unfold the Option selector and split on existence of a feasible minimizer. The none branch cannot equal some p. In the success branch, some-injectivity identifies p with Classical.choose, whose witness gives both feasibility and global minimality.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
Unfold the Option selector and split on existence of a feasible minimizer. The none branch cannot equal some p. In the success branch, some-injectivity identifies p with Classical.choose, whose witness gives both feasibility and global minimality.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.minimizers, BanditRL.OnlineFTLSelector.select
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Failure means no feasible attained minimum

Lean declarationBanditRL.OnlineFTLSelector.select_none_iff

Compiled

Plain-English statement. All V and finite histories, including empty domains/history; no compactness premise.

Mathematical reading. All V and finite histories, including empty domains/history; no compactness premise.
Intuition
Split on nonemptiness of the minimizer set. In the nonempty branch both equality to none and negated existence are impossible. In the empty branch the function is definitionally none and the negated existential is exactly the branch hypothesis.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
Split on nonemptiness of the minimizer set. In the nonempty branch both equality to none and negated existence are impossible. In the empty branch the function is definitionally none and the negated existential is exactly the branch hypothesis.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.minimizers, BanditRL.OnlineFTLSelector.select
Exact Lean statement
theorem select_none_iff (V : Set X) (past : Fin n → X → ℝ) : select V past = none ↔ ¬ ∃ p, p ∈ V ∧ IsMinOn (cumulative past) V p
Mathematics ↔ Lean

Changing loss values outside V preserves selection

Lean declarationBanditRL.OnlineFTLSelector.select_congr

Compiled

Plain-English statement. Histories of the same length with EqOn(L_i,L_i',V) for every coordinate; tied minima permitted.

Mathematical reading. Histories of the same length with EqOn(L_i,L_i',V) for every coordinate; tied minima permitted.
Intuition
Sum per-index equality on feasible points to get equality of cumulative objectives on V. Prove equality of entire feasible minimizer sets by extensionality, transporting each minimizing inequality in both directions. Rewrite that set equality inside the literal classical selector. Equal sets induce equal fixed choices without assuming uniqueness.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
Sum per-index equality on feasible points to get equality of cumulative objectives on V. Prove equality of entire feasible minimizer sets by extensionality, transporting each minimizing inequality in both directions. Rewrite that set equality inside the literal classical selector. Equal sets induce equal fixed choices without assuming uniqueness.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.minimizers, BanditRL.OnlineFTLSelector.select
Exact Lean statement
theorem select_congr (V : Set X) (past past' : Fin n → X → ℝ) (h : ∀ i, EqOn (past i) (past' i) V) : select V past = select V past'
Mathematics ↔ Lean

A unique feasible minimum determines the actual output

Lean declarationBanditRL.OnlineFTLSelector.select_eq_some_of_unique

Compiled

Plain-English statement. A supplied feasible p, its actual IsMinOn proof and uniqueness among feasible minimizers. These are explicit adapter premises.

Mathematical reading. A supplied feasible p, its actual IsMinOn proof and uniqueness among feasible minimizers. These are explicit adapter premises.
Intuition
Case split the actual Option output. none contradicts the supplied feasible minimizing witness using failure equivalence. For some q, soundness supplies feasibility/minimality and uniqueness identifies q=p, then map equality through some.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
Case split the actual Option output. none contradicts the supplied feasible minimizing witness using failure equivalence. For some q, soundness supplies feasibility/minimality and uniqueness identifies q=p, then map equality through some.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.select, BanditRL.OnlineFTLSelector.select_none_iff, BanditRL.OnlineFTLSelector.select_some_spec
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Initialization preserves the chosen feasible first action

Lean declarationBanditRL.OnlineFTLSelector.predict_zero

Compiled

Plain-English statement. Arbitrary X,V, supplied initial:V and stream; no loss values inspected.

Mathematical reading. Arbitrary X,V, supplied initial:V and stream; no loss values inspected.
Intuition
Reduce the t=0 definition branch by reflexivity.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
Reduce the t=0 definition branch by reflexivity.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.predict
Exact Lean statement
theorem predict_zero (V : Set X) (initial : V) (loss : ℕ → X → ℝ) : predict V initial loss 0 = some (initial : X)
Mathematics ↔ Lean

Every successful prediction minimizes exactly its past

Lean declarationBanditRL.OnlineFTLSelector.predict_some_spec

Compiled

Plain-English statement. All natural t including0, feasible initial and actual equality P_t=some p.

Mathematical reading. All natural t including0, feasible initial and actual equality P_t=some p.
Intuition
At zero, identify p with initializer and prove the empty objective inequality for every feasible point. At positive t, use function extensionality plus cumulative_prefix, reduce the positive branch, and apply select_some_spec.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
At zero, identify p with initializer and prove the empty objective inequality for every feasible point. At positive t, use function extensionality plus cumulative_prefix, reduce the positive branch, and apply select_some_spec.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.cumulative_prefix, BanditRL.OnlineFTLSelector.predict, BanditRL.OnlineFTLSelector.predict_zero, BanditRL.OnlineFTLSelector.select, BanditRL.OnlineFTLSelector.select_some_spec
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Prediction failure has an exact prefix meaning

Lean declarationBanditRL.OnlineFTLSelector.predict_none_iff

Compiled

Plain-English statement. All natural t including0 and a feasible supplied initial; no regularity or attainment hypothesis.

Mathematical reading. All natural t including0 and a feasible supplied initial; no regularity or attainment hypothesis.
Intuition
At zero, equality some initializer=none is impossible; the initializer itself witnesses a minimum of the zero objective, contradicting the other side. At positive t, rewrite the finite-index objective as the prefix sum and apply select_none_iff.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
At zero, equality some initializer=none is impossible; the initializer itself witnesses a minimum of the zero objective, contradicting the other side. At positive t, rewrite the finite-index objective as the prefix sum and apply select_none_iff.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.cumulative, BanditRL.OnlineFTLSelector.cumulative_prefix, BanditRL.OnlineFTLSelector.predict, BanditRL.OnlineFTLSelector.predict_zero, BanditRL.OnlineFTLSelector.select, BanditRL.OnlineFTLSelector.select_none_iff
Exact Lean statement
theorem 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
Mathematics ↔ Lean

Strict-past feasible-domain causality

Lean declarationBanditRL.OnlineFTLSelector.predict_prefix

Compiled

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.

Mathematical reading. The SAME feasible initial and V; all s<t losses agree only on V. No equality of current/future or outside-V values.
Intuition
At zero both outputs equal the same initializer. Otherwise apply select_congr to the two Fin t prefixes, with each bounded index supplying i.val<t. This is extensional strict-prefix dependence; it does not implement acquisition of earlier loss functions from permitted feedback.
Why it is needed
Separate strict-past minimization, feasible initialization and the cases in which no action is returned.
Place in the proof
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. Derived library property of the partial selector; not a separately printed source theorem.
Proof and Lean reading notes
Proof idea
At zero both outputs equal the same initializer. Otherwise apply select_congr to the two Fin t prefixes, with each bounded index supplying i.val<t. This is extensional strict-prefix dependence; it does not implement acquisition of earlier loss functions from permitted feedback.
Lean reading notes
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. 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.
Teaching dependencies
BanditRL.OnlineFTLSelector.predict, BanditRL.OnlineFTLSelector.predict_zero, BanditRL.OnlineFTLSelector.select, BanditRL.OnlineFTLSelector.select_congr
Exact Lean statement
theorem 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
Mathematics ↔ LeanClosest local match to the source theorem

A right-endpoint sum is bounded by its integral

Lean declarationBanditRL.OnlineAdaptiveSummation.lemma_4_13

Compiled

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.

Mathematical reading. 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.
Intuition
Each interval contributes a rectangle at its right endpoint. As f decreases across the interval, the rectangle fits under the curve.
Why it is needed
Bound a weighted finite sum even when some increments vanish.
Place in the proof
Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10, Lemma 4.13, printed p. 40 (PDF p. 52). This estimate supplies the integration step in the analysis of adaptive rates.
Proof and Lean reading notes
Proof idea
Nonnegative increments order all cumulative endpoints inside the nonnegative half-line. Restrict the given continuity to each compact increment interval to obtain integrability. Antitonicity bounds the constant right-endpoint value by f(x) on that interval. Its integral is the actual increment times the right-endpoint value. Sum these comparisons and telescope the adjacent integrals; repeated endpoints and the empty horizon require no division or special positivity assumption.
Lean reading notes
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 proof uses ContinuousOn.intervalIntegrable_of_Icc, intervalIntegral.integral_mono_on, intervalIntegral.integral_const, and intervalIntegral.sum_integral_adjacent_intervals. The compiled proof has no direct dependency on an earlier ABRL theorem. Each of the three inequality proofs in the two canaries directly references Lemma 4.13. These are direct references in the compiled proof terms. Two library canaries illustrate the boundaries. For c=0, increments (1/2,0,1/2) and f(x)=max(1−x,0), the right-endpoint sum is 1/4 and the integral is 1/2. Starting at 2, f(x)=max(3−x,0) has value 1 there. With horizon zero and unit increments, the sum is empty and the integral is from 2 to 2. With horizon three and zero increments, each rectangle has width zero and the integral is again from 2 to 2. Both comparisons read 0 ≤ 0.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
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
Mathematics ↔ LeanClosest local match to the source theorem

A telescoping bound for feedback energy

Lean declarationBanditRL.OnlineAdaptiveEnergy.source_energy_term_bound

Compiled

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.

Mathematical reading. 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.
Intuition
A positive increment increases both cumulative energy and its square root. Its normalized size is bounded by twice that increase in the square root. Adding across rounds cancels the intermediate square roots.
Why it is needed
Multiplying the scalar estimate by half the diameter bound gives the energy term in the adaptive OSD analysis.
Place in the proof
Orabona derives this display after Lemma 4.13 on printed page 40. The book applies the integral inequality with a positive offset and lets the offset approach zero. 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.
Proof and Lean reading notes
Proof idea
Write S for the sum before the round and add the current nonnegative increment a. When S+a is positive, the square-root supporting line bounds a/√(S+a) by twice the difference √(S+a)−√S. When S+a is zero, both S and a vanish. Summation telescopes. Substitute squared norms and multiply by D/2.
Lean reading notes
The book numbers rounds from 1. Lean starts at 0 and includes the current round in every denominator. The norm can be any norm on an additive commutative group. Lean assigns zero to the quotient at a zero prefix, matching the contribution of the rounds skipped in the book. For feedback [0,3,0,4], the squared norms total 25 and the normalized sum is 31/5. With D=2 the three-round prefix bound is 6. Adding the final term 16/5 gives an upper bound of 46/5, strictly below 10. A second test covers the empty horizon, an all-zero stream and D=0 with nonzero feedback.
Teaching dependencies
BanditRL.OnlineAdaptiveEnergy.norm_sq_sum_div_sqrt_prefix
Exact Lean statement
theorem 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)
Mathematics ↔ LeanClosest local match to the source theorem

Causal adaptive OSD retains the terminal-distance residual

Lean declarationBanditRL.OnlineAdaptiveOSD.regret_bound

Compiled

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.

Mathematical reading. 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.
Intuition
Projection can discard part of a trial step. The squared distance to a feasible comparator records how much progress survives projection.
Why it is needed
The last prediction still carries geometric information. Keeping its distance to the comparator can sharpen the regret estimate on an actual trajectory.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
Bound each loss difference by the supporting plane at the played point. The projection inequality gives a difference of squared distances plus a normalized feedback term. Sum by parts with nondecreasing energy weights, keep the final distance, and apply the cumulative energy bound. If the diameter bound is zero, all feasible plays and the comparator coincide. The potential is squared comparator distance, its upper bound at played points is the squared diameter bound, and its weights are nonnegative and nondecreasing. Summation by parts uses the last weight only for a nonempty run. Printed page 14 already includes the factors of one half and the negative terminal-distance term.
Lean reading notes
Fix the policy before the run. At time t the prediction uses only the complete earlier loss functions. The selector then receives t, those earlier functions, the play history through the new prediction, and the current loss. It must return a global supporting subgradient at the actual prediction. A uniform oracle satisfies this requirement on every admissible history. The canonical selector uses mathematical choice. For each t before T the extended-real loss is proper and has a global supporting subgradient at every feasible point. The predictions and comparator are feasible, so all evaluated losses are finite. The comparator is fixed. The two source specializations also assume convex losses. The final prediction indexed T in Lean corresponds to the source point indexed T + 1. With no rounds, regret is zero. For D = 0 the feasible set is a singleton and regret is zero, even with positive energy. With zero realized energy and D positive, each selected support is zero and regret is at most zero. Zero feedback always keeps the play fixed. The step formula below uses a positive energy denominator; the Lean rate is totalized to zero when the prefix energy is zero.
Teaching dependencies
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_prefix
Exact Lean statement
theorem 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)
Mathematics ↔ LeanClosest local match to the source theorem

The alpha-one adaptive run has the three-halves bound

Lean declarationBanditRL.OnlineAdaptiveOSD.source_eq4_4

Compiled

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.

Mathematical reading. 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.
Intuition
Small past energy allows a larger step. Including the current gradient in the denominator controls the size of its own update.
Why it is needed
This specialization gives the explicit constant in equation (4.4) for the predictions produced by that update.
Place in the proof
Equation (4.4) appears on printed page 40, following the adaptive energy calculation. Its comparator is evaluated along the scale-one trajectory.
Proof and Lean reading notes
Proof idea
Apply the general bound with scale one. Its two positive terms have coefficients one half and one. Dropping the nonnegative deduction gives three halves. For the unit interval with initial play one half, comparator zero and linear losses with slopes 0, 3, 0, −4, the final play is 4/5 and final energy is 25. The regret is 3/2, the bound retaining the final distance is 59/10, and equation (4.4) gives 15/2. The full play sequence is 1/2, 1/2, 0, 0, 4/5. The final squared distance to zero is 16/25.
Lean reading notes
Losses are proper and admit global supports throughout the feasible set. A legal policy can use earlier losses, the play history and the current loss when selecting feedback. A canonical support selector uses mathematical choice. A later zero gradient keeps the play fixed even if the computed rate is positive. With no rounds, regret is zero. For D = 0 the feasible set is a singleton and regret is zero, even with positive energy. With zero realized energy and D positive, each selected support is zero and regret is at most zero. Zero feedback always keeps the play fixed. The step formula below uses a positive energy denominator; the Lean rate is totalized to zero when the prefix energy is zero.
Teaching dependencies
BanditRL.OnlineAdaptiveOSD.regret_bound
Exact Lean statement
theorem 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)
Mathematics ↔ LeanClosest local match to the source theorem

The optimized adaptive coefficient and the infimum boundary

Lean declarationBanditRL.OnlineAdaptiveBenchmark.source_theorem4_14_infimum

Compiled

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.

Mathematical reading. 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.
Intuition
When both terms are positive, increasing the fixed step reduces one term and increases the other. On either zero axis only one of the terms remains.
Why it is needed
The comparison explains the factor of square root two and identifies exactly when a positive fixed step realizes the benchmark.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
The tuned scale makes the two positive terms equal. For positive diameter D and energy S, the unique minimizing fixed step is D divided by the square root of S. With D positive and S zero, the benchmark approaches zero as the step grows. With D zero and S positive, it approaches zero as the step shrinks. Neither axis admits a positive minimizing step. At D and S both zero, every positive step attains zero. The lower bound follows by expanding the square of D minus the step times the square root of S. On each mixed-zero axis, doubling or halving a positive step strictly lowers its objective. With the same four affine slopes the tuned run has bound √50. Its energy is also 25 because the slopes are fixed independently of the play. Generally each scale has its own feedback history.
Lean reading notes
The regret inequality retains the printed statement. The infimum correction applies to the scalar positive-step comparison. Its energy is fixed after observing the tuned trajectory. Changing the scale can change the predictions, selected feedback and total energy. A singleton with nonzero linear feedback realizes D = 0 and S = 9. A unit interval with zero losses realizes D = 1 and S = 0.
Teaching dependencies
BanditRL.OnlineAdaptiveOSD.source_theorem4_14, BanditRL.OnlineAdaptiveOSD.energy_nonneg, BanditRL.OnlineAdaptiveBenchmark.source_benchmark_value
Exact Lean statement
theorem 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) η}
Mathematics ↔ LeanClosest local match to the source theorem

Why decreasing-step OGD can fail without a bounded domain

Lean declarationBanditRL.OnlineUnboundedOGD.regret_lower_bound

Compiled

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.

Mathematical reading. 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.
Intuition
Larger early steps move the learner along a unit direction; after the affine slope switches halfway through, smaller later steps make the return too slow. The proof tracks the actual gradient trajectory.
Why it is needed
The example shows where a bounded-domain assumption matters in a decreasing-step OGD regret guarantee.
Place in the proof
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.
Proof and Lean reading notes
Proof idea
Choose a unit vector and use its negative as the loss gradient for the first half of the rounds, rounding up. Then reverse the sign. The two update rules start at zero and take identical steps on every round. Their losses before each update agree, so the lower bound for the subgradient run gives the displayed bound for the gradient run.
Lean reading notes
The space is a nontrivial finite-dimensional real inner-product space. Both the initial point and comparator are zero. Lean index 0 denotes the first play and the step at index t is (t+1) raised to the power −α. The switch time depends on the horizon.
Teaching dependencies
BanditRL.OnlineGradientDescentSource.gradient_linear, BanditRL.OnlineUnboundedOSD.currentSubgradient_affine, BanditRL.OnlineUnboundedOSD.switching_loss_regular, BanditRL.OnlineUnboundedOSD.switching_vector_lower_bound
Exact Lean statement
theorem 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

Maintainer contract

Open the canonical completion definition and blockers

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.

Remaining blockers

  • The remaining Chapter 2 statements, examples and exercises require separate integration and acceptance.
  • General subgradient, linearization and prescient obligations retain their separately stated scope. This package includes the specific Theorem 5.4 unbounded decreasing-step OSD dependency. Seven forward containers still require source reconciliation and chapter acceptance.

Chapter implementation status

The compact summary keeps the reading route visible. Open it for source-linked declarations and exact remaining gaps.

Open 0 implementation records0 compiled · 0 partial · 0 blocked · 0 planned
MilestoneStatusLean declarationRemaining gap

Open boundaries

  • The rest of Chapter 2 and Chapters 1–16 remain incomplete.
  • General OMD, FTRL and Tsallis guarantees are separate routes.

All Lean modules in this chapter

Open the complete module list (19 modules)