Bandits.ArrayModel.measurable_pullCount_action_add_one_hist
No docstring.
Bandits.ArrayModel.measurable_pullCount_action_add_one_hist.{u_1, u_2} {π : Type u_1} {R : Type u_2} {mπ : MeasurableSpace π} {mR : MeasurableSpace R} [Nonempty π] [StandardBorelSpace π] [DecidableEq π] (alg : Learning.Algorithm π R) (n : β) : Measurable fun Ο => Learning.pullCount (action alg) (action alg (n + 1) Ο) (n + 1) ΟBandits.ArrayModel.measurable_pullCount_action_add_one_hist.{u_1, u_2} {π : Type u_1} {R : Type u_2} {mπ : MeasurableSpace π} {mR : MeasurableSpace R} [Nonempty π] [StandardBorelSpace π] [DecidableEq π] (alg : Learning.Algorithm π R) (n : β) : Measurable fun Ο => Learning.pullCount (action alg) (action alg (n + 1) Ο) (n + 1) Ο
Code
lemma measurable_pullCount_action_add_one_hist (alg : Algorithm π R) (n : β) :
Measurable[MeasurableSpace.comap (fun Ο β¦ (action alg (n + 1) Ο, hist alg Ο n)) inferInstance]
(fun Ο β¦ pullCount (action alg) (action alg (n + 1) Ο) (n + 1) Ο)Proof
by
simp_rw [pullCount_eq_sum]
refine measurable_sum _ fun i hi β¦ Measurable.ite ?_ (by fun_prop) (by fun_prop)
refine measurableSet_eq_fun ?_ (measurable_comp_comap _ measurable_fst)
rw [measurable_iff_comap_le]
simp_rw [hist_eq _ _ n]
rw [β measurable_iff_comap_le]
unfold action
refine Measurable.fst (mΞ³ := inferInstance) ?_
have : (hist alg Β· i β¨i, by grindβ©) =
(fun Ο : π Γ (Iic n β π Γ R) β¦ Ο.2 β¨i, by grindβ©) β
(fun Ο β¦ (action alg (n + 1) Ο, fun i : Iic n β¦ hist alg Ο i β¨i, by grindβ©)) := rfl
rw [this]
exact measurable_comp_comap _ (Measurable.prodMk (by fun_prop) (by fun_prop))Actions: 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: 10 project declarations, 79 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.