LeanMachineLearning

Learning.randomSampling.tendsto_max🔗

Lemma

The maximum reward converges to the function's global maximum.

🔗theorem
Learning.randomSampling.tendsto_max.{u_1, u_3} {𝓐 : Type u_1} {Ω : Type u_3} {m𝓐 : MeasurableSpace 𝓐} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure 𝓐} [MeasureTheory.IsProbabilityMeasure μ] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {A : Ω 𝓐} [PseudoMetricSpace 𝓐] [SecondCountableTopology 𝓐] [OpensMeasurableSpace 𝓐] [MeasureTheory.Measure.IsOpenPosMeasure μ] {R : Ω } {f : 𝓐 } (hfc : Continuous f) {a : 𝓐} (h : IsAlgEnvSeq A R (randomSampling μ) (evalEnv f ) P) (hf_max : (x : 𝓐), f x f a) : MeasureTheory.TendstoInMeasure P (fun n ω => Function.max fun i => R (↑i) ω) Filter.atTop fun x => f a
Learning.randomSampling.tendsto_max.{u_1, u_3} {𝓐 : Type u_1} {Ω : Type u_3} {m𝓐 : MeasurableSpace 𝓐} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure 𝓐} [MeasureTheory.IsProbabilityMeasure μ] {P : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure P] {A : Ω 𝓐} [PseudoMetricSpace 𝓐] [SecondCountableTopology 𝓐] [OpensMeasurableSpace 𝓐] [MeasureTheory.Measure.IsOpenPosMeasure μ] {R : Ω } {f : 𝓐 } (hfc : Continuous f) {a : 𝓐} (h : IsAlgEnvSeq A R (randomSampling μ) (evalEnv f ) P) (hf_max : (x : 𝓐), f x f a) : MeasureTheory.TendstoInMeasure P (fun n ω => Function.max fun i => R (↑i) ω) Filter.atTop fun x => f a

Code

lemma tendsto_max (h : IsAlgEnvSeq A R (randomSampling μ) (evalEnv f hfc.measurable) P)
    (hf_max : ∀ x, f x ≤ f a) :
    TendstoInMeasure P (fun n ω ↦ (fun (i : Iic n) ↦ R i.1 ω).max) atTop (fun _ ↦ f a)
Proof
by
  refine TendstoInMeasure.congr_left (fun n ↦ ?_) <| tendsto_max₀ hfc h hf_max
  filter_upwards [feedback_evalEnv_ae_eq_eval_action_comp h Function.max] with ω hω
  rw [← hω]

Actions: Source · Open Issue

Meaning last changed in v4.34.0-rc2-1-g439785b (2026-08-23), the 4th 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, 87 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.