Lean module · OFUL
BanditRLProof.OFULScheduledUnboundedStoppingTimeExpectedRegret
This module removes the deterministic stopping-horizon bound from the expected pseudo-regret interface. It retains the exact bad-event random-envelope integral: controlling that term by delta requires an additional moment or tail contract and is not a consequence of first-moment stopping-time integrability alone. This is an event decomposition, not optional stopping.
Module map
Imports
BanditRLProof.OFULScheduledBoundedStoppingTimeExpectedRegret
Imported by
BanditRLProof, BanditRLProof.OFULScheduledUnboundedStoppingTimeExpectedRegretRate, BanditRLProof.RL.FiniteHorizonNaturalCausalInverseSqrtThresholdUnboundedHittingAfterIntegrableFiniteStoppingTime
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
structure
BanditRLProof.OFUL.IntegrableFiniteStoppingTime
Compiled
Semantic finiteness and first-moment regularity for a `WithTop Nat` stopping time. The a.e. finiteness field rules out interpreting `untopA` at `top`; the integrability field controls the random all-round gap envelope.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.IntegrableFiniteStoppingTimeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
structure IntegrableFiniteStoppingTime {Omega : Type v} [MeasurableSpace Omega] (mu : Measure Omega) (tau : Omega -> WithTop Nat) : Prop where
theorem
BanditRLProof.OFUL.abs_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_le_randomHorizonEnvelope
Compiled
A stopped pseudo-regret obeys the gap envelope at its random horizon.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.abs_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_le_randomHorizonEnvelopeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem abs_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_le_randomHorizonEnvelope {K : Nat} {Feature : Type u} [Fintype Feature] (thetaStar : Feature -> Real) (actionFeature : Fin K -> Feature -> Real) (S : Real) (hS : 0 <= S) (L2 : Real) (hactionFeatureBound : forall action, dotProduct (actionFeature action) (actionFeature action) <= L2) (best : Fin K) (htheta : euclideanLength thetaStar <= S) (tau : (Nat -> Fin K × Real) -> WithTop Nat) (trajectory : Nat -> Fin K × Real) : |stoppedValue (fun horizon trajectory => canonicalStandardHighProbabilityPseudoRegret thetaStar actionFeature best horizon trajectory) tau trajectory| <= standardScalarAllRoundGapEnvelope S (tau trajectory).untopA L2
theorem
BanditRLProof.OFUL.measurable_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_of_stoppingTime
Compiled
A progressively measurable pseudo-regret process remains measurable at an arbitrary stopping time.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.measurable_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_of_stoppingTimeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_of_stoppingTime {K : Nat} {Feature : Type u} [Fintype Feature] (thetaStar : Feature -> Real) (actionFeature : Fin K -> Feature -> Real) (best : Fin K) (tau : (Nat -> Fin K × Real) -> WithTop Nat) (htau : IsStoppingTime (canonicalHistoryTrajectoryAllRoundFiltration (K := K)) tau) : Measurable (stoppedValue (fun horizon trajectory => canonicalStandardHighProbabilityPseudoRegret thetaStar actionFeature best horizon trajectory) tau)
theorem
BanditRLProof.OFUL.measurable_stoppedValue_telescopingHighProbabilityPseudoRegretBound_of_stoppingTime
Compiled
The explicit deterministic budget process remains measurable at an arbitrary stopping time.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.measurable_stoppedValue_telescopingHighProbabilityPseudoRegretBound_of_stoppingTimeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_stoppedValue_telescopingHighProbabilityPseudoRegretBound_of_stoppingTime {K : Nat} {Feature : Type u} [Fintype Feature] (R delta lambda S L2 : Real) (tau : (Nat -> Fin K × Real) -> WithTop Nat) (htau : IsStoppingTime (canonicalHistoryTrajectoryAllRoundFiltration (K := K)) tau) : Measurable (stoppedValue (fun horizon (_trajectory : Nat -> Fin K × Real) => telescopingHighProbabilityPseudoRegretBound (Feature := Feature) R delta lambda S horizon L2) tau)
theorem
BanditRLProof.OFUL.integrable_standardScalarAllRoundGapEnvelope_at_stoppingTime
Compiled
First-moment stopping-time regularity makes the random gap envelope integrable.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.integrable_standardScalarAllRoundGapEnvelope_at_stoppingTimeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem integrable_standardScalarAllRoundGapEnvelope_at_stoppingTime {K : Nat} (mu : Measure (Nat -> Fin K × Real)) (S L2 : Real) (tau : (Nat -> Fin K × Real) -> WithTop Nat) (hstop : IntegrableFiniteStoppingTime mu tau) : Integrable (fun trajectory => standardScalarAllRoundGapEnvelope S (tau trajectory).untopA L2) mu
theorem
BanditRLProof.OFUL.integrable_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_of_integrableFiniteStoppingTime
Compiled
The stopped pseudo-regret is integrable under first-moment stopping-time regularity. No deterministic stopping-horizon bound is used.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.integrable_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_of_integrableFiniteStoppingTimeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem integrable_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_of_integrableFiniteStoppingTime {K : Nat} {Feature : Type u} [Fintype Feature] (mu : Measure (Nat -> Fin K × Real)) (thetaStar : Feature -> Real) (actionFeature : Fin K -> Feature -> Real) (S : Real) (hS : 0 <= S) (L2 : Real) (hactionFeatureBound : forall action, dotProduct (actionFeature action) (actionFeature action) <= L2) (best : Fin K) (htheta : euclideanLength thetaStar <= S) (tau : (Nat -> Fin K × Real) -> WithTop Nat) (htau : IsStoppingTime (canonicalHistoryTrajectoryAllRoundFiltration (K := K)) tau) (hstop : IntegrableFiniteStoppingTime mu tau) : Integrable (stoppedValue (fun horizon trajectory => canonicalStandardHighProbabilityPseudoRegret thetaStar actionFeature best horizon trajectory) tau) mu
theorem
BanditRLProof.OFUL.measurableSet_telescopingCanonicalExplicitHighProbabilityPseudoRegretStoppedViolationSet_of_stoppingTime
Compiled
The stopped explicit violation event is measurable without a deterministic stopping bound.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.measurableSet_telescopingCanonicalExplicitHighProbabilityPseudoRegretStoppedViolationSet_of_stoppingTimeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurableSet_telescopingCanonicalExplicitHighProbabilityPseudoRegretStoppedViolationSet_of_stoppingTime {K : Nat} {Feature : Type u} [Fintype Feature] (lambda : Real) (thetaStar : Feature -> Real) (actionFeature : Fin K -> Feature -> Real) (R delta S L2 : Real) (best : Fin K) (tau : (Nat -> Fin K × Real) -> WithTop Nat) (htau : IsStoppingTime (canonicalHistoryTrajectoryAllRoundFiltration (K := K)) tau) : MeasurableSet (telescopingCanonicalExplicitHighProbabilityPseudoRegretStoppedViolationSet lambda thetaStar actionFeature R delta S L2 best tau)
theorem
BanditRLProof.OFUL.integral_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_le_integral_stoppedBudget_add_integral_badIndicator_randomHorizonEnvelope
Compiled
Exact unbounded-stopping expectation decomposition. The bad-event term remains an integral of the random horizon envelope.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.integral_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_le_integral_stoppedBudget_add_integral_badIndicator_randomHorizonEnvelopeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem integral_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_le_integral_stoppedBudget_add_integral_badIndicator_randomHorizonEnvelope {K : Nat} {Feature : Type u} [Fintype Feature] [Nonempty Feature] (mu : Measure (Nat -> Fin K × Real)) (lambda : Real) (hlambda : 0 < lambda) (thetaStar : Feature -> Real) (actionFeature : Fin K -> Feature -> Real) (R : Real) (hR : 0 <= R) (delta : Real) (hdelta : 0 < delta) (hdelta_one : delta <= 1) (S : Real) (hS : 0 <= S) (L2 : Real) (hL2 : 0 <= L2) (hactionFeatureBound : forall action, dotProduct (actionFeature action) (actionFeature action) <= L2) (best : Fin K) (htheta : euclideanLength thetaStar <= S) (tau : (Nat -> Fin K × Real) -> WithTop Nat) (htau : IsStoppingTime (canonicalHistoryTrajectoryAllRoundFiltration (K := K)) tau) (hstop : IntegrableFiniteStoppingTime mu tau) (hbudgetIntegrable : Integrable (stoppedValue (fun horizon (_trajectory : Nat -> Fin K × Real) => telescopingHighProbabilityPseudoRegretBound (Feature := Feature) R delta lambda S horizon L2) tau) mu) : integral mu (stoppedValue (fun horizon trajectory => canonicalStandardHighProbabilityPseudoRegret thetaStar actionFeature best horizon trajectory) tau) <= integral mu (stoppedValue (fun horizon (_trajectory : Nat -> Fin K × Real) => telescopingHighProbabilityPseudoRegretBound (Feature := Feature) R delta lambda S horizon L2) tau) + integral mu ((telescopingCanonicalExplicitHighProbabilityPseudoRegretStoppedViolationSet lambda thetaStar actionFeature R delta S L2 best tau).indicator (fun trajectory => standardScalarAllRoundGapEnvelope S (tau trajectory).untopA L2))
theorem
BanditRLProof.OFUL.integral_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_nonneg_and_le_integral_stoppedBudget_add_integral_badIndicator_randomHorizonEnvelope_and_stoppedViolation_measure_le_of_linearSubgaussianEnvironment_of_featureBound_le_regularization
Compiled
Canonical generated-trajectory unbounded-stopping theorem. The same stopped violation event has the compiled `delta` tail, while its random-envelope overflow remains explicit in the expectation bound.
Used in these reading views: Bandit Book
5. OFUL, self-normalized confidence, and stopping times
Canonical node identity
declaration:BanditRLProof.OFUL.integral_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_nonneg_and_le_integral_stoppedBudget_add_integral_badIndicator_randomHorizonEnvelope_and_stoppedViolation_measure_le_of_linearSubgaussianEnvironment_of_featureBound_le_regularizationReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem integral_stoppedValue_canonicalStandardHighProbabilityPseudoRegret_nonneg_and_le_integral_stoppedBudget_add_integral_badIndicator_randomHorizonEnvelope_and_stoppedViolation_measure_le_of_linearSubgaussianEnvironment_of_featureBound_le_regularization {K : Nat} {Feature : Type u} [Fintype Feature] [DecidableEq Feature] [Nonempty Feature] (hK : 0 < K) (lambda : Real) (hlambda : 0 < lambda) (thetaStar : Feature -> Real) (actionFeature : Fin K -> Feature -> Real) (R : Real) (hR : 0 < R) (delta : Real) (hdelta : 0 < delta) (hdelta_one : delta <= 1) (S : Real) (hS : 0 <= S) (environment : Thompson.HistoryEnvironment (Fin K) Real) (L2 : Real) (hL2 : 0 <= L2) (hactionFeatureBound : forall action, dotProduct (actionFeature action) (actionFeature action) <= L2) (hL2lambda : L2 <= lambda) (best : Fin K) (hbest : IsOptimalLinearArm thetaStar actionFeature best) (source : CanonicalLinearSubgaussianEnvironmentLaw hK thetaStar actionFeature R S environment) (tau : (Nat -> Fin K × Real) -> WithTop Nat) (htau : IsStoppingTime (canonicalHistoryTrajectoryAllRoundFiltration (K := K)) tau) (hstop : IntegrableFiniteStoppingTime (Thompson.canonicalHistoryTrajectoryMeasure (finiteHistoryTelescopingScalarRidgeOptimisticAlgorithm hK lambda actionFeature R delta S) environment) tau) (hbudgetIntegrable : Integrable (stoppedValue (fun horizon (_trajectory : Nat -> Fin K × Real) => telescopingHighProbabilityPseudoRegretBound (Feature := Feature) R delta lambda S horizon L2) tau) (Thompson.canonicalHistoryTrajectoryMeasure (finiteHistoryTelescopingScalarRidgeOptimisticAlgorithm hK lambda actionFeature R delta S) environment)) : let mu := Thompson.canonicalHistoryTrajectoryMeasure (finiteHistoryTelescopingScalarRidgeOptimisticAlgorithm hK lambda actionFeature R delta S) environment let stoppedRegret := stoppedValue (fun horizon trajectory => canonicalStandardHighProbabilityPseudoRegret thetaStar actionFeature best horizon trajectory) tau let stoppedBudget := stoppedValue (fun horizon (_trajectory : Nat -> Fin K × Real) => telescopingHighProbabilityPseudoRegretBound (Feature := Feature) R delta lambda S horizon L2) tau let bad := telescopingCanonicalExplicitHighProbabilityPseudoRegretStoppedViolationSet lambda thetaStar actionFeature R delta S L2 best tau let overflow := bad.indicator (fun trajectory => standardScalarAllRoundGapEnvelope S (tau trajectory).untopA L2) 0 <= integral mu stoppedRegret /\ integral mu stoppedRegret <= integral mu stoppedBudget + integral mu overflow /\ mu bad <= ENNReal.ofReal delta