Lean module · Frontier
BanditRLProof.DelayedFeedback.OrderedProcessingTransition
This module formalizes the deterministic structural content of one iteration of Algorithm 5 lines 3--4 and 7--8. A newly observed source round is appended to the paper sequence before the line-7 confidence snapshot is formed. The line-8 successor then removes exactly the arms selected by that snapshot.
Module map
Imports
BanditRLProof.DelayedFeedback.Processing, BanditRLProof.DelayedFeedback.RecursiveProcessedState
Imported by
BanditRLProof, BanditRLProof.DelayedFeedback.EliminatedArmInitialization, BanditRLProof.DelayedFeedback.OrderedNoSwitchTrace
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
structure
BanditRLProof.DelayedFeedback.DelayedSAPOStructuralRoundState
Compiled
Structural state while Algorithm 5 is processing newly observed feedback before action `currentActionRound`. `processedOrder` is the paper sequence `S`, not a sorted set of source rounds. The current intra-round active set is contained in the previous action round's line-15 active set. Together with the antitone source-round trace, this is the primitive invariant from which a line-7 trace summary obtains current-to-source active persistence.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPOStructuralRoundStateReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
structure DelayedSAPOStructuralRoundState (K : Nat) where
theorem
BanditRLProof.DelayedFeedback.DelayedSAPOStructuralRoundState.source_le_roundStart
Compiled
Every source already in the processed order lies no later than the action round immediately preceding the current one.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPOStructuralRoundState.source_le_roundStartReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem source_le_roundStart {K : Nat} (state : DelayedSAPOStructuralRoundState K) {s : Nat} (hs : s ∈ state.processedOrder) : s <= state.currentActionRound - 1
theorem
BanditRLProof.DelayedFeedback.DelayedSAPOStructuralRoundState.currentActive_subset_activeAtSourceRound
Compiled
The current intra-round active set is contained in the source-round active set of every previously processed item.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPOStructuralRoundState.currentActive_subset_activeAtSourceRoundReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem currentActive_subset_activeAtSourceRound {K : Nat} (state : DelayedSAPOStructuralRoundState K) {s : Nat} (hs : s ∈ state.processedOrder) : state.currentActive <= state.activeAtSourceRound s
structure
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne
Compiled
One source-faithful no-switch iteration of Algorithm 5's inner processing loop. `source_new` is exactly line 3's membership in `B(t) \ S`. The numerical fields are the values read by line 7 after line 4 has appended `sourceRound`; constructing them from observed losses is a separate recursive-state leaf.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOneReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
structure DelayedSAPONoSwitchProcessOne {K : Nat} (state : DelayedSAPOStructuralRoundState K) where
def
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.extendedOrder
Compiled
Algorithm 5 line 4: append the selected source to the end of the processing sequence.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.extendedOrderReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def extendedOrder {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) : List Nat
theorem
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.sourceRound_not_mem
Compiled
The line-3 source was not already present in the processed sequence.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.sourceRound_not_memReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem sourceRound_not_mem {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) : step.sourceRound ∉ state.processedOrder
theorem
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.extendedOrder_nodup
Compiled
Appending one genuinely new source preserves duplicate freedom.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.extendedOrder_nodupReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem extendedOrder_nodup {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) : step.extendedOrder.Nodup
theorem
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.extendedOrder_available
Compiled
Every source in the extended sequence satisfies the paper's exact strict availability condition at the current action round.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.extendedOrder_availableReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem extendedOrder_available {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) {s : Nat} (hs : s ∈ step.extendedOrder) : s + state.delayAt s < state.currentActionRound
theorem
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.extendedSource_le_roundStart
Compiled
Every source in the extended sequence is at most the previous action round.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.extendedSource_le_roundStartReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem extendedSource_le_roundStart {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) {s : Nat} (hs : s ∈ step.extendedOrder) : s <= state.currentActionRound - 1
theorem
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.currentActive_subset_extendedSourceActive
Compiled
The line-7 active set is contained in every source-time line-15 active set represented by the extended processing sequence.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.currentActive_subset_extendedSourceActiveReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem currentActive_subset_extendedSourceActive {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) {s : Nat} (hs : s ∈ step.extendedOrder) : state.currentActive <= state.activeAtSourceRound s
def
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.toPreEliminationSummary
Compiled
Line-7 trace summary after, not before, Algorithm 5 line 4 appends the newly observed source. Its source-index injectivity, strict availability, and current-to-source containment are derived from the ordered transition state.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.toPreEliminationSummaryReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def toPreEliminationSummary {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) : DelayedSAPOProcessedTraceSummary K where
theorem
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.line8RemainingActive_subset_currentActive
Compiled
The exact Algorithm-5 line-8 removal is contained in the active set read by the line-7 snapshot.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.line8RemainingActive_subset_currentActiveReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem line8RemainingActive_subset_currentActive {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) (horizon : Nat) : (step.toPreEliminationSummary.toConfidenceSnapshot horizon).remainingActive <= state.currentActive
def
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.afterLine8
Compiled
Algorithm 5 line 8 successor for the same action round. It preserves the ordered source sequence and updates only the intra-round active set to the exact line-7 complement.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.afterLine8Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def afterLine8 {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) (horizon : Nat) : DelayedSAPOStructuralRoundState K where
theorem
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.afterLine8_currentActive_subset_before
Compiled
Line 8 can only remove arms from the current intra-round active set.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.afterLine8_currentActive_subset_beforeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem afterLine8_currentActive_subset_before {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) (horizon : Nat) : (step.afterLine8 horizon).currentActive <= state.currentActive
theorem
BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.afterLine8_preserves_roundStart
Compiled
The line-8 successor remains below the active set at the start of the current action round, so another arbitrary new arrival can be processed.
Used in these reading views: Bandit Book
10. Automation, resources, and open routes
Canonical node identity
declaration:BanditRLProof.DelayedFeedback.DelayedSAPONoSwitchProcessOne.afterLine8_preserves_roundStartReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem afterLine8_preserves_roundStart {K : Nat} {state : DelayedSAPOStructuralRoundState K} (step : DelayedSAPONoSwitchProcessOne state) (horizon : Nat) : (step.afterLine8 horizon).currentActive <= state.activeAtSourceRound (state.currentActionRound - 1)