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

Teaching chapter 01 of 31 · Canonical route compiled

Online Learning: foundations and Follow-the-Leader

Strict-past FTL with any legal initialization, finite refined regret, distinct asymptotic regret metrics, causal IID benchmarks and a derived randomized logarithmic lower bound. Chapter 1 source claims are reconciled with explicit model restrictions, native proof routes and the ordinary-limit obstruction.

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 beginning Orabona Chapter 1; all declarations share the canonical Lean graph.

Learning goals

  • Distinguish the actual past-only prediction from a hindsight leader.
  • Derive the logarithmic regret bound from actual mean updates.
  • Distinguish arbitrary deterministic loss sequences from IID expectation guarantees.
  • Prove a recursive count/value state agrees with the strict-prefix predictor and isolate the half-initialization regret specialization.
  • Explain how a correlated binary law yields one fixed sequence with logarithmic regret in expectation over an admissible randomized policy.
  • Distinguish eventual upper no-regret from ordinary finite-limit no-regret, and explain their conditional equivalence and affine separation example.
  • Produce the attained square-loss minimum and distinguish signed pathwise best-fixed regret from the minimum of expected fixed loss.

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
Chapter 1: Lemma 1.2, Theorem 1.3, comparator regret, squared-loss and information foundations
Pages
Main text printed pp. 1-6 / PDF pp. 13-18; History Bits starts on printed p. 6 and continues on p. 7
Open at the cited pages
strict-past empirical mean · ordered flow

Follow-the-Leader for squared guessing loss

Read top to bottom to follow the argument or procedure.

  1. Initialize

    Predict one half before seeing the first target.

  2. Predict

    On later rounds, output the average of all previous targets.

  3. Observe

    Pay squared error and update the running average with the current target.

23 distinct theory routes, one frontier.Open the statement you want to compare; the other routes stay compact.
Source theorem · faithful restatementLemma 1.2: Be-the-LeaderCompiled shared-library coreprinted p. 4
Source theorem · faithful restatement

Lemma 1.2: Be-the-Leader

Original at printed p. 4 ↗
Compiled shared-library coreThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete.

Prefix minimizers beat the final fixed leader in cumulative loss.

Model
Deterministic real-valued loss functions on a feasible set.
Assumptions
For every positive prefix n<=T, leader n belongs to V and minimizes its prefix sum against every u in V.
Algorithm parameters
Any ambient type, finite horizon and supplied leader sequence.
Regret notion
Current-prefix leader cumulative loss versus the final leader.
Guarantee
The displayed Be-the-Leader inequality; no causal-learner assertion.
Source mathematical statement. Prefix minimizers beat the final fixed leader in cumulative loss.

BanditRLlib relationship. Lemma 1.2 is retained with supplied feasible prefix minimizers on an arbitrary ambient type, explicitly generalizing the source Euclidean setting. Their existence is not proved for arbitrary losses. Zero horizon is an empty-sum extension. FoundationsProbe has seven validation theorems: prefix minimization, the instantiated comparison, strict values -2 < 0, zero and one horizons, and reversals after omitting optimality or feasibility. The latter uses an ambient loss extension at leaders outside V; it is not a valid V-only source game. These current-prefix hindsight leaders differ from the strict-past learner in the two-target example.

Source theorem · faithful restatementTheorem 1.3: guessing with the past meanCompiled shared-library coreprinted p. 4
Source theorem · faithful restatement

Theorem 1.3: guessing with the past mean

Original at printed p. 4 ↗
Compiled shared-library coreThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete.

The actual history-mean predictor achieves the source logarithmic regret bound.

Model
Deterministic scalar squared-loss guessing.
Assumptions
T>0 and every target in the played finite prefix lies in [0,1].
Algorithm parameters
Any such finite sequence, including sequences selected adaptively after the prediction.
Regret notion
Cumulative loss minus the minimum over one fixed interval comparator, represented by the proved feasible empirical mean.
Guarantee
4+4 log T; no probability, future support or known-horizon premise.
Source mathematical statement. The actual history-mean predictor achieves the source logarithmic regret bound.

BanditRLlib relationship. Theorem 1.3 uses the actual first-half, strict-past mean learner. Feasible empirical minimizers and stability are proved dependencies, not additional public premises.

Source theorem · faithful restatementPrinted no-regret definition and the explicit upper interpretationCompiled shared-library coreprinted p. 2
Source theorem · faithful restatement

Printed no-regret definition and the explicit upper interpretation

Original at printed p. 2 ↗
Compiled shared-library coreThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete.

The printed source uses an ordinary limit. The implemented NoRegret property is the comparator-wise eventual upper-epsilon condition.

Model
A fixed deterministic loss and prediction sequence.
Assumptions
The mean learner producer has all targets in [0,1]; the generic adapter separately consumes an eventual normalized upper bound tending to zero.
Algorithm parameters
For each fixed feasible u, then every epsilon>0, a threshold may depend on both.
Regret notion
Signed R_T(u)/T.
Guarantee
Eventual upper epsilon, not convergence to zero, nonnegative regret, an absolute bound or a uniform threshold.
Source mathematical statement. Source: ordinary limit at most zero. Lean: every positive epsilon eventually upper-bounds normalized signed regret.

BanditRLlib relationship. These are distinct statements unless finite real convergence is established. This integration proves the eventual upper property for the actual learner, without proving ordinary-limit existence or replacing the printed formula silently.

Derived library resultDerived identity explaining equation (1.1)Compiled shared-library coreprinted p. 1
Derived library result

Derived identity explaining equation (1.1)

Source context at printed p. 1 ↗
Compiled shared-library coreThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete.

The expected excess is a sum of nonnegative squared estimation errors.

Model
A probability space with measurable jointly independent real targets of a common distribution.
Assumptions
Every target lies in [0,1] at every sample point. This pointwise support is stronger than almost-sure support.
Algorithm parameters
The same infinite process and the same actual past-mean learner, finite T including zero.
Regret notion
Expected cumulative squared loss minus T Var(Y0), with the fixed population benchmark outside expectation.
Guarantee
A finite sum of nonnegative mean-estimation errors. Measurability, L2 and current-target independence are proved for the learner; no rate follows from this identity alone.
Derived mathematical statement. The expected excess is a sum of nonnegative squared estimation errors.

BanditRLlib relationship. The source motivates the population-variance benchmark. The displayed finite decomposition is a library derivation for this actual learner, not a second numbered source theorem or a stochastic convergence result. For a probability measure and measurable Y supported pointwise in [0,1], the population mean m = E[Y] belongs to [0,1], E[(m-Y)^2] = Var(Y), and Var(Y) <= E[(u-Y)^2] for every fixed real u. The preserved source_mean_optimal derives these facts from expected_square_decomposition. This identifies the fixed population benchmark; it does not compare the expectation of a random hindsight minimum or give an IID rate.

Source theorem · faithful restatementTheorem 1.3 proof: initial1/4 stabilityCompiled shared-library coreprinted p.5 (unnumbered proof bound)
Source theorem · faithful restatement

Theorem 1.3 proof: initial1/4 stability

Original at printed p.5 (unnumbered proof bound) ↗
Compiled shared-library coreThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete. FTLSharpProbe has six validation theorems plus one target fixture: endpoint equality at 1/4, strict interior value zero, outside-support value 9/4, one-round empty tail, two-round regret 3/4 below 9/4, and deterministic strict-past prefix invariance when current/future targets change, which is distinct from probabilistic independence.

After observing the first target, its hindsight mean is that target, so the second squared loss is zero. The interval bounds imply y1(1-y1)>=0, which bounds the initial squared error by1/4.

Model
Deterministic scalar squared-loss guessing. The predictor uses exactly the targets already observed: first prediction 1/2, then their empirical mean. Empty-prefix mean0 is bookkeeping and differs from the first prediction.
Assumptions
Only the first target belongs to [0,1]. Future targets are unrestricted.
Algorithm parameters
Only source round 1 is involved: x_1 = 1/2 corresponds to meanPredict y 0 = 1/2, and x_1^* = y_1 corresponds to empiricalMean y 1 = y 0. Separately, empiricalMean y 0 = 0. This statement has no horizon or tail parameter.
Regret notion
Actual initial stability loss difference.
Guarantee
The one-observation hindsight mean is the first target, so its squared loss is zero. Only y0 in [0,1] is needed to bound the initial squared error by 1/4. Targets 0 and 1 attain 1/4, target 1/2 yields 0, and target 2 gives 9/4 outside the theorem domain. This first-round estimate makes no assertion about feasibility of later means when future targets are unrestricted.
Source mathematical statement. After observing the first target, its hindsight mean is that target, so the second squared loss is zero. The interval bounds imply y1(1-y1)>=0, which bounds the initial squared error by1/4.

BanditRLlib relationship. A separate retained lemma proves the first-round quarter bound in the source proof, including equality at endpoint targets.

Source theorem · faithful restatementTheorem 1.3 proof: exact finite-horizon tailCompiled shared-library coreprinted p.5 (unnumbered proof bound)
Source theorem · faithful restatement

Theorem 1.3 proof: exact finite-horizon tail

Original at printed p.5 (unnumbered proof bound) ↗
Compiled shared-library coreThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete. FTLSharpProbe has six validation theorems plus one target fixture: endpoint equality at 1/4, strict interior value zero, outside-support value 9/4, one-round empty tail, two-round regret 3/4 below 9/4, and deterministic strict-past prefix invariance when current/future targets change, which is distinct from probabilistic independence.

Be-the-Leader compares the produced prefix minimizers with the final mean. Subtract these losses from the actual prediction losses, split off the first round, and add its1/4 estimate to the existing4/t bounds for later rounds.

Model
Deterministic scalar squared-loss guessing. The predictor uses exactly the targets already observed: first prediction 1/2, then their empirical mean. Empty-prefix mean0 is bookkeeping and differs from the first prediction.
Assumptions
Positive horizon T; every target in its finite prefix belongs to [0,1]. There is no probability or global future-boundedness premise.
Algorithm parameters
Source rounds1..T are Lean indices0..T-1. The tail range(T-1) has real denominators t+2>0 and is empty at T=1.
Regret notion
Actual predictor loss minus the produced best-fixed mean loss.
Guarantee
Be-the-Leader compares the produced prefix minimizers with the final mean. Subtract these losses from the actual prediction losses, split off the first round, and add its1/4 estimate to the existing4/t bounds for later rounds. The final empirical mean is proved feasible and globally minimizing, so its loss is the source best-fixed minimum over [0,1]. Prefix leaders are produced for Be-the-Leader; hindsight leaders are auxiliary, while predictions use the strict past. The initial loss difference equals1/4 at targets0 and1, and0 at1/2. Target2 gives9/4 and lies outside the theorem domain. For targets0,1 the actual two-round regret is3/4 while the displayed bound is9/4. Changing the current unseen target leaves the prefix prediction unchanged.
Source mathematical statement. Be-the-Leader compares the produced prefix minimizers with the final mean. Subtract these losses from the actual prediction losses, split off the first round, and add its1/4 estimate to the existing4/t bounds for later rounds.

BanditRLlib relationship. A separate retained refinement preserves the first-round quarter plus the finite harmonic tail. At T=1 the tail is empty; it is not a lower bound.

Derived library resultComparator regret with separate action and comparison domainsCompiled shared-library coreprinted p.2 / PDF p.14; comparator definition, Remark1.1 and Footnote1; modelling audit
Derived library result

Comparator regret with separate action and comparison domains

Source context at printed p.2 / PDF p.14; comparator definition, Remark1.1 and Footnote1; modelling audit ↗
Compiled shared-library coreThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete.

Subtract the two finite loss sums and distribute subtraction termwise using Mathlib Finset.sum_sub_distrib. For the adapter, tendsto_order makes a comparator-wise bound tending tozero less than any positive epsilon eventually; intersect this event with the supplied actual normalized-regret upper bound and use transitivity. The adapter does not itself construct that bound. The typed illustrative game has V=[0,1],W=[0,2], constant output2 and loss_t(x)=-x onW. For every comparator u∈V, each actual loss gap is u-2≤-1≤0; Finset.sum_nonpos and div_nonpos_of_nonpos_of_nonneg make its finite sum and normalized regret nonpositive. The actual shared adapter applies with bound0. At T2 the same output gives regret -4 against0 and -2 against1. This is a generalized negative-regret test, separate from the source squared guessing game and no universal W performance claim.

Model
Deterministic real losses with one common ambient carrier; optional W/V subtype interpretation.
Assumptions
No convexity, probability or sign assumption for the finite algebra. Embedding uses V subset W.
Algorithm parameters
One prediction sequence and any fixed comparator, including zero horizon. Pullback along V -> W and prefix equality concern the same fixed predictions.
Regret notion
Difference of sums equals sum of pointwise gaps.
Guarantee
The algebraic identity and a separately conditional eventual-bound adapter. Neither constructs a learner or a best comparator. Restriction along the embedding V -> W commutes with regret when predictions already lie in V. Equality of losses on the played prefix preserves evaluation for one fixed prediction sequence; it does not recompute a causal learner. T = 0 uses empty sums and total real division. With no feasible comparator, the universal eventual property is vacuous and supplies no best comparator.
Derived mathematical statement. Subtract the two finite loss sums and distribute subtraction termwise using Mathlib Finset.sum_sub_distrib. For the adapter, tendsto_order makes a comparator-wise bound tending tozero less than any positive epsilon eventually; intersect this event with the supplied actual normalized-regret upper bound and use transitivity. The adapter does not itself construct that bound. The typed illustrative game has V=[0,1],W=[0,2], constant output2 and loss_t(x)=-x onW. For every comparator u∈V, each actual loss gap is u-2≤-1≤0; Finset.sum_nonpos and div_nonpos_of_nonpos_of_nonneg make its finite sum and normalized regret nonpositive. The actual shared adapter applies with bound0. At T2 the same output gives regret -4 against0 and -2 against1. This is a generalized negative-regret test, separate from the source squared guessing game and no universal W performance claim.

BanditRLlib relationship. The shared ambient carrier realizes outputs in W and comparators in V subset W by using the subtype W. Losses must be defined on W; a V-only loss is not evaluated outside V. The source footnote supplies a modeling possibility, not an algorithmic guarantee. Restriction along the embedding V -> W commutes with regret when predictions already lie in V. Equality of losses on the played prefix preserves evaluation for one fixed prediction sequence; it does not recompute a causal learner. T = 0 uses empty sums and total real division. With no feasible comparator, the universal eventual property is vacuous and supplies no best comparator.

Derived library resultEmpirical mean: the positive-prefix minimizerCompiled supporting interfaceprinted p. 3
Derived library result

Empirical mean: the positive-prefix minimizer

Source context at printed p. 3 ↗
Compiled supporting interfaceThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete.

For n>0 the empirical mean uniquely minimizes cumulative squared loss; interval observations also make it feasible.

Model
Derived library explanation of the cited Chapter 1 material.
Assumptions
Positive n; arbitrary real data for the algebra and unique global minimizer. Interval support is additionally used only for feasibility.
Algorithm parameters
A positive prefix length n > 0, real observations y, and a real comparator u. Unit support is needed for interval feasibility, not the algebraic characterization.
Regret notion
No additional regret or convergence claim.
Guarantee
For n>0 the empirical mean uniquely minimizes cumulative squared loss; interval observations also make it feasible.
Derived mathematical statement. For n>0 the empirical mean uniquely minimizes cumulative squared loss; interval observations also make it feasible.

BanditRLlib relationship. The source states the argmin characterization without its proof. The library supplies the squared-loss decomposition, feasibility and uniqueness; the literal empty-prefix value is separate.

Derived library resultStrict finite-history policies and the variance benchmarkCompiled supporting interfaceprinted p. 1
Derived library result

Strict finite-history policies and the variance benchmark

Source context at printed p. 1 ↗
Compiled supporting interfaceThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete.

A measurable bounded deterministic strict-history policy is independent of the current target and cannot beat its variance in expected squared loss.

Model
Derived library explanation of the cited Chapter 1 material.
Assumptions
A probability measure, measurable jointly independent targets, pointwise unit support, and a measurable policy taking values in [0,1] on every real history tuple.
Algorithm parameters
A probability space, measurable jointly independent real targets Y indexed by natural numbers, fixed time t, and a deterministic measurable policy pi : (Fin t -> Real) -> Real valued in [0,1] on every real history tuple. Target support is pointwise.
Regret notion
No additional regret or convergence claim.
Guarantee
A measurable bounded deterministic strict-history policy is independent of the current target and cannot beat its variance in expected squared loss.
Derived mathematical statement. A measurable bounded deterministic strict-history policy is independent of the current target and cannot beat its variance in expected squared loss.

BanditRLlib relationship. This derived finite-history API needs no identical-law premise and compares with the current variance. It does not represent all stochastic kernels, completed-information policies or almost-sure factorization classes.

Derived library resultSource FTL family and a derived recursive mean/count stateCompiled recursive stateprinted pp.3,6 / PDF pp.15,18; strategy and summary prose
Derived library result

Source FTL family and a derived recursive mean/count state

Source context at printed pp.3,6 / PDF pp.15,18; strategy and summary prose ↗
Compiled recursive stateThe arbitrary-initial predictor and recursive exact-real state provide a bounded Chapter 1 interface. The ordinary-limit reconciliation, general-initial regret guarantees, general stochastic strategy classes and later modules remain separate. The separate derived lower-bound card proves the stated quantitative result for measurable, globally interval-valued seeded policies; unrestricted minimax identification and sharp constants are not claimed. Chapter 1 and the book remain incomplete. Exact-real state representation is not a bit-memory or machine-cost theorem. Full project, independent reader and main/live acceptance remain separate gates.

The source permits any first prediction in [0,1] and says the past can be summarized by a running average. The library supplies the displayed recursive count/value representation and proves that it produces exactly this predictor.

Model
Deterministic scalar squared-loss guessing. Source round t+1 corresponds to Lean t; predict before observing yt.
Assumptions
The identities quantify over real initial values and sequences. Feasible predictions require c in [0,1] and yi in [0,1] for i<t. Current and future targets are unrestricted in these local statements.
Algorithm parameters
The same fixed initialization c is used when comparing histories. Choosing c from future data is not covered by the strict-prefix causality interpretation.
Regret notion
At c=1/2 the actual state trajectory equals the existing half-initialized predictor, permitting reuse of its bounds. The family/state identities alone assert no arbitrary-c regret bound.
Guarantee
The count equals t. The first update gives (1,y0), cancelling c. Induction and empiricalMean_succ identify every later value with the strict-prefix mean. Existing mean feasibility and minimizer results supply the source-domain interpretation.
Derived mathematical statement. Start from (0,c), predict its value, then update the count and mean with the observed target. The resulting state at time t is (t,p_c(t)).

BanditRLlib relationship. ftlState_eq_predict proves equality of the genuinely recursive state and the source-shaped prefix predictor. The update formula and induction are a library derivation of the source summary claim; the source does not print this recurrence or a quantitative complexity theorem.

Derived library resultDerived lower bound for randomized causal guessingCompiled derived lower boundprinted p.4 / PDF p.16, unnumbered claim; regret p.2/PDF14 and mean p.3/PDF15
Derived library result

Derived lower bound for randomized causal guessing

Source context at printed p.4 / PDF p.16, unnumbered claim; regret p.2/PDF14 and mean p.3/PDF15 ↗
Compiled derived lower boundThe quantitative constants and seeded policy class are library derivations, not printed source details or sharpness claims. There is no per-seed, almost-sure, or one-path-for-all-policies-and-horizons guarantee. Chapter1, unrestricted stochastic strategy classes, general-initial upper regret and later chapters remain separate. The two-module compile and imported proof audit do not replace full project, independent reader or main/live acceptance.

The source says logarithmic time dependence is unavoidable and explicitly leaves its minimax proof unstated. The library supplies the displayed finite-horizon result for each seed probability law and each seed-measurable, pointwise [0,1]-valued strict-history policy. Its fixed binary witness is chosen outside the seed integral. The construction and constants below are independently derived support.

Model
For a newest-first binary history h, K(h) counts its ones and q(h)=(K(h)+1)/(|h|+2). Start with w([])=1 and extend by w(b::h)=w(h)q(h) for b=1, or w(h)(1-q(h)) for b=0. The positive normalized law is independent of policy and seed; its coordinates are correlated, not IID fair coin flips. Reverse h for chronological outcomes. At Lean round t, predict from exactly the t past labels before revealing label t. Source round t+1 is Lean t. In the displayed statement, v=(v0,...,v(T-1)) denotes chronological labels of the Lean witness: v_t=(reverse h)[t] for t<T, where the actual Lean vector stores the newest-first history h. Reversal is a bijection of length-T binary vectors. The predictor is x_t(A_omega,v)=A(omega,[v(t-1),...,v0]), and bar v=(1/T)sum_{t<T}v_t.
Assumptions
For every measurable seed space Omega with probability measure mu and every A:Omega -> List Bool -> Real, each section omega -> A(omega,h) is measurable and A(omega,h) belongs to [0,1] for every seed and every history. The theorem applies at every positive natural T. The seed may encode a private random tape. This explicitly specified policy class is a library contract; the source prose does not provide these measure-theoretic quantifiers.
Algorithm parameters
H_n=sum_{i=1}^n 1/i; log is natural. The loss is (x-y)^2 without a factor1/2. Regret is a signed cumulative difference against the best constant in[0,1], not an average, absolute value or clipped loss. Binary witnesses are legal [0,1] outcomes. T=0 is excluded from the lower endpoints, though their internal finite sums and counts are totalized. E_T[f] denotes the finite weighted sum over length-T newest-first histories h of w(h)f(h); it averages the constructed binary path law, whereas the displayed integral averages only the policy seed with the path held fixed.
Regret notion
The empirical mean of the same positive-length binary sequence is feasible and minimizes its cumulative squared loss. Its expected optimal loss under w is (T-1)/6. The comparator minimum stays inside path regret before the seed integral; no exchange of expectation and hindsight minimum is asserted.
Guarantee
The finite law gives E[K]=T/2 and E[K^2]=T(2T+1)/6, hence E[q(1-q)]=(T+3)/(6(T+2)). Conditional squared loss is at least q(1-q); summing the actual causal loss increments gives expected cumulative learner loss at least T/6+(H(T+1)-1)/6. Subtract the same-path expected optimum to obtain expected regret at least H(T+1)/6. Bounded measurable policies give integrable signed regret. Interchange its finite weighted sum and seed integral, then normalized positive weights force one fixed witness. The harmonic-to-log inequality preserves that witness. The separate prefixMeasure probability/integral interface is available, while this terminal proof uses finite pathExpectation sums.
Derived mathematical statement. For each admissible randomized causal policy and positive T, one fixed binary sequence gives expected cumulative squared-loss regret at least H(T+1)/6 and log(T+2)/6. The witness may depend on the policy, law and horizon, but not on the realized random seed.

BanditRLlib relationship. The unnumbered statement at printed p.4/PDF p.16 has no printed proof or finite-horizon constant. randomized_harmonic_lower and randomized_log_lower supply quantitative library support. They do not reproduce a source proof, establish a sharp constant, or identify an unrestricted formal minimax object.

Derived library resultOrdinary limits and upper no-regret: a derived reconciliationLocally compiled derived reconciliationprinted p.2 / PDF p.14, no-regret paragraph and ordinary lim display
Derived library result

Ordinary limits and upper no-regret: a derived reconciliation

Source context at printed p.2 / PDF p.14, no-regret paragraph and ordinary lim display ↗
Locally compiled derived reconciliationThe fixed-trace equivalence requires actual finite convergence. The counterexample has unbounded signed affine losses and proves neither bounded-loss separation nor failure of meanPredict convergence. Fixed-comparator upper control alone is not uniform control over a horizon-dependent best comparator. Source/reader acceptance, complete project gates and main/live release are separate; Chapter1 and the book remain incomplete.

The source describes regret as at most sublinear for every fixed comparator and prints an ordinary lim inequality. The library keeps that display distinct from eventual upper-epsilon control. An existing finite limit is nonpositive under upper control. Conversely, a nonpositive finite limit implies upper control. A single fixed affine loss stream shows that upper control alone need not produce an ordinary limit.

Model
The source has predictions and fixed comparators in V contained in a finite-dimensional real vector space, real losses evaluable there, and online predictions independent of the comparator. Its footnote allows predictions in W containing V in some settings, which requires losses evaluable on W. The generic Lean bridge uses one supplied trace on arbitrary X with total losses Nat -> X -> Real and comparator set V. This admits a W trace when W is contained in X and losses are defined on X, but it neither enforces feasibility/causality nor constructs an algorithm or a uniform guarantee over all loss sequences. In the concrete counterexample, x_t=0 is feasible and independent of outcomes, comparator and horizon.
Assumptions
For the ordinary-to-upper implication, every fixed u in V has a finite real limit a_u<=0. For the reverse implication, actual convergence for each u is supplied explicitly and upper control determines its sign. Threshold N(u,epsilon) and limit a_u may depend on u and the supplied trace. Negative limits are allowed; no uniform comparator threshold, absolute convergence, nonnegative regret or zero-limit claim follows. No IID, expectation, filtration or convexity assumption is used in these generic trace bridges.
Algorithm parameters
Regret is the signed cumulative difference at the same horizon T. Source rounds1..T map to Lean0..T-1. Real division at T=0 is total in Lean, while the asymptotic condition ignores finite initial horizons. The separating maps 2(n+1) and2n+1 are positive and tend to infinity. Limits are finite real limits, with no implicit extended-real convention.
Regret notion
For F(0)=0, telescoping gives sum_{t<T} ell_t(u)=F(T)u. The zero learner has loss0, so R_T(u)=-F(T)u. F(T)>=0 and u>=0 prove upper control on[0,1]. The coefficients at t=0,1,2,3 are0,2,-2,4 and are unbounded in time. This is an actual infinite signed affine loss stream, not a bounded-loss, squared-loss or meanPredict counterexample.
Guarantee
If an existing limit a were positive, upper control with epsilon=a/2 and le_of_tendsto would give a<=a/2. Conversely, tendsto_order makes a sequence converging to a_u<=0 eventually less than any positive epsilon. These implications prove equivalence under per-comparator convergence. For the affine stream, the exact telescoping identity gives upper control at all horizons. At u=1, even and odd positive cofinal subsequences converge respectively to-1 and0, so uniqueness of real limits rules out an ordinary limit. The existing strict-past mean predictor has a separate upper guarantee: its same-path empirical-mean minimum bounds each fixed comparator, and (4+4log T)/T tends to0. That producer does not establish ordinary normalized-regret convergence.
Derived mathematical statement. For each fixed comparator, convergence to some finite nonpositive value implies eventual upper-epsilon control. The reverse implication requires actual finite convergence for every comparator. A feasible zero learner on one fixed signed affine loss stream has normalized regret -1 at positive even horizons and0 at odd horizons for comparator1, while upper control holds for every comparator in[0,1].

BanditRLlib relationship. Orabona v10 printed p.2/PDF p.14 explicitly uses ordinary lim, not limsup. The eventual-upper interpretation follows the upper-growth wording. The convergence bridges and affine counterexample are derived support that preserves this distinction. The added convergence premise is part of the derived equivalence theorem, not an assumption silently inserted into the source definition.

Derived library resultThe attained square-loss minimum and best-fixed regretLocally compiled minimum representation and FTL adaptersprinted pp.2-6 / PDF pp.14-18: minimum, empirical mean, Theorem1.3 and harmonic proof continuation
Locally compiled minimum representation and FTL adaptersThe representation and order identities allow any supplied real prediction trace. They do not assert feasibility or causality of that trace. The two performance bounds use the actual strict-past mean predictor, initially1/2, and require T>0. The T=0 representation is an explicit empty-prefix extension, with no uniqueness claim. Signed regret can be negative. The minimum of expected fixed loss and its causal IID variance benchmark are separate obligations. Independent source and reader reviews and the shared project gate passed for these bounded results. Rendered and release acceptance are tracked separately. Chapter1 and the book remain incomplete.

The comparator is one scalar held fixed across the observed prefix. For positive T, the empirical mean minimizes its loss. The library produces this feasible minimizer, identifies the actual minimum value, and expresses the existing past-mean regret guarantees against it.

Model
Let y_t lie in [0,1] for t<T, let L_T(u)=sum_{t<T}(u-y_t)^2, and let m_T be the empirical mean. The source uses rounds1..T; Lean uses indices0..T-1. The source game predicts before the current target is revealed. Algebraic identities accept arbitrary real prediction traces; the performance endpoints use the explicit strict-past mean strategy.
Assumptions
Only targets on the prefix t<T must lie in [0,1]. The order comparison also requires u in [0,1]. No minimizer, stability inequality, regret bound, probability law or convergence hypothesis is supplied as a new theorem premise. Positive T is required for both performance endpoints.
Algorithm parameters
Source round s corresponds to Lean index s-1. For positive T, m_T averages exactly T targets. Lean sets m_0=0 by total real division; at T=0 all loss sums vanish and minimizers are not unique. The refined tail has denominators2,...,T and is empty at T=1.
Regret notion
R_T^{best} is a signed pathwise loss difference, with the minimum taken after observing the whole prefix. For a fixed alternating0/1 prediction stream and a fixed matching target stream, the two-round regret is -1/2. This is compatible with all definitions. Taking expectation of this hindsight minimum is different from minimizing expected fixed-comparator loss.
Guarantee
For T>0, feasibility of the mean and the identity L_T(u)=L_T(m_T)+T(u-m_T)^2 prove that m_T attains the interval minimum. Its loss is therefore the least element of the comparator-loss image, so IsLeast.csInf_eq identifies sInf with L_T(m_T). Substitution gives R_T^{best}(x)=R_T(m_T), and subtracting L_T(m_T)<=L_T(u) gives R_T(u)<=R_T^{best}(x). Apply the existing theorem_1_3 and meanPredict_regret_refined to the same strict-past prediction trace. The source analysis keeps the first-round1/4 and later terms4/s; the harmonic-integral step continues on printed p.6. The new adapters do not re-prove a different rate.
Derived mathematical statement. Best-fixed regret equals prediction loss minus squared loss at the empirical mean. Every feasible comparator regret is at most this signed best-fixed regret. The initially one-half past-mean strategy satisfies both the refined quarter-plus-tail guarantee and the logarithmic guarantee for positive horizons.

BanditRLlib relationship. Derived minimum-value representation and adapters for Orabona v10, printed pp.2-6 / PDF pp.14-18. Theorem1.3 is on printed p.4, the refined bound on p.5, and its harmonic-integral continuation on p.6. These six results are not six separately printed theorems.

Derived library resultExpected fixed-comparator minimum and causal IID excessCompiled and scientifically reviewedprinted pp. 1–2 / PDF pp. 13–14: population benchmark and normalized excess
Derived library result

Expected fixed-comparator minimum and causal IID excess

Source context at printed pp. 1–2 / PDF pp. 13–14: population benchmark and normalized excess ↗
Compiled and scientifically reviewedIndependent source-topology, semantic, proof-body and binder/reuse reviews passed for these finite expected-fixed adapters and their deterministic measurable strict-history producers. The expected fixed minimum remains distinct from the expectation of a hindsight minimum. Randomized and general-filtration strategy coverage, asymptotic success and full Chapter 1 coverage remain open. The shared library, Tests and full harness passed. Bounded local reader, module, formula and graph rendering was reviewed. Committed-candidate checks and release acceptance remain pending. This is derived support, not a separately printed theorem or complete source proof.

The source compares expected loss with one fixed prediction chosen before the outcomes are averaged. The population mean attains this benchmark. For the deterministic measurable strict-history policies formalized here, IID sampling yields the nonnegative excess identity.

Model
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. T=0 is an explicit empty-prefix extension; it does not assert uniqueness.
Assumptions
For the fixed minimum, common law suffices. Causal excess adapters additionally use mutual independence of observations. A history policy is measurable on its full real-history domain, and its output is required to lie in [0,1] on legal interval-valued histories. No bound is imposed on illegal histories. L2 and current-target independence are proved internally for these adapters.
Algorithm parameters
One common probability space; natural-indexed real observations. T=0 is included in the unnormalized formulas, without a uniqueness assertion. Normalization requires T>0.
Regret notion
The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Guarantee
Bounded support supplies finite second moments. The fixed-comparator decomposition is Tv+T(u-m)^2. Integrating the interval bounds makes m feasible, and nonnegative squared bias makes Tv the actual least loss. For a strict-history policy, measurability and legal-history feasibility supply L2, while mutual independence makes its prediction independent of the current target. The shared square identity then gives expected loss equal to Tv plus the sum of expected squared prediction biases. Subtraction and positive-horizon normalization give the displayed formulas. The source omits these formal bridges; they are derived support, not a verbatim printed proof.
Derived mathematical statement. The minimum of expected fixed loss is T times population variance. For the stated causal policies, excess equals the sum of expected squared deviations from the population mean. Average excess divides this finite quantity by a positive horizon.

