Bandits.ArrayModel.indepFun_fst_aux
No docstring.
-
π : Type u_1mπ : MeasurableSpace πA measurable space is a space equipped with a Ο-algebra. -
π‘ : Type u_2mπ‘ : MeasurableSpace π‘
-
Ξ½ : ProbabilityTheory.Kernel π π‘A kernel from a measurable spaceΞ±to another measurable spaceΞ²is a measurable functionΞΊ : Ξ± β Measure Ξ².ProbabilityTheory.IsMarkovKernel Ξ½A kernel is a Markov kernel if every measure in its image is a probability measure. -
n : β
ProbabilityTheory.IndepFun (fun Ο => Ο.1 n) (fun Ο => (fun i => Ο.1 βi, Ο.2)) (arrayMeasure Ξ½)Two functions are independent if the two measurable space structures they generate are independent.MeasurableSpace : Type u_6 β Type u_6A measurable space is a space equipped with a Ο-algebra.
ProbabilityTheory.IsMarkovKernel : {Ξ± : Type u_1} β
{Ξ² : Type u_2} β {mΞ± : MeasurableSpace Ξ±} β {mΞ² : MeasurableSpace Ξ²} β ProbabilityTheory.Kernel Ξ± Ξ² β PropA kernel is a Markov kernel if every measure in its image is a probability measure.
ProbabilityTheory.Kernel : (Ξ± : Type u_1) β (Ξ² : Type u_2) β [MeasurableSpace Ξ±] β [MeasurableSpace Ξ²] β Type (max u_1 u_2)A kernel from a measurable space `Ξ±` to another measurable space `Ξ²` is a measurable function `ΞΊ : Ξ± β Measure Ξ²`. The measurable space structure on `MeasureTheory.Measure Ξ²` is given by `MeasureTheory.Measure.instMeasurableSpace`. A map `ΞΊ : Ξ± β MeasureTheory.Measure Ξ²` is measurable iff `β s : Set Ξ², MeasurableSet s β Measurable (fun a β¦ ΞΊ a s)`.
Nat : TypeThe natural numbers, starting at zero. This type is special-cased by both the kernel and the compiler, and overridden with an efficient implementation. Both use a fast arbitrary-precision arithmetic library (usually [GMP](https://gmplib.org/)); at runtime, `Nat` values that are sufficiently small are unboxed.
ProbabilityTheory.IndepFun : {Ξ© : Type u_1} β
{Ξ² : Type u_6} β
{Ξ³ : Type u_7} β
{_mΞ© : MeasurableSpace Ξ©} β
[MeasurableSpace Ξ²] β
[MeasurableSpace Ξ³] β
(Ξ© β Ξ²) β (Ξ© β Ξ³) β autoParam (MeasureTheory.Measure Ξ©) ProbabilityTheory.IndepFun._auto_1 β PropTwo functions are independent if the two measurable space structures they generate are independent. For a function `f` with codomain having measurable space structure `m`, the generated measurable space structure is `MeasurableSpace.comap f m`. We use the notation `f βα΅’[ΞΌ] g` for `IndepFun f g ΞΌ` (scoped in `ProbabilityTheory`).
Prod.mk : {Ξ± : Type u} β {Ξ² : Type v} β Ξ± β Ξ² β Ξ± Γ Ξ²Constructs a pair. This is usually written `(x, y)` instead of `Prod.mk x y`. Conventions for notations in identifiers: * The recommended spelling of `(a, b)` in identifiers is `mk`.
Bandits.ArrayModel.arrayMeasure : {π : Type u_1} β
{π‘ : Type u_2} β
{mπ : MeasurableSpace π} β
{mπ‘ : MeasurableSpace π‘} β ProbabilityTheory.Kernel π π‘ β MeasureTheory.Measure (Bandits.ArrayModel.probSpace π π‘)Probability measure for the array model of stochastic bandits.Go to its page
Code
lemma indepFun_fst_aux (Ξ½ : Kernel π π‘) [IsMarkovKernel Ξ½] (n : β) :
(fun Ο β¦ Ο.1 n) βα΅’[arrayMeasure Ξ½] (fun Ο β¦ (fun (i : Fin n) β¦ Ο.1 i, Ο.2))Proof
by
have h : IndepFun (fun Ο : β β I β¦ Ο n) (fun Ο (i : Fin n) β¦ Ο i)
(Measure.infinitePi fun _ β¦ volume) := by
refine (iIndepFun_infinitePi fun _ β¦ measurable_id).indepFun_of_measurable_iSup_comap
(fun _ β¦ measurable_pi_apply _) (S := Set.Iio n) (by simp) ?_
rw [measurable_iff_comap_le, MeasurableSpace.comap_pi]
exact iSup_le fun i β¦ le_iSupβ_of_le (i : β) (Set.mem_Iio.2 i.2) le_rfl
exact h.fst_prod (Ξ½ := streamMeasure Ξ½) (by fun_prop) (by fun_prop)Meaning last changed in v4.35.0-rc2-1-g61e506b (2026-09-22), the 3th 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: 3 project declarations, 29 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.