Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 13 — E2D regret bound (goal)

Proved
FoundationsRL.Structured.e2d_regret_bound

by mikedeng1 · Sep 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

bandit-algorithmsdecision-estimation-coefficientregretreinforcement-learningstructured-bandits

This theorem formalizes Proposition 13 (Foster & Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730v1, p. 65, attributed "Foster et al. [40]"), the capstone result of the chapter: the Estimation-to-Decisions (E2D) algorithm's regret bound. Fix a finite decision space Π\PiΠ, a function class FFF containing the ground-truth reward function f⋆f^\starf⋆ (realizability, Assumption 5), and a maximizer selector piStar (πf\pi_fπf​ an arg max of fff on Π\PiΠ for every f∈Ff \in Ff∈F). Suppose that at each round ttt an online regression oracle produces an estimate f^t∈co(F)\hat f_t \in \mathrm{co}(F)f^​t​∈co(F), and E2D selects ptp_tpt​ to (at least) attain the value of the DEC game at f^t\hat f_tf^​t​ — i.e. ptp_tpt​ certifies decγ(F,f^t)\mathrm{dec}_\gamma(F, \hat f_t)decγ​(F,f^​t​) from above, as E2D's own minimizing choice does. If the oracle's cumulative estimation error is bounded by EstSq\mathrm{EstSq}EstSq (Definition 7), then for every exploration parameter γ>0\gamma > 0γ>0, with probability at least 1−δ1-\delta1−δ,

Reg≤decγ(F)⋅T+γ⋅EstSq(F,T,δ).\mathrm{Reg} \le \mathrm{dec}_\gamma(F) \cdot T + \gamma \cdot \mathrm{EstSq}(F, T, \delta).Reg≤decγ​(F)⋅T+γ⋅EstSq(F,T,δ).

Formalization Note The book's own proof (pp. 65-66) bounds regret by an unconstrained sup⁡f^:Π→Rdecγ(F,f^)⋅T+γ⋅EstSq\sup_{\hat f : \Pi \to \mathbb{R}} \mathrm{dec}_\gamma(F, \hat f) \cdot T + \gamma \cdot \mathrm{EstSq}supf^​:Π→R​decγ​(F,f^​)⋅T+γ⋅EstSq, and only equates this with the official decγ(F)⋅T\mathrm{dec}_\gamma(F) \cdot Tdecγ​(F)⋅T (Eq. (4.16), a sup over co(F)\mathrm{co}(F)co(F)) via Proposition 24 — a fact stated on p. 80, outside this chunk's page range, whose own proof is deferred to Exercise 10 and not otherwise given in the chapter. Rather than invoke that unproven-in-range reduction, this formalization adds the explicit hypothesis hfhat : ∀ t, fhat t ∈ convexHull ℝ F, matching how the book itself describes E2D's oracle output ("online estimation algorithms such as exponential weights will produce improper predictions with f^∈co(F)\hat f \in \mathrm{co}(F)f^​∈co(F)", p. 65) — so the conclusion's decγ(F)\mathrm{dec}_\gamma(F)decγ​(F) (already a sup over co(F)\mathrm{co}(F)co(F) by definition) directly dominates each round's decγ(F,f^t)\mathrm{dec}_\gamma(F, \hat f_t)decγ​(F,f^​t​) without appeal to Proposition 24. The probability-1−δ1-\delta1−δ qualifier is captured, as elsewhere in this series, via the explicit OracleGuarantee hypothesis on the realized run.


Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.

Preamble
import Mathlib
import Definitions.Def_FoundationsRL_Structured_DEC
import Definitions.Def_FoundationsRL_Structured_OracleGuarantee
import Definitions.Def_FoundationsRL_Structured_regret
Formal statement
namespace FoundationsRL.Structured