BanditRLlib relationship. Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.

Derived library resultPrivate tape, strict-past information and finite IID excessCompiled and scientifically reviewedprinted pp. 1–2 / PDF pp. 13–14: finite expected benchmark, with a derived private-tape extension
Compiled and scientifically reviewedThis covers the specified whole-process-independent private tape and raw generated information. It does not represent every randomized kernel, arbitrary side information, completed sigma-fields or merely almost-everywhere predictable versions. It gives finite identities, without an asymptotic rate or ordinary-regret success claim. No expectation/minimum interchange is asserted. Source/semantic/body/binder review accepts this explicit extension. The shared library, Tests and full harness passed. Local source-card, reader, module, formula and graph rendering was reviewed. Committed-candidate checks and release acceptance remain pending.

The printed source gives a population-variance benchmark for causal guessing. This extension supplies an explicit information model: a private tape independent of the entire IID target process, together with the strict past. Feasible predictions measurable in subordinate information satisfy the finite excess identity.

Model
Work on a probability space with measurable real targets Y_t and a measurable private tape S. The target family is mutually independent, and S is independent of the entire target sequence as one random element. Independence from each coordinate separately is insufficient. Lean t corresponds to source round t+1. For the excess endpoints additionally assume all targets have the law of Y_0 and lie in [0,1] almost surely. Write m = E[Y_0], v = Var(Y_0), B_T = inf over u in [0,1] of E sum_{t<T}(u-Y_t)^2, and Delta_T = E sum_{t<T}(P_t-Y_t)^2 - B_T. Here the existing minimum theorem gives B_T = Tv. All time-indexed assumptions hold for every natural t; T=0 is included. Every expectation in this private-tape extension is taken over the joint law of the tape and target process. No conclusion conditional on a fixed tape value is asserted.
Assumptions
For the excess formula require common target law, mutual target independence, almost-sure interval support, whole-process seed independence, and exact F_t-measurability with F_t ≤ G_t and almost-sure prediction feasibility. F_t need not be monotone. Alternatively use jointly measurable seed/history policies feasible for every seed only on legal histories. G_t itself is increasing without stochastic assumptions.
Algorithm parameters
Arbitrary probability and seed measurable spaces; one tape S may encode all private randomness used by this model. Raw comap-generated information, no completion. All time-indexed hypotheses quantify over natural time. T=0 gives an empty sum; at the first round a policy may use the seed.
Regret notion
This covers the specified whole-process-independent private tape and raw generated information. It does not represent every randomized kernel, arbitrary side information, completed sigma-fields or merely almost-everywhere predictable versions. It gives finite identities, without an asymptotic rate or ordinary-regret success claim. No expectation/minimum interchange is asserted.
Guarantee
Project mutual target independence to the finite past and current coordinate. Project whole-process tape independence to the same joint block and regroup product laws to obtain independence of (S,past) and the current target. Restrict this independence to the actual prediction information. Ambient measurability and almost-sure feasibility produce L2. The accepted cumulative square decomposition gives expected loss Tv plus the finite sum of expected squared deviations from m; the fixed minimum equals Tv, yielding the displayed identity and nonnegativity. For a concrete policy, a countable almost-sure legal-history event supplies feasibility and the generating map supplies exact measurability.
Derived mathematical statement. Join one whole-process-independent private tape to the strict past. Exact measurable feasible predictions in that information are independent of their current targets; their expected excess is the sum of expected squared deviations from the population mean.

BanditRLlib relationship. Derived private-tape extension of the finite expected guessing-game benchmark in Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), printed pp. 1–2 / PDF pp. 13–14. Those pages do not give a private-seed or sigma-field theorem or proof.

Derived library resultStochastic success and the actual sample-mean learnerFour bounded shared-library resultsprinted pp. 1–2, 4–6 / PDF pp. 13–14, 16–18
Derived library result

Stochastic success and the actual sample-mean learner

Source context at printed pp. 1–2, 4–6 / PDF pp. 13–14, 16–18 ↗
Four bounded shared-library resultsThe policy criterion covers explicit jointly measurable private-tape/strict-history policies. Representation of general stochastic kernels, completed information and almost-everywhere factorization remains separate. These results concern expectations, without high-probability, almost-sure or minimax guarantees. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total remains unknown.

For T>0, (A_T-Tv)/T=A_T/T-v. The little-o quotient criterion turns this eventual identity into the success equivalence. The causal private-seed identity gives E_T=sum_{t<T} E[(P_t-m)^2]>=0, so normalized expected loss tends to v exactly when the Cesaro mean of these squared errors tends to zero. For the mean learner, apply the pathwise Theorem 1.3 and compare its empirical minimum with the loss of the fixed population mean m. Bounded targets and predictions yield integrable squared losses, permitting integration of that inequality. The expected fixed loss at m is Tv, giving E_T<=4+4 log T even for dependent common-law streams. Under IID, the separate causal identity gives E_T>=0. Divide by T and squeeze between zero and (4+4 log T)/T; both 1/T and log T/T vanish. The same signed normalization adapter then gives E_T=o(T).

Model
Fix one infinite process on a probability space. Each real target is measurable, has the law of the first target, and lies in [0,1] almost surely. Square integrability is derived from this support. The expected-fixed comparator chooses one deterministic u in [0,1] before taking expectation. Its infimum is attained at the population mean m and equals T times the variance v.
Assumptions
For the policy criterion, the targets are jointly independent. A measurable private seed is independent of the whole target process. At every time, the policy is jointly measurable in the seed and strict finite history, and feasible for every seed on every legal unit-interval history. The process, seed and policy are fixed before all horizons. The theorem characterizes success rather than asserting that every such policy succeeds. The actual learner starts at 1/2 and then averages exactly the strictly earlier observations. It takes no population mean, law or horizon as input. The expected upper bound requires only common marginal laws; the zero-limit conclusion additionally requires joint independence.
Algorithm parameters
Source rounds 1 through T correspond to Lean indices 0 through T-1. Division is total at T=0, but the normalization identity is used only at eventually positive horizons. Little-o controls signed magnitude; ordinary convergence of expected excess is separate from the adversarial eventual-upper NoRegret predicate.
Regret notion
Write A_T=E[sum_{t<T}(P_t-Y_t)^2], m=E[Y_0], v=Var(Y_0), and B_T=inf_{u in [0,1]} E[sum_{t<T}(u-Y_t)^2]=Tv, attained at m. Then E_T=A_T-B_T. B_T does not take a random hindsight minimizer inside expectation.
Guarantee
For T>0, (A_T-Tv)/T=A_T/T-v. The little-o quotient criterion turns this eventual identity into the success equivalence. The causal private-seed identity gives E_T=sum_{t<T} E[(P_t-m)^2]>=0, so normalized expected loss tends to v exactly when the Cesaro mean of these squared errors tends to zero. For the mean learner, apply the pathwise Theorem 1.3 and compare its empirical minimum with the loss of the fixed population mean m. Bounded targets and predictions yield integrable squared losses, permitting integration of that inequality. The expected fixed loss at m is Tv, giving E_T<=4+4 log T even for dependent common-law streams. Under IID, the separate causal identity gives E_T>=0. Divide by T and squeeze between zero and (4+4 log T)/T; both 1/T and log T/T vanish. The same signed normalization adapter then gives E_T=o(T). The policy criterion covers explicit jointly measurable private-tape/strict-history policies. Representation of general stochastic kernels, completed information and almost-everywhere factorization remains separate. These results concern expectations, without high-probability, almost-sure or minimax guarantees. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total remains unknown.
Derived mathematical statement. For T>0, (A_T-Tv)/T=A_T/T-v. The little-o quotient criterion turns this eventual identity into the success equivalence. The causal private-seed identity gives E_T=sum_{t<T} E[(P_t-m)^2]>=0, so normalized expected loss tends to v exactly when the Cesaro mean of these squared errors tends to zero. For the mean learner, apply the pathwise Theorem 1.3 and compare its empirical minimum with the loss of the fixed population mean m. Bounded targets and predictions yield integrable squared losses, permitting integration of that inequality. The expected fixed loss at m is Tv, giving E_T<=4+4 log T even for dependent common-law streams. Under IID, the separate causal identity gives E_T>=0. Divide by T and squeeze between zero and (4+4 log T)/T; both 1/T and log T/T vanish. The same signed normalization adapter then gives E_T=o(T).

BanditRLlib relationship. Equations (1.1) and (1.2) motivate stochastic success. The generic signed normalization adapter extends their arithmetic. The explicit private-seed policy criterion and Cesaro characterization are derived statements. The expected upper bound and sample-mean success are derived applications of the complete pathwise Theorem 1.3 proof on printed pp. 4–6, not additional numbered source theorems. The pathwise minimum and minimum of expected fixed loss remain distinct.

Derived library resultLegacy squared-loss APIs and their exact assumptionsTwelve existing shared-library proofs with explicit legacy assumptionsprinted1,3–4 / PDF13,15–16
Derived library result

Legacy squared-loss APIs and their exact assumptions

Source context at printed1,3–4 / PDF13,15–16 ↗
Twelve existing shared-library proofs with explicit legacy assumptionsExact old types remain unchanged. The legacy mean-predictor L2, finite-excess and nonnegativity APIs, and history_policy_loss_ge_variance, require Y_t(ω)∈[0,1] for EVERY t,ω. The separate source_mean_optimal theorem concerns a single measurable variable Y with Y(ω)∈[0,1] for EVERY ω; it has no process or time quantifier. The history loss bound also requires π_t(z)∈[0,1] for EVERY real history tuple z, including illegal tuples. These are stronger API limitations than AE target support and legal-cube feasibility. Later accepted AE/legal-cube producers remain separate; no silent substitution is allowed. A002/A003 use probability and L2 only, and A003 consumes given independence. A004/A010 actually derive independence. Expected fixed comparator minimization is outside expectation; no expected hindsight minimum swap. Normalization at T0 can differ by −variance. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown.

For EVERY positive prefix n≤T, assume a feasible leader w_n minimizing its prefix loss against EVERY u∈V. Induct on T: compare the previous prefix with the next feasible leader and then add the current summand. This proves the hindsight Be-the-Leader inequality; supplied minimizers do not define a causal learner. For squared loss, subtract the mean and expand; the centered cross term integrates to zero. For independent random P,Y, covariance vanishes, giving E(P−Y)^2=E(P−EY)^2+Var(Y). The actual x_0=1/2, x_t=t^{-1}Σ_{i<t}Y_i depends only on strict past. Joint target independence and measurable finite sums/division derive its independence from Y_t; measurability and bounds derive L2. Under identical laws, integrate the finite sum, substitute the one-round identity and cancel T·Var(Y_0). Every resulting mean-square term is nonnegative. The population mean is feasible and attains the variance benchmark over ALL real fixed comparators; it is an analysis witness, not a learner input. A measurable scalar policy π_t of the strict finite-history tuple is independent of the current target by disjoint-coordinate independence and composition. Its L2 square identity gives a current-round variance lower bound WITHOUT same-law. Finally divide the scalar residual by T only for T>0. This last equality is not a convergence theorem.

Model
Arbitrary action/loss domain for Lemma1.2; probability/L2 identities and actual strict-past real predictions for the derived APIs.
Assumptions
Exact old types remain unchanged. The legacy mean-predictor L2, finite-excess and nonnegativity APIs, and history_policy_loss_ge_variance, require Y_t(ω)∈[0,1] for EVERY t,ω. The separate source_mean_optimal theorem concerns a single measurable variable Y with Y(ω)∈[0,1] for EVERY ω; it has no process or time quantifier. The history loss bound also requires π_t(z)∈[0,1] for EVERY real history tuple z, including illegal tuples. These are stronger API limitations than AE target support and legal-cube feasibility. Later accepted AE/legal-cube producers remain separate; no silent substitution is allowed. A002/A003 use probability and L2 only, and A003 consumes given independence. A004/A010 actually derive independence. Expected fixed comparator minimization is outside expectation; no expected hindsight minimum swap. Normalization at T0 can differ by −variance.
Algorithm parameters
Source round1=Lean0; supplied prefix leader(t+1) is hindsight. One infinite process and one learner before all horizons. T0 empty sums do not extend positive normalization.
Regret notion
Population mean minimizes expected squared loss among fixed real u; with IID the [0,1] expected-fixed prefix minimum is T·Var(Y0), not E[min hindsight loss].
Guarantee
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results. For EVERY positive prefix n≤T, assume a feasible leader w_n minimizing its prefix loss against EVERY u∈V. Induct on T: compare the previous prefix with the next feasible leader and then add the current summand. This proves the hindsight Be-the-Leader inequality; supplied minimizers do not define a causal learner. For squared loss, subtract the mean and expand; the centered cross term integrates to zero. For independent random P,Y, covariance vanishes, giving E(P−Y)^2=E(P−EY)^2+Var(Y). The actual x_0=1/2, x_t=t^{-1}Σ_{i<t}Y_i depends only on strict past. Joint target independence and measurable finite sums/division derive its independence from Y_t; measurability and bounds derive L2. Under identical laws, integrate the finite sum, substitute the one-round identity and cancel T·Var(Y_0). Every resulting mean-square term is nonnegative. The population mean is feasible and attains the variance benchmark over ALL real fixed comparators; it is an analysis witness, not a learner input. A measurable scalar policy π_t of the strict finite-history tuple is independent of the current target by disjoint-coordinate independence and composition. Its L2 square identity gives a current-round variance lower bound WITHOUT same-law. Finally divide the scalar residual by T only for T>0. This last equality is not a convergence theorem. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown.
Derived mathematical statement. For EVERY positive prefix n≤T, assume a feasible leader w_n minimizing its prefix loss against EVERY u∈V. Induct on T: compare the previous prefix with the next feasible leader and then add the current summand. This proves the hindsight Be-the-Leader inequality; supplied minimizers do not define a causal learner. For squared loss, subtract the mean and expand; the centered cross term integrates to zero. For independent random P,Y, covariance vanishes, giving E(P−Y)^2=E(P−EY)^2+Var(Y). The actual x_0=1/2, x_t=t^{-1}Σ_{i<t}Y_i depends only on strict past. Joint target independence and measurable finite sums/division derive its independence from Y_t; measurability and bounds derive L2. Under identical laws, integrate the finite sum, substitute the one-round identity and cancel T·Var(Y_0). Every resulting mean-square term is nonnegative. The population mean is feasible and attains the variance benchmark over ALL real fixed comparators; it is an analysis witness, not a learner input. A measurable scalar policy π_t of the strict finite-history tuple is independent of the current target by disjoint-coordinate independence and composition. Its L2 square identity gives a current-round variance lower bound WITHOUT same-law. Finally divide the scalar residual by T only for T>0. This last equality is not a convergence theorem.

BanditRLlib relationship. Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.

Derived library resultAE causal versions and original-process IID excessThree derived AE causal results with explicit information-model boundariesprinted1,3 / PDF13,15
Derived library result

AE causal versions and original-process IID excess

Source context at printed1,3 / PDF13,15 ↗
Three derived AE causal results with explicit information-model boundariesThese three derived results cover an explicitly specified AE causal information model. The chosen policy is a classical, law-relative version of a given process; equality with the original process is asserted almost everywhere, so values on exceptional null samples may differ. The chosen policy is bounded on every seed/history input and is not an executable learner constructor. General completed-information augmentation and universal causal stochastic-kernel realization remain open. The original sixteen Chapter 1 source objects and unknown required proof total are retained. Remaining Chapter 1 and Chapter 2 obligations, unenumerated Chapters 3–16, and required appendices are separate obligations; these results do not establish chapter or book completion.

For each time, choose an F_t-measurable version of the original prediction under ambient mu. Lift measurability through F_t below the seed/strict-past comap and factor it as f_t(seed,history). Clip f_t with the existing unit-interval projection to obtain pi_t on every possible input. AE feasibility makes clipping fix the original value; countable intersection gives one event for every natural time. For independence, apply the genuine measurable private-seed/strict-past producer to the version, then transport independence back to the original prediction by AE equality. For the IID loss identity, measurability and AE bounds give L2, and derived current independence removes the cross term. The population mean attains the expected fixed unit-comparator benchmark; cancel T times the common variance and sum nonnegative squared deviations. The population mean is used only in analysis. Original predictions appear on both sides, and the same infinite process is used for every natural horizon, including T0.

Model
One original real prediction process, arbitrary private measurable seed, strict finite past; explicit ambient-mu AE hypothesis.
Assumptions
The source describes pathwise unit-valued guessing. L1 explicitly generalizes to AE feasibility/relative AE strong measurability and returns a globally unit-valued chosen version, with equality to the original asserted only almost everywhere; values on exceptional null samples may differ. L1 allows arbitrary measure, arbitrary measurable Seed, and no ambient Y/S measurability, probability, IID or monotone F premise. L2 assumes probability, measurable joint-independent targets, measurable seed independent of the WHOLE infinite target stream, and subordinate F; it requires no support, same-law or L2 premise. L3 additionally needs identical target laws and AE unit bounds for targets/predictions. Current independence, attained comparator and regret identity are derived, not supplied. The benchmark is minimum of EXPECTED fixed unit losses outside expectation, not expected hindsight minimum. No rate, asymptotic success, convergence or high-probability claim follows.
Algorithm parameters
One policy family before all horizons; one common AE event for all natural times. Time0 has empty history. L3 includes T0; no positive-horizon division.
Regret notion
Minimum of expected squared losses over fixed unit comparators is outside expectation. Population mean is analysis-only, not a learner input.
Guarantee
For each time, choose an F_t-measurable version of the original prediction under ambient mu. Lift measurability through F_t below the seed/strict-past comap and factor it as f_t(seed,history). Clip f_t with the existing unit-interval projection to obtain pi_t on every possible input. AE feasibility makes clipping fix the original value; countable intersection gives one event for every natural time. For independence, apply the genuine measurable private-seed/strict-past producer to the version, then transport independence back to the original prediction by AE equality. For the IID loss identity, measurability and AE bounds give L2, and derived current independence removes the cross term. The population mean attains the expected fixed unit-comparator benchmark; cancel T times the common variance and sum nonnegative squared deviations. The population mean is used only in analysis. Original predictions appear on both sides, and the same infinite process is used for every natural horizon, including T0. These three derived results cover an explicitly specified AE causal information model. The chosen policy is a classical, law-relative version of a given process; equality with the original process is asserted almost everywhere, so values on exceptional null samples may differ. The chosen policy is bounded on every seed/history input and is not an executable learner constructor. General completed-information augmentation and universal causal stochastic-kernel realization remain open. The original sixteen Chapter 1 source objects and unknown required proof total are retained. Remaining Chapter 1 and Chapter 2 obligations, unenumerated Chapters 3–16, and required appendices are separate obligations; these results do not establish chapter or book completion.
Derived mathematical statement. For each time, choose an F_t-measurable version of the original prediction under ambient mu. Lift measurability through F_t below the seed/strict-past comap and factor it as f_t(seed,history). Clip f_t with the existing unit-interval projection to obtain pi_t on every possible input. AE feasibility makes clipping fix the original value; countable intersection gives one event for every natural time. For independence, apply the genuine measurable private-seed/strict-past producer to the version, then transport independence back to the original prediction by AE equality. For the IID loss identity, measurability and AE bounds give L2, and derived current independence removes the cross term. The population mean attains the expected fixed unit-comparator benchmark; cancel T times the common variance and sum nonnegative squared deviations. The population mean is used only in analysis. Original predictions appear on both sides, and the same infinite process is used for every natural horizon, including T0.

BanditRLlib relationship. Orabona arXiv:1912.13213v10,2026-06-21: IID squared-loss variance benchmark and Eq(1.1)/(1.2), printed1/PDF13; strict-past prediction distinction, printed3/PDF15. These three statements are derived causal/AE formalization infrastructure, not three numbered or printed theorems. Source round1 corresponds to Lean time0.

Derived library resultReal versions and causal applications of ambient null augmentationOne real-version theorem and three derived causal resultsprinted1,3 / PDF13,15
Derived library result

Real versions and causal applications of ambient null augmentation

Source context at printed1,3 / PDF13,15 ↗
One real-version theorem and three derived causal resultsOne general real-valued measurable-version theorem and three derived causal applications are covered. These are not four printed Orabona theorems. Versions and policies are classical and law-relative; original predictions may differ on exceptional null samples and need not be pointwise causal or everywhere unit-valued. General causal stochastic-kernel realization and other source-required information constructions remain open. The original sixteen Chapter 1 source objects and unknown required proof total are retained. Remaining Chapter 1 and Chapter 2 obligations, unenumerated Chapters 3–16 and required appendices remain separate; no chapter or book completion is established.

The displayed implication is the general version theorem. Encode each real value by a countable Boolean sequence using a measurable embedding. Augmented measurability gives an F-measurable representative set for each coordinate. Their membership bits form an F-measurable sequence. Countable intersection makes that sequence equal the original code almost everywhere. Composing with the measurable left inverse, defined on every Boolean sequence, gives an F-measurable real version equal to P almost everywhere. Its three causal applications have different assumptions, listed below: a bounded history-policy version, current-target independence and an exact expected-fixed excess identity. Each application reuses its matching AE causal producer.

Model
Write bar F for eventuallyMeasurableSpace F (ae mu): a set belongs to bar F exactly when it equals an F-measurable set almost everywhere under the ambient measure mu. This is the precise ambient null augmentation; no identification with completion of mu.trim F is asserted. A real original prediction process and seed/strict-past information are used in the applications.
Assumptions
Version: any ambient measure and separate F, with real P measurable from bar F; no finiteness, F-below-ambient or sample-space regularity. Policy: additionally a measurable seed space, F_t below the comap of (S,Y_{<t}), and AE unit P_t for every natural time; no ambient S/Y measurability or probability is required. Independence: instead assume probability, measurable jointly independent targets, measurable S independent of the whole target stream, and subordinate F; no bounds, identical laws or moments are required. Excess: use these independence assumptions at every time, identical target laws, and AE unit targets and predictions. Each application assumes its original prediction is measurable from the corresponding augmented field. Versions, current independence and regret bounds are conclusions or derived ingredients, not premises.
Algorithm parameters
One policy family and one common AE event cover all natural times, equivalently per-time AE equality by countability. Time 0 has empty strict past. The excess identity uses the same infinite process for every natural horizon T, including T=0.
Regret notion
Expected cumulative prediction loss minus the infimum of expected cumulative fixed unit-comparator losses, with the infimum outside expectation. The population mean is an analysis witness.
Guarantee
Apply the real-version theorem at each natural time. The F_t-measurable versions give relative AE strong measurability of the original process. The existing AE causal producer factors these versions through seed and strict past and projects their values to [0,1]. The policies are measurable and feasible on every seed/history input. A countable intersection gives one event on which the original process and this single policy family agree at every time. Construct an F-measurable version of P with the real-version theorem. Feed the resulting relative AE strong measurability into the existing unbounded AE causal independence theorem. Joint independence of the targets and independence of the seed from the whole stream separate strict past from the current target. AE congruence transfers independence back to the original P. No bounded-policy theorem or boundedness premise is used. Construct measurable versions at every time and pass the resulting relative AE strong measurability to the existing AE expected-fixed-excess theorem. That producer derives current independence and bounded L2 integrability. The population mean attains the minimum expected fixed unit-comparator loss. The common target variance cancels from the cumulative loss decomposition, leaving squared deviations of the original predictions from that mean. T=0 is the empty-sum identity. No convergence, regret rate, high-probability bound or executable unknown-law learner follows.
Derived mathematical statement. Every real function measurable with respect to the stated ambient null augmentation of F has an F-measurable version equal to it almost everywhere. Under their respective assumptions, the three derived applications give a globally feasible policy version, independence of the original prediction from the current target, and the exact expected-fixed excess identity.

BanditRLlib relationship. Orabona, arXiv:1912.13213v10 (2026-06-21): printed page 1 / PDF page 13 supplies the IID squared-loss variance benchmark and equations (1.1)–(1.2); printed page 3 / PDF page 15 supplies strict-past information. The precise null augmentation and real-version construction are additional library infrastructure. The three causal applications are derived support results. Printed round 1 is Lean time 0.

Derived library resultCausal realization of behavioral decision kernelsFive derived causal-kernel resultsprinted 1, 3 / PDF 13, 15
Derived library result

Causal realization of behavioral decision kernels

Source context at printed 1, 3 / PDF 13, 15 ↗
Five derived causal-kernel resultsFive derived behavioral-kernel realization results are covered, not five printed Orabona theorems. The given kernel family acts on generated unit-action histories and strict real-observation histories. No reduction of arbitrary protocols, filtrations or private-state algorithms to this model is proved. The whole observation stream is independent of the private uniform tape by product construction; action-dependent adaptive environments are outside this model. Conditional-law equality holds almost everywhere under the actual history marginal, while sampler representation holds at every history. Classical sampler selection is an existence result. No regret rate, convergence, pathwise or high-probability guarantee follows. The original sixteen Chapter 1 source objects and unknown required proof total are retained. Other Chapter 1 and Chapter 2 obligations, unenumerated Chapters 3–16 and required appendices remain separate; no chapter or book completion is established.

Apply pinned Mathlib kernel randomization at every natural time and choose one jointly measurable sampler family before any observation law or horizon. Every history has the exact uniform pushforward law. Induct on the actual finite action recursion. Each step restricts both prefixes, generates prior actions and appends the current sample. Prove finite-input measurability, equality of every earlier action with the same infinite process, and pointwise nonanticipation. Independent infinite uniform coordinates give independence of the current draw from the strict past tape. The product law separates the entire observation stream from the tape. Regroup these blocks and map through the actual generated history, then through the sampler; the joint law is history marginal composed with the given kernel. Use the actual measurable generated prediction and established joint law. Conditional-distribution uniqueness identifies the kernel AE under the actual generated-history marginal, including time0. Select one sampler family first and retain its recursion, joint and conditional laws for every observation law. Under coordinate IID, same-law and AE unit observations, lift those assumptions through the product law. The concrete feasible history policy instantiates the existing IID expected-fixed excess producer at every natural horizon, including zero.

Model
Unit actions I=[0,1], real observations and histories H_t=I^{Fin t} × R^{Fin t}. Actual actions are recursively generated from an empty history using f_t(H_t,U_t). The game law is the independent infinite uniform-tape law times an arbitrary probability law on the whole real observation stream.
Assumptions
Sampler existence requires a given measurable Markov-kernel family. The causal-process result requires only joint sampler measurability. Joint and conditional laws require both that measurability and every-history kernel representation, under the stated product law; temporal observation dependence and unbounded real observations are allowed there. Only the expected-fixed clause additionally assumes mutually independent, identically distributed observation coordinates with AE unit bounds. Unit feasibility of generated actions follows from the sampler codomain, and current independence and integrability for the excess identity are derived.
Algorithm parameters
One sampler family is selected before every observation law and natural horizon. The same infinite process covers all times. At time t it uses uniforms through t, generated actions before t and observations strictly before t. Time 0 has empty histories, and T=0 gives the empty-sum identity. Conditional-law null sets may depend on law and time.
Regret notion
Expected cumulative squared prediction loss minus the infimum, over a single fixed unit comparator, of expected cumulative squared comparator loss. The infimum remains outside expectation. The population mean is an analysis witness and is not supplied to the learner.
Guarantee
Every-history uniform representation, measurable pointwise causal recursion and finite-prefix consistency, the actual joint kernel composition-product law, its actual-history AE conditional-law consequence, and under bounded IID observations the displayed every-horizon expected-fixed excess identity. No universal algorithm reduction, executable sampler, rate or convergence claim is made.
Derived mathematical statement. Every given measurable family of unit-action Markov kernels has one jointly measurable uniform sampler family that represents it at every history, chosen before any observation law or horizon. A jointly measurable sampler generates one measurable, pointwise causal process whose finite prefixes agree with its actual recursive action history. Under the independent tape and observation-stream product law, actual generated history and current prediction have the joint law specified by the given kernel. The actual conditional action law equals the given kernel almost everywhere under the generated-history marginal. One sampler realizes the given kernels for every observation law. Under bounded IID observations, its expected-fixed regret is the cumulative expected squared distance from the target mean.

BanditRLlib relationship. Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 1 / PDF page 13 gives the IID squared-loss benchmark and equations (1.1)–(1.2); printed page 3 / PDF page 15 gives strict-past information. Behavioral-kernel realization is additional derived library infrastructure. Printed round 1 corresponds to Lean time 0.

Derived library resultActual FTL regret and ordinary-limit semanticsFive derived FTL limit resultsprinted 2, 4, 6 / PDF 14, 16, 18
Derived library result

Actual FTL regret and ordinary-limit semantics

Source context at printed 2, 4, 6 / PDF 14, 16, 18 ↗
Five derived FTL limit resultsFive derived results concern the actual initial-half, strict-past squared-loss FTL predictor. The first two are algebraic results for arbitrary real observation streams; they do not assert unit-game feasibility for those streams. The three limit results require one infinite stream with every observation in [0,1]. The fixed-comparator criterion is an equivalence of limits, not an assertion that either limit exists. The final result explicitly assumes empirical-mean convergence; its limit is an analysis parameter and never a learner input. The separate derived dyadic-stream obstruction and all-comparator converse establish these two bounded derived results; broader source reconciliation remains separate. No probabilistic guarantee or nonnegative-regret assertion for arbitrary algorithms is proved. The original sixteen Chapter 1 source objects and unknown required proof total are retained. Other Chapter 1 and Chapter 2 obligations, unenumerated Chapters 3–16 and required appendices remain separate; no chapter or book completion is established.

Write Phi_T for the squared loss at the horizon empirical mean. The old leader minimizes the length-T prefix. Thus Phi_(T+1) is at most Phi_T plus the actual next loss. Induction from the empty prefix gives Phi_T at most the actual cumulative FTL loss. For positive T, expand squared comparator loss around the empirical mean using the existing exact decomposition. Subtract this from the same cumulative prediction loss. At T=0, all sums vanish. This retains the exact negative squared-distance term. Use the empirical mean to identify the interval-best comparator. The nonnegative gap and the existing bound 4+4 log T squeeze normalized best regret between zero and a quantity tending to zero. At positive horizons, normalized fixed regret equals normalized best regret minus squared distance from the comparator to the empirical mean. The first term tends to zero. Subtract limits in each direction to prove the equivalence. Use the assumed empirical-mean convergence and continuity of the square to obtain the squared-distance limit. Apply the equivalence to get -(u-m)^2 for each real comparator. Nonpositivity then supplies the literal unit-comparator LimitNoRegret witness.

Model
One real observation stream y. At Lean time 0 the actual squared-loss FTL predictor is 1/2; at time t>0 it is the mean of observations strictly before t. Signed regret compares cumulative loss with one fixed comparator. The horizon empirical mean and interval-best comparator are used in analysis.
Assumptions
The loss lower bound and exact decomposition allow arbitrary real streams. The three limit results require every observation of the same infinite stream in [0,1]. Only the final result also assumes convergence of the empirical mean. It derives a limit for every real comparator before restricting to the unit interval for LimitNoRegret. No random sampling, IID or probabilistic assumptions occur.
Algorithm parameters
Natural horizons include zero, where sums are empty and real division is total. Cancellation is used only at positive horizons. The fixed comparator u and proposed limit a are arbitrary real numbers. The empirical-mean limit m is an explicit analysis parameter and is never an input to the predictor.
Regret notion
R_T(u) is actual cumulative squared prediction loss minus cumulative squared loss at u. R_T(best) subtracts the infimum over fixed comparators in [0,1]. For unit observations the horizon empirical mean attains that interval minimum. All quantities are pathwise; no expectation is present.
Guarantee
A nonnegative empirical-mean loss gap, exact negative-square comparator decomposition, ordinary zero limit for normalized interval-best regret, fixed-comparator ordinary-limit equivalence, and explicit comparatorwise limits under empirical-mean convergence. The equivalence alone does not establish limit existence. The final limit may be strictly negative, while still satisfying the literal nonpositive ordinary-limit criterion.
Derived mathematical statement. For the actual squared-loss FTL predictor, cumulative loss is at least the squared loss of the horizon empirical mean, for every real observation stream and every horizon. Signed regret against any fixed real comparator is the empirical-mean regret minus the horizon times a squared distance. When every observation lies in [0,1], the actual best-comparator regret divided by the horizon converges to zero. For unit observations, a fixed-comparator regret limit exists with value a exactly when the squared distance from that comparator to the empirical mean converges to -a. If the empirical mean of a unit-valued stream converges to m, every fixed-comparator normalized regret converges to the explicit nonpositive value -(u-m)^2.

