The mean value theorem
ProvedFamousTheorems.exists_deriv_eq_slopecalculusmathlibreal-analysis
Lagrange's mean value theorem.
For continuous on and differentiable on , there is with
Some instantaneous rate of change equals the average rate. It follows from Rolle's theorem applied to minus the secant line, and Rolle in turn from the extreme value theorem.
It is the workhorse that converts derivative information into function information: that implies constant, that implies strictly increasing, the error term in Taylor's theorem, and L'Hôpital's rule all reduce to it. Differentiability is needed only on the open interval, which is what lets it apply to functions like on .
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem exists_deriv_eq_slope : ∀ (f : ℝ → ℝ) {a b : ℝ}, a < b →
ContinuousOn f (Set.Icc a b) → DifferentiableOn ℝ f (Set.Ioo a b) →
∃ c ∈ Set.Ioo a b, deriv f c = (f b - f a) / (b - a) := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.