LeanMachineLearning

Learning.randomSampling.tendsto_minβ‚€πŸ”—

Lemma

The minimum image action converges to the function's global minimum.

πŸ”—theorem
Learning.randomSampling.tendsto_minβ‚€.{u_1, u_3} {𝓐 : Type u_1} {Ξ© : Type u_3} {m𝓐 : MeasurableSpace 𝓐} {mΞ© : 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_min : βˆ€ (x : 𝓐), f a ≀ f x) : MeasureTheory.TendstoInMeasure P (fun n Ο‰ => Function.min fun i => f (A (↑i) Ο‰)) Filter.atTop fun x => f a
Learning.randomSampling.tendsto_minβ‚€.{u_1, u_3} {𝓐 : Type u_1} {Ξ© : Type u_3} {m𝓐 : MeasurableSpace 𝓐} {mΞ© : 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_min : βˆ€ (x : 𝓐), f a ≀ f x) : MeasureTheory.TendstoInMeasure P (fun n Ο‰ => Function.min fun i => f (A (↑i) Ο‰)) Filter.atTop fun x => f a

Code

lemma tendsto_minβ‚€ (h : IsAlgEnvSeq A R (randomSampling ΞΌ) (evalEnv f hfc.measurable) P)
    (hf_min : βˆ€ x, f a ≀ f x) :
    TendstoInMeasure P (fun n Ο‰ ↦ (fun (i : Iic n) ↦ f (A i.1 Ο‰)).min) atTop (fun _ ↦ f a)
Proof
by
  rw [tendstoInMeasure_iff_dist]
  intro Ξ΅ hΞ΅
  refine image_action_tendsto_any hfc h a hΞ΅ |> tendsto_zero_of_le <| ?_
  intro n
  refine measure_mono ?_
  simp only [Set.ofPred_subset_ofPred]
  intro ω hω
  rw [← argmin_spec]
  set j := argmin (fun (i : Iic n) ↦ dist (f (A i Ο‰)) (f a))
  refine hω.trans ?_
  rw [← argmin_spec]
  set k := argmin (fun (i : Iic n) ↦ f (A i Ο‰))
  have := hf_min (A k Ο‰)
  have : f (A k Ο‰) ≀ f (A j Ο‰) := isMinOn_argmin (fun (i : Iic n) ↦ f (A i Ο‰)) j
  simp [Real.dist_eq]
  grind

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.