Translation of a convex body
DefinitionMovingSofa_ForMathlib_Convex_Translationanalysisgeometry
Let be a real normed space and a convex body (nonempty compact convex set). For , the translate is again a convex body. This bundles the translated carrier with convexity, compactness, and nonemptiness for reuse in cap/tail constructions.
Definition code
import Mathlib.Analysis.Convex.Body
set_option autoImplicit false
/-- Translation of a convex body by a vector. -/
def ConvexBody.translate {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
(K : ConvexBody E) (v : E) : ConvexBody E where
carrier := (fun p ↦ p + v) '' (K : Set E)
convex' := by simpa only [add_comm] using K.convex.translate v
isCompact' := K.isCompact.image (continuous_id.add continuous_const)
nonempty' := K.nonempty.image _
Source