LeanMachineLearning

Bandits.condIndepFun_reward_stepsUntil_action๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Bandits.condIndepFun_reward_stepsUntil_action.{u_1, u_2} {๐“ : Type u_1} {ฮฉ : Type u_2} {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} [DecidableEq ๐“] {A : โ„• โ†’ ฮฉ โ†’ ๐“} {R : โ„• โ†’ ฮฉ โ†’ โ„} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm ๐“ โ„} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] [StandardBorelSpace ๐“] [Nonempty ๐“] [StandardBorelSpace ฮฉ] [Countable ๐“] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (a : ๐“) (m n : โ„•) : ProbabilityTheory.CondIndepFun (MeasurableSpace.comap (fun ฯ‰ => A n (Prod.fst ฯ‰)) m๐“) โ‹ฏ (fun ฯ‰ => R n (Prod.fst ฯ‰)) (Set.indicator {ฯ‰ | Learning.stepsUntil A a m (Prod.fst ฯ‰) = โ†‘n} fun x => 1) (MeasureTheory.Measure.prod P (streamMeasure ฮฝ))
Bandits.condIndepFun_reward_stepsUntil_action.{u_1, u_2} {๐“ : Type u_1} {ฮฉ : Type u_2} {m๐“ : MeasurableSpace ๐“} {mฮฉ : MeasurableSpace ฮฉ} [DecidableEq ๐“] {A : โ„• โ†’ ฮฉ โ†’ ๐“} {R : โ„• โ†’ ฮฉ โ†’ โ„} {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {alg : Learning.Algorithm ๐“ โ„} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] [StandardBorelSpace ๐“] [Nonempty ๐“] [StandardBorelSpace ฮฉ] [Countable ๐“] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (a : ๐“) (m n : โ„•) : ProbabilityTheory.CondIndepFun (MeasurableSpace.comap (fun ฯ‰ => A n (Prod.fst ฯ‰)) m๐“) โ‹ฏ (fun ฯ‰ => R n (Prod.fst ฯ‰)) (Set.indicator {ฯ‰ | Learning.stepsUntil A a m (Prod.fst ฯ‰) = โ†‘n} fun x => 1) (MeasureTheory.Measure.prod P (streamMeasure ฮฝ))

Code

lemma condIndepFun_reward_stepsUntil_action [StandardBorelSpace ฮฉ] [Countable ๐“]
    (h : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P)
    (a : ๐“) (m n : โ„•) :
    CondIndepFun (m๐“.comap (fun ฯ‰ โ†ฆ A n ฯ‰.1)) ((h.measurable_action n).comp measurable_fst).comap_le
      (fun ฯ‰ โ†ฆ R n ฯ‰.1) ({ฯ‰ | stepsUntil A a m ฯ‰.1 = โ†‘n}.indicator (fun _ โ†ฆ 1)) ๐”“
Proof
by
  have hA := h.measurable_action
  have hR := h.measurable_feedback
  exact condIndepFun_fst_prod (ฮฝ := streamMeasure ฮฝ)
    (measurable_indicator_stepsUntil_eq h a m n) (by fun_prop) (by fun_prop)
    (condIndepFun_reward_stepsUntil_action' h a m n)

Actions: Source ยท Open Issue

Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), the 4th recorded change.

Self-contained, with its dependencies inlined and proofs replaced by sorry: download the raw file ยท open it in the Lean web editor.

Dependency graph

Audit surface: 10 project declarations, 105 external constants

โœ“ Proved: no sorry anywhere in its closure

This is the tool's own reading of one build's recorded axioms, and it is not robust against an author who wants it to pass. Checking meant to be relied on should go through Comparator, which replays the proof through the kernel from an export against an explicit list of permitted axioms.