Documentation

Lightlike.Regge.CMS.TriArea

The area of a triangle in the plane (RC6b) #

The triangle with vertices a, b, c : Fin 2 → ℝ is the convex hull tri a b c. Its Lebesgue measure is |det2 (b - a) (c - a)| / 2. The proof maps the standard simplex simplex2 (measure 1/2, by integrating the slices) by an affine map.

The standard triangle {x | 0 ≤ x₀, 0 ≤ x₁, x₀ + x₁ ≤ 1}.

Equations
Instances For
    def Lightlike.CMS.triMap (a b c x : Fin 2 → ℝ) :
    Fin 2 → ℝ

    The affine map sending the standard triangle to the triangle a b c.

    Equations
    Instances For
      def Lightlike.CMS.tri (a b c : Fin 2 → ℝ) :
      Set (Fin 2 → ℝ)

      The triangle with vertices a, b, c.

      Equations
      Instances For
        theorem Lightlike.CMS.triMap_eq (a b c : Fin 2 → ℝ) :
        triMap a b c = (fun (y : Fin 2 → ℝ) => a + y) ∘ ⇑(Matrix.toLin' !![(b - a) 0, (c - a) 0; (b - a) 1, (c - a) 1])
        theorem Lightlike.CMS.volume_tri (a b c : Fin 2 → ℝ) :
        theorem Lightlike.CMS.convex_tri (a b c : Fin 2 → ℝ) :
        Convex ℝ (tri a b c)
        theorem Lightlike.CMS.tri_eq_convexHull (a b c : Fin 2 → ℝ) :
        tri a b c = (convexHull ℝ) {a, b, c}

        The triangle is the convex hull of its vertices.