Metric balls and spheres in normed spaces #
This file records how the affine map y โฆ c โข y +แตฅ x pulls metric balls, closed balls, and
spheres back to their corresponding sets centered at zero.
The preimage formulas need only [Norm ๐] [SMul ๐ E] [NormSMulClass ๐ E] on the
scalars and their action. Balls and closed balls require 0 < โcโ; spheres only require
โcโ โ 0. Over a normed division ring these conditions are equivalent to c โ 0, via
norm_pos_iff and norm_ne_zero_iff respectively.
The range formula identifies a positive real scaling of the unit sphere with the sphere of that radius in a seminormed real vector space. Two points on a sphere of nonzero radius centered at zero lie on the same line exactly when they are equal or antipodal.
The affine normalization map y โฆ c โข y +แตฅ x pulls the ball Metric.ball x (โcโ * r) back
to Metric.ball 0 r, for a scale c of positive norm.
The affine map y โฆ c โข y +แตฅ x pulls the closed ball of radius โcโ * r about x
back to the closed ball of radius r about 0.
The affine map y โฆ c โข y +แตฅ x pulls the sphere of radius โcโ * r about x
back to the sphere of radius r about 0, provided โcโ โ 0.
The image of the unit sphere under scaling by a positive real c is the sphere of radius
c.
Two points of a sphere of nonzero radius centered at zero in a real seminormed space lie on the same line exactly when they are equal or antipodal.
The unit sphere minus p and -p is the set of its points off the line through p.