BanditRLlib
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
Pages
printed20-22; PDF32-34
Open at the cited pages
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.

  1. Pair loss and initial point

    Hold the loss output unit fixed; transform every loss and the initial point.

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

  3. 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.
Source theorem · faithful restatementThe source dimensional relation and relaxed boundQualified source passageprinted21/PDF33
Source theorem · faithful restatement

The source dimensional relation and relaxed bound

Original at printed21/PDF33 ↗
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. The source matches units in the whole-space update, then checks both terms of the relaxed regret bound have the loss unit.

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.

Source theorem · faithful restatementThe concrete meter-to-kilometer calculationQualified source passageprinted21-22/PDF33-34
Source theorem · faithful restatement

The concrete meter-to-kilometer calculation

Original at printed21-22/PDF33-34 ↗
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. At corresponding points, the gradient of the composed loss is multiplied by1000; compensating the learning rate requires division by one million.

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.

Derived library resultLibrary extension: the complete paired historyLibrary result with deltaprinted21/PDF33
Derived library result

Library extension: the complete paired history

Source context at printed21/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. The explicitly paired whole-space runs agree at every corresponding finite-history entry.

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.

Derived library resultLibrary extension: the sharp finite-regret boundLibrary result with deltaTheorem2.13, printed13-14/PDF25-26
Derived library result

Library extension: the sharp finite-regret bound

Source context at Theorem2.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. The converted run satisfies the original sharp fixed-step bound, including its negative terminal-distance term.

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.

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.

Mathematics ↔ Lean

The step dimension forced by the update

Lean declarationBanditRL.OnlineUnitScaling.unit_exponents

Compiled

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. In an additive commutative group of unit exponents, consistency forces the step exponent to be twice the point exponent minus the loss exponent.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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
Mathematics ↔ Lean

The entire actual history is preserved

Lean declarationBanditRL.OnlineUnitScaling.history_scaling

Compiled

Plain-English statement. Correct coordinate, loss, schedule and policy transport preserve every point in the actual shared finite history.

Mathematical reading. Correct coordinate, loss, schedule and policy transport preserve every point in the actual shared finite history.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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.
Teaching dependencies
BanditRL.OnlineUnitScaling.inverse_loss, BanditRL.OnlineUnitScaling.step_scaling, BanditRL.OnlineSubgradientPolicy.history_succ, BanditRL.OnlineHuber.project_fullSpace
Exact Lean statement
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
Mathematics ↔ Lean

Identify the actual uncompensated run

Lean declarationBanditRL.OnlineUnitScaling.wrong_step_output

Compiled

Plain-English statement. Keeping the numerical new-coordinate step produces the original-coordinate algorithm actually rerun with effective schedule c² eta.

Mathematical reading. Keeping the numerical new-coordinate step produces the original-coordinate algorithm actually rerun with effective schedule c² eta.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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
Mathematics ↔ Lean

Retain the sharp actual regret guarantee

Lean declarationBanditRL.OnlineUnitScaling.regret_fixed_scaled

Compiled

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. For positive eta and proper full-space subdifferentiable losses with legal played feedback, the transformed run satisfies the same sharp fixed-step bound.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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.
Teaching dependencies
BanditRL.OnlineUnitScaling.regret_scaling, BanditRL.OnlineSubgradientPolicy.regret_fixed
Exact Lean statement
theorem regret_fixed_scaled (c : ℝ) (hc : 0 < c) (η : ℝ) (hη : 0 < η) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback V (fun _ => η) loss x₁ p T) (u : E) : regret V (scaledEta c (fun _ => η)) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) (c⁻¹ • u) T ≤ ‖x₁ - u‖ ^ 2 / (2 * η) + η / 2 * (∑ t ∈ range T, ‖selected V (fun _ => η) loss x₁ p t‖ ^ 2) - ‖output V (fun _ => η) loss x₁ p T - u‖ ^ 2 / (2 * η)
Explore 18 additional Lean teaching notes
Mathematics ↔ Lean

Both coarse regret terms have loss dimension

