The space , its norm, Cauchy sequences and convergence in the mean
DefinitionRudin_ch11_L2Rudin's space of square-integrable functions, as functions rather than as equivalence classes. A measurable belongs to when (Definition 11.34), and its norm is . A sequence converges in the mean to if , and is a Cauchy sequence in if for every there is an with for all (Definition 11.41). The underlying measure theory — measurable spaces, measures, measurability, integrability and the integral itself — is Mathlib's and is reused; what is introduced here is Rudin's of genuine functions, with the explicit - conditions, as opposed to Mathlib's quotient space .
import Mathlib
/-!
# Rudin, Chapter 11 — the space `ℒ²(μ)`
Definitions transcribed from Walter Rudin, *Principles of Mathematical Analysis*, 3rd edition,
Chapter 11 (Definitions 11.34, 11.39, 11.41, 11.44 and equation (86) of Chapter 8).
Rudin builds measure theory from scratch — rings of sets, outer measures, the Carathéodory
extension, measurable functions and the integral — and all of that is available in Mathlib and
is reused: `MeasureTheory.OuterMeasure`, `MeasurableSet`, `Measurable`, `Integrable`, and the
Bochner integral `∫ x, f x ∂μ`.
What is set up here is Rudin's space `ℒ²(μ)` in his own terms — a measurable function whose
square is integrable — together with the norm `‖f‖₂ = (∫ |f|² dμ)^{1/2}`, Cauchy sequences and
convergence *in the mean*, phrased with explicit `ε`'s rather than through Mathlib's `Lp`
quotient space. Working with functions rather than with equivalence classes is what makes the
statement of the Riesz–Fischer theorem match the book.
-/
namespace Rudin
open MeasureTheory
variable {X : Type*} [MeasurableSpace X]
/-- Rudin, Definition 11.34: `f ∈ ℒ²(μ)`, a measurable real function whose square is
integrable. -/
def MemL2 (μ : Measure X) (f : X → ℝ) : Prop :=
Measurable f ∧ Integrable (fun x => (f x) ^ 2) μ
/-- Rudin, Definition 11.34: the norm `‖f‖₂ = (∫ |f|² dμ)^{1/2}`. -/
noncomputable def L2Norm (μ : Measure X) (f : X → ℝ) : ℝ :=
Real.sqrt (∫ x, (f x) ^ 2 ∂μ)
/-- Rudin, Definition 11.41: `{fₙ}` **converges to `f` in the mean** (that is, in `ℒ²(μ)`) if
`‖fₙ - f‖₂ → 0`. -/
def TendstoL2 (μ : Measure X) (f : ℕ → X → ℝ) (g : X → ℝ) : Prop :=
Filter.Tendsto (fun n => L2Norm μ fun x => f n x - g x) Filter.atTop (nhds 0)
/-- Rudin, Definition 11.41: `{fₙ}` is a **Cauchy sequence in `ℒ²(μ)`** if for every `ε > 0`
there is an `N` with `‖fₙ - fₘ‖₂ < ε` for all `m, n ≥ N`. -/
def CauchyL2 (μ : Measure X) (f : ℕ → X → ℝ) : Prop :=
∀ ε : ℝ, 0 < ε → ∃ N : ℕ, ∀ m ≥ N, ∀ n ≥ N, L2Norm μ (fun x => f n x - f m x) < ε
end RudinRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Four definitions, relative to a type carrying a -algebra and a measure on it. All functions are real-valued.
Membership in . means: is measurable and the function is integrable with respect to (finite Bochner integral of a function that is a.e. strongly measurable).
The norm.
with the real square root (returning on negative arguments) and the Bochner integral, which returns when the integrand is not integrable. So is defined for every , integrable or not, and takes value in the degenerate cases.
Convergence in the mean. A sequence converges to in means as , the norm being the one just defined applied to the pointwise difference.
Cauchy in . The sequence is Cauchy means: for every real there is such that for all and all , (strict inequality).
These are definitions only; nothing is asserted about them. Note that they speak about genuine functions, not equivalence classes modulo null sets, so does not mean .
Confirmed by the mission captain (proposal self-audit).