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.MetricSpace.GromovHausdorff

39 declarations. Mathlib docs · Source

theorem GromovHausdorff.ghDist.congr_simp E1 #

∀ (X : Type u) (Y : Type v) [inst : MetricSpace X] [inst_1 : Nonempty X] [inst_2 : CompactSpace X]
  [inst_3 : MetricSpace Y] [inst_4 : Nonempty Y] [inst_5 : CompactSpace Y],
  GromovHausdorff.ghDist X Y = GromovHausdorff.ghDist X Y

def GromovHausdorff.AuxGluingStruct.ctorIdx E1 #

{A : Type} → {inst : MetricSpace A} → GromovHausdorff.AuxGluingStruct A → ℕ

theorem NonemptyCompacts.kuratowskiEmbedding.congr_simp E1 #

∀ (α : Type u) [inst : MetricSpace α] [inst_1 : CompactSpace α] [inst_2 : Nonempty α],
  NonemptyCompacts.kuratowskiEmbedding α = NonemptyCompacts.kuratowskiEmbedding α

theorem GromovHausdorff.AuxGluingStruct.mk.inj E1 #

∀ {A : Type} {inst : MetricSpace A} {Space : Type} {metric : MetricSpace Space} {embed : A → Space}
  {isom : Isometry embed} {Space_1 : Type} {metric_1 : MetricSpace Space_1} {embed_1 : A → Space_1}
  {isom_1 : Isometry embed_1},
  { Space := Space, metric := metric, embed := embed, isom := isom } =
      { Space := Space_1, metric := metric_1, embed := embed_1, isom := isom_1 } →
    Space = Space_1 ∧ metric ≍ metric_1 ∧ embed ≍ embed_1

theorem GromovHausdorff.toGHSpace.congr_simp E1 #

∀ (X : Type u) [inst : MetricSpace X] [inst_1 : CompactSpace X] [inst_2 : Nonempty X],
  GromovHausdorff.toGHSpace X = GromovHausdorff.toGHSpace X

theorem GromovHausdorff.AuxGluingStruct.mk.injEq E0 #

∀ {A : Type} [inst : MetricSpace A] (Space : Type) (metric : MetricSpace Space) (embed : A → Space)
  (isom : Isometry embed) (Space_1 : Type) (metric_1 : MetricSpace Space_1) (embed_1 : A → Space_1)
  (isom_1 : Isometry embed_1),
  ({ Space := Space, metric := metric, embed := embed, isom := isom } =
      { Space := Space_1, metric := metric_1, embed := embed_1, isom := isom_1 }) =
    (Space = Space_1 ∧ metric ≍ metric_1 ∧ embed ≍ embed_1)

instance GromovHausdorff.IsometryRel.setoid E0 #

Setoid (TopologicalSpace.NonemptyCompacts ↥(lp (fun n ↦ ℝ) ⊤))

setoid instance identifying two isometric nonempty compact subspaces of ℓ^∞(ℝ)

def GromovHausdorff.GHSpace E3 #

Type

The Gromov-Hausdorff space

def GromovHausdorff.toGHSpace E1 #

(X : Type u) → [inst : MetricSpace X] → [CompactSpace X] → [Nonempty X] → GromovHausdorff.GHSpace

Map any nonempty compact type to GHSpace

instance GromovHausdorff.instInhabitedGHSpace E0 #

Inhabited GromovHausdorff.GHSpace

def GromovHausdorff.GHSpace.Rep E1 #

GromovHausdorff.GHSpace → Type

A metric space representative of any abstract point in GHSpace

instance GromovHausdorff.repGHSpaceMetricSpace E0 #

{p : GromovHausdorff.GHSpace} → MetricSpace p.Rep

instance GromovHausdorff.rep_gHSpace_compactSpace E0 #

∀ {p : GromovHausdorff.GHSpace}, CompactSpace p.Rep

instance GromovHausdorff.rep_gHSpace_nonempty E0 #

∀ {p : GromovHausdorff.GHSpace}, Nonempty p.Rep

theorem GromovHausdorff.GHSpace.toGHSpace_rep E1 #

∀ (p : GromovHausdorff.GHSpace), GromovHausdorff.toGHSpace p.Rep = p

theorem GromovHausdorff.toGHSpace_eq_toGHSpace_iff_isometryEquiv E1 #

∀ {X : Type u} [inst : MetricSpace X] [inst_1 : CompactSpace X] [inst_2 : Nonempty X] {Y : Type v}
  [inst_3 : MetricSpace Y] [inst_4 : CompactSpace Y] [inst_5 : Nonempty Y],
  GromovHausdorff.toGHSpace X = GromovHausdorff.toGHSpace Y ↔ Nonempty (X ≃ᵢ Y)

Two nonempty compact spaces have the same image in GHSpace if and only if they are isometric.

instance GromovHausdorff.instDistGHSpace E0 #

Dist GromovHausdorff.GHSpace

Distance on GHSpace: the distance between two nonempty compact spaces is the infimum Hausdorff distance between isometric copies of the two spaces in a metric space. For the definition, we only consider embeddings in ℓ^∞(ℝ), but we will prove below that it works for all spaces.

def GromovHausdorff.ghDist E1 #

(X : Type u) →
  (Y : Type v) →
    [inst : MetricSpace X] →
      [Nonempty X] → [CompactSpace X] → [inst : MetricSpace Y] → [Nonempty Y] → [CompactSpace Y] → ℝ

The Gromov-Hausdorff distance between two nonempty compact metric spaces, equal by definition to the distance of the equivalence classes of these spaces in the Gromov-Hausdorff space.

theorem GromovHausdorff.dist_ghDist E1 #

∀ (p q : GromovHausdorff.GHSpace), dist p q = GromovHausdorff.ghDist p.Rep q.Rep

theorem GromovHausdorff.ghDist_le_hausdorffDist E1 #

∀ {X : Type u} [inst : MetricSpace X] [inst_1 : CompactSpace X] [inst_2 : Nonempty X] {Y : Type v}
  [inst_3 : MetricSpace Y] [inst_4 : CompactSpace Y] [inst_5 : Nonempty Y] {γ : Type w} [inst_6 : MetricSpace γ]
  {Φ : X → γ} {Ψ : Y → γ},
  Isometry Φ → Isometry Ψ → GromovHausdorff.ghDist X Y ≤ Metric.hausdorffDist (Set.range Φ) (Set.range Ψ)

The Gromov-Hausdorff distance between two spaces is bounded by the Hausdorff distance of isometric copies of the spaces, in any metric space.

theorem GromovHausdorff.hausdorffDist_optimal E1 #

∀ {X : Type u} [inst : MetricSpace X] [inst_1 : CompactSpace X] [inst_2 : Nonempty X] {Y : Type v}
  [inst_3 : MetricSpace Y] [inst_4 : CompactSpace Y] [inst_5 : Nonempty Y],
  Metric.hausdorffDist (Set.range (GromovHausdorff.optimalGHInjl X Y)) (Set.range (GromovHausdorff.optimalGHInjr X Y)) =
    GromovHausdorff.ghDist X Y

The optimal coupling constructed above realizes exactly the Gromov-Hausdorff distance, essentially by design.

theorem GromovHausdorff.ghDist_eq_hausdorffDist E1 #

∀ (X : Type u) [inst : MetricSpace X] [inst_1 : CompactSpace X] [inst_2 : Nonempty X] (Y : Type v)
  [inst_3 : MetricSpace Y] [inst_4 : CompactSpace Y] [inst_5 : Nonempty Y],
  ∃ Φ Ψ, Isometry Φ ∧ Isometry Ψ ∧ GromovHausdorff.ghDist X Y = Metric.hausdorffDist (Set.range Φ) (Set.range Ψ)

The Gromov-Hausdorff distance can also be realized by a coupling in ℓ^∞(ℝ), by embedding the optimal coupling through its Kuratowski embedding.

instance GromovHausdorff.instMetricSpaceGHSpace E0 #

MetricSpace GromovHausdorff.GHSpace

The Gromov-Hausdorff distance defines a genuine distance on the Gromov-Hausdorff space.

def TopologicalSpace.NonemptyCompacts.toGHSpace E1 #

{X : Type u} → [inst : MetricSpace X] → TopologicalSpace.NonemptyCompacts X → GromovHausdorff.GHSpace

In particular, nonempty compacts of a metric space map to GHSpace. We register this in the TopologicalSpace namespace to take advantage of the notation p.toGHSpace.

theorem GromovHausdorff.ghDist_le_nonemptyCompacts_dist E1 #

∀ {X : Type u} [inst : MetricSpace X] (p q : TopologicalSpace.NonemptyCompacts X),
  dist p.toGHSpace q.toGHSpace ≤ dist p q

theorem GromovHausdorff.toGHSpace_lipschitz E1 #

∀ {X : Type u} [inst : MetricSpace X], LipschitzWith 1 TopologicalSpace.NonemptyCompacts.toGHSpace

theorem GromovHausdorff.toGHSpace_continuous E1 #

∀ {X : Type u} [inst : MetricSpace X], Continuous TopologicalSpace.NonemptyCompacts.toGHSpace

theorem GromovHausdorff.ghDist_le_of_approx_subsets E1 #

∀ {X : Type u} [inst : MetricSpace X] [inst_1 : CompactSpace X] [inst_2 : Nonempty X] {Y : Type v}
  [inst_3 : MetricSpace Y] [inst_4 : CompactSpace Y] [inst_5 : Nonempty Y] {s : Set X} (Φ : ↑s → Y) {ε₁ ε₂ ε₃ : ℝ},
  (∀ (x : X), ∃ y ∈ s, dist x y ≤ ε₁) →
    (∀ (x : Y), ∃ y, dist x (Φ y) ≤ ε₃) →
      (∀ (x y : ↑s), |dist x y - dist (Φ x) (Φ y)| ≤ ε₂) → GromovHausdorff.ghDist X Y ≤ ε₁ + ε₂ / 2 + ε₃

If there are subsets which are ε₁-dense and ε₃-dense in two spaces, and isometric up to ε₂, then the Gromov-Hausdorff distance between the spaces is bounded by ε₁ + ε₂/2 + ε₃.

instance GromovHausdorff.instSecondCountableTopologyGHSpace E0 #

SecondCountableTopology GromovHausdorff.GHSpace

The Gromov-Hausdorff space is second countable.

theorem GromovHausdorff.totallyBounded E2 #

∀ {t : Set GromovHausdorff.GHSpace} {C : ℝ} {u : ℕ → ℝ} {K : ℕ → ℕ},
  Filter.Tendsto u Filter.atTop (nhds 0) →
    (∀ p ∈ t, Metric.diam Set.univ ≤ C) →
      (∀ p ∈ t, ∀ (n : ℕ), ∃ s, Cardinal.mk ↑s ≤ ↑(K n) ∧ Set.univ ⊆ ⋃ x ∈ s, Metric.ball x (u n)) → TotallyBounded t

Compactness criterion: a closed set of compact metric spaces is compact if the spaces have a uniformly bounded diameter, and for all ε the number of balls of radius ε required to cover the spaces is uniformly bounded. This is an equivalence, but we only prove the interesting direction that these conditions imply compactness.

structure GromovHausdorff.AuxGluingStruct E1 #

(A : Type) → [MetricSpace A] → Type 1

Auxiliary structure used to glue metric spaces below, recording an isometric embedding of a type A in another metric space.

ctor GromovHausdorff.AuxGluingStruct.mk E0 #

{A : Type} →
  [inst : MetricSpace A] →
    (Space : Type) →
      (metric : MetricSpace Space) → (embed : A → Space) → Isometry embed → GromovHausdorff.AuxGluingStruct A

abbrev GromovHausdorff.AuxGluingStruct.Space E1 #

{A : Type} → [inst : MetricSpace A] → GromovHausdorff.AuxGluingStruct A → Type

abbrev GromovHausdorff.AuxGluingStruct.metric E1 #

{A : Type} → [inst : MetricSpace A] → (self : GromovHausdorff.AuxGluingStruct A) → MetricSpace self.Space

abbrev GromovHausdorff.AuxGluingStruct.embed E1 #

{A : Type} → [inst : MetricSpace A] → (self : GromovHausdorff.AuxGluingStruct A) → A → self.Space

theorem GromovHausdorff.AuxGluingStruct.isom E1 #

∀ {A : Type} [inst : MetricSpace A] (self : GromovHausdorff.AuxGluingStruct A), Isometry self.embed

instance GromovHausdorff.instInhabitedAuxGluingStruct E0 #

(A : Type) → [inst : MetricSpace A] → Inhabited (GromovHausdorff.AuxGluingStruct A)

def GromovHausdorff.auxGluing E1 #

(X : ℕ → Type) →
  [inst : (n : ℕ) → MetricSpace (X n)] →
    [∀ (n : ℕ), CompactSpace (X n)] → [∀ (n : ℕ), Nonempty (X n)] → (n : ℕ) → GromovHausdorff.AuxGluingStruct (X n)

Auxiliary sequence of metric spaces, containing copies of X 0, ..., X n, where each X i is glued to X (i+1) in an optimal way. The space at step n+1 is obtained from the space at step n by adding X (n+1), glued in an optimal way to the X n already sitting there.

instance GromovHausdorff.instCompleteSpaceGHSpace E0 #

CompleteSpace GromovHausdorff.GHSpace

The Gromov-Hausdorff space is complete.