Lemma 9 (Decoupling), general form — Eq. (2.24)
ProvedFoundationsRL.Structured.decoupling_lemmaThis theorem formalizes the general form of Lemma 9 (Decoupling) established in its own proof (Foster & Rakhlin, Foundations of Reinforcement Learning and Interactive Decision Making, arXiv:2312.16730v1, p. 32, Eq. (2.24)) — the form Chapter 4 invokes for an arbitrary reference function and an arbitrary distribution over a finite model class, not just the boxed statement's posterior (Eq. (2.23)).
Fix a finite decision space , a finite index set enumerating a finite model class via (every ), a distribution , and a reference function . Writing for a maximizer of and for the marginal distribution over decisions induced by drawing and playing , the lemma states
This is the decoupling step: on the left, the model index and the decision are coupled (the decision depends on which model was drawn); on the right, is drawn from the marginal , independent of the specific draw of .
Formalization Note Restated inside FoundationsRL.Structured (rather than imported
from the Chapter 2 mission's own item of the same underlying fact) because draft items
cannot import other chunks' drafts; the source index and page cited are the same Chapter 2
location. piStar is a hypothesized total maximizer selector, as elsewhere in this
series.
import Mathlib
namespace FoundationsRL.Structured
/-- Lemma 9 (Decoupling), general form (Foster & Rakhlin, *Foundations of Reinforcement
Learning and Interactive Decision Making*, arXiv:2312.16730v1, p. 32, Eq. (2.24) — the
"more general result" the proof of Lemma 9 establishes and which Chapter 4 invokes for
arbitrary reference distributions, not just the posterior `µ_t` of the boxed statement (2.23)):
for a finite class of models `F` (indexed by `ι`, via `f : ι → (Fin A → ℝ)` with every `f i ∈
F`), any distribution `ν` over the models, and any `f̄ : Fin A → ℝ`, if `p` is the marginal
distribution over decisions induced by drawing a model `i ∼ ν` and playing its maximizer
`piStar (f i)`, then
`E_{i∼ν}[f_i(π_{f_i}) − f̄(π_{f_i})] ≤ √(A · E_{i∼ν} E_{π∼p}[(f_i(π) − f̄(π))²])`.
This is the decoupling step: on the left, the model `i` and the decision `π_{f_i}` are coupled;
on the right, `π` is drawn from the marginal `p`, independent of the specific draw of `i`. -/
theorem decoupling_lemma {A : ℕ} {ι : Type*} [Fintype ι] (F : Set (Fin A → ℝ))
(f : ι → Fin A → ℝ) (hf : ∀ i, f i ∈ F)
(piStar : (Fin A → ℝ) → Fin A) (hpiStar : ∀ i, ∀ π, f i π ≤ f i (piStar (f i)))
(ν : ι → ℝ) (hν_nonneg : ∀ i, 0 ≤ ν i) (hν_sum : ∑ i, ν i = 1)
(p : Fin A → ℝ) (hp : ∀ π, p π = ∑ i, ν i * (if piStar (f i) = π then 1 else 0))
(fbar : Fin A → ℝ) :
∑ i, ν i * (f i (piStar (f i)) - fbar (piStar (f i))) ≤
Real.sqrt ((A : ℝ) * ∑ i, ν i * ∑ π, p π * (f i π - fbar π) ^ 2) := by sorry
end FoundationsRL.Structured
Read-back
What the Lean code literally says, in plain math · claude-opus-5
Fix a natural number and a finite index type . Let be a set of real-valued functions on (the type of decisions), and let assign to each index a function , with the hypothesis that for every . Let be an arbitrary function from to — that is, it assigns a single decision to every real-valued function on decisions — subject to the hypothesis that for every index and every decision ,
so is a maximizer of over . Note that this hypothesis constrains only at the arguments that actually arise from the family ; its values at other functions in are unconstrained. Note also that the hypothesis is never used elsewhere in the statement: appears nowhere in the conclusion, and the conclusion is a claim about , , , and alone.
Let be nonnegative with (a probability mass function on , expressed as a real-valued function rather than a measure). Let be a function on decisions satisfying, for every decision ,
i.e. is exactly the push-forward of under — the indicator is written as a term that is when and otherwise. This is an equational hypothesis pinning down completely, not an independent assumption of nonnegativity or normalization (both of which follow from it). Finally, let be an arbitrary real-valued function on decisions, with no relation to , to the , or to assumed.
Under these hypotheses the statement asserts the single inequality
Both sums over and the inner sum over are finite sums over the whole (finite) index type, and is the natural number cast into . The square root is the real square root, which on negative arguments returns ; no hypothesis asserts that the quantity under the root is nonnegative, though it is a sum of products of nonnegative factors (, from its defining formula, and a square), so it is in fact nonnegative here. The inequality is non-strict (), and the left-hand side is signed: it may be negative, since is arbitrary.
Degenerate cases permitted by the hypotheses. If is empty, then , so the hypothesis is unsatisfiable and the statement is vacuous for that ; for a one-element the hypotheses force and , and the claim reads with . If then is empty, so there is no decision at all: would have to produce an element of an empty type from each , which is impossible unless too is empty — and empty already contradicts — so the hypotheses are jointly unsatisfiable when and the statement is vacuous there. (The functions , and on are the unique empty functions, both sums over are , and the cast multiplies the right-hand side to with .) If there is a single decision, is forced to be it, is the point mass there, and the two sides coincide up to the absolute value. The hypothesis is always satisfiable when and is inhabited (pick any argmax; ties are broken arbitrarily by , and distinct indices with necessarily receive the same decision, since is a function of the model). Nothing rules out for some indices (such terms contribute nothing to either side, and those models still need not be excluded from 's constraint), nor for all (both sides are then and the inequality holds with equality), nor repeated models for .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.