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
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.Formula renderer unavailable; readable fallback: Sum the supporting inequalities at the same played points and fixed comparator. The result is linear regret on those same points.\(\sum_{t<T}(\ell_t(X_t)-\ell_t(u))\le\sum_{t<T}\langle g_t,X_t-u\rangle=\sum_{t<T}(\widetilde\ell_t(X_t)-\widetilde\ell_t(u)),\quad\widetilde\ell_t(x)=\langle g_t,x\rangle.\)Swipe to read the full formula →
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.
The mathematical content is restated in this site's notation; wording is ours. See printed22/PDF34 in the linked source for the original statement and full assumptions.
Derived instantiation of source guaranteeThe bounded Lean comparison on one generated runBounded library comparisonPrinted22/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.Formula renderer unavailable; readable fallback: Every actual legal support bounds one played loss gap; the accumulated bound is linear regret at the same outputs.\[R_T^{\rm convex}(u)\le\sum_{t<T}\langle g_t,X_t\rangle-\sum_{t<T}\langle g_t,u\rangle\]Swipe to read the full formula →
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.
This displayed statement is derived in the library. The linked Printed22/PDF34 supplies its source context; this explicit statement is not printed there as-is.
Derived instantiation of source guaranteeTransport an applicable all-vector guaranteeBounded guarantee transportPrinted22/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.Formula renderer unavailable; readable fallback: A bound for every vector sequence of the same learner applies to the generated feedback.\[(\forall v\in E^{\mathbb N},\,\forall u\in V,\ R_T^{\rm linear}(A,v,u)\le B(v,u,T))\Longrightarrow R_T^{\rm convex}(u)\le B(g,u,T)\]Swipe to read the full formula →
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.
This displayed statement is derived in the library. The linked Printed22/PDF34 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. 14 additional dependency, extension, or research-frontier notes are grouped below.
Plain-English statement. Running the linear policy on generated supports gives the original reduction outputs exactly.
Mathematical reading.Formula renderer unavailable; readable fallback: Running the linear policy on generated supports gives the original reduction outputs exactly.\[X_t=A_t((g_s)_{s<t})\]Swipe to read the full formula →
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
Plain-English statement. A genuine global support at an arbitrary ambient x bounds its finite loss gap against feasible u.
Mathematical reading.Formula renderer unavailable; readable fallback: A genuine global support at an arbitrary ambient x bounds its finite loss gap against feasible u.\[f(x)-f(u)\le\langle g,x-u\rangle\]Swipe to read the full formula →
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)
Plain-English statement. Every actual legal support bounds one played loss gap; the accumulated bound is linear regret at the same outputs.
Mathematical reading.Formula renderer unavailable; readable fallback: Every actual legal support bounds one played loss gap; the accumulated bound is linear regret at the same outputs.\[R_T^{\rm convex}(u)\le\sum_{t<T}\langle g_t,X_t\rangle-\sum_{t<T}\langle g_t,u\rangle\]Swipe to read the full formula →
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.
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
Plain-English statement. A bound proved for every vector sequence applies to the actually generated supports of the same learner.
Mathematical reading.Formula renderer unavailable; readable fallback: A bound proved for every vector sequence applies to the actually generated supports of the same learner.\[(\forall v\in E^{\mathbb N},\,\forall u\in V,\ R_T^{\rm linear}(A,v,u)\le B(v,u,T))\Longrightarrow R_T^{\rm convex}(u)\le B(g,u,T)\]Swipe to read the full formula →
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
Plain-English statement. The reconstructed last output is exactly the prescribed learner output on its finite past vectors.
Mathematical reading.Formula renderer unavailable; readable fallback: The reconstructed last output is exactly the prescribed learner output on its finite past vectors.\[F_t(H)_t=A_t(H)\]Swipe to read the full formula →
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
Plain-English statement. The learner starts with an empty feedback history; its first output need not be zero.
Mathematical reading.Formula renderer unavailable; readable fallback: The learner starts with an empty feedback history; its first output need not be zero.\[H_0=\varnothing\]Swipe to read the full formula →
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
Plain-English statement. The current loss is read after output, and the selected current feedback is appended.
Mathematical reading.Formula renderer unavailable; readable fallback: The current loss is read after output, and the selected current feedback is appended.\[H_{t+1}=H_t\mathbin{\|}g_t\]Swipe to read the full formula →
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.
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)
Plain-English statement. Appending current feedback preserves every earlier vector coordinate.
Mathematical reading.Formula renderer unavailable; readable fallback: Appending current feedback preserves every earlier vector coordinate.\[H_{t+1}(i)=H_t(i)\quad(i<t)\]Swipe to read the full formula →
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
Plain-English statement. Each stored vector is the actual feedback selected at that earlier round.
Mathematical reading.Formula renderer unavailable; readable fallback: Each stored vector is the actual feedback selected at that earlier round.\[H_t(i)=g_i\quad(i<t)\]Swipe to read the full formula →
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.
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
Plain-English statement. The support policy receives genuine played outputs reconstructed from past vectors.
Mathematical reading.Formula renderer unavailable; readable fallback: The support policy receives genuine played outputs reconstructed from past vectors.\[F_t(H_t)_i=X_i\quad(i\le t)\]Swipe to read the full formula →
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
Plain-English statement. A universally feasible linear learner remains feasible in the actual convex-loss reduction.
Mathematical reading.Formula renderer unavailable; readable fallback: A universally feasible linear learner remains feasible in the actual convex-loss reduction.\[(\forall t,H,\ A_t(H)\in V)\Longrightarrow X_t\in V\]Swipe to read the full formula →
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
Plain-English statement. With common fixed A and p, equal strict-past whole losses give equal feedback histories.
Mathematical reading.Formula renderer unavailable; readable fallback: With common fixed A and p, equal strict-past whole losses give equal feedback histories.\[(\forall s<t,\ f_s=f_s^\prime)\Longrightarrow H_t=H_t^\prime\]Swipe to read the full formula →
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
Plain-English statement. Current and future losses cannot change the already determined output, with exogenous A,p fixed.
Mathematical reading.Formula renderer unavailable; readable fallback: Current and future losses cannot change the already determined output, with exogenous A,p fixed.\[(\forall s<t,\ f_s=f_s^\prime)\Longrightarrow X_t=X_t^\prime\]Swipe to read the full formula →
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
Plain-English statement. A feasible learner, admissible losses through T and the universal off-path provider law produce actual played support legality.
Mathematical reading.Formula renderer unavailable; readable fallback: A feasible learner, admissible losses through T and the universal off-path provider law produce actual played support legality.\[\operatorname{OracleLaw}(p)\Longrightarrow g_t\in\partial f_t(X_t)\ (t<T)\]Swipe to read the full formula →
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
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.Formula renderer unavailable; readable fallback: For a feasible learner and admissible losses through T, the canonical choice has a nonempty support set at each played point.\[g_t=\operatorname{Choose}(\partial f_t(X_t))\in\partial f_t(X_t)\]Swipe to read the full formula →
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.
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
Plain-English statement. Properness and support existence at feasible outputs establish a finite real loss value.
Mathematical reading.Formula renderer unavailable; readable fallback: Properness and support existence at feasible outputs establish a finite real loss value.\[f_t(X_t)=\iota(\operatorname{toReal}(f_t(X_t)))\]Swipe to read the full formula →
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.
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)
Plain-English statement. The comparator difference of inner-product losses is the inner product with the displacement.
Mathematical reading.Formula renderer unavailable; readable fallback: The comparator difference of inner-product losses is the inner product with the displacement.\[\widetilde f_g(x)-\widetilde f_g(u)=\langle g,x-u\rangle\]Swipe to read the full formula →
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)
Plain-English statement. A feasible learner and the shared canonical support producer give the comparison for their own generated feedback sequence.
Mathematical reading.Formula renderer unavailable; readable fallback: A feasible learner and the shared canonical support producer give the comparison for their own generated feedback sequence.\[R_T^{\rm convex}(u;A,p_{\rm canonical})\le R_T^{\rm linear}(A,g,u)\]Swipe to read the full formula →
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.
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
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.
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.