Inhabited, totally bounded subspaces of metric spaces

Content created by Louis Wasserman.

Created on 2025-09-11.
Last modified on 2025-09-11.

module metric-spaces.inhabited-totally-bounded-subspaces-metric-spaces where
Imports
open import foundation.cartesian-products-subtypes
open import foundation.dependent-pair-types
open import foundation.equivalences
open import foundation.function-types
open import foundation.images
open import foundation.images-subtypes
open import foundation.inhabited-subtypes
open import foundation.inhabited-types
open import foundation.universe-levels

open import metric-spaces.cartesian-products-metric-spaces
open import metric-spaces.metric-spaces
open import metric-spaces.subspaces-metric-spaces
open import metric-spaces.totally-bounded-metric-spaces
open import metric-spaces.totally-bounded-subspaces-metric-spaces
open import metric-spaces.uniformly-continuous-functions-metric-spaces

Idea

An inhabited, totally bounded subspace of a metric space X is a subspace S ⊆ X that is totally bounded and inhabited.

Definition

inhabited-totally-bounded-subspace-Metric-Space :
  {l1 l2 : Level} (l3 l4 : Level)  Metric-Space l1 l2 
  UU (l1  l2  lsuc l3  lsuc l4)
inhabited-totally-bounded-subspace-Metric-Space l3 l4 X =
  Σ ( totally-bounded-subspace-Metric-Space l3 l4 X)
    ( λ S 
      is-inhabited-subtype (subset-totally-bounded-subspace-Metric-Space X S))

module _
  {l1 l2 l3 l4 : Level} (X : Metric-Space l1 l2)
  (S : inhabited-totally-bounded-subspace-Metric-Space l3 l4 X)
  where

  totally-bounded-subspace-inhabited-totally-bounded-subspace-Metric-Space :
    totally-bounded-subspace-Metric-Space l3 l4 X
  totally-bounded-subspace-inhabited-totally-bounded-subspace-Metric-Space =
    pr1 S

  subset-inhabited-totally-bounded-subspace-Metric-Space :
    subset-Metric-Space l3 X
  subset-inhabited-totally-bounded-subspace-Metric-Space =
    subset-totally-bounded-subspace-Metric-Space
      ( X)
      ( totally-bounded-subspace-inhabited-totally-bounded-subspace-Metric-Space)

  subspace-inhabited-totally-bounded-subspace-Metric-Space :
    Metric-Space (l1  l3) l2
  subspace-inhabited-totally-bounded-subspace-Metric-Space =
    subspace-totally-bounded-subspace-Metric-Space
      ( X)
      ( totally-bounded-subspace-inhabited-totally-bounded-subspace-Metric-Space)

  is-totally-bounded-subspace-inhabited-totally-bounded-subspace-Metric-Space :
    is-totally-bounded-Metric-Space
      ( l4)
      ( subspace-inhabited-totally-bounded-subspace-Metric-Space)
  is-totally-bounded-subspace-inhabited-totally-bounded-subspace-Metric-Space =
    is-totally-bounded-subspace-totally-bounded-subspace-Metric-Space
      ( X)
      ( totally-bounded-subspace-inhabited-totally-bounded-subspace-Metric-Space)

  is-inhabited-inhabited-totally-bounded-subspace-Metric-Space :
    is-inhabited-subtype subset-inhabited-totally-bounded-subspace-Metric-Space
  is-inhabited-inhabited-totally-bounded-subspace-Metric-Space = pr2 S

Properties

The image of an inhabited totally bounded subspace of a metric space under a uniformly continuous function is an inhabited totally bounded subspace

im-uniformly-continuous-function-inhabited-totally-bounded-subspace-Metric-Space :
  {l1 l2 l3 l4 l5 l6 : Level} 
  (X : Metric-Space l1 l2) (Y : Metric-Space l3 l4) 
  (f : uniformly-continuous-function-Metric-Space X Y) 
  inhabited-totally-bounded-subspace-Metric-Space l5 l6 X 
  inhabited-totally-bounded-subspace-Metric-Space
    ( l1  l3  l5)
    ( l1  l3  l5  l6)
    ( Y)
im-uniformly-continuous-function-inhabited-totally-bounded-subspace-Metric-Space
  X Y f (S , |S|) =
    ( im-uniformly-continuous-function-totally-bounded-subspace-Metric-Space
        ( X)
        ( Y)
        ( f)
        ( S) ,
      map-is-inhabited
        ( map-unit-im
          ( map-uniformly-continuous-function-Metric-Space X Y f 
            inclusion-totally-bounded-subspace-Metric-Space X S))
        ( |S|))

Inhabited, totally bounded subspaces of metric spaces are closed under cartesian products

product-inhabited-totally-bounded-subspace-Metric-Space :
  {l1 l2 l3 l4 l5 l6 l7 l8 : Level} 
  (X : Metric-Space l1 l2) (Y : Metric-Space l3 l4) 
  (S : inhabited-totally-bounded-subspace-Metric-Space l5 l6 X) 
  (T : inhabited-totally-bounded-subspace-Metric-Space l7 l8 Y) 
  inhabited-totally-bounded-subspace-Metric-Space
    ( l5  l7)
    ( l1  l3  l5  l6  l7  l8)
    ( product-Metric-Space X Y)
product-inhabited-totally-bounded-subspace-Metric-Space
  X Y (S , |S|) (T , |T|) =
  ( product-totally-bounded-subspace-Metric-Space X Y S T ,
    map-is-inhabited
      ( map-inv-equiv
        ( equiv-product-subtype
          ( subset-totally-bounded-subspace-Metric-Space X S)
          ( subset-totally-bounded-subspace-Metric-Space Y T)))
      ( is-inhabited-Σ |S|  _  |T|)))

Recent changes