Squared distances in finite ℓ² products of metric spaces #
The squared distance in a finite ℓ² product of pseudometric spaces is the sum of the squared
distances of the coordinates (PiLp.dist_sq_eq_sum). Mathlib's PiLp.dist_sq_eq_of_L2 is the
version for normed groups. Moved from CslibFrontier/Foundations/Geometry/CAT0/Basic.lean, so
that metric constructions on ℓ² products need not import the CAT(0) layer.
Main results #
PiLp.dist_sq_eq_sum: the squared distance is the sum over the coordinates.
theorem PiLp.dist_sq_eq_sum {ι : Type u_1} [Fintype ι] {X : ι → Type u_2} [(i : ι) → PseudoMetricSpace (X i)] (f g : PiLp 2 X) :
The squared distance in a finite ℓ² product of metric spaces is the sum of the squared
distances of the coordinates. (PiLp.dist_sq_eq_of_L2 is the version for normed groups.)