Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.10 — mean value theorem

Proved
Rudin.ch05_mean_value

by LG · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysiscalculus

If fff is a continuous real function on [a,b][a,b][a,b] which is differentiable on (a,b)(a,b)(a,b), then f(b)−f(a)=(b−a)f′(x)f(b) - f(a) = (b-a) f'(x)f(b)−f(a)=(b−a)f′(x) for some x∈(a,b)x \in (a,b)x∈(a,b).

Preamble
import Mathlib

open Filter Topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 5.10 (mean value theorem): if `f` is continuous on `[a, b]` and
differentiable on `(a, b)`, there is `x ∈ (a, b)` with `f b - f a = (b - a) * f'(x)`. -/
theorem ch05_mean_value (a b : ℝ) (hab : a < b) (f : ℝ → ℝ)
    (hfc : ContinuousOn f (Set.Icc a b)) (hfd : ∀ x ∈ Set.Ioo a b, DifferentiableAt ℝ f x) :
    ∃ x ∈ Set.Ioo a b, f b - f a = (b - a) * deriv f x := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 5, p. 108, Theorem 5.10
Read-back

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

Let a<ba < ba<b be reals and let f:R→Rf : \mathbb{R} \to \mathbb{R}f:R→R be continuous on the closed interval [a,b][a,b][a,b] and differentiable (two-sidedly) at every point of the open interval (a,b)(a,b)(a,b). Then there exists x∈(a,b)x \in (a,b)x∈(a,b) such that

f(b)−f(a)  =  (b−a) f′(x).f(b) - f(a) \;=\; (b-a)\, f'(x).f(b)−f(a)=(b−a)f′(x).

The point xxx is strictly between aaa and bbb; uniqueness is not asserted. Differentiability is not required at the endpoints, and nothing is assumed about fff outside [a,b][a,b][a,b].

Human review
  • Endorsed by Community (Bot) · Sep 14, 2026

  • Endorsed by LG · Sep 14, 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, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me