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

Teaching chapter 29 of 31 · Canonical route compiled

Convex losses to causal linear feedback

A single generated feedback sequence connects convex loss differences to linear regret for the same learner and outputs.

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

Learning goals

  • Read vector feedback only after the current output.
  • Keep the learner and its outputs identical in convex and linear regret.
  • Distinguish a proved reduction from the supplied universal OLO guarantee.
  • Separate the source support inequality from the stronger inherited Lean domain interface.

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,21June2026

Online Learning: A Modern Introduction Using Convex Optimization

Francesco Orabona

Location
Section2.3 convex-to-linear regret reduction; unnumbered main-text performance comparison, printed22/PDF34
Pages
Section2.3 printed22/PDF34
Open at the cited pages
library realization of source reduction · ordered flow

Run one causal linear learner using observed supports

Read top to bottom to follow the argument or procedure.

  1. Output

    Apply A_t to the actual strict-past vector history.

  2. Observe and choose

    Observe current proper subdifferentiable loss and select a genuine support at this X_t.

  3. Append feedback

    Append g_t to H_t and continue with the same learner.

3 distinct theory routes, one frontier.Open the statement you want to compare; the other routes stay compact.
Source theorem · faithful restatementSection 2.3: supporting inequalities reduce regretBounded Lean comparisonprinted22/PDF34
Source theorem · faithful restatement

Section 2.3: supporting inequalities reduce regret

Original at printed22/PDF34 ↗
Bounded Lean comparisonThe exact historical Lean interfaces below retain extra domain and availability conditions; they are not an unrestricted source Anchor.

A selected subgradient bounds each real loss difference. Summing preserves the comparator and the played sequence, so the resulting expression is linear regret.

Model
Online convex losses with chosen subgradients at the played points and one fixed comparator u in V.
Assumptions
The selected g_t gives the source supporting inequality between X_t and each compared u; the compared loss values are real. No closed-domain assumption is needed for this algebraic step.
Algorithm parameters
The same X_t,g_t and comparator u occur in every term. A performance transfer needs a linear learner whose guarantee applies to the induced feedback.
Regret notion
Comparator regret, summed over the finite horizon without expectations or probability events.
Guarantee
The convex-loss comparator regret is at most the same-action linear-loss comparator regret, with coefficient one. No numerical rate or universal optimality is asserted.
Source mathematical statement. Sum the supporting inequalities at the same played points and fixed comparator. The result is linear regret on those same points.

BanditRLlib relationship. Faithful restatement of the one unnumbered source comparison, with time reindexed from 1..T to 0..T-1. The source algorithm-transfer paragraph additionally requires the same learner trajectory and an applicable linear guarantee. Example 2.14 explicitly cautions that the reduction need not be optimal.

Derived instantiation of source guaranteeThe bounded Lean comparison on one generated runBounded library comparisonPrinted22/PDF34
Derived instantiation of source guarantee

The bounded Lean comparison on one generated run

Source context at Printed22/PDF34 ↗
Bounded library comparisonThis is a bounded deterministic library realization. Closed-domain and global support-availability premises are inherited interface restrictions, not necessary conditions of the source supporting inequality. The unrestricted source Anchor, randomized guarantees, independence of externally chosen policies, executable selectors, universal optimality, chapter/book completion and purification are not established here.

Every actual legal support bounds one played loss gap; the accumulated bound is linear regret at the same outputs.

