LeanPool.Monsky.SegmentTriangle #
Imported Lean Pool material for LeanPool.Monsky.SegmentTriangle.
The determinant (signed area form) attached to a triangle's three vertices.
Equations
Instances For
The 2×2 determinant of two plane vectors.
Instances For
The direction vector of a segment, from its first to its second endpoint.
Equations
- LeanPool.Monsky.segVec L = L 1 - L 0
Instances For
The sign of the determinant of a triangle, as an element of ℝ.
Equations
- LeanPool.Monsky.signSeg L v = LeanPool.Monsky.det fun (x : Fin 3) => match x with | 0 => L 0 | 1 => L 1 | 2 => v
Instances For
The segment with the two given endpoints.
Equations
- LeanPool.Monsky.toSegment a b 0 = a
- LeanPool.Monsky.toSegment a b 1 = b
Instances For
The segment with its two endpoints swapped.
Equations
- LeanPool.Monsky.reverseSegment L = LeanPool.Monsky.toSegment (L 1) (L 0)
Instances For
colin u v w states that v lies strictly between the distinct points u and w.
Equations
- LeanPool.Monsky.colin u v w = (u ≠ w ∧ v ∈ LeanPool.Monsky.openHull (LeanPool.Monsky.toSegment u w))
Instances For
The i-th side of a triangle, as a segment.
Equations
- LeanPool.Monsky.Tside T 0 = fun (x : Fin 2) => match x with | 0 => T 1 | 1 => T 2
- LeanPool.Monsky.Tside T 1 = fun (x : Fin 2) => match x with | 0 => T 2 | 1 => T 0
- LeanPool.Monsky.Tside T 2 = fun (x : Fin 2) => match x with | 0 => T 0 | 1 => T 1
Instances For
The i-th barycentric coordinate of a point with respect to a triangle.
Equations
- LeanPool.Monsky.Tco T x i = LeanPool.Monsky.signSeg (LeanPool.Monsky.Tside T i) x / LeanPool.Monsky.det T
Instances For
The opposite-side normal vector used in the barycentric coordinate formula.
Equations
Instances For
The remaining index of Fin 3 distinct from two given indices.
Equations
- LeanPool.Monsky.lastIndex 0 = fun (x : Fin 3) => match x with | 0 => 0 | 1 => 2 | 2 => 1
- LeanPool.Monsky.lastIndex 1 = fun (x : Fin 3) => match x with | 0 => 2 | 1 => 1 | 2 => 0
- LeanPool.Monsky.lastIndex 2 = fun (x : Fin 3) => match x with | 0 => 1 | 1 => 0 | 2 => 2
Instances For
The two-simplex used to express a point of one segment inside another.
Equations
Instances For
The closed hull of the segment associated to an unordered pair of points.
Equations
Instances For
The parametrization of the line through v₁ in direction v₂.
Equations
- LeanPool.Monsky.linePar v₁ v₂ t = v₁ + t • v₂
Instances For
A small segment centered at x in the direction of a given vector.
Equations
- LeanPool.Monsky.segmentAroundX x y ε₁ ε₂ = LeanPool.Monsky.toSegment (x + (1 * ε₁) • y) (x + (-1 * ε₂) • y)