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.Integral.IntervalAverage

8 declarations and 1 deprecated aliases. Mathlib docs · Source

Integral average over an interval

In this file we introduce notation ⨍ x in a..b, f x for the average ⨍ x in Ι a b, f x of f over the interval Ι a b = Set.Ioc (min a b) (max a b) w.r.t. the Lebesgue measure, then prove formulas for this average:

  • interval_average_eq: ⨍ x in a..b, f x = (b - a)⁻¹ • ∫ x in a..b, f x;
  • interval_average_eq_div: ⨍ x in a..b, f x = (∫ x in a..b, f x) / (b - a);
  • exists_eq_interval_average_of_measure: ∃ c ∈ Ι a b, f c = ⨍ x in Ι a b, f x ∂μ.
  • exists_eq_interval_average_of_nullSingletonClass: ∃ c ∈ uIoo a b, f c = ⨍ x in Ι a b, f x ∂μ.
  • exists_eq_interval_average: ∃ c ∈ uIoo a b, f c = ⨍ x in a..b, f x.

We also prove that ⨍ x in a..b, f x = ⨍ x in b..a, f x, see interval_average_symm.

Notation

⨍ x in a..b, f x: average of f over the interval Ι a b w.r.t. the Lebesgue measure.

def «term⨍_In_.._,_» E1 #

Lean.ParserDescr

⨍ x in a..b, f x is the average of f over the interval Ι a b w.r.t. the Lebesgue measure.

theorem interval_average_symm E1 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (f : ℝ → E) (a b : ℝ),
  ⨍ (x : ℝ) in a..b, f x = ⨍ (x : ℝ) in b..a, f x

theorem interval_average_eq E0 #

∀ {E : Type u_1} [inst : NormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (f : ℝ → E) (a b : ℝ),
  ⨍ (x : ℝ) in a..b, f x = (b - a)⁻¹ • ∫ (x : ℝ) in a..b, f x

theorem interval_average_eq_div E1 #

∀ (f : ℝ → ℝ) (a b : ℝ), ⨍ (x : ℝ) in a..b, f x = (∫ (x : ℝ) in a..b, f x) / (b - a)

theorem intervalAverage_congr_codiscreteWithin E1 #

∀ {a b : ℝ} {f₁ f₂ : ℝ → ℝ},
  f₁ =ᶠ[Filter.codiscreteWithin (Set.uIoc a b)] f₂ → ⨍ (x : ℝ) in a..b, f₁ x = ⨍ (x : ℝ) in a..b, f₂ x

Interval averages are invariant when functions change along discrete sets.

theorem exists_eq_interval_average_of_measure E1 #

∀ {f : ℝ → ℝ} {a b : ℝ} {μ : MeasureTheory.Measure ℝ},
  ContinuousOn f (Set.uIcc a b) →
    μ (Set.uIoc a b) ≠ ⊤ → μ (Set.uIoc a b) ≠ 0 → ∃ c ∈ Set.uIoc a b, f c = ⨍ (x : ℝ) in Set.uIoc a b, f x ∂μ

If f : ℝ → ℝ is continuous on uIcc a b, the interval has finite and nonzero μ-measure, then ∃ c ∈ Ι a b, f c = ⨍ x in Ι a b, f x ∂μ.

theorem exists_eq_interval_average_of_nullSingletonClass E1 #

∀ {f : ℝ → ℝ} {a b : ℝ} {μ : MeasureTheory.Measure ℝ} [MeasureTheory.NullSingletonClass μ],
  ContinuousOn f (Set.uIcc a b) →
    μ (Set.uIoc a b) ≠ ⊤ → μ (Set.uIoc a b) ≠ 0 → ∃ c ∈ Set.uIoo a b, f c = ⨍ (x : ℝ) in Set.uIoc a b, f x ∂μ

If f : ℝ → ℝ is continuous on uIcc a b, the interval has finite and nonzero μ-measure, and μ has value zero on singletons, then ∃ c ∈ uIoo a b, f c = ⨍ x in Ι a b, f x ∂μ.

theorem exists_eq_interval_average E1 #

∀ {f : ℝ → ℝ} {a b : ℝ}, a ≠ b → ContinuousOn f (Set.uIcc a b) → ∃ c ∈ Set.uIoo a b, f c = ⨍ (x : ℝ) in a..b, f x

The mean value theorem for integrals: There exists a point in an interval such that the mean of a continuous function over the interval equals the value of the function at the point.

Deprecated aliases

NameNew nameSince
exists_eq_interval_average_of_noAtomsexists_eq_interval_average_of_nullSingletonClass2026-06-09