Model
Fixed deterministic finite-vector learner and whole-loss/history support provider in the shared finite-dimensional real inner-product setting.
Assumptions
The existing Lean domain is nonempty, closed and convex in a finite-dimensional real inner-product space. For each t<T, loss_t is proper (never minus infinity and finite at some ambient point) and has an ambient global support at every feasible point. Actual chosen feedback must be a legal global support at each played point before T. Played points need not lie in V for the ambient comparison. Feasibility is needed by the OCO and canonical-producer adapters. Closedness and whole-domain support availability are inherited interface restrictions, not necessary conditions of the bare finite-valued supporting inequality.
Algorithm parameters
Fix the deterministic learner A and provider p. A reads strict-past vectors; p reads previous whole losses, reconstructed outputs through the current one, and the current whole loss after prediction. Comparators and T are evaluation arguments. Prefix comparisons hold A and p fixed and compare entire strict-past loss functions. This does not impose independence on external selection of A or p. Source rounds 1..T are indexed 0..T-1 in Lean; T=0 is the empty-sum extension.
Regret notion
Signed sum of real played loss minus real loss at one fixed feasible comparator. Properness and global supports establish finiteness before EReal.toReal.
Guarantee
For every u in V, actual convex regret is at most linear regret of the same A on its actual selected feedback sequence.
Derived explicit guarantee. Every actual legal support bounds one played loss gap; the accumulated bound is linear regret at the same outputs.

BanditRLlib relationship. Library realization of the source comparison, with explicit stronger interface conditions. The ambient played points may lie outside V when their global supports are legal.

Derived instantiation of source guaranteeTransport an applicable all-vector guaranteeBounded guarantee transportPrinted22/PDF34
Derived instantiation of source guarantee

Transport an applicable all-vector guarantee

Source context at Printed22/PDF34 ↗
Bounded guarantee transportThis is a bounded deterministic library realization. Closed-domain and global support-availability premises are inherited interface restrictions, not necessary conditions of the source supporting inequality. The unrestricted source Anchor, randomized guarantees, independence of externally chosen policies, executable selectors, universal optimality, chapter/book completion and purification are not established here.

At the specified horizon, apply a separately established all-vector, all-comparator bound to the actual selected sequence.

Model
Fixed deterministic finite-vector learner and whole-loss/history support provider in the shared finite-dimensional real inner-product setting.
Assumptions
The existing Lean domain is nonempty, closed and convex in a finite-dimensional real inner-product space. For each t<T, loss_t is proper (never minus infinity and finite at some ambient point) and has an ambient global support at every feasible point. Actual chosen feedback must be a legal global support at each played point before T. Played points need not lie in V for the ambient comparison. Feasibility is needed by the OCO and canonical-producer adapters. Closedness and whole-domain support availability are inherited interface restrictions, not necessary conditions of the bare finite-valued supporting inequality. Additionally, for this same A and fixed T, every vector sequence v and every u in V satisfy linear regret <= B(v,u,T).
Algorithm parameters
Fix the deterministic learner A and provider p. A reads strict-past vectors; p reads previous whole losses, reconstructed outputs through the current one, and the current whole loss after prediction. Comparators and T are evaluation arguments. Prefix comparisons hold A and p fixed and compare entire strict-past loss functions. This does not impose independence on external selection of A or p. Source rounds 1..T are indexed 0..T-1 in Lean; T=0 is the empty-sum extension.
Regret notion
Signed sum of real played loss minus real loss at one fixed feasible comparator. Properness and global supports establish finiteness before EReal.toReal.
Guarantee
Convex regret on the generated run is <= B(selected A loss p,u,T). B can depend on the whole sequence and may be negative. No bound is manufactured for an arbitrary learner.
Derived explicit guarantee. A bound for every vector sequence of the same learner applies to the generated feedback.

BanditRLlib relationship. This is the explicit library guarantee schema for the source transfer paragraph. The input hB is a linear-regret guarantee, not an assumed convex-regret conclusion.

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. 14 additional dependency, extension, or research-frontier notes are grouped below.

Mathematics ↔ Lean

The same learner and the same outputs

Lean declarationBanditRL.OnlineLinearization.output_linear_run

Compiled

Plain-English statement. Running the linear policy on generated supports gives the original reduction outputs exactly.

Mathematical reading. Running the linear policy on generated supports gives the original reduction outputs exactly.
Intuition
Running the linear policy on generated supports gives the original reduction outputs exactly.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Identify every coordinate of history via history_selected and apply A.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. A and p are arbitrary fixed functions and losses may be any EReal-valued functions. No properness, support legality, domain feasibility or regret guarantee is required. The same A receives exactly the same selected-vector prefix, proving equality of the two output sequences. No regret or support statement is inferred.
Teaching dependencies
BanditRL.OnlineLinearization.history_selected
Exact Lean statement
theorem output_linear_run (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) : output A loss p t = linearRun A (selected A loss p) t
Mathematics ↔ Lean