/-- Proposition 13 (Foster & Rakhlin, *Foundations of Reinforcement Learning and Interactive
Decision Making*, arXiv:2312.16730v1, p. 65, attributed "Foster et al. [40]"): the
Estimation-to-Decisions (E2D) algorithm's regret bound. Given a finite decision space `Π`, a
function class `F` containing the ground-truth reward function `fstar` (Assumption 5), and a
maximizer selector `piStar` (`piStar f` is `π_f`, an arg max of `f` on `Π`, for every `f ∈ F`),
suppose at each round `t` the online regression oracle produces `fhat t` and E2D selects `p t`
to (at least) attain the value of the min-max game defining `decγ(F, f̂_t)` — i.e. `p t`
certifies `decγ(F, f̂_t)` from above, as the E2D algorithm's minimizing choice does. If the
oracle's cumulative estimation error is bounded by `EstSq` (`OracleGuarantee`), then the regret
of the realized run is at most `decγ(F) · T + γ · EstSq(F, T, δ)` (Eq. (4.17)).

The book's own proof (p. 65-66) bounds regret by `sup_{f̂ : Π → ℝ} decγ(F, f̂) · T + γ ·
EstSq`, an unconstrained sup, and only equates this with `decγ(F) · T` (`decγ(F)` officially
`sup_{f̂∈co(F)} decγ(F,f̂)` by Eq. (4.16)) via Proposition 24 — a fact stated on p. 80, outside
this chunk's page range, whose own proof is left to Exercise 10 and is not otherwise given in
the chapter. Rather than invoke that unproven-in-range reduction, this formalization adds the
hypothesis that each round's oracle estimate `f̂_t` already lies in `co(F)`, matching how the
book itself describes E2D's oracle ("online estimation algorithms such as exponential weights
will produce improper predictions with f̂ ∈ co(F)", p. 65) — so the conclusion's `decγ(F)` (Eq.
4.16, over `co(F)`) directly dominates each round's `decγ(F, f̂_t)` without appeal to Prop. 24. -/
theorem e2d_regret_bound {S : Type*} [Fintype S] (F : Set (S → ℝ))
    (piStar : (S → ℝ) → S) (hpiStar : ∀ f ∈ F, ∀ π, f π ≤ f (piStar f))
    (fstar : S → ℝ) (hfstar : fstar ∈ F)
    (T : ℕ) (γ : ℝ) (hγ : 0 < γ)
    (fhat : Fin T → S → ℝ) (hfhat : ∀ t, fhat t ∈ convexHull ℝ F)
    (p : Fin T → S → ℝ)
    (hp_nonneg : ∀ t π, 0 ≤ p t π) (hp_sum : ∀ t, ∑ π, p t π = 1)
    (hp_min : ∀ t, ∀ f ∈ F,
      ∑ π, p t π * (f (piStar f) - f π - γ * (f π - fhat t π) ^ 2) ≤ decGf F piStar γ (fhat t))
    (EstSq : ℝ) (hOracle : OracleGuarantee T fhat fstar p EstSq) :
    regret fstar (piStar fstar) T p ≤ dec F piStar γ * T + γ * EstSq := by sorry

end FoundationsRL.Structured
Source
Foster & Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730v1, p. 65, Proposition 13
Read-back

What the Lean code literally says, in plain math · claude-opus-5

This statement fixes a finite type SSS (the decision space, written Π\PiΠ in the surrounding text; Fintype S supplies the finiteness, and SSS is otherwise arbitrary — it may be empty or a singleton) and a set F⊆(S→R)F \subseteq (S \to \mathbb{R})F⊆(S→R) of real-valued functions on SSS. A function π⋆:(S→R)→S\pi^\star : (S \to \mathbb{R}) \to Sπ⋆:(S→R)→S is given, together with the hypothesis that for every f∈Ff \in Ff∈F and every π∈S\pi \in Sπ∈S we have f(π)≤f(π⋆(f))f(\pi) \le f(\pi^\star(f))f(π)≤f(π⋆(f)) — i.e. π⋆(f)\pi^\star(f)π⋆(f) maximizes fff over all of SSS, but only for arguments fff lying in FFF; on every other input π⋆\pi^\starπ⋆ is an arbitrary element of SSS with no constraint. A distinguished f⋆∈Ff^\star \in Ff⋆∈F is fixed. A horizon T∈NT \in \mathbb{N}T∈N and a real γ\gammaγ with γ>0\gamma > 0γ>0 are fixed. A family f^:{0,…,T−1}→(S→R)\hat f : \{0,\dots,T-1\} \to (S \to \mathbb{R})f^​:{0,…,T−1}→(S→R) is given with the hypothesis that f^t∈co⁡(F)\hat f_t \in \operatorname{co}(F)f^​t​∈co(F) — the convex hull of FFF taken over R\mathbb{R}R inside the vector space S→RS \to \mathbb{R}S→R — for every index ttt. A family p:{0,…,T−1}→(S→R)p : \{0,\dots,T-1\} \to (S \to \mathbb{R})p:{0,…,T−1}→(S→R) is given with two hypotheses making each ptp_tpt​ a probability distribution on SSS: pt(π)≥0p_t(\pi) \ge 0pt​(π)≥0 for all t,πt,\pit,π, and ∑π∈Spt(π)=1\sum_{\pi \in S} p_t(\pi) = 1∑π∈S​pt​(π)=1 for all ttt (the sum is over the whole finite type SSS).

The remaining hypothesis on ppp is a per-round minimax certificate. For every round index ttt and every f∈Ff \in Ff∈F,

∑π∈Spt(π)(f(π⋆(f))−f(π)−γ (f(π)−f^t(π))2)  ≤  decGf(F,π⋆,γ,f^t),\sum_{\pi \in S} p_t(\pi)\Big(f(\pi^\star(f)) - f(\pi) - \gamma\,(f(\pi) - \hat f_t(\pi))^2\Big) \;\le\; \mathrm{dec}^{\mathrm{Gf}}(F,\pi^\star,\gamma,\hat f_t),π∈S∑​pt​(π)(f(π⋆(f))−f(π)−γ(f(π)−f^​t​(π))2)≤decGf(F,π⋆,γ,f^​t​),

where decGf(F,π⋆,γ,⋅)\mathrm{dec}^{\mathrm{Gf}}(F,\pi^\star,\gamma,\cdot)decGf(F,π⋆,γ,⋅) is the quantity named decGf in the imported definition bundle; its internal meaning is not visible in this statement, and nothing here forces it to be the value of any min-max game, a supremum, or even a nonnegative number — it is simply a real number attached to FFF, π⋆\pi^\starπ⋆, γ\gammaγ and the argument f^t\hat f_tf^​t​, and the hypothesis says the displayed ptp_tpt​-average is at most that number for each f∈Ff \in Ff∈F individually. Likewise OracleGuarantee(T,f^,f⋆,p,EstSq)(T,\hat f,f^\star,p,\mathrm{EstSq})(T,f^​,f⋆,p,EstSq) is an imported predicate relating the horizon, the estimates f^\hat ff^​, the truth f⋆f^\starf⋆, the played distributions ppp and the real number EstSq\mathrm{EstSq}EstSq; its content is not exposed here, and in particular nothing in this statement requires EstSq≥0\mathrm{EstSq} \ge 0EstSq≥0.

Under all of the above, the conclusion is the single inequality

regret(f⋆, π⋆(f⋆), T, p)  ≤  dec(F,π⋆,γ)⋅T  +  γ⋅EstSq,\mathrm{regret}\big(f^\star,\ \pi^\star(f^\star),\ T,\ p\big) \;\le\; \mathrm{dec}(F,\pi^\star,\gamma)\cdot T \;+\; \gamma\cdot \mathrm{EstSq},regret(f⋆, π⋆(f⋆), T, p)≤dec(F,π⋆,γ)⋅T+γ⋅EstSq,

where regret\mathrm{regret}regret and dec\mathrm{dec}dec are the two further imported definitions: regret\mathrm{regret}regret takes the true function f⋆f^\starf⋆, the single decision π⋆(f⋆)\pi^\star(f^\star)π⋆(f⋆), the horizon TTT and the whole family ppp, and dec(F,π⋆,γ)\mathrm{dec}(F,\pi^\star,\gamma)dec(F,π⋆,γ) is a real number depending only on FFF, π⋆\pi^\starπ⋆ and γ\gammaγ — not on f^\hat ff^​, not on ppp, not on TTT. The multiplication dec(F,π⋆,γ)⋅T\mathrm{dec}(F,\pi^\star,\gamma)\cdot Tdec(F,π⋆,γ)⋅T coerces the natural number TTT into R\mathbb{R}R. Note that the inequality is stated with these opaque imported quantities; the statement asserts no relation whatsoever between dec(F,π⋆,γ)\mathrm{dec}(F,\pi^\star,\gamma)dec(F,π⋆,γ) and the per-round decGf(F,π⋆,γ,f^t)\mathrm{dec}^{\mathrm{Gf}}(F,\pi^\star,\gamma,\hat f_t)decGf(F,π⋆,γ,f^​t​) — any such relation would have to come from the definitions themselves, which are not displayed here. The π⋆\pi^\starπ⋆ appearing in the regret target, in the minimax hypothesis, and inside both dec\mathrm{dec}dec and decGf\mathrm{dec}^{\mathrm{Gf}}decGf is the same selector function throughout.

Several degenerate configurations are permitted and the statement still asserts something in each. If T=0T = 0T=0, the index type {0,…,T−1}\{0,\dots,T-1\}{0,…,T−1} is empty, so the hypotheses hp_nonneg, hp_sum, hp_min, hfhat are vacuously true for any f^\hat ff^​ and any ppp (both of which are then the unique empty family), dec(F,π⋆,γ)⋅T=0\mathrm{dec}(F,\pi^\star,\gamma)\cdot T = 0dec(F,π⋆,γ)⋅T=0, and the claim reduces to regret(f⋆,π⋆(f⋆),0,p)≤γ⋅EstSq\mathrm{regret}(f^\star,\pi^\star(f^\star),0,p) \le \gamma\cdot\mathrm{EstSq}regret(f⋆,π⋆(f⋆),0,p)≤γ⋅EstSq under whatever OracleGuarantee at horizon 000 asserts — with EstSq\mathrm{EstSq}EstSq unconstrained in sign, this is a real constraint, not a triviality. If SSS is empty, then piStar cannot exist as a function into SSS unless (S→R)(S \to \mathbb{R})(S→R) is also empty — but S→RS \to \mathbb{R}S→R is a singleton (the empty function) when SSS is empty, so piStar would have to produce an element of an empty type from that single input, making the hypothesis set unsatisfiable and the theorem vacuous for empty SSS; note also that hp_sum would then read 0=10 = 10=1, which is independently unsatisfiable. If SSS is a singleton, every ptp_tpt​ is forced to be the point mass of value 111, and the bracketed expression in hp_min collapses to −γ(f(π)−f^t(π))2≤0-\gamma(f(\pi)-\hat f_t(\pi))^2 \le 0−γ(f(π)−f^​t​(π))2≤0 at the unique π\piπ, so that hypothesis demands decGf(F,π⋆,γ,f^t)≥−γ(f−f^t)2\mathrm{dec}^{\mathrm{Gf}}(F,\pi^\star,\gamma,\hat f_t) \ge -\gamma(f-\hat f_t)^2decGf(F,π⋆,γ,f^​t​)≥−γ(f−f^​t​)2 pointwise. If FFF is empty, hfstar is unsatisfiable and the theorem is vacuous; if FFF is a singleton {f⋆}\{f^\star\}{f⋆}, its convex hull is {f⋆}\{f^\star\}{f⋆}, forcing f^t=f⋆\hat f_t = f^\starf^​t​=f⋆ for every ttt, whereupon hp_min reads ∑πpt(π)(f⋆(π⋆(f⋆))−f⋆(π))≤decGf(F,π⋆,γ,f⋆)\sum_\pi p_t(\pi)(f^\star(\pi^\star(f^\star)) - f^\star(\pi)) \le \mathrm{dec}^{\mathrm{Gf}}(F,\pi^\star,\gamma,f^\star)∑π​pt​(π)(f⋆(π⋆(f⋆))−f⋆(π))≤decGf(F,π⋆,γ,f⋆). Since the hypotheses may jointly be unsatisfiable for particular choices of FFF, π⋆\pi^\starπ⋆, f^\hat ff^​, ppp and EstSq\mathrm{EstSq}EstSq — hp_min and OracleGuarantee are constraints of unknown strength, and hpiStar requires a genuine maximizer to exist for every member of FFF — the theorem may hold vacuously on any such instance. Finally, the three imported definitions are total functions returning real numbers, so whatever default or junk values they take on inputs their intended definitions do not anticipate (for example, sums or suprema over empty index sets, or divisions by zero occurring internally) are the values the inequality is asserted about; no hypothesis here rules such values out.

Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me