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 / V13. General topology

Mathlib.Topology.Order.Rolle

8 declarations. Mathlib docs · Source

Rolle's Theorem (topological part)

In this file we prove the purely topological part of Rolle's Theorem: a function that is continuous on an interval $[a, b]$, $a < b$, has a local extremum at a point $x ∈ (a, b)$ provided that $f(a)=f(b)$. We also prove several variations of this statement.

In Mathlib/Analysis/Calculus/LocalExtr/Rolle we use these lemmas to prove several versions of Rolle's Theorem from calculus.

Tags

local minimum, local maximum, extremum, Rolle's Theorem

theorem exists_Ioo_extr_on_Icc E1 #

∀ {X : Type u_1} {Y : Type u_2} [inst : ConditionallyCompleteLinearOrder X] [DenselyOrdered X]
  [inst_2 : TopologicalSpace X] [OrderTopology X] [inst_4 : LinearOrder Y] [inst_5 : TopologicalSpace Y]
  [OrderTopology Y] {f : X → Y} {a b : X},
  a < b → ContinuousOn f (Set.Icc a b) → f a = f b → ∃ c ∈ Set.Ioo a b, IsExtrOn f (Set.Icc a b) c

A continuous function on a closed interval with f a = f b takes either its maximum or its minimum value at a point in the interior of the interval.

theorem exists_isLocalExtr_Ioo E1 #

∀ {X : Type u_1} {Y : Type u_2} [inst : ConditionallyCompleteLinearOrder X] [DenselyOrdered X]
  [inst_2 : TopologicalSpace X] [OrderTopology X] [inst_4 : LinearOrder Y] [inst_5 : TopologicalSpace Y]
  [OrderTopology Y] {f : X → Y} {a b : X},
  a < b → ContinuousOn f (Set.Icc a b) → f a = f b → ∃ c ∈ Set.Ioo a b, IsLocalExtr f c

A continuous function on a closed interval with f a = f b has a local extremum at some point of the corresponding open interval.

theorem exists_isExtrOn_Ioo_of_tendsto E1 #

∀ {X : Type u_1} {Y : Type u_2} [inst : ConditionallyCompleteLinearOrder X] [DenselyOrdered X]
  [inst_2 : TopologicalSpace X] [OrderTopology X] [inst_4 : LinearOrder Y] [inst_5 : TopologicalSpace Y]
  [OrderTopology Y] {f : X → Y} {a b : X} {l : Y},
  a < b →
    ContinuousOn f (Set.Ioo a b) →
      Filter.Tendsto f (nhdsWithin a (Set.Ioi a)) (nhds l) →
        Filter.Tendsto f (nhdsWithin b (Set.Iio b)) (nhds l) → ∃ c ∈ Set.Ioo a b, IsExtrOn f (Set.Ioo a b) c

If a function f is continuous on an open interval and tends to the same value at its endpoints, then it has an extremum on this open interval.

theorem exists_isLocalExtr_Ioo_of_tendsto E1 #

∀ {X : Type u_1} {Y : Type u_2} [inst : ConditionallyCompleteLinearOrder X] [DenselyOrdered X]
  [inst_2 : TopologicalSpace X] [OrderTopology X] [inst_4 : LinearOrder Y] [inst_5 : TopologicalSpace Y]
  [OrderTopology Y] {f : X → Y} {a b : X} {l : Y},
  a < b →
    ContinuousOn f (Set.Ioo a b) →
      Filter.Tendsto f (nhdsWithin a (Set.Ioi a)) (nhds l) →
        Filter.Tendsto f (nhdsWithin b (Set.Iio b)) (nhds l) → ∃ c ∈ Set.Ioo a b, IsLocalExtr f c

If a function f is continuous on an open interval and tends to the same value at its endpoints, then it has a local extremum on this open interval.

theorem exists_uIoo_isExtrOn_uIcc E1 #

∀ {X : Type u_1} {Y : Type u_2} [inst : ConditionallyCompleteLinearOrder X] [DenselyOrdered X]
  [inst_2 : TopologicalSpace X] [OrderTopology X] [inst_4 : LinearOrder Y] [inst_5 : TopologicalSpace Y]
  [OrderTopology Y] {f : X → Y} {a b : X},
  a ≠ b → ContinuousOn f (Set.uIcc a b) → f a = f b → ∃ c ∈ Set.uIoo a b, IsExtrOn f (Set.uIcc a b) c

A continuous function on an unordered closed interval with f a = f b takes either its maximum or its minimum value at a point in the interior of the interval.

theorem exists_isLocalExtr_uIoo E1 #

∀ {X : Type u_1} {Y : Type u_2} [inst : ConditionallyCompleteLinearOrder X] [DenselyOrdered X]
  [inst_2 : TopologicalSpace X] [OrderTopology X] [inst_4 : LinearOrder Y] [inst_5 : TopologicalSpace Y]
  [OrderTopology Y] {f : X → Y} {a b : X},
  a ≠ b → ContinuousOn f (Set.uIcc a b) → f a = f b → ∃ c ∈ Set.uIoo a b, IsLocalExtr f c

A continuous function on a unordered closed interval with f a = f b has a local extremum at some point of the corresponding unordered open interval.

theorem exists_isExtrOn_uIoo_of_tendsto E1 #

∀ {X : Type u_1} {Y : Type u_2} [inst : ConditionallyCompleteLinearOrder X] [DenselyOrdered X]
  [inst_2 : TopologicalSpace X] [OrderTopology X] [inst_4 : LinearOrder Y] [inst_5 : TopologicalSpace Y]
  [OrderTopology Y] {f : X → Y} {a b : X} {l : Y},
  a ≠ b →
    ContinuousOn f (Set.uIoo a b) →
      Filter.Tendsto f (nhdsWithin a (Set.uIoo a b)) (nhds l) →
        Filter.Tendsto f (nhdsWithin b (Set.uIoo a b)) (nhds l) → ∃ c ∈ Set.uIoo a b, IsExtrOn f (Set.uIoo a b) c

If a function f is continuous on an unordered open interval and tends to the same value at its endpoints, then it has an extremum on this unordered open interval.

theorem exists_isLocalExtr_uIoo_of_tendsto E1 #

∀ {X : Type u_1} {Y : Type u_2} [inst : ConditionallyCompleteLinearOrder X] [DenselyOrdered X]
  [inst_2 : TopologicalSpace X] [OrderTopology X] [inst_4 : LinearOrder Y] [inst_5 : TopologicalSpace Y]
  [OrderTopology Y] {f : X → Y} {a b : X} {l : Y},
  a ≠ b →
    ContinuousOn f (Set.uIoo a b) →
      Filter.Tendsto f (nhdsWithin a (Set.uIoo a b)) (nhds l) →
        Filter.Tendsto f (nhdsWithin b (Set.uIoo a b)) (nhds l) → ∃ c ∈ Set.uIoo a b, IsLocalExtr f c

If a function f is continuous on an unordered open interval and tends to the same value at its endpoints, then it has a local extremum on this unordered open interval.