How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Contextual expert bandits
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Adversarial bandits and importance-weighted feedback
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Conditional Expectation
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Discrete Time Martingales
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Hedge and online gradient descent
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Online protocols and regret benchmarks
- Order, Zorn's Lemma, and the Axiom of Choice
- Outward rounded interval and ball arithmetic
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Probability Spaces Random Variables and Expectation
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Riemann Integral: Definition and Integrability
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
Contextual bandit protocol with finite expert advice
Definition
Fix integers , , and . Write for a positive integer , and let
An oblivious contextual bandit instance consists of reward vectors and advice matrices , for , all fixed before the learner's private randomization. The matrix is revealed before the round- action; its row is expert 's probability distribution over the actions. The expected reward of expert on round is .
At round , the learner's pre-action history consists of its earlier actions and observed rewards. Given that history and the revealed advice, it selects a distribution , draws a measurable finite-valued action with conditional probabilities , and observes only . Here is the sigma-algebra generated by the pre-action history. For every fixed expert sequence and reward sequence, the expected regret against the best fixed expert is
where expectation is over the learner's action draws. The regret random variable is bounded, so this expectation is finite. This protocol makes no stochastic generalization claim and imposes no shared-structure condition on the experts; it does not cover advice or rewards selected in response to the learner's current action.
Definition references
Online decision timing: the learner chooses each action from its pre-action history before observing current-round feedback.
Oblivious adversary and bandit feedback: an oblivious sequence is fixed before learner randomization, and bandit feedback reveals only the played reward.
Expected-regret convention: expected regret is the expectation of the specified measurable, integrable regret random variable.
Measurable random actions: a finite action draw is a measurable random element of the discrete action set.
Pre-action filtration: the sigma-algebras generated by successive histories form a filtration.
Expectation: the expectation of an integrable real random variable is its Lebesgue integral on the underlying probability space.
Exp4 with unbiased estimated rewards
Definition
Given integers , , , a learning rate , and an instance from the contextual bandit protocol with finite expert advice, initialize for . For rounds , perform the following operations:
-
Receive the advice matrix , whose th row is .
-
Form the action distribution
-
Draw a measurable action with conditional probabilities and observe only .
-
For each , form
When , the action is impossible; in this case the quotient term is defined to be zero on every possible outcome.
- For each expert , form its estimated reward
and update the expert distribution by
The output is and . All arithmetic is over exact real numbers, and the procedure assumes a probability space carrying the stated finite-valued measurable draws. This is the Exp4 update; no regret guarantee for bounded-loss Hedge is part of the algorithm.
Definition references
Contextual bandit protocol: the fixed oblivious reward/advice instance, action set, observed reward, and pre-action history used here.
Normalized exponential weights: the full-information algorithm uses normalized exponential weights; this is notation only, not a regret result for the present unbounded estimates.
Importance-weighted loss estimate: on coordinates with positive sampling probability, the quotient term is the standard estimate of loss ; the zero-probability convention is handled locally here.
Measurable finite actions: each action draw is a measurable finite-valued random element.
Real exponential: the update uses the real exponential function.
Exponential positivity: exponential weights are positive for every finite real input.
Exp4 well-definedness ↗: the separate result proves finite estimates, simplex mixtures, positive expert weights and finite-horizon completion, including zero-probability actions.
Exp4 updates are well-defined, including zero-probability actions
Statement
For the exact-real Exp4 procedure, take any integers , , , any finite real learning rate , and every oblivious reward/advice instance and supplied measurable draws in its input scope. At every round , the expert vector is a probability vector with strictly positive entries, the action mixture belongs to , and implies for every expert . Every action and expert reward estimate is finite; the corresponding estimated losses and are nonnegative. The normalizing denominator is finite and strictly positive, so again has strictly positive entries summing to one. The procedure completes its prescribed rounds and returns all specified outputs.
The zero-quotient convention is retained exactly. These conclusions do not require positive sampling probability for every action, a uniform exploration mixture, a bound on the magnitude of an importance-weighted estimate, or a restriction on the learning rate beyond .
Statement references
Facts & Assumptions
Given: The full finite-horizon Exp4 inputs in the Statement, using exact real arithmetic and the probability space carrying the algorithm's prescribed finite-valued measurable action draws.
The input has , , , fixed rewards , and advice rows with and . The observed reward is ; action draws are measurable, and the pre-action history consists of earlier actions and observed rewards. Contextual bandit protocol with finite expert advice
The algorithm initializes , sets , and uses with when , and when . It sets and normalizes to obtain . Exp4 with unbiased estimated rewards
The real exponential is finite and strictly positive at every finite real argument. The real exponential function and the number by a power series, The exponential is positive and satisfies
Inverses and products of positive real numbers are positive, and positive multiplication preserves inequalities. Inverses of positives are positive, and reciprocation reverses order, Sign rules for products and monotonicity of multiplication
Induction propagates a base assertion preserved at each successor through the finite sequence of rounds. The principle of mathematical induction
Proof
At the first round, makes a finite strictly positive real by [F4]. The entries sum to one, so is a strictly positive probability vector.
Assume is a strictly positive probability vector at a round . Every is a finite nonnegative sum. Reordering its finite double sum gives . Hence each and . If , every term in this nonnegative sum is zero, and strict positivity of forces for every . Thus unsupported actions carry no expert advice.
Fix the round's action. Since , a supported coordinate has finite nonnegative by [F4], while an unsupported coordinate has the defined value zero. Thus every is finite, with no division by zero. The finite sum defining is also finite. As each advice row sums to one, . The reasoning uses the zero convention even on null outcomes, so no pointwise undefined quotient is hidden behind a probability-zero claim.
By step 2.1, is a finite real number for every expert. By [F3], every weight is finite and strictly positive. Since is finite and nonzero, is finite and strictly positive. Therefore every is finite and strictly positive by [F4], and their sum is one. This is the induction step.
By [F5], all stated invariants and finite estimates hold through round , including . For fixed inputs, and are functions of the finite past action sequence, and all other round records are functions of that sequence and the current action. The finite measurable action-history partitions therefore make the states and records measurable with finite ranges; in particular is pre-action measurable. There is at least one supported arm at each round because , and the algorithm's probability space supplies its measurable draw; no sampler construction is being assumed beyond the input contract. Each round performs only finite sums and the prescribed finite evaluations and draw. After exactly rounds the loop ends and returns and . This proves well-definedness and finite-horizon completion without any extra exploration or learning-rate hypothesis.
Exp4 expert reward estimates are conditionally unbiased
Statement
In Exp4, at every round and for every expert , the expert's estimated reward satisfies
The assertion includes rounds where some actions have zero sampling probability; no componentwise unbiasedness claim is made for an unsupported action.
Statement references
Exp4 estimates and zero-probability convention: the estimated action rewards and expert rewards are defined in the algorithm.
Facts & Assumptions
Given: A fixed oblivious instance with , , , the Exp4 algorithm, and a round .
Exp4 with unbiased estimated rewards: , every , , and the quotient in is set to zero when .
Contextual bandit protocol with finite expert advice: and are fixed before the learner's action, each advice row is a probability vector, and records the pre-action history.
Exp4 with unbiased estimated rewards: , , and for , .
Expectation of a nonnegative or integrable random variable: expectation is the Lebesgue integral; a measurable finite-range real random variable on a probability space is integrable.
Conditional expectation given a sigma algebra: conditional expectation is characterized by its integrals on pre-action history events; with a finite action set, its value on each positive-probability history is the finite conditional sum over actions.
Proof
For the fixed instance, there are finitely many action histories. The weights and finite estimates are functions of those histories and the current action, so they are measurable with finite ranges and hence integrable. Fix a positive-probability pre-action history; on it, and are fixed. If , then is a sum of nonnegative terms and every ; hence for every expert . Such a coordinate contributes nothing to any expert reward estimate.
For on this history, the estimate is when and zero otherwise. Thus its conditional mean, computed directly from [F3], is , regardless of other arms' probabilities. For fixed expert , its row sums to one, so . Distributing the finite conditional sum and omitting the zero coefficients from step 1.1 gives . These values on the finitely many positive-probability history atoms satisfy the integral characterization [F5] on every history event; values on null histories do not affect the conditional-expectation identity.
Exp4 weighted estimated loss has conditional second moment at most k
Statement
At every round in Exp4, define the estimated action loss by and the estimated loss of expert by . Then
This bound includes actions with zero sampling probability under the zero-quotient convention.
Statement references
Exp4 expert weights and estimated losses: the action distribution, arm reward estimates, and expert weights define the random variables in the statement.
Facts & Assumptions
Given: A contextual bandit instance, a round , and the Exp4 algorithm with finite action and expert sets.
Exp4 with unbiased estimated rewards: , , , and the quotient for is zero when .
Contextual bandit protocol with finite expert advice: each advice row is a probability vector, , and the learner's action has conditional probability .
Exp4 with unbiased estimated rewards: , and when , .
Conditional expectation given a sigma algebra: a conditional-expectation version is a measurable integrable function with the same integrals as the original variable on every event in the conditioning sigma-algebra.
Expectation of a nonnegative or integrable random variable: expectation is the Lebesgue integral; a measurable finite-range real random variable on a probability space is integrable.
Proof
For the fixed instance, weights and finite estimates are functions of finitely many action histories; they and their squares are measurable with finite ranges, hence integrable. Fix a positive-probability pre-action history. If , then with all terms nonnegative and every , so for every expert . Thus these coordinates contribute zero. For each realized action, at most one arm loss estimate is nonzero, and hence .
On this history, for , the square equals when and zero otherwise. By [F2], its conditional mean is therefore . These finite conditional sums on the history atoms satisfy [F4]; null histories do not affect the identities. Applying this calculation to step 1.1 gives , because , whose square is at most itself.
Multiply step 2.1 by and sum over experts. For every supported , , so the result is at most . This proves the conditional bound.
Exp4 exponential-weights potential inequality
Statement
For any Exp4 run with learning rate and any fixed expert , define . The following pathwise inequality holds for every realized action sequence:
Statement references
Exp4 update: the expert weights are updated by normalized exponentials of the estimated rewards.
Nonpositive-axis exponential inequality: the potential proof applies this inequality to the negative estimated losses.
Facts & Assumptions
Given: Integers , , a learning rate , and an Exp4 run.
Exp4 with unbiased estimated rewards: , is proportional to , and is finite.
Second-order exponential upper bound on the nonpositive axis: for every real .
The exponential addition formula : for all real .
The natural logarithm as the inverse of the exponential function: is defined on positive reals as the inverse of .
Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm: is strictly increasing, , and for .
The natural logarithm has derivative 1/x and equals the integral from 1 to x of 1/t: is differentiable on with .
Mean value theorem on a closed real interval: for a continuous function on a closed interval differentiable in its interior, some interior point realizes its secant slope as the derivative.
The exponential is positive and satisfies : for every real .
Proof
First, for every , . If this is equality by [F5]. If , apply [F7] to on ; by [F6] there is with . If , apply [F7] on to obtain with , again giving . All intervals lie in , where [F6] supplies continuity and differentiability.
Define , , and . The update gives . Since , [F3] and [F2] give , where . Positivity follows termwise from and . Applying [F5] and step 1.1 yields .
Summing step 2.1 over and using [F5] telescopes the left side to . Since and , the fixed expert term gives . Combining this lower bound with the summed upper bound and dividing by proves the stated inequality.
Exp4 expected regret against the best fixed expert
Statement
Let , , and be integers. For each , let and let be an matrix with nonnegative entries whose every row sums to one. Assume the reward vectors and advice matrices are deterministic and fixed before learner randomization, each advice matrix is revealed before its action, and the learner observes only the reward of its sampled action. Run Exp4 with
where is the natural logarithm and the square root is the nonnegative real root. Define expected regret against the best fixed expert by
Then
Statement references
Oblivious contextual bandit protocol and expected regret: the fixed reward/advice scope, action feedback, and reward-regret convention are defined there.
Exp4 algorithm: the action mixture, importance-weighted estimates, and expert update used in the theorem are defined there.
Conditional unbiasedness of expert reward estimates: supported action estimates recover each fixed expert's expected reward, including the zero-support boundary.
Weighted estimated-loss second moment: the expected quadratic term in the potential bound is at most per round.
Exp4 potential inequality: every fixed expert's estimated-reward advantage is bounded by the log-prior term and estimated-loss second moments.
Facts & Assumptions
Given: The finite oblivious contextual bandit instance, Exp4 with the stated learning rate, and expected regret against its best fixed expert.
The reward vectors and advice matrices are fixed before learner randomization, as stated in the Statement; hence a best expert can be chosen deterministically.
Contextual bandit protocol with finite expert advice: advice rows are probability vectors, the instance is oblivious, the learner observes , and is the expectation of the best-fixed-expert reward minus the learner's cumulative reward.
Exp4 with unbiased estimated rewards: , is determined before the current draw, and all estimates are finite under the zero-quotient convention.
Exp4 expert reward estimates are conditionally unbiased: for every expert, including zero-probability actions.
Exp4 exponential-weights potential inequality: for every fixed , the pathwise estimated-reward gap is at most .
Static, dynamic, interval, and strongly adaptive regret: expected regret is the expectation of the specified measurable, integrable regret random variable.
Conditional expectation given a sigma algebra: a conditional expectation is characterized by its integrals on events in the pre-action sigma-algebra.
Expectation of a nonnegative or integrable random variable: expectation of an integrable random variable is its Lebesgue integral.
Linearity, monotonicity, and the modulus bound for expectation: finite sums of integrable random variables have the corresponding sum of expectations.
Order, continuity, range, and the product, quotient, and reciprocal laws for the natural logarithm: is strictly increasing, , and for positive .
Nonnegative real square roots exist uniquely: each nonnegative real number has a unique nonnegative square root.
Proof
Since is finite and the advice and rewards are fixed, choose a maximizing expert ; it is nonrandom. At any positive-probability pre-action history, [F2] makes and fixed. By [F3], the conditional mean of the comparator estimate is its true expert reward. Finite summation and give . All histories and estimates are finite, so summing these conditional identities over histories and rounds gives . This uses finite conditional sums, not a general tower-property theorem.
Apply [F5] pathwise to . Taking expectations, using [F9], and summing the conditional bound [F4] over the finite pre-action histories gives .
Since , [F10] gives . Thus , and [F11] supplies the positive learning rate in the Statement. Substituting it into step 2.1 makes both terms equal to , whose sum is .
4 · Examples, counterexamples and false statements
None yet.