Betweenness in affine spaces #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file defines notions of a point in an affine space being between two given points.
Main definitions #
affine_segment R x y: The segment of points weakly betweenxandy.wbtw R x y z: The pointyis weakly betweenxandz.sbtw R x y z: The pointyis strictly betweenxandz.
The segment of points weakly between x and y. When convexity is refactored to support
abstract affine combination spaces, this will no longer need to be a separate definition from
segment. However, lemmas involving +ᵥ or -ᵥ will still be relevant after such a
refactoring, as distinct from versions involving + or - in a module.
Equations
- affine_segment R x y = ⇑(affine_map.line_map x y) '' set.Icc 0 1
The point y is weakly between x and z.
Equations
- wbtw R x y z = (y ∈ affine_segment R x z)
Alias of the forward direction of wbtw_comm.
Alias of the forward direction of sbtw_comm.
Suppose lines from two vertices of a triangle to interior points of the opposite side meet at
p. Then p lies in the interior of the first (and by symmetry the other) segment from a
vertex to the point on the opposite side.