BanditRLlib relationship. Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 2 / PDF page 14 defines signed regret and displays an ordinary-limit criterion; printed page 4 / PDF page 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF page 18 discusses sublinear best regret. These five results are derived library consequences and semantic reconciliation, not five printed theorems. Printed round t+1 corresponds to Lean time t. The existing upper-epsilon NoRegret predicate remains distinct from the literal LimitNoRegret predicate.

Derived library resultA bounded actual-FTL obstruction and exact converseFour derived FTL obstruction resultsprinted 2, 4, 6 / PDF 14, 16, 18
Derived library result

A bounded actual-FTL obstruction and exact converse

Source context at printed 2, 4, 6 / PDF 14, 16, 18 ↗
Four derived FTL obstruction resultsFour derived results concern the same initial-half, strict-past squared-loss FTL predictor. For any all-time unit-valued stream, finite nonpositive normalized regret limits at every fixed unit comparator are equivalent to convergence of its empirical means. A fixed deterministic dyadic stream lies in [0,1] and has two distinct empirical-mean subsequential limits. For this stream, upper-epsilon no-regret and normalized interval-best regret tending to zero coexist with no finite ordinary limit at fixed comparator zero. This is an obstruction for this specific process, not an impossibility result for all algorithms. Source text and any proposed source correction remain separate; no repair approval is inferred. The original sixteen Chapter 1 source objects and unknown required proof total are retained. Remaining Chapter 1 and Chapter 2 obligations, unenumerated Chapters 3–16 and required appendices remain separate; no chapter or book completion is established.

Use the proposed comparator limits at 0 and 1 and the existing fixed-regret criterion. They give limits for M_T squared and (1-M_T) squared. Their difference plus one, divided by two, equals M_T. Eventual interval membership places the limit in [0,1]. Conversely, empirical-mean convergence yields every comparator limit -(u-m)^2 through the existing FTL producer. Strong induction applies to the strictly smaller parent floor(n/2). The base value is zero; taking one minus a binary value exchanges zero and one. Both outcomes belong to the closed unit interval. The two children at 2k+1 and 2k+2 both equal 1-d_k. Pairing them gives S_(2n+1)=2n-2S_n. Induction yields exact high and low prefix counts. The high mean is exactly 2/3; the low mean is 1/3 minus 1/(3(2*4^n-1)). The two positive natural horizons diverge, so the latter correction tends to zero. Apply the existing actual-FTL upper guarantee and best-regret zero-limit theorem to the proved unit-valued stream. If normalized regret against zero had finite limit a, the existing criterion would force M_T squared to tend to -a. Composition with the two cofinal subsequences forces -a=4/9 and -a=1/9, a contradiction. Since zero is a feasible comparator, LimitNoRegret also fails.

Model
One deterministic scalar stream. The actual squared-loss FTL predictor is p_0=1/2 and p_t is the empirical mean of observations strictly before t when t>0. The dyadic witness is fixed independently of the learner and horizon.
Assumptions
D1 requires every observation of one infinite stream in [0,1]. D2–D4 have no external hypotheses: the recursive construction supplies unit support and its two subsequential limits. Ordinary finite limits, eventual upper bounds and feasible-best regret are kept distinct. No IID, probability or feedback oracle is assumed.
Algorithm parameters
Natural horizons include zero, with empty sums and total real division. Limit arguments use positive horizons. The high and low subsequence lengths are exactly 4^(n+1)-1 and 2*4^n-1; both diverge. The empirical-mean limit is an analysis witness, never an input to the learner.
Regret notion
R_T(u) is cumulative squared prediction loss minus the loss of the fixed comparator u. R_T(best) subtracts the infimum over constant comparators in [0,1], attained by the empirical mean for unit observations. Signed fixed regret may be negative.
Guarantee
An exact all-comparator ordinary-limit criterion, range of an explicit dyadic stream, two distinct empirical-mean subsequential limits, and a four-part same-FTL obstruction. An upper-asymptotic guarantee and a zero best-regret limit do not force a finite ordinary limit at each fixed comparator.
Derived mathematical statement. For every observation stream in [0,1], the actual FTL predictor has a finite nonpositive normalized-regret limit at every fixed comparator in [0,1] exactly when the empirical means converge. The fixed sequence d_0=0 and d_(n+1)=1-d_(floor(n/2)) always lies in [0,1]. Its definition does not depend on a learner or horizon. The same empirical means tend to 2/3 along horizons 4^(n+1)-1 and to 1/3 along horizons 2*4^n-1. On this one bounded stream, the actual FTL predictor has upper-epsilon no-regret and normalized interval-best regret tending to zero, while normalized regret against comparator zero has no finite ordinary limit.

BanditRLlib relationship. Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). Printed page 2 / PDF 14 displays ordinary-limit no-regret; printed page 4 / PDF 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF 18 discusses sublinear regret. These four results are derived consequences and an explicit counterexample, not printed theorems. Printed round t+1 is Lean time t. The upper-epsilon NoRegret predicate and finite ordinary-limit LimitNoRegret predicate remain distinct. Pinned PDF SHA256: cef4edfa97a6e063e53e9c532717c50aa156e5bc782ea49f969b3385011a1b17.

Derived library resultInitialization, regret metrics and Chapter 1 scopeFour derived initialized-FTL resultsprinted 1–7 / PDF 13–19; initialization on printed 3 / PDF 15
Derived library result

Initialization, regret metrics and Chapter 1 scope

Source context at printed 1–7 / PDF 13–19; initialization on printed 3 / PDF 15 ↗
Four derived initialized-FTL resultsThe four derived guarantees concern one initialized strict-past squared-loss FTL run. The positive-horizon identity allows arbitrary real inputs. The finite regret bound uses a legal initial value and only the scored unit-valued prefix; the two asymptotic results use one all-time unit-valued stream. Upper-epsilon regret and ordinary convergence of best-comparator regret are separate from ordinary fixed-comparator limits. No universal fixed-comparator ordinary-limit inference or author-approved source repair follows. The Chapter 1 reconciliation retains all 17 original main-text claim objects and their explicit model/metric boundaries. Their count is not a proof denominator. Exercises 1.1 and 1.2 are separate; the mandatory proof-leaf total is unknown, and chapter/book completion is not claimed.

For every positive time, both predictors equal the same strict-prefix empirical mean. Split each cumulative prediction loss into time zero and its tail; the tails cancel. Both best-regret expressions subtract the identical comparator infimum, which cancels without a minimum-existence assumption. The remaining term is c=(a-y_0)^2-(1/2-y_0)^2. Reuse the half-initialized quarter-plus-tail bound and add the exact first-round correction c. Expanding 1/4+c gives a^2+(1-2a)y_0. Since a^2<=a, splitting y_0<=1/2 or y_0>=1/2 bounds this expression by 1. The reciprocal tail is unchanged. For each feasible comparator, its regret is at most the interval-best regret. Combine the exact correction with the half-initialized logarithmic bound. The first squared loss is at most 1, so 5+4 log T is an upper bound for positive T. Divide by T and use 1/T and log T/T tending to zero. The actual proof uses this logarithmic route, not the new finite refined theorem. For positive T, divide the exact identity by T. The accepted half-initialized best-regret theorem gives its normalized limit zero, using an actual nonnegative half-FTL loss gap and an upper bound. The fixed correction c divided by T also tends to zero. Adding these two limits and using eventual equality proves the result; an upper bound alone would not suffice.

Model
Predict p_a(0)=a before the first observation; for t>0 predict the mean of y_0,...,y_(t-1). The initial value is fixed for one infinite run, independently of its evaluation horizon and comparator. The recursive count/mean state realizes this exact-real predictor; no bit-complexity claim is made.
Assumptions
G001: a and y are real and T>0. G002: additionally a in [0,1] and y_t in [0,1] for t<T. G003–G004: a in [0,1] and every observation of the same infinite stream in [0,1]. These deterministic results require no IID premise and hold for each bounded realized sequence. Separate IID results require jointly independent equal-law measurable observations and a whole-stream-independent private seed with measurable strict-history dependence; AE, completed-information and realized-kernel variants retain their explicit subordinate models.
Algorithm parameters
Source time 1 is Lean time 0. R_T scores exactly t<T. The first-loss identity uses T>0, and the finite reciprocal tail has denominators 2,...,T. Empty regret at T=0 is separate. The empirical mean used as a hindsight minimizer is produced from the prefix; a population mean used in analysis is never an input to the unknown-law learner.
Regret notion
R_T^a(u) is prediction loss minus the loss of one fixed comparator. R_T^{a,best} subtracts the infimum over constant u in [0,1], attained by the empirical mean for positive unit-valued prefixes. The stochastic benchmark instead minimizes expected fixed-comparator loss outside expectation. For two fair IID binary observations the fixed expected minimum is 1/2 while the expected hindsight minimum is 1/4, so these objects cannot be interchanged.
Guarantee
The exact first-round identity, 1-plus-reciprocal finite bound, comparator-wise eventual upper property and ordinary zero best-regret limit are four distinct derived results. The printed half-initial Theorem 1.3 and its quarter refinement remain unchanged. The existing bounded dyadic stream refutes a universal fixed-comparator finite ordinary-limit inference. Lemma 1.2 consumes feasible prefix minimizers; the squared-loss mean produces them. The logarithmic lower bound quantifies bounded measurable seed/history policies and produces a fixed binary witness outside seed expectation; its 1/6 constant is derived and not claimed sharp. These explicit domains and alternate native proof routes remain part of the Chapter 1 source reconciliation.
Derived mathematical statement. For any real initial prediction a, real observation stream y and positive natural horizon T, initialized FTL and half-initialized FTL have exactly the same best-comparator regret except for their first squared-loss difference. With a in [0,1], T>0 and y_t in [0,1] for t<T, initialized FTL has best-comparator regret at most 1 plus four times the reciprocal sum from 2 through T. For one initial a in [0,1] and one all-time unit-valued stream, every fixed comparator u in [0,1] has eventually normalized regret at most each positive epsilon. This is an upper property, without an ordinary-limit claim. For the same legal initialization and all-time unit-valued stream, normalized regret against the best constant comparator in [0,1] tends to zero. No empirical-mean convergence assumption is required.

BanditRLlib relationship. Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). General initialization: printed page 3 / PDF 15. Theorem 1.3 fixes initial 1/2: printed page 4 / PDF 16; its proof and quarter-plus-tail refinement are on printed pages 5–6 / PDF 17–18. These four interfaces are derived results. Source round t+1 is Lean index t. The full Chapter 1 inventory also includes printed page 7 / PDF 19, with history and the two exercises classified separately. Pinned PDF SHA256: cef4edfa97a6e063e53e9c532717c50aa156e5bc782ea49f969b3385011a1b17.

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

Mathematics ↔ Lean

Lemma 1.2: Be-the-Leader

Lean declarationBanditRL.OnlineLearning.lemma_1_2

Compiled

Plain-English statement. Prefix minimizers beat the final fixed leader in cumulative loss.

Mathematical reading. Prefix minimizers beat the final fixed leader in cumulative loss.
Intuition
Prefix minimizers beat the final fixed leader in cumulative loss.
Why it is needed
Be-the-Leader is a proof tool comparing supplied current-prefix hindsight minimizers with the final leader. A causal learner and its performance require the separate FTL chain.
Place in the proof
Orabona v10 Chapter 1, printed page 4.
Proof and Lean reading notes
Proof idea
Source loss ell_(t+1) is Lean loss t; source x*_n is leader n. Lean diagonal uses leader(t+1) over rangeT; the fixed comparison uses leaderT. T1 has identical sides. Existing induction cancels the final summand, applies the previous prefix inequality, then uses prefix argmin with the feasible next/final leader. For EVERY positive prefix n<=T, supplied leader n lies in V and minimizes the prefix sum against EVERY u in V. Both membership and prefix argmin are premises; minimizer existence is not constructed. For T>0 this data implies V inhabited; T0 is a vacuous empty-sum extension with no condition on leader0.
Lean reading notes
The source uses a subset V of real Euclidean space and losses defined on V. Lean permits any ambient type X and total real loss functions; restricting them to V recovers the source. For every positive prefix n <= T, leader n must belong to V and minimize the prefix loss against every u in V. These minimizers are supplied; their existence is not proved. No geometry or probability assumption is needed. The leader includes the current loss, so it is a hindsight object rather than a strict-past FTL prediction. At T = 0 the conclusion is the empty-sum extension; T = 1 has identical sides. Seven named tests include changing feasible minimizers with strict inequality -2 < 0, a feasible nonoptimal sequence reversing the comparison, and an ambient-domain sequence showing why membership is necessary. The last sequence is not admissible when source losses are defined only on V. The earlier foundation-only package historically revalidated one existing source lemma and adds validation proofs, not new book results. Theorem 1.3 and the causal FTL chain are separate. At that earlier package/head, nine main-relative contributor gaps were retained. The historical acceptance and seven tests remain preserved. At the original PR197 head, the separate five-module audit had not been merged or published. Those five production modules now match the accepted shared library. Chapter 1 as a whole remains incomplete. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem lemma_1_2 {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (leader : ℕ → X) (T : ℕ) (hmem : ∀ n, 0 < n → n ≤ T → leader n ∈ V) (hmin : ∀ n, 0 < n → n ≤ T → ∀ u ∈ V, (∑ t ∈ Finset.range n, loss t (leader n)) ≤ ∑ t ∈ Finset.range n, loss t u) : (∑ t ∈ Finset.range T, loss t (leader (t + 1))) ≤ ∑ t ∈ Finset.range T, loss t (leader T)
Mathematics ↔ Lean

Theorem 1.3: guessing with the past mean

Lean declarationBanditRL.OnlineLearning.theorem_1_3

Compiled

Plain-English statement. The actual history-mean predictor achieves the source logarithmic regret bound.

Mathematical reading. The actual history-mean predictor achieves the source logarithmic regret bound.
Intuition
The actual history-mean predictor achieves the source logarithmic regret bound.
Why it is needed
This guarantee concerns the actual causal past-mean predictor. It preserves the source logarithmic upper bound; lower bounds and broader initialization are separate obligations.
Place in the proof
Orabona v10 Chapter 1, printed page 4.
Proof and Lean reading notes
Proof idea
The retained theorem_1_3 instantiates Be-the-Leader on Set.univ with empiricalMean_minimizes, sums meanPredict_stability at every round, and applies harmonic_le_one_add_log. Lean stability uses the recurrence and a squared-distance coefficient calculation instead of the source factor/absolute-value/triangle route. Figure 1.1 illustrates the harmonic comparison supplied by harmonic_le_one_add_log. The quarter-plus-tail estimate is a separate source/teaching branch, not an input to this retained proof.
Lean reading notes
Theorem 1.3 uses the actual first-half, strict-past mean learner. Feasible empirical minimizers and stability are proved dependencies, not additional public premises. T>0, unit support only on the played finite prefix, initial prediction1/2 and zero-based Lean indices. The empty-prefix value is empiricalMean y 0 = 0, whereas meanPredict y 0 = 1/2; the one-target mean is empiricalMean y 1 = y 0. This integrates the original Chapter 1 core. It does not complete Chapter 1 or the book. The ordinary-limit reconciliation, arbitrary-initial FTL state family, general stochastic strategy classes, optimal-order lower bound and later modules remain separate.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean, BanditRL.OnlineLearning.empiricalMean_minimizes, BanditRL.OnlineLearning.lemma_1_2, BanditRL.OnlineLearning.meanPredict, BanditRL.OnlineLearning.meanPredict_stability
Exact Lean statement
theorem theorem_1_3 (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : (∑ t ∈ Finset.range T, (meanPredict y t - y t)^2) - (∑ t ∈ Finset.range T, (empiricalMean y T - y t)^2) ≤ 4 + 4 * Real.log T
Mathematics ↔ Lean

Upper-sublinear comparator regret

Lean declarationBanditRL.OnlineLearning.meanPredict_noRegret

Compiled

Plain-English statement. Every fixed comparator has an eventual normalized upper-epsilon bound.

Mathematical reading. Every fixed comparator has an eventual normalized upper-epsilon bound.
Intuition
Every fixed comparator has vanishing normalized upper regret.
Why it is needed
The implemented upper interpretation is explicit beside the source ordinary-limit display.
Place in the proof
Orabona v10 Chapter 1, printed page 2.
Proof and Lean reading notes
Proof idea
Use Theorem1.3 and empirical-mean minimality to upper-bound fixed-comparator regret. Normalize by positiveT and use the logarithm-over-T limit in the shared eventual-bound adapter.
Lean reading notes
The actual learner starts at 1/2 and then predicts the strict-past empirical mean. Every target at every time belongs to [0,1]. These are distinct statements unless finite real convergence is established. This integration proves the eventual upper property for the actual learner, without proving ordinary-limit existence or replacing the printed formula silently. The prediction sequence is the same for every comparator; thresholds can depend on u and epsilon. Actual dependencies include the regret producer and empirical minimum. This integrates the original Chapter 1 core. It does not complete Chapter 1 or the book. The ordinary-limit reconciliation, arbitrary-initial FTL state family, general stochastic strategy classes, optimal-order lower bound and later modules remain separate.
Teaching dependencies
BanditRL.OnlineLearning.comparatorRegret, BanditRL.OnlineLearning.empiricalMean, BanditRL.OnlineLearning.empiricalMean_minimizes, BanditRL.OnlineLearning.meanPredict, BanditRL.OnlineLearning.noRegret_of_vanishing_bound, BanditRL.OnlineLearning.theorem_1_3
Exact Lean statement
theorem meanPredict_noRegret (y : ℕ → ℝ) (hy : ∀ t, y t ∈ Set.Icc (0 : ℝ) 1) : NoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - y t)^2) (meanPredict y)
Mathematics ↔ Lean

Equation (1.1): the IID benchmark

Lean declarationBanditRL.OnlineLearning.iid_meanPredict_excess

Compiled

Plain-English statement. The expected excess is a sum of nonnegative squared estimation errors.

