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 / V15. Real analysis in one variable

Mathlib.Analysis.Calculus.Darboux

11 declarations. Mathlib docs · Source

Darboux's theorem

In this file we prove that the derivative of a differentiable function on an interval takes all intermediate values. The proof is based on the Wikipedia page about this theorem.

theorem exists_hasDerivWithinAt_eq_of_gt_of_lt E3 #

∀ {a b : ℝ} {f f' : ℝ → ℝ},
  a ≤ b →
    (∀ x ∈ Set.Icc a b, HasDerivWithinAt f (f' x) (Set.Icc a b) x) →
      ∀ {m : ℝ}, f' a < m → m < f' b → m ∈ f' '' Set.Ioo a b

Darboux's theorem: if a ≤ b and f' a < m < f' b, then f' c = m for some c ∈ (a, b).

theorem exists_hasDerivWithinAt_eq_of_lt_of_gt E3 #

∀ {a b : ℝ} {f f' : ℝ → ℝ},
  a ≤ b →
    (∀ x ∈ Set.Icc a b, HasDerivWithinAt f (f' x) (Set.Icc a b) x) →
      ∀ {m : ℝ}, m < f' a → f' b < m → m ∈ f' '' Set.Ioo a b

Darboux's theorem: if a ≤ b and f' b < m < f' a, then f' c = m for some c ∈ (a, b).

theorem Set.OrdConnected.image_hasDerivWithinAt E3 #

∀ {f f' : ℝ → ℝ} {s : Set ℝ}, s.OrdConnected → (∀ x ∈ s, HasDerivWithinAt f (f' x) s x) → (f' '' s).OrdConnected

Darboux's theorem: the image of a Set.OrdConnected set under f' is a Set.OrdConnected set, HasDerivWithinAt version.

theorem Set.OrdConnected.image_derivWithin E3 #

∀ {f : ℝ → ℝ} {s : Set ℝ}, s.OrdConnected → DifferentiableOn ℝ f s → (derivWithin f s '' s).OrdConnected

Darboux's theorem: the image of a Set.OrdConnected set under f' is a Set.OrdConnected set, derivWithin version.

theorem Set.OrdConnected.image_deriv E3 #

∀ {f : ℝ → ℝ} {s : Set ℝ}, s.OrdConnected → (∀ x ∈ s, DifferentiableAt ℝ f x) → (deriv f '' s).OrdConnected

Darboux's theorem: the image of a Set.OrdConnected set under f' is a Set.OrdConnected set, deriv version.

theorem Convex.image_hasDerivWithinAt E3 #

∀ {f f' : ℝ → ℝ} {s : Set ℝ}, Convex ℝ s → (∀ x ∈ s, HasDerivWithinAt f (f' x) s x) → Convex ℝ (f' '' s)

Darboux's theorem: the image of a convex set under f' is a convex set, HasDerivWithinAt version.

theorem Convex.image_derivWithin E3 #

∀ {f : ℝ → ℝ} {s : Set ℝ}, Convex ℝ s → DifferentiableOn ℝ f s → Convex ℝ (derivWithin f s '' s)

Darboux's theorem: the image of a convex set under f' is a convex set, derivWithin version.

theorem Convex.image_deriv E3 #

∀ {f : ℝ → ℝ} {s : Set ℝ}, Convex ℝ s → (∀ x ∈ s, DifferentiableAt ℝ f x) → Convex ℝ (deriv f '' s)

Darboux's theorem: the image of a convex set under f' is a convex set, deriv version.

theorem exists_hasDerivWithinAt_eq_of_ge_of_le E3 #

∀ {a b : ℝ} {f f' : ℝ → ℝ},
  a ≤ b →
    (∀ x ∈ Set.Icc a b, HasDerivWithinAt f (f' x) (Set.Icc a b) x) →
      ∀ {m : ℝ}, f' a ≤ m → m ≤ f' b → m ∈ f' '' Set.Icc a b

Darboux's theorem: if a ≤ b and f' a ≤ m ≤ f' b, then f' c = m for some c ∈ [a, b].

theorem exists_hasDerivWithinAt_eq_of_le_of_ge E3 #

∀ {a b : ℝ} {f f' : ℝ → ℝ},
  a ≤ b →
    (∀ x ∈ Set.Icc a b, HasDerivWithinAt f (f' x) (Set.Icc a b) x) →
      ∀ {m : ℝ}, m ≤ f' a → f' b ≤ m → m ∈ f' '' Set.Icc a b

Darboux's theorem: if a ≤ b and f' b ≤ m ≤ f' a, then f' c = m for some c ∈ [a, b].

theorem hasDerivWithinAt_forall_lt_or_forall_gt_of_forall_ne E1 #

∀ {f f' : ℝ → ℝ} {s : Set ℝ},
  Convex ℝ s →
    (∀ x ∈ s, HasDerivWithinAt f (f' x) s x) → ∀ {m : ℝ}, (∀ x ∈ s, f' x ≠ m) → (∀ x ∈ s, f' x < m) ∨ ∀ x ∈ s, m < f' x

If the derivative of a function is never equal to m, then either it is always greater than m, or it is always less than m.