LeanMachineLearning

Bandits.iIndepFun_rewardByCount_add_one_actionπŸ”—

Lemma

From the authors

For each action a, the rewards by count (rewardByCount A R a (m + 1))_m are independent (and by hasLaw_rewardByCount_add_one identically distributed with law Ξ½ a).

Types
  • 𝓐 : Type u_1m𝓐 : MeasurableSpace 𝓐A measurable space is a space equipped with a Οƒ-algebra.DecidableEq 𝓐MeasurableSingletonClass 𝓐A typeclass mixin for MeasurableSpaces such that each singleton is measurable.Countable 𝓐A type Ξ± is countable if there exists an injective map Ξ± β†’ β„•.
  • Ξ© : Type u_2mΞ© : MeasurableSpace Ξ©
Given
  • O : β„• β†’ Ξ© β†’ Unit
  • A : β„• β†’ Ξ© β†’ 𝓐
  • R : β„• β†’ Ξ© β†’ ℝ
  • P : MeasureTheory.Measure Ξ©A measure is defined to be an outer measure that is countably additive on measurable sets, with the additional assumption that the outer measure is the canonical extension of the restricted measure.MeasureTheory.IsProbabilityMeasure PA measure ΞΌ is called a probability measure if ΞΌ univ = 1.
  • alg : Learning.Algorithm Unit 𝓐 ℝA stochastic, sequential algorithm.
  • Ξ½ : 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.
  • a : 𝓐
Then
ProbabilityTheory.iIndepFun (fun m Ο‰ => Learning.rewardByCount A R a (m + 1) Ο‰) (P.prod (streamMeasure Ξ½))
A family of functions defined on the same space Ξ© and taking values in possibly different spaces, each with a measurable space structure, is independent if the family of measurable space structures…
Code
lemma iIndepFun_rewardByCount_add_one_action (h : IsAlgEnvSeq O A R alg (stationaryEnv Ξ½) P)
    (a : 𝓐) :
    iIndepFun (fun m Ο‰ ↦ rewardByCount A R a (m + 1) Ο‰) 𝔓
Proof
(iIndepFun_rewardByCount_add_one h).precomp (g := fun m ↦ (a, m))
    fun _ _ hmn ↦ (Prod.mk.inj hmn).2

Meaning last changed in v4.34.0-rc2-76-g565f652 (2026-09-10), 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: 12 project declarations, 69 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.