Mathematical reading. The expected excess is a sum of nonnegative squared estimation errors.
Intuition
The expected excess is a sum of nonnegative squared estimation errors.
Why it is needed
The actual learner produces this finite expected IID identity; it is a derived explanation of Eq(1.1), not another numbered theorem.
Place in the proof
Orabona v10 Chapter 1, printed page 1.
Proof and Lean reading notes
Proof idea
Derive L2 and actual strict-past prediction independence. Integrate the finite sum; apply the independent square identity at each time. Identical laws replace the current mean/variance by those ofY0, and cancel T·Var(Y0). Each residual square integral is nonnegative.
Lean reading notes
Exact old premises: probability, ∀t measurable Yt, joint independence, ∀t IdentDistrib(Yt,Y0), and ∀tω Ytω∈[0,1] POINTWISE. Same infinite process and actual x0=1/2/strict-past mean throughout; no unknown-law/future/horizon input. The pointwise support is a stronger API limitation; later AE producers are separate. T0 is the empty-sum extension. This finite identity alone does not prove success or a convergence rate. The fixed mean benchmark is outside expectation; no expected hindsight minimum swap. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: integral_finset_sum, IdentDistrib.integral_eq and IdentDistrib.variance_eq; actual shared independent_prediction_square, meanPredict_independent and meanPredict_memLp.
Teaching dependencies
BanditRL.OnlineLearning.independent_prediction_square, BanditRL.OnlineLearning.meanPredict, BanditRL.OnlineLearning.meanPredict_independent, BanditRL.OnlineLearning.meanPredict_memLp
Exact Lean statement
theorem iid_meanPredict_excess {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t ω, Y t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : (∫ ω, ∑ t ∈ Finset.range T, (meanPredict (fun i => Y i ω) t - Y t ω)^2 ∂μ) - T * variance (Y 0) μ = ∑ t ∈ Finset.range T, ∫ ω, (meanPredict (fun i => Y i ω) t - ∫ ω, Y 0 ω ∂μ)^2 ∂μ
Mathematics ↔ Lean

Recursive state equals the past-mean predictor

Lean declarationBanditRL.OnlineLearning.ftlState_eq_predict

Compiled

Plain-English statement. The all-time mean successor identity has positive real denominator t+1. At t=0 the empty empirical mean is0 but the actual prediction is c. The first recursive update cancels c and gives (1,y0). For t>0 induction and the proved mean successor identity give the complete state identity. Existing decomposition, minimization and uniqueness prove the positive-prefix mean is the actual hindsight squared-loss leader; interval feasibility makes it an admissible comparator. The prediction uses the previous prefix, rather than an argmin or state oracle.

Mathematical reading. The all-time mean successor identity has positive real denominator t+1. At t=0 the empty empirical mean is0 but the actual prediction is c. The first recursive update cancels c and gives (1,y0). For t>0 induction and the proved mean successor identity give the complete state identity. Existing decomposition, minimization and uniqueness prove the positive-prefix mean is the actual hindsight squared-loss leader; interval feasibility makes it an admissible comparator. The prediction uses the previous prefix, rather than an argmin or state oracle.
Intuition
The all-time mean successor identity has positive real denominator t+1. At t=0 the empty empirical mean is0 but the actual prediction is c. The first recursive update cancels c and gives (1,y0). For t>0 induction and the proved mean successor identity give the complete state identity. Existing decomposition, minimization and uniqueness prove the positive-prefix mean is the actual hindsight squared-loss leader; interval feasibility makes it an admissible comparator. The prediction uses the previous prefix, rather than an argmin or state oracle.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
The all-time mean successor identity has positive real denominator t+1. At t=0 the empty empirical mean is0 but the actual prediction is c. The first recursive update cancels c and gives (1,y0). For t>0 induction and the proved mean successor identity give the complete state identity. Existing decomposition, minimization and uniqueness prove the positive-prefix mean is the actual hindsight squared-loss leader; interval feasibility makes it an admissible comparator. The prediction uses the previous prefix, rather than an argmin or state oracle.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.ftlState, BanditRL.OnlineLearning.ftlMeanStep, BanditRL.OnlineLearning.ftlPredict, BanditRL.OnlineLearning.ftlState_first, BanditRL.OnlineLearning.empiricalMean_succ
Exact Lean statement
theorem ftlState_eq_predict (initial : ℝ) (y : ℕ → ℝ) (t : ℕ) : ftlState initial y t = (t, ftlPredict initial y t)
Explore 85 additional Lean teaching notes
Mathematics ↔ Lean

Theorem 1.3 proof: initial1/4 stability

Lean declarationBanditRL.OnlineLearning.meanPredict_initial_stability

Compiled

Plain-English statement. After observing the first target, its hindsight mean is that target, so the second squared loss is zero. The interval bounds imply y1(1-y1)>=0, which bounds the initial squared error by1/4.

Mathematical reading. After observing the first target, its hindsight mean is that target, so the second squared loss is zero. The interval bounds imply y1(1-y1)>=0, which bounds the initial squared error by1/4.
Intuition
After observing the first target, its hindsight mean is that target, so the second squared loss is zero. The interval bounds imply y1(1-y1)>=0, which bounds the initial squared error by1/4.
Why it is needed
Expose the exact unnumbered estimate used in the source proof, with its original assumptions.
Place in the proof
Orabona v10 Chapter1, Theorem1.3 proof, printed p.5 / PDF p.17.
Proof and Lean reading notes
Proof idea
After observing the first target, its hindsight mean is that target, so the second squared loss is zero. The interval bounds imply y1(1-y1)>=0, which bounds the initial squared error by1/4.
Lean reading notes
The first target belongs to [0,1], the actual initial prediction is1/2, and the one-target empirical mean equals the target. Equality holds at0 and1. The outside-interval target2 shows why support matters. This integrates the original Chapter 1 core. It does not complete Chapter 1 or the book. The ordinary-limit reconciliation, arbitrary-initial FTL state family, general stochastic strategy classes, optimal-order lower bound and later modules remain separate.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean, BanditRL.OnlineLearning.meanPredict
Exact Lean statement
theorem meanPredict_initial_stability (y : ℕ → ℝ) (hy : y 0 ∈ Set.Icc (0 : ℝ) 1) : (meanPredict y 0 - y 0)^2 - (empiricalMean y 1 - y 0)^2 ≤ (1 : ℝ) / 4
Mathematics ↔ Lean

Theorem 1.3 proof: exact finite-horizon tail

Lean declarationBanditRL.OnlineLearning.meanPredict_regret_refined

Compiled

Plain-English statement. Be-the-Leader compares the produced prefix minimizers with the final mean. Subtract these losses from the actual prediction losses, split off the first round, and add its1/4 estimate to the existing4/t bounds for later rounds.

Mathematical reading. Be-the-Leader compares the produced prefix minimizers with the final mean. Subtract these losses from the actual prediction losses, split off the first round, and add its1/4 estimate to the existing4/t bounds for later rounds.
Intuition
Be-the-Leader compares the produced prefix minimizers with the final mean. Subtract these losses from the actual prediction losses, split off the first round, and add its1/4 estimate to the existing4/t bounds for later rounds.
Why it is needed
Expose the exact unnumbered estimate used in the source proof, with its original assumptions.
Place in the proof
Orabona v10 Chapter1, Theorem1.3 proof, printed p.5 / PDF p.17.
Proof and Lean reading notes
Proof idea
Be-the-Leader compares the produced prefix minimizers with the final mean. Subtract these losses from the actual prediction losses, split off the first round, and add its1/4 estimate to the existing4/t bounds for later rounds.
Lean reading notes
T>0 and every played target lies in[0,1]. The same actual learner and feasible empirical minimum are used. The tail is sum over range(T-1) of4/(t+2), empty atT=1. This upper bound does not establish a minimax lower bound. This integrates the original Chapter 1 core. It does not complete Chapter 1 or the book. The ordinary-limit reconciliation, arbitrary-initial FTL state family, general stochastic strategy classes, optimal-order lower bound and later modules remain separate.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean, BanditRL.OnlineLearning.empiricalMean_mem, BanditRL.OnlineLearning.empiricalMean_minimizes, BanditRL.OnlineLearning.lemma_1_2, BanditRL.OnlineLearning.meanPredict, BanditRL.OnlineLearning.meanPredict_initial_stability, BanditRL.OnlineLearning.meanPredict_stability
Exact Lean statement
theorem meanPredict_regret_refined (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : (∑ t ∈ Finset.range T, (meanPredict y t - y t)^2) - (∑ t ∈ Finset.range T, (empiricalMean y T - y t)^2) ≤ (1 : ℝ) / 4 + ∑ t ∈ Finset.range (T - 1), 4 / ((t : ℝ) + 2)
Mathematics ↔ Lean

Empirical mean: every successor

Lean declarationBanditRL.OnlineLearning.empiricalMean_succ

Compiled

Plain-English statement. At zero the identity is y0 = 0 + y0. At positive t, split the finite sum at t and clear the positive denominators t and t+1; elementary algebra proves the update.

Mathematical reading. At zero the identity is y0 = 0 + y0. At positive t, split the finite sum at t and clear the positive denominators t and t+1; elementary algebra proves the update.
Intuition
At zero the identity is y0 = 0 + y0. At positive t, split the finite sum at t and clear the positive denominators t and t+1; elementary algebra proves the update.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
At zero the identity is y0 = 0 + y0. At positive t, split the finite sum at t and clear the positive denominators t and t+1; elementary algebra proves the update.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean
Exact Lean statement
theorem empiricalMean_succ (y : ℕ → ℝ) (t : ℕ) : empiricalMean y (t + 1) = empiricalMean y t + (y t - empiricalMean y t) / ((t : ℝ) + 1)
Mathematics ↔ Lean

General initial prediction: strict past

Lean declarationBanditRL.OnlineLearning.ftlPredict_prefix

Compiled

Plain-English statement. With the same fixed initial c, time 0 returns c; at positive time equality of all previous labels makes the finite sums and their means equal.

Mathematical reading. With the same fixed initial c, time 0 returns c; at positive time equality of all previous labels makes the finite sums and their means equal.
Intuition
With the same fixed initial c, time 0 returns c; at positive time equality of all previous labels makes the finite sums and their means equal.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
With the same fixed initial c, time 0 returns c; at positive time equality of all previous labels makes the finite sums and their means equal.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.ftlPredict, BanditRL.OnlineLearning.empiricalMean
Exact Lean statement
theorem ftlPredict_prefix (initial : ℝ) (y z : ℕ → ℝ) (t : ℕ) (h : ∀ i < t, y i = z i) : ftlPredict initial y t = ftlPredict initial z t
Mathematics ↔ Lean

General initial prediction: feasibility

Lean declarationBanditRL.OnlineLearning.ftlPredict_mem

Compiled

Plain-English statement. At zero use the assumed feasible initial value; at positive time apply the existing finite-prefix empirical-mean feasibility producer.

Mathematical reading. At zero use the assumed feasible initial value; at positive time apply the existing finite-prefix empirical-mean feasibility producer.
Intuition
At zero use the assumed feasible initial value; at positive time apply the existing finite-prefix empirical-mean feasibility producer.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
At zero use the assumed feasible initial value; at positive time apply the existing finite-prefix empirical-mean feasibility producer.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.ftlPredict, BanditRL.OnlineLearning.empiricalMean_mem
Exact Lean statement
theorem ftlPredict_mem (initial : ℝ) (y : ℕ → ℝ) (t : ℕ) (hi : initial ∈ Set.Icc (0 : ℝ) 1) (hy : ∀ i < t, y i ∈ Set.Icc (0 : ℝ) 1) : ftlPredict initial y t ∈ Set.Icc (0 : ℝ) 1
Mathematics ↔ Lean

Exact half-initial predictor

Lean declarationBanditRL.OnlineLearning.ftlPredict_half

Compiled

Plain-English statement. The two piecewise definitions agree at every time, including zero. This is the exact special case used by Theorem1.3; it does not extend the quarter bound to arbitrary c.

Mathematical reading. The two piecewise definitions agree at every time, including zero. This is the exact special case used by Theorem1.3; it does not extend the quarter bound to arbitrary c.
Intuition
The two piecewise definitions agree at every time, including zero. This is the exact special case used by Theorem1.3; it does not extend the quarter bound to arbitrary c.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
The two piecewise definitions agree at every time, including zero. This is the exact special case used by Theorem1.3; it does not extend the quarter bound to arbitrary c.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.ftlPredict, BanditRL.OnlineLearning.meanPredict
Exact Lean statement
theorem ftlPredict_half (y : ℕ → ℝ) (t : ℕ) : ftlPredict ((1 : ℝ) / 2) y t = meanPredict y t
Mathematics ↔ Lean

First update cancels the initial value

Lean declarationBanditRL.OnlineLearning.ftlState_first

Compiled

Plain-English statement. Insert (0,c) into the local update: its real denominator is1 and c+(y0-c)=y0. No boundedness premise is needed for this algebraic identity.

Mathematical reading. Insert (0,c) into the local update: its real denominator is1 and c+(y0-c)=y0. No boundedness premise is needed for this algebraic identity.
Intuition
Insert (0,c) into the local update: its real denominator is1 and c+(y0-c)=y0. No boundedness premise is needed for this algebraic identity.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
Insert (0,c) into the local update: its real denominator is1 and c+(y0-c)=y0. No boundedness premise is needed for this algebraic identity.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.ftlState, BanditRL.OnlineLearning.ftlMeanStep
Exact Lean statement
theorem ftlState_first (initial : ℝ) (y : ℕ → ℝ) : ftlState initial y 1 = (1, y 0)
Mathematics ↔ Lean

The whole state uses the strict prefix

Lean declarationBanditRL.OnlineLearning.ftlState_prefix

Compiled

Plain-English statement. Rewrite both actual recursive states using the proved state identity, then apply strict-prefix predictor equality. Both the count and value agree before the current target is observed.

Mathematical reading. Rewrite both actual recursive states using the proved state identity, then apply strict-prefix predictor equality. Both the count and value agree before the current target is observed.
Intuition
Rewrite both actual recursive states using the proved state identity, then apply strict-prefix predictor equality. Both the count and value agree before the current target is observed.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
Rewrite both actual recursive states using the proved state identity, then apply strict-prefix predictor equality. Both the count and value agree before the current target is observed.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.ftlState_eq_predict, BanditRL.OnlineLearning.ftlPredict_prefix
Exact Lean statement
theorem ftlState_prefix (initial : ℝ) (y z : ℕ → ℝ) (t : ℕ) (h : ∀ i < t, y i = z i) : ftlState initial y t = ftlState initial z t
Mathematics ↔ Lean

The actual state predicts inside the interval

Lean declarationBanditRL.OnlineLearning.ftlState_mem

Compiled

Plain-English statement. Rewrite the actual state by the proved identity and use predictor feasibility. Initial 2 at time 0 is an ambient outside-domain counterexample, rather than a source-feasible test.

Mathematical reading. Rewrite the actual state by the proved identity and use predictor feasibility. Initial 2 at time 0 is an ambient outside-domain counterexample, rather than a source-feasible test.
Intuition
Rewrite the actual state by the proved identity and use predictor feasibility. Initial 2 at time 0 is an ambient outside-domain counterexample, rather than a source-feasible test.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
Rewrite the actual state by the proved identity and use predictor feasibility. Initial 2 at time 0 is an ambient outside-domain counterexample, rather than a source-feasible test.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.ftlState_eq_predict, BanditRL.OnlineLearning.ftlPredict_mem
Exact Lean statement
theorem ftlState_mem (initial : ℝ) (y : ℕ → ℝ) (t : ℕ) (hi : initial ∈ Set.Icc (0 : ℝ) 1) (hy : ∀ i < t, y i ∈ Set.Icc (0 : ℝ) 1) : (ftlState initial y t).2 ∈ Set.Icc (0 : ℝ) 1
Mathematics ↔ Lean

The half-state is the existing regret trajectory

Lean declarationBanditRL.OnlineLearning.ftlState_half

Compiled

Plain-English statement. Compose the recursive-state identity and exact half-predictor identity. This identifies the same trajectory at every time; the canary calls the prior refined regret theorem after this rewrite.

Mathematical reading. Compose the recursive-state identity and exact half-predictor identity. This identifies the same trajectory at every time; the canary calls the prior refined regret theorem after this rewrite.
Intuition
Compose the recursive-state identity and exact half-predictor identity. This identifies the same trajectory at every time; the canary calls the prior refined regret theorem after this rewrite.
Why it is needed
Expose the running-average invariant and the precise initialization, prefix and feasibility interfaces.
Place in the proof
Orabona arXiv:1912.13213v10, printed p.3 / PDF15 and printed p.6 / PDF18; derived library interfaces, not numbered source theorems.
Proof and Lean reading notes
Proof idea
Compose the recursive-state identity and exact half-predictor identity. This identifies the same trajectory at every time; the canary calls the prior refined regret theorem after this rewrite.
Lean reading notes
Fix the same initial c before observing targets. Lean time t counts the strict past y0,...,y(t-1). The identities hold for real c and targets; feasibility requires c and only that strict prefix in [0,1]. The source permits any feasible first prediction and describes a running average. The explicit recursion and its equivalence proof are library derivations. The state uses an unbounded natural count and an exact real value, with no fixed-bit memory, extracted executable or runtime guarantee. The prior quarter/refined regret bounds transfer at c=1/2; no general-c rate is proved by this package.
Teaching dependencies
BanditRL.OnlineLearning.ftlState_eq_predict, BanditRL.OnlineLearning.ftlPredict_half, BanditRL.OnlineLearning.meanPredict
Exact Lean statement
theorem ftlState_half (y : ℕ → ℝ) (t : ℕ) : ftlState ((1 : ℝ) / 2) y t = (t, meanPredict y t)
Mathematics ↔ Lean

The same signed regret as a sum of gaps

Lean declarationBanditRL.OnlineLearning.comparatorRegret_eq_sum

Compiled

Plain-English statement. Use Mathlib Finset.sum_sub_distrib in reverse; instantiate the common carrier with Subtype W and embed the comparator from V.

Mathematical reading. Use Mathlib Finset.sum_sub_distrib in reverse; instantiate the common carrier with Subtype W and embed the comparator from V.
Intuition
Comparison uses one supplied prediction sequence and each fixed feasible comparator.
Why it is needed
Keep source domains and the exact one-sided upper condition explicit in the shared library.
Place in the proof
Orabona v10 printedp2/PDF14, comparator definition, Remark1.1 and Footnote1; library algebraic adapter/model mapping, not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
Use Mathlib Finset.sum_sub_distrib in reverse; instantiate the common carrier with Subtype W and embed the comparator from V.
Lean reading notes
The shared ambient carrier realizes outputs in W and comparators in V subset W by using the subtype W. Losses must be defined on W; a V-only loss is not evaluated outside V. The source footnote supplies a modeling possibility, not an algorithmic guarantee. Finite algebra needs no geometry or probability. It does not prove causal recomputation, nonnegative regret or existence of a best comparator. This integrates the original Chapter 1 core. It does not complete Chapter 1 or the book. The ordinary-limit reconciliation, arbitrary-initial FTL state family, general stochastic strategy classes, optimal-order lower bound and later modules remain separate. Restriction along the embedding V -> W commutes with regret when predictions already lie in V. Equality of losses on the played prefix preserves evaluation for one fixed prediction sequence; it does not recompute a causal learner. T = 0 uses empty sums and total real division. With no feasible comparator, the universal eventual property is vacuous and supplies no best comparator. RegretDomainsProbe retains eight fixture definitions and eight validation theorems: domain gap sum, restriction/pullback, proper inclusion, loss-prefix invariance, zero horizon, outside prediction and negative regret, two fixed comparators, and the bound-zero adapter consumer.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem comparatorRegret_eq_sum {X : Type*} (loss : ℕ → X → ℝ) (prediction : ℕ → X) (u : X) (T : ℕ) : comparatorRegret loss prediction u T = ∑ t ∈ Finset.range T, (loss t (prediction t) - loss t u)
Mathematics ↔ Lean

An eventual upper-bound adapter

Lean declarationBanditRL.OnlineLearning.noRegret_of_vanishing_bound

Compiled

Plain-English statement. For epsilon>0, tendsto_order gives that the bound is eventually below epsilon. Intersect with the actual regret-bound event and use transitivity; this does not prove the input bound for an arbitrary algorithm.

Mathematical reading. For epsilon>0, tendsto_order gives that the bound is eventually below epsilon. Intersect with the actual regret-bound event and use transitivity; this does not prove the input bound for an arbitrary algorithm.
Intuition
Comparison uses one supplied prediction sequence and each fixed feasible comparator.
Why it is needed
Keep source domains and the exact one-sided upper condition explicit in the shared library.
Place in the proof
Orabona v10 printedp2/PDF14, comparator definition, Remark1.1 and Footnote1; library algebraic adapter/model mapping, not a new numbered source theorem.
Proof and Lean reading notes
Proof idea
For epsilon>0, tendsto_order gives that the bound is eventually below epsilon. Intersect with the actual regret-bound event and use transitivity; this does not prove the input bound for an arbitrary algorithm.
Lean reading notes
For each fixed feasible comparator, the supplied eventual normalized-regret bound tends tozero. This is a generic conditional adapter; it does not produce that bound. The resulting threshold depends on comparator and epsilon. No ordinary limit, absolute bound or sign assertion is added. This integrates the original Chapter 1 core. It does not complete Chapter 1 or the book. The ordinary-limit reconciliation, arbitrary-initial FTL state family, general stochastic strategy classes, optimal-order lower bound and later modules remain separate.
Teaching dependencies
BanditRL.OnlineLearning.comparatorRegret
Exact Lean statement
theorem noRegret_of_vanishing_bound {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) (bound : X → ℕ → ℝ) (hb : ∀ u ∈ V, ∀ᶠ T in atTop, comparatorRegret loss prediction u T / T ≤ bound u T) (hl : ∀ u ∈ V, Tendsto (bound u) atTop (nhds 0)) : NoRegret V loss prediction
Mathematics ↔ Lean

A produced binary history law

Lean declarationBanditRL.OnlineLearning.GuessingLower.prefix_mass_one

Compiled

Plain-English statement. Split each length-(T+1) vector into its newest bit and prior vector; branch weights sum to w(h), then use the same law induction.

Mathematical reading. Split each length-(T+1) vector into its newest bit and prior vector; branch weights sum to w(h), then use the same law induction.
Intuition
The correlated binary path law, strict-history predictor and hindsight empirical mean refer to the same finite sequence.
Why it is needed
Ensure the constructed path weights can average regret without an extra normalization premise.
Place in the proof
Derived library support for the Chapter 1 logarithmic-necessity claim; the source does not print this construction or these constants.
Proof and Lean reading notes
Proof idea
Split each length-(T+1) vector into its newest bit and prior vector; branch weights sum to w(h), then use the same law induction.
Lean reading notes
Induction starts at the empty history. Splitting successor vectors into their newest bit and prior history reduces normalization to branch_mass. The theorem includes T=0.
Teaching dependencies
BanditRL.OnlineLearning.GuessingLower.branch_mass, BanditRL.OnlineLearning.GuessingLower.sum_vectors_succ
Exact Lean statement
theorem prefix_mass_one (T : ℕ) : (∑ v : List.Vector Bool T, pathWeight v.toList) = 1
Mathematics ↔ Lean

Actual next-label variance

Lean declarationBanditRL.OnlineLearning.GuessingLower.expected_next_variance

Compiled

Plain-English statement. Produce the count recurrences from the actual branch law; expand the rational q(1-q) and use both produced moments.

Mathematical reading. Produce the count recurrences from the actual branch law; expand the rational q(1-q) and use both produced moments.
Intuition
The correlated binary path law, strict-history predictor and hindsight empirical mean refer to the same finite sequence.
Why it is needed
Quantify the unavoidable one-step square-loss cost under the correlated binary law.
Place in the proof
Derived library support for the Chapter 1 logarithmic-necessity claim; the source does not print this construction or these constants.
Proof and Lean reading notes
Proof idea
Produce the count recurrences from the actual branch law; expand the rational q(1-q) and use both produced moments.
Lean reading notes
The proof uses both produced count moments and linear finite-expectation identities. The displayed moment equations are supporting facts; this theorem concludes the variance formula for every natural T.
Teaching dependencies
BanditRL.OnlineLearning.GuessingLower.expected_heads, BanditRL.OnlineLearning.GuessingLower.expected_heads_sq
Exact Lean statement
theorem expected_next_variance (T : ℕ) : pathExpectation T (fun h => polyaNext h * (1 - polyaNext h)) = ((T : ℝ) + 3) / (6 * ((T : ℝ) + 2))
Mathematics ↔ Lean

Prediction uses only the actual strict past

Lean declarationBanditRL.OnlineLearning.GuessingLower.causalPredict_prefix

Compiled

Plain-English statement. If two infinite binary streams agree at every index before t, the same history policy gives the same prediction at t. The current and future labels are not inputs.

Mathematical reading. If two infinite binary streams agree at every index before t, the same history policy gives the same prediction at t. The current and future labels are not inputs.
Intuition
The correlated binary path law, strict-history predictor and hindsight empirical mean refer to the same finite sequence.
Why it is needed
Verify that a prediction cannot depend on the current or future labels.
Place in the proof
Derived library support for the Chapter 1 logarithmic-necessity claim; the source does not print this construction or these constants.
Proof and Lean reading notes
Proof idea
The two length-t vectors are equal by their pointwise strict-prefix agreement. Converting them to lists and reversing preserves equality, so applying the same A gives equal predictions.
Lean reading notes
The public prefix theorem is proved from List.ofFn equality, function extensionality and congruence. It has no direct project theorem prerequisite; separate finite-history lemmas use it downstream.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem causalPredict_prefix (A : List Bool → ℝ) (y z : ℕ → Bool) (t : ℕ) (hpast : ∀ i < t, y i = z i) : causalPredict A y t = causalPredict A z t
Mathematics ↔ Lean

The same-path empirical mean is feasible and best

Lean declarationBanditRL.OnlineLearning.GuessingLower.binary_mean_minimizer

Compiled

Plain-English statement. Apply the shared empirical-mean feasibility and square-loss minimization results to the actual binaryValues path. No supplied argmin or changed trajectory.

Mathematical reading. Apply the shared empirical-mean feasibility and square-loss minimization results to the actual binaryValues path. No supplied argmin or changed trajectory.
Intuition
The correlated binary path law, strict-history predictor and hindsight empirical mean refer to the same finite sequence.
Why it is needed
Identify the feasible hindsight comparator on the same sequence used for learner loss.
Place in the proof
Derived library support for the Chapter 1 logarithmic-necessity claim; the source does not print this construction or these constants.
Proof and Lean reading notes
Proof idea
Apply the shared empirical-mean feasibility and square-loss minimization results to the actual binaryValues path. No supplied argmin or changed trajectory.
Lean reading notes
At positive path length, the shared empiricalMean_mem and empiricalMean_minimizes supply feasibility and minimization over [0,1]. No oracle minimizer is assumed.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean_mem, BanditRL.OnlineLearning.empiricalMean_minimizes
Exact Lean statement
theorem binary_mean_minimizer (h : List Bool) (hpos : 0 < h.length) : empiricalMean (binaryValues h) h.length ∈ Icc (0 : ℝ) 1 ∧ ∀ u ∈ Icc (0 : ℝ) 1, (∑ t ∈ range h.length, (empiricalMean (binaryValues h) h.length - binaryValues h t)^2) ≤ ∑ t ∈ range h.length, (u - binaryValues h t)^2
Mathematics ↔ Lean

Expected signed regret from the actual process

Lean declarationBanditRL.OnlineLearning.GuessingLower.expected_pathRegret_lower

Compiled

Plain-English statement. Use the actual causal loss successor and conditional variance bound, sum the shifted harmonic increments, then subtract the produced expected same-path optimal loss (T-1)/6.

Mathematical reading. Use the actual causal loss successor and conditional variance bound, sum the shifted harmonic increments, then subtract the produced expected same-path optimal loss (T-1)/6.
Intuition
The correlated binary path law, strict-history predictor and hindsight empirical mean refer to the same finite sequence.
Why it is needed
Turn one-step prediction uncertainty into regret against the actual hindsight optimum.
Place in the proof
Derived library support for the Chapter 1 logarithmic-necessity claim; the source does not print this construction or these constants.
Proof and Lean reading notes
Proof idea
Use the actual causal loss successor and conditional variance bound, sum the shifted harmonic increments, then subtract the produced expected same-path optimal loss (T-1)/6.
Lean reading notes
This finite-law intermediate permits any real-valued strict-history policy. Positive T is required for the comparator calculation. The proof subtracts the expected optimum from expected learner loss and uses the harmonic sum identity.
Teaching dependencies
BanditRL.OnlineLearning.GuessingLower.expected_pathLearnerLoss_lower, BanditRL.OnlineLearning.GuessingLower.expected_pathBestLoss, BanditRL.OnlineLearning.GuessingLower.pathRegret_eq_losses, BanditRL.OnlineLearning.GuessingLower.variance_sum
Exact Lean statement
theorem expected_pathRegret_lower (A : List Bool → ℝ) (T : ℕ) (hT : 0 < T) : (harmonic (T + 1) : ℝ) / 6 ≤ pathExpectation T (pathRegret A)
Mathematics ↔ Lean

One fixed sequence before the seed integral

Lean declarationBanditRL.OnlineLearning.GuessingLower.randomized_harmonic_lower

Compiled

Plain-English statement. Prove signed-regret integrability, interchange the finite weighted sum and seed integral, then use positive normalized weights to contradict that every fixed path has smaller seed average.

Mathematical reading. Prove signed-regret integrability, interchange the finite weighted sum and seed integral, then use positive normalized weights to contradict that every fixed path has smaller seed average.
Intuition
The correlated binary path law, strict-history predictor and hindsight empirical mean refer to the same finite sequence.
Why it is needed
Select a single hard sequence that remains fixed while averaging over the private random seed.
Place in the proof
Derived library support for the Chapter 1 logarithmic-necessity claim; the source does not print this construction or these constants.
Proof and Lean reading notes
Proof idea
Prove signed-regret integrability, interchange the finite weighted sum and seed integral, then use positive normalized weights to contradict that every fixed path has smaller seed average.
Lean reading notes
Measurability and global [0,1] bounds give integrable signed regret. Finite-sum/integral exchange and positive normalized weights give one witness. The result is an expected guarantee, not a per-seed or almost-sure guarantee.
Teaching dependencies
BanditRL.OnlineLearning.GuessingLower.expected_pathRegret_lower, BanditRL.OnlineLearning.GuessingLower.pathRegret_integrable, BanditRL.OnlineLearning.GuessingLower.pathWeight_pos, BanditRL.OnlineLearning.GuessingLower.prefix_mass_one
Exact Lean statement
theorem randomized_harmonic_lower {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (A : Ω → List Bool → ℝ) (hA : ∀ h, Measurable (fun ω => A ω h)) (hbound : ∀ ω h, A ω h ∈ Icc (0 : ℝ) 1) (T : ℕ) (hT : 0 < T) : ∃ v : List.Vector Bool T, (harmonic (T + 1) : ℝ) / 6 ≤ ∫ ω, pathRegret (A ω) v.toList ∂μ
Mathematics ↔ Lean

The derived logarithmic lower endpoint

Lean declarationBanditRL.OnlineLearning.GuessingLower.randomized_log_lower

Compiled

Plain-English statement. Take the same fixed witness from the harmonic lower producer; apply Mathlib log_add_one_le_harmonic at T+1 and divide by positive6.

Mathematical reading. Take the same fixed witness from the harmonic lower producer; apply Mathlib log_add_one_le_harmonic at T+1 and divide by positive6.
Intuition
The correlated binary path law, strict-history predictor and hindsight empirical mean refer to the same finite sequence.
Why it is needed
Express the same fixed-sequence guarantee in logarithmic form.
Place in the proof
Derived library support for the Chapter 1 logarithmic-necessity claim; the source does not print this construction or these constants.
Proof and Lean reading notes
Proof idea
Take the same fixed witness from the harmonic lower producer; apply Mathlib log_add_one_le_harmonic at T+1 and divide by positive6.
Lean reading notes
The proof reuses the harmonic witness and Mathlib log_add_one_le_harmonic at T+1. The natural-log coefficient1/6 and shifted horizon are derived constants, with no sharpness claim.
Teaching dependencies
BanditRL.OnlineLearning.GuessingLower.randomized_harmonic_lower
Exact Lean statement
theorem randomized_log_lower {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (A : Ω → List Bool → ℝ) (hA : ∀ h, Measurable (fun ω => A ω h)) (hbound : ∀ ω h, A ω h ∈ Icc (0 : ℝ) 1) (T : ℕ) (hT : 0 < T) : ∃ v : List.Vector Bool T, Real.log ((T : ℝ) + 2) / 6 ≤ ∫ ω, pathRegret (A ω) v.toList ∂μ
Mathematics ↔ Lean

An existing normalized limit is nonpositive

Lean declarationBanditRL.OnlineLearning.noRegret_limit_nonpos

Compiled

Plain-English statement. Assume a>0; eventual upper control with epsilon=a/2 and le_of_tendsto gives a<=a/2, a contradiction.

Mathematical reading. Assume a>0; eventual upper control with epsilon=a/2 and le_of_tendsto gives a<=a/2, a contradiction.
Intuition
An upper performance bound allows negative signed regret and does not force convergence.
Why it is needed
Identify exactly when an upper guarantee determines the sign of an existing limit and why convergence itself requires separate evidence.
Place in the proof
Derived reconciliation of the ordinary-limit display and eventual upper interpretation at Orabona v10 printed p.2/PDF p.14. These are library derivations, not separate printed theorems.
Proof and Lean reading notes
Proof idea
Assume a>0; eventual upper control with epsilon=a/2 and le_of_tendsto gives a<=a/2, a contradiction.
Lean reading notes
Generic bridges concern one supplied loss/prediction trace on an arbitrary carrier. Thresholds and finite limits may depend on each fixed comparator. The counterexample uses one fixed signed affine loss stream and the feasible constant-zero learner on [0,1]; coefficients are unbounded over time. It is not a squared-loss or meanPredict nonconvergence result. Source rounds1..T correspond to Lean0..T-1; both separating subsequences use positive horizons.
Teaching dependencies
BanditRL.OnlineLearning.NoRegret
Exact Lean statement
theorem noRegret_limit_nonpos {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) (hNR : NoRegret V loss prediction) (u : X) (hu : u ∈ V) (a : ℝ) (hl : Tendsto (fun T : ℕ => comparatorRegret loss prediction u T / T) atTop (nhds a)) : a ≤ 0
Mathematics ↔ Lean

Ordinary nonpositive limits give eventual upper control

Lean declarationBanditRL.OnlineLearning.limitNoRegret_implies_noRegret

Compiled

Plain-English statement. For each u and positive epsilon, a_u<=0<epsilon; real tendsto_order gives the required eventual inequality.

Mathematical reading. For each u and positive epsilon, a_u<=0<epsilon; real tendsto_order gives the required eventual inequality.
Intuition
An upper performance bound allows negative signed regret and does not force convergence.
Why it is needed
Identify exactly when an upper guarantee determines the sign of an existing limit and why convergence itself requires separate evidence.
Place in the proof
Derived reconciliation of the ordinary-limit display and eventual upper interpretation at Orabona v10 printed p.2/PDF p.14. These are library derivations, not separate printed theorems.
Proof and Lean reading notes
Proof idea
For each u and positive epsilon, a_u<=0<epsilon; real tendsto_order gives the required eventual inequality.
Lean reading notes
Generic bridges concern one supplied loss/prediction trace on an arbitrary carrier. Thresholds and finite limits may depend on each fixed comparator. The counterexample uses one fixed signed affine loss stream and the feasible constant-zero learner on [0,1]; coefficients are unbounded over time. It is not a squared-loss or meanPredict nonconvergence result. Source rounds1..T correspond to Lean0..T-1; both separating subsequences use positive horizons.
Teaching dependencies
BanditRL.OnlineLearning.LimitNoRegret
Exact Lean statement
theorem limitNoRegret_implies_noRegret {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) (hL : LimitNoRegret V loss prediction) : NoRegret V loss prediction
Mathematics ↔ Lean

Equivalence keeps its finite convergence premise

Lean declarationBanditRL.OnlineLearning.limitNoRegret_iff_noRegret_of_converges

Compiled

Plain-English statement. Use the ordinary-to-upper implication; in the reverse direction choose each supplied actual real limit and apply the sign bridge.

Mathematical reading. Use the ordinary-to-upper implication; in the reverse direction choose each supplied actual real limit and apply the sign bridge.
Intuition
An upper performance bound allows negative signed regret and does not force convergence.
Why it is needed
Identify exactly when an upper guarantee determines the sign of an existing limit and why convergence itself requires separate evidence.
Place in the proof
Derived reconciliation of the ordinary-limit display and eventual upper interpretation at Orabona v10 printed p.2/PDF p.14. These are library derivations, not separate printed theorems.
Proof and Lean reading notes
Proof idea
Use the ordinary-to-upper implication; in the reverse direction choose each supplied actual real limit and apply the sign bridge.
Lean reading notes
Generic bridges concern one supplied loss/prediction trace on an arbitrary carrier. Thresholds and finite limits may depend on each fixed comparator. The counterexample uses one fixed signed affine loss stream and the feasible constant-zero learner on [0,1]; coefficients are unbounded over time. It is not a squared-loss or meanPredict nonconvergence result. Source rounds1..T correspond to Lean0..T-1; both separating subsequences use positive horizons.
Teaching dependencies
BanditRL.OnlineLearning.noRegret_limit_nonpos, BanditRL.OnlineLearning.limitNoRegret_implies_noRegret
Exact Lean statement
theorem limitNoRegret_iff_noRegret_of_converges {X : Type*} (V : Set X) (loss : ℕ → X → ℝ) (prediction : ℕ → X) (hc : ∀ u ∈ V, ∃ a : ℝ, Tendsto (fun T : ℕ => comparatorRegret loss prediction u T / T) atTop (nhds a)) : LimitNoRegret V loss prediction ↔ NoRegret V loss prediction
Mathematics ↔ Lean

The actual fixed losses telescope

Lean declarationBanditRL.OnlineLearning.NoRegretCounterexample.regret_eq

Compiled

Plain-English statement. Finite range induction proves actual loss prefix sums; constant zero learner has cumulative loss0.

Mathematical reading. Finite range induction proves actual loss prefix sums; constant zero learner has cumulative loss0.
Intuition
An upper performance bound allows negative signed regret and does not force convergence.
Why it is needed
Identify exactly when an upper guarantee determines the sign of an existing limit and why convergence itself requires separate evidence.
Place in the proof
Derived reconciliation of the ordinary-limit display and eventual upper interpretation at Orabona v10 printed p.2/PDF p.14. These are library derivations, not separate printed theorems.
Proof and Lean reading notes
Proof idea
Finite range induction proves actual loss prefix sums; constant zero learner has cumulative loss0.
Lean reading notes
Generic bridges concern one supplied loss/prediction trace on an arbitrary carrier. Thresholds and finite limits may depend on each fixed comparator. The counterexample uses one fixed signed affine loss stream and the feasible constant-zero learner on [0,1]; coefficients are unbounded over time. It is not a squared-loss or meanPredict nonconvergence result. Source rounds1..T correspond to Lean0..T-1; both separating subsequences use positive horizons.
Teaching dependencies
BanditRL.OnlineLearning.NoRegretCounterexample.loss, BanditRL.OnlineLearning.NoRegretCounterexample.potential, BanditRL.OnlineLearning.comparatorRegret
Exact Lean statement
theorem regret_eq (T : ℕ) (u : ℝ) : comparatorRegret loss (fun _ => 0) u T = -potential T * u
Mathematics ↔ Lean

Positive cofinal subsequences rule out a real limit

Lean declarationBanditRL.OnlineLearning.NoRegretCounterexample.no_limit

Compiled

Plain-English statement. Use actual normalized_even/normalized_odd identities and cofinality of both positive maps; ordinary real limit uniqueness would force -1=0.

Mathematical reading. Use actual normalized_even/normalized_odd identities and cofinality of both positive maps; ordinary real limit uniqueness would force -1=0.
Intuition
An upper performance bound allows negative signed regret and does not force convergence.
Why it is needed
Identify exactly when an upper guarantee determines the sign of an existing limit and why convergence itself requires separate evidence.
Place in the proof
Derived reconciliation of the ordinary-limit display and eventual upper interpretation at Orabona v10 printed p.2/PDF p.14. These are library derivations, not separate printed theorems.
Proof and Lean reading notes
Proof idea
Use actual normalized_even/normalized_odd identities and cofinality of both positive maps; ordinary real limit uniqueness would force -1=0.
Lean reading notes
Generic bridges concern one supplied loss/prediction trace on an arbitrary carrier. Thresholds and finite limits may depend on each fixed comparator. The counterexample uses one fixed signed affine loss stream and the feasible constant-zero learner on [0,1]; coefficients are unbounded over time. It is not a squared-loss or meanPredict nonconvergence result. Source rounds1..T correspond to Lean0..T-1; both separating subsequences use positive horizons.
Teaching dependencies
BanditRL.OnlineLearning.NoRegretCounterexample.normalized_even, BanditRL.OnlineLearning.NoRegretCounterexample.normalized_odd
Exact Lean statement
theorem no_limit : ¬ ∃ a : ℝ, Tendsto (fun T : ℕ => comparatorRegret loss (fun _ => 0) 1 T / T) atTop (nhds a)
Mathematics ↔ Lean

One feasible causal process separates the properties

Lean declarationBanditRL.OnlineLearning.NoRegretCounterexample.strict_separation

Compiled

Plain-English statement. Nonnegative F(T) and u>=0 give R_T(u)<=0. Literal limit existence would give a real limit at feasible comparator1, contradicting no_limit.

Mathematical reading. Nonnegative F(T) and u>=0 give R_T(u)<=0. Literal limit existence would give a real limit at feasible comparator1, contradicting no_limit.
Intuition
An upper performance bound allows negative signed regret and does not force convergence.
Why it is needed
Identify exactly when an upper guarantee determines the sign of an existing limit and why convergence itself requires separate evidence.
Place in the proof
Derived reconciliation of the ordinary-limit display and eventual upper interpretation at Orabona v10 printed p.2/PDF p.14. These are library derivations, not separate printed theorems.
Proof and Lean reading notes
Proof idea
Nonnegative F(T) and u>=0 give R_T(u)<=0. Literal limit existence would give a real limit at feasible comparator1, contradicting no_limit.
Lean reading notes
Generic bridges concern one supplied loss/prediction trace on an arbitrary carrier. Thresholds and finite limits may depend on each fixed comparator. The counterexample uses one fixed signed affine loss stream and the feasible constant-zero learner on [0,1]; coefficients are unbounded over time. It is not a squared-loss or meanPredict nonconvergence result. Source rounds1..T correspond to Lean0..T-1; both separating subsequences use positive horizons.
Teaching dependencies
BanditRL.OnlineLearning.NoRegretCounterexample.noRegret, BanditRL.OnlineLearning.NoRegretCounterexample.no_limit
Exact Lean statement
theorem strict_separation : NoRegret (Set.Icc (0 : ℝ) 1) loss (fun _ => 0) ∧ ¬ LimitNoRegret (Set.Icc (0 : ℝ) 1) loss (fun _ => 0)
Mathematics ↔ Lean

The empirical mean attains the feasible minimum

Lean declarationBanditRL.OnlineLearning.guessing_prefix_minimum

Compiled

Plain-English statement. Averaging feasible targets gives a feasible comparator, and every other comparator adds a nonnegative square to its loss.

Mathematical reading. Averaging feasible targets gives a feasible comparator, and every other comparator adds a nonnegative square to its loss.
Intuition
The benchmark is an actual attained minimum over one fixed comparator.
Why it is needed
Connect the explicit best-fixed benchmark to the shared comparator-regret API without assuming a minimizing certificate.
Place in the proof
Derived minimum-value representation and adapters for Orabona v10, printed pp.2-6 / PDF pp.14-18. Theorem1.3 is on printed p.4, the refined bound on p.5, and its harmonic-integral continuation on p.6. These six results are not six separately printed theorems.
Proof and Lean reading notes
Proof idea
For T>0, averaging gives m_T in [0,1]. Expanding the squares and using sum_{t<T}(y_t-m_T)=0 gives L_T(u)=L_T(m_T)+T(u-m_T)^2, so L_T(m_T)<=L_T(u). At T=0, m_0=0 and every loss sum is0; every comparator is a minimizer.
Lean reading notes
Let y_t lie in [0,1] for t<T, let L_T(u)=sum_{t<T}(u-y_t)^2, and let m_T be the empirical mean. The source uses rounds1..T; Lean uses indices0..T-1. The representation and order identities allow any supplied real prediction trace. They do not assert feasibility or causality of that trace. The two performance bounds use the actual strict-past mean predictor, initially1/2, and require T>0. The T=0 representation is an explicit empty-prefix extension, with no uniqueness claim. Signed regret can be negative. The minimum of expected fixed loss and its causal IID variance benchmark are separate obligations.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean_mem, BanditRL.OnlineLearning.empiricalMean_minimizes
Exact Lean statement
theorem guessing_prefix_minimum (y : ℕ → ℝ) (T : ℕ) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : empiricalMean y T ∈ Set.Icc (0 : ℝ) 1 ∧ ∀ u ∈ Set.Icc (0 : ℝ) 1, (∑ t ∈ Finset.range T, (empiricalMean y T - y t)^2) ≤ ∑ t ∈ Finset.range T, (u - y t)^2
Mathematics ↔ Lean

The real infimum is the attained loss

Lean declarationBanditRL.OnlineLearning.squaredLoss_minimum_eq

Compiled

Plain-English statement. The loss at the empirical mean is a member of the comparator-loss set and is no larger than any other member.

Mathematical reading. The loss at the empirical mean is a member of the comparator-loss set and is no larger than any other member.
Intuition
The benchmark is an actual attained minimum over one fixed comparator.
Why it is needed
Connect the explicit best-fixed benchmark to the shared comparator-regret API without assuming a minimizing certificate.
Place in the proof
Derived minimum-value representation and adapters for Orabona v10, printed pp.2-6 / PDF pp.14-18. Theorem1.3 is on printed p.4, the refined bound on p.5, and its harmonic-integral continuation on p.6. These six results are not six separately printed theorems.
Proof and Lean reading notes
Proof idea
The preceding result supplies a feasible mean and all lower comparisons. Together they prove IsLeast for the image of [0,1] under L_T. Mathlib IsLeast.csInf_eq identifies its real infimum with L_T(m_T); no minimizer is assumed as an input.
Lean reading notes
Let y_t lie in [0,1] for t<T, let L_T(u)=sum_{t<T}(u-y_t)^2, and let m_T be the empirical mean. The source uses rounds1..T; Lean uses indices0..T-1. The representation and order identities allow any supplied real prediction trace. They do not assert feasibility or causality of that trace. The two performance bounds use the actual strict-past mean predictor, initially1/2, and require T>0. The T=0 representation is an explicit empty-prefix extension, with no uniqueness claim. Signed regret can be negative. The minimum of expected fixed loss and its causal IID variance benchmark are separate obligations.
Teaching dependencies
BanditRL.OnlineLearning.guessing_prefix_minimum
Exact Lean statement
theorem squaredLoss_minimum_eq (y : ℕ → ℝ) (T : ℕ) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : sInf ((fun u : ℝ => ∑ t ∈ Finset.range T, (u - y t)^2) '' Set.Icc (0 : ℝ) 1) = ∑ t ∈ Finset.range T, (empiricalMean y T - y t)^2
Mathematics ↔ Lean

Best-fixed regret uses the produced empirical mean

Lean declarationBanditRL.OnlineLearning.squaredBestRegret_eq_comparatorRegret

Compiled

Plain-English statement. Subtract the same attained minimum from the prediction loss to recover comparator regret at the empirical mean.

Mathematical reading. Subtract the same attained minimum from the prediction loss to recover comparator regret at the empirical mean.
Intuition
The benchmark is an actual attained minimum over one fixed comparator.
Why it is needed
Connect the explicit best-fixed benchmark to the shared comparator-regret API without assuming a minimizing certificate.
Place in the proof
Derived minimum-value representation and adapters for Orabona v10, printed pp.2-6 / PDF pp.14-18. Theorem1.3 is on printed p.4, the refined bound on p.5, and its harmonic-integral continuation on p.6. These six results are not six separately printed theorems.
Proof and Lean reading notes
Proof idea
Write A_T(x)=sum_{t<T}(x_t-y_t)^2. The minimum identity gives R_T^{best}(x)=A_T(x)-L_T(m_T). This is exactly the shared comparatorRegret for the same loss stream, prediction trace and horizon.
Lean reading notes
Let y_t lie in [0,1] for t<T, let L_T(u)=sum_{t<T}(u-y_t)^2, and let m_T be the empirical mean. The source uses rounds1..T; Lean uses indices0..T-1. The representation and order identities allow any supplied real prediction trace. They do not assert feasibility or causality of that trace. The two performance bounds use the actual strict-past mean predictor, initially1/2, and require T>0. The T=0 representation is an explicit empty-prefix extension, with no uniqueness claim. Signed regret can be negative. The minimum of expected fixed loss and its causal IID variance benchmark are separate obligations.
Teaching dependencies
BanditRL.OnlineLearning.squaredLoss_minimum_eq, BanditRL.OnlineLearning.squaredBestRegret, BanditRL.OnlineLearning.comparatorRegret
Exact Lean statement
theorem squaredBestRegret_eq_comparatorRegret (y prediction : ℕ → ℝ) (T : ℕ) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : squaredBestRegret y prediction T = comparatorRegret (fun t x => (x - y t)^2) prediction (empiricalMean y T) T
Mathematics ↔ Lean

Every feasible comparator is bounded by best-fixed regret

Lean declarationBanditRL.OnlineLearning.comparatorRegret_le_squaredBestRegret

Compiled

Plain-English statement. Subtracting a larger comparator loss gives a smaller regret, so the attained minimum produces the largest comparator regret.

Mathematical reading. Subtracting a larger comparator loss gives a smaller regret, so the attained minimum produces the largest comparator regret.
Intuition
The benchmark is an actual attained minimum over one fixed comparator.
Why it is needed
Connect the explicit best-fixed benchmark to the shared comparator-regret API without assuming a minimizing certificate.
Place in the proof
Derived minimum-value representation and adapters for Orabona v10, printed pp.2-6 / PDF pp.14-18. Theorem1.3 is on printed p.4, the refined bound on p.5, and its harmonic-integral continuation on p.6. These six results are not six separately printed theorems.
Proof and Lean reading notes
Proof idea
For feasible u, L_T(m_T)<=L_T(u). Subtract both sides from the same A_T(x), reversing their order. Then replace A_T(x)-L_T(m_T) by the best-fixed regret identity.
Lean reading notes
Let y_t lie in [0,1] for t<T, let L_T(u)=sum_{t<T}(u-y_t)^2, and let m_T be the empirical mean. The source uses rounds1..T; Lean uses indices0..T-1. The representation and order identities allow any supplied real prediction trace. They do not assert feasibility or causality of that trace. The two performance bounds use the actual strict-past mean predictor, initially1/2, and require T>0. The T=0 representation is an explicit empty-prefix extension, with no uniqueness claim. Signed regret can be negative. The minimum of expected fixed loss and its causal IID variance benchmark are separate obligations.
Teaching dependencies
BanditRL.OnlineLearning.guessing_prefix_minimum, BanditRL.OnlineLearning.squaredBestRegret_eq_comparatorRegret
Exact Lean statement
theorem comparatorRegret_le_squaredBestRegret (y prediction : ℕ → ℝ) (T : ℕ) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) (u : ℝ) (hu : u ∈ Set.Icc (0 : ℝ) 1) : comparatorRegret (fun t x => (x - y t)^2) prediction u T ≤ squaredBestRegret y prediction T
Mathematics ↔ Lean

The logarithmic bound holds against the actual minimum

Lean declarationBanditRL.OnlineLearning.meanPredict_bestRegret_bound

Compiled

Plain-English statement. The existing guarantee for the past-mean predictor applies to the same empirical-mean comparator that attains the minimum.

Mathematical reading. The existing guarantee for the past-mean predictor applies to the same empirical-mean comparator that attains the minimum.
Intuition
The benchmark is an actual attained minimum over one fixed comparator.
Why it is needed
Connect the explicit best-fixed benchmark to the shared comparator-regret API without assuming a minimizing certificate.
Place in the proof
Derived minimum-value representation and adapters for Orabona v10, printed pp.2-6 / PDF pp.14-18. Theorem1.3 is on printed p.4, the refined bound on p.5, and its harmonic-integral continuation on p.6. These six results are not six separately printed theorems.
Proof and Lean reading notes
Proof idea
Use x_0=1/2 and x_t=m_t for t>0. Replace best-fixed regret by comparatorRegret at m_T, then apply the existing theorem_1_3 guarantee on exactly the same target prefix. No new performance premise or rate argument is introduced.
Lean reading notes
Let y_t lie in [0,1] for t<T, let L_T(u)=sum_{t<T}(u-y_t)^2, and let m_T be the empirical mean. The source uses rounds1..T; Lean uses indices0..T-1. The representation and order identities allow any supplied real prediction trace. They do not assert feasibility or causality of that trace. The two performance bounds use the actual strict-past mean predictor, initially1/2, and require T>0. The T=0 representation is an explicit empty-prefix extension, with no uniqueness claim. Signed regret can be negative. The minimum of expected fixed loss and its causal IID variance benchmark are separate obligations.
Teaching dependencies
BanditRL.OnlineLearning.squaredBestRegret_eq_comparatorRegret, BanditRL.OnlineLearning.theorem_1_3
Exact Lean statement
theorem meanPredict_bestRegret_bound (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : squaredBestRegret y (meanPredict y) T ≤ 4 + 4 * Real.log T
Mathematics ↔ Lean

Keep the initial quarter and exact later-round tail

Lean declarationBanditRL.OnlineLearning.meanPredict_bestRegret_refined

Compiled

Plain-English statement. The stronger existing past-mean bound retains the first-round quarter and the harmonic sum over source rounds2 throughT.

Mathematical reading. The stronger existing past-mean bound retains the first-round quarter and the harmonic sum over source rounds2 throughT.
Intuition
The benchmark is an actual attained minimum over one fixed comparator.
Why it is needed
Connect the explicit best-fixed benchmark to the shared comparator-regret API without assuming a minimizing certificate.
Place in the proof
Derived minimum-value representation and adapters for Orabona v10, printed pp.2-6 / PDF pp.14-18. Theorem1.3 is on printed p.4, the refined bound on p.5, and its harmonic-integral continuation on p.6. These six results are not six separately printed theorems.
Proof and Lean reading notes
Proof idea
Apply the same minimum identity to meanPredict_regret_refined. The initial prediction is1/2, so its squared error is at most1/4. The existing later-round stability analysis supplies the terms4/s for source rounds s=2,...,T. At T=1 the tail is empty.
Lean reading notes
Let y_t lie in [0,1] for t<T, let L_T(u)=sum_{t<T}(u-y_t)^2, and let m_T be the empirical mean. The source uses rounds1..T; Lean uses indices0..T-1. The representation and order identities allow any supplied real prediction trace. They do not assert feasibility or causality of that trace. The two performance bounds use the actual strict-past mean predictor, initially1/2, and require T>0. The T=0 representation is an explicit empty-prefix extension, with no uniqueness claim. Signed regret can be negative. The minimum of expected fixed loss and its causal IID variance benchmark are separate obligations.
Teaching dependencies
BanditRL.OnlineLearning.squaredBestRegret_eq_comparatorRegret, BanditRL.OnlineLearning.meanPredict_regret_refined
Exact Lean statement
theorem meanPredict_bestRegret_refined (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : squaredBestRegret y (meanPredict y) T ≤ (1 : ℝ) / 4 + ∑ t ∈ Finset.range (T - 1), 4 / ((t : ℝ) + 2)
Mathematics ↔ Lean

Separate variance from fixed-comparator bias

Lean declarationBanditRL.OnlineLearning.expected_fixed_prefix_decomposition

Compiled

Plain-English statement. For any fixed real u, the expected prefix loss separates into common variance and squared bias. Mutual independence is unnecessary.

Mathematical reading. For any fixed real u, the expected prefix loss separates into common variance and squared bias. Mutual independence is unnecessary.
Intuition
A fixed population benchmark lets the expected square loss expose the remaining prediction error.
Why it is needed
Connect the literal benchmark to the existing variance and causal-independence primitives.
Place in the proof
Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.
Proof and Lean reading notes
Proof idea
Almost-sure interval support and measurability give each observation a finite second moment. The difference from the constant u is square-integrable, so expectation distributes over the finite sum. Apply expected_square_decomposition to each term and use identical law to replace each mean and variance by m and v. Summing the identical expression gives the formula.
Lean reading notes
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. T=0 is an explicit empty-prefix extension; it does not assert uniqueness. The scalar u is arbitrary real in this algebraic identity. It need not lie in the feasible comparator interval. The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Teaching dependencies
BanditRL.OnlineLearning.expected_square_decomposition
Exact Lean statement
theorem expected_fixed_prefix_decomposition {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) (u : ℝ) : (∫ ω, ∑ t ∈ Finset.range T, (u - Y t ω)^2 ∂μ) = (T : ℝ) * variance (Y 0) μ + (T : ℝ) * (u - ∫ ω, Y 0 ω ∂μ)^2
Mathematics ↔ Lean

Produce a feasible mean and its attained minimum

Lean declarationBanditRL.OnlineLearning.expected_fixed_prefix_minimum

Compiled

Plain-English statement. The population mean is a feasible fixed comparator and attains the least expected cumulative loss.

Mathematical reading. The population mean is a feasible fixed comparator and attains the least expected cumulative loss.
Intuition
A fixed population benchmark lets the expected square loss expose the remaining prediction error.
Why it is needed
Connect the literal benchmark to the existing variance and causal-independence primitives.
Place in the proof
Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.
Proof and Lean reading notes
Proof idea
Integrate the almost-sure inequalities 0 ≤ Y_0 ≤ 1 to obtain 0 ≤ m ≤ 1. At u=m the bias term in the prefix decomposition vanishes. For every other feasible u, the extra term T(u-m)^2 is nonnegative. The value Tv belongs to the comparator-loss image and is below every image value, giving actual IsLeast.
Lean reading notes
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. T=0 is an explicit empty-prefix extension; it does not assert uniqueness. At T=0 every fixed comparator has zero loss; no unique minimizer is claimed. The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Teaching dependencies
BanditRL.OnlineLearning.expected_fixed_prefix_decomposition
Exact Lean statement
theorem expected_fixed_prefix_minimum {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : (∫ ω, Y 0 ω ∂μ) ∈ Set.Icc (0 : ℝ) 1 ∧ IsLeast ((fun u : ℝ => ∫ ω, ∑ t ∈ Finset.range T, (u - Y t ω)^2 ∂μ) '' Set.Icc (0 : ℝ) 1) ((T : ℝ) * variance (Y 0) μ)
Mathematics ↔ Lean

Identify the literal infimum with the attained value

Lean declarationBanditRL.OnlineLearning.expectedFixedMinimum_eq_variance

Compiled

Plain-English statement. The real infimum used by expectedFixedMinimum equals the attained variance benchmark.

Mathematical reading. The real infimum used by expectedFixedMinimum equals the attained variance benchmark.
Intuition
A fixed population benchmark lets the expected square loss expose the remaining prediction error.
Why it is needed
Connect the literal benchmark to the existing variance and causal-independence primitives.
Place in the proof
Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.
Proof and Lean reading notes
Proof idea
Unfold the definition of expectedFixedMinimum. The preceding theorem supplies the actual least element of its image set. Apply IsLeast.csInf_eq to identify the infimum with Tv. No minimizing certificate is added as a theorem premise.
Lean reading notes
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. T=0 is an explicit empty-prefix extension; it does not assert uniqueness. The total Lean definition accepts arbitrary measures and functions. Its ordinary finite-expectation and attained-minimum interpretation here uses the stated probability, measurability, common-law and support hypotheses. The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Teaching dependencies
BanditRL.OnlineLearning.expected_fixed_prefix_minimum
Exact Lean statement
theorem expectedFixedMinimum_eq_variance {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : expectedFixedMinimum μ Y T = (T : ℝ) * variance (Y 0) μ
Mathematics ↔ Lean

Sum the independent-prediction square identity

Lean declarationBanditRL.OnlineLearning.iid_cumulative_prediction_decomposition

Compiled

Plain-English statement. An intermediate library consumer sums the square-loss decomposition for square-integrable predictions independent of their current targets.

Mathematical reading. An intermediate library consumer sums the square-loss decomposition for square-integrable predictions independent of their current targets.
Intuition
A fixed population benchmark lets the expected square loss expose the remaining prediction error.
Why it is needed
Connect the literal benchmark to the existing variance and causal-independence primitives.
Place in the proof
Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.
Proof and Lean reading notes
Proof idea
Target support gives its second moment. Together with the supplied L2 prediction, this makes each squared loss integrable. Distribute expectation over the finite sum and apply independent_prediction_square at each round. Common law aligns all means and variances. Sum the variance terms and subtract Tv.
Lean reading notes
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. T=0 is an explicit empty-prefix extension; it does not assert uniqueness. This intermediate result assumes each prediction is L2 and independent of its current target. It does not itself produce causality. The next two adapters establish those premises for actual policies. The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Teaching dependencies
BanditRL.OnlineLearning.independent_prediction_square
Exact Lean statement
theorem iid_cumulative_prediction_decomposition {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (prediction : ℕ → Ω → ℝ) (hP : ∀ t, MemLp (prediction t) 2 μ) (hInd : ∀ t, IndepFun (prediction t) (Y t) μ) (T : ℕ) : (∫ ω, ∑ t ∈ Finset.range T, (prediction t ω - Y t ω)^2 ∂μ) - (T : ℝ) * variance (Y 0) μ = ∑ t ∈ Finset.range T, ∫ ω, (prediction t ω - ∫ ω, Y 0 ω ∂μ)^2 ∂μ
Mathematics ↔ Lean

Derive nonnegative excess for legal strict-history policies

Lean declarationBanditRL.OnlineLearning.history_policy_expectedFixed_excess

Compiled

Plain-English statement. For IID observations, a deterministic measurable policy using only the finite strict past has nonnegative expected fixed-comparator excess.

Mathematical reading. For IID observations, a deterministic measurable policy using only the finite strict past has nonnegative expected fixed-comparator excess.
Intuition
A fixed population benchmark lets the expected square loss expose the remaining prediction error.
Why it is needed
Connect the literal benchmark to the existing variance and causal-independence primitives.
Place in the proof
Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.
Proof and Lean reading notes
Proof idea
Intersect the countably many almost-sure support events. Every observed finite history is then legal, so the policy feasibility premise bounds its output on that event. Measurability and this bound supply L2. The existing history_policy_independent theorem derives independence from the current target using mutual independence of the observation family. Apply the cumulative decomposition and the attained benchmark identity. Each remaining expected square is nonnegative.
Lean reading notes
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. T=0 is an explicit empty-prefix extension; it does not assert uniqueness. The policy is bounded only on legal interval-valued history tuples. No bound on all real tuples is imposed. The policy has no additional private-seed argument; unrestricted randomized or general filtration policies remain separate. The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Teaching dependencies
BanditRL.OnlineLearning.expectedFixedMinimum_eq_variance, BanditRL.OnlineLearning.iid_cumulative_prediction_decomposition, BanditRL.OnlineLearning.history_policy_independent
Exact Lean statement
theorem history_policy_expectedFixed_excess {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) (policy : (t : ℕ) → ((↑(Finset.range t) : Type) → ℝ) → ℝ) (hp : ∀ t, Measurable (policy t)) (hpb : ∀ t z, (∀ i, z i ∈ Set.Icc (0 : ℝ) 1) → policy t z ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : expectedFixedRegret μ Y (fun t ω => policy t (fun i => Y i ω)) T = (∑ t ∈ Finset.range T, ∫ ω, (policy t (fun i => Y i ω) - ∫ ω, Y 0 ω ∂μ)^2 ∂μ) ∧ 0 ≤ expectedFixedRegret μ Y (fun t ω => policy t (fun i => Y i ω)) T
Mathematics ↔ Lean

Apply the benchmark to the actual past-mean predictor

Lean declarationBanditRL.OnlineLearning.meanPredict_expectedFixed_excess

Compiled

Plain-English statement. The existing half-initialized strict-past mean predictor satisfies the expected excess identity under IID interval-valued observations.

Mathematical reading. The existing half-initialized strict-past mean predictor satisfies the expected excess identity under IID interval-valued observations.
Intuition
A fixed population benchmark lets the expected square loss expose the remaining prediction error.
Why it is needed
Connect the literal benchmark to the existing variance and causal-independence primitives.
Place in the proof
Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.
Proof and Lean reading notes
Proof idea
On the joint almost-sure support event, meanPredict_mem gives feasibility. Existing measurability supplies a genuine random prediction, and boundedness yields L2. Existing meanPredict_independent derives current-target independence from the strict-past construction and mutually independent observations. Substitute these producers into the cumulative square identity and replace the fixed minimum by Tv.
Lean reading notes
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. T=0 is an explicit empty-prefix extension; it does not assert uniqueness. The predictor is already defined elsewhere in the accepted library; pp. 1–2 do not specify this algorithm. This is a derived specialization, with no convergence rate or asymptotic success claim. The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Teaching dependencies
BanditRL.OnlineLearning.expectedFixedMinimum_eq_variance, BanditRL.OnlineLearning.iid_cumulative_prediction_decomposition, BanditRL.OnlineLearning.meanPredict_mem, BanditRL.OnlineLearning.meanPredict_measurable, BanditRL.OnlineLearning.meanPredict_independent
Exact Lean statement
theorem meanPredict_expectedFixed_excess {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) (T : ℕ) : expectedFixedRegret μ Y (fun t ω => meanPredict (fun i => Y i ω) t) T = (∑ t ∈ Finset.range T, ∫ ω, (meanPredict (fun i => Y i ω) t - ∫ ω, Y 0 ω ∂μ)^2 ∂μ) ∧ 0 ≤ expectedFixedRegret μ Y (fun t ω => meanPredict (fun i => Y i ω) t) T
Mathematics ↔ Lean

Locate the known-distribution oracle benchmark

Lean declarationBanditRL.OnlineLearning.constant_mean_expectedFixed_excess_zero

Compiled

Plain-English statement. Predicting the population mean at every round attains exactly the expected fixed-comparator benchmark.

Mathematical reading. Predicting the population mean at every round attains exactly the expected fixed-comparator benchmark.
Intuition
A fixed population benchmark lets the expected square loss expose the remaining prediction error.
Why it is needed
Connect the literal benchmark to the existing variance and causal-independence primitives.
Place in the proof
Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.
Proof and Lean reading notes
Proof idea
Use the feasible-mean result. The prefix decomposition at u=m gives expected loss Tv, while expectedFixedMinimum_eq_variance gives the same benchmark Tv. Subtract to obtain zero. Identical law is sufficient; mutual independence is not needed for this constant predictor comparison.
Lean reading notes
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. T=0 is an explicit empty-prefix extension; it does not assert uniqueness. The population mean depends on the unknown distribution. This is the known-law oracle from the source prose, not an algorithm supplied with information unavailable to the learner. The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Teaching dependencies
BanditRL.OnlineLearning.expected_fixed_prefix_minimum, BanditRL.OnlineLearning.expected_fixed_prefix_decomposition, BanditRL.OnlineLearning.expectedFixedMinimum_eq_variance
Exact Lean statement
theorem constant_mean_expectedFixed_excess_zero {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : (∫ ω, Y 0 ω ∂μ) ∈ Set.Icc (0 : ℝ) 1 ∧ expectedFixedRegret μ Y (fun _ _ => ∫ ω, Y 0 ω ∂μ) T = 0
Mathematics ↔ Lean

Relate cumulative and average excess at positive horizons

Lean declarationBanditRL.OnlineLearning.history_policy_normalized_expectedFixed_excess

Compiled

Plain-English statement. For each positive finite horizon, average excess is cumulative expected fixed-comparator excess divided by T.

Mathematical reading. For each positive finite horizon, average excess is cumulative expected fixed-comparator excess divided by T.
Intuition
A fixed population benchmark lets the expected square loss expose the remaining prediction error.
Why it is needed
Connect the literal benchmark to the existing variance and causal-independence primitives.
Place in the proof
Derived support for the guessing-game benchmark on Orabona v10, printed pp. 1–2 / PDF pp. 13–14. The eight declarations are not eight separately printed theorems.
Proof and Lean reading notes
Proof idea
Unfold expectedFixedRegret and replace expectedFixedMinimum by Tv. Apply the shared normalized_excess algebraic identity, using positive T to justify the nonzero denominator. The policy independence, measurability and legal-feasibility premises retain the policy context but are not needed by this final algebraic step.
Lean reading notes
Use a probability measure, measurable observations with one common law, and almost-sure support in [0,1]. Write m = E[Y_0] and v = Var(Y_0). Source round t+1 is Lean index t. The fixed comparator u is chosen once, outside expectation. This normalization theorem requires T>0. At T=0, total real division would make the left side -v and the right side 0, so no general zero-horizon extension is claimed. No statement about a limit follows from this finite equality alone. The source success criterion and any proof that a particular learner achieves it remain distinct. The expected fixed benchmark differs from the expected hindsight minimum. Nonnegativity needs the causal producer assumptions; arbitrary supplied predictions may have negative excess. These finite identities do not prove sublinear excess, an ordinary regret limit, or coverage of every randomized or filtration-adapted strategy.
Teaching dependencies
BanditRL.OnlineLearning.expectedFixedMinimum_eq_variance, BanditRL.OnlineLearning.normalized_excess
Exact Lean statement
theorem history_policy_normalized_expectedFixed_excess {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) (policy : (t : ℕ) → ((↑(Finset.range t) : Type) → ℝ) → ℝ) (hp : ∀ t, Measurable (policy t)) (hpb : ∀ t z, (∀ i, z i ∈ Set.Icc (0 : ℝ) 1) → policy t z ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) (hT : 0 < T) : (∫ ω, ∑ t ∈ Finset.range T, (policy t (fun i => Y i ω) - Y t ω)^2 ∂μ) / (T : ℝ) - variance (Y 0) μ = expectedFixedRegret μ Y (fun t ω => policy t (fun i => Y i ω)) T / (T : ℝ)
Mathematics ↔ Lean

Regroup independent seed and target blocks

Lean declarationBanditRL.OnlineLearning.independent_private_seed_pair

Compiled

Plain-English statement. If S is independent of (X,Y) and X is independent of Y, then (S,X) is independent of Y.

Mathematical reading. If S is independent of (X,Y) and X is independent of Y, then (S,X) is independent of Y.
Intuition
A private random tape enlarges the past while preserving independence from the next unseen target.
Why it is needed
Turn a concrete information restriction into the premises of the accepted expected-square benchmark.
Place in the proof
Derived private-tape extension of the finite expected guessing-game benchmark in Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), printed pp. 1–2 / PDF pp. 13–14. Those pages do not give a private-seed or sigma-field theorem or proof.
Proof and Lean reading notes
Proof idea
Project joint seed independence to get independence of S and X. Express each independence as a product pushforward law. Reassociate the product measure from S times (X times Y) to (S times X) times Y, using the independence of X and Y. The resulting factorization is exactly the claimed independence.
Lean reading notes
This lemma permits arbitrary measurable codomains for S, X and Y, with all three maps measurable. It assumes seed independence from the joint pair, not three pairwise independence statements. No common law, support bound or target sequence is required. This covers the specified whole-process-independent private tape and raw generated information. It does not represent every randomized kernel, arbitrary side information, completed sigma-fields or merely almost-everywhere predictable versions. It gives finite identities, without an asymptotic rate or ordinary-regret success claim. No expectation/minimum interchange is asserted.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem independent_private_seed_pair {Ω : Type u} {Seed : Type v} {Χ : Type w} {Ζ : Type z} [MeasurableSpace Ω] [MeasurableSpace Seed] [MeasurableSpace Χ] [MeasurableSpace Ζ] (μ : Measure Ω) [IsProbabilityMeasure μ] (S : Ω → Seed) (X : Ω → Χ) (Y : Ω → Ζ) (hS : Measurable S) (hX : Measurable X) (hY : Measurable Y) (hseed : IndepFun S (fun ω => (X ω, Y ω)) μ) (hXY : IndepFun X Y μ) : IndepFun (fun ω => (S ω, X ω)) Y μ
Mathematics ↔ Lean

Join the private tape to the strict past

Lean declarationBanditRL.OnlineLearning.private_seed_past_independent

Compiled

Plain-English statement. The complete private tape together with past observations is independent of the current target.

Mathematical reading. The complete private tape together with past observations is independent of the current target.
Intuition
A private random tape enlarges the past while preserving independence from the next unseen target.
Why it is needed
Turn a concrete information restriction into the premises of the accepted expected-square benchmark.
Place in the proof
Derived private-tape extension of the finite expected guessing-game benchmark in Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), printed pp. 1–2 / PDF pp. 13–14. Those pages do not give a private-seed or sigma-field theorem or proof.
Proof and Lean reading notes
Proof idea
Apply mutual independence to the disjoint finite index sets {0,...,t-1} and {t}, then project the singleton block to Y_t. Project whole-process seed independence to the joint past-and-current block. Apply independent_private_seed_pair to regroup S with the past. This produces the joint block required by a randomized policy.
Lean reading notes
Work on a probability space with measurable real targets Y_t and a measurable private tape S. The target family is mutually independent, and S is independent of the entire target sequence as one random element. Independence from each coordinate separately is insufficient. Lean t corresponds to source round t+1. Identical laws and support bounds are unnecessary for this independence theorem. The direct finite-block ingredient is Mathlib iIndepFun.indepFun_finset. This covers the specified whole-process-independent private tape and raw generated information. It does not represent every randomized kernel, arbitrary side information, completed sigma-fields or merely almost-everywhere predictable versions. It gives finite identities, without an asymptotic rate or ordinary-regret success claim. No expectation/minimum interchange is asserted.
Teaching dependencies
BanditRL.OnlineLearning.independent_private_seed_pair
Exact Lean statement
theorem private_seed_past_independent {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (t : ℕ) : IndepFun (fun ω => (S ω, fun i : (↑(Finset.range t) : Type) => Y i ω)) (Y t) μ
Mathematics ↔ Lean

Show that generated information grows

Lean declarationBanditRL.OnlineLearning.privateSeedPastInformation_monotone

Compiled

Plain-English statement. The raw information generated by the seed and finite strict history is increasing with time.

Mathematical reading. The raw information generated by the seed and finite strict history is increasing with time.
Intuition
Keeping the same seed and adding past coordinates can only enlarge the generated information.
Why it is needed
Identify the increasing information generated by the seed and strict history, separately from stochastic independence.
Place in the proof
Derived private-tape extension of the finite expected guessing-game benchmark in Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), printed pp. 1–2 / PDF pp. 13–14. Those pages do not give a private-seed or sigma-field theorem or proof.
Proof and Lean reading notes
Proof idea
Restrict a length-t history to its first s coordinates while retaining the same seed. This restriction is measurable. The earlier seed/history map factors through the later one, so monotonicity of comap and its composition law give inclusion of the generated measurable spaces.
Lean reading notes
The symbol sigma denotes the exact comap-generated measurable space in privateSeedPastInformation. This deterministic statement assumes a measurable-space structure only on Seed. It needs no ambient measurable space on Omega, measure, measurable seed/targets or independence. The subordinate F_t in the excess theorem need not itself be increasing. This is an order property of raw generated information. It establishes no current-target independence by itself and uses no completion or almost-everywhere replacement. The stochastic independence and finite excess claims require their separate hypotheses.
Teaching dependencies
BanditRL.OnlineLearning.privateSeedPastInformation
Exact Lean statement
theorem privateSeedPastInformation_monotone {Ω : Type u} {Seed : Type v} [MeasurableSpace Seed] (S : Ω → Seed) (Y : ℕ → Ω → ℝ) : Monotone (privateSeedPastInformation S Y)
Mathematics ↔ Lean

Pass independence to subordinate information

Lean declarationBanditRL.OnlineLearning.predictable_private_seed_independent

Compiled

Plain-English statement. Any prediction exactly measurable in information contained in the seed and strict past inherits current-target independence.

Mathematical reading. Any prediction exactly measurable in information contained in the seed and strict past inherits current-target independence.
Intuition
A private random tape enlarges the past while preserving independence from the next unseen target.
Why it is needed
Turn a concrete information restriction into the premises of the accepted expected-square benchmark.
Place in the proof
Derived private-tape extension of the finite expected guessing-game benchmark in Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), printed pp. 1–2 / PDF pp. 13–14. Those pages do not give a private-seed or sigma-field theorem or proof.
Proof and Lean reading notes
Proof idea
Use private_seed_past_independent to obtain independence of the generated information and the sigma-field generated by Y_t. Measurability gives sigma(P) contained in F, which is contained in G_t. Restrict independence along this inclusion, then return from sigma-field independence to independence of random variables.
Lean reading notes
Work on a probability space with measurable real targets Y_t and a measurable private tape S. The target family is mutually independent, and S is independent of the entire target sequence as one random element. Independence from each coordinate separately is insufficient. Lean t corresponds to source round t+1. F is an arbitrary measurable-space structure on Omega with F ≤ G_t. Exact Measurable[F] P is assumed. Neither current independence nor an L2 bound is a premise. This covers the specified whole-process-independent private tape and raw generated information. It does not represent every randomized kernel, arbitrary side information, completed sigma-fields or merely almost-everywhere predictable versions. It gives finite identities, without an asymptotic rate or ordinary-regret success claim. No expectation/minimum interchange is asserted.
Teaching dependencies
BanditRL.OnlineLearning.private_seed_past_independent, BanditRL.OnlineLearning.privateSeedPastInformation
Exact Lean statement
theorem predictable_private_seed_independent {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (t : ℕ) (F : MeasurableSpace Ω) (hF : F ≤ privateSeedPastInformation S Y t) (P : Ω → ℝ) (hP : Measurable[F] P) : IndepFun P (Y t) μ
Mathematics ↔ Lean

Apply a measurable seed-and-history policy

Lean declarationBanditRL.OnlineLearning.randomized_history_policy_independent

Compiled

Plain-English statement. A jointly measurable function of the private tape and finite strict history is independent of the current target.

Mathematical reading. A jointly measurable function of the private tape and finite strict history is independent of the current target.
Intuition
A private random tape enlarges the past while preserving independence from the next unseen target.
Why it is needed
Turn a concrete information restriction into the premises of the accepted expected-square benchmark.
Place in the proof
Derived private-tape extension of the finite expected guessing-game benchmark in Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), printed pp. 1–2 / PDF pp. 13–14. Those pages do not give a private-seed or sigma-field theorem or proof.
Proof and Lean reading notes
Proof idea
The seed/history block is independent of Y_t by private_seed_past_independent. Compose that block with the jointly measurable policy p_t and compose the current target with the identity map. Independence is preserved under these measurable maps.
Lean reading notes
Work on a probability space with measurable real targets Y_t and a measurable private tape S. The target family is mutually independent, and S is independent of the entire target sequence as one random element. Independence from each coordinate separately is insufficient. Lean t corresponds to source round t+1. Each p_t is jointly measurable on Seed times the finite history space. There is one private tape, not an assumption of a fresh independent seed every round. At t=0 the empty history still permits dependence on S. No feasibility bound or common target law is required here. This covers the specified whole-process-independent private tape and raw generated information. It does not represent every randomized kernel, arbitrary side information, completed sigma-fields or merely almost-everywhere predictable versions. It gives finite identities, without an asymptotic rate or ordinary-regret success claim. No expectation/minimum interchange is asserted.
Teaching dependencies
BanditRL.OnlineLearning.private_seed_past_independent
Exact Lean statement
theorem randomized_history_policy_independent {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (policy : (t : ℕ) → (Seed × ((↑(Finset.range t) : Type) → ℝ)) → ℝ) (hp : ∀ t, Measurable (policy t)) (t : ℕ) : IndepFun (fun ω => policy t (S ω, fun i => Y i ω)) (Y t) μ
Mathematics ↔ Lean

Produce finite excess from actual information

Lean declarationBanditRL.OnlineLearning.predictable_private_seed_expectedFixed_excess

Compiled

Plain-English statement. Exactly measurable feasible predictions in subordinate seed/past information satisfy the finite expected fixed-comparator excess identity.

Mathematical reading. Exactly measurable feasible predictions in subordinate seed/past information satisfy the finite expected fixed-comparator excess identity.
Intuition
A private random tape enlarges the past while preserving independence from the next unseen target.
Why it is needed
Turn a concrete information restriction into the premises of the accepted expected-square benchmark.
Place in the proof
Derived private-tape extension of the finite expected guessing-game benchmark in Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), printed pp. 1–2 / PDF pp. 13–14. Those pages do not give a private-seed or sigma-field theorem or proof.
Proof and Lean reading notes
Proof idea
Measurability of S and all Y_t makes G_t a subspace of the ambient measurable structure. Combining this inclusion with F_t ≤ G_t and exact F_t-measurability gives ambient measurability of P_t. Its almost-sure interval bound then supplies L2. The subordinate-information independence theorem derives P_t independent of Y_t. Apply iid_cumulative_prediction_decomposition and replace the literal fixed minimum by Tv. The resulting finite sum of expected squares is nonnegative.
Lean reading notes
Work on a probability space with measurable real targets Y_t and a measurable private tape S. The target family is mutually independent, and S is independent of the entire target sequence as one random element. Independence from each coordinate separately is insufficient. Lean t corresponds to source round t+1. For the excess endpoints additionally assume all targets have the law of Y_0 and lie in [0,1] almost surely. Write m = E[Y_0], v = Var(Y_0), B_T = inf over u in [0,1] of E sum_{t<T}(u-Y_t)^2, and Delta_T = E sum_{t<T}(P_t-Y_t)^2 - B_T. Here the existing minimum theorem gives B_T = Tv. All time-indexed assumptions hold for every natural t; T=0 is included. Require each P_t to be exactly F_t-measurable and almost surely feasible. F_t ≤ G_t is required for every t, but monotonicity of F_t is not. L2 and current-target independence are derived, not supplied. This covers the specified whole-process-independent private tape and raw generated information. It does not represent every randomized kernel, arbitrary side information, completed sigma-fields or merely almost-everywhere predictable versions. It gives finite identities, without an asymptotic rate or ordinary-regret success claim. No expectation/minimum interchange is asserted. Every expectation in this private-tape extension is taken over the joint law of the tape and target process. No conclusion conditional on a fixed tape value is asserted.
Teaching dependencies
BanditRL.OnlineLearning.privateSeedPastInformation, BanditRL.OnlineLearning.predictable_private_seed_independent, BanditRL.OnlineLearning.expectedFixedRegret, BanditRL.OnlineLearning.expectedFixedMinimum_eq_variance, BanditRL.OnlineLearning.iid_cumulative_prediction_decomposition
Exact Lean statement
theorem predictable_private_seed_expectedFixed_excess {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (F : ℕ → MeasurableSpace Ω) (hF : ∀ t, F t ≤ privateSeedPastInformation S Y t) (prediction : ℕ → Ω → ℝ) (hP : ∀ t, Measurable[F t] (prediction t)) (hpb : ∀ t, ∀ᵐ ω ∂μ, prediction t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : expectedFixedRegret μ Y prediction T = (∑ t ∈ Finset.range T, ∫ ω, (prediction t ω - ∫ ω, Y 0 ω ∂μ)^2 ∂μ) ∧ 0 ≤ expectedFixedRegret μ Y prediction T
Mathematics ↔ Lean

Derive excess for policies feasible on legal histories

Lean declarationBanditRL.OnlineLearning.randomized_history_policy_expectedFixed_excess

Compiled

Plain-English statement. A jointly measurable private-tape policy feasible for every seed and every legal history satisfies the same finite excess identity.

Mathematical reading. A jointly measurable private-tape policy feasible for every seed and every legal history satisfies the same finite excess identity.
Intuition
A private random tape enlarges the past while preserving independence from the next unseen target.
Why it is needed
Turn a concrete information restriction into the premises of the accepted expected-square benchmark.
Place in the proof
Derived private-tape extension of the finite expected guessing-game benchmark in Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (21 June 2026), printed pp. 1–2 / PDF pp. 13–14. Those pages do not give a private-seed or sigma-field theorem or proof.
Proof and Lean reading notes
Proof idea
Take the countable intersection of the almost-sure target-support events. On that event every finite observed history lies in the legal interval cube, so policy feasibility gives the actual almost-sure prediction bound. Joint policy measurability composed with the generating map gives exact G_t-measurability. Set F_t = G_t and invoke predictable_private_seed_expectedFixed_excess. The direct endpoint consumer is this subordinate-information theorem.
Lean reading notes
Work on a probability space with measurable real targets Y_t and a measurable private tape S. The target family is mutually independent, and S is independent of the entire target sequence as one random element. Independence from each coordinate separately is insufficient. Lean t corresponds to source round t+1. For the excess endpoints additionally assume all targets have the law of Y_0 and lie in [0,1] almost surely. Write m = E[Y_0], v = Var(Y_0), B_T = inf over u in [0,1] of E sum_{t<T}(u-Y_t)^2, and Delta_T = E sum_{t<T}(P_t-Y_t)^2 - B_T. Here the existing minimum theorem gives B_T = Tv. All time-indexed assumptions hold for every natural t; T=0 is included. Policy feasibility quantifies over every seed and every history whose coordinates lie in [0,1]; it imposes no bound on illegal real histories. This adapter directly consumes the preceding excess theorem, not randomized_history_policy_independent. This covers the specified whole-process-independent private tape and raw generated information. It does not represent every randomized kernel, arbitrary side information, completed sigma-fields or merely almost-everywhere predictable versions. It gives finite identities, without an asymptotic rate or ordinary-regret success claim. No expectation/minimum interchange is asserted. Every expectation in this private-tape extension is taken over the joint law of the tape and target process. No conclusion conditional on a fixed tape value is asserted.
Teaching dependencies
BanditRL.OnlineLearning.privateSeedPastInformation, BanditRL.OnlineLearning.predictable_private_seed_expectedFixed_excess
Exact Lean statement
theorem randomized_history_policy_expectedFixed_excess {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (policy : (t : ℕ) → (Seed × ((↑(Finset.range t) : Type) → ℝ)) → ℝ) (hp : ∀ t, Measurable (policy t)) (hpb : ∀ t s z, (∀ i, z i ∈ Set.Icc (0 : ℝ) 1) → policy t (s, z) ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : expectedFixedRegret μ Y (fun t ω => policy t (S ω, fun i => Y i ω)) T = (∑ t ∈ Finset.range T, ∫ ω, (policy t (S ω, fun i => Y i ω) - ∫ ω, Y 0 ω ∂μ)^2 ∂μ) ∧ 0 ≤ expectedFixedRegret μ Y (fun t ω => policy t (S ω, fun i => Y i ω)) T
Mathematics ↔ Lean

A centered total is sublinear exactly when its average excess vanishes

Lean declarationBanditRL.OnlineLearning.centered_total_sublinear_iff_average

Compiled

Plain-English statement. For any real total sequence A and real c, the signed residual A_T-Tc is o(T) exactly when A_T/T-c tends to zero.

Mathematical reading. For any real total sequence A and real c, the signed residual A_T-Tc is o(T) exactly when A_T/T-c tends to zero.
Intuition
Center the cumulative quantity, then normalize at positive horizons.
Why it is needed
One shared adapter connects both the policy criterion and the actual mean-learner guarantee to the source success definition.
Place in the proof
Shared algebraic extension of equations (1.1) and (1.2), with two production consumers.
Proof and Lean reading notes
Proof idea
Use the Mathlib little-o quotient criterion and the existing normalization identity eventually for positive horizons.
Lean reading notes
No sign, monotonicity, convergence hypothesis, A_0=0 or c=0 is assumed. The normalization identity need hold only eventually for T>0. This is an equivalence, not a claim that arbitrary totals converge. It is a standard asymptotic adapter, without a novelty claim.
Teaching dependencies
BanditRL.OnlineLearning.normalized_excess
Exact Lean statement
theorem centered_total_sublinear_iff_average (total : ℕ → ℝ) (c : ℝ) : (fun T => total T - (T : ℝ) * c) =o[atTop] (fun T : ℕ => (T : ℝ)) ↔ Tendsto (fun T => total T / (T : ℝ) - c) atTop (nhds (0 : ℝ))
Mathematics ↔ Lean

A private-seed policy succeeds exactly when its average mean-square error vanishes

Lean declarationBanditRL.OnlineLearning.randomized_history_policy_success_iff

Compiled

Plain-English statement. In the explicit causal private-seed model, expected-fixed excess is nonnegative at every horizon. Sublinear excess, average expected loss converging to the variance, and vanishing Cesaro mean squared deviation from the population mean are equivalent.

Mathematical reading. In the explicit causal private-seed model, expected-fixed excess is nonnegative at every horizon. Sublinear excess, average expected loss converging to the variance, and vanishing Cesaro mean squared deviation from the population mean are equivalent.
Intuition
The finite sum-of-squares identity translates the loss criterion into average estimation error.
Why it is needed
It states exactly when an admissible randomized policy succeeds.
Place in the proof
Derived private-seed specialization of the source stochastic-success discussion.
Proof and Lean reading notes
Proof idea
The actual causal policy produces nonnegative excess and its finite sum-of-squares identity. Normalize that identity and apply the centered-total adapter.
Lean reading notes
Fix one infinite process on a probability space. Each real target is measurable, has the law of the first target, and lies in [0,1] almost surely. Square integrability is derived from this support. The expected-fixed comparator chooses one deterministic u in [0,1] before taking expectation. Its infimum is attained at the population mean m and equals T times the variance v. For the policy criterion, the targets are jointly independent. A measurable private seed is independent of the whole target process. At every time, the policy is jointly measurable in the seed and strict finite history, and feasible for every seed on every legal unit-interval history. The process, seed and policy are fixed before all horizons. The theorem characterizes success rather than asserting that every such policy succeeds. Source rounds 1 through T correspond to Lean indices 0 through T-1. Division is total at T=0, but the normalization identity is used only at eventually positive horizons. Little-o controls signed magnitude; ordinary convergence of expected excess is separate from the adversarial eventual-upper NoRegret predicate. A persistent independent private bit has excess T/4 and fails the criterion. Vanishing Cesaro mean squared error does not assert individual-time L2 convergence. The policy criterion covers explicit jointly measurable private-tape/strict-history policies. Representation of general stochastic kernels, completed information and almost-everywhere factorization remains separate. These results concern expectations, without high-probability, almost-sure or minimax guarantees. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total remains unknown.
Teaching dependencies
BanditRL.OnlineLearning.centered_total_sublinear_iff_average, BanditRL.OnlineLearning.randomized_history_policy_expectedFixed_excess, BanditRL.OnlineLearning.expectedFixedMinimum_eq_variance, BanditRL.OnlineLearning.normalized_excess
Exact Lean statement
theorem randomized_history_policy_success_iff {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (policy : (t : ℕ) → (Seed × ((↑(Finset.range t) : Type) → ℝ)) → ℝ) (hp : ∀ t, Measurable (policy t)) (hpb : ∀ t s z, (∀ i, z i ∈ Set.Icc (0 : ℝ) 1) → policy t (s, z) ∈ Set.Icc (0 : ℝ) 1) : let prediction := fun t ω => policy t (S ω, fun i => Y i ω) (∀ T, 0 ≤ expectedFixedRegret μ Y prediction T) ∧ ((fun T => expectedFixedRegret μ Y prediction T) =o[atTop] (fun T : ℕ => (T : ℝ)) ↔ Tendsto (fun T => (∫ ω, ∑ t ∈ Finset.range T, (prediction t ω - Y t ω)^2 ∂μ) / (T : ℝ) - variance (Y 0) μ) atTop (nhds (0 : ℝ))) ∧ (Tendsto (fun T => (∫ ω, ∑ t ∈ Finset.range T, (prediction t ω - Y t ω)^2 ∂μ) / (T : ℝ) - variance (Y 0) μ) atTop (nhds (0 : ℝ)) ↔ Tendsto (fun T => (∑ t ∈ Finset.range T, ∫ ω, (prediction t ω - ∫ ω, Y 0 ω ∂μ)^2 ∂μ) / (T : ℝ)) atTop (nhds (0 : ℝ)))
Mathematics ↔ Lean

Integrate the sample-mean regret bound without an independence assumption

Lean declarationBanditRL.OnlineLearning.meanPredict_expectedFixed_upper

Compiled

Plain-English statement. For every positive horizon, the actual half-initialized mean learner has expected-fixed excess at most 4+4 log T under bounded common-law targets, even when the observations are dependent.

Mathematical reading. For every positive horizon, the actual half-initialized mean learner has expected-fixed excess at most 4+4 log T under bounded common-law targets, even when the observations are dependent.
Intuition
Compare to the fixed population mean before integrating the pathwise regret bound.
Why it is needed
The deterministic source bound supplies an expected upper bound without a temporal independence premise.
Place in the proof
Derived application of Theorem 1.3 through the fixed-mean comparison route.
Proof and Lean reading notes
Proof idea
The pathwise empirical minimum is at most fixed population-mean loss. Compare before integration, derive square integrability, then use expected fixed loss at the mean=Tv.
Lean reading notes
Fix one infinite process on a probability space. Each real target is measurable, has the law of the first target, and lies in [0,1] almost surely. Square integrability is derived from this support. The expected-fixed comparator chooses one deterministic u in [0,1] before taking expectation. Its infimum is attained at the population mean m and equals T times the variance v. The actual learner starts at 1/2 and then averages exactly the strictly earlier observations. It takes no population mean, law or horizon as input. The expected upper bound requires only common marginal laws; the zero-limit conclusion additionally requires joint independence. Source rounds 1 through T correspond to Lean indices 0 through T-1. Division is total at T=0, but the normalization identity is used only at eventually positive horizons. Little-o controls signed magnitude; ordinary convergence of expected excess is separate from the adversarial eventual-upper NoRegret predicate. This theorem supplies an upper bound only. The repeated-target binary canary has two-round excess -1/4, so nonnegativity and zero-limit success cannot be inferred for dependent streams.
Teaching dependencies
BanditRL.OnlineLearning.theorem_1_3, BanditRL.OnlineLearning.empiricalMean_minimizes, BanditRL.OnlineLearning.expected_fixed_prefix_decomposition, BanditRL.OnlineLearning.expectedFixedMinimum_eq_variance
Exact Lean statement
theorem meanPredict_expectedFixed_upper {Ω : Type u} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) (hT : 0 < T) : expectedFixedRegret μ Y (fun t ω => meanPredict (fun i => Y i ω) t) T ≤ 4 + 4 * Real.log T
Mathematics ↔ Lean

The sample-mean learner attains the stochastic benchmark under IID

Lean declarationBanditRL.OnlineLearning.meanPredict_iid_success

Compiled

Plain-English statement. For the actual learner starting at 1/2 and then using the strict-past empirical mean, normalized expected-fixed excess tends to zero under IID; total expected-fixed excess is o(T).

Mathematical reading. For the actual learner starting at 1/2 and then using the strict-past empirical mean, normalized expected-fixed excess tends to zero under IID; total expected-fixed excess is o(T).
Intuition
IID supplies the lower bound while the pathwise theorem supplies the upper envelope.
Why it is needed
It proves success for the actual unknown-law learner without assuming convergence.
Place in the proof
Derived stochastic consequence combining the source pathwise guarantee with the causal IID identity.
Proof and Lean reading notes
Proof idea
Combine the actual IID causal nonnegative lower bound with the integrated upper. The logarithmic ratio vanishes; a squeeze gives the ordinary zero limit, and the same generic adapter gives little-o.
Lean reading notes
Fix one infinite process on a probability space. Each real target is measurable, has the law of the first target, and lies in [0,1] almost surely. Square integrability is derived from this support. The expected-fixed comparator chooses one deterministic u in [0,1] before taking expectation. Its infimum is attained at the population mean m and equals T times the variance v. The actual learner starts at 1/2 and then averages exactly the strictly earlier observations. It takes no population mean, law or horizon as input. The expected upper bound requires only common marginal laws; the zero-limit conclusion additionally requires joint independence. Source rounds 1 through T correspond to Lean indices 0 through T-1. Division is total at T=0, but the normalization identity is used only at eventually positive horizons. Little-o controls signed magnitude; ordinary convergence of expected excess is separate from the adversarial eventual-upper NoRegret predicate. This conclusion requires joint independence and supplies no convergence premise. The fair IID canary has variance 1/4 and two-round excess 1/4 while its normalized expected excess converges to zero. The policy criterion covers explicit jointly measurable private-tape/strict-history policies. Representation of general stochastic kernels, completed information and almost-everywhere factorization remains separate. These results concern expectations, without high-probability, almost-sure or minimax guarantees. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total remains unknown.
Teaching dependencies
BanditRL.OnlineLearning.meanPredict_expectedFixed_excess, BanditRL.OnlineLearning.meanPredict_expectedFixed_upper, BanditRL.OnlineLearning.centered_total_sublinear_iff_average
Exact Lean statement
theorem meanPredict_iid_success {Ω : Type u} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) : Tendsto (fun T => expectedFixedRegret μ Y (fun t ω => meanPredict (fun i => Y i ω) t) T / (T : ℝ)) atTop (nhds (0 : ℝ)) ∧ (fun T => expectedFixedRegret μ Y (fun t ω => meanPredict (fun i => Y i ω) t) T) =o[atTop] (fun T : ℕ => (T : ℝ))
Mathematics ↔ Lean

The fixed squared-loss identity holds for every real comparator

Lean declarationBanditRL.OnlineLearning.expected_square_decomposition

Compiled

Plain-English statement. Expand the square around the expectation. Integrability of the square and the mean follows from L2; the centered first moment vanishes.

Mathematical reading. Expand the square around the expectation. Integrability of the square and the mean follows from L2; the centered first moment vanishes.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
Expand the square around the expectation. Integrability of the square and the mean follows from L2; the centered first moment vanishes.
Lean reading notes
Probability space, real Y with MemLp Y 2 and arbitrary u∈ℝ; no boundedness or independence assumption. Comparator u=2 has loss5/2 for the positive-variance fair target. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: variance_eq_sub, variance_const_sub and integral_sub.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem expected_square_decomposition {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : Ω → ℝ) (hY : MemLp Y 2 μ) (u : ℝ) : (∫ ω, (u - Y ω)^2 ∂μ) = variance Y μ + (u - ∫ ω, Y ω ∂μ)^2
Mathematics ↔ Lean

Independent random predictions: the consumer identity

Lean declarationBanditRL.OnlineLearning.independent_prediction_square

Compiled

Plain-English statement. Apply the variance-of-difference formula to L2 P,Y. Given independence makes covariance zero; subtracting the target mean leaves its variance unchanged.

Mathematical reading. Apply the variance-of-difference formula to L2 P,Y. Given independence makes covariance zero; subtracting the target mean leaves its variance unchanged.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
Apply the variance-of-difference formula to L2 P,Y. Given independence makes covariance zero; subtracting the target mean leaves its variance unchanged.
Lean reading notes
Both real variables are L2 and their independence is a premise. This consumer does not establish that P is a causal algorithm; the separate mean/history producers do. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: variance_sub, IndepFun.covariance_eq_zero, variance_sub_const, variance_eq_sub and integral_sub.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem independent_prediction_square {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (P Y : Ω → ℝ) (hP : MemLp P 2 μ) (hY : MemLp Y 2 μ) (h : IndepFun P Y μ) : (∫ ω, (P ω - Y ω)^2 ∂μ) = (∫ ω, (P ω - ∫ ω, Y ω ∂μ)^2 ∂μ) + variance Y μ
Mathematics ↔ Lean

The real sample-mean prediction is independent of the current target

Lean declarationBanditRL.OnlineLearning.meanPredict_independent

Compiled

Plain-English statement. At zero the actual prediction is constant. Otherwise, joint independence separates the strict-past coordinate sum from the current target; measurable division preserves independence.

Mathematical reading. At zero the actual prediction is constant. Otherwise, joint independence separates the strict-past coordinate sum from the current target; measurable division preserves independence.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
At zero the actual prediction is constant. Otherwise, joint independence separates the strict-past coordinate sum from the current target; measurable division preserves independence.
Lean reading notes
One infinite measurable jointly independent target family on a probability space, every natural time t. No same-law or boundedness premise. The learner receives no population mean, law or horizon. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: iIndepFun.indepFun_sum_range_succ, IndepFun.comp and indepFun_const_left.
Teaching dependencies
BanditRL.OnlineLearning.meanPredict
Exact Lean statement
theorem meanPredict_independent {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (t : ℕ) : IndepFun (fun ω => meanPredict (fun i => Y i ω) t) (Y t) μ
Mathematics ↔ Lean

Measurability of the actual sample-mean learner

Lean declarationBanditRL.OnlineLearning.meanPredict_measurable

Compiled

Plain-English statement. The fixed initial branch is measurable. Each later branch is a finite sum of measurable targets divided by a fixed real scalar.

Mathematical reading. The fixed initial branch is measurable. Each later branch is a finite sum of measurable targets divided by a fixed real scalar.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
The fixed initial branch is measurable. Each later branch is a finite sum of measurable targets divided by a fixed real scalar.
Lean reading notes
Coordinate measurability only; no measure, probability, independence, same-law or support hypothesis. This is derived regularity, not a performance result. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual proof unfolds meanPredict/empiricalMean and derives measurability of the finite sums with fun_prop.
Teaching dependencies
BanditRL.OnlineLearning.meanPredict
Exact Lean statement
theorem meanPredict_measurable {Ω : Type*} [MeasurableSpace Ω] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (t : ℕ) : Measurable (fun ω => meanPredict (fun i => Y i ω) t)
Mathematics ↔ Lean

Legacy pointwise support implies square integrability

Lean declarationBanditRL.OnlineLearning.meanPredict_memLp

Compiled

Plain-English statement. Feasibility of every actual finite mean and its initial half bounds x_t between0 and1 at every sample point. Measurability and this bound yield L2 on a probability space.

Mathematical reading. Feasibility of every actual finite mean and its initial half bounds x_t between0 and1 at every sample point. Measurability and this bound yield L2 on a probability space.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
Feasibility of every actual finite mean and its initial half bounds x_t between0 and1 at every sample point. Measurability and this bound yield L2 on a probability space.
Lean reading notes
The exact legacy hypothesis is ∀iω, not AE support. It is a stronger API limitation; no independence or identical-law assumption is needed. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: memLp_of_bounded and Filter.Eventually.of_forall; actual shared meanPredict_measurable and meanPredict_mem.
Teaching dependencies
BanditRL.OnlineLearning.meanPredict_measurable, BanditRL.OnlineLearning.meanPredict_mem
Exact Lean statement
theorem meanPredict_memLp {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hb : ∀ t ω, Y t ω ∈ Set.Icc (0 : ℝ) 1) (t : ℕ) : MemLp (fun ω => meanPredict (fun i => Y i ω) t) 2 μ
Mathematics ↔ Lean

Legacy IID excess is nonnegative for this actual learner

Lean declarationBanditRL.OnlineLearning.iid_meanPredict_excess_nonneg

Compiled

Plain-English statement. Rewrite with the actual learner finite excess identity and sum the nonnegative integrals of squared estimation errors.

Mathematical reading. Rewrite with the actual learner finite excess identity and sum the nonnegative integrals of squared estimation errors.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
Rewrite with the actual learner finite excess identity and sum the nonnegative integrals of squared estimation errors.
Lean reading notes
Same infinite measurable, jointly independent, identically distributed process with ∀iω unit support. T0 gives zero. Expected nonnegativity is not a pathwise claim or an asymptotic rate. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: Finset.sum_nonneg and integral_nonneg, after actual shared iid_meanPredict_excess.
Teaching dependencies
BanditRL.OnlineLearning.iid_meanPredict_excess
Exact Lean statement
theorem iid_meanPredict_excess_nonneg {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t ω, Y t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : 0 ≤ (∫ ω, ∑ t ∈ Finset.range T, (meanPredict (fun i => Y i ω) t - Y t ω)^2 ∂μ) - T * variance (Y 0) μ
Mathematics ↔ Lean

The population mean is feasible and attains the fixed benchmark

Lean declarationBanditRL.OnlineLearning.source_mean_optimal

Compiled

Plain-English statement. Integrate the pointwise unit bounds to get mean feasibility. Substitute u=m in the generic square identity for attainment; its nonnegative extra square proves optimality for every real constant.

Mathematical reading. Integrate the pointwise unit bounds to get mean feasibility. Substitute u=m in the generic square identity for attainment; its nonnegative extra square proves optimality for every real constant.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
Integrate the pointwise unit bounds to get mean feasibility. Substitute u=m in the generic square identity for attainment; its nonnegative extra square proves optimality for every real constant.
Lean reading notes
Measurable pointwise-unit real Y on a probability space; no IID premise for this single-variable statement. The population mean is law dependent and used only as an analysis comparator, never as the unknown-law learner input. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: memLp_of_bounded, integral_mono, integral_nonneg and integrable_const; shared expected_square_decomposition.
Teaching dependencies
BanditRL.OnlineLearning.expected_square_decomposition
Exact Lean statement
theorem source_mean_optimal {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : Ω → ℝ) (hY : Measurable Y) (hb : ∀ ω, Y ω ∈ Set.Icc (0 : ℝ) 1) : (∫ ω, Y ω ∂μ) ∈ Set.Icc (0 : ℝ) 1 ∧ (∫ ω, ((∫ ω, Y ω ∂μ) - Y ω)^2 ∂μ) = variance Y μ ∧ ∀ u : ℝ, variance Y μ ≤ ∫ ω, (u - Y ω)^2 ∂μ
Mathematics ↔ Lean

A genuine scalar history policy is independent of the current target

Lean declarationBanditRL.OnlineLearning.history_policy_independent

Compiled

Plain-English statement. Joint coordinate independence separates range t from the singleton{t}. Compose the strict-past tuple with the given measurable scalar policy and select the current singleton coordinate.

Mathematical reading. Joint coordinate independence separates range t from the singleton{t}. Compose the strict-past tuple with the given measurable scalar policy and select the current singleton coordinate.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
Joint coordinate independence separates range t from the singleton{t}. Compose the strict-past tuple with the given measurable scalar policy and select the current singleton coordinate.
Lean reading notes
Any measurable policy ((↑range t)→ℝ)→ℝ, with measurable jointly independent targets and probability. No L2, support, identical-law or global policy bound is required here. Deterministic history composition does not represent every stochastic kernel. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: iIndepFun.indepFun_finset, IndepFun.comp and measurable_pi_apply.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem history_policy_independent {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (t : ℕ) (policy : ((↑(Finset.range t) : Type) → ℝ) → ℝ) (hp : Measurable policy) : IndepFun (fun ω => policy (fun i => Y i ω)) (Y t) μ
Mathematics ↔ Lean

Legacy history loss is at least the current-round variance

Lean declarationBanditRL.OnlineLearning.history_policy_loss_ge_variance

Compiled

Plain-English statement. Measurability and the two global unit bounds derive L2 for prediction and current target. The actual history-independence producer feeds the square identity; discard only the nonnegative mean-error integral.

Mathematical reading. Measurability and the two global unit bounds derive L2 for prediction and current target. The actual history-independence producer feeds the square identity; discard only the nonnegative mean-error integral.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
Measurability and the two global unit bounds derive L2 for prediction and current target. The actual history-independence producer feeds the square identity; discard only the nonnegative mean-error integral.
Lean reading notes
Exact stronger API: ∀iω target support and ∀z policy output in[0,1], including illegal history tuples. NO same-law premise; the benchmark is Var(Yt), not Var(Y0) without common law. Full randomized/completed-information source coverage remains required. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual Mathlib facts: measurable_pi_lambda, memLp_of_bounded and integral_nonneg; shared history_policy_independent and independent_prediction_square.
Teaching dependencies
BanditRL.OnlineLearning.history_policy_independent, BanditRL.OnlineLearning.independent_prediction_square
Exact Lean statement
theorem history_policy_loss_ge_variance {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (hb : ∀ t ω, Y t ω ∈ Set.Icc (0 : ℝ) 1) (t : ℕ) (policy : ((↑(Finset.range t) : Type) → ℝ) → ℝ) (hp : Measurable policy) (hpb : ∀ z, policy z ∈ Set.Icc (0 : ℝ) 1) : variance (Y t) μ ≤ ∫ ω, (policy (fun i => Y i ω) - Y t ω)^2 ∂μ
Mathematics ↔ Lean

Positive-horizon normalization is scalar arithmetic

Lean declarationBanditRL.OnlineLearning.normalized_excess

Compiled

Plain-English statement. Positive natural T has nonzero real coercion. Clear the denominator and use distributivity.

Mathematical reading. Positive natural T has nonzero real coercion. Clear the denominator and use distributivity.
Intuition
Read the exact assumptions before applying the shared proof.
Why it is needed
Publish the existing core proof with a source-qualified explanation and its actual API boundary.
Place in the proof
Orabona v10, 2026-06-21: Lemma1.2 is printed p.4 / PDF p.16, while the IID squared-loss motivation and Eq(1.1)/(1.2) are printed p.1 / PDF p.13. The initial-half strict-past mean learner is printed pp.3–4 / PDF pp.15–16. Source rounds1..T map to Lean0..T−1. One numbered lemma and eleven generic/derived/regularity/arithmetic APIs are represented here; these are not twelve numbered source results.
Proof and Lean reading notes
Proof idea
Positive natural T has nonzero real coercion. Clear the denominator and use distributivity.
Lean reading notes
Arbitrary real total A and variance parameter v, only T>0. It supplies no probability, algorithm, sign, convergence or rate. At T0 the left side is−v, the right side0, as the v=1/4 canary verifies. These twelve existing APIs retain their original assumptions. The pointwise target bounds and global all-history policy bounds are stronger than almost-sure support and feasibility on legal histories. General stochastic-kernel representation, completed information and almost-everywhere factorization remain separate. Chapter 1 and the book remain incomplete; the mandatory proof-leaf total is unknown. Actual proof uses nonzero real coercion from T>0, field_simp and ring; no probabilistic convergence fact.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem normalized_excess (total variance : ℝ) (T : ℕ) (hT : 0 < T) : total / T - variance = (total - T * variance) / T
Mathematics ↔ Lean

One bounded history policy agrees AE at every time

Lean declarationBanditRL.OnlineLearning.ae_predictable_exists_bounded_history_policy

Compiled

Plain-English statement. Choose each relative measurable version, factor through seed/strict past, and clip globally with projIcc. AE original feasibility makes clipping harmless; countable AE intersection gives one common event for all t.

Mathematical reading. Choose each relative measurable version, factor through seed/strict past, and clip globally with projIcc. AE original feasibility makes clipping harmless; countable AE intersection gives one common event for all t.
Intuition
A null-set modification can have a globally feasible causal version even when the original process is not pointwise predictable or everywhere bounded.
Why it is needed
Represent an AE-adapted process by a globally feasible policy on seed and history inputs.
Place in the proof
Orabona arXiv:1912.13213v10,2026-06-21, SHA cef4edfa97a6e063e53e9c532717c50aa156e5bc782ea49f969b3385011a1b17: IID squared-loss variance benchmark and Eq(1.1)/(1.2), printed1/PDF13; strict-past prediction distinction, printed3/PDF15. These three statements are derived causal/AE formalization infrastructure, not three numbered or printed theorems. Source round1 corresponds to Lean time0.
Proof and Lean reading notes
Proof idea
Choose each relative measurable version, factor through seed/strict past, and clip globally with projIcc. AE original feasibility makes clipping harmless; countable AE intersection gives one common event for all t.
Lean reading notes
Let H_t=(S,Y_{<t}). Under any ambient measure and any measurable seed space, assume F_t is below the comap of H_t, P_t is AE strongly measurable relative to F_t under that measure, and P_t lies in [0,1] almost everywhere. No ambient measurability of S or Y, probability, IID, monotonicity of F, or standard-Borel structure on Seed is required. The real output supplies the standard-Borel structure for factorization. Measurable versions factor through H_t and are projected to [0,1], giving measurable policies bounded on every seed/history input. They equal the original process on one common event for all natural times. Countable indexing makes this equivalent to AE equality at each time. Time 0 uses only the seed. This explicitly extends the source pathwise model to AE assumptions. The choice is classical and law-relative, with equality asserted only almost everywhere and no executable learner construction. Values on exceptional null samples may differ. General completed-information and universal kernel representation remain open. Actual proof ingredients include AEStronglyMeasurable.measurable_mk, Measurable.exists_eq_measurable_comp, projIcc and ae_all_iff.
Teaching dependencies
BanditRL.OnlineLearning.privateSeedPastInformation
Exact Lean statement
theorem ae_predictable_exists_bounded_history_policy {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) (Y : ℕ → Ω → ℝ) (S : Ω → Seed) (F : ℕ → MeasurableSpace Ω) (hF : ∀ t, F t ≤ privateSeedPastInformation S Y t) (prediction : ℕ → Ω → ℝ) (hP : ∀ t, AEStronglyMeasurable[F t] (prediction t) μ) (hpb : ∀ t, ∀ᵐ ω ∂μ, prediction t ω ∈ Set.Icc (0 : ℝ) 1) : ∃ policy : (t : ℕ) → (Seed × ((↑(Finset.range t) : Type) → ℝ)) → ℝ, (∀ t, Measurable (policy t)) ∧ (∀ t q, policy t q ∈ Set.Icc (0 : ℝ) 1) ∧ ∀ᵐ ω ∂μ, ∀ t, prediction t ω = policy t (S ω, fun i => Y i ω)
Mathematics ↔ Lean

AE predictable original predictions are independent of the current target

Lean declarationBanditRL.OnlineLearning.ae_predictable_private_seed_independent

Compiled

Plain-English statement. Apply the actual whole-stream seed/strict-past independence producer to the measurable version. IndepFun.congr transfers the conclusion to the original prediction, so current independence is produced rather than assumed.

Mathematical reading. Apply the actual whole-stream seed/strict-past independence producer to the measurable version. IndepFun.congr transfers the conclusion to the original prediction, so current independence is produced rather than assumed.
Intuition
Changing a random variable on a null set preserves independence. The measurable-version argument does not require bounded predictions.
Why it is needed
Derive current-target independence from the information available before its reveal.
Place in the proof
Orabona arXiv:1912.13213v10,2026-06-21, SHA cef4edfa97a6e063e53e9c532717c50aa156e5bc782ea49f969b3385011a1b17: IID squared-loss variance benchmark and Eq(1.1)/(1.2), printed1/PDF13; strict-past prediction distinction, printed3/PDF15. These three statements are derived causal/AE formalization infrastructure, not three numbered or printed theorems. Source round1 corresponds to Lean time0.
Proof and Lean reading notes
Proof idea
Apply the actual whole-stream seed/strict-past independence producer to the measurable version. IndepFun.congr transfers the conclusion to the original prediction, so current independence is produced rather than assumed.
Lean reading notes
On a probability space, assume measurable jointly independent real targets, a measurable seed independent of the whole infinite target process, a fixed natural time t, F below the seed/strict-past comap, and original P AE strongly measurable relative to F under the ambient measure. Then original P is independent of Y_t. Bounds, identical target laws, support and integrability are not premises. Whole-process seed independence cannot be replaced by pairwise independence. Time 0 is included; stopping times are not asserted. The proof uses an unbounded measurable version, the existing predictable_private_seed_independent producer and IndepFun.congr. It does not invoke the bounded-policy theorem or assume its feasibility premise. General completed-information and universal kernel representation remain open.
Teaching dependencies
BanditRL.OnlineLearning.predictable_private_seed_independent
Exact Lean statement
theorem ae_predictable_private_seed_independent {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (t : ℕ) (F : MeasurableSpace Ω) (hF : F ≤ privateSeedPastInformation S Y t) (P : Ω → ℝ) (hP : AEStronglyMeasurable[F] P μ) : IndepFun P (Y t) μ
Mathematics ↔ Lean

Original AE causal IID excess equals mean-square error

Lean declarationBanditRL.OnlineLearning.ae_predictable_private_seed_expectedFixed_excess

Compiled

Plain-English statement. Measurable seed/target histories lift relative AE measurability to the ambient field, and AE unit bounds yield L2. The new AE independence producer cancels the cross term. Substitute the attained expected fixed minimum T·Var(Y0), then sum nonnegative square integrals.

Mathematical reading. Measurable seed/target histories lift relative AE measurability to the ambient field, and AE unit bounds yield L2. The new AE independence producer cancels the cross term. Substitute the attained expected fixed minimum T·Var(Y0), then sum nonnegative square integrals.
Intuition
The original process pays the unavoidable variance plus its squared distance from the population mean; the mean is an analysis benchmark.
Why it is needed
Express the source IID variance benchmark exactly for the original AE process.
Place in the proof
Orabona arXiv:1912.13213v10,2026-06-21, SHA cef4edfa97a6e063e53e9c532717c50aa156e5bc782ea49f969b3385011a1b17: IID squared-loss variance benchmark and Eq(1.1)/(1.2), printed1/PDF13; strict-past prediction distinction, printed3/PDF15. These three statements are derived causal/AE formalization infrastructure, not three numbered or printed theorems. Source round1 corresponds to Lean time0.
Proof and Lean reading notes
Proof idea
Measurable seed/target histories lift relative AE measurability to the ambient field, and AE unit bounds yield L2. The new AE independence producer cancels the cross term. Substitute the attained expected fixed minimum T·Var(Y0), then sum nonnegative square integrals.
Lean reading notes
On a probability space, assume measurable jointly independent identically distributed targets with AE unit bounds, a measurable seed independent of the whole infinite target process, and F_t below seed/strict-past information. Original predictions are AE strongly measurable relative to F_t under the ambient measure and AE unit-valued. For this same infinite process and every natural T, expectedFixedRegret equals the sum of expected squared deviations from E[Y_0] and is nonnegative. The infimum over fixed unit comparators is outside expectation. The population mean attains that benchmark and is an analysis witness, not learner input. Ambient AE measurability, L2 integrability and current independence are derived. T=0 gives the empty-sum identity. The proof uses ae_predictable_private_seed_independent, expectedFixedMinimum_eq_variance and iid_cumulative_prediction_decomposition. It establishes no convergence, asymptotic success, rate or high-probability bound. General completed-information and universal kernel representation remain open.
Teaching dependencies
BanditRL.OnlineLearning.ae_predictable_private_seed_independent, BanditRL.OnlineLearning.expectedFixedMinimum_eq_variance, BanditRL.OnlineLearning.iid_cumulative_prediction_decomposition
Exact Lean statement
theorem ae_predictable_private_seed_expectedFixed_excess {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (F : ℕ → MeasurableSpace Ω) (hF : ∀ t, F t ≤ privateSeedPastInformation S Y t) (prediction : ℕ → Ω → ℝ) (hP : ∀ t, AEStronglyMeasurable[F t] (prediction t) μ) (hpb : ∀ t, ∀ᵐ ω ∂μ, prediction t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : expectedFixedRegret μ Y prediction T = (∑ t ∈ Finset.range T, ∫ ω, (prediction t ω - ∫ ω, Y 0 ω ∂μ)^2 ∂μ) ∧ 0 ≤ expectedFixedRegret μ Y prediction T
Mathematics ↔ Lean

A real version from ambient null augmentation

Lean declarationBanditRL.OnlineLearning.completed_measurable_real_exists_version

Compiled

Plain-English statement. Every real function measurable with respect to the stated ambient null augmentation of F has an F-measurable version equal to it almost everywhere.

Mathematical reading. Every real function measurable with respect to the stated ambient null augmentation of F has an F-measurable version equal to it almost everywhere.
Intuition
Countably many measurable representative bits recover one real-valued version. Only exceptional null samples may change.
Why it is needed
Supply the precise real-valued version needed by the causal adapters.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed pages 1 and 3 / PDF pages 13 and 15. This general measure-theory node supplies the version construction for three derived strict-past applications; it is not a printed book theorem.
Proof and Lean reading notes
Proof idea
Encode each real value by a countable Boolean sequence using a measurable embedding. Augmented measurability gives an F-measurable representative set for each coordinate. Their membership bits form an F-measurable sequence. Countable intersection makes that sequence equal the original code almost everywhere. Composing with the measurable left inverse, defined on every Boolean sequence, gives an F-measurable real version equal to P almost everywhere.
Lean reading notes
Write bar F for eventuallyMeasurableSpace F (ae mu): a set belongs to bar F exactly when it equals an F-measurable set almost everywhere under the ambient measure mu. This is the precise ambient null augmentation; no identification with completion of mu.trim F is asserted. Assume an arbitrary ambient measure on an arbitrary measurable sample space, a separately specified measurable space F on the same carrier, and a real P measurable from bar F. There is no probability, finiteness, F-below-ambient or standard-Borel assumption on the sample space. The real output supplies the standard-Borel structure. The result produces an actual F-measurable version, not an input witness. Mathlib ingredients include mapNatBool, measurableEmbedding, measurable_invFun, measurable_pi_iff, measurable_to_bool and ae_all_iff. No arbitrary-output-space version theorem is claimed.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem completed_measurable_real_exists_version {Ω : Type u} [MeasurableSpace Ω] (μ : Measure Ω) (F : MeasurableSpace Ω) (P : Ω → ℝ) (hP : @Measurable _ _ (eventuallyMeasurableSpace F (ae μ)) _ P) : ∃ version : Ω → ℝ, Measurable[F] version ∧ P =ᶠ[ae μ] version
Mathematics ↔ Lean

A bounded history policy from augmented information

Lean declarationBanditRL.OnlineLearning.completed_predictable_exists_bounded_history_policy

Compiled

Plain-English statement. Under the arbitrary-measure strict-past and AE unit assumptions below, a prediction process measurable from the augmented information fields has a measurable, globally bounded history-policy version on one common all-time AE event.

Mathematical reading. Under the arbitrary-measure strict-past and AE unit assumptions below, a prediction process measurable from the augmented information fields has a measurable, globally bounded history-policy version on one common all-time AE event.
Intuition
A causal version can be feasible on every history input even when the original process violates pointwise causality or feasibility on exceptional null samples.
Why it is needed
Convert augmented-information measurability into a single feasible history-policy family.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed pages 1 and 3 / PDF pages 13 and 15. This is an explicit derived application of the IID squared-loss or strict-past discussion, not a printed theorem. Printed round 1 corresponds to Lean time 0.
Proof and Lean reading notes
Proof idea
Apply the real-version theorem at each natural time. The F_t-measurable versions give relative AE strong measurability of the original process. The existing AE causal producer factors these versions through seed and strict past and projects their values to [0,1]. The policies are measurable and feasible on every seed/history input. A countable intersection gives one event on which the original process and this single policy family agree at every time.
Lean reading notes
Write bar F for eventuallyMeasurableSpace F (ae mu): a set belongs to bar F exactly when it equals an F-measurable set almost everywhere under the ambient measure mu. This is the precise ambient null augmentation; no identification with completion of mu.trim F is asserted. Under any ambient measure and any measurable seed space, put H_t=(S,Y_{<t}) and require F_t below its comap. Original real predictions P_t are measurable from bar F_t and unit-valued almost everywhere for each natural t. No ambient measurability of S or Y, probability, independence, identical laws, monotonicity of F, or standard-Borel structure on Seed is required. The output is one family of measurable policies, globally unit-valued on every seed/history input, equal to the original process on one AE event for all natural times. This is equivalent to the per-time AE formulation because the index is countable. Time 0 uses only the seed. The choice is classical and law-relative, not an executable learner constructor. Pointwise source feasibility is explicitly generalized to AE original feasibility.
Teaching dependencies
BanditRL.OnlineLearning.completed_measurable_real_exists_version, BanditRL.OnlineLearning.ae_predictable_exists_bounded_history_policy
Exact Lean statement
theorem completed_predictable_exists_bounded_history_policy {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) (Y : ℕ → Ω → ℝ) (S : Ω → Seed) (F : ℕ → MeasurableSpace Ω) (hF : ∀ t, F t ≤ privateSeedPastInformation S Y t) (prediction : ℕ → Ω → ℝ) (hP : ∀ t, @Measurable _ _ (eventuallyMeasurableSpace (F t) (ae μ)) _ (prediction t)) (hpb : ∀ t, ∀ᵐ ω ∂μ, prediction t ω ∈ Set.Icc (0 : ℝ) 1) : ∃ policy : (t : ℕ) → (Seed × ((↑(Finset.range t) : Type) → ℝ)) → ℝ, (∀ t, Measurable (policy t)) ∧ (∀ t q, policy t q ∈ Set.Icc (0 : ℝ) 1) ∧ ∀ᵐ ω ∂μ, ∀ t, prediction t ω = policy t (S ω, fun i => Y i ω)
Mathematics ↔ Lean

Current independence under augmented information

Lean declarationBanditRL.OnlineLearning.completed_predictable_private_seed_independent

Compiled

Plain-English statement. Under the probability, joint target independence and whole-stream seed independence assumptions below, an original prediction measurable from augmented strict-past information is independent of the current target.

Mathematical reading. Under the probability, joint target independence and whole-stream seed independence assumptions below, an original prediction measurable from augmented strict-past information is independent of the current target.
Intuition
Null modifications preserve independence; the unbounded measurable-version argument needs no feasibility assumption.
Why it is needed
Derive current-target independence for the original process.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed pages 1 and 3 / PDF pages 13 and 15. This is an explicit derived application of the IID squared-loss or strict-past discussion, not a printed theorem. Printed round 1 corresponds to Lean time 0.
Proof and Lean reading notes
Proof idea
Construct an F-measurable version of P with the real-version theorem. Feed the resulting relative AE strong measurability into the existing unbounded AE causal independence theorem. Joint independence of the targets and independence of the seed from the whole stream separate strict past from the current target. AE congruence transfers independence back to the original P. No bounded-policy theorem or boundedness premise is used.
Lean reading notes
Write bar F for eventuallyMeasurableSpace F (ae mu): a set belongs to bar F exactly when it equals an F-measurable set almost everywhere under the ambient measure mu. This is the precise ambient null augmentation; no identification with completion of mu.trim F is asserted. Assume a probability space, measurable jointly independent real targets Y, a measurable seed S independent of the whole infinite target stream, a fixed natural t, and F below the comap of (S,Y_{<t}). Original P is measurable from bar F. Then original P is independent of Y_t. No bounds, support, identical target laws or moments are assumed. Pairwise seed/coordinate independence is insufficient for the stated premise. Time 0 is included. The direct ABRL parents are the real-version theorem and ae_predictable_private_seed_independent; no claim about stopping times follows.
Teaching dependencies
BanditRL.OnlineLearning.completed_measurable_real_exists_version, BanditRL.OnlineLearning.ae_predictable_private_seed_independent
Exact Lean statement
theorem completed_predictable_private_seed_independent {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (t : ℕ) (F : MeasurableSpace Ω) (hF : F ≤ privateSeedPastInformation S Y t) (P : Ω → ℝ) (hP : @Measurable _ _ (eventuallyMeasurableSpace F (ae μ)) _ P) : IndepFun P (Y t) μ
Mathematics ↔ Lean

Expected-fixed excess under augmented information

Lean declarationBanditRL.OnlineLearning.completed_predictable_private_seed_expectedFixed_excess

Compiled

Plain-English statement. Under the bounded IID and private-seed assumptions below, the original augmented-information predictor has expected-fixed regret equal to its cumulative expected squared distance from the target mean.

Mathematical reading. Under the bounded IID and private-seed assumptions below, the original augmented-information predictor has expected-fixed regret equal to its cumulative expected squared distance from the target mean.
Intuition
After subtracting the best expected fixed loss, only squared distance from the population mean remains.
Why it is needed
Extend the source IID variance calculation to the original process under explicit augmented-information assumptions.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed pages 1 and 3 / PDF pages 13 and 15. This is an explicit derived application of the IID squared-loss or strict-past discussion, not a printed theorem. Printed round 1 corresponds to Lean time 0.
Proof and Lean reading notes
Proof idea
Construct measurable versions at every time and pass the resulting relative AE strong measurability to the existing AE expected-fixed-excess theorem. That producer derives current independence and bounded L2 integrability. The population mean attains the minimum expected fixed unit-comparator loss. The common target variance cancels from the cumulative loss decomposition, leaving squared deviations of the original predictions from that mean. T=0 is the empty-sum identity.
Lean reading notes
Write bar F for eventuallyMeasurableSpace F (ae mu): a set belongs to bar F exactly when it equals an F-measurable set almost everywhere under the ambient measure mu. This is the precise ambient null augmentation; no identification with completion of mu.trim F is asserted. Assume a probability space, measurable jointly independent identically distributed targets with AE unit bounds, a measurable seed independent of the whole target stream, and F_t below seed/strict-past information. Original predictions are measurable from bar F_t and AE unit-valued. For the same infinite process and every natural T, expectedFixedRegret is the sum of expected squared deviations from E[Y_0], hence nonnegative. The infimum over fixed unit comparators is outside expectation. The population mean is an analysis witness, not learner input. Ambient AE measurability, integrability and current independence are derived. Direct ABRL parents are the real-version theorem and ae_predictable_private_seed_expectedFixed_excess; this proof does not directly call the new completed-information independence theorem. No convergence, rate, pathwise or high-probability guarantee is asserted.
Teaching dependencies
BanditRL.OnlineLearning.completed_measurable_real_exists_version, BanditRL.OnlineLearning.ae_predictable_private_seed_expectedFixed_excess
Exact Lean statement
theorem completed_predictable_private_seed_expectedFixed_excess {Ω : Type u} {Seed : Type v} [MeasurableSpace Ω] [MeasurableSpace Seed] (μ : Measure Ω) [IsProbabilityMeasure μ] (Y : ℕ → Ω → ℝ) (hY : ∀ t, Measurable (Y t)) (hlaw : ∀ t, IdentDistrib (Y t) (Y 0) μ μ) (hb : ∀ t, ∀ᵐ ω ∂μ, Y t ω ∈ Set.Icc (0 : ℝ) 1) (hind : iIndepFun Y μ) (S : Ω → Seed) (hS : Measurable S) (hseed : IndepFun S (fun ω t => Y t ω) μ) (F : ℕ → MeasurableSpace Ω) (hF : ∀ t, F t ≤ privateSeedPastInformation S Y t) (prediction : ℕ → Ω → ℝ) (hP : ∀ t, @Measurable _ _ (eventuallyMeasurableSpace (F t) (ae μ)) _ (prediction t)) (hpb : ∀ t, ∀ᵐ ω ∂μ, prediction t ω ∈ Set.Icc (0 : ℝ) 1) (T : ℕ) : expectedFixedRegret μ Y prediction T = (∑ t ∈ Finset.range T, ∫ ω, (prediction t ω - ∫ ω, Y 0 ω ∂μ)^2 ∂μ) ∧ 0 ≤ expectedFixedRegret μ Y prediction T
Mathematics ↔ Lean

One sampler family before every law and horizon

Lean declarationBanditRL.OnlineLearning.kernel_sampler_family_exists

Compiled

Plain-English statement. Every given measurable family of unit-action Markov kernels has one jointly measurable uniform sampler family that represents it at every history, chosen before any observation law or horizon.

Mathematical reading. Every given measurable family of unit-action Markov kernels has one jointly measurable uniform sampler family that represents it at every history, chosen before any observation law or horizon.
Intuition
A fresh draw acts on an actually generated strict past.
Why it is needed
Connect a specified randomized decision law to its causal process and exact probabilistic endpoint.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 1 / PDF page 13 gives the IID squared-loss benchmark and equations (1.1)–(1.2); printed page 3 / PDF page 15 gives strict-past information. Behavioral-kernel realization is additional derived library infrastructure. Printed round 1 corresponds to Lean time 0.
Proof and Lean reading notes
Proof idea
Apply pinned Mathlib kernel randomization at every natural time and choose one jointly measurable sampler family before any observation law or horizon. Every history has the exact uniform pushforward law.
Lean reading notes
Let I=[0,1] and H_t=I^{Fin t} × R^{Fin t}. Given a Markov kernel kappa_t from H_t to I at each natural time, there exists one family f_t:H_t × I -> I, jointly measurable in history and draw, whose uniform pushforward equals kappa_t(h) at every time and every history h. The family is chosen before any observation law or horizon. Standard-Borel structure of I supports Mathlib Kernel.exists_measurable_map_eq_unitInterval. This is classical existence, not a numerical sampler. No observation-law, independence or IID premise occurs in this theorem.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem kernel_sampler_family_exists (κ : (t : ℕ) → Kernel (KernelDecisionHistory t) I) [∀ t, IsMarkovKernel (κ t)] : ∃ f : KernelDecisionSampler, (∀ t, Measurable (Function.uncurry (f t))) ∧ ∀ t h, (volume : Measure I).map (f t h) = κ t h
Mathematics ↔ Lean

The same causal recursion at every round

Lean declarationBanditRL.OnlineLearning.kernel_sampler_causal_process

Compiled

Plain-English statement. A jointly measurable sampler generates one measurable, pointwise causal process whose finite prefixes agree with its actual recursive action history.

Mathematical reading. A jointly measurable sampler generates one measurable, pointwise causal process whose finite prefixes agree with its actual recursive action history.
Intuition
A fresh draw acts on an actually generated strict past.
Why it is needed
Connect a specified randomized decision law to its causal process and exact probabilistic endpoint.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 1 / PDF page 13 gives the IID squared-loss benchmark and equations (1.1)–(1.2); printed page 3 / PDF page 15 gives strict-past information. Behavioral-kernel realization is additional derived library infrastructure. Printed round 1 corresponds to Lean time 0.
Proof and Lean reading notes
Proof idea
Induct on the actual finite action recursion. Each step restricts both prefixes, generates prior actions and appends the current sample. Prove finite-input measurability, equality of every earlier action with the same infinite process, and pointwise nonanticipation.
Lean reading notes
For any sampler family jointly measurable in history and draw, the actual recursive policy is measurable, every finite generated-action prefix agrees pointwise with the same infinite process, and matching tapes through t and observations strictly before t give the same current prediction. The recursion starts with empty histories and appends the sampled action, rather than substituting raw uniforms for past actions. This theorem requires no kernel representation, Markov property, probability law or independence assumption. It uses finite-coordinate measurability and the private finite-recursion lemma.
Teaching dependencies
No direct teaching dependency recorded.
Exact Lean statement
theorem kernel_sampler_causal_process (f : KernelDecisionSampler) (hf : ∀ t, Measurable (Function.uncurry (f t))) : (∀ t, Measurable (kernelCausalPolicy f t)) ∧ (∀ t (u : ℕ → I) (y : ℕ → ℝ) (i : Fin t), kernelGeneratedActions f t (fun j => u j) (fun j => y j) i = kernelGeneratedPrediction f (i : ℕ) (u, y)) ∧ ∀ t (ω ω' : (ℕ → I) × (ℕ → ℝ)), (∀ i, i ≤ t → ω.1 i = ω'.1 i) → (∀ i, i < t → ω.2 i = ω'.2 i) → kernelGeneratedPrediction f t ω = kernelGeneratedPrediction f t ω'
Mathematics ↔ Lean

Actual joint law from fresh uniform draws

Lean declarationBanditRL.OnlineLearning.kernel_sampler_joint_law

Compiled

Plain-English statement. Under the independent tape and observation-stream product law, actual generated history and current prediction have the joint law specified by the given kernel.

Mathematical reading. Under the independent tape and observation-stream product law, actual generated history and current prediction have the joint law specified by the given kernel.
Intuition
A fresh draw acts on an actually generated strict past.
Why it is needed
Connect a specified randomized decision law to its causal process and exact probabilistic endpoint.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 1 / PDF page 13 gives the IID squared-loss benchmark and equations (1.1)–(1.2); printed page 3 / PDF page 15 gives strict-past information. Behavioral-kernel realization is additional derived library infrastructure. Printed round 1 corresponds to Lean time 0.
Proof and Lean reading notes
Proof idea
Independent infinite uniform coordinates give independence of the current draw from the strict past tape. The product law separates the entire observation stream from the tape. Regroup these blocks and map through the actual generated history, then through the sampler; the joint law is history marginal composed with the given kernel.
Lean reading notes
Fix a Markov-kernel family and any jointly measurable sampler family representing it at every history. Put the product law of an independent infinite uniform tape and an arbitrary probability law nu on real observation streams on the common sample space. Then the joint law of actual generated history H_t and prediction P_t is the composition-product of the history marginal with kappa_t. The observation coordinates may be dependent and unbounded; the entire observation stream must remain independent of the tape through the stated product construction. The proof uses independent_private_seed_pair, independent uniform coordinates and product-law independence. The symbol tensor denotes kernel composition-product, not an independent product of history and prediction.
Teaching dependencies
BanditRL.OnlineLearning.independent_private_seed_pair
Exact Lean statement
theorem kernel_sampler_joint_law (κ : (t : ℕ) → Kernel (KernelDecisionHistory t) I) [∀ t, IsMarkovKernel (κ t)] (f : KernelDecisionSampler) (hf : ∀ t, Measurable (Function.uncurry (f t))) (hκ : ∀ t h, (volume : Measure I).map (f t h) = κ t h) (ν : ProbabilityMeasure (ℕ → ℝ)) (t : ℕ) : (kernelGameLaw ν).map (fun ω => (kernelGeneratedHistory f t ω, kernelGeneratedPrediction f t ω)) = (kernelGameLaw ν).map (kernelGeneratedHistory f t) ⊗ₘ κ t
Mathematics ↔ Lean

Actual conditional law on reached histories

Lean declarationBanditRL.OnlineLearning.kernel_sampler_conditional_law

Compiled

Plain-English statement. The actual conditional action law equals the given kernel almost everywhere under the generated-history marginal.

Mathematical reading. The actual conditional action law equals the given kernel almost everywhere under the generated-history marginal.
Intuition
A fresh draw acts on an actually generated strict past.
Why it is needed
Connect a specified randomized decision law to its causal process and exact probabilistic endpoint.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 1 / PDF page 13 gives the IID squared-loss benchmark and equations (1.1)–(1.2); printed page 3 / PDF page 15 gives strict-past information. Behavioral-kernel realization is additional derived library infrastructure. Printed round 1 corresponds to Lean time 0.
Proof and Lean reading notes
Proof idea
Use the actual measurable generated prediction and established joint law. Conditional-distribution uniqueness identifies the kernel AE under the actual generated-history marginal, including time0.
Lean reading notes
Use the same Markov, joint-measurability, all-history representation and product-law inputs as the joint-law theorem. The conditional distribution of the actual prediction given the actual generated history equals kappa_t almost everywhere under that history marginal, for each nu and t. Its exceptional null set may depend on nu and t. This does not specify a unique conditional law at unreachable histories. The proof directly uses the causal-process and joint-law theorems and Mathlib condDistrib_ae_eq_of_measure_eq_compProd.
Teaching dependencies
BanditRL.OnlineLearning.kernel_sampler_causal_process, BanditRL.OnlineLearning.kernel_sampler_joint_law
Exact Lean statement
theorem kernel_sampler_conditional_law (κ : (t : ℕ) → Kernel (KernelDecisionHistory t) I) [∀ t, IsMarkovKernel (κ t)] (f : KernelDecisionSampler) (hf : ∀ t, Measurable (Function.uncurry (f t))) (hκ : ∀ t h, (volume : Measure I).map (f t h) = κ t h) (ν : ProbabilityMeasure (ℕ → ℝ)) (t : ℕ) : condDistrib (kernelGeneratedPrediction f t) (kernelGeneratedHistory f t) (kernelGameLaw ν) =ᵐ[(kernelGameLaw ν).map (kernelGeneratedHistory f t)] κ t
Mathematics ↔ Lean

One realized process and every-horizon IID excess

Lean declarationBanditRL.OnlineLearning.causal_kernel_realization_and_expectedFixed_excess

Compiled

Plain-English statement. One sampler realizes the given kernels for every observation law. Under bounded IID observations, its expected-fixed regret is the cumulative expected squared distance from the target mean.

Mathematical reading. One sampler realizes the given kernels for every observation law. Under bounded IID observations, its expected-fixed regret is the cumulative expected squared distance from the target mean.
Intuition
A fresh draw acts on an actually generated strict past.
Why it is needed
Connect a specified randomized decision law to its causal process and exact probabilistic endpoint.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 1 / PDF page 13 gives the IID squared-loss benchmark and equations (1.1)–(1.2); printed page 3 / PDF page 15 gives strict-past information. Behavioral-kernel realization is additional derived library infrastructure. Printed round 1 corresponds to Lean time 0.
Proof and Lean reading notes
Proof idea
Select one sampler family first and retain its recursion, joint and conditional laws for every observation law. Under coordinate IID, same-law and AE unit observations, lift those assumptions through the product law. The concrete feasible history policy instantiates the existing IID expected-fixed excess producer at every natural horizon, including zero.
Lean reading notes
Given a Markov-kernel family, choose one jointly measurable representing sampler before every observation law and horizon. It supplies the causal process, pointwise prefix consistency, joint law and AE conditional law for every real-observation probability law nu. If the observation coordinates are mutually independent, identically distributed and almost everywhere in I, the same infinite process satisfies the displayed expected-fixed identity for every natural horizon T, including T=0. The infimum is over one fixed unit comparator and lies outside expectation. The target mean is an analysis witness, not learner input. The proof reuses all four realization endpoints and randomized_history_policy_expectedFixed_excess. No rate, convergence, pathwise or high-probability statement is obtained.
Teaching dependencies
BanditRL.OnlineLearning.kernel_sampler_family_exists, BanditRL.OnlineLearning.kernel_sampler_causal_process, BanditRL.OnlineLearning.kernel_sampler_joint_law, BanditRL.OnlineLearning.kernel_sampler_conditional_law, BanditRL.OnlineLearning.randomized_history_policy_expectedFixed_excess
Exact Lean statement
theorem causal_kernel_realization_and_expectedFixed_excess (κ : (t : ℕ) → Kernel (KernelDecisionHistory t) I) [∀ t, IsMarkovKernel (κ t)] : ∃ f : KernelDecisionSampler, (∀ t, Measurable (Function.uncurry (f t))) ∧ (∀ t h, (volume : Measure I).map (f t h) = κ t h) ∧ (∀ t, Measurable (kernelCausalPolicy f t)) ∧ (∀ t (u : ℕ → I) (y : ℕ → ℝ) (i : Fin t), kernelGeneratedActions f t (fun j => u j) (fun j => y j) i = kernelGeneratedPrediction f (i : ℕ) (u, y)) ∧ (∀ t (ω ω' : (ℕ → I) × (ℕ → ℝ)), (∀ i, i ≤ t → ω.1 i = ω'.1 i) → (∀ i, i < t → ω.2 i = ω'.2 i) → kernelGeneratedPrediction f t ω = kernelGeneratedPrediction f t ω') ∧ ∀ ν : ProbabilityMeasure (ℕ → ℝ), (∀ t, (kernelGameLaw ν).map (fun ω => (kernelGeneratedHistory f t ω, kernelGeneratedPrediction f t ω)) = (kernelGameLaw ν).map (kernelGeneratedHistory f t) ⊗ₘ κ t) ∧ (∀ t, condDistrib (kernelGeneratedPrediction f t) (kernelGeneratedHistory f t) (kernelGameLaw ν) =ᵐ[(kernelGameLaw ν).map (kernelGeneratedHistory f t)] κ t) ∧ (iIndepFun (fun t (y : ℕ → ℝ) => y t) (ν : Measure (ℕ → ℝ)) → (∀ t, IdentDistrib (fun y : ℕ → ℝ => y t) (fun y : ℕ → ℝ => y 0) (ν : Measure (ℕ → ℝ)) (ν : Measure (ℕ → ℝ))) → (∀ t, ∀ᵐ y ∂(ν : Measure (ℕ → ℝ)), y t ∈ Set.Icc (0 : ℝ) 1) → ∀ T : ℕ, expectedFixedRegret (kernelGameLaw ν) (fun t ω => ω.2 t) (fun t ω => (kernelGeneratedPrediction f t ω : ℝ)) T = (∑ t ∈ Finset.range T, ∫ ω, ((kernelGeneratedPrediction f t ω : ℝ) - ∫ ω, ω.2 0 ∂(kernelGameLaw ν))^2 ∂(kernelGameLaw ν)) ∧ 0 ≤ expectedFixedRegret (kernelGameLaw ν) (fun t ω => ω.2 t) (fun t ω => (kernelGeneratedPrediction f t ω : ℝ)) T)
Mathematics ↔ Lean

A lower bound for the actual FTL loss gap

Lean declarationBanditRL.OnlineLearning.meanPredict_bestLoss_nonneg

Compiled

Plain-English statement. For the actual squared-loss FTL predictor, cumulative loss is at least the squared loss of the horizon empirical mean, for every real observation stream and every horizon.

Mathematical reading. For the actual squared-loss FTL predictor, cumulative loss is at least the squared loss of the horizon empirical mean, for every real observation stream and every horizon.
Intuition
The horizon mean separates signed fixed regret from the actual best-comparator gap.
Why it is needed
Identify precisely which ordinary-limit conclusion follows for the same causal FTL strategy.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 2 / PDF page 14 defines signed regret and displays an ordinary-limit criterion; printed page 4 / PDF page 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF page 18 discusses sublinear best regret. These five results are derived library consequences and semantic reconciliation, not five printed theorems. Printed round t+1 corresponds to Lean time t. The existing upper-epsilon NoRegret predicate remains distinct from the literal LimitNoRegret predicate.
Proof and Lean reading notes
Proof idea
Write Phi_T for the squared loss at the horizon empirical mean. The old leader minimizes the length-T prefix. Thus Phi_(T+1) is at most Phi_T plus the actual next loss. Induction from the empty prefix gives Phi_T at most the actual cumulative FTL loss.
Lean reading notes
For every real stream y and natural horizon T, including zero, compare the actual cumulative loss of p_0=1/2 and p_t=the mean of observations strictly before t with the squared loss at the horizon empirical mean. No boundedness, convergence or nonnegative-regret premise is assumed. The proof uses empiricalMean_minimizes and induction on the horizon. For an unrestricted stream, the algebraic predictor need not lie in [0,1]. This result concerns this particular FTL process, not arbitrary predictors.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean_minimizes
Exact Lean statement
theorem meanPredict_bestLoss_nonneg (y : ℕ → ℝ) (T : ℕ) : 0 ≤ comparatorRegret (fun t x => (x - y t)^2) (meanPredict y) (empiricalMean y T) T
Mathematics ↔ Lean

Exact signed fixed-comparator decomposition

Lean declarationBanditRL.OnlineLearning.meanPredict_comparator_decomposition

Compiled

Plain-English statement. Signed regret against any fixed real comparator is the empirical-mean regret minus the horizon times a squared distance.

Mathematical reading. Signed regret against any fixed real comparator is the empirical-mean regret minus the horizon times a squared distance.
Intuition
The horizon mean separates signed fixed regret from the actual best-comparator gap.
Why it is needed
Identify precisely which ordinary-limit conclusion follows for the same causal FTL strategy.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 2 / PDF page 14 defines signed regret and displays an ordinary-limit criterion; printed page 4 / PDF page 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF page 18 discusses sublinear best regret. These five results are derived library consequences and semantic reconciliation, not five printed theorems. Printed round t+1 corresponds to Lean time t. The existing upper-epsilon NoRegret predicate remains distinct from the literal LimitNoRegret predicate.
Proof and Lean reading notes
Proof idea
For positive T, expand squared comparator loss around the empirical mean using the existing exact decomposition. Subtract this from the same cumulative prediction loss. At T=0, all sums vanish. This retains the exact negative squared-distance term.
Lean reading notes
For any real stream y, fixed real comparator u and natural horizon T, signed fixed regret equals regret against the horizon empirical mean minus T times the squared distance from u to that mean. The proof uses empiricalMean_decomposition at positive horizons and empty sums at zero. No interval feasibility or limit premise is required, and the minus sign is essential.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean_decomposition
Exact Lean statement
theorem meanPredict_comparator_decomposition (y : ℕ → ℝ) (u : ℝ) (T : ℕ) : comparatorRegret (fun t x => (x - y t)^2) (meanPredict y) u T = comparatorRegret (fun t x => (x - y t)^2) (meanPredict y) (empiricalMean y T) T - (T : ℝ) * (u - empiricalMean y T)^2
Mathematics ↔ Lean

The actual best-comparator average tends to zero

Lean declarationBanditRL.OnlineLearning.meanPredict_bestRegret_average_tendsto_zero

Compiled

Plain-English statement. When every observation lies in [0,1], the actual best-comparator regret divided by the horizon converges to zero.

Mathematical reading. When every observation lies in [0,1], the actual best-comparator regret divided by the horizon converges to zero.
Intuition
The horizon mean separates signed fixed regret from the actual best-comparator gap.
Why it is needed
Identify precisely which ordinary-limit conclusion follows for the same causal FTL strategy.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 2 / PDF page 14 defines signed regret and displays an ordinary-limit criterion; printed page 4 / PDF page 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF page 18 discusses sublinear best regret. These five results are derived library consequences and semantic reconciliation, not five printed theorems. Printed round t+1 corresponds to Lean time t. The existing upper-epsilon NoRegret predicate remains distinct from the literal LimitNoRegret predicate.
Proof and Lean reading notes
Proof idea
Use the empirical mean to identify the interval-best comparator. The nonnegative gap and the existing bound 4+4 log T squeeze normalized best regret between zero and a quantity tending to zero.
Lean reading notes
Assume every observation of one infinite stream belongs to [0,1]. Its horizon empirical mean realizes the interval minimum when T is positive. The first endpoint proves a nonnegative actual FTL gap, while meanPredict_bestRegret_bound supplies the bound 4+4 log T. Divide at positive horizons and use squeeze_zero with the logarithm-over-horizon limit. The conclusion is the ordinary real limit zero for interval-best regret divided by T. At T=0 Lean uses total division; no cancellation at zero is used.
Teaching dependencies
BanditRL.OnlineLearning.meanPredict_bestLoss_nonneg, BanditRL.OnlineLearning.squaredBestRegret_eq_comparatorRegret, BanditRL.OnlineLearning.meanPredict_bestRegret_bound
Exact Lean statement
theorem meanPredict_bestRegret_average_tendsto_zero (y : ℕ → ℝ) (hy : ∀ t, y t ∈ Set.Icc (0 : ℝ) 1) : Tendsto (fun T : ℕ => squaredBestRegret y (meanPredict y) T / (T : ℝ)) atTop (nhds (0 : ℝ))
Mathematics ↔ Lean

The fixed-comparator ordinary-limit criterion

Lean declarationBanditRL.OnlineLearning.meanPredict_fixedRegret_limit_iff

Compiled

Plain-English statement. For unit observations, a fixed-comparator regret limit exists with value a exactly when the squared distance from that comparator to the empirical mean converges to -a.

Mathematical reading. For unit observations, a fixed-comparator regret limit exists with value a exactly when the squared distance from that comparator to the empirical mean converges to -a.
Intuition
The horizon mean separates signed fixed regret from the actual best-comparator gap.
Why it is needed
Identify precisely which ordinary-limit conclusion follows for the same causal FTL strategy.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 2 / PDF page 14 defines signed regret and displays an ordinary-limit criterion; printed page 4 / PDF page 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF page 18 discusses sublinear best regret. These five results are derived library consequences and semantic reconciliation, not five printed theorems. Printed round t+1 corresponds to Lean time t. The existing upper-epsilon NoRegret predicate remains distinct from the literal LimitNoRegret predicate.
Proof and Lean reading notes
Proof idea
At positive horizons, normalized fixed regret equals normalized best regret minus squared distance from the comparator to the empirical mean. The first term tends to zero. Subtract limits in each direction to prove the equivalence.
Lean reading notes
For the same all-time unit-valued stream and arbitrary fixed real u and a, normalized signed comparator regret tends to a if and only if squared distance from u to the horizon empirical mean tends to -a. Divide the exact decomposition only eventually, at positive horizons, and subtract the zero limit of normalized best regret in both directions. No empirical-mean convergence or unconditional existence of a fixed-comparator limit is asserted.
Teaching dependencies
BanditRL.OnlineLearning.meanPredict_comparator_decomposition, BanditRL.OnlineLearning.meanPredict_bestRegret_average_tendsto_zero, BanditRL.OnlineLearning.squaredBestRegret_eq_comparatorRegret
Exact Lean statement
theorem meanPredict_fixedRegret_limit_iff (y : ℕ → ℝ) (hy : ∀ t, y t ∈ Set.Icc (0 : ℝ) 1) (u a : ℝ) : Tendsto (fun T : ℕ => comparatorRegret (fun t x => (x - y t)^2) (meanPredict y) u T / (T : ℝ)) atTop (nhds a) ↔ Tendsto (fun T : ℕ => (u - empiricalMean y T)^2) atTop (nhds (-a))
Mathematics ↔ Lean

Literal no-regret under empirical-mean convergence

Lean declarationBanditRL.OnlineLearning.meanPredict_limitNoRegret_of_mean_converges

Compiled

Plain-English statement. If the empirical mean of a unit-valued stream converges to m, every fixed-comparator normalized regret converges to the explicit nonpositive value -(u-m)^2.

Mathematical reading. If the empirical mean of a unit-valued stream converges to m, every fixed-comparator normalized regret converges to the explicit nonpositive value -(u-m)^2.
Intuition
The horizon mean separates signed fixed regret from the actual best-comparator gap.
Why it is needed
Identify precisely which ordinary-limit conclusion follows for the same causal FTL strategy.
Place in the proof
Orabona, arXiv:1912.13213v10 (2026-06-21), printed page 2 / PDF page 14 defines signed regret and displays an ordinary-limit criterion; printed page 4 / PDF page 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF page 18 discusses sublinear best regret. These five results are derived library consequences and semantic reconciliation, not five printed theorems. Printed round t+1 corresponds to Lean time t. The existing upper-epsilon NoRegret predicate remains distinct from the literal LimitNoRegret predicate.
Proof and Lean reading notes
Proof idea
Use the assumed empirical-mean convergence and continuity of the square to obtain the squared-distance limit. Apply the equivalence to get -(u-m)^2 for each real comparator. Nonpositivity then supplies the literal unit-comparator LimitNoRegret witness.
Lean reading notes
In addition to all-time unit observations, explicitly assume empiricalMean y tends to a real m. For every real comparator u, continuity of subtraction and squaring and the previous equivalence give normalized regret limit -(u-m)^2. This limit can be strictly negative. Restricting to u in [0,1] gives the literal comparatorwise finite, nonpositive ordinary-limit predicate. The limit m is not supplied to the predictor. The full alternating-binary canary separately proves its own empirical-mean limit 1/2 and obtains limits -1/4 at u=0 and zero at u=1/2; it does not supply the pending oscillating-mean obstruction.
Teaching dependencies
BanditRL.OnlineLearning.meanPredict_fixedRegret_limit_iff
Exact Lean statement
theorem meanPredict_limitNoRegret_of_mean_converges (y : ℕ → ℝ) (hy : ∀ t, y t ∈ Set.Icc (0 : ℝ) 1) (m : ℝ) (hm : Tendsto (empiricalMean y) atTop (nhds m)) : (∀ u : ℝ, Tendsto (fun T : ℕ => comparatorRegret (fun t x => (x - y t)^2) (meanPredict y) u T / (T : ℝ)) atTop (nhds (-(u - m)^2))) ∧ LimitNoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - y t)^2) (meanPredict y)
Mathematics ↔ Lean

Literal FTL no-regret iff the empirical mean converges

Lean declarationBanditRL.OnlineLearning.meanPredict_limitNoRegret_iff_mean_converges

Compiled

Plain-English statement. For every observation stream in [0,1], the actual FTL predictor has a finite nonpositive normalized-regret limit at every fixed comparator in [0,1] exactly when the empirical means converge.

Mathematical reading. For every observation stream in [0,1], the actual FTL predictor has a finite nonpositive normalized-regret limit at every fixed comparator in [0,1] exactly when the empirical means converge.
Intuition
Sublinear upper regret does not by itself produce an ordinary fixed-comparator limit.
Why it is needed
Reconcile the literal source definition with its actual bounded FTL guarantee.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). Printed page 2 / PDF 14 displays ordinary-limit no-regret; printed page 4 / PDF 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF 18 discusses sublinear regret. These four results are derived consequences and an explicit counterexample, not printed theorems. Printed round t+1 is Lean time t. The upper-epsilon NoRegret predicate and finite ordinary-limit LimitNoRegret predicate remain distinct.
Proof and Lean reading notes
Proof idea
Use the proposed comparator limits at 0 and 1 and the existing fixed-regret criterion. They give limits for M_T squared and (1-M_T) squared. Their difference plus one, divided by two, equals M_T. Eventual interval membership places the limit in [0,1]. Conversely, empirical-mean convergence yields every comparator limit -(u-m)^2 through the existing FTL producer.
Lean reading notes
D1 assumes only y:N->R and every y_t in [0,1]. The forward implication does not assume empirical-mean convergence. Comparator limits may depend on u. Both endpoints 0 and 1 are included. The reverse implication reuses meanPredict_limitNoRegret_of_mean_converges. There is no stochastic or uniform-in-comparator threshold claim.
Teaching dependencies
BanditRL.OnlineLearning.meanPredict_fixedRegret_limit_iff, BanditRL.OnlineLearning.meanPredict_limitNoRegret_of_mean_converges, BanditRL.OnlineLearning.empiricalMean_mem
Exact Lean statement
theorem meanPredict_limitNoRegret_iff_mean_converges (y : ℕ → ℝ) (hy : ∀ t, y t ∈ Set.Icc (0 : ℝ) 1) : LimitNoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - y t)^2) (meanPredict y) ↔ ∃ m ∈ Set.Icc (0 : ℝ) 1, Tendsto (empiricalMean y) atTop (nhds m)
Mathematics ↔ Lean

One explicit feasible dyadic observation stream

Lean declarationBanditRL.OnlineLearning.dyadicObservation_unit

Compiled

Plain-English statement. The fixed sequence d_0=0 and d_(n+1)=1-d_(floor(n/2)) always lies in [0,1]. Its definition does not depend on a learner or horizon.

Mathematical reading. The fixed sequence d_0=0 and d_(n+1)=1-d_(floor(n/2)) always lies in [0,1]. Its definition does not depend on a learner or horizon.
Intuition
Sublinear upper regret does not by itself produce an ordinary fixed-comparator limit.
Why it is needed
Reconcile the literal source definition with its actual bounded FTL guarantee.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). Printed page 2 / PDF 14 displays ordinary-limit no-regret; printed page 4 / PDF 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF 18 discusses sublinear regret. These four results are derived consequences and an explicit counterexample, not printed theorems. Printed round t+1 is Lean time t. The upper-epsilon NoRegret predicate and finite ordinary-limit LimitNoRegret predicate remain distinct.
Proof and Lean reading notes
Proof idea
Strong induction applies to the strictly smaller parent floor(n/2). The base value is zero; taking one minus a binary value exchanges zero and one. Both outcomes belong to the closed unit interval.
Lean reading notes
D2 has no external range premise. The public theorem states interval membership; the stronger binary assertion is a private proof ingredient. The recursive parent is floor((t-1)/2) at positive index t, not floor(t/2).
Teaching dependencies
BanditRL.OnlineLearning.dyadicObservation
Exact Lean statement
theorem dyadicObservation_unit : ∀ t, dyadicObservation t ∈ Set.Icc (0 : ℝ) 1
Mathematics ↔ Lean

Two distinct empirical-mean subsequence limits

Lean declarationBanditRL.OnlineLearning.dyadic_empiricalMean_subsequences

Compiled

Plain-English statement. The same empirical means tend to 2/3 along horizons 4^(n+1)-1 and to 1/3 along horizons 2*4^n-1.

Mathematical reading. The same empirical means tend to 2/3 along horizons 4^(n+1)-1 and to 1/3 along horizons 2*4^n-1.
Intuition
Sublinear upper regret does not by itself produce an ordinary fixed-comparator limit.
Why it is needed
Reconcile the literal source definition with its actual bounded FTL guarantee.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). Printed page 2 / PDF 14 displays ordinary-limit no-regret; printed page 4 / PDF 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF 18 discusses sublinear regret. These four results are derived consequences and an explicit counterexample, not printed theorems. Printed round t+1 is Lean time t. The upper-epsilon NoRegret predicate and finite ordinary-limit LimitNoRegret predicate remain distinct.
Proof and Lean reading notes
Proof idea
The two children at 2k+1 and 2k+2 both equal 1-d_k. Pairing them gives S_(2n+1)=2n-2S_n. Induction yields exact high and low prefix counts. The high mean is exactly 2/3; the low mean is 1/3 minus 1/(3(2*4^n-1)). The two positive natural horizons diverge, so the latter correction tends to zero.
Lean reading notes
D3 concerns prefix lengths, not the last included index. Natural subtraction is used, with positive denominators proved before cancellation. The high sequence begins at horizon 3 and the low at horizon 1. Both converge along n tending to infinity; no convergence of the full empirical mean is asserted.
Teaching dependencies
BanditRL.OnlineLearning.dyadicObservation
Exact Lean statement
theorem dyadic_empiricalMean_subsequences : Tendsto (fun n : ℕ => empiricalMean dyadicObservation (4^(n + 1) - 1)) atTop (nhds ((2 : ℝ) / 3)) ∧ Tendsto (fun n : ℕ => empiricalMean dyadicObservation (2 * 4^n - 1)) atTop (nhds ((1 : ℝ) / 3))
Mathematics ↔ Lean

Bounded actual FTL separates upper and ordinary no-regret

Lean declarationBanditRL.OnlineLearning.dyadic_meanPredict_obstruction

Compiled

Plain-English statement. On this one bounded stream, the actual FTL predictor has upper-epsilon no-regret and normalized interval-best regret tending to zero, while normalized regret against comparator zero has no finite ordinary limit.

Mathematical reading. On this one bounded stream, the actual FTL predictor has upper-epsilon no-regret and normalized interval-best regret tending to zero, while normalized regret against comparator zero has no finite ordinary limit.
Intuition
Sublinear upper regret does not by itself produce an ordinary fixed-comparator limit.
Why it is needed
Reconcile the literal source definition with its actual bounded FTL guarantee.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). Printed page 2 / PDF 14 displays ordinary-limit no-regret; printed page 4 / PDF 16 gives Theorem 1.3 for squared-loss FTL; printed page 6 / PDF 18 discusses sublinear regret. These four results are derived consequences and an explicit counterexample, not printed theorems. Printed round t+1 is Lean time t. The upper-epsilon NoRegret predicate and finite ordinary-limit LimitNoRegret predicate remain distinct.
Proof and Lean reading notes
Proof idea
Apply the existing actual-FTL upper guarantee and best-regret zero-limit theorem to the proved unit-valued stream. If normalized regret against zero had finite limit a, the existing criterion would force M_T squared to tend to -a. Composition with the two cofinal subsequences forces -a=4/9 and -a=1/9, a contradiction. Since zero is a feasible comparator, LimitNoRegret also fails.
Lean reading notes
D4 keeps fixed-comparator signed regret separate from regret against the best constant comparator in [0,1]. The best-regret zero limit uses both a proved nonnegative FTL gap and the logarithmic upper bound. It is not inferred from an upper bound alone. The predictor uses only strict past observations, initialized at one half. The failure is nonexistence of any finite real comparator-zero limit, not merely failure of limit zero.
Teaching dependencies
BanditRL.OnlineLearning.dyadicObservation_unit, BanditRL.OnlineLearning.dyadic_empiricalMean_subsequences, BanditRL.OnlineLearning.meanPredict_noRegret, BanditRL.OnlineLearning.meanPredict_bestRegret_average_tendsto_zero, BanditRL.OnlineLearning.meanPredict_fixedRegret_limit_iff
Exact Lean statement
theorem dyadic_meanPredict_obstruction : NoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - dyadicObservation t)^2) (meanPredict dyadicObservation) ∧ Tendsto (fun T : ℕ => squaredBestRegret dyadicObservation (meanPredict dyadicObservation) T / (T : ℝ)) atTop (nhds (0 : ℝ)) ∧ (¬ ∃ a : ℝ, Tendsto (fun T : ℕ => comparatorRegret (fun t x => (x - dyadicObservation t)^2) (meanPredict dyadicObservation) 0 T / (T : ℝ)) atTop (nhds a)) ∧ ¬ LimitNoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - dyadicObservation t)^2) (meanPredict dyadicObservation)
Mathematics ↔ Lean

Exact first-round initialization correction

Lean declarationBanditRL.OnlineLearning.ftlPredict_bestRegret_initial_correction

Compiled

Plain-English statement. For any real initial prediction a, real observation stream y and positive natural horizon T, initialized FTL and half-initialized FTL have exactly the same best-comparator regret except for their first squared-loss difference.

Mathematical reading. For any real initial prediction a, real observation stream y and positive natural horizon T, initialized FTL and half-initialized FTL have exactly the same best-comparator regret except for their first squared-loss difference.
Intuition
Initialization affects only the first played prediction; later strict-past means are identical.
Why it is needed
Extend the strict-past FTL performance guarantee to every legal fixed initialization while preserving the source half-initial theorem and the distinct regret metrics.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). General initialization: printed page 3 / PDF 15. Theorem 1.3 fixes initial 1/2: printed page 4 / PDF 16; its proof and quarter-plus-tail refinement are on printed pages 5–6 / PDF 17–18. These four interfaces are derived results. Source round t+1 is Lean index t.
Proof and Lean reading notes
Proof idea
For every positive time, both predictors equal the same strict-prefix empirical mean. Split each cumulative prediction loss into time zero and its tail; the tails cancel. Both best-regret expressions subtract the identical comparator infimum, which cancels without a minimum-existence assumption. The remaining term is c=(a-y_0)^2-(1/2-y_0)^2.
Lean reading notes
G001 imposes no interval or measurability hypotheses. T>0 is essential: at T=0 both regrets vanish, while c need not vanish. Outside [0,1] this is an algebraic extension, not a legal-game assertion. The literal infimum can be canceled even before proving it is attained.
Teaching dependencies
BanditRL.OnlineLearning.empiricalMean, BanditRL.OnlineLearning.ftlPredict, BanditRL.OnlineLearning.meanPredict, BanditRL.OnlineLearning.squaredBestRegret
Exact Lean statement
theorem ftlPredict_bestRegret_initial_correction (initial : ℝ) (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) : squaredBestRegret y (ftlPredict initial y) T = squaredBestRegret y (meanPredict y) T + ((initial - y 0)^2 - ((1 : ℝ) / 2 - y 0)^2)
Mathematics ↔ Lean

Finite regret for every legal FTL initialization

Lean declarationBanditRL.OnlineLearning.ftlPredict_bestRegret_refined

Compiled

Plain-English statement. With a in [0,1], T>0 and y_t in [0,1] for t<T, initialized FTL has best-comparator regret at most 1 plus four times the reciprocal sum from 2 through T.

Mathematical reading. With a in [0,1], T>0 and y_t in [0,1] for t<T, initialized FTL has best-comparator regret at most 1 plus four times the reciprocal sum from 2 through T.
Intuition
Initialization affects only the first played prediction; later strict-past means are identical.
Why it is needed
Extend the strict-past FTL performance guarantee to every legal fixed initialization while preserving the source half-initial theorem and the distinct regret metrics.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). General initialization: printed page 3 / PDF 15. Theorem 1.3 fixes initial 1/2: printed page 4 / PDF 16; its proof and quarter-plus-tail refinement are on printed pages 5–6 / PDF 17–18. These four interfaces are derived results. Source round t+1 is Lean index t.
Proof and Lean reading notes
Proof idea
Reuse the half-initialized quarter-plus-tail bound and add the exact first-round correction c. Expanding 1/4+c gives a^2+(1-2a)y_0. Since a^2<=a, splitting y_0<=1/2 or y_0>=1/2 bounds this expression by 1. The reciprocal tail is unchanged.
Lean reading notes
G002 needs only the finite scored prefix, not an all-time range premise. The quarter constant belongs to the half-initialized theorem; with a=0 and y_0=1 the one-round regret equals 1. The exact terminal is 1+sum_{t<T-1}4/(t+2), including the empty tail at T=1.
Teaching dependencies
BanditRL.OnlineLearning.ftlPredict, BanditRL.OnlineLearning.ftlPredict_bestRegret_initial_correction, BanditRL.OnlineLearning.meanPredict, BanditRL.OnlineLearning.meanPredict_bestRegret_refined, BanditRL.OnlineLearning.squaredBestRegret
Exact Lean statement
theorem ftlPredict_bestRegret_refined (initial : ℝ) (y : ℕ → ℝ) (T : ℕ) (hT : 0 < T) (hi : initial ∈ Set.Icc (0 : ℝ) 1) (hy : ∀ t < T, y t ∈ Set.Icc (0 : ℝ) 1) : squaredBestRegret y (ftlPredict initial y) T ≤ (1 : ℝ) + ∑ t ∈ Finset.range (T - 1), 4 / ((t : ℝ) + 2)
Mathematics ↔ Lean

Upper no-regret for initialized FTL

Lean declarationBanditRL.OnlineLearning.ftlPredict_upperNoRegret

Compiled

Plain-English statement. For one initial a in [0,1] and one all-time unit-valued stream, every fixed comparator u in [0,1] has eventually normalized regret at most each positive epsilon. This is an upper property, without an ordinary-limit claim.

Mathematical reading. For one initial a in [0,1] and one all-time unit-valued stream, every fixed comparator u in [0,1] has eventually normalized regret at most each positive epsilon. This is an upper property, without an ordinary-limit claim.
Intuition
Initialization affects only the first played prediction; later strict-past means are identical.
Why it is needed
Extend the strict-past FTL performance guarantee to every legal fixed initialization while preserving the source half-initial theorem and the distinct regret metrics.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). General initialization: printed page 3 / PDF 15. Theorem 1.3 fixes initial 1/2: printed page 4 / PDF 16; its proof and quarter-plus-tail refinement are on printed pages 5–6 / PDF 17–18. These four interfaces are derived results. Source round t+1 is Lean index t.
Proof and Lean reading notes
Proof idea
For each feasible comparator, its regret is at most the interval-best regret. Combine the exact correction with the half-initialized logarithmic bound. The first squared loss is at most 1, so 5+4 log T is an upper bound for positive T. Divide by T and use 1/T and log T/T tending to zero. The actual proof uses this logarithmic route, not the new finite refined theorem.
Lean reading notes
G003 expands NoRegret as: for every feasible fixed u and every epsilon>0, some N gives R_T(u)/T<=epsilon for all T>=N. N may depend on u and epsilon. The 5+4 log T intermediate does not replace G002. This is a separately named derived interpretation of source success, not the printed finite ordinary-limit display.
Teaching dependencies
BanditRL.OnlineLearning.comparatorRegret, BanditRL.OnlineLearning.comparatorRegret_le_squaredBestRegret, BanditRL.OnlineLearning.ftlPredict, BanditRL.OnlineLearning.ftlPredict_bestRegret_initial_correction, BanditRL.OnlineLearning.meanPredict, BanditRL.OnlineLearning.meanPredict_bestRegret_bound, BanditRL.OnlineLearning.squaredBestRegret, BanditRL.OnlineLearning.noRegret_of_vanishing_bound
Exact Lean statement
theorem ftlPredict_upperNoRegret (initial : ℝ) (y : ℕ → ℝ) (hi : initial ∈ Set.Icc (0 : ℝ) 1) (hy : ∀ t, y t ∈ Set.Icc (0 : ℝ) 1) : NoRegret (Set.Icc (0 : ℝ) 1) (fun t x => (x - y t)^2) (ftlPredict initial y)
Mathematics ↔ Lean

Initialized FTL best-average regret tends to zero

Lean declarationBanditRL.OnlineLearning.ftlPredict_bestRegret_average_tendsto_zero

Compiled

Plain-English statement. For the same legal initialization and all-time unit-valued stream, normalized regret against the best constant comparator in [0,1] tends to zero. No empirical-mean convergence assumption is required.

Mathematical reading. For the same legal initialization and all-time unit-valued stream, normalized regret against the best constant comparator in [0,1] tends to zero. No empirical-mean convergence assumption is required.
Intuition
Initialization affects only the first played prediction; later strict-past means are identical.
Why it is needed
Extend the strict-past FTL performance guarantee to every legal fixed initialization while preserving the source half-initial theorem and the distinct regret metrics.
Place in the proof
Francesco Orabona, Online Learning: A Modern Introduction Using Convex Optimization, arXiv:1912.13213v10 (2026-06-21). General initialization: printed page 3 / PDF 15. Theorem 1.3 fixes initial 1/2: printed page 4 / PDF 16; its proof and quarter-plus-tail refinement are on printed pages 5–6 / PDF 17–18. These four interfaces are derived results. Source round t+1 is Lean index t.
Proof and Lean reading notes
Proof idea
For positive T, divide the exact identity by T. The accepted half-initialized best-regret theorem gives its normalized limit zero, using an actual nonnegative half-FTL loss gap and an upper bound. The fixed correction c divided by T also tends to zero. Adding these two limits and using eventual equality proves the result; an upper bound alone would not suffice.
Lean reading notes
G004 retains the sealed legal-initial hypothesis even though the constant-over-horizon argument does not consume it. The comparator optimizing the best loss can depend on T. This is not a fixed-comparator ordinary-limit assertion and does not imply such a limit. General-initial regret is not assumed nonnegative: the proof transfers a two-sided half-initial limit by a possibly negative constant correction.
Teaching dependencies
BanditRL.OnlineLearning.ftlPredict, BanditRL.OnlineLearning.ftlPredict_bestRegret_initial_correction, BanditRL.OnlineLearning.meanPredict, BanditRL.OnlineLearning.meanPredict_bestRegret_average_tendsto_zero, BanditRL.OnlineLearning.squaredBestRegret
Exact Lean statement
theorem ftlPredict_bestRegret_average_tendsto_zero (initial : ℝ) (y : ℕ → ℝ) (hi : initial ∈ Set.Icc (0 : ℝ) 1) (hy : ∀ t, y t ∈ Set.Icc (0 : ℝ) 1) : Tendsto (fun T : ℕ => squaredBestRegret y (ftlPredict initial y) T / (T : ℝ)) atTop (nhds (0 : ℝ))

Maintainer contract

Open the canonical completion definition and blockers

Bounded reconciliation of all 17 original Chapter 1 main-text claim objects, including the derived general-initial FTL family, alongside their explicit assumptions and source deltas. A claim-object count is not a proof count or coverage percentage. Chapter 1 and the whole book remain incomplete: no universal ordinary fixed-comparator limit is inferred, the mandatory proof-leaf total is unknown, and independent exercises are separate.

Remaining blockers

  • The source ordinary-limit display is preserved. A bounded actual-FTL counterexample refutes the universal ordinary-limit inference; the separately proved upper property is a derived interpretation, not an approved source rewrite.
  • Exercises 1.1 and 1.2 remain separate and are not claimed solved. Historical discussion is classified separately. The mandatory proof-leaf total is unknown; no whole-chapter or book completion follows from the 17 claim objects, 54 public contracts or 27 canaries.
  • The IID results retain a complete independent private-randomness and measurable strict-history model, with explicit AE, completed-information and behavioral-kernel variants. Broader unspecified protocols, side information and action-dependent environments are outside the stated model. Sharp lower-bound constants and an unrestricted minimax equivalence are not proved.
  • Chapter 2, later chapters and required appendices retain their own obligations. Earlier source cards describe the scope of their individual packages; the current chapter overview reconciles those historical boundaries.

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

  • The source ordinary-limit display is preserved. A bounded actual-FTL counterexample refutes the universal ordinary-limit inference; the separately proved upper property is a derived interpretation, not an approved source rewrite.
  • Exercises 1.1 and 1.2 remain separate and are not claimed solved. Historical discussion is classified separately. The mandatory proof-leaf total is unknown; no whole-chapter or book completion follows from the 17 claim objects, 54 public contracts or 27 canaries.
  • The IID results retain a complete independent private-randomness and measurable strict-history model, with explicit AE, completed-information and behavioral-kernel variants. Broader unspecified protocols, side information and action-dependent environments are outside the stated model. Sharp lower-bound constants and an unrestricted minimax equivalence are not proved.
  • Chapter 2, later chapters and required appendices retain their own obligations. Earlier source cards describe the scope of their individual packages; the current chapter overview reconciles those historical boundaries.

All Lean modules in this chapter

Open the complete module list (22 modules)