Segments in vector spaces #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
In a 𝕜-vector space, we define the following objects and properties.
segment 𝕜 x y: Closed segment joiningxandy.open_segment 𝕜 x y: Open segment joiningxandy.
Notations #
We provide the following notation:
TODO #
Generalize all this file to affine spaces.
Should we rename segment and open_segment to convex.Icc and convex.Ioo? Should we also
define clopen_segment/convex.Ico/convex.Ioc?
Open segment in a vector space. Note that open_segment 𝕜 x x = {x} instead of being ∅ when
the base semiring has some element between 0 and 1.
If z = line_map x y c is a point on the line passing through x and y, then the open
segment open_segment 𝕜 x y is included in the union of the open segments open_segment 𝕜 x z,
open_segment 𝕜 z y, and the point z. Informally, (x, y) ⊆ {z} ∪ (x, z) ∪ (z, y).