Documentation

Mathlib.Topology.EMetricSpace.Diam

Diameters of sets in extended metric spaces #

In this file we define the diameter of a set in the extended metric space as an extended nonnegative real number.

noncomputable def Metric.ediam {X : Type u_2} [EDist X] (s : Set X) :

The diameter of a set in a pseudoemetric space as an extended nonnegative real number.

Equations
Instances For
    theorem Metric.ediam_le_iff {X : Type u_2} {s : Set X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] {d : ENNReal} :
    ediam s ≤ d ↔ ∀ x ∈ s, ∀ y ∈ s, edist x y ≤ d
    theorem Metric.ediam_image_le_iff {α : Type u_1} {X : Type u_2} [TopologicalSpace X] [WeakPseudoEMetricSpace X] {d : ENNReal} {f : α → X} {s : Set α} :
    ediam (f '' s) ≤ d ↔ ∀ x ∈ s, ∀ y ∈ s, edist (f x) (f y) ≤ d
    theorem Metric.edist_le_of_ediam_le {X : Type u_2} {s : Set X} {x y : X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] {d : ENNReal} (hx : x ∈ s) (hy : y ∈ s) (hd : ediam s ≤ d) :
    edist x y ≤ d
    theorem Metric.edist_le_ediam_of_mem {X : Type u_2} {s : Set X} {x y : X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] (hx : x ∈ s) (hy : y ∈ s) :

    If two points belong to some set, their edistance is bounded by the diameter of the set

    theorem Metric.ediam_le {X : Type u_2} {s : Set X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] {d : ENNReal} (h : ∀ x ∈ s, ∀ y ∈ s, edist x y ≤ d) :

    If the distance between any two points in a set is bounded by some constant, this constant bounds the diameter.

    The diameter of a subsingleton vanishes.

    Alias of Metric.ediam_subsingleton.


    The diameter of a subsingleton vanishes.

    @[simp]

    The diameter of the empty set vanishes

    @[simp]

    The extended diameter of a singleton vanishes

    @[simp]
    theorem Metric.ediam_iUnion_mem_option {X : Type u_2} [TopologicalSpace X] [WeakPseudoEMetricSpace X] {ι : Type u_3} (o : Option ι) (s : ι → Set X) :
    ediam (⋃ i ∈ o, s i) = ⨆ i ∈ o, ediam (s i)
    theorem Metric.ediam_insert {X : Type u_2} {s : Set X} {x : X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] :
    ediam (insert x s) = max (⨆ y ∈ s, edist x y) (ediam s)
    theorem Metric.ediam_triple {X : Type u_2} {x y z : X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] :
    ediam {x, y, z} = max (max (edist x y) (edist x z)) (edist y z)
    theorem Metric.ediam_mono {X : Type u_2} {s t : Set X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] (h : s ⊆ t) :

    The extended diameter is monotonous with respect to inclusion

    theorem Metric.ediam_union_le_add_edist {X : Type u_2} {s t : Set X} {x y : X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] (xs : x ∈ s) (yt : y ∈ t) :
    ediam (s ∪ t) ≤ ediam s + edist x y + ediam t

    The extended diameter of a union is controlled by the diameter of the sets, and the edistance between two points in the sets.

    theorem Metric.ediam_union_le {X : Type u_2} {s t : Set X} [TopologicalSpace X] [WeakPseudoEMetricSpace X] (h : (s ∩ t).Nonempty) :
    ediam (s ∪ t) ≤ ediam s + ediam t

    If two sets have nonempty intersection, then the extended diameter of their union is estimated from above by the sum of their union.

    theorem Metric.ediam_pi_le_of_le {ι : Type u_3} {X : ι → Type u_4} [Fintype ι] [(i : ι) → PseudoEMetricSpace (X i)] {s : (i : ι) → Set (X i)} {c : ENNReal} (h : ∀ (b : ι), ediam (s b) ≤ c) :
    theorem Metric.ediam_pos_iff' {X : Type u_2} {s : Set X} [TopologicalSpace X] [WeakEMetricSpace X] :
    0 < ediam s ↔ ∃ x ∈ s, ∃ y ∈ s, x ≠ y