Use this file to discover all available pages before exploring further.
Analysis in Mathlib spans the Mathlib/Analysis/ and Mathlib/MeasureTheory/ directories and represents one of the deepest and most extensively verified bodies of mathematics in any proof assistant. The development covers real and complex analysis from first principles — derivatives, integrals, power series — through the full machinery of measure theory (sigma-algebras, Lebesgue and Bochner integration, Fubini’s theorem), functional analysis (normed and Banach spaces, the Hahn-Banach theorem, the open mapping theorem), and Hilbert space theory including the Fréchet-Riesz representation and the spectral theorem for self-adjoint operators. The analysis library integrates tightly with Mathlib’s topology layer: continuity, convergence, and compactness arguments all flow through the unified Filter abstraction.
Mathlib formalizes derivatives for functions between general normed spaces using the Fréchet derivative, with one-dimensional derivatives as a special case.
-- Fréchet derivative at a point#check HasFDerivAt -- f has Fréchet derivative f' at x#check DifferentiableAt -- f is Fréchet-differentiable at x#check DifferentiableOn -- f is differentiable on a set-- One-dimensional derivative#check HasDerivAt -- f has derivative f' at x (scalar case)#check deriv -- The derivative function ℝ → ℝ-- Chain rule#check HasFDerivAt.comp-- (hg : HasFDerivAt g g' (f x)) → (hf : HasFDerivAt f f' x) →-- HasFDerivAt (g ∘ f) (g'.comp f') x
Mean Value Theorem
#check exists_ratio_deriv_eq_ratio_slope-- ∃ c ∈ (a, b), (f b - f a) / (b - a) = deriv f c
Rolle's Theorem
#check exists_deriv_eq_zero-- f a = f b → ∃ c ∈ (a, b), deriv f c = 0
Inverse Function Theorem
#check HasStrictFDerivAt.to_localInverse
Implicit Function Theorem
#check ImplicitFunctionData.implicitFunction
-- Higher-order smoothness: Cᵏ functions#check ContDiff -- f is k-times continuously differentiable-- Taylor's theorem-- (see Mathlib.Analysis.Calculus.Taylor)-- Local extrema#check IsLocalMin.fderiv_eq_zero -- Fermat's theorem
-- Measurable spaces and sigma-algebras#check MeasurableSpace -- Type class: a sigma-algebra on α#check Measurable -- f : α → β is measurable#check BorelSpace -- The Borel sigma-algebra from a topology-- Measures#check MeasureTheory.Measure -- A countably additive measure#check MeasureTheory.Measure.pi -- Product of finitely many measures#check Real.measureSpace -- Lebesgue measure on ℝ#check MeasureTheory.Measure.hausdorffMeasure -- Hausdorff measure
-- Bochner integral (vector-valued)#check MeasureTheory.integral -- ∫ x, f x ∂μ#check MeasureTheory.Integrable -- f is Bochner-integrable-- Lebesgue integral (non-negative functions)#check MeasureTheory.lintegral -- ∫⁻ x, f x ∂μ-- L^p spaces#check MeasureTheory.Lp -- The Banach space Lᵖ(μ)#check MeasureTheory.UniformIntegrable -- Uniform integrability
#check MeasureTheory.integral_prod-- ∫ (x, y), f x y ∂(μ.prod ν) =-- ∫ x, ∫ y, f x y ∂ν ∂μ
Fundamental Theorem of Calculus
-- Part 1 (differentiation of integral)#check intervalIntegral.integral_hasFDerivAt_of_tendsto_ae-- Part 2 (Newton-Leibniz)#check intervalIntegral.integral_eq_sub_of_hasDeriv_right_of_le
-- Change of variables#check MeasureTheory.integral_image_eq_integral_abs_det_fderiv_smul-- Convolution#check MeasureTheory.convolution#check ContDiffBump.convolution_tendsto_right -- Approximation by convolution-- Haar measure on locally compact groups#check MeasureTheory.Measure.haarMeasure
Mathlib’s Bochner integral works for functions valued in any Banach space, not just ℝ or ℂ. This generality is used extensively in probability theory and functional analysis.
-- Normed spaces#check NormedSpace -- A module over a normed field with compatible norm#check NormedAddCommGroup -- Additive group with a norm-- Continuous linear maps#check ContinuousLinearMap -- L : E →L[𝕜] F (bounded linear operator)#check LinearMap.mkContinuous -- Bound a linear map to get a continuous one-- Norms of operators-- ‖L‖ = sup { ‖L x‖ / ‖x‖ | x ≠ 0 }
Hahn-Banach Theorem
Every bounded linear functional on a subspace extends to the whole space.
#check exists_extension_norm_eq
Banach Open Mapping
A surjective bounded linear map between Banach spaces is open.
#check ContinuousLinearMap.isOpenMap
Banach-Steinhaus
Pointwise-bounded families of operators are uniformly bounded.
#check banach_steinhaus
Closed Graph Theorem
A linear map with closed graph between Banach spaces is continuous.
#check LinearMap.continuous_of_isClosed_graph
-- Dual space#check StrongDual -- The strong dual E'#check NormedSpace.inclusionInDoubleDualLi -- Canonical inclusion E ↪ E''-- Absolutely convergent series#check Summable.of_norm -- ∑ ‖aₙ‖ < ∞ → ∑ aₙ converges in a Banach space
-- Big-O and little-o notation#check Asymptotics.IsO -- f = O(g) as x → a#check Asymptotics.IsLittleO -- f = o(g) as x → a-- Examples:-- sin x = O(x) as x → 0-- sin x = o(1) as x → ∞ (not quite right, but illustrates usage)
#check ConvexOn -- f is convex on a set#check StrictConvexOn -- Strict convexity-- Characterization via second derivative#check convexOn_of_deriv2_nonneg-- f'' ≥ 0 on (a, b) → f convex on [a, b]-- Jensen's inequality#check ConvexOn.map_sum_le -- Finite sum version#check ConvexOn.map_integral_le -- Integral version-- Carathéodory's theorem#check convexHull_eq_union
#check TestFunction -- Smooth compactly supported test functions#check SchwartzMap -- Schwartz space 𝒮(ℝⁿ)#check Distribution -- Distributions (generalized functions)#check TemperedDistribution -- Tempered distributions
The analysis contributors maintain detailed module-level docstrings. For any specific theorem, searching mathlib4_docs by identifier gives the exact statement, proof, and surrounding context.