4.2. Auxiliary results
-
Set.Countable.dense_compl[complete] -
Monotone.countable_not_continuousAt[complete]
Monotone real functions have only countably many points of discontinuity
A monotone function f \colon \bR \to \bR can have at most countably
many points of discontinuity. In particular the set D \subset \bR
of continuity points of f is dense in \bR.
Lean code for Lemma4.2.1●2 theorems
Associated Lean declarations
-
Set.Countable.dense_compl[complete]
-
Monotone.countable_not_continuousAt[complete]
-
Set.Countable.dense_compl[complete] -
Monotone.countable_not_continuousAt[complete]
-
theoremdefined in Mathlib/Topology/Algebra/Module/Cardinality.leancomplete
theorem Set.Countable.dense_compl.{u, u_1} {E : Type u} (𝕜 : Type u_1) [NontriviallyNormedField 𝕜] [CompleteSpace 𝕜] [AddCommGroup E] [Module 𝕜 E] [Nontrivial E] [TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul 𝕜 E] {s : Set E} (hs : s.Countable) : Dense sᶜ
theorem Set.Countable.dense_compl.{u, u_1} {E : Type u} (𝕜 : Type u_1) [NontriviallyNormedField 𝕜] [CompleteSpace 𝕜] [AddCommGroup E] [Module 𝕜 E] [Nontrivial E] [TopologicalSpace E] [ContinuousAdd E] [ContinuousSMul 𝕜 E] {s : Set E} (hs : s.Countable) : Dense sᶜ
In a nontrivial topological vector space over a complete nontrivially normed field, any countable set has dense complement.
-
theoremdefined in Mathlib/Topology/Order/Monotone.leancomplete
theorem Monotone.countable_not_continuousAt.{u_1, u_2} {α : Type u_1} {β : Type u_2} [LinearOrder α] [TopologicalSpace α] [OrderTopology α] [LinearOrder β] {f : α → β} [TopologicalSpace β] [OrderTopology β] [SecondCountableTopology β] (hf : Monotone f) : {x | ¬ContinuousAt f x}.Countable
theorem Monotone.countable_not_continuousAt.{u_1, u_2} {α : Type u_1} {β : Type u_2} [LinearOrder α] [TopologicalSpace α] [OrderTopology α] [LinearOrder β] {f : α → β} [TopologicalSpace β] [OrderTopology β] [SecondCountableTopology β] (hf : Monotone f) : {x | ¬ContinuousAt f x}.Countable
In a second countable space, the set of points where a monotone function is not continuous is at most countable.
(The proof should already be in Mathlib.)
Tightness of a cumulative distribution function
Let F be a cumulative distribution function. Then for any
\eps > 0 there exists points a,b \in \bR with a < b such that
F(b) - F(a) > 1 - \eps and F is continuous at the points a and b.
Lean code for Lemma4.2.2●1 theorem, incomplete
Associated Lean declarations
-
theoremdefined in ExtremeValueProject/WeakConvergenceCDF.leancontains sorry
theorem CumulativeDistributionFunction.forall_pos_exists_lt_gt_continuousAt (F : CumulativeDistributionFunction) {ε : ℝ} (ε_pos : 0 < ε) : ∃ a b, a < b ∧ ↑F.toStieltjesFunction a < ε ∧ 1 - ε < ↑F.toStieltjesFunction b ∧ ContinuousAt (↑F.toStieltjesFunction) a ∧ ContinuousAt (↑F.toStieltjesFunction) b
theorem CumulativeDistributionFunction.forall_pos_exists_lt_gt_continuousAt (F : CumulativeDistributionFunction) {ε : ℝ} (ε_pos : 0 < ε) : ∃ a b, a < b ∧ ↑F.toStieltjesFunction a < ε ∧ 1 - ε < ↑F.toStieltjesFunction b ∧ ContinuousAt (↑F.toStieltjesFunction) a ∧ ContinuousAt (↑F.toStieltjesFunction) b
Lemma 4.3 (cdf-tight) in blueprint.
Cumulative distribution functions satisfy
F(x) \downarrow 0 as x \downarrow - \infty and
F(x) \uparrow 1 as x \uparrow + \infty. The
required large difference F(b) - F(a) is
obtained by choosing a small enough so that F(a) < \frac{\eps}{2}
and b large enough so that F(b) > 1 - \frac{\eps}{2}.
In order to guarantee that a < b and
that a and b are continuity points of F, we
recall that continuity points of the monotone function F are dense
by Lemma 4.2.1, so we
may decrease a and increase b as appropriate.
-
forall_exists_subdivision_diff_lt_of_dense[sorry in proof]
Subdivision with small mesh and within dense set
Let D \subset \bR be a dense set and a,b \in D with a < b.
Then for any \delta > 0 there exists a k \in \bN
and a = c_0, c_1, \ldots, c_{k-1}, c_k = b \in D such that
|c_j - c_{j-1}| < \delta for all j=1,\ldots,k.
Lean code for Lemma4.2.3●1 theorem, incomplete
Associated Lean declarations
-
forall_exists_subdivision_diff_lt_of_dense[sorry in proof]
-
forall_exists_subdivision_diff_lt_of_dense[sorry in proof]
-
theoremdefined in ExtremeValueProject/WeakConvergenceCDF.leancontains sorry
theorem forall_exists_subdivision_diff_lt_of_dense {D : Set ℝ} (D_dense : Dense D) {a b : ℝ} (ha : a ∈ D) (hb : b ∈ D) (a_lt_b : a < b) {δ : ℝ} (δ_pos : 0 < δ) : ∃ k cs, cs 0 = a ∧ cs (Fin.last k) = b ∧ Monotone cs ∧ (∀ (k : Fin (k + 1)), cs k ∈ D) ∧ ∀ (j : Fin k), cs j.succ - cs (Fin.castAdd 1 j) < δ
theorem forall_exists_subdivision_diff_lt_of_dense {D : Set ℝ} (D_dense : Dense D) {a b : ℝ} (ha : a ∈ D) (hb : b ∈ D) (a_lt_b : a < b) {δ : ℝ} (δ_pos : 0 < δ) : ∃ k cs, cs 0 = a ∧ cs (Fin.last k) = b ∧ Monotone cs ∧ (∀ (k : Fin (k + 1)), cs k ∈ D) ∧ ∀ (j : Fin k), cs j.succ - cs (Fin.castAdd 1 j) < δ
Lemma 4.4 (subdivision-dense) in blueprint: An interval `[a,b]` can be subdivided with points from a dense set so that the consecutive differences are smaller than a given `δ > 0`.
…
Subdivision for continuous function approximation
Let D \subset \bR be a dense set, let f \colon \bR \to \bR be continuous,
let a, b \in D with a < b, and let \eps > 0.
Then there exists a k \in \bN and points
a=c_0 < c_1 < \cdots < c_{k-1} < c_k = b such that for
each j = 1, \ldots, k we have c_j \in D and
\big| f(x) - f(c_j) \big| < \eps
\qquad \text{ for } \qquad x \in [c_{j-1} , c_j] .
Lean code for Lemma4.2.4●1 theorem
Associated Lean declarations
-
theoremdefined in ExtremeValueProject/WeakConvergenceCDF.leancomplete
theorem forall_exists_subdivision_dist_apply_lt_of_dense_of_continuous {D : Set ℝ} (D_dense : Dense D) {f : ℝ → ℝ} (f_cont : Continuous f) {a b : ℝ} (ha : a ∈ D) (hb : b ∈ D) (a_lt_b : a < b) {ε : ℝ} (ε_pos : 0 < ε) : ∃ k cs, cs 0 = a ∧ cs (Fin.last k) = b ∧ Monotone cs ∧ (∀ (k : Fin (k + 1)), cs k ∈ D) ∧ ∀ (j : Fin k), ∀ x ∈ Set.Icc (cs (Fin.castAdd 1 j)) (cs j.succ), ∀ y ∈ Set.Icc (cs (Fin.castAdd 1 j)) (cs j.succ), dist (f x) (f y) < ε
theorem forall_exists_subdivision_dist_apply_lt_of_dense_of_continuous {D : Set ℝ} (D_dense : Dense D) {f : ℝ → ℝ} (f_cont : Continuous f) {a b : ℝ} (ha : a ∈ D) (hb : b ∈ D) (a_lt_b : a < b) {ε : ℝ} (ε_pos : 0 < ε) : ∃ k cs, cs 0 = a ∧ cs (Fin.last k) = b ∧ Monotone cs ∧ (∀ (k : Fin (k + 1)), cs k ∈ D) ∧ ∀ (j : Fin k), ∀ x ∈ Set.Icc (cs (Fin.castAdd 1 j)) (cs j.succ), ∀ y ∈ Set.Icc (cs (Fin.castAdd 1 j)) (cs j.succ), dist (f x) (f y) < ε
Lemma 4.5 (continuous-function-approximation-subdivision) in blueprint: An interval `[a,b]` can be subdivided with points from a dense set so that for a given continuous function `f` the function values on the parts of the subdivision are smaller than a given `ε > 0`.
On the compact interval
[a,b] \subset \bR, the continuous function f is uniformly continuous, so for some
\delta > 0 we have |f(x)-f(y)|<\eps whenever |x-y|<\delta and x,y \in
[a,b].
Now apply Lemma 4.2.3 to choose k and points
a=c_0 < c_1 < \cdots < c_{k-1} < c_k such that c_j - c_{j-1} < \delta
and c_j \in D for all j = 1 , \ldots , k.
Now for any j = 1 , \ldots , k, since for x \in [c_{j-1} , c_j] we have
|x - c_j| < \delta, we get
\big| f(x) - f(c_j) \big| < \eps
as desired.
Simple function integral as linear combination of cdf differences
Let a = c_0 < c_1 < \cdots < c_k = b and consider the
linear combination of indicator functions
h(x) = \sum_{j=1}^k \alpha_j \; \indof{(c_{j-1},c_j]}(x) .
Then the integral of h with respect to a Borel probability measure \PRmeas on \bR whose
can be written as
\int_{\bR} h(x) \, \ud \PRmeas (x) = \sum_{j=1}^k \alpha_j \, \big( F(c_j) - F(c_{j-1}) \big) ,
where F is the c.d.f. of \PRmeas.
Lean code for Lemma4.2.5●1 theorem
Associated Lean declarations
-
theoremdefined in ExtremeValueProject/WeakConvergenceCDF.leancomplete
theorem CumulativeDistributionFunction.integral_sum_indicator_eq.{u_1, u_2} (F : CumulativeDistributionFunction) {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {κ : Type u_2} {s : Finset κ} (as bs : κ → ℝ) (h : ∀ (j : κ), as j ≤ bs j) (α : κ → E) : ∫ (x : ℝ), (∑ j ∈ s, (Set.Ioc (as j) (bs j)).indicator fun x => α j) x ∂F.measure = ∑ j ∈ s, (↑F.toStieltjesFunction (bs j) - ↑F.toStieltjesFunction (as j)) • α j
theorem CumulativeDistributionFunction.integral_sum_indicator_eq.{u_1, u_2} (F : CumulativeDistributionFunction) {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {κ : Type u_2} {s : Finset κ} (as bs : κ → ℝ) (h : ∀ (j : κ), as j ≤ bs j) (α : κ → E) : ∫ (x : ℝ), (∑ j ∈ s, (Set.Ioc (as j) (bs j)).indicator fun x => α j) x ∂F.measure = ∑ j ∈ s, (↑F.toStieltjesFunction (bs j) - ↑F.toStieltjesFunction (as j)) • α j
Lemma 4.6 (simple-integral-cdf-difference) in blueprint.
\begin{aligned}
\int_{\bR} h \, \ud \PRmeas
= \; & \int_{\bR}
\Big( \sum_{j=1}^k \alpha_j \, \indof{(c_{j-1},c_j]}(x) \Big) \, \ud \PRmeas(x) \\
= \; & \sum_{j=1}^k \alpha_j \; \int_{\bR} \indof{(c_{j-1},c_j]}(x) \, \ud \PRmeas(x) \\
= \; & \sum_{j=1}^k \alpha_j \; \PRmeas \big[ (c_{j-1},c_j] \big] \\
= \; & \sum_{j=1}^k \alpha_j \, \big( F_n(c_j) - F_n(c_{j-1}) \big)
\end{aligned}
One of the portmanteau implications
Weak convergence of probability measures implies that if the boundary of a Borel set carries no probability mass under the limit measure, then the limit of the measures of the set equals the measure of the set under the limit probability measure.
In other words, if \lim_{n \to \infty} \PRmeas_n = \PRmeas in the sense of weak convergence
of measures, Definition 4.1.1, and if A \subset \bR
is a Borel set such that \PRmeas[\partial A] = 0, then
\lim_{n \to \infty} \PRmeas_n [ A ] = \PRmeas [ A ] .
Lean code for Lemma4.2.6●2 theorems
Associated Lean declarations
-
theoremdefined in Mathlib/MeasureTheory/Measure/Portmanteau.leancomplete
theorem MeasureTheory.ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto'.{u_1, u_2} {Ω : Type u_1} {ι : Type u_2} {L : Filter ι} [MeasurableSpace Ω] [TopologicalSpace Ω] [OpensMeasurableSpace Ω] [HasOuterApproxClosed Ω] {μ : MeasureTheory.ProbabilityMeasure Ω} {μs : ι → MeasureTheory.ProbabilityMeasure Ω} (μs_lim : Filter.Tendsto μs L (nhds μ)) {E : Set Ω} (E_nullbdry : ↑μ (frontier E) = 0) : Filter.Tendsto (fun i => ↑(μs i) E) L (nhds (↑μ E))
theorem MeasureTheory.ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto'.{u_1, u_2} {Ω : Type u_1} {ι : Type u_2} {L : Filter ι} [MeasurableSpace Ω] [TopologicalSpace Ω] [OpensMeasurableSpace Ω] [HasOuterApproxClosed Ω] {μ : MeasureTheory.ProbabilityMeasure Ω} {μs : ι → MeasureTheory.ProbabilityMeasure Ω} (μs_lim : Filter.Tendsto μs L (nhds μ)) {E : Set Ω} (E_nullbdry : ↑μ (frontier E) = 0) : Filter.Tendsto (fun i => ↑(μs i) E) L (nhds (↑μ E))
-
theoremdefined in Mathlib/MeasureTheory/Measure/Portmanteau.leancomplete
theorem MeasureTheory.ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto.{u_1, u_2} {Ω : Type u_1} {ι : Type u_2} {L : Filter ι} [MeasurableSpace Ω] [TopologicalSpace Ω] [OpensMeasurableSpace Ω] [HasOuterApproxClosed Ω] {μ : MeasureTheory.ProbabilityMeasure Ω} {μs : ι → MeasureTheory.ProbabilityMeasure Ω} (μs_lim : Filter.Tendsto μs L (nhds μ)) {E : Set Ω} (E_nullbdry : μ (frontier E) = 0) : Filter.Tendsto (fun i => (μs i) E) L (nhds (μ E))
theorem MeasureTheory.ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto.{u_1, u_2} {Ω : Type u_1} {ι : Type u_2} {L : Filter ι} [MeasurableSpace Ω] [TopologicalSpace Ω] [OpensMeasurableSpace Ω] [HasOuterApproxClosed Ω] {μ : MeasureTheory.ProbabilityMeasure Ω} {μs : ι → MeasureTheory.ProbabilityMeasure Ω} (μs_lim : Filter.Tendsto μs L (nhds μ)) {E : Set Ω} (E_nullbdry : μ (frontier E) = 0) : Filter.Tendsto (fun i => (μs i) E) L (nhds (μ E))
One implication of the portmanteau theorem: Weak convergence of probability measures implies that if the boundary of a Borel set carries no probability mass under the limit measure, then the limit of the measures of the set equals the measure of the set under the limit probability measure. A version with coercions to ordinary `ℝ≥0∞`-valued measures is `MeasureTheory.ProbabilityMeasure.tendsto_measure_of_null_frontier_of_tendsto'`.
(The proof is in Mathlib.)