Lean declarationBanditRL.OnlineUnitScaling.regret_unit_exponents

Compiled

Plain-English statement. The squared-distance over step and step times squared-gradient terms both carry the loss exponent.

Mathematical reading. The squared-distance over step and step times squared-gradient terms both carry the loss exponent.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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)
Mathematics ↔ Lean

Recover the original loss by inverse coordinate pullback

Lean declarationBanditRL.OnlineUnitScaling.inverse_loss

Compiled

Plain-English statement. A positive coordinate scale has an inverse pullback, even for extended-real losses.

Mathematical reading. A positive coordinate scale has an inverse pullback, even for extended-real losses.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
Cancel positive c and its reciprocal pointwise.
Lean reading notes
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
Mathematics ↔ Lean

Coordinate pullback preserves source properness

Lean declarationBanditRL.OnlineUnitScaling.proper_scaled_loss

Compiled

Plain-English statement. The transformed loss is nowhere bottom and inherits an explicit finite witness at x/c.

Mathematical reading. The transformed loss is nowhere bottom and inherits an explicit finite witness at x/c.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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)
Mathematics ↔ Lean

Transport an actual global support

Lean declarationBanditRL.OnlineUnitScaling.subgradient_scaled

Compiled

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. For a proper extended-real loss, a global support at the old-coordinate point yields a global support at the new-coordinate point.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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
Mathematics ↔ Lean

Preserve full-space subdifferentiability

Lean declarationBanditRL.OnlineUnitScaling.subdifferentiable_scaled

Compiled

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. 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.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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.
Teaching dependencies
BanditRL.OnlineUnitScaling.proper_scaled_loss, BanditRL.OnlineUnitScaling.subgradient_scaled
Exact Lean statement
theorem subdifferentiable_scaled (c : ℝ) (hc : 0 < c) (f : E → EReal) (hf : BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V f) : BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (scaledLoss c f)
Mathematics ↔ Lean

The real gradient chain rule

Lean declarationBanditRL.OnlineUnitScaling.hasGradientAt_scaled

Compiled

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. A real differentiable loss has the scaled gradient under scalar composition; this calculus identity also allows zero or negative c.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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
Mathematics ↔ Lean

Identify the transformed gradient operator

Lean declarationBanditRL.OnlineUnitScaling.gradient_scaled

Compiled

Plain-English statement. Differentiability at cy identifies the actual mathlib gradient of the composed real function.

Mathematical reading. Differentiability at cy identifies the actual mathlib gradient of the composed real function.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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)
Mathematics ↔ Lean

Correctly scaled steps commute with coordinates

Lean declarationBanditRL.OnlineUnitScaling.step_scaling

Compiled

Plain-English statement. The new-coordinate step eta/c² preserves the same physical update for any supplied vector.

Mathematical reading. The new-coordinate step eta/c² preserves the same physical update for any supplied vector.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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)
Mathematics ↔ Lean

An uncompensated step gives effective step c squared eta

Lean declarationBanditRL.OnlineUnitScaling.wrong_step_scaling

Compiled

Plain-English statement. One back-converted uncompensated step has physical step size c² eta.

Mathematical reading. One back-converted uncompensated step has physical step size c² eta.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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
Mathematics ↔ Lean

Positive steps stay admissible

Lean declarationBanditRL.OnlineUnitScaling.scaled_eta_positive

Compiled

Plain-English statement. At any natural index with a positive original step and positive scale, the transformed step is positive.

