LeanMachineLearning

Bandits.hasLaw_ZπŸ”—

Lemma

No docstring.

πŸ”—theorem
Bandits.hasLaw_Z.{u_1, u_2} {𝓐 : Type u_1} {Ξ© : Type u_2} {m𝓐 : MeasurableSpace 𝓐} {mΞ© : MeasurableSpace Ξ©} {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] {Ξ½ : ProbabilityTheory.Kernel 𝓐 ℝ} [ProbabilityTheory.IsMarkovKernel Ξ½] (a : 𝓐) (m : β„•) : ProbabilityTheory.HasLaw (fun Ο‰ => Prod.snd Ο‰ m a) (Ξ½ a) (MeasureTheory.Measure.prod P (streamMeasure Ξ½))
Bandits.hasLaw_Z.{u_1, u_2} {𝓐 : Type u_1} {Ξ© : Type u_2} {m𝓐 : MeasurableSpace 𝓐} {mΞ© : MeasurableSpace Ξ©} {P : MeasureTheory.Measure Ξ©} [MeasureTheory.IsProbabilityMeasure P] {Ξ½ : ProbabilityTheory.Kernel 𝓐 ℝ} [ProbabilityTheory.IsMarkovKernel Ξ½] (a : 𝓐) (m : β„•) : ProbabilityTheory.HasLaw (fun Ο‰ => Prod.snd Ο‰ m a) (Ξ½ a) (MeasureTheory.Measure.prod P (streamMeasure Ξ½))

Code

lemma hasLaw_Z (a : 𝓐) (m : β„•) :
  HasLaw (fun Ο‰ ↦ Ο‰.2 m a) (Ξ½ a) 𝔓 where
  map_eq
Proof
by
    calc (𝔓).map (fun Ο‰ ↦ Ο‰.2 m a)
    _ = ((𝔓).snd).map (fun Ο‰ ↦ Ο‰ m a) := by
      rw [Measure.snd, Measure.map_map (by fun_prop) (by fun_prop)]
      rfl
    _ = (streamMeasure Ξ½).map (fun Ο‰ ↦ Ο‰ m a) := by simp
    _ = ((Measure.infinitePi fun _ ↦ Measure.infinitePi Ξ½).map (fun Ο‰ ↦ Ο‰ m)).map
        (fun Ο‰ ↦ Ο‰ a) := by
      rw [streamMeasure, Measure.map_map (by fun_prop) (by fun_prop)]
      rfl
    _ = Ξ½ a := by simp_rw [(measurePreserving_eval_infinitePi _ _).map_eq]

Actions: Source Β· Open Issue

Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), 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: 1 project declarations, 17 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.