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

Lean module · Frontier

BanditRLProof.DelayedFeedback.StochasticGapHalfSet

The frozen Delayed SAPO source uses a Markov-style count for stochastic loss gaps: at most half of the gaps are greater than 2 * mu. This formalization promotes exactly the nonnegative domain used by that application and handles the zero-average case separately.

Module map

Declarations
6
Placeholders
0

Imports

No project-local imports.

Imported by

BanditRLProof

Declarations

Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.

def BanditRLProof.DelayedFeedback.finiteAverageGap Compiled

Arithmetic mean of a finite family of real gaps. Lean's total division makes this definition equal to zero when `K = 0`; the counting theorem below handles that empty case before using the denominator.

Used in these reading views: Bandit Book

10. Automation, resources, and open routes

Canonical node identitydeclaration:BanditRLProof.DelayedFeedback.finiteAverageGap

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable def finiteAverageGap {K : Nat} (gap : Fin K -> Real) : Real
def BanditRLProof.DelayedFeedback.aboveTwiceAverageGap Compiled

Indices whose gaps are strictly greater than twice the finite average, matching the strict word "greater" in the source statement of Lemma D.11.

Used in these reading views: Bandit Book

10. Automation, resources, and open routes

Canonical node identitydeclaration:BanditRLProof.DelayedFeedback.aboveTwiceAverageGap

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable def aboveTwiceAverageGap {K : Nat} (gap : Fin K -> Real) : Finset (Fin K)
theorem BanditRLProof.DelayedFeedback.two_mul_card_aboveTwiceAverageGap_le Compiled

Nonnegative-domain deterministic content used by the source's Lemma D.11. Nonnegativity is explicit rather than extending the promoted contract to an arbitrary signed family. The theorem includes `K = 0`; for positive `K`, its proof separately closes the zero-average branch before cancelling the positive average in the usual counting/Markov argument.

Used in these reading views: Bandit Book

10. Automation, resources, and open routes

Canonical node identitydeclaration:BanditRLProof.DelayedFeedback.two_mul_card_aboveTwiceAverageGap_le

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem two_mul_card_aboveTwiceAverageGap_le {K : Nat} (gap : Fin K -> Real) (hgap : forall i, 0 <= gap i) : 2 * (aboveTwiceAverageGap gap).card <= K
def BanditRLProof.DelayedFeedback.sourceStochasticLossGap Compiled

The stochastic loss gap convention used by the delayed-SAPO source: smaller mean loss is better, so the gap of arm `i` is `mean i - mean optimal`.

Used in these reading views: Bandit Book

10. Automation, resources, and open routes

Canonical node identitydeclaration:BanditRLProof.DelayedFeedback.sourceStochasticLossGap

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def sourceStochasticLossGap {K : Nat} (mean : Fin K -> Real) (optimal i : Fin K) : Real
theorem BanditRLProof.DelayedFeedback.sourceStochasticLossGap_nonneg Compiled

An optimal arm makes every source stochastic loss gap nonnegative.

Used in these reading views: Bandit Book

10. Automation, resources, and open routes

Canonical node identitydeclaration:BanditRLProof.DelayedFeedback.sourceStochasticLossGap_nonneg

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem sourceStochasticLossGap_nonneg {K : Nat} (mean : Fin K -> Real) (optimal : Fin K) (hoptimal : forall i, mean optimal <= mean i) (i : Fin K) : 0 <= sourceStochasticLossGap mean optimal i
theorem BanditRLProof.DelayedFeedback.two_mul_card_sourceStochasticLossGap_aboveTwiceAverage_le Compiled

Bandit specialization of the nonnegative-domain D.11 counting statement. Among the `K` stochastic loss gaps from an optimal arm, strictly fewer than half can exceed twice their average (and hence their cardinality is at most half). This is a deterministic producer; it does not assume or claim any generated delayed-feedback probability law.

Used in these reading views: Bandit Book

10. Automation, resources, and open routes

Indexed settings: Delayed and nonstationary bandits

Canonical node identitydeclaration:BanditRLProof.DelayedFeedback.two_mul_card_sourceStochasticLossGap_aboveTwiceAverage_le

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem two_mul_card_sourceStochasticLossGap_aboveTwiceAverage_le {K : Nat} (mean : Fin K -> Real) (optimal : Fin K) (hoptimal : forall i, mean optimal <= mean i) : 2 * (aboveTwiceAverageGap (sourceStochasticLossGap mean optimal)).card <= K