Bandits.condIndepFun_reward_stepsUntil_action'
No docstring.
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 ฮฉ] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (a : ๐) (m n : โ) : ProbabilityTheory.CondIndepFun (MeasurableSpace.comap (A n) inferInstance) โฏ (R n) (Set.indicator {ฯ | Learning.stepsUntil A a m ฯ = โn} fun x => 1) PBandits.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 ฮฉ] (h : Learning.IsAlgEnvSeq A R alg (Learning.stationaryEnv ฮฝ) P) (a : ๐) (m n : โ) : ProbabilityTheory.CondIndepFun (MeasurableSpace.comap (A n) inferInstance) โฏ (R n) (Set.indicator {ฯ | Learning.stepsUntil A a m ฯ = โn} fun x => 1) P
Code
lemma condIndepFun_reward_stepsUntil_action' [StandardBorelSpace ฮฉ]
(h : IsAlgEnvSeq A R alg (stationaryEnv ฮฝ) P) (a : ๐) (m n : โ) :
R n โแตข[A n, h.measurable_action n; P] {ฯ | stepsUntil A a m ฯ = โn}.indicator (fun _ โฆ 1)Proof
by
-- the indicator of `stepsUntil ... = n` is a function of `hist (n-1)` and `action n`.
-- It thus suffices to use the independence of `reward n` and `hist (n-1)` conditionally
-- on `action n`.
have hA := h.measurable_action
have hR := h.measurable_feedback
by_cases hn : n = 0
ยท have h_indep : R 0 โแตข[A 0, hA 0; P] A 0 :=
condIndepFun_self_right (by fun_prop) (by fun_prop)
simp only [hn]
refine h_indep.of_measurable_right (hX := hA 0) ?_
exact measurable_comap_indicator_stepsUntil_eq_zero a m
ยท have h_indep : R n โแตข[A n, hA n; P] fun ฯ โฆ (history A R (n - 1) ฯ, A n ฯ) :=
IsAlgEnvSeq.condIndepFun_feedback_history_action_action' h n (by grind)
refine h_indep.of_measurable_right (hX := hA n) ?_
exact measurable_comap_indicator_stepsUntil_eq h a m nActions: 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: 8 project declarations, 72 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.