Mathematical reading. At any natural index with a positive original step and positive scale, the transformed step is positive.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
The positive square denominator preserves strict positivity.
Lean reading notes
At each arbitrary natural index t, c>0 and eta(t)>0 suffice. The statement does not assume that t is a played round.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem scaled_eta_positive (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (t : ℕ) (hη : 0 < η t) : 0 < scaledEta c η t
Mathematics ↔ Lean

Recover the same physical played point

Lean declarationBanditRL.OnlineUnitScaling.output_scaling

Compiled

Plain-English statement. The last element of each matched actual history is the same physical output in different units.

Mathematical reading. The last element of each matched actual history is the same physical output in different units.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
Evaluate the history equality at Fin.last.
Lean reading notes
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
Mathematics ↔ Lean

Transport actual policy feedback

Lean declarationBanditRL.OnlineUnitScaling.selected_scaling

Compiled

Plain-English statement. The transformed policy selects c times the original selected vector on the matched actual run.

Mathematical reading. The transformed policy selects c times the original selected vector on the matched actual run.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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.
Teaching dependencies
BanditRL.OnlineUnitScaling.history_scaling, BanditRL.OnlineUnitScaling.inverse_loss
Exact Lean statement
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
Mathematics ↔ Lean

Preserve played-point legality

Lean declarationBanditRL.OnlineUnitScaling.legal_feedback_scaling

Compiled

Plain-English statement. Proper losses and original played support legality give legality on the transformed actual trajectory.

Mathematical reading. Proper losses and original played support legality give legality on the transformed actual trajectory.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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.
Teaching dependencies
BanditRL.OnlineUnitScaling.output_scaling, BanditRL.OnlineUnitScaling.selected_scaling, BanditRL.OnlineUnitScaling.subgradient_scaled
Exact Lean statement
theorem legal_feedback_scaling (c : ℝ) (hc : 0 < c) (η : ℕ → ℝ) (loss : ℕ → E → EReal) (x₁ : E) (p : SupportPolicy (E := E)) (T : ℕ) (hproper : ∀ t < T, SourceProper (loss t)) (hlegal : LegalFeedback V η loss x₁ p T) : LegalFeedback V (scaledEta c η) (fun s => scaledLoss c (loss s)) (c⁻¹ • x₁) (scaledPolicy c p) T
Mathematics ↔ Lean

Played loss values are identical

Lean declarationBanditRL.OnlineUnitScaling.loss_value_scaling

Compiled

Plain-English statement. Coordinate conversion leaves the actual played extended-real loss value unchanged.

Mathematical reading. Coordinate conversion leaves the actual played extended-real loss value unchanged.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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)
Mathematics ↔ Lean

The same-run regret is invariant

Lean declarationBanditRL.OnlineUnitScaling.regret_scaling

Compiled

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. 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.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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
Mathematics ↔ Lean

Squared distance is divided by c squared

Lean declarationBanditRL.OnlineUnitScaling.distance_square_scaling

Compiled

Plain-English statement. Positive coordinate conversion scales every squared distance by the inverse square.

Mathematical reading. Positive coordinate conversion scales every squared distance by the inverse square.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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
Mathematics ↔ Lean

Selected-vector energy is multiplied by c squared

Lean declarationBanditRL.OnlineUnitScaling.energy_scaling

Compiled

Plain-English statement. The matched correctly scaled runs have squared selected-vector energy related by c².

Mathematical reading. The matched correctly scaled runs have squared selected-vector energy related by c².
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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)
Mathematics ↔ Lean

The numerical coarse bound is invariant

Lean declarationBanditRL.OnlineUnitScaling.upper_bound_scaling

Compiled

Plain-English statement. With positive c and eta, both terms of the shared scalar expression retain their numerical value after coordinate conversion.

Mathematical reading. With positive c and eta, both terms of the shared scalar expression retain their numerical value after coordinate conversion.
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.
Place in the proof
Orabona v10 Section 2.2.3, printed20-22/PDF32-34; source correspondence and separately identified library extension.
Proof and Lean reading notes
Proof idea
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 η

Maintainer contract

Open the canonical completion definition and blockers

Bounded integration of the unchanged coordinate-transport module and complete actual-run canary, subject to current shared-project acceptance gates.

Remaining blockers

  • The source dimensional model and its categorical nonunitlessness/path-change wording retain explicit qualifications.
  • General domains, independent feedback choices, probabilistic coupling, whole Chapter2 and whole-book completion are separate obligations.

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

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

All Lean modules in this chapter

Open the complete module list (1 modules)
ModuleDeclarationsProject importsStatus
BanditRLProof.OnlineUnitScaling264Compiled