BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.

Lean module · Frontier

BanditRLProof.DelayedFeedback.Accounting

Generated source map for this Lean module.

Module map

Declarations
17
Placeholders
0

Imports

No project-local imports.

Imported by

BanditRLProof, BanditRLProof.DelayedFeedback.CausalView, BanditRLProof.DelayedFeedback.Processing

Declarations

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

def BanditRLProof.DelayedFeedback.observedBefore Compiled

Source rounds whose delayed feedback is available before the action at round `t`. The strict inequality matches the NeurIPS 2025 delayed-SAPO source: feedback generated at `s` arrives at the end of `s + delay s`, hence it can be used for the next action only when `s + delay s < t`.

def observedBefore (delay : Nat → Nat) (t : Nat) : Finset Nat
def BanditRLProof.DelayedFeedback.outstandingAt Compiled

Source rounds before `t` whose feedback is not yet available when the action at `t` is chosen. Future source rounds are excluded by `Finset.range t`.

def outstandingAt (delay : Nat → Nat) (t : Nat) : Finset Nat
theorem BanditRLProof.DelayedFeedback.observedBefore_disjoint_outstandingAt Compiled

Available and outstanding feedback form disjoint parts of the past.

theorem observedBefore_disjoint_outstandingAt (delay : Nat → Nat) (t : Nat) : Disjoint (observedBefore delay t) (outstandingAt delay t)
theorem BanditRLProof.DelayedFeedback.observedBefore_union_outstandingAt Compiled

Every source round before `t` is either available or outstanding.

theorem observedBefore_union_outstandingAt (delay : Nat → Nat) (t : Nat) : observedBefore delay t ∪ outstandingAt delay t = Finset.range t
theorem BanditRLProof.DelayedFeedback.card_observedBefore_add_card_outstandingAt Compiled

The available and outstanding counts add up to the number of past source rounds.

theorem card_observedBefore_add_card_outstandingAt (delay : Nat → Nat) (t : Nat) : (observedBefore delay t).card + (outstandingAt delay t).card = t
def BanditRLProof.DelayedFeedback.outstandingCount Compiled

Number of source rounds before `t` whose feedback cannot yet be used by the action at `t`. This action-time surface is kept separate from the paper's end-of-round `sigma(t)` until their one-based/zero-based index bridge is proved.

def outstandingCount (delay : Nat → Nat) (t : Nat) : Nat
def BanditRLProof.DelayedFeedback.maxOutstandingBeforeThrough Compiled

Largest action-time outstanding count through the inclusive horizon.

def maxOutstandingBeforeThrough (delay : Nat → Nat) (horizon : Nat) : Nat
theorem BanditRLProof.DelayedFeedback.outstandingCount_le_round Compiled

An action-time outstanding count never exceeds the number of past source rounds.

theorem outstandingCount_le_round (delay : Nat → Nat) (t : Nat) : outstandingCount delay t ≤ t
theorem BanditRLProof.DelayedFeedback.outstandingCount_le_maxOutstandingBeforeThrough Compiled

Every action-time outstanding count inside the horizon is bounded by the finite maximum surface.

theorem outstandingCount_le_maxOutstandingBeforeThrough (delay : Nat → Nat) {t horizon : Nat} (ht : t ≤ horizon) : outstandingCount delay t ≤ maxOutstandingBeforeThrough delay horizon
def BanditRLProof.DelayedFeedback.oneBasedDelayShift Compiled

Convert a one-based paper delay sequence into the zero-based source carrier used by `outstandingAt`: zero-based source `s` represents paper source round `s + 1`.

def oneBasedDelayShift (delay : Nat → Nat) (s : Nat) : Nat
def BanditRLProof.DelayedFeedback.paperMissingAtEnd Compiled

The paper's end-of-round missing-feedback set, represented on a zero-based finite carrier. An element `s` denotes paper round `s + 1`, and the predicate is exactly `(s + 1) + d_(s+1) > t` for source rounds at most `t`.

def paperMissingAtEnd (delay : Nat → Nat) (t : Nat) : Finset Nat
theorem BanditRLProof.DelayedFeedback.paperMissingAtEnd_eq_outstandingAt_oneBasedDelayShift Compiled

The source paper's one-based end-of-round missing set is exactly the action-time outstanding set after reindexing source rounds and delays. This lemma is the explicit off-by-one bridge; the two surfaces are not identified by notation alone.

theorem paperMissingAtEnd_eq_outstandingAt_oneBasedDelayShift (delay : Nat → Nat) (t : Nat) : paperMissingAtEnd delay t = outstandingAt (oneBasedDelayShift delay) t
def BanditRLProof.DelayedFeedback.paperMissingCount Compiled

Paper-facing count corresponding to `sigma(t)`, with paper rounds `1, ..., t` represented by zero-based source indices.

def paperMissingCount (delay : Nat → Nat) (t : Nat) : Nat
theorem BanditRLProof.DelayedFeedback.paperMissingCount_eq_outstandingCount_oneBasedDelayShift Compiled

Cardinal form of the one-based/end-of-round indexing bridge.

theorem paperMissingCount_eq_outstandingCount_oneBasedDelayShift (delay : Nat → Nat) (t : Nat) : paperMissingCount delay t = outstandingCount (oneBasedDelayShift delay) t
theorem BanditRLProof.DelayedFeedback.paperMissingCount_le_round Compiled

The paper-facing missing count at round `t` is at most `t`.

theorem paperMissingCount_le_round (delay : Nat → Nat) (t : Nat) : paperMissingCount delay t ≤ t
def BanditRLProof.DelayedFeedback.paperSigmaMaxThrough Compiled

Finite maximum of the paper-facing missing-count surface through an inclusive horizon.

def paperSigmaMaxThrough (delay : Nat → Nat) (horizon : Nat) : Nat
theorem BanditRLProof.DelayedFeedback.paperMissingCount_le_paperSigmaMaxThrough Compiled

Each paper-facing missing count is bounded by its finite maximum through the declared horizon.

theorem paperMissingCount_le_paperSigmaMaxThrough (delay : Nat → Nat) {t horizon : Nat} (ht : t ≤ horizon) : paperMissingCount delay t ≤ paperSigmaMaxThrough delay horizon