Dihedral angles of a 4-simplex from its edge lengths #
In 4D Regge calculus curvature sits on triangles. Two tetrahedra of a 4-simplex meet in a triangle, and the dihedral angle there is the angle between the two tetrahedra, measured in the plane orthogonal to the triangle. This file computes it from the ten edge lengths and checks the formula against Euclidean geometry.
Let the 4-simplex have vertices p, q, r, s, u, the triangle be pqr, and the tetrahedra pqrs
and pqru. With the edge vectors a = q - p, b = r - p, c = s - p, d = u - p, all inner
products follow from the squared lengths by polarization, ⟨i - o, j - o⟩ = (ℓ_oi² + ℓ_oj² - ℓ_ij²)/2 (ip). The Gram determinants (gram2, gram3, gram4) are (k!)² times the squared
k-volumes, as in the Cayley–Menger formula: gram2 = 4·area², gram3 = 36·vol₃²,
gram4 = 576·vol₄². The mixed determinant mixed has rows a, b, c and columns a, b, d.
Then
cos θ = mixed / √(gram3(pqrs) · gram3(pqru)).
Definitions #
sq ℓ a b: the squared length of the edgeab(zero fora = b), from lengthsℓon 2-element vertex sets as everywhere inRegge/.ip ℓ o a b,gram2,gram3,gram4,mixed: inner products and determinants.cosDihedral4 ℓ p q r s u,dihedral4 ℓ p q r s u: the dihedral angle at the trianglepqrbetween the tetrahedrapqrsandpqru.perp2 a b c: the component ofcorthogonal toaandb.
Main results #
mixed_swap_pq,mixed_swap_qr,mixed_swap_su,gram3_swap_pq,gram3_swap_qr,gram3_swap_rs: the formulas are exactly symmetric, sodihedral4depends only on the triangle and the two opposite vertices (dihedral4_swap_pq,dihedral4_swap_qr,dihedral4_swap_su).desnanot_jacobi:gram3(pqrs) · gram3(pqru) - mixed² = gram2(pqr) · gram4, sosin θ = √(gram2 · gram4) / √(gram3 · gram3).cosDihedral4_dist,dihedral4_dist: the length formula is Euclidean. For points of any real inner product space with a non-degenerate trianglepqr,dihedral4of their distances is the angle between the components ofs - pandu - porthogonal to the plane of the triangle (perp2, characterised byperp2_mem_orthogonalandsub_perp2_mem_span).dihedral4_smul: invariance under scaling all lengths.cosDihedral4_regular: the regular 4-simplex hascos θ = 1/4.
Symbolic checks of these identities (and of the facet identity used for Schläfli's identity):
scripts/regge/regge4_check.py.
Inner products and determinants from lengths #
The inner product ⟨a - o, b - o⟩ of two edge vectors from o, by polarization.
Equations
- Lightlike.Regge4.ip ℓ o a b = (Lightlike.Regge4.sq ℓ o a + Lightlike.Regge4.sq ℓ o b - Lightlike.Regge4.sq ℓ a b) / 2
Instances For
The Gram determinant of the edge vectors q - p, r - p of the triangle pqr: four times
its squared area.
Equations
- Lightlike.Regge4.gram2 ℓ p q r = Lightlike.Regge4.ip ℓ p q q * Lightlike.Regge4.ip ℓ p r r - Lightlike.Regge4.ip ℓ p q r * Lightlike.Regge4.ip ℓ p r q
Instances For
The Gram determinant of the edge vectors q - p, r - p, s - p of the tetrahedron pqrs:
36 times its squared volume.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The mixed determinant at the triangle pqr of the 4-simplex pqrsu: rows q - p, r - p, s - p, columns q - p, r - p, u - p of the Gram matrix.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The Gram determinant of the edge vectors q - p, r - p, s - p, u - p of the 4-simplex
pqrsu (expanded along the first row): 576 times its squared 4-volume.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Cosine of the dihedral angle of the 4-simplex pqrsu at its triangle pqr, between the
tetrahedra pqrs and pqru.
Equations
- Lightlike.Regge4.cosDihedral4 ℓ p q r s u = Lightlike.Regge4.mixed ℓ p q r s u / √(Lightlike.Regge4.gram3 ℓ p q r s * Lightlike.Regge4.gram3 ℓ p q r u)
Instances For
The dihedral angle of the 4-simplex pqrsu at its triangle pqr.
Equations
- Lightlike.Regge4.dihedral4 ℓ p q r s u = Real.arccos (Lightlike.Regge4.cosDihedral4 ℓ p q r s u)
Instances For
Symmetry #
Squared lengths are symmetric.
The squared length of a degenerate edge is zero.
Normalise squared lengths: remove sq ℓ a a, order the arguments, expand.
Equations
- Lightlike.Regge4.tacticSq_ring = Lean.ParserDescr.node `Lightlike.Regge4.tacticSq_ring 1024 (Lean.ParserDescr.nonReservedSymbol "sq_ring" false)
Instances For
The mixed determinant is symmetric in the first two vertices of the triangle.
The mixed determinant is symmetric in the last two vertices of the triangle.
The mixed determinant is symmetric in the two opposite vertices.
gram3 is symmetric in its first two points.
gram3 is symmetric in its second and third points.
gram3 is symmetric in its last two points.
gram2 is symmetric in its first two points.
gram2 is symmetric in its last two points.
The dihedral angle is symmetric in the first two vertices of the triangle.
The dihedral angle is symmetric in the last two vertices of the triangle.
The dihedral angle is symmetric in the two opposite vertices.
Desnanot–Jacobi: gram3(pqrs) · gram3(pqru) - mixed² = gram2(pqr) · gram4(pqrsu). Hence
sin² θ = gram2 · gram4 / (gram3 · gram3).
Scaling and the regular 4-simplex #
The cosine of the dihedral angle is invariant under scaling all lengths by c ≠ 0.
The regular 4-simplex: with all edge lengths a ≠ 0, the dihedral angle has
cos θ = 1/4.
The length formula is Euclidean #
The component of c orthogonal to a and b: c minus its orthogonal projection onto the
span of a and b, written with Cramer's rule (for linearly independent a, b).
Equations
- One or more equations did not get rendered due to their size.
Instances For
A vector orthogonal to a and b has the same inner product with perp2 a b d as with
d.
c - perp2 a b c lies in the span of a and b; with perp2_mem_orthogonal, perp2 a b c
is the orthogonal projection of c onto the orthogonal complement of that span.
The inner product of two orthogonal components is the mixed determinant divided by the Gram
determinant of a, b.
For the lengths of a placement x, squared lengths are squared distances.
For the lengths of a placement x, ip is the inner product of the edge vectors.
For the lengths of a placement, gram2 is the Gram determinant of the edge vectors.
For the lengths of a placement, gram2 ≥ 0 (Cauchy–Schwarz).
For the lengths of a placement with a non-degenerate triangle pqr, gram3(pqrs) is gram2
times the squared length of the component of s - p orthogonal to the triangle.
For the lengths of a placement with a non-degenerate triangle pqr, the mixed determinant is
gram2 times the inner product of the components of s - p and u - p orthogonal to the
triangle.
The length formula is Euclidean. For points of a real inner product space with a
non-degenerate triangle pqr (gram2 ≠ 0), cosDihedral4 of their distances is the cosine of
the angle between the components of s - p and u - p orthogonal to the plane of the triangle.
The dihedral angle from lengths is the Euclidean dihedral angle: the angle between the
components of s - p and u - p orthogonal to the plane of the triangle pqr.