English
Convex bodies in a fixed normed space form a metric space under the Hausdorff distance.
Русский
Выпуклые тела в фиксированном нормированном пространстве образуют метрическое пространство по расстоянию Хаусдорфа.
LaTeX
$$$\\text{ConvexBody}(V)\\text{ is a metric space with distance }d(K,L)=\\mathrm{hausdorffDist}(K,L).$$$
Lean4
/-- Center of mass of a finite collection of points with prescribed weights.
Note that we require neither `0 ≤ w i` nor `∑ w = 1`. -/
def centerMass (t : Finset ι) (w : ι → R) (z : ι → E) : E :=
(∑ i ∈ t, w i)⁻¹ • ∑ i ∈ t, w i • z i