The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V18. Measure and integration

Mathlib.MeasureTheory.Function.SimpleFuncDense

24 declarations. Mathlib docs · Source

Density of simple functions

Show that each Borel measurable function can be approximated pointwise by a sequence of simple functions.

Main definitions

  • MeasureTheory.SimpleFunc.nearestPt (e : ℕ → α) (N : ℕ) : α →ₛ ℕ: the SimpleFunc sending each x : α to the point e k which is the nearest to x among e 0, ..., e N.
  • MeasureTheory.SimpleFunc.approxOn (f : β → α) (hf : Measurable f) (s : Set α) (y₀ : α) (h₀ : y₀ ∈ s) [SeparableSpace s] (n : ℕ) : β →ₛ α : a simple function that takes values in s and approximates f.

Main results

  • tendsto_approxOn (pointwise convergence): If f x ∈ s, then the sequence of simple approximations MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ n, evaluated at x, tends to f x as n tends to ∞.

Notation

  • α →ₛ β (local notation): the type of simple functions α → β.

Pointwise approximation by simple functions

theorem MeasureTheory.SimpleFunc.nearestPtInd.match_1.congr_eq_1 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (N : ℕ) → motive N.succ),
  x = 0 →
    (match x with
      | 0 => h_1 ()
      | N.succ => h_2 N) ≍
      h_1 ()

theorem TopologicalSpace.denseSeq.congr_simp E1 #

∀ (α : Type u) [t : TopologicalSpace α] [inst : TopologicalSpace.SeparableSpace α] [inst_1 : Nonempty α] (a a_1 : ℕ),
  a = a_1 → TopologicalSpace.denseSeq α a = TopologicalSpace.denseSeq α a_1

theorem MeasureTheory.SimpleFunc.nearestPtInd.match_1.congr_eq_2 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (N : ℕ) → motive N.succ) (N : ℕ),
  x = N.succ →
    (match x with
      | 0 => h_1 ()
      | N.succ => h_2 N) ≍
      h_2 N

theorem MeasureTheory.SimpleFunc.nearestPtInd.congr_simp E1 #

∀ {α : Type u_1} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α] [inst_2 : OpensMeasurableSpace α]
  (e e_1 : ℕ → α),
  e = e_1 →
    ∀ (a a_1 : ℕ), a = a_1 → MeasureTheory.SimpleFunc.nearestPtInd e a = MeasureTheory.SimpleFunc.nearestPtInd e_1 a_1

theorem MeasureTheory.SimpleFunc.nearestPt.congr_simp E1 #

∀ {α : Type u_1} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α] [inst_2 : OpensMeasurableSpace α]
  (e e_1 : ℕ → α),
  e = e_1 → ∀ (N N_1 : ℕ), N = N_1 → MeasureTheory.SimpleFunc.nearestPt e N = MeasureTheory.SimpleFunc.nearestPt e_1 N_1

def MeasureTheory.SimpleFunc.nearestPtInd E1 #

{α : Type u_1} →
  [inst : MeasurableSpace α] →
    [inst_1 : PseudoEMetricSpace α] → [OpensMeasurableSpace α] → (ℕ → α) → ℕ → MeasureTheory.SimpleFunc α ℕ

nearestPtInd e N x is the index k such that e k is the nearest point to x among the points e 0, ..., e N. If more than one point are at the same distance from x, then nearestPtInd e N x returns the least of their indices.

def MeasureTheory.SimpleFunc.nearestPt E1 #

{α : Type u_1} →
  [inst : MeasurableSpace α] →
    [inst_1 : PseudoEMetricSpace α] → [OpensMeasurableSpace α] → (ℕ → α) → ℕ → MeasureTheory.SimpleFunc α α

nearestPt e N x is the nearest point to x among the points e 0, ..., e N. If more than one point are at the same distance from x, then nearestPt e N x returns the point with the least possible index.

theorem MeasureTheory.SimpleFunc.nearestPtInd_zero E0 #

∀ {α : Type u_1} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α] [inst_2 : OpensMeasurableSpace α]
  (e : ℕ → α), MeasureTheory.SimpleFunc.nearestPtInd e 0 = MeasureTheory.SimpleFunc.const α 0

theorem MeasureTheory.SimpleFunc.nearestPt_zero E0 #

∀ {α : Type u_1} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α] [inst_2 : OpensMeasurableSpace α]
  (e : ℕ → α), MeasureTheory.SimpleFunc.nearestPt e 0 = MeasureTheory.SimpleFunc.const α (e 0)

theorem MeasureTheory.SimpleFunc.nearestPtInd_succ E1 #

∀ {α : Type u_1} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α] [inst_2 : OpensMeasurableSpace α]
  (e : ℕ → α) (N : ℕ) (x : α),
  (MeasureTheory.SimpleFunc.nearestPtInd e (N + 1)) x =
    if ∀ k ≤ N, edist (e (N + 1)) x < edist (e k) x then N + 1 else (MeasureTheory.SimpleFunc.nearestPtInd e N) x

theorem MeasureTheory.SimpleFunc.nearestPtInd_le E1 #

∀ {α : Type u_1} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α] [inst_2 : OpensMeasurableSpace α]
  (e : ℕ → α) (N : ℕ) (x : α), (MeasureTheory.SimpleFunc.nearestPtInd e N) x ≤ N

theorem MeasureTheory.SimpleFunc.edist_nearestPt_le E1 #

∀ {α : Type u_1} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α] [inst_2 : OpensMeasurableSpace α]
  (e : ℕ → α) (x : α) {k N : ℕ}, k ≤ N → edist ((MeasureTheory.SimpleFunc.nearestPt e N) x) x ≤ edist (e k) x

theorem MeasureTheory.SimpleFunc.tendsto_nearestPt E1 #

∀ {α : Type u_1} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α] [inst_2 : OpensMeasurableSpace α]
  {e : ℕ → α} {x : α},
  x ∈ closure (Set.range e) → Filter.Tendsto (fun N ↦ (MeasureTheory.SimpleFunc.nearestPt e N) x) Filter.atTop (nhds x)

def MeasureTheory.SimpleFunc.approxOn E1 #

{α : Type u_1} →
  {β : Type u_2} →
    [inst : MeasurableSpace α] →
      [inst_1 : PseudoEMetricSpace α] →
        [OpensMeasurableSpace α] →
          [inst_3 : MeasurableSpace β] →
            (f : β → α) →
              Measurable f →
                (s : Set α) →
                  (y₀ : α) → y₀ ∈ s → [TopologicalSpace.SeparableSpace ↑s] → ℕ → MeasureTheory.SimpleFunc β α

Approximate a measurable function by a sequence of simple functions F n such that F n x ∈ s.

theorem MeasureTheory.SimpleFunc.approxOn_zero E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α]
  [inst_2 : OpensMeasurableSpace α] [inst_3 : MeasurableSpace β] {f : β → α} (hf : Measurable f) {s : Set α} {y₀ : α}
  (h₀ : y₀ ∈ s) [inst_4 : TopologicalSpace.SeparableSpace ↑s] (x : β),
  (MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ 0) x = y₀

theorem MeasureTheory.SimpleFunc.approxOn_mem E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α]
  [inst_2 : OpensMeasurableSpace α] [inst_3 : MeasurableSpace β] {f : β → α} (hf : Measurable f) {s : Set α} {y₀ : α}
  (h₀ : y₀ ∈ s) [inst_4 : TopologicalSpace.SeparableSpace ↑s] (n : ℕ) (x : β),
  (MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ n) x ∈ s

theorem MeasureTheory.SimpleFunc.approxOn_range_nonneg E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α]
  [inst_2 : OpensMeasurableSpace α] [inst_3 : MeasurableSpace β] [inst_4 : Zero α] [inst_5 : Preorder α] {f : β → α},
  0 ≤ f →
    ∀ {hfm : Measurable f} [inst_6 : TopologicalSpace.SeparableSpace ↑(Set.range f ∪ {0})] (n : ℕ),
      0 ≤ MeasureTheory.SimpleFunc.approxOn f hfm (Set.range f ∪ {0}) 0 ⋯ n

theorem MeasureTheory.SimpleFunc.approxOn_comp E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α]
  [inst_2 : OpensMeasurableSpace α] [inst_3 : MeasurableSpace β] {γ : Type u_3} [inst_4 : MeasurableSpace γ] {f : β → α}
  (hf : Measurable f) {g : γ → β} (hg : Measurable g) {s : Set α} {y₀ : α} (h₀ : y₀ ∈ s)
  [inst_5 : TopologicalSpace.SeparableSpace ↑s] (n : ℕ),
  MeasureTheory.SimpleFunc.approxOn (f ∘ g) ⋯ s y₀ h₀ n = (MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ n).comp g hg

theorem MeasureTheory.SimpleFunc.tendsto_approxOn E3 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α]
  [inst_2 : OpensMeasurableSpace α] [inst_3 : MeasurableSpace β] {f : β → α} (hf : Measurable f) {s : Set α} {y₀ : α}
  (h₀ : y₀ ∈ s) [inst_4 : TopologicalSpace.SeparableSpace ↑s] {x : β},
  f x ∈ closure s →
    Filter.Tendsto (fun n ↦ (MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ n) x) Filter.atTop (nhds (f x))

theorem MeasureTheory.SimpleFunc.edist_approxOn_mono E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α]
  [inst_2 : OpensMeasurableSpace α] [inst_3 : MeasurableSpace β] {f : β → α} (hf : Measurable f) {s : Set α} {y₀ : α}
  (h₀ : y₀ ∈ s) [inst_4 : TopologicalSpace.SeparableSpace ↑s] (x : β) {m n : ℕ},
  m ≤ n →
    edist ((MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ n) x) (f x) ≤
      edist ((MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ m) x) (f x)

theorem MeasureTheory.SimpleFunc.edist_approxOn_le E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α]
  [inst_2 : OpensMeasurableSpace α] [inst_3 : MeasurableSpace β] {f : β → α} (hf : Measurable f) {s : Set α} {y₀ : α}
  (h₀ : y₀ ∈ s) [inst_4 : TopologicalSpace.SeparableSpace ↑s] (x : β) (n : ℕ),
  edist ((MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ n) x) (f x) ≤ edist y₀ (f x)

theorem MeasureTheory.SimpleFunc.edist_approxOn_y0_le E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : MeasurableSpace α] [inst_1 : PseudoEMetricSpace α]
  [inst_2 : OpensMeasurableSpace α] [inst_3 : MeasurableSpace β] {f : β → α} (hf : Measurable f) {s : Set α} {y₀ : α}
  (h₀ : y₀ ∈ s) [inst_4 : TopologicalSpace.SeparableSpace ↑s] (x : β) (n : ℕ),
  edist y₀ ((MeasureTheory.SimpleFunc.approxOn f hf s y₀ h₀ n) x) ≤ edist y₀ (f x) + edist y₀ (f x)

theorem HasCompactSupport.exists_simpleFunc_approx_of_prod E1 #

∀ {X : Type u_3} {Y : Type u_4} {α : Type u_5} [inst : Zero α] [inst_1 : TopologicalSpace X]
  [inst_2 : TopologicalSpace Y] [inst_3 : MeasurableSpace X] [inst_4 : MeasurableSpace Y] [OpensMeasurableSpace X]
  [OpensMeasurableSpace Y] [inst_7 : PseudoMetricSpace α] {f : X × Y → α},
  Continuous f → HasCompactSupport f → ∀ {ε : ℝ}, 0 < ε → ∃ g, ∀ (x : X × Y), dist (f x) (g x) < ε

A continuous function with compact support on a product space can be uniformly approximated by simple functions. The subtlety is that we do not assume that the spaces are separable, so the product of the Borel sigma algebras might not contain all open sets, but still it contains enough of them to approximate compactly supported continuous functions.

theorem HasCompactSupport.measurable_of_prod E1 #

∀ {X : Type u_3} {Y : Type u_4} {α : Type u_5} [inst : Zero α] [inst_1 : TopologicalSpace X]
  [inst_2 : TopologicalSpace Y] [inst_3 : MeasurableSpace X] [inst_4 : MeasurableSpace Y] [OpensMeasurableSpace X]
  [OpensMeasurableSpace Y] [inst_7 : TopologicalSpace α] [TopologicalSpace.PseudoMetrizableSpace α]
  [inst_9 : MeasurableSpace α] [BorelSpace α] {f : X × Y → α}, Continuous f → HasCompactSupport f → Measurable f

A continuous function with compact support on a product space is measurable for the product sigma-algebra. The subtlety is that we do not assume that the spaces are separable, so the product of the Borel sigma algebras might not contain all open sets, but still it contains enough of them to approximate compactly supported continuous functions.