Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.
Teaching chapter 27 of 31 · Canonical route compiled
Absolute-loss guessing by projected subgradient descent
The full absolute-loss support set gives projected updates and square-root regret for canonical and played-legal finite-history policies.
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 Orabona Example 2.32.
Learning goals
Keep every support in [-1,1] when prediction equals the label.
Predict before feedback, then apply the actual selected support and interval projection.
Derive a same-run bound for every fixed comparator while retaining the sharp terminal-distance term.
Distinguish a horizon-indexed one-sided average bound from convergence of signed regret.
Distinguish support legality along the actual history from a universal off-path selector law.
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
Example 2.32, Algorithm 2.2 and its Theorem 2.13 transfer
Canonical absolute-loss OSDComplete ambient support-set equality for every real x and y, including all tie slopes. This card states no trajectory or cumulative-regret guarantee.
A matched prediction admits every slope between -1 and 1. Away from a match the supporting slope is unique.
Model
Literal absolute loss on all real x,y and its ambient global subdifferential.
Assumptions
Arbitrary real x and y; the supporting inequality is tested against every real comparison point, including outside [0,1].
Algorithm parameters
No horizon, rate, feasible-point or selected-support parameter appears in this equality.
Regret notion
Pointwise equality of sets, before a trajectory or cumulative regret is introduced.
Guarantee
Exact equality of the global subdifferential sets, including both interval endpoints at a tie.
Source mathematical statement.Formula renderer unavailable; readable fallback: A matched prediction admits every slope between -1 and 1. Away from a match the supporting slope is unique.\(\partial |x-y|=\begin{cases}\{1\}&x>y,\\{[-1,1]}&x=y,\\\{-1\}&x<y.\end{cases}\)Swipe to read the full formula →
BanditRLlib relationship. The source prints the full equality. The library proves it for arbitrary real x and y by translating the global absolute-value support condition. Theorem 2.28 alone gives only one inclusion.
The mathematical content is restated in this site's notation; wording is ours. See printed20; dependencies printed1-3,13-15,16-19 in the linked source for the original statement and full assumptions.
Derived library resultThe actual canonical update, expressed as a clampCanonical absolute-loss OSDprinted20; dependencies printed1-3,13-15,16-19+
Canonical absolute-loss OSDCanonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
After the label is revealed, the shared selector chooses a global support at the current point and the genuine nearest-point projection clamps its update.
Model
Shared canonical selected-support update and actual nearest projection onto [0,1], applied at any real point and label.
Assumptions
The algebraic clamp and prefix identities have no positivity or feasibility premise. The selected-norm helper retains a feasible current point.
Algorithm parameters
The clamp identity allows every real eta; strict-prefix equality fixes the same initial point and compares labels/rates before t.
Regret notion
These are update and causality identities, not regret estimates.
Guarantee
The clamp identity holds for arbitrary real eta, label and current point. Prefix equality holds for equal strict-prefix labels and rates. Performance requires the separate feasible positive-horizon assumptions.
Derived mathematical statement.Formula renderer unavailable; readable fallback: After the label is revealed, the shared selector chooses a global support at the current point and the genuine nearest-point projection clamps its update.\(X_{t+1}=\min\{1,\max\{0,X_t-\eta_tG(f_t,X_t)\}\}.\)Swipe to read the full formula →
BanditRLlib relationship. This is the canonical-selector instantiation of Algorithm2.2, using the interval projection identity of Example2.14. The history-policy specialization below preserves the actual projected recurrence while allowing any legal tie choice.
This displayed statement is derived in the library. The linked printed20; dependencies printed1-3,13-15,16-19 supplies its source context; this explicit statement is not printed there as-is.
Canonical absolute-loss OSDCanonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
One prescribed run competes with every fixed comparator in [0,1]. The interval diameter and all-support norm bound are both one.
Model
Scalar real predictions and labels in [0,1]; the literal loss is |x-y|, embedded finitely in EReal.
Assumptions
Feasible initial point and comparator; label feasibility on the played prefix for the finite bound, on all rounds for the eventual corollary. Properness, global support existence, selected-support norm and regret bounds are proved from the loss.
Algorithm parameters
Source round1 is Lean index0. For positive known T, eta=1/sqrt(T) is constant during that run. The same run is compared with every u. At a tie the canonical support lies in the full interval [-1,1]; its value is unspecified.
Regret notion
R_T(u)=sum from t=0 to T-1 of |X_t-y_t|-|u-y_t|. It is signed. The source permits choosing y_t after observing X_t; the deterministic bound applies to each resulting label sequence.
Guarantee
R_T(u)<=sqrt(T). Dividing by T gives an eventual upper-epsilon inequality along separately tuned horizon runs. The finite theorem retains the source label premise even though the proof does not use it.
Derived explicit guarantee.Formula renderer unavailable; readable fallback: One prescribed run competes with every fixed comparator in [0,1]. The interval diameter and all-support norm bound are both one.\(\eta=1/\sqrt T,\quad R_T(u)\le\sqrt T\quad(T>0,\ u\in[0,1]).\)Swipe to read the full formula →
BanditRLlib relationship. Example 2.32 states O(sqrt(T)) regret using the optimal rate. The displayed numerical constant and eta are derived by substituting D=G=1 into the preceding OSD/Theorem 2.13 tuning bound, rather than quoted as a printed formula.
This displayed statement is derived in the library. The linked printed20; dependencies printed1-3,13-15,16-19 supplies its source context; this explicit statement is not printed there as-is.
Derived library resultDerived one-sided average guaranteeCanonical absolute-loss OSDprinted20; dependencies printed1-3,13-15,16-19+
Canonical absolute-loss OSDCanonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
The upper envelope 1/sqrt(T) vanishes. Actual signed average regret is eventually below each positive epsilon.
Model
Scalar real predictions and labels in [0,1]; the literal loss is |x-y|, embedded finitely in EReal.
Assumptions
Fixed globally feasible label sequence, feasible initial point, fixed feasible comparator u and epsilon>0.
Algorithm parameters
At each positive horizon T a separate run uses eta_T=1/sqrt(T). T=0 is outside the finite guarantee and immaterial to eventuality.
Regret notion
R_T(u)=sum from t=0 to T-1 of |X_t-y_t|-|u-y_t|. It is signed. The source permits choosing y_t after observing X_t; the deterministic bound applies to each resulting label sequence.
Guarantee
For fixed labels, initial point, comparator and epsilon>0, the signed average of the separately tuned runs is eventually <epsilon.
Derived mathematical statement.Formula renderer unavailable; readable fallback: The upper envelope 1/sqrt(T) vanishes. Actual signed average regret is eventually below each positive epsilon.\(\forall\epsilon>0,\quad R_T^{(T)}(u)/T<\epsilon\quad\text{eventually}.\)Swipe to read the full formula →
BanditRLlib relationship. This is a library corollary of the finite bound. Each horizon selects its own constant-rate run. A one-sided inequality supplies no lower bound and does not establish signed convergence to zero or one anytime trajectory.
This displayed statement is derived in the library. The linked printed20; dependencies printed1-3,13-15,16-19 supplies its source context; this explicit statement is not printed there as-is.
Derived instantiation of source guaranteeHistory policies: one run, every comparatorPlayed-legal absolute-loss policyprinted20/PDF32; fixed-rate transfer printed13-15,19+
Played-legal absolute-loss policyCanonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
Any history-dependent tie choices are allowed when they are legal at the actual played points. The all-support bound is proved from the shared absolute-loss support set.
Model
Scalar absolute loss f_t(x)=|x-y_t| on the whole real line, shared nearest projection onto [0,1], and a fixed deterministic policy p receiving finite past losses/outputs and the current whole loss.
Assumptions
T is a positive integer, X0 is feasible, all played labels lie in [0,1], and every actual selected g_t is an ambient global support at the actual X_t. No universal off-path OracleLaw or supplied norm/regret bound is required.
Algorithm parameters
Use eta_T=1/sqrt(T) throughout the actual T-round run. Policy and initialization are held fixed across comparators; Lean index0 is source round1.
Regret notion
Signed sum R_T^p(u)=sum_(t<T)(|X_t-y_t|-|u-y_t|), compared with each fixed u in [0,1]. Source permits labels chosen after seeing the current prediction; the formal result is deterministic for the resulting exogenous sequence.
Guarantee
The same played-legal T-tuned run satisfies R_T^p(u)<=sqrt(T) for every feasible u.
Derived explicit guarantee.Formula renderer unavailable; readable fallback: Any history-dependent tie choices are allowed when they are legal at the actual played points. The all-support bound is proved from the shared absolute-loss support set.\(T>0,\quad\eta_T=1/\sqrt T,\quad\mathcal L_T\quad\Longrightarrow\quad\forall u\in[0,1],\ R_T^{p,(T)}(u)\le\sqrt T.\)Swipe to read the full formula →
BanditRLlib relationship. Example2.32 prints O(sqrt(T)). The numerical constant follows from the fixed-rate OSD transfer with diameter and selected-support bound both one. The explicit policy interface and eventual family consequence are library refinements.
This displayed statement is derived in the library. The linked printed20/PDF32; fixed-rate transfer printed13-15,19 supplies its source context; this explicit statement is not printed there as-is.
Derived instantiation of source guaranteeHistory-policy families: eventual upper averagePlayed-legal absolute-loss policyprinted20/PDF32; fixed-rate transfer printed13-15,19+
Played-legal absolute-loss policyCanonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
Hold the policy, labels, initial point and comparator fixed, and apply the finite bound to each separately prescribed horizon.
Model
Scalar absolute loss f_t(x)=|x-y_t| on the whole real line, shared nearest projection onto [0,1], and a fixed deterministic policy p receiving finite past losses/outputs and the current whole loss.
Assumptions
Fixed policy p, globally feasible label sequence y, feasible X0 and comparator u, and epsilon>0. For every positive T the separately T-tuned run has legal played supports.
Algorithm parameters
The same p,y,X0 are used across the horizon family; eta_T=1/sqrt(T) can change early predictions when T changes.
Regret notion
Signed sum R_T^p(u)=sum_(t<T)(|X_t-y_t|-|u-y_t|), compared with each fixed u in [0,1]. Source permits labels chosen after seeing the current prediction; the formal result is deterministic for the resulting exogenous sequence.
Guarantee
Eventually in integer T, R_T^{p,(T)}(u)/T<epsilon. This is one-sided upper control; it is neither signed convergence nor an absolute-regret bound nor a single anytime trajectory.
Derived explicit guarantee.Formula renderer unavailable; readable fallback: Hold the policy, labels, initial point and comparator fixed, and apply the finite bound to each separately prescribed horizon.\(\bigl[\forall T>0,\ \mathcal L_T^{(T)}\bigr]\quad\Longrightarrow\quad\forall\varepsilon>0,\ \frac{R_T^{p,(T)}(u)}T<\varepsilon\quad\text{eventually}.\)Swipe to read the full formula →
BanditRLlib relationship. Example2.32 prints O(sqrt(T)). The numerical constant follows from the fixed-rate OSD transfer with diameter and selected-support bound both one. The explicit policy interface and eventual family consequence are library refinements.
This displayed statement is derived in the library. The linked printed20/PDF32; fixed-rate transfer printed13-15,19 supplies its source context; this explicit statement is not printed there as-is.
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. 12 additional dependency, extension, or research-frontier notes are grouped below.
Plain-English statement. For arbitrary real x,y, the two strict cases and the full tie interval exhaust the global support set.
Mathematical reading.Formula renderer unavailable; readable fallback: For arbitrary real x,y, the two strict cases and the full tie interval exhaust the global support set.\(\partial |x-y|=\begin{cases}\{1\}&x>y,\\{[-1,1]}&x=y,\\\{-1\}&x<y.\end{cases}\)Swipe to read the full formula →
Intuition
For arbitrary real x,y, the two strict cases and the full tie interval exhaust the global support set.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Split the order cases and compose the three support equalities.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
theorem example_2_32_subdifferential (y x : ℝ) : SourceSubdifferential (loss y) x = if y < x then {(1 : ℝ)} elseif x = y then Icc (-1 : ℝ) 1else {(-1 : ℝ)}
Plain-English statement. For positive T, feasible initialization and played labels, one eta=1/sqrt(T) run satisfies R_T(u)<=sqrt(T) for every feasible u.
Mathematical reading.Formula renderer unavailable; readable fallback: For positive T, feasible initialization and played labels, one eta=1/sqrt(T) run satisfies R_T(u)<=sqrt(T) for every feasible u.\(T\in\mathbb N_{>0},\quad x_0\in[0,1],\quad \forall t<T,\ y_t\in[0,1],\quad \eta_T=1/\sqrt T:\qquad \forall u\in[0,1],\ R_T^{(T)}(u):=\sum_{t<T}\bigl(|X_t^{(T)}-y_t|-|u-y_t|\bigr)\le\sqrt T.\)Swipe to read the full formula →
Intuition
For positive T, feasible initialization and played labels, one eta=1/sqrt(T) run satisfies R_T(u)<=sqrt(T) for every feasible u.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Produce diameter1, proper losses and the actual selected norm bound; instantiate shared OSD tuning.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Plain-English statement. Feasible initialization and played labels, positive prescribed T and played legality on the actual T-tuned run yield the same-run all-comparator constant-one bound.
Mathematical reading.Formula renderer unavailable; readable fallback: Feasible initialization and played labels, positive prescribed T and played legality on the actual T-tuned run yield the same-run all-comparator constant-one bound.\(X_0\in[0,1],\ T>0,\ (\forall t<T,\ y_t\in[0,1]),\ \mathcal L_T^{(T)},\ \eta_T=1/\sqrt T\ \Longrightarrow\ \forall u\in[0,1],\ R_T^{p,(T)}(u)\le\sqrt T.\)Swipe to read the full formula →
Intuition
The policy receives whole functions and the actual finite history after prediction. Played legality is sufficient; the optional law for all off-path queries is stronger.
Why it is needed
An explicit absolute-loss specialization of the shared policy interface, with no duplicated loss, support or projection definition.
Place in the proof
Orabona v10 Example2.32 printed20/PDF32. Two helpers and two explicit refinements of one printed example.
Proof and Lean reading notes
Proof idea
Prove diameter1 and selected norm1 from the actual loss and instantiate generic policy tuning.
Lean reading notes
The original declaration and proof are preserved. Finite tuning retains the source label-feasibility premise although that binder is not used by its proof. The eventual result fixes policy and labels across separately prescribed horizons. Mathlib supplies the numerical reciprocal-square-root limit. Canonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
Plain-English statement. Fix p,y,X0 and a feasible comparator. Assume globally feasible labels and legal feedback for every positive T-tuned run. The signed average is eventually below every positive epsilon.
Mathematical reading.Formula renderer unavailable; readable fallback: Fix p,y,X0 and a feasible comparator. Assume globally feasible labels and legal feedback for every positive T-tuned run. The signed average is eventually below every positive epsilon.\(X_0,u\in[0,1],\ (\forall t,\ y_t\in[0,1]),\ (\forall T>0,\ \mathcal L_T^{(T)}),\ \varepsilon>0\ \Longrightarrow\ \exists N_0,\ \forall T\ge N_0,\ R_T^{p,(T)}(u)/T<\varepsilon.\)Swipe to read the full formula →
Intuition
The policy receives whole functions and the actual finite history after prediction. Played legality is sufficient; the optional law for all off-path queries is stronger.
Why it is needed
An explicit absolute-loss specialization of the shared policy interface, with no duplicated loss, support or projection definition.
Place in the proof
Orabona v10 Example2.32 printed20/PDF32. Two helpers and two explicit refinements of one printed example.
Proof and Lean reading notes
Proof idea
Divide the actual finite bound by positive T and use the reciprocal-square-root upper envelope.
Lean reading notes
The original declaration and proof are preserved. Finite tuning retains the source label-feasibility premise although that binder is not used by its proof. The eventual result fixes policy and labels across separately prescribed horizons. Mathlib supplies the numerical reciprocal-square-root limit. Canonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
Plain-English statement. The global support set of |x-y| at x equals that of |r| at r=x-y, for arbitrary real x,y.
Mathematical reading.Formula renderer unavailable; readable fallback: The global support set of |x-y| at x equals that of |r| at r=x-y, for arbitrary real x,y.\(f_y(z):=|z-y|,\qquad \partial f_y(x)=\partial|\cdot|(x-y)\quad(x,y\in\mathbb R).\)Swipe to read the full formula →
Intuition
The global support set of |x-y| at x equals that of |r| at r=x-y, for arbitrary real x,y.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Change the global comparison variable by translation in both directions.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Teaching dependencies
BanditRL.OnlineGuessingSubgradient.loss
Exact Lean statement
theorem loss_subdifferential_translate (y x : ℝ) : SourceSubdifferential (loss y) x = SourceSubdifferential (fun z : ℝ => ((|z| : ℝ) : EReal)) (x - y)
Plain-English statement. For y<x the entire support set is the singleton {1}.
Mathematical reading.Formula renderer unavailable; readable fallback: For y<x the entire support set is the singleton {1}.\(x,y\in\mathbb R,\quad y<x\quad\Longrightarrow\quad\partial f_y(x)=\{1\}.\)Swipe to read the full formula →
Intuition
For y<x the entire support set is the singleton {1}.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Translate, then apply the positive absolute-value support equality.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Plain-English statement. At x=y the entire support set is [-1,1], including nonzero supports and both endpoints.
Mathematical reading.Formula renderer unavailable; readable fallback: At x=y the entire support set is [-1,1], including nonzero supports and both endpoints.\(\partial f_y(y)=[-1,1]\qquad(y\in\mathbb R).\)Swipe to read the full formula →
Intuition
At x=y the entire support set is [-1,1], including nonzero supports and both endpoints.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Translate to zero and use the full interval characterization.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Plain-English statement. For x<y the entire support set is the singleton {-1}.
Mathematical reading.Formula renderer unavailable; readable fallback: For x<y the entire support set is the singleton {-1}.\(x,y\in\mathbb R,\quad x<y\quad\Longrightarrow\quad\partial f_y(x)=\{-1\}.\)Swipe to read the full formula →
Intuition
For x<y the entire support set is the singleton {-1}.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Translate, then apply the negative absolute-value support equality.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Plain-English statement. Every real label gives a proper absolute loss with a nonempty global support at every feasible point.
Mathematical reading.Formula renderer unavailable; readable fallback: Every real label gives a proper absolute loss with a nonempty global support at every feasible point.\(\operatorname{Proper}(f_y)\ \land\ \bigl(\forall x\in[0,1],\ \partial f_y(x)\ne\varnothing\bigr)\qquad(y\in\mathbb R).\)Swipe to read the full formula →
Intuition
Every real label gives a proper absolute loss with a nonempty global support at every feasible point.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Finite loss values prove properness; the three cases exhibit a support.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Plain-English statement. Every global support at any real prediction and label has norm at most1.
Mathematical reading.Formula renderer unavailable; readable fallback: Every global support at any real prediction and label has norm at most1.\(x,y,g\in\mathbb R,\quad g\in\partial f_y(x)\quad\Longrightarrow\quad |g|\le1.\)Swipe to read the full formula →
Intuition
Every global support at any real prediction and label has norm at most1.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
The singleton cases have norm1; the tie interval gives the same bound.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Plain-English statement. At a feasible current point the canonical support selected for any real label has norm at most1.
Mathematical reading.Formula renderer unavailable; readable fallback: At a feasible current point the canonical support selected for any real label has norm at most1.\(y\in\mathbb R,\quad x\in[0,1]\quad\Longrightarrow\quad |G(f_y,x)|\le1.\)Swipe to read the full formula →
Intuition
At a feasible current point the canonical support selected for any real label has norm at most1.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Produce support membership through the shared interface, then apply the all-support bound.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Plain-English statement. For arbitrary real rate, label and point, the actual step equals min(max(x-eta*G(f,x),0),1).
Mathematical reading.Formula renderer unavailable; readable fallback: For arbitrary real rate, label and point, the actual step equals min(max(x-eta*G(f,x),0),1).\(\operatorname{step}_{[0,1]}(\eta,f_y,x)=\min\{\max\{x-\eta G(f_y,x),0\},1\}\qquad(\eta,y,x\in\mathbb R).\)Swipe to read the full formula →
Intuition
For arbitrary real rate, label and point, the actual step equals min(max(x-eta*G(f,x),0),1).
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Unfold the shared step and its exact interval projection.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
theorem loss_step_clamp (η y x : ℝ) : step BanditRL.OnlineGradientDescent.unitInterval η (loss y) x = min (max (x - η * currentSubgradient (loss y) x) 0) 1
Plain-English statement. Equal rates and labels before t give equal outputs at t from the same initial point.
Mathematical reading.Formula renderer unavailable; readable fallback: Equal rates and labels before t give equal outputs at t from the same initial point.\(\bigl[\forall s<t,\ \eta_s=\eta_s^{\prime}\ \land\ y_s=y_s^{\prime}\bigr]\ \Longrightarrow\ X_t(x_0;\eta,y)=X_t(x_0;\eta^{\prime},y^{\prime}).\)Swipe to read the full formula →
Intuition
Equal rates and labels before t give equal outputs at t from the same initial point.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Apply the shared recursive prefix theorem to the equal prefix losses.
Lean reading notes
The complete original declaration and proof remain unchanged; source assumptions and wider helper domains are described in the adjacent cards.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.iterate_prefix
Exact Lean statement
theorem guessing_prefix (η η' : ℕ → ℝ) (y y' : ℕ → ℝ) (x₁ : ℝ) (t : ℕ) (hη : ∀ s < t, η s = η' s) (hy : ∀ s < t, y s = y' s) : iterate BanditRL.OnlineGradientDescent.unitInterval η (fun s => loss (y s)) x₁ t = iterate BanditRL.OnlineGradientDescent.unitInterval η' (fun s => loss (y' s)) x₁ t
Plain-English statement. With globally feasible labels, the signed average regret against each fixed feasible comparator is eventually below every positive epsilon across separately tuned runs.
Mathematical reading.Formula renderer unavailable; readable fallback: With globally feasible labels, the signed average regret against each fixed feasible comparator is eventually below every positive epsilon across separately tuned runs.\(x_0,u\in[0,1],\quad (\forall t,\ y_t\in[0,1]),\quad\varepsilon>0\quad\Longrightarrow\quad\exists N\ge1,\ \forall T\ge N,\ \frac{R_T^{(T)}(u)}{T}<\varepsilon,\qquad\eta_T=1/\sqrt T.\)Swipe to read the full formula →
Intuition
With globally feasible labels, the signed average regret against each fixed feasible comparator is eventually below every positive epsilon across separately tuned runs.
Why it is needed
Explains one part of the canonical Example 2.32 integration.
Place in the proof
Orabona v10 Example 2.32, printed20/PDF32, with library support and derived specializations distinguished.
Proof and Lean reading notes
Proof idea
Divide the finite guarantee by positive T and use the reciprocal-square-root limit.
Lean reading notes
The eventual conclusion is one-sided; Mathlib Real.tendsto_sqrt_atTop and tendsto_inv_atTop_zero supply the numerical envelope limit.
Teaching dependencies
BanditRL.OnlineGuessingSubgradient.example_2_32
Exact Lean statement
theorem example_2_32_average_eventually (y : ℕ → ℝ) (x₁ : ℝ) (hx₁ : x₁ ∈ Icc (0 : ℝ) 1) (hy : ∀ t, y t ∈ Icc (0 : ℝ) 1) (u : ℝ) (hu : u ∈ Icc (0 : ℝ) 1) (ε : ℝ) (hε : 0 < ε) : ∀ᶠ T : ℕ in atTop, (∑ t ∈ range T, (|iterate BanditRL.OnlineGradientDescent.unitInterval (fun _ => 1 / Real.sqrt T) (fun s => loss (y s)) x₁ t - y t| - |u - y t|)) / T < ε
Plain-English statement. For arbitrary real labels, initialization and step schedule, legality of the actual selected supports through T implies norm at most1 at each t<T.
Mathematical reading.Formula renderer unavailable; readable fallback: For arbitrary real labels, initialization and step schedule, legality of the actual selected supports through T implies norm at most1 at each t<T.\(\mathcal L_T\ \land\ t<T\quad\Longrightarrow\quad |g_t|\le1.\)Swipe to read the full formula →
Intuition
The policy receives whole functions and the actual finite history after prediction. Played legality is sufficient; the optional law for all off-path queries is stronger.
Why it is needed
An explicit absolute-loss specialization of the shared policy interface, with no duplicated loss, support or projection definition.
Place in the proof
Orabona v10 Example2.32 printed20/PDF32. Two helpers and two explicit refinements of one printed example.
Proof and Lean reading notes
Proof idea
Apply the existing ambient absolute-loss support bound to played membership.
Lean reading notes
The original declaration and proof are preserved. Finite tuning retains the source label-feasibility premise although that binder is not used by its proof. The eventual result fixes policy and labels across separately prescribed horizons. Mathlib supplies the numerical reciprocal-square-root limit. Canonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
Plain-English statement. The actual policy recurrence equals the interval clamp for every real initialization, label sequence and rate schedule, even without support legality.
Mathematical reading.Formula renderer unavailable; readable fallback: The actual policy recurrence equals the interval clamp for every real initialization, label sequence and rate schedule, even without support legality.\(X_{t+1}=\min\{1,\max\{0,X_t-\eta_tg_t\}\}\qquad(t\in\mathbb N).\)Swipe to read the full formula →
Intuition
The policy receives whole functions and the actual finite history after prediction. Played legality is sufficient; the optional law for all off-path queries is stronger.
Why it is needed
An explicit absolute-loss specialization of the shared policy interface, with no duplicated loss, support or projection definition.
Place in the proof
Orabona v10 Example2.32 printed20/PDF32. Two helpers and two explicit refinements of one printed example.
Proof and Lean reading notes
Proof idea
Unfold the output successor and shared interval projection.
Lean reading notes
The original declaration and proof are preserved. Finite tuning retains the source label-feasibility premise although that binder is not used by its proof. The eventual result fixes policy and labels across separately prescribed horizons. Mathlib supplies the numerical reciprocal-square-root limit. Canonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
theorem step_clamp (η : ℕ → ℝ) (y : ℕ → ℝ) (x₁ : ℝ) (p : SupportPolicy (E := ℝ)) (t : ℕ) : output unitInterval η (fun s => loss (y s)) x₁ p (t + 1) = min (max (output unitInterval η (fun s => loss (y s)) x₁ p t - η t * selected unitInterval η (fun s => loss (y s)) x₁ p t) 0) 1
Open the canonical completion definition and blockers
One bounded Example2.32 route: the shared loss and twelve canonical proofs, plus four history-policy specialization proofs. All original canonical and policy canaries are retained.
Remaining blockers
Executable or randomized policy laws and an attained best-hindsight interface remain separate.
Other source obligations and chapter/book acceptance remain open.
Chapter implementation status
The compact summary keeps the reading route visible. Open it for source-linked declarations and exact remaining gaps.
Canonical and fixed deterministic finite-history absolute-loss policies are covered. Executable or randomized policy laws, independence of externally chosen policy/rates/initial state, an attained best-hindsight minimum, and chapter/book completion remain separate.
Purification is a separate status from compilation and integration.