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).