Definition 10.2.1 (Local maxima and minima). Here we use Mathlib's IsLocalMaxOn type.
theorem
Chapter10.IsLocalMaxOn.of_restrict
{X Y : Set ℝ}
(hXY : Y ⊆ X)
(f : ℝ → ℝ)
(x₀ : ℝ)
(h : IsLocalMaxOn f X x₀)
:
IsLocalMaxOn f Y x₀
Remark 10.2.5
theorem
Chapter10.IsLocalMinOn.of_restrict
{X Y : Set ℝ}
(hXY : Y ⊆ X)
(f : ℝ → ℝ)
(x₀ : ℝ)
(h : IsLocalMinOn f X x₀)
:
IsLocalMinOn f Y x₀
theorem
Chapter10.IsLocalMaxOn.deriv_eq_zero
{a b : ℝ}
(hab : a < b)
{f : ℝ → ℝ}
{x₀ : ℝ}
(hx₀ : x₀ ∈ Set.Ioo a b)
(h : IsLocalMaxOn f (Set.Ioo a b) x₀)
{L : ℝ}
(hderiv : HasDerivWithinAt f L (Set.Ioo a b) x₀)
:
Proposition 10.2.6 (Local extrema are stationary) / Exercise 10.2.1
theorem
Chapter10.IsLocalMinOn.deriv_eq_zero
{a b : ℝ}
(hab : a < b)
{f : ℝ → ℝ}
{x₀ : ℝ}
(hx₀ : x₀ ∈ Set.Ioo a b)
(h : IsLocalMinOn f (Set.Ioo a b) x₀)
{L : ℝ}
(hderiv : HasDerivWithinAt f L (Set.Ioo a b) x₀)
:
Proposition 10.2.6 (Local extrema are stationary) / Exercise 10.2.1
theorem
HasDerivWithinAt.exist_zero
{a b : ℝ}
(hab : a < b)
{g : ℝ → ℝ}
(hcont : ContinuousOn g (Set.Icc a b))
(hderiv : DifferentiableOn ℝ g (Set.Ioo a b))
(hgab : g a = g b)
:
∃ x ∈ Set.Ioo a b, HasDerivWithinAt g 0 (Set.Ioo a b) x
Theorem 10.2.7 (Rolle's theorem) / Exercise 10.2.4
theorem
HasDerivWithinAt.mean_value
{a b : ℝ}
(hab : a < b)
{f : ℝ → ℝ}
(hcont : ContinuousOn f (Set.Icc a b))
(hderiv : DifferentiableOn ℝ f (Set.Ioo a b))
:
Corollary 10.2.9 (Mean value theorem ) / Exercise 10.2.5
theorem
Chapter10.lipschitz_bound
{M a b : ℝ}
(hM : M > 0)
(hab : a < b)
{f : ℝ → ℝ}
(hcont : ContinuousOn f (Set.Icc a b))
(hderiv : DifferentiableOn ℝ f (Set.Ioo a b))
(hlip : ∀ x ∈ Set.Ioo a b, |derivWithin f (Set.Ioo a b) x| ≤ M)
{x y : ℝ}
(hx : x ∈ Set.Ioo a b)
(hy : y ∈ Set.Ioo a b)
:
Exercise 10.2.6
theorem
UniformContinuousOn.of_lipschitz
{f : ℝ → ℝ}
(hcont : ContinuousOn f Set.univ)
(hderiv : DifferentiableOn ℝ f Set.univ)
(hlip : Chapter9.BddOn (deriv f) Set.univ)
:
Exercise 10.2.7