The angles of a frozen-metric star add up to 2π (RC6b, step 5) #
The angles at a vertex v, computed from the squared lengths of the flat metric G = g(v), are the
Euclidean angles of the star under a linear map A with Aᵀ A = G (a Cholesky factor, which
preserves orientation). This file builds A as z ↦ α z + β z̄ on ℂ and applies
sum_angle_linear.
Main results #
exists_chol: a symmetric positive definite2 × 2matrix isMᵀ MforM = [[p, q], [0, r]].normSq_lin_eq_ip:|A z|² = z · G z.sum_triAngle_gram: for a positively oriented staruwinding once (angles adding up to2π), the angles computed from the squared lengthsu i · G u i,u (i+1) · G u (i+1)and(u (i+1) - u i) · G (u (i+1) - u i)add up to2π.
The coordinates (z 0, z 1) as a complex number.
Equations
- Lightlike.CMS.toC z = { re := z 0, im := z 1 }
Instances For
theorem
Lightlike.CMS.sum_triAngle_gram
{n : ℕ}
[NeZero n]
{G : Matrix (Fin 2) (Fin 2) ℝ}
(hs : G 0 1 = G 1 0)
(h00 : 0 < G 0 0)
(hdet : 0 < G 0 0 * G 1 1 - G 0 1 ^ 2)
{u : ZMod n → Fin 2 → ℝ}
(hu : IsPosStar fun (i : ZMod n) => toC (u i))
(h2π : ∑ i : ZMod n, InnerProductGeometry.angle (toC (u i)) (toC (u (i + 1))) = 2 * Real.pi)
:
The angles of a frozen-metric star add up to 2π.