Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 11.35 — the Schwarz inequality in L2\mathscr{L}^2L2

Proved
Rudin.ch11_schwarz

by Lucas · Sep 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysismeasure-theory

If f,g∈L2(μ)f, g \in \mathscr{L}^2(\mu)f,g∈L2(μ) then fgfgfg is integrable and ∣∫fg dμ∣≤∥f∥2 ∥g∥2\left|\int fg\,d\mu\right| \le \|f\|_2\,\|g\|_2​∫fgdμ​≤∥f∥2​∥g∥2​.

Preamble
import Mathlib
import Definitions.Def_Rudin_ch11_L2

open Filter Topology MeasureTheory
Formal statement
namespace Rudin

/-- Rudin, Theorem 11.35 (Schwarz inequality in `ℒ²`): if `f, g ∈ ℒ²(μ)` then `f g` is
integrable and `|∫ f g dμ| ≤ ‖f‖₂ ‖g‖₂`. -/
theorem ch11_schwarz {X : Type*} [MeasurableSpace X] (μ : Measure X) (f g : X → ℝ)
    (hf : MemL2 μ f) (hg : MemL2 μ g) :
    Integrable (fun x => f x * g x) μ ∧
      |∫ x, f x * g x ∂μ| ≤ L2Norm μ f * L2Norm μ g := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 11, p. 326, Theorem 11.35
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Let XXX be a measurable space with measure μ\muμ and let f,g:X→Rf, g : X \to \mathbb{R}f,g:X→R each belong to L2(μ)\mathcal{L}^2(\mu)L2(μ), meaning each is measurable and has integrable square. Then both:

  1. the pointwise product x↦f(x)g(x)x \mapsto f(x)g(x)x↦f(x)g(x) is integrable with respect to μ\muμ;
∣∫Xfg dμ∣  ≤  ∥f∥2 ∥g∥2,∥h∥2=∫Xh2 dμ.\Bigl| \int_X f g \, d\mu \Bigr| \;\le\; \lVert f\rVert_2 \,\lVert g \rVert_2, \qquad \lVert h \rVert_2 = \sqrt{\int_X h^2 \, d\mu}.​∫X​fgdμ​≤∥f∥2​∥g∥2​,∥h∥2​=∫X​h2dμ​.

The norms are the square roots of the integrals of the squares (real square root, so nonnegative); no almost-everywhere or equivalence-class considerations enter, the statement being about the functions themselves.

Human review
  • Endorsed by Shuze Chen · Sep 13, 2026

  • Endorsed by Lucas · Sep 13, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me