# Indexed product of extended metric spaces #

source
instance instEDistForall {β : Type v} {X : β → Type u_2} [Fintype β] [(b : β) → EDist (X b)] :
EDist ((b : β) → X b)
Equations

- instEDistForall = { edist := fun (f g : (b : β) → X b) => Finset.univ.sup fun (b : β) => edist (f b) (g b) }

source
theorem edist_pi_def {β : Type v} {X : β → Type u_2} [Fintype β] [(b : β) → EDist (X b)] (f g : (b : β) → X b) :
edist f g = Finset.univ.sup fun (b : β) => edist (f b) (g b)
source
theorem edist_le_pi_edist {β : Type v} {X : β → Type u_2} [Fintype β] [(b : β) → EDist (X b)] (f g : (b : β) → X b) (b : β) :
edist (f b) (g b) ≤ edist f g
source
theorem edist_pi_le_iff {β : Type v} {X : β → Type u_2} [Fintype β] [(b : β) → EDist (X b)] {f g : (b : β) → X b} {d : ENNReal} :
edist f g ≤ d ↔ ∀ (b : β), edist (f b) (g b) ≤ d
source
theorem edist_pi_const_le {α : Type u} {β : Type v} [PseudoEMetricSpace α] [Fintype β] (a b : α) :
(edist (fun (x : β) => a) fun (x : β) => b) ≤ edist a b
source
@[simp]
theorem edist_pi_const {α : Type u} {β : Type v} [PseudoEMetricSpace α] [Fintype β] [Nonempty β] (a b : α) :
(edist (fun (x : β) => a) fun (x : β) => b) = edist a b
source
instance pseudoEMetricSpacePi {β : Type v} {X : β → Type u_2} [Fintype β] [(b : β) → PseudoEMetricSpace (X b)] :
PseudoEMetricSpace ((b : β) → X b)

The product of a finite number of pseudoemetric spaces, with the max distance, is still a pseudoemetric space. This construction would also work for infinite products, but it would not give rise to the product topology. Hence, we only formalize it in the good situation of finitely many spaces.

Equations

- pseudoEMetricSpacePi = { toEDist := instEDistForall, edist_self := ⋯, edist_comm := ⋯, edist_triangle := ⋯, toUniformSpace := Pi.uniformSpace X, uniformity_edist := ⋯ }

source
instance emetricSpacePi {β : Type v} {X : β → Type u_2} [Fintype β] [(b : β) → EMetricSpace (X b)] :
EMetricSpace ((b : β) → X b)

The product of a finite number of emetric spaces, with the max distance, is still an emetric space. This construction would also work for infinite products, but it would not give rise to the product topology. Hence, we only formalize it in the good situation of finitely many spaces.

Equations

- emetricSpacePi = EMetricSpace.ofT0PseudoEMetricSpace ((b : β) → X b)