True global support gives the loss gap

Lean declarationBanditRL.OnlineLinearization.support_gap

Compiled

Plain-English statement. A genuine global support at an arbitrary ambient x bounds its finite loss gap against feasible u.

Mathematical reading. A genuine global support at an arbitrary ambient x bounds its finite loss gap against feasible u.
Intuition
A genuine global support at an arbitrary ambient x bounds its finite loss gap against feasible u.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Reuse the first support inequality of Lemma2.31 at eta1; properness/supports justify finiteness.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. For one function f, assume properness and global support availability at every point of the shared domain V, u in V, and g in the ambient global support set of f at x. The played point x need not belong to V. Properness and its supplied support give finite f(x); availability at u gives finite f(u). Closedness is an inherited API restriction, not required by the supporting inequality itself.
Teaching dependencies
BanditRL.OnlineSubgradientDescent.lemma_2_31
Exact Lean statement
theorem support_gap (V : Domain (E := E)) (f : E → EReal) (hf : BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V f) (x g u : E) (hu : u ∈ V.carrier) (hg : g ∈ SourceSubdifferential f x) : (f x).toReal - (f u).toReal ≤ inner ℝ g (x - u)
Mathematics ↔ Lean

Bounded same-run linear regret comparison

Lean declarationBanditRL.OnlineLinearization.regret_comparison

Compiled

Plain-English statement. Every actual legal support bounds one played loss gap; the accumulated bound is linear regret at the same outputs.

Mathematical reading. Every actual legal support bounds one played loss gap; the accumulated bound is linear regret at the same outputs.
Intuition
Every actual legal support bounds one played loss gap; the accumulated bound is linear regret at the same outputs.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Sum support_gap, rewrite linearLoss_gap and identify the same linearRun via output_linear_run.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. The existing Lean domain is nonempty, closed and convex in a finite-dimensional real inner-product space. For each t<T, loss_t is proper (never minus infinity and finite at some ambient point) and has an ambient global support at every feasible point. Actual chosen feedback must be a legal global support at each played point before T. Played points need not lie in V for the ambient comparison. Feasibility is needed by the OCO and canonical-producer adapters. Closedness and whole-domain support availability are inherited interface restrictions, not necessary conditions of the bare finite-valued supporting inequality. Fix u in V and T. The same A and its actual selected feedback occur on the linear side. There is no Feasible A or universal OracleLaw premise; this is the ambient comparison under played legality.
Teaching dependencies
BanditRL.OnlineLinearization.support_gap, BanditRL.OnlineLinearization.linearLoss_gap, BanditRL.OnlineLinearization.output_linear_run, BanditRL.OnlineLearning.comparatorRegret_eq_sum
Exact Lean statement
theorem regret_comparison (V : Domain (E := E)) (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback A loss p T) (u : E) (hu : u ∈ V.carrier) : regret A loss p u T ≤ BanditRL.OnlineLearning.comparatorRegret (fun t => linearLoss (selected A loss p t)) (linearRun A (selected A loss p)) u T
Mathematics ↔ Lean

Transport a supplied universal OLO bound

Lean declarationBanditRL.OnlineLinearization.regret_transfer

Compiled

Plain-English statement. A bound proved for every vector sequence applies to the actually generated supports of the same learner.

Mathematical reading. A bound proved for every vector sequence applies to the actually generated supports of the same learner.
Intuition
A bound proved for every vector sequence applies to the actually generated supports of the same learner.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Compose regret_comparison with hB instantiated on selected; this does not produce hB for arbitrary A.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. The existing Lean domain is nonempty, closed and convex in a finite-dimensional real inner-product space. For each t<T, loss_t is proper (never minus infinity and finite at some ambient point) and has an ambient global support at every feasible point. Actual chosen feedback must be a legal global support at each played point before T. Played points need not lie in V for the ambient comparison. Feasibility is needed by the OCO and canonical-producer adapters. Closedness and whole-domain support availability are inherited interface restrictions, not necessary conditions of the bare finite-valued supporting inequality. Also assume hB bounds linear regret for every vector sequence and feasible comparator at this fixed T for the same A. Instantiate hB on exactly the actual selected sequence. B may depend on the full sequence,u,T and be negative. This is not a bound uniform in T, a rate theorem or a guarantee for an arbitrary learner.
Teaching dependencies
BanditRL.OnlineLinearization.regret_comparison
Exact Lean statement
theorem regret_transfer (V : Domain (E := E)) (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (hlegal : LegalFeedback A loss p T) (B : (ℕ → E) → E → ℕ → ℝ) (hB : ∀ g u, u ∈ V.carrier → BanditRL.OnlineLearning.comparatorRegret (fun t => linearLoss (g t)) (linearRun A g) u T ≤ B g u T) (u : E) (hu : u ∈ V.carrier) : regret A loss p u T ≤ B (selected A loss p) u T
Explore 14 additional Lean teaching notes
Mathematics ↔ Lean

Current output from the vector prefix

Lean declarationBanditRL.OnlineLinearization.outputHistory_last

Compiled

Plain-English statement. The reconstructed last output is exactly the prescribed learner output on its finite past vectors.

Mathematical reading. The reconstructed last output is exactly the prescribed learner output on its finite past vectors.
Intuition
The reconstructed last output is exactly the prescribed learner output on its finite past vectors.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Unfold the last finite index and its prefix restriction.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. For every t and arbitrary vector history h:Fin t -> E, the last reconstructed output is A_t(h). There is no loss or provider argument. No domain or legality premise occurs.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem outputHistory_last (A : LinearPolicy (E := E)) (t : ℕ) (h : Fin t → E) : outputHistory A h (Fin.last t) = A t h
Mathematics ↔ Lean

Empty initial vector history

Lean declarationBanditRL.OnlineLinearization.history_zero

Compiled

Plain-English statement. The learner starts with an empty feedback history; its first output need not be zero.

Mathematical reading. The learner starts with an empty feedback history; its first output need not be zero.
Intuition
The learner starts with an empty feedback history; its first output need not be zero.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Reduce the dependent Nat.rec at zero.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. A and p are arbitrary fixed functions and losses may be any EReal-valued functions. No properness, support legality, domain feasibility or regret guarantee is required. The statement identifies the empty feedback history only; it does not fix the first output to zero.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem history_zero (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) : history A loss p 0 = Fin.elim0
Mathematics ↔ Lean

Append actual current support

Lean declarationBanditRL.OnlineLinearization.history_succ

Compiled

Plain-English statement. The current loss is read after output, and the selected current feedback is appended.

Mathematical reading. The current loss is read after output, and the selected current feedback is appended.
Intuition
The current loss is read after output, and the selected current feedback is appended.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Reduce the successor branch and the actual selected definition.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. A and p are arbitrary fixed functions and losses may be any EReal-valued functions. No properness, support legality, domain feasibility or regret guarantee is required. Append the actually selected feedback after the current output is reconstructed. Without a legality hypothesis this feedback need not be a support.
Teaching dependencies
BanditRL.OnlineLinearization.history, BanditRL.OnlineLinearization.selected
Exact Lean statement
theorem history_succ (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) : history A loss p (t + 1) = Fin.snoc (history A loss p t) (selected A loss p t)
Mathematics ↔ Lean

Keep earlier vector feedback

Lean declarationBanditRL.OnlineLinearization.history_castSucc

Compiled

Plain-English statement. Appending current feedback preserves every earlier vector coordinate.

Mathematical reading. Appending current feedback preserves every earlier vector coordinate.
Intuition
Appending current feedback preserves every earlier vector coordinate.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Use history_succ and Fin.snoc_castSucc.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. A and p are arbitrary fixed functions and losses may be any EReal-valued functions. No properness, support legality, domain feasibility or regret guarantee is required. For i<t, appending a new vector leaves the earlier history coordinate unchanged.
Teaching dependencies
BanditRL.OnlineLinearization.history_succ
Exact Lean statement
theorem history_castSucc (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (i : Fin t) : history A loss p (t + 1) i.castSucc = history A loss p t i
Mathematics ↔ Lean

Stored feedback is the selected sequence

Lean declarationBanditRL.OnlineLinearization.history_selected

Compiled

Plain-English statement. Each stored vector is the actual feedback selected at that earlier round.

Mathematical reading. Each stored vector is the actual feedback selected at that earlier round.
Intuition
Each stored vector is the actual feedback selected at that earlier round.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Induct on t and split the last coordinate from previous castSucc coordinates.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. A and p are arbitrary fixed functions and losses may be any EReal-valued functions. No properness, support legality, domain feasibility or regret guarantee is required. Every existing history coordinate equals the actual selected feedback at that earlier time. Membership in a subdifferential is a separate hypothesis.
Teaching dependencies
BanditRL.OnlineLinearization.history_succ, BanditRL.OnlineLinearization.history_castSucc
Exact Lean statement
theorem history_selected (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (i : Fin t) : history A loss p t i = selected A loss p i.val
Mathematics ↔ Lean

Reconstructed outputs are actual plays

Lean declarationBanditRL.OnlineLinearization.outputHistory_played

Compiled

Plain-English statement. The support policy receives genuine played outputs reconstructed from past vectors.

Mathematical reading. The support policy receives genuine played outputs reconstructed from past vectors.
Intuition
The support policy receives genuine played outputs reconstructed from past vectors.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Identify both prefixes with the same actual selected coordinates.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. A and p are arbitrary fixed functions and losses may be any EReal-valued functions. No properness, support legality, domain feasibility or regret guarantee is required. For each i<=t, the reconstructed output equals the actual played output. These outputs may be infeasible and feedback may be illegal.
Teaching dependencies
BanditRL.OnlineLinearization.history_selected
Exact Lean statement
theorem outputHistory_played (A : LinearPolicy (E := E)) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (i : Fin (t + 1)) : outputHistory A (history A loss p t) i = output A loss p i.val
Mathematics ↔ Lean

Feasible learner yields feasible plays

Lean declarationBanditRL.OnlineLinearization.output_mem

Compiled

Plain-English statement. A universally feasible linear learner remains feasible in the actual convex-loss reduction.

Mathematical reading. A universally feasible linear learner remains feasible in the actual convex-loss reduction.
Intuition
A universally feasible linear learner remains feasible in the actual convex-loss reduction.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Apply its finite-history feasibility law to the generated history.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. Assume Feasible V A: A_t(h) belongs to V for every t and every vector history h. For arbitrary losses and p, each induced output is then feasible. Properness and support legality are not required.
Teaching dependencies
BanditRL.OnlineLinearization.history
Exact Lean statement
theorem output_mem (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) : output A loss p t ∈ V.carrier
Mathematics ↔ Lean

Strict-past loss invariance

Lean declarationBanditRL.OnlineLinearization.history_prefix

Compiled

Plain-English statement. With common fixed A and p, equal strict-past whole losses give equal feedback histories.

Mathematical reading. With common fixed A and p, equal strict-past whole losses give equal feedback histories.
Intuition
With common fixed A and p, equal strict-past whole losses give equal feedback histories.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Induct; identify the old history, finite past losses and current loss of each earlier append.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. A and p are arbitrary fixed functions and losses may be any EReal-valued functions. No properness, support legality, domain feasibility or regret guarantee is required. Keep both A and p identical across the two recursions. Require equality of entire loss functions at every s<t; current and future losses are unrestricted. The resulting histories at t are equal.
Teaching dependencies
BanditRL.OnlineLinearization.history_succ
Exact Lean statement
theorem history_prefix (A : LinearPolicy (E := E)) (loss loss' : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (hloss : ∀ s < t, loss s = loss' s) : history A loss p t = history A loss' p t
Mathematics ↔ Lean

Current and future losses are unread

Lean declarationBanditRL.OnlineLinearization.output_prefix

Compiled

Plain-English statement. Current and future losses cannot change the already determined output, with exogenous A,p fixed.

Mathematical reading. Current and future losses cannot change the already determined output, with exogenous A,p fixed.
Intuition
Current and future losses cannot change the already determined output, with exogenous A,p fixed.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Apply the same A_t to history_prefix.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. A and p are arbitrary fixed functions and losses may be any EReal-valued functions. No properness, support legality, domain feasibility or regret guarantee is required. With common A,p and whole losses equal at every s<t, outputs at t agree. The current and later losses may even be plus infinity; this identity does not validate a performance theorem for that stream.
Teaching dependencies
BanditRL.OnlineLinearization.history_prefix
Exact Lean statement
theorem output_prefix (A : LinearPolicy (E := E)) (loss loss' : ℕ → E → EReal) (p : SupportPolicy (E := E)) (t : ℕ) (hloss : ∀ s < t, loss s = loss' s) : output A loss p t = output A loss' p t
Mathematics ↔ Lean

Optional universal support law

Lean declarationBanditRL.OnlineLinearization.oracle_feedback

Compiled

Plain-English statement. A feasible learner, admissible losses through T and the universal off-path provider law produce actual played support legality.

Mathematical reading. A feasible learner, admissible losses through T and the universal off-path provider law produce actual played support legality.
Intuition
A stronger off-path law suffices for actual played legality; it is not a comparison premise.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Query the law on the actual reconstructed output history and use its feasible last point.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. For this implication also assume Feasible V A and properness plus global support availability on V for every loss_t with t<T. OracleLaw V p quantifies all histories and current admissible losses with feasible last output. These producer premises imply LegalFeedback through T; played legality is the conclusion here, not an assumed input. No restriction on losses after T is needed.
Teaching dependencies
BanditRL.OnlineLinearization.outputHistory_last
Exact Lean statement
theorem oracle_feedback (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (hp : BanditRL.OnlineSubgradientPolicy.OracleLaw V p) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) : LegalFeedback A loss p T
Mathematics ↔ Lean

Canonical support producer

Lean declarationBanditRL.OnlineLinearization.canonical_feedback

Compiled

Plain-English statement. For a feasible learner and admissible losses through T, the canonical choice has a nonempty support set at each played point.

Mathematical reading. For a feasible learner and admissible losses through T, the canonical choice has a nonempty support set at each played point.
Intuition
The existing current-loss chooser supplies legal feedback for a feasible learner and proper subdifferentiable losses.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Instantiate oracle_feedback with the existing canonicalPolicy_legal producer.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. Assume Feasible V A and properness plus global support availability on V for each loss_t with t<T. The shared selector chooses a support when nonempty and zero otherwise. Feasible actual outputs make its support set nonempty, excluding the fallback on every played round before T. No supplied OracleLaw or LegalFeedback premise is needed. In this displayed formula g_t is selected A loss canonicalPolicy t, the feedback induced by that canonical provider.
Teaching dependencies
BanditRL.OnlineLinearization.oracle_feedback, BanditRL.OnlineSubgradientPolicy.canonicalPolicy_legal
Exact Lean statement
theorem canonical_feedback (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) : LegalFeedback A loss BanditRL.OnlineSubgradientPolicy.canonicalPolicy T
Mathematics ↔ Lean

Finite played loss before coercion

Lean declarationBanditRL.OnlineLinearization.trajectory_finite_loss

Compiled

Plain-English statement. Properness and support existence at feasible outputs establish a finite real loss value.

Mathematical reading. Properness and support existence at feasible outputs establish a finite real loss value.
Intuition
Properness and support existence at feasible outputs establish a finite real loss value.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Use the shared finite_loss producer at the actual feasible output.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. Assume Feasible V A, properness and global support availability on V for every loss_t with t<T, and select t<T. The provider p is arbitrary and need not be legal. Feasibility of the output and availability there imply this particular loss value is finite.
Teaching dependencies
BanditRL.OnlineLinearization.output_mem, BanditRL.OnlineSubgradientDescent.finite_loss
Exact Lean statement
theorem trajectory_finite_loss (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (p : SupportPolicy (E := E)) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (t : ℕ) (ht : t < T) : loss t (output A loss p t) = ((loss t (output A loss p t)).toReal : EReal)
Mathematics ↔ Lean

Difference of linear losses

Lean declarationBanditRL.OnlineLinearization.linearLoss_gap

Compiled

Plain-English statement. The comparator difference of inner-product losses is the inner product with the displacement.

Mathematical reading. The comparator difference of inner-product losses is the inner product with the displacement.
Intuition
The comparator difference of inner-product losses is the inner product with the displacement.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Use inner_sub_right.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. For arbitrary g,x,u in E, this is bilinearity of real inner-product losses. It has no loss sequence, domain, properness, learner, policy or support-legality premise.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem linearLoss_gap (g x u : E) : linearLoss g x - linearLoss g u = inner ℝ g (x - u)
Mathematics ↔ Lean

Feasible OCO implementation adapter

Lean declarationBanditRL.OnlineLinearization.canonical_regret_comparison

Compiled

Plain-English statement. A feasible learner and the shared canonical support producer give the comparison for their own generated feedback sequence.

Mathematical reading. A feasible learner and the shared canonical support producer give the comparison for their own generated feedback sequence.
Intuition
Feasibility plus proper subdifferentiability supplies a complete canonical feedback producer for the source comparison.
Why it is needed
Make the causal source reduction use one actual learner/feedback trajectory.
Place in the proof
Orabona v10 Section 2.3, printed22/PDF34. Bounded library realization or structural refinement; not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Use canonical_feedback, then apply regret_comparison on that identical run.
Lean reading notes
The exported signature retains the finite-dimensional real inner-product context. The historical declaration and proof are unchanged. Assume Feasible V A, properness and global support availability on V at every t<T, and u in V. The canonical selector supplies actual legality with its default branch unreachable on this prefix. Both sides use its own generated sequence. No numerical identity with another explicit provider or universal OLO guarantee is asserted. In this displayed formula g_t is selected A loss canonicalPolicy t, the feedback induced by that canonical provider.
Teaching dependencies
BanditRL.OnlineLinearization.canonical_feedback, BanditRL.OnlineLinearization.regret_comparison
Exact Lean statement
theorem canonical_regret_comparison (V : Domain (E := E)) (A : LinearPolicy (E := E)) (hA : Feasible V A) (loss : ℕ → E → EReal) (T : ℕ) (hloss : ∀ t < T, BanditRL.OnlineSubgradientDescent.SubdifferentiableOn V (loss t)) (u : E) (hu : u ∈ V.carrier) : regret A loss BanditRL.OnlineSubgradientPolicy.canonicalPolicy u T ≤ BanditRL.OnlineLearning.comparatorRegret (fun t => linearLoss (selected A loss BanditRL.OnlineSubgradientPolicy.canonicalPolicy t)) (linearRun A (selected A loss BanditRL.OnlineSubgradientPolicy.canonicalPolicy)) u T

Maintainer contract

Open the canonical completion definition and blockers

The unchanged causal reduction module has 18 proofs, 9 definitions and 3 aliases; its complete 35-declaration canary is retained. This bounded library interface makes the source reduction explicit without claiming its unrestricted premise set.

Remaining blockers

  • The unrestricted source interface and other Chapter 2 or whole-book obligations remain separate.
  • Purification and an Exposition Seal are separate from compilation and integration.

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 deterministic library realization. Closed-domain and global support-availability premises are inherited interface restrictions, not necessary conditions of the source supporting inequality. The unrestricted source Anchor, randomized guarantees, independence of externally chosen policies, executable selectors, universal optimality, chapter/book completion and purification are not established here.

All Lean modules in this chapter

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