LeanMachineLearning

Bandits.ArrayModel.prob_exists_pullCount_eq_and_sumRewards_mem_le๐Ÿ”—

Lemma

No docstring.

๐Ÿ”—theorem
Bandits.ArrayModel.prob_exists_pullCount_eq_and_sumRewards_mem_le.{u_1} {๐“ : Type u_1} {m๐“ : MeasurableSpace ๐“} [DecidableEq ๐“] [Countable ๐“] [StandardBorelSpace ๐“] [Nonempty ๐“] {alg : Learning.Algorithm ๐“ โ„} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] (a : ๐“) (m : โ„•) {B : Set โ„} (hB : MeasurableSet B) : (arrayMeasure ฮฝ) {ฯ‰ | โˆƒ n, Learning.pullCount (action alg) a n ฯ‰ = m โˆง Learning.sumRewards (action alg) (reward alg) a n ฯ‰ โˆˆ B} โ‰ค (streamMeasure ฮฝ) {ฯ‰ | โˆ‘ i โˆˆ Finset.range m, ฯ‰ i a โˆˆ B}
Bandits.ArrayModel.prob_exists_pullCount_eq_and_sumRewards_mem_le.{u_1} {๐“ : Type u_1} {m๐“ : MeasurableSpace ๐“} [DecidableEq ๐“] [Countable ๐“] [StandardBorelSpace ๐“] [Nonempty ๐“] {alg : Learning.Algorithm ๐“ โ„} {ฮฝ : ProbabilityTheory.Kernel ๐“ โ„} [ProbabilityTheory.IsMarkovKernel ฮฝ] (a : ๐“) (m : โ„•) {B : Set โ„} (hB : MeasurableSet B) : (arrayMeasure ฮฝ) {ฯ‰ | โˆƒ n, Learning.pullCount (action alg) a n ฯ‰ = m โˆง Learning.sumRewards (action alg) (reward alg) a n ฯ‰ โˆˆ B} โ‰ค (streamMeasure ฮฝ) {ฯ‰ | โˆ‘ i โˆˆ Finset.range m, ฯ‰ i a โˆˆ B}

Code

lemma prob_exists_pullCount_eq_and_sumRewards_mem_le (a : ๐“) (m : โ„•) {B : Set โ„}
    (hB : MeasurableSet B) : ๐”“ {ฯ‰ | โˆƒ n, pullCount A a n ฯ‰ = m โˆง sumRewards A R a n ฯ‰ โˆˆ B} โ‰ค
      streamMeasure ฮฝ {ฯ‰ | โˆ‘ i โˆˆ range m, ฯ‰ i a โˆˆ B}
Proof
calc
    _ โ‰ค ๐”“ {ฯ‰ | โˆ‘ i โˆˆ range m, ฯ‰.2 i a โˆˆ B} := by
        apply measure_mono
        intro ฯ‰ โŸจn, hp, hnโŸฉ
        rwa [sumRewards_eq alg a n ฯ‰, hp] at hn
    _ = streamMeasure ฮฝ {ฯ‰ | โˆ‘ i โˆˆ range m, ฯ‰ i a โˆˆ B} :=
        (identDistrib_sum_range_snd a m).measure_mem_eq hB

Actions: Source ยท Open Issue

Meaning last changed in v4.34.0-rc2-14-gf86702d (2026-08-25), the 6th 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: 15 project declarations, 106 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.