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 / V16. Normed spaces and functional analysis

Mathlib.Analysis.Convex.SpecificFunctions.Deriv

13 declarations. Mathlib docs · Source

Collection of convex functions

In this file we prove that certain specific functions are strictly convex, including the following:

  • Even.strictConvexOn_pow : For an even n : ℕ with 2 ≤ n, fun x => x ^ n is strictly convex.
  • strictConvexOn_pow : For n : ℕ, with 2 ≤ n, fun x => x ^ n is strictly convex on $[0,+∞)$.
  • strictConvexOn_zpow : For m : ℤ with m ≠ 0, 1, fun x => x ^ m is strictly convex on $[0, +∞)$.
  • strictConcaveOn_sin_Icc : sin is strictly concave on $[0, π]$
  • strictConcaveOn_cos_Icc : cos is strictly concave on $[-π/2, π/2]$

TODO

These convexity lemmas are proved by checking the sign of the second derivative. If desired, most of these could also be switched to elementary proofs, like in Analysis.Convex.SpecificFunctions.Basic.

theorem strictConvexOn_pow E1 #

∀ {n : ℕ}, 2 ≤ n → StrictConvexOn ℝ (Set.Ici 0) fun x ↦ x ^ n

x^n, n : ℕ is strictly convex on [0, +∞) for all n greater than 2.

theorem Even.strictConvexOn_pow E1 #

∀ {n : ℕ}, Even n → n ≠ 0 → StrictConvexOn ℝ Set.univ fun x ↦ x ^ n

x^n, n : ℕ is strictly convex on the whole real line whenever n ≠ 0 is even.

theorem Finset.prod_nonneg_of_card_nonpos_even E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : CommRing β] [inst_1 : LinearOrder β] [IsStrictOrderedRing β] {f : α → β}
  [inst_3 : DecidablePred fun x ↦ f x ≤ 0] {s : Finset α}, Even {x ∈ s | f x ≤ 0}.card → 0 ≤ ∏ x ∈ s, f x

theorem int_prod_range_nonneg E1 #

∀ (m : ℤ) (n : ℕ), Even n → 0 ≤ ∏ k ∈ Finset.range n, (m - ↑k)

theorem int_prod_range_pos E1 #

∀ {m : ℤ} {n : ℕ}, Even n → m ∉ Set.Ico 0 ↑n → 0 < ∏ k ∈ Finset.range n, (m - ↑k)

theorem strictConvexOn_zpow E1 #

∀ {m : ℤ}, m ≠ 0 → m ≠ 1 → StrictConvexOn ℝ (Set.Ioi 0) fun x ↦ x ^ m

x^m, m : ℤ is convex on (0, +∞) for all m except 0 and 1.

theorem hasDerivAt_sqrt_mul_log E1 #

∀ {x : ℝ}, x ≠ 0 → HasDerivAt (fun x ↦ √x * Real.log x) ((2 + Real.log x) / (2 * √x)) x

theorem deriv_sqrt_mul_log E1 #

∀ (x : ℝ), deriv (fun x ↦ √x * Real.log x) x = (2 + Real.log x) / (2 * √x)

theorem deriv_sqrt_mul_log' E1 #

(deriv fun x ↦ √x * Real.log x) = fun x ↦ (2 + Real.log x) / (2 * √x)

theorem deriv2_sqrt_mul_log E1 #

∀ (x : ℝ), deriv^[2] (fun x ↦ √x * Real.log x) x = -Real.log x / (4 * √x ^ 3)

theorem strictConcaveOn_sqrt_mul_log_Ioi E1 #

StrictConcaveOn ℝ (Set.Ioi 1) fun x ↦ √x * Real.log x

theorem strictConcaveOn_sin_Icc E1 #

StrictConcaveOn ℝ (Set.Icc 0 Real.pi) Real.sin

theorem strictConcaveOn_cos_Icc E1 #

StrictConcaveOn ℝ (Set.Icc (-(Real.pi / 2)) (Real.pi / 2)) Real.cos