mean_value_theorem
Provedanalysiscalculusproved
Mean value theorem: For differentiable f on [a,b], there exists c with f'(c) = (f(b)-f(a))/(b-a). Proved. Fundamental in real analysis.
Preamble
import Mathlib
Formal statement
import Mathlib
theorem mean_value_theorem (f : ℝ → ℝ) (a b : ℝ) (hab : a < b)
(hcont : ContinuousOn f (Set.Icc a b))
(hdiff : ∀ x ∈ Set.Ioo a b, HasDerivAt f (deriv f x) x) :
∃ c ∈ Set.Ioo a b, deriv f c = (f b - f a) / (b - a) := by
sorrySource