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.Normed.Module.Convex

25 declarations and 2 deprecated aliases. Mathlib docs · Source

theorem convexOn_norm E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s : Set E},
  Convex ℝ s → ConvexOn ℝ s norm

The norm on a real normed space is convex on any convex set. See also Seminorm.convexOn and convexOn_univ_norm.

theorem convexOn_univ_norm E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E], ConvexOn ℝ Set.univ norm

The norm on a real normed space is convex on the whole space. See also Seminorm.convexOn and convexOn_norm.

theorem convexOn_dist E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s : Set E} (z : E),
  Convex ℝ s → ConvexOn ℝ s fun z' ↦ dist z' z

theorem convexOn_univ_dist E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (z : E),
  ConvexOn ℝ Set.univ fun z' ↦ dist z' z

theorem convex_ball E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (a : E) (r : ℝ),
  Convex ℝ (Metric.ball a r)

theorem convex_eball E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (a : E) (r : ENNReal),
  Convex ℝ (Metric.eball a r)

theorem convex_closedBall E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (a : E) (r : ℝ),
  Convex ℝ (Metric.closedBall a r)

theorem norm_sum_smul_le E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {ι : Type u_2} {t : Finset ι} {w : ι → ℝ}
  {r : ℝ} {z : ι → E}, (∀ i ∈ t, 0 ≤ w i) → ∑ i ∈ t, w i = 1 → (∀ i ∈ t, ‖z i‖ ≤ r) → ‖∑ i ∈ t, w i • z i‖ ≤ r

A finite convex combination of vectors of norm at most r has norm at most r.

theorem segment_subset_closedBall_left E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (x y : E),
  segment ℝ x y ⊆ Metric.closedBall x (dist x y)

The segment from x to y is contained in the closed ball centered at x with radius dist x y.

theorem segment_subset_closedBall_right E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (x y : E),
  segment ℝ x y ⊆ Metric.closedBall y (dist x y)

The segment from x to y is contained in the closed ball centered at y with radius dist x y.

theorem convex_closedEBall E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (a : E) (r : ENNReal),
  Convex ℝ (Metric.closedEBall a r)

theorem convexHull_sphere_eq_closedBall E1 #

∀ {F : Type u_2} [inst : NormedAddCommGroup F] [inst_1 : NormedSpace ℝ F] [Nontrivial F] (x : F) (r : ℝ),
  (convexHull ℝ) (Metric.sphere x r) = Metric.closedBall x r

theorem convexHull_exists_dist_ge E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s : Set E} {x : E},
  x ∈ (convexHull ℝ) s → ∀ (y : E), ∃ x' ∈ s, dist x y ≤ dist x' y

Given a point x in the convex hull of s and a point y, there exists a point of s at distance at least dist x y from y.

theorem Convex.thickening E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s : Set E},
  Convex ℝ s → ∀ (δ : ℝ), Convex ℝ (Metric.thickening δ s)

theorem Convex.cthickening E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s : Set E},
  Convex ℝ s → ∀ (δ : ℝ), Convex ℝ (Metric.cthickening δ s)

theorem convexHull_exists_dist_ge2 E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s t : Set E} {x y : E},
  x ∈ (convexHull ℝ) s → y ∈ (convexHull ℝ) t → ∃ x' ∈ s, ∃ y' ∈ t, dist x y ≤ dist x' y'

Given a point x in the convex hull of s and a point y in the convex hull of t, there exist points x' ∈ s and y' ∈ t at distance at least dist x y.

theorem convexHull_ediam E0 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (s : Set E),
  Metric.ediam ((convexHull ℝ) s) = Metric.ediam s

Emetric diameter of the convex hull of a set s equals the emetric diameter of s.

theorem convexHull_diam E0 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (s : Set E),
  Metric.diam ((convexHull ℝ) s) = Metric.diam s

Diameter of the convex hull of a set s equals the emetric diameter of s.

theorem isBounded_convexHull E0 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s : Set E},
  Bornology.IsBounded ((convexHull ℝ) s) ↔ Bornology.IsBounded s

Convex hull of s is bounded if and only if s is bounded.

instance NormedSpace.instPathConnectedSpace E0 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [NormedSpace ℝ E], PathConnectedSpace E

theorem isConnected_setOfPred_sameRay E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] (x : E), IsConnected {y | SameRay ℝ x y}

The set of vectors in the same ray as x is connected.

theorem isConnected_setOfPred_sameRay_and_ne_zero E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {x : E},
  x ≠ 0 → IsConnected {y | SameRay ℝ x y ∧ y ≠ 0}

The set of nonzero vectors in the same ray as the nonzero vector x is connected.

theorem norm_sub_le_of_mem_segment E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {x y z : E},
  y ∈ segment ℝ x z → ‖y - x‖ ≤ ‖z - x‖

theorem Filter.Eventually.segment_of_prod_nhds E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {α : Type u_2} {f : Filter α} {x : E}
  {y z : α → E} {r : α → E → Prop},
  Filter.Tendsto y f (nhds x) →
    Filter.Tendsto z f (nhds x) →
      (∀ᶠ (p : α × E) in f ×ˢ nhds x, r p.1 p.2) → ∀ᶠ (χ : α) in f, ∀ v ∈ segment ℝ (y χ) (z χ), r χ v

theorem Filter.Eventually.segment_of_prod_nhdsWithin E1 #

∀ {E : Type u_1} [inst : SeminormedAddCommGroup E] [inst_1 : NormedSpace ℝ E] {s : Set E} {α : Type u_2} {f : Filter α}
  {x : E} {y z : α → E} {r : α → E → Prop},
  Filter.Tendsto y f (nhds x) →
    Filter.Tendsto z f (nhds x) →
      (∀ᶠ (p : α × E) in f ×ˢ nhdsWithin x s, r p.1 p.2) →
        (∀ᶠ (χ : α) in f, segment ℝ (y χ) (z χ) ⊆ s) → ∀ᶠ (χ : α) in f, ∀ v ∈ segment ℝ (y χ) (z χ), r χ v

Deprecated aliases

NameNew nameSince
isConnected_setOf_sameRayisConnected_setOfPred_sameRay2026-07-09
isConnected_setOf_sameRay_and_ne_zeroisConnected_setOfPred_sameRay_and_ne_zero2026-07-09