LeanMachineLearning

Learning.randomSampling.image_action_tendsto_any๐Ÿ”—

Lemma

The minimum distance from image of actions to any function value tends to zero.

๐Ÿ”—theorem
Learning.randomSampling.image_action_tendsto_any.{u_1, u_2, u_3} {๐“ : Type u_1} {๐“จ : Type u_2} {ฮฉ : Type u_3} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} {mฮฉ : MeasurableSpace ฮฉ} {ฮผ : MeasureTheory.Measure ๐“} [MeasureTheory.IsProbabilityMeasure ฮผ] {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {A : โ„• โ†’ ฮฉ โ†’ ๐“} {Y : โ„• โ†’ ฮฉ โ†’ ๐“จ} {f : ๐“ โ†’ ๐“จ} [PseudoMetricSpace ๐“] [SecondCountableTopology ๐“] [OpensMeasurableSpace ๐“] [MeasureTheory.Measure.IsOpenPosMeasure ฮผ] [PseudoMetricSpace ๐“จ] [BorelSpace ๐“จ] (hfc : Continuous f) (h : IsAlgEnvSeq A Y (randomSampling ฮผ) (evalEnv f โ‹ฏ) P) (a : ๐“) {ฮต : โ„} (hฮต : 0 < ฮต) : Filter.Tendsto (fun i => P {x | ฮต โ‰ค Function.min fun j => dist (f (A (โ†‘j) x)) (f a)}) Filter.atTop (nhds 0)
Learning.randomSampling.image_action_tendsto_any.{u_1, u_2, u_3} {๐“ : Type u_1} {๐“จ : Type u_2} {ฮฉ : Type u_3} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} {mฮฉ : MeasurableSpace ฮฉ} {ฮผ : MeasureTheory.Measure ๐“} [MeasureTheory.IsProbabilityMeasure ฮผ] {P : MeasureTheory.Measure ฮฉ} [MeasureTheory.IsProbabilityMeasure P] {A : โ„• โ†’ ฮฉ โ†’ ๐“} {Y : โ„• โ†’ ฮฉ โ†’ ๐“จ} {f : ๐“ โ†’ ๐“จ} [PseudoMetricSpace ๐“] [SecondCountableTopology ๐“] [OpensMeasurableSpace ๐“] [MeasureTheory.Measure.IsOpenPosMeasure ฮผ] [PseudoMetricSpace ๐“จ] [BorelSpace ๐“จ] (hfc : Continuous f) (h : IsAlgEnvSeq A Y (randomSampling ฮผ) (evalEnv f โ‹ฏ) P) (a : ๐“) {ฮต : โ„} (hฮต : 0 < ฮต) : Filter.Tendsto (fun i => P {x | ฮต โ‰ค Function.min fun j => dist (f (A (โ†‘j) x)) (f a)}) Filter.atTop (nhds 0)

Code

lemma image_action_tendsto_any
    (h : IsAlgEnvSeq A Y (randomSampling ฮผ) (evalEnv f hfc.measurable) P)
    (a : ๐“) {ฮต : โ„} (hฮต : 0 < ฮต) :
    Tendsto (fun i => P {x | ฮต โ‰ค (fun (j : Iic i) โ†ฆ
      dist (f (A j.1 x)) (f a)).min}) atTop (๐“ 0)
Proof
by
  have hf := hfc.measurable
  rw [Metric.continuous_iff] at hfc
  obtain โŸจฮด, hฮด, hfcโŸฉ := hfc a ฮต hฮต
  refine action_tendsto_any 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 (A i.1 ฯ‰) a)
  by_contra! h_contra
  specialize hfc (A j.1 ฯ‰) h_contra
  have := (fun (j : Iic n) โ†ฆ dist (f (A (j) ฯ‰)) (f a)).min_le j
  linarith

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, 92 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.