Trust checks for 3D Regge calculus #
Checks of the definitions in Lightlike/Regge/Complex.lean against known values, and deliberately
wrong models and inputs that must fail.
Flat triangulations of regions of ℝ³: deficit zero #
octahedron_deficit: the octahedron split into four tetrahedra around an axis, placed inℝ³. Obtained from the general theoremdeficit_eq_zero_of_cyl, which shows its hypotheses can be met.cube_deficit: the unit cube split into the six Kuhn tetrahedra around its main diagonal, placed inℝ³. Computed directly: each tetrahedron has dihedral angleπ/3at the diagonal (dihedral_kuhn), and2π - 6 · π/3 = 0.
Curved examples: deficit nonzero #
With all lengths 1 every dihedral angle is θ = arccos (1/3) ≈ 70.53° (dihedral_one), and an
edge in n tetrahedra has deficit 2π - n θ. We prove π/3 < θ < 2π/5, so:
simplexBoundary: the boundary of the 4-simplex (five tetrahedra, a triangulated 3-sphere) is closed, every edge lies in three tetrahedra, and every deficit is2π - 3θ > 0; its Regge action is10 (2π - 3θ) > 0(positive curvature, as for a sphere).ring5_deficit: five regular tetrahedra around an edge leave a gap2π - 5θ > 0; certified between7.31°and7.41°(ring5_gap_mem, from1.2308 < θ < 1.2311,arccos_one_third_mem);cube_deficit_unit: six overlap,2π - 6θ < 0.deficit_unit_ne_zero: in any complex, regular tetrahedra never close up flat around an edge (the classical fact that regular tetrahedra do not fill space).
Wrong inputs and wrong formulas #
cubeStretched_deficit: stretching the cube's diagonal from√3to2gives the negative deficit2π - 6 arccos (1/7).cube_faceAngle_fails: the face angle (angle between two edges at a vertex) in place of the dihedral angle reportsπ/2on the flat cube.cube_exterior_fails: the exterior angleπ - θreports-2πon the flat cube. In general it reports(4 - n) π - δ(deficitWith_exterior), so on a four-valent edge such as the octahedron's axis it goes unnoticed (octahedron_exterior_passes): a flatness test needs an edge of valence other than four.octahedron_deficit_zero_lengths: with all lengths0, Lean's junk value0 / 0 = 0gives every dihedral angleπ/2and the octahedron's axis a fake zero deficit.
The manifold condition (Lightlike/Regge/Manifold.lean) #
cube_diagonal_cycleLink,octahedron_axis_cycleLink,simplexBoundary_cycleLink: the interior edges used above have cycle links (a hexagon, a square, a triangle).cube_edge_pathLink: an edge of the cube has a path link and is a boundary edge.tripleBook_not_edgeManifold: three tetrahedra sharing a triangle fail the manifold condition.
Geometric triangulations (Lightlike/Regge/Embedded.lean) #
octahedron_geometric: the octahedron placed inℝ³is a geometric triangulation (its four tetrahedra are non-degenerate and lie in the four open quadrants of thexy-plane), sooctahedron_deficit_geometricgets the axis deficit zero with no winding hypothesis.doubleRing_deficit,doubleRing_overlap: eight non-degenerate tetrahedra around an edge with a cycle link, placed so that they wind twice around it, have deficit-2π; hence, bydeficit_eq_zero_of_embedded, some two of them overlap. Disjoint interiors cannot be dropped.
Regge's equations #
regularTet_gradient: the gradient of the regular tetrahedron's actionLightlike.PR.reggeActionis the exterior angleπ - arccos (1/3), not the interior one (regularTet_gradient_ne_interior).simplexBoundary_reggeEquations: on the regular 3-sphere the variation of the action isΣ_e v_e (2π - 3 arccos (1/3)); it is not a stationary point (simplexBoundary_not_stationary).- Numerically,
scripts/regge/regge_equations_check.pycompares finite differences of the action with the deficit angles on a randomly perturbed 3-sphere (agreement to10⁻⁸).
Combinatorial 3-manifolds and flat solutions #
simplexBoundary_isCombManifold: the boundary of the 4-simplex is a closed combinatorial 3-manifold of the core (Lightlike.PR.IsCombManifold), hence an edge-manifold (simplexBoundary_edgeManifold, throughIsCombManifold.isEdgeManifold).singleTet_edgeManifold,octahedron_edgeManifold,cube_edgeManifold,bowtie_edgeManifold: examples with boundary, decided by the kernel.doubleSphere_edgeManifold,doubleSphere_not_isCombManifold: two 3-spheres glued at a vertex satisfy the edge condition but not the vertex condition.singleTet_isCombManifoldBd,octahedron_isCombManifoldBd,cube_isCombManifoldBd: combinatorial 3-manifolds with boundary (vertex links spheres or discs), decided by the kernel;cube_link_isDisc2: a disc with an interior vertex;cube_edgeManifold_of_isCombManifoldBd: the edge condition from the general theorem.bowtie_not_isCombManifoldBd,tripleBook_not_isCombManifoldBd,doubleSphere_not_isCombManifoldBd: non-manifolds rejected (the bowtie is an edge-manifold).pinchedDisc_passes,pinchedDisc_not_isDisc2(wrong model): a projective plane with a triangle attached at a vertex meets every condition ofIsSurfaceDiscexcept connected vertex links, and is not a disc.moebius_passes,moebius_not_isDisc2(wrong model): the Möbius band meets every condition except the Euler characteristic, and is not a disc.octahedron_stationary: the flat octahedron is a stationary point of its Regge action.simplexBoundary_gradient: the gradient of the regular 3-sphere's action.
Bridge to Ponzano–Regge #
reggeAction_singleTet: for one tetrahedron the Regge action (boundary term only) equals the phaseLightlike.PR.reggeActionof the Ponzano–Regge asymptotic formula.
The regular dihedral angle arccos (1/3) #
With all six lengths equal to 1 the dihedral angle is arccos (1/3).
The regular dihedral angle exceeds π/3, because cos (π/3) = 1/2 > 1/3.
The regular dihedral angle is less than 2π/5, because cos (2π/5) = (√5 - 1)/4 < 1/3.
The regular dihedral angle is less than π/2.
The boundary of the 4-simplex #
The boundary of the 4-simplex: the five 4-element subsets of Fin 5, a triangulation of the
3-sphere.
Equations
Instances For
The boundary of the 4-simplex is closed: every triangle lies in two tetrahedra.
Its edges are the ten 2-element subsets of Fin 5.
Every edge of the boundary of the 4-simplex lies in three tetrahedra.
Curved example. With all lengths 1, every edge of the boundary of the 4-simplex has
deficit angle 2π - 3 arccos (1/3), and this is positive.
The Regge action of the regular 3-sphere with unit edges is 10 (2π - 3 arccos (1/3)),
which is positive.
A certified enclosure of the regular dihedral angle: 1.2308 < arccos (1/3) < 1.2311,
from cos θ = sin (π/2 - θ), Mathlib's bounds 3.141592 < π < 3.141593 and the Taylor bound
|sin y - (y - y³/6)| ≤ |y|⁵/100.
The gap left by five regular tetrahedra around an edge, certified:
0.1276 < 2π - 5 arccos (1/3) < 0.1292 radians, i.e. between 7.31° and 7.41° (numerically
0.12839 ≈ 7.356°).
Five and six regular tetrahedra around an edge #
Five tetrahedra {0, 1, i, i+1} around the edge {0, 1}, with link 2, 3, 4, 5, 6, 2.
Equations
Instances For
Five regular tetrahedra around an edge leave a gap: the deficit 2π - 5 arccos (1/3)
(about 7.36°) is positive, so they cannot close up flat.
Flat example 1: the octahedron, through the general flatness theorem #
The octahedron with vertices -e₃, e₃ (labels 0, 1) and e₁, e₂, -e₁, -e₂ (labels 2, 3, 4, 5),
split into four tetrahedra around its axis {0, 1}. The general theorem deficit_eq_zero_of_cyl
applies, which also shows that its hypotheses can be met.
The octahedron split into four tetrahedra around the axis {0, 1}.
Equations
Instances For
The link of the axis, 2, 3, 4, 5, 2, as a sequence.
Instances For
The edge lengths of the octahedron placed in ℝ³.
Equations
- Lightlike.Regge.Tests.octLen = Lightlike.Regge.ofDist fun (u v : Fin 6) => dist (Lightlike.Regge.Tests.octPos u) (Lightlike.Regge.Tests.octPos v)
Instances For
The axis {0, 1} lies in all four tetrahedra.
Flat example (general theorem). The axis of the octahedron placed in ℝ³ has deficit
angle zero; obtained from deficit_eq_zero_of_cyl with link angles 0, π/2, π, 3π/2, 2π.
Flat example 2: the unit cube, by direct computation #
The unit cube [0,1]³ with vertex v at the binary digits of v (bit 0 = x, bit 1 = y,
bit 2 = z), split into the six Kuhn (Freudenthal) tetrahedra 0 → e_a → e_a + e_b → 7 around
the main diagonal {0, 7}. Each has dihedral angle π/3 at the diagonal, computed here directly
from the lengths √3, 1, √2, √2, 1, 1, independently of the general theorem.
The unit cube split into the six Kuhn tetrahedra around its diagonal {0, 7}.
Equations
Instances For
The edge lengths of the cube placed in ℝ³.
Equations
- Lightlike.Regge.Tests.cubeLen = Lightlike.Regge.ofDist fun (u v : Fin 8) => dist (Lightlike.Regge.Tests.cubePos u) (Lightlike.Regge.Tests.cubePos v)
Instances For
The lengths of the edges of the six Kuhn tetrahedra: the diagonal √3, and 1 or √2.
Any angle formula on a Kuhn-type tetrahedron {0, 7, a, b} at the edge {0, 7} of length
d, with the other lengths those of the cube.
The dihedral angle of a Kuhn-type tetrahedron {0, 7, a, b} at the edge {0, 7} of
length d ≠ 0.
A Kuhn tetrahedron has cosine 1/2 at the diagonal.
A Kuhn tetrahedron has dihedral angle π/3 at the diagonal of the cube.
Wrong inputs and wrong formulas must fail #
The cube's lengths with the diagonal stretched from √3 to 2. These are not the distances
of any placement of the cube complex in ℝ³ with the other lengths kept.
Equations
Instances For
The stretched Kuhn tetrahedron has cosine 1/7 at the diagonal.
Wrong input fails. Stretching the cube's diagonal to 2 gives each tetrahedron the
dihedral angle arccos (1/7) > π/3 at the diagonal, so the deficit is negative, not zero.
The deficit computed with an angle formula F in place of the dihedral angle, by the same
averaging and summation as deficit (deficitWith_dihedral).
Equations
- Lightlike.Regge.Tests.deficitWith F K ℓ e = 2 * Real.pi - ∑ t ∈ Lightlike.Regge.star K e, Lightlike.Regge.angleAvg F ℓ t e
Instances For
With the dihedral angle as the formula, deficitWith is deficit.
Wrong formula: exterior angles. Using π - θ instead of θ at an edge in n
tetrahedra reports (4 - n) π - δ. At a flat edge it is zero exactly when n = 4, so a flatness
test on a four-valent edge (octahedron_exterior_passes) cannot detect this mistake.
The exterior-angle mistake goes unnoticed on the octahedron's axis (four tetrahedra).
Wrong formula fails: exterior angles on the cube. The six Kuhn tetrahedra report
-2π instead of 0.
A wrong angle formula: the angle at the vertex p of the face prs, by the law of cosines.
This is the angle between two edges, not between two faces.
Equations
Instances For
Junk values: degenerate lengths fake flatness #
With all lengths 0, Lean's 0 / 0 = 0 makes every "dihedral angle" arccos 0 = π/2, so four
degenerate tetrahedra around an edge report deficit 0. A zero deficit is therefore no evidence
of flatness by itself; deficit_eq_zero_of_cyl assumes a non-degenerate placement (L > 0,
ρ_i > 0).
With all lengths zero the length formula returns the junk angle π/2.
Junk check. All-zero lengths on the octahedron give the axis deficit 0, a degenerate
"flatness" that the theorems of this library exclude by their hypotheses.
More regular examples #
With unit lengths the octahedron's axis lies in four regular tetrahedra: deficit
2π - 4 arccos (1/3) > 0 (the edge valence of the 16-cell).
Six regular tetrahedra around an edge overlap: with unit lengths the cube complex's
diagonal has deficit 2π - 6 arccos (1/3) < 0.
Regular tetrahedra never fit flat around an edge. In any complex, with all lengths 1,
every edge has nonzero deficit: positive if it lies in at most five tetrahedra, negative if in six
or more, since π/3 < arccos (1/3) < 2π/5.
One tetrahedron: the Regge action of Lightlike/PonzanoRegge/Asymptotics.lean #
For a single tetrahedron every edge is a boundary edge, and the Regge action is
Σ_e ℓ_e (π - θ_e), the phase of the Ponzano–Regge asymptotic formula (Lightlike.PR.reggeAction).
One tetrahedron ABCD = {0, 1, 2, 3}.
Equations
- Lightlike.Regge.Tests.singleTet = { tets := {Finset.univ}, card_eq := Lightlike.Regge.Tests.singleTet._proof_1 }
Instances For
The lengths of singleTet from the six lengths l = (AB, BC, CA, CD, AD, BD) used by
Lightlike.PR.reggeAction, with A, B, C, D = 0, 1, 2, 3.
Equations
Instances For
Each edge of the single tetrahedron lies in the one tetrahedron.
Bridge to Ponzano–Regge. For nonzero lengths, the Regge action of a single tetrahedron
(boundary term only) is the phase Lightlike.PR.reggeAction of the Ponzano–Regge asymptotic formula.
The manifold condition at edges #
The examples are edge-manifolds where expected, and a complex with a branching triangle is not.
The cube's diagonal has a cycle link (a hexagon), so it is interior.
The link of the cube edge {0, 1}: the path 3, 7, 5.
Equations
Instances For
The cube edge {0, 1} has a path link (two tetrahedra), so it is a boundary edge.
The octahedron's axis has a cycle link (a square).
The link of the edge {0, 1} of the boundary of the 4-simplex: the triangle 2, 3, 4.
Instances For
In the boundary of the 4-simplex the edge {0, 1} has a cycle link (a triangle).
Non-manifold check. The link of the edge {0, 1} of tripleBook is a star with three
arms (all three tetrahedra contain the vertex 2), neither a cycle nor a path, so tripleBook
is not an edge-manifold.
Geometric triangulations (Lightlike/Regge/Embedded.lean) #
The octahedron placed in ℝ³ is a geometric triangulation, so the general theorem gives its axis
deficit zero. A ring of eight tetrahedra winding twice around an axis meets every hypothesis except
disjointness, and has deficit -2π; so the theorem forces its tetrahedra to overlap.
A tetrahedron of the octahedron with link vertices at angles α, α + π/2 is non-degenerate.
The four tetrahedra of the octahedron placed in ℝ³ are non-degenerate.
The open simplices of the octahedron's tetrahedra lie in the four open quadrants of the
xy-plane: x > 0 iff the tetrahedron contains the vertex 2 (at e₁), y > 0 iff it
contains 3 (at e₂).
Distinct tetrahedra of the octahedron placed in ℝ³ have disjoint interiors.
The octahedron placed in ℝ³ is a geometric triangulation: its four tetrahedra are
non-degenerate, and the interiors of their convex hulls (by openHull_eq_interior, their open
simplices) lie in the four open quadrants ±x > 0, ±y > 0.
Flat example (geometric triangulation). The octahedron's axis has deficit zero, now from
IsGeometric.deficit_eq_zero_of_cycleLink: no winding hypothesis is assumed.
Eight tetrahedra {0, 1, w k, w (k+1)} around the edge {0, 1}, link 2, 3, …, 9, 2.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The link of the edge {0, 1} of doubleRing.
Instances For
The edge {0, 1} of doubleRing has a cycle link of length eight.
A placement winding twice around the axis: the link vertices 2, …, 5 at distance 1 and
6, …, 9 at distance 2, at angles 0, π/2, π, 3π/2 each time.
Equations
Instances For
The radii of the link vertices of doubleRing in dwPos.
Instances For
The link vertices of doubleRing in cylindrical coordinates: height 1 above x 0, radius
dwRad k, angle k π/2.
Disjoint interiors are necessary. In the double ring every tetrahedron around the edge is
non-degenerate and the link is a cycle, but the deficit is -2π ≠ 0; so by
deficit_eq_zero_of_embedded some two of the open tetrahedra must overlap.
Regge's equations (Lightlike/Regge/Schlaefli.lean, Lightlike/Regge/ReggeEquations.lean) #
The regular tetrahedron with unit edges is non-degenerate.
The gradient of the regular tetrahedron's action is the exterior dihedral angle
π - arccos (1/3) in every edge.
Sign check: the gradient of the action is the exterior angle, not the interior angle
arccos (1/3); the two differ because arccos (1/3) ≠ π/2.
Unit edge lengths on the boundary of the 4-simplex are non-degenerate.
Regge's equations on the regular 3-sphere. Along every direction v, the derivative of the
Regge action of the boundary of the 4-simplex at unit edges is Σ_e v_e (2π - 3 arccos (1/3)),
the deficit at every edge.
The regular 3-sphere does not solve Regge's equations: its deficit angles are positive, so the action is not stationary.
The gradient of the regular 3-sphere's action. The Regge action of the boundary of the
4-simplex is differentiable at unit edges, with gradient v ↦ Σ_e v_e (2π - 3 arccos (1/3)).
Combinatorial 3-manifolds (Lightlike/Regge/CombManifold.lean) #
The boundary of the 4-simplex is a closed combinatorial 3-manifold in the sense of the core
(Lightlike.PR.IsCombManifold: every vertex link is a combinatorial 2-sphere), hence an edge-manifold by
IsCombManifold.isEdgeManifold. The other examples, which have boundary, are edge-manifolds by the
decision procedure. Two 3-spheres glued at a vertex form a closed edge-manifold that is not a
combinatorial 3-manifold.
The boundary of the 4-simplex is a closed combinatorial 3-manifold: the link of each vertex is the boundary of the tetrahedron on the other four vertices.
The boundary of the 4-simplex is an edge-manifold, by the general theorem
IsCombManifold.isEdgeManifold.
The single tetrahedron is an edge-manifold (every edge has an arc as link).
The octahedron split around its axis is an edge-manifold.
The cube split into the six Kuhn tetrahedra is an edge-manifold.
Two copies of the boundary of the 4-simplex, on {0, 1, 2, 3, 4} and {0, 5, 6, 7, 8},
glued at the vertex 0.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The two glued 3-spheres form a closed edge-manifold: every edge has a triangle as link.
The vertex condition is not implied by the edge condition: the link of the shared vertex of the two glued 3-spheres is two disjoint 2-spheres, not connected, so the complex is not a combinatorial 3-manifold.
Two tetrahedra sharing only a vertex form an edge-manifold (with boundary).
Flat space solves Regge's equations (example). The octahedron placed in ℝ³ is a geometric
triangulation and an edge-manifold, so its Regge action is stationary under every
variation of the lengths that fixes the boundary lengths.
Combinatorial 3-manifolds with boundary (Lightlike/Regge/Disc.lean) #
The single tetrahedron is a combinatorial 3-manifold with boundary: every vertex link is a triangle, a disc.
The octahedron split around its axis is a combinatorial 3-manifold with boundary.
The cube split into the six Kuhn tetrahedra is a combinatorial 3-manifold with boundary.
The cube is an edge-manifold by the general theorem IsCombManifoldBd.isEdgeManifold, without
computing any edge link.
The link of the corner 0 of the cube is the hexagon of six triangles around 7, a disc with
an interior vertex.
The boundary of the 4-simplex, a closed combinatorial 3-manifold, is a combinatorial 3-manifold with (empty) boundary.
The vertex condition is stronger than the edge condition, also with boundary. Two
tetrahedra sharing only a vertex form an edge-manifold (bowtie_edgeManifold), but the link of the
shared vertex is two disjoint triangles, neither a sphere nor a disc.
Three tetrahedra sharing a triangle are not a combinatorial 3-manifold with boundary: by the general theorem they would be an edge-manifold.
Two 3-spheres glued at a vertex are not a combinatorial 3-manifold with boundary either: the link of the shared vertex is two disjoint spheres.
A projective plane (its six-vertex triangulation, on 0, …, 5) with the triangle {0, 6, 7}
attached at the vertex 0.
Equations
Instances For
Recognising discs needs connected vertex links (wrong model). The pinched complex meets
every other condition of IsSurfaceDisc: its triangles have three vertices, every edge lies in at
most two triangles, it is connected, its boundary is the single circle 0, 6, 7, and its Euler
characteristic is 1.
The pinched complex is not a disc: the link of 0 is a 5-cycle and the separate edge
{6, 7}. (Its cone completion is a projective plane and a sphere glued at a point.)
Recognising discs needs the Euler characteristic (wrong model). The Möbius band meets
every other condition of IsSurfaceDisc; its boundary is the single circle 0, 2, 4, 1, 3.