Documentation

Lightlike.Regge.CMS.Angle

Triangle angles from squared edge lengths (RC6b, step 1) #

The first brick of the convergence of Regge's deficit angles in dimension two (Cheeger, Müller and Schrader). A piecewise flat surface is given by the squared lengths of its edges. The angle of a triangle at a vertex is computed from them by the law of cosines. This file defines that angle and proves that it is the Euclidean angle for every triangle in an inner product space, and that the three angles of a triangle sum to π.

Definitions #

Main results #

noncomputable def Lightlike.CMS.triAngle (a b c : ℝ) :

The angle at a vertex of a triangle from squared edge lengths: the two adjacent edges have squared lengths a, b, the opposite edge c. It is arccos ((a + b - c) / (2 √(a b))), a junk value when a or b is 0.

Equations
Instances For
    theorem Lightlike.CMS.triAngle_eq_angle {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (x v w : E) :
    triAngle (dist x v ^ 2) (dist w v ^ 2) (dist x w ^ 2) = EuclideanGeometry.angle x v w

    The law of cosines gives the Euclidean angle. For points x v w of an inner product space, the angle at v computed from the three squared distances is the Euclidean angle ∠ x v w.

    theorem Lightlike.CMS.triAngle_sum {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (x y z : E) (hxy : x ≠ y) :
    triAngle (dist y x ^ 2) (dist z x ^ 2) (dist y z ^ 2) + triAngle (dist x y ^ 2) (dist z y ^ 2) (dist x z ^ 2) + triAngle (dist x z ^ 2) (dist y z ^ 2) (dist x y ^ 2) = Real.pi

    Angle sum. The three angles computed from the squared lengths of a triangle with distinct vertices add up to π.