Dihedral angles of a Euclidean tetrahedron from its edge lengths #
Regge calculus describes a curved 3-geometry by a triangulation with a length on every edge. The
curvature sits on the edges and is measured by dihedral angles. The library already has a length
formula for the dihedral angle (Lightlike.PR.cosDihedral, Lightlike.PR.dihedral in
Lightlike/PonzanoRegge/Asymptotics.lean), checked there only on the regular tetrahedron. This file
checks it against Euclidean geometry for every tetrahedron and proves the properties that the
triangulation-level definitions in Lightlike/Regge/Complex.lean rely on.
Main results #
dihedral_dist: for four pointsp q r sof a real inner product space withp ≠ q, the length formula applied to their six distances equals the angle between the components ofr - pands - porthogonal to the edge directionq - p. That angle is the dihedral angle of the tetrahedronpqrsat its edgepqin the usual sense (InnerProductGeometry.angle).cosDihedral_swap_rs,cosDihedral_swap_pq: the formula does not depend on the order of the two opposite vertices, nor (forpq ≠ 0) on the order of the two edge vertices.dihedral_smul: dihedral angles are unchanged when all six lengths are scaled byc > 0.
The argument order is the one of Lightlike.PR.cosDihedral: pq pr qr ps qs rs.
Symmetries and scaling of the length formula #
The length formula is symmetric under exchanging the two vertices r, s opposite the edge.
The length formula is symmetric under exchanging the two vertices p, q of the edge, provided
the edge length is nonzero. (For pq = 0 the formula divides by zero and the symmetry fails.)
The dihedral angle is symmetric under exchanging the two vertices opposite the edge.
The dihedral angle is symmetric under exchanging the two vertices of the edge, for a nonzero edge length.
Scaling all six lengths by c > 0 does not change the cosine of the dihedral angle.
Dihedral angles are scale invariant: scaling all six lengths by c > 0 does not change them.
The dihedral angle lies in [0, π] (it is an arccos).
The length formula agrees with Euclidean geometry #
The component of a orthogonal to v, namely a - (⟪a, v⟫ / ‖v‖²) • v. For v = q - p and
a = r - p it is the perpendicular dropped from r onto the line pq, so the dihedral angle at
the edge pq of the tetrahedron pqrs is the angle between perp (q - p) (r - p) and
perp (q - p) (s - p).
Instances For
perp v a is orthogonal to v.
The length formula is Euclidean. For points p ≠ q, r, s of a real inner product
space, Lightlike.PR.cosDihedral of the six distances is the cosine of the angle between the
perpendiculars dropped from r and from s onto the line pq.
The dihedral angle from lengths is the Euclidean dihedral angle. For points p ≠ q, r,
s of a real inner product space, Lightlike.PR.dihedral of the six distances is the angle
(InnerProductGeometry.angle) between the perpendiculars dropped from r and s onto the line
pq.