Bandits.ArrayModel.hasCondDistrib_reward_zero
No docstring.
Bandits.ArrayModel.hasCondDistrib_reward_zero.{u_1, u_2} {๐ : Type u_1} {R : Type u_2} {m๐ : MeasurableSpace ๐} {mR : MeasurableSpace R} [Nonempty ๐] [StandardBorelSpace ๐] [DecidableEq ๐] [Countable ๐] [StandardBorelSpace R] [Nonempty R] (alg : Learning.Algorithm ๐ R) (ฮฝ : ProbabilityTheory.Kernel ๐ R) [ProbabilityTheory.IsMarkovKernel ฮฝ] : ProbabilityTheory.HasCondDistrib (reward alg 0) (action alg 0) ฮฝ (arrayMeasure ฮฝ)Bandits.ArrayModel.hasCondDistrib_reward_zero.{u_1, u_2} {๐ : Type u_1} {R : Type u_2} {m๐ : MeasurableSpace ๐} {mR : MeasurableSpace R} [Nonempty ๐] [StandardBorelSpace ๐] [DecidableEq ๐] [Countable ๐] [StandardBorelSpace R] [Nonempty R] (alg : Learning.Algorithm ๐ R) (ฮฝ : ProbabilityTheory.Kernel ๐ R) [ProbabilityTheory.IsMarkovKernel ฮฝ] : ProbabilityTheory.HasCondDistrib (reward alg 0) (action alg 0) ฮฝ (arrayMeasure ฮฝ)
Code
lemma hasCondDistrib_reward_zero (alg : Algorithm ๐ R) (ฮฝ : Kernel ๐ R) [IsMarkovKernel ฮฝ] :
HasCondDistrib (reward alg 0) (action alg 0) ฮฝ (arrayMeasure ฮฝ)Proof
by
refine hasCondDistrib_of_condDistrib_eq (by fun_prop) (by fun_prop) ?_
refine (condDistrib_ae_eq_cond (by fun_prop) (by fun_prop)).trans ?_
rw [Filter.EventuallyEq, ae_iff_of_countable]
intro a ha
simp only [reward_zero]
calc ((arrayMeasure ฮฝ)[|action alg 0 โปยน' {a}]).map (fun ฯ โฆ ฯ.2 0 (action alg 0 ฯ))
_ = ((arrayMeasure ฮฝ)[|action alg 0 โปยน' {a}]).map (fun ฯ โฆ ฯ.2 0 a) := by
refine Measure.map_congr
(ae_cond_of_forall_mem ((measurableSet_singleton _).preimage (by fun_prop)) ?_)
intro x hx
simp only [Set.mem_preimage, Set.mem_singleton_iff] at hx
simp [hx]
_ = ฮฝ a := by
rw [cond_of_indepFun]
ยท exact map_snd_apply_arrayMeasure 0 a
ยท have : (fun ฯ โฆ ฯ.1 0) โแตข[arrayMeasure ฮฝ] fun ฯ โฆ ฯ.2 0 a :=
indepFun_fst_zero_snd_zero_action ฮฝ a
rw [action_zero]
exact this.comp (ฯ := initAlgFunction alg) (by fun_prop) measurable_id
ยท fun_prop
ยท fun_prop
ยท simp
ยท rwa [Measure.map_apply (by fun_prop) (by simp)] at haActions: Source ยท Open Issue
Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), the 5th 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: 13 project declarations, 91 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.