Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.
Teaching chapter 31 of 31 · Canonical route compiled
Coordinate units and matched subgradient trajectories
Changing coordinates by x′=x/c multiplies matching feedback by c and divides the step by c squared. An explicitly transported history-dependent policy preserves the full whole-space trajectory; a concrete run demonstrates failure when the numerical step is left unchanged.
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 v10, Section 2.2.3.
Learning goals
Transform coordinates and losses together while holding loss-value units fixed.
Transport the entire policy input history, then compare actual rerun trajectories.
Separate totalized algebraic invariance from finite-loss performance and preserve the 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
Section2.2.3 Unit Analysis Bits; Algorithm2.2 and earlier full Theorem2.13 supply context
explicit library policy transport; source supplies the local calculation · ordered flow
Pair two whole-space runs under a coordinate change
Read top to bottom to follow the argument or procedure.
01
Pair loss and initial point
Hold the loss output unit fixed; transform every loss and the initial point.
02
Pair the schedule and complete policy
Use eta prime=eta/c squared and the explicitly transported same policy, including all finite past losses and points. The policy’s parameter selection may depend on external data; the theorem does not establish its independence.
03
Compare actual histories
Induction through the shared history recursion proves every corresponding point matches; dropping the step compensation instead corresponds to a fresh original-coordinate run with rate c squared eta.
4 distinct theory routes, one frontier.Open the statement you want to compare; the other routes stay compact.
Qualified source passageThis is a bounded library extension of the concrete whole-space source example, not a literal complete source Anchor. Positive invertible scale, transformed losses and the explicitly transported common policy are part of the library contract. Independent oracle selections, arbitrary projected domains, stochastic laws and universal path separation are not asserted.
The source matches units in the whole-space update, then checks both terms of the relaxed regret bound have the loss unit.
Model
Deterministic whole-space online subgradient descent in the source finite-dimensional Euclidean setting.
Assumptions
Common coordinate unit and unchanged loss-output unit; legal supports and positive constant step for the preceding bound. Numeric losses at played points and comparator must be finite.
Algorithm parameters
A fixed comparator u; source rounds1 throughT. Factors2 and finite counting have no physical unit.
Regret notion
Comparator regret under the applicable loss and algorithm assumptions; dimensional consistency alone is not a numerical proof.
Guarantee
The printed ratio and equal units of the terms. No universal nonunitlessness, step-size optimum or trajectory theorem follows merely from units.
Source mathematical statement.Formula renderer unavailable; readable fallback: The source matches units in the whole-space update, then checks both terms of the relaxed regret bound have the loss unit.\[[g]=[\ell]/[x],\quad[\eta]=[x]^2/[\ell];\qquad R_T(u)\le\|u-x_1\|^2/(2\eta)+(\eta/2)\sum_{t=1}^T\|g_t\|^2\]Swipe to read the full formula →
BanditRLlib relationship. This is an attributed unnumbered source argument. The source says the rate is not unitless; the ratio admits cancellation when loss has squared-coordinate units. The additive-group model is a separate library specification. The displayed source sanity check omits the earlier nonpositive endpoint term.
The mathematical content is restated in this site's notation; wording is ours. See printed21/PDF33 in the linked source for the original statement and full assumptions.
Qualified source passageThis is a bounded library extension of the concrete whole-space source example, not a literal complete source Anchor. Positive invertible scale, transformed losses and the explicitly transported common policy are part of the library contract. Independent oracle selections, arbitrary projected domains, stochastic laws and universal path separation are not asserted.
At corresponding points, the gradient of the composed loss is multiplied by1000; compensating the learning rate requires division by one million.
Model
Unprojected real Euclidean coordinates; the same physical losses are represented by composition.
Assumptions
Positive conversion1000, corresponding current points, differentiability for the displayed gradients, loss output unit fixed. The illustrative1/sqrt(T) needsT>0.
Algorithm parameters
The source has eta=1/sqrt(T). Reusing that numerical eta makes the converted update use effective rate1000000eta.
Regret notion
No universal increase of regret is asserted by this local calculation.
Guarantee
Local chain rule, effective step multiplier and prescribed inverse-square compensation. After paths diverge, each run needs feedback at its own point.
Source mathematical statement.Formula renderer unavailable; readable fallback: At corresponding points, the gradient of the composed loss is multiplied by1000; compensating the learning rate requires division by one million.\[x'=x/1000,\quad f'(y)=f(1000y),\quad g'=1000g,\quad\eta'=\eta/1000000\]Swipe to read the full formula →
BanditRLlib relationship. The example uses differentiability for its chain-rule line despite the enclosing subgradient setting. It provides a corresponding-point update calculation. A complete policy/history induction and arbitrary positive scale are library extensions. The source warning about changed paths is not universal strict separation.
The mathematical content is restated in this site's notation; wording is ours. See printed21-22/PDF33-34 in the linked source for the original statement and full assumptions.
Derived library resultLibrary extension: the complete paired historyLibrary result with deltaprinted21/PDF33+
Library result with deltaThis is a bounded library extension of the concrete whole-space source example, not a literal complete source Anchor. Positive invertible scale, transformed losses and the explicitly transported common policy are part of the library contract. Independent oracle selections, arbitrary projected domains, stochastic laws and universal path separation are not asserted.
The explicitly paired whole-space runs agree at every corresponding finite-history entry.
Model
A finite-dimensional real inner-product space, the shared whole-space projection and finite-history support-policy type.
Assumptions
c>0; corresponding initial point; every loss composed with c; step schedule divided byc squared; the same chosen original policy is transported on its complete input history. No legal-support, positive-rate or finite-value premise is needed for this structural equality.
Algorithm parameters
Arbitrary natural t and i in Fin(t+1). The policy has no explicit future/horizon/comparator argument, but its external parameter independence is not proved.
Regret notion
Structural history equality alone is not a finite-loss performance bound.
Guarantee
Every paired entry and last output agree after coordinate conversion. No equivalence for independently selected policies or arbitrary projected domains.
Derived mathematical statement.Formula renderer unavailable; readable fallback: The explicitly paired whole-space runs agree at every corresponding finite-history entry.\[H'_t(i)=c^{-1}H_t(i)\quad(i\in\operatorname{Fin}(t+1))\]Swipe to read the full formula →
BanditRLlib relationship. This is the unchanged library theorem history_scaling, extending the source local calculation by an actual induction and a fully specified policy transport.
This displayed statement is derived in the library. The linked printed21/PDF33 supplies its source context; this explicit statement is not printed there as-is.
Derived library resultLibrary extension: the sharp finite-regret boundLibrary result with deltaTheorem2.13, printed13-14/PDF25-26+
Library result with deltaThis is a bounded library extension of the concrete whole-space source example, not a literal complete source Anchor. Positive invertible scale, transformed losses and the explicitly transported common policy are part of the library contract. Independent oracle selections, arbitrary projected domains, stochastic laws and universal path separation are not asserted.
The converted run satisfies the original sharp fixed-step bound, including its negative terminal-distance term.
Model
The same explicitly paired whole-space runs, constant original rate and any fixed comparator.
Assumptions
c>0 and eta>0. For each t<T, losses are proper and have a global support at every whole-space point, and the original selected vector is a legal support at the played point. These conditions ensure finite played and comparator losses.
Algorithm parameters
Lean rounds0 throughT-1; output T is the source terminal point x_(T+1). T=0 is allowed for the fixed positive rate.
Regret notion
The sum of real finite loss differences against the fixed comparator. The unrestricted totalized-toReal equality is a separate structural theorem.
Guarantee
The full inequality shown, with same-run selected energy and terminal residual. No future-energy optimizer, stochastic or anytime claim.
Derived mathematical statement.Formula renderer unavailable; readable fallback: The converted run satisfies the original sharp fixed-step bound, including its negative terminal-distance term.\[R'_T(u/c)\le{\|x_0-u\|^2\over2\eta}+{\eta\over2}\sum_{t<T}\|g_t\|^2-{\|x_T-u\|^2\over2\eta}\]Swipe to read the full formula →
BanditRLlib relationship. This library consequence uses the accepted shared actual-policy regret theorem. It is stronger than the relaxed dimensional sanity-check display and is labeled separately. Source anchors: Theorem2.13 printed13-14/PDF25-26; subgradient transfer printed19/PDF31; unit-analysis motivation printed20-22/PDF32-34.
This displayed statement is derived in the library. The linked Theorem2.13, printed13-14/PDF25-26 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. 18 additional dependency, extension, or research-frontier notes are grouped below.
Plain-English statement. In an additive commutative group of unit exponents, consistency forces the step exponent to be twice the point exponent minus the loss exponent.
Mathematical reading.Formula renderer unavailable; readable fallback: In an additive commutative group of unit exponents, consistency forces the step exponent to be twice the point exponent minus the loss exponent.\[H+(L-X)=X\Longrightarrow H=2X-L\]Swipe to read the full formula →
Intuition
In an additive commutative group of unit exponents, consistency forces the step exponent to be twice the point exponent minus the loss exponent.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Rearrange an additive commutative group equation. Interpreting exponents as dimensions is a separate modeling convention.
Lean reading notes
An arbitrary additive commutative group and one consistency equation are sufficient. This algebraic model interprets units; it does not establish a universal non-dimensionless claim or select a numerical step.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem unit_exponents {D : Type*} [AddCommGroup D] (X L H : D) (h : H + (L - X) = X) : H = X + X - L
Plain-English statement. Correct coordinate, loss, schedule and policy transport preserve every point in the actual shared finite history.
Mathematical reading.Formula renderer unavailable; readable fallback: Correct coordinate, loss, schedule and policy transport preserve every point in the actual shared finite history.\[H'_t(i)=c^{-1}H_t(i)\quad(i\in\operatorname{Fin}(t+1))\]Swipe to read the full formula →
Intuition
Correct coordinate, loss, schedule and policy transport preserve every point in the actual shared finite history.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Induct on the shared history_succ append, recover observed policy inputs, use full-space projection identity and the scaled step.
Lean reading notes
In the shared whole space, c>0, transformed initial state, every transformed loss, divided schedule and explicitly transported same policy give equality of every entry in each Fin(t+1) history. Losses and schedules are otherwise arbitrary; no legality is inferred. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
theorem history_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : history V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t = fun i => c⁻¹ • history V η loss x₁ p t i
Plain-English statement. Keeping the numerical new-coordinate step produces the original-coordinate algorithm actually rerun with effective schedule c² eta.
Mathematical reading.Formula renderer unavailable; readable fallback: Keeping the numerical new-coordinate step produces the original-coordinate algorithm actually rerun with effective schedule c² eta.\[cx'_t(\eta)=x_t(c^2\eta)\]Swipe to read the full formula →
Intuition
Keeping the numerical new-coordinate step produces the original-coordinate algorithm actually rerun with effective schedule c² eta.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Apply output correspondence to the effective schedule and cancel its transformed schedule. Feedback is regenerated on that actual run.
Lean reading notes
The right side is a fresh actual original-coordinate run with schedule c squared times eta and the same original policy. Feedback is recomputed on that rerun’s own history. This does not substitute old-run gradients along a changed trajectory. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
Teaching dependencies
BanditRL.OnlineUnitScaling.output_scaling
Exact Lean statement
theorem wrong_step_output (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : c • output V η (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t = output V (fun s => c ^ 2 * η s) loss x₁ p t
Plain-English statement. For positive eta and proper full-space subdifferentiable losses with legal played feedback, the transformed run satisfies the same sharp fixed-step bound.
Mathematical reading.Formula renderer unavailable; readable fallback: For positive eta and proper full-space subdifferentiable losses with legal played feedback, the transformed run satisfies the same sharp fixed-step bound.\[R'_T(u/c)\le{\|x_0-u\|^2\over2\eta}+{\eta\over2}\sum_{t<T}\|g_t\|^2-{\|x_T-u\|^2\over2\eta}\]Swipe to read the full formula →
Intuition
For positive eta and proper full-space subdifferentiable losses with legal played feedback, the transformed run satisfies the same sharp fixed-step bound.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Use actual regret invariance and the shared fixed-step theorem for the defined history recursion, retaining the negative terminal-distance term.
Lean reading notes
Assume c>0, fixed eta>0, proper whole-space subdifferentiability for every t<T, and legal actual selected supports. These ensure finite played and comparator losses. The unchanged shared fixed-step theorem yields the displayed bound with its negative terminal-distance term. T=0 is allowed for fixed positive eta; it does not validate eta=1/sqrt(T) at zero. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
Plain-English statement. The squared-distance over step and step times squared-gradient terms both carry the loss exponent.
Mathematical reading.Formula renderer unavailable; readable fallback: The squared-distance over step and step times squared-gradient terms both carry the loss exponent.\[2X-(2X-L)=L,\quad(2X-L)+2(L-X)=L\]Swipe to read the full formula →
Intuition
The squared-distance over step and step times squared-gradient terms both carry the loss exponent.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Cancel the exponent sums in the same additive group model.
Lean reading notes
An arbitrary additive commutative group suffices. These are two algebraic exponent identities, not a numerical regret inequality or a convergence theorem.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem regret_unit_exponents {D : Type*} [AddCommGroup D] (X L : D) : (X + X - (X + X - L) = L) ∧ ((X + X - L) + (L - X) + (L - X) = L)
Plain-English statement. A positive coordinate scale has an inverse pullback, even for extended-real losses.
Mathematical reading.Formula renderer unavailable; readable fallback: A positive coordinate scale has an inverse pullback, even for extended-real losses.\[f(c(c^{-1}y))=f(y)\]Swipe to read the full formula →
Intuition
A positive coordinate scale has an inverse pullback, even for extended-real losses.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
The public statement retains a finite-dimensional real inner-product space and c>0. The inverse pullback identity is total for extended-real losses; no properness or finite-value premise is used.
Teaching dependencies
BanditRL.OnlineUnitScaling.scaledLoss
Exact Lean statement
theorem inverse_loss (c : ℝ) (hc : 0 < c) (f : E → EReal) : scaledLoss c⁻¹ (scaledLoss c f) = f
Plain-English statement. The transformed loss is nowhere bottom and inherits an explicit finite witness at x/c.
Mathematical reading.Formula renderer unavailable; readable fallback: The transformed loss is nowhere bottom and inherits an explicit finite witness at x/c.\[f\text{ proper}\Longrightarrow f(c\cdot)\text{ proper}\]Swipe to read the full formula →
Intuition
The transformed loss is nowhere bottom and inherits an explicit finite witness at x/c.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Transport the original finite witness through inverse scalar multiplication.
Lean reading notes
SourceProper expands into nowhere bottom plus an explicit finite witness. c>0 gives an inverse coordinate for that witness. Retained finite dimension is not used by this body.
Teaching dependencies
BanditRL.OnlineUnitScaling.scaledLoss
Exact Lean statement
theorem proper_scaled_loss (c : ℝ) (hc : 0 < c) (f : E → EReal) (hf : SourceProper f) : SourceProper (scaledLoss c f)
Plain-English statement. For a proper extended-real loss, a global support at the old-coordinate point yields a global support at the new-coordinate point.
Mathematical reading.Formula renderer unavailable; readable fallback: For a proper extended-real loss, a global support at the old-coordinate point yields a global support at the new-coordinate point.\[g\in\partial f(cy)\Longrightarrow cg\in\partial(f(c\cdot))(y)\]Swipe to read the full formula →
Intuition
For a proper extended-real loss, a global support at the old-coordinate point yields a global support at the new-coordinate point.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Apply the shared affine subgradient inclusion to c times the identity and identify its scalar adjoint.
Lean reading notes
This forward global-support inclusion assumes a proper extended-real loss. The retained c>0 premise is unused by its affine-chain proof and is not a necessary source condition. Finite dimension supplies the shared adjoint-based proof infrastructure.
Teaching dependencies
BanditRL.OnlineConvex.theorem_2_28
Exact Lean statement
theorem subgradient_scaled (c : ℝ) (hc : 0 < c) (f : E → EReal) (hf : SourceProper f) (y g : E) (hg : g ∈ SourceSubdifferential f (c • y)) : c • g ∈ SourceSubdifferential (scaledLoss c f) y
Plain-English statement. Whole-space properness and support existence both survive the positive coordinate change. The displayed formula shows the support-existence component under the full properness hypothesis.
Mathematical reading.Formula renderer unavailable; readable fallback: Whole-space properness and support existence both survive the positive coordinate change. The displayed formula shows the support-existence component under the full properness hypothesis.\[\forall x,\ \partial f(x)\ne\varnothing\Longrightarrow\forall y,\ \partial(f(c\cdot))(y)\ne\varnothing\]Swipe to read the full formula →
Intuition
Whole-space properness and support existence both survive the positive coordinate change. The displayed formula shows the support-existence component under the full properness hypothesis.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Transport properness and choose a support at cy, then use support scaling.
Lean reading notes
Whole-space subdifferentiability means properness and a global support at every point. With c>0 both components transport. The displayed support-existence formula is read under these full stated conditions.
Plain-English statement. A real differentiable loss has the scaled gradient under scalar composition; this calculus identity also allows zero or negative c.
Mathematical reading.Formula renderer unavailable; readable fallback: A real differentiable loss has the scaled gradient under scalar composition; this calculus identity also allows zero or negative c.\[\nabla_y f(cy)=c\nabla_x f(cy)\]Swipe to read the full formula →
Intuition
A real differentiable loss has the scaled gradient under scalar composition; this calculus identity also allows zero or negative c.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Compose the Frechet derivative with the continuous scalar map and identify the inner-product dual.
Lean reading notes
For a finite-dimensional real inner-product space and every real c, a gradient at c times y gives the displayed gradient at y for composition. Zero and negative c are allowed. This calculus result is broader than the positive physical conversion example.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem hasGradientAt_scaled (c : ℝ) (f : E → ℝ) (y g : E) (hf : HasGradientAt f g (c • y)) : HasGradientAt (fun z => f (c • z)) (c • g) y
Plain-English statement. Differentiability at cy identifies the actual mathlib gradient of the composed real function.
Mathematical reading.Formula renderer unavailable; readable fallback: Differentiability at cy identifies the actual mathlib gradient of the composed real function.\[\operatorname{gradient}(f(c\cdot))(y)=c\operatorname{gradient}(f)(cy)\]Swipe to read the full formula →
Intuition
Differentiability at cy identifies the actual mathlib gradient of the composed real function.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Apply the real gradient chain rule and gradient uniqueness.
Lean reading notes
Differentiability at c times y and finite-dimensional inner-product structure identify the actual gradient. Every real c is allowed; differentiability is not inferred from the surrounding nonsmooth OSD setting.
Teaching dependencies
BanditRL.OnlineUnitScaling.hasGradientAt_scaled
Exact Lean statement
theorem gradient_scaled (c : ℝ) (f : E → ℝ) (y : E) (hf : DifferentiableAt ℝ f (c • y)) : gradient (fun z => f (c • z)) y = c • gradient f (c • y)
Plain-English statement. The new-coordinate step eta/c² preserves the same physical update for any supplied vector.
Mathematical reading.Formula renderer unavailable; readable fallback: The new-coordinate step eta/c² preserves the same physical update for any supplied vector.\[c^{-1}(x-\eta g)=c^{-1}x-(\eta/c^2)(cg)\]Swipe to read the full formula →
Intuition
The new-coordinate step eta/c² preserves the same physical update for any supplied vector.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Cancel the positive scalar denominator and distribute scalar multiplication.
Lean reading notes
A finite-dimensional real inner-product space, c>0 and arbitrary real eta/points/vectors are retained. This is a one-step vector identity; no support legality or positive eta is assumed. Retained finite dimension is not used by this body.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem step_scaling (c : ℝ) (hc : 0 < c) (η : ℝ) (x g : E) : c⁻¹ • (x - η • g) = c⁻¹ • x - (η / c ^ 2) • (c • g)
Plain-English statement. One back-converted uncompensated step has physical step size c² eta.
Mathematical reading.Formula renderer unavailable; readable fallback: One back-converted uncompensated step has physical step size c² eta.\[c(c^{-1}x-\eta(cg))=x-c^2\eta g\]Swipe to read the full formula →
Intuition
One back-converted uncompensated step has physical step size c² eta.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Distribute scalar multiplication and cancel the coordinate inverse.
Lean reading notes
The displayed vector identity uses c>0 and arbitrary eta/points/vectors. It identifies the effective multiplier, without asserting strict path separation or worse regret; retained finite dimension is not used by this body.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem wrong_step_scaling (c : ℝ) (hc : 0 < c) (η : ℝ) (x g : E) : c • (c⁻¹ • x - η • (c • g)) = x - (c ^ 2 * η) • g
Plain-English statement. At any natural index with a positive original step and positive scale, the transformed step is positive.
Mathematical reading.Formula renderer unavailable; readable fallback: At any natural index with a positive original step and positive scale, the transformed step is positive.\[c,\eta_t>0\Longrightarrow\eta_t/c^2>0\]Swipe to read the full formula →
Intuition
At any natural index with a positive original step and positive scale, the transformed step is positive.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Plain-English statement. The last element of each matched actual history is the same physical output in different units.
Mathematical reading.Formula renderer unavailable; readable fallback: The last element of each matched actual history is the same physical output in different units.\[x'_t=c^{-1}x_t\]Swipe to read the full formula →
Intuition
The last element of each matched actual history is the same physical output in different units.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
This is the last-entry consequence of the full paired-history equality. It refers to the explicitly transported same policy, not independently chosen supports. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
Teaching dependencies
BanditRL.OnlineUnitScaling.history_scaling
Exact Lean statement
theorem output_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : output V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t = c⁻¹ • output V η loss x₁ p t
Plain-English statement. The transformed policy selects c times the original selected vector on the matched actual run.
Mathematical reading.Formula renderer unavailable; readable fallback: The transformed policy selects c times the original selected vector on the matched actual run.\[g'_t=cg_t\]Swipe to read the full formula →
Intuition
The transformed policy selects c times the original selected vector on the matched actual run.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Recover the original finite history and observed loss functions inside scaledPolicy.
Lean reading notes
The vector identity follows after transforming all finite past loss functions, the entire history tuple and the current loss. It alone does not assert these vectors are legal subgradients. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
theorem selected_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : selected V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t = c • selected V η loss x₁ p t
Plain-English statement. Proper losses and original played support legality give legality on the transformed actual trajectory.
Mathematical reading.Formula renderer unavailable; readable fallback: Proper losses and original played support legality give legality on the transformed actual trajectory.\[g_t\in\partial f_t(x_t)\Longrightarrow g'_t\in\partial f'_t(x'_t)\]Swipe to read the full formula →
Intuition
Proper losses and original played support legality give legality on the transformed actual trajectory.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Combine actual output and selected-vector correspondence with global support transport.
Lean reading notes
Assume c>0, properness of each loss for t<T, and global-support legality at each actually played original point. The transported selections are legal at the corresponding transformed played points; no off-path oracle law is assumed. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
Plain-English statement. Coordinate conversion leaves the actual played extended-real loss value unchanged.
Mathematical reading.Formula renderer unavailable; readable fallback: Coordinate conversion leaves the actual played extended-real loss value unchanged.\[f'_t(x'_t)=f_t(x_t)\]Swipe to read the full formula →
Intuition
Coordinate conversion leaves the actual played extended-real loss value unchanged.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Substitute the matched output and cancel c with its reciprocal.
Lean reading notes
Under the explicit whole-space pairing and c>0, actual extended-real played values coincide, even when those values are infinite. No finite-performance claim follows from this identity alone. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
Teaching dependencies
BanditRL.OnlineUnitScaling.output_scaling
Exact Lean statement
theorem loss_value_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (t : ℕ) : scaledLoss c (loss t) (output V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t) = loss t (output V η loss x₁ p t)
Plain-English statement. The two finite sums of totalized EReal.toReal loss differences are equal at corresponding comparators. This identity assumes no properness, legal supports, finite values or positive rate; it alone supplies no finite-loss regret guarantee.
Mathematical reading.Formula renderer unavailable; readable fallback: The two finite sums of totalized EReal.toReal loss differences are equal at corresponding comparators. This identity assumes no properness, legal supports, finite values or positive rate; it alone supplies no finite-loss regret guarantee.\[R'_T(u/c)=R_T(u)\]Swipe to read the full formula →
Intuition
The two finite sums of totalized EReal.toReal loss differences are equal at corresponding comparators. This identity assumes no properness, legal supports, finite values or positive rate; it alone supplies no finite-loss regret guarantee.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Match each actual played loss and comparator loss, then sum the identical converted differences.
Lean reading notes
The compared expressions are finite sums of totalized EReal.toReal differences. No properness, support legality, finite losses or positive schedule is assumed. Finite-loss performance requires separate hypotheses ensuring values at both played points and comparator are finite. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
Teaching dependencies
BanditRL.OnlineUnitScaling.loss_value_scaling
Exact Lean statement
theorem regret_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (u : E) (T : ℕ) : regret V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) (c⁻¹ • u) T = regret V η loss x₁ p u T
Plain-English statement. Positive coordinate conversion scales every squared distance by the inverse square.
Mathematical reading.Formula renderer unavailable; readable fallback: Positive coordinate conversion scales every squared distance by the inverse square.\[\|x/c-u/c\|^2=\|x-u\|^2/c^2\]Swipe to read the full formula →
Intuition
Positive coordinate conversion scales every squared distance by the inverse square.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Use norm of scalar multiplication and positivity of c.
Lean reading notes
For arbitrary points and c>0, squared distance scales by the inverse square. Retained finite dimension is not used by this body; this is a geometric identity rather than a performance statement.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem distance_square_scaling (c : ℝ) (hc : 0 < c) (x u : E) : ‖c⁻¹ • x - c⁻¹ • u‖ ^ 2 = ‖x - u‖ ^ 2 / c ^ 2
Plain-English statement. The matched correctly scaled runs have squared selected-vector energy related by c².
Mathematical reading.Formula renderer unavailable; readable fallback: The matched correctly scaled runs have squared selected-vector energy related by c².\[\sum_{t<T}\|g'_t\|^2=c^2\sum_{t<T}\|g_t\|^2\]Swipe to read the full formula →
Intuition
The matched correctly scaled runs have squared selected-vector energy related by c².
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Apply actual selected-vector correspondence pointwise and distribute the constant over the finite sum.
Lean reading notes
The selected-vector energies belong to matched compensated histories. No positivity of eta or support-legality premise is assumed; the identity does not compare energies from unrelated reruns. The policy type receives finite past loss functions, the whole iterate history and the current loss. It has no explicit future/comparator/horizon argument, but this does not prove independence from external parameters used to choose the policy, initialization or schedule. The transport theorems pair the same chosen original policy with its explicitly constructed counterpart.
Teaching dependencies
BanditRL.OnlineUnitScaling.selected_scaling
Exact Lean statement
theorem energy_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (T : ℕ) : (∑ t ∈ range T, ‖selected V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) t‖ ^ 2) = c ^ 2 * (∑ t ∈ range T, ‖selected V η loss x₁ p t‖ ^ 2)
Plain-English statement. With positive c and eta, both terms of the shared scalar expression retain their numerical value after coordinate conversion.
Mathematical reading.Formula renderer unavailable; readable fallback: With positive c and eta, both terms of the shared scalar expression retain their numerical value after coordinate conversion.\[F_{A/c^2,c^2B}(\eta/c^2)=F_{A,B}(\eta)\]Swipe to read the full formula →
Intuition
With positive c and eta, both terms of the shared scalar expression retain their numerical value after coordinate conversion.
Why it is needed
Make the concrete source correspondence and the separately specified library contract precise.
Cancel the square scaling in each term of the existing upperBound definition.
Lean reading notes
A and B are arbitrary fixed real coefficients. c>0 and eta>0 are retained public restrictions; eta positivity is not necessary for the corresponding totalized algebraic equality. No optimizer or future-energy prescription follows.
Teaching dependencies
BanditRL.OnlineOptimalStep.upperBound
Exact Lean statement
theorem upper_bound_scaling (c : ℝ) (hc : 0 < c) (A B η : ℝ) (hη : 0 < η) : BanditRL.OnlineOptimalStep.upperBound (A / c ^ 2) (c ^ 2 * B) (η / c ^ 2) = BanditRL.OnlineOptimalStep.upperBound A B η
This is a bounded library extension of the concrete whole-space source example, not a literal complete source Anchor. Positive invertible scale, transformed losses and the explicitly transported common policy are part of the library contract. Independent oracle selections, arbitrary projected domains, stochastic laws and universal path separation are not asserted.