K is a positive finite number of arms; means are fixed real numbers.
An arbitrary action sequence is observed for a finite horizon T.
Your task
Prove the exact library identity realMeanRegret mean action n = ∑ a : Fin K, realMeanGap mean a * (pullCount action a n : ℝ).
Only the fixed signature below is graded. The NL assumptions describe the parent problem; the signature is the exact formal contract.
theorem Submission {K : Nat} (mean : Fin K → ℝ) (action : BanditRLProof.ActionTrace (Fin K)) (n : Nat) :
BanditRLProof.realMeanRegret mean action n =
∑ a : Fin K, BanditRLProof.realMeanGap mean a *
(BanditRLProof.pullCount action a n : ℝ) := by
-- your proof
Reference proof for the graded Lean target
by
exact BanditRLProof.realMeanRegret_eq_sum_gap_mul_pullCount mean action n
Scope: the fixed formal signature above. This is a library-application warmup.
Formula renderer unavailable; readable fallback: R_T=T μ_*−Σ_{t<T} μ_{A_t}=Σ_{t<T}(μ_*−μ_{A_t})=Σ_i Δ_i N_i(T).\[\begin{aligned} R_T&=T\mu_*-\sum_{t<T}\mu_{A_t}\\ &=\sum_{t<T}(\mu_*-\mu_{A_t})\\ &=\sum_i\Delta_i N_i(T).\end{aligned}\]Swipe to read the full formula →
Argument
Partition the finite time set by the chosen arm. This is a deterministic identity for any action trace; no reward law, independence or policy causality is used.
Scope
It alone provides no useful bound on \(N_i(T)\), realized reward fluctuations or regret rate.
Assessment criteria for the natural-language task
Expand the finite time sum correctly.
Group each time exactly once by its chosen arm.
Separate deterministic accounting from statistical or causal assumptions and from a rate theorem.
Relation: source-correspondence. The declaration anchors this core; formal companion scope is stated separately.
Actual constants in the checked reference proof
Project constants read from the compiled proof value: BanditRLProof.ActionTrace, BanditRLProof.realMeanRegret_eq_sum_gap_mul_pullCount.
Axioms: Classical.choice, Quot.sound, propext.
Recorded library environment: f7e3ec872aea7c82dc2bcc4a825058b358c0f987. This is direct fixed-target proof evidence, not the transitive dependency closure of the library theorem. Full type/proof constants and environment receipt.
Countable subadditivity gives Formula renderer unavailable; readable fallback: P(∪_n B_n)≤Σ_n P(B_n)≤Σ_n δ/2^(n+1)=δ.\[\begin{aligned}\mathbb P(\bigcup_{n\ge0}B_n)&\le\sum_{n\ge0}\mathbb P(B_n)\\ &\le\sum_{n\ge0}\frac{\delta}{2^{n+1}}=\delta.\end{aligned}\]Swipe to read the full formula →
Event dependence
Independence between the events is unnecessary.
Statistical obligation
The geometric-series identity only allocates a budget; it does not prove \(\mathbb P(B_n)\le\frac{\delta}{2^{n+1}}\). For adaptive histories, the algorithm must supply applicable conditional bounds or unconditional event bounds for the actual process, not fixed-design statements silently applied after selection.
Assessment criteria for the natural-language task
Use countable subadditivity under one law.
Sum the schedule from n=0 with correct normalization.
Reject a need for event independence and distinguish the missing statistical supplier.
Relation: source-correspondence. The declaration anchors this core; formal companion scope is stated separately.
Actual constants in the checked reference proof
Project constants read from the compiled proof value: BanditRLProof.Concentration.tsum_ofReal_geometricConfidenceShare.
Axioms: Classical.choice, Quot.sound, propext.
Recorded library environment: f7e3ec872aea7c82dc2bcc4a825058b358c0f987. This is direct fixed-target proof evidence, not the transitive dependency closure of the library theorem. Full type/proof constants and environment receipt.