Documentation

Lightlike.Regge.Lorentzian.Tests

Trust checks for Lorentzian Regge calculus #

Checks of Lightlike/Regge/Lorentzian/ on a concrete triangulation: M12's flat ring Lightlike.Regge4.Tests.flatRing (six vertices, three 4-simplices around the one interior triangle {0, 1, 2}), with its vertices placed in Minkowski space in two inertial frames.

Integer coordinates #

The checks place the vertices of a complex on six vertices at integer points of Minkowski space and reduce every Gram determinant to an integer, which the kernel evaluates.

The Minkowski form diag(−1, 1, 1, 1) on integer vectors.

Equations
Instances For
    def Lightlike.ReggeLor.Tests.ipZ (X : Fin 6 → Fin 4 → ℤ) (o a b : Fin 6) :

    The Minkowski inner product of the edge vectors a − o, b − o of integer points X.

    Equations
    Instances For
      def Lightlike.ReggeLor.Tests.gram2Z (X : Fin 6 → Fin 4 → ℤ) (p q r : Fin 6) :

      The Gram determinant of the triangle pqr, over the integers.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Lightlike.ReggeLor.Tests.det3Z (a b c d e f g h i : ℤ) :

        A 3 × 3 determinant over the integers, expanded along the first row.

        Equations
        Instances For
          def Lightlike.ReggeLor.Tests.gram3Z (X : Fin 6 → Fin 4 → ℤ) (p q r s : Fin 6) :

          The Gram determinant of the tetrahedron pqrs, over the integers.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Lightlike.ReggeLor.Tests.mixedZ (X : Fin 6 → Fin 4 → ℤ) (p q r s u : Fin 6) :

            The mixed determinant at the triangle pqr of the 4-simplex pqrsu, over the integers.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem Lightlike.ReggeLor.Tests.ipL_eq (φ : EuclideanSpace ℝ (Fin 4) ≃ₗ[ℝ] Fin 4 → ℝ) {x : Fin 6 → EuclideanSpace ℝ (Fin 4)} {X : Fin 6 → Fin 4 → ℤ} (hX : ∀ (v : Fin 6) (k : Fin 4), φ (x v) k = ↑(X v k)) (o a b : Fin 6) :
              ipL (lorLen φ x) o a b = ↑(ipZ X o a b)

              In inertial coordinates with integer vertices, ipL is the integer inner product.

              theorem Lightlike.ReggeLor.Tests.gram2L_eq (φ : EuclideanSpace ℝ (Fin 4) ≃ₗ[ℝ] Fin 4 → ℝ) {x : Fin 6 → EuclideanSpace ℝ (Fin 4)} {X : Fin 6 → Fin 4 → ℤ} (hX : ∀ (v : Fin 6) (k : Fin 4), φ (x v) k = ↑(X v k)) (p q r : Fin 6) :
              gram2L (lorLen φ x) p q r = ↑(gram2Z X p q r)

              gram2L is the integer Gram determinant.

              theorem Lightlike.ReggeLor.Tests.gram3L_eq (φ : EuclideanSpace ℝ (Fin 4) ≃ₗ[ℝ] Fin 4 → ℝ) {x : Fin 6 → EuclideanSpace ℝ (Fin 4)} {X : Fin 6 → Fin 4 → ℤ} (hX : ∀ (v : Fin 6) (k : Fin 4), φ (x v) k = ↑(X v k)) (p q r s : Fin 6) :
              gram3L (lorLen φ x) p q r s = ↑(gram3Z X p q r s)

              gram3L is the integer Gram determinant.

              theorem Lightlike.ReggeLor.Tests.mixedL_eq (φ : EuclideanSpace ℝ (Fin 4) ≃ₗ[ℝ] Fin 4 → ℝ) {x : Fin 6 → EuclideanSpace ℝ (Fin 4)} {X : Fin 6 → Fin 4 → ℤ} (hX : ∀ (v : Fin 6) (k : Fin 4), φ (x v) k = ↑(X v k)) (p q r s u : Fin 6) :
              mixedL (lorLen φ x) p q r s u = ↑(mixedZ X p q r s u)

              mixedL is the integer mixed determinant.

              theorem Lightlike.ReggeLor.Tests.isNonNull4_of_check (φ : EuclideanSpace ℝ (Fin 4) ≃ₗ[ℝ] Fin 4 → ℝ) {x : Fin 6 → EuclideanSpace ℝ (Fin 4)} {X : Fin 6 → Fin 4 → ℤ} (hX : ∀ (v : Fin 6) (k : Fin 4), φ (x v) k = ↑(X v k)) {K : FourD.Complex4 (Fin 6)} (h2 : ∀ (p q r : Fin 6), p ≠ q → p ≠ r → q ≠ r → gram2Z X p q r ≠ 0) (h3 : ∀ σ ∈ K.simps, ∀ p ∈ σ, ∀ q ∈ σ, ∀ r ∈ σ, ∀ s ∈ σ, {p, q, r, s}.card = 4 → gram3Z X p q r s ≠ 0) :

              A complex on six vertices is non-null in these coordinates if no triangle with distinct vertices and no tetrahedron of a 4-simplex has a vanishing integer Gram determinant (a finite check).

              Two inertial frames for the flat ring #

              Inertial coordinates (2 y₀, y₁, y₂, y₃) on ℝ⁴: the triangle {0, 1, 2} of the flat ring is timelike.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Inertial coordinates (2 y₂, y₀, y₁, y₃) on ℝ⁴: the triangle {0, 1, 2} of the flat ring is spacelike.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  The vertices of the flat ring in the coordinates frameT.

                  Equations
                  Instances For

                    The vertices of the flat ring in the coordinates frameS.

                    Equations
                    Instances For

                      The vertices of the flat ring are at the integer points posT in the coordinates frameT.

                      The vertices of the flat ring are at the integer points posS in the coordinates frameS.

                      The flat ring is a non-null Lorentzian triangulation #

                      flatRing satisfies the manifold condition at triangles (decided by the kernel).

                      The only interior triangle of the flat ring is {0, 1, 2}.

                      theorem Lightlike.ReggeLor.Tests.posT_tri (p q r : Fin 6) :
                      p ≠ q → p ≠ r → q ≠ r → gram2Z posT p q r ≠ 0

                      No triangle of posT is null.

                      theorem Lightlike.ReggeLor.Tests.posT_tet (σ : Finset (Fin 6)) :
                      σ ∈ Regge4.Tests.flatRing.simps → ∀ p ∈ σ, ∀ q ∈ σ, ∀ r ∈ σ, ∀ s ∈ σ, {p, q, r, s}.card = 4 → gram3Z posT p q r s ≠ 0

                      No tetrahedron of the flat ring at posT is null.

                      theorem Lightlike.ReggeLor.Tests.posS_tri (p q r : Fin 6) :
                      p ≠ q → p ≠ r → q ≠ r → gram2Z posS p q r ≠ 0

                      No triangle of posS is null.

                      theorem Lightlike.ReggeLor.Tests.posS_tet (σ : Finset (Fin 6)) :
                      σ ∈ Regge4.Tests.flatRing.simps → ∀ p ∈ σ, ∀ q ∈ σ, ∀ r ∈ σ, ∀ s ∈ σ, {p, q, r, s}.card = 4 → gram3Z posS p q r s ≠ 0

                      No tetrahedron of the flat ring at posS is null.

                      Known values: the dihedral angles of the flat ring, from its lengths #

                      The angle sum around {0, 1, 2}, labelled.

                      √32 = 4 √2.

                      Known values at a timelike triangle: the dihedral angles of the flat ring in frameT are the Euclidean angles π/2, 3π/4, 3π/4 of the normal plane, from the lengths.

                      arcosh (4/√12) = arsinh (1/√3): the two boosts of the spacelike ring cancel.

                      Known values at a spacelike triangle: the dihedral angles of the flat ring in frameS are Sorkin's angles of the normal Minkowski plane, from the lengths: a timelike and a spacelike direction at right angles (−iπ/2, one light ray), a spacelike and a timelike direction (arsinh(−1/√3) − iπ/2), and two timelike directions in opposite cones (arcosh(4/√12) − iπ, two light rays).

                      The flat value at a timelike triangle, from the lengths: the angle sum is 2π, computed independently of the winding argument of Embedded.lean.

                      The flat value at a spacelike triangle, from the lengths: the angle sum is −2πi (four light rays, the boosts cancelling), computed independently of the winding argument.

                      The triangle {0, 1, 2} is timelike in frameT: Z = 1.

                      The triangle {0, 1, 2} is spacelike in frameS: Z = −i.

                      The deficit of the flat timelike ring is 0, from the lengths.

                      The deficit of the flat spacelike ring is 0, from the lengths.

                      Non-vacuity: the general theorems apply to the flat ring #

                      IsGeometric4.lorDeficit_eq_zero applies: every interior triangle of the flat ring has deficit 0 in the frame frameT, with all its hypotheses met.

                      IsGeometric4.lorDeficit_eq_zero applies in the frame frameS, where the interior triangle is spacelike.

                      Flat Minkowski space solves the Lorentzian Regge equations: a subdivided 4-simplex #

                      The flat ring has no interior edge, so the stationarity theorem would hold there vacuously. M12's subdivided 4-simplex cone5 has five interior edges and ten interior triangles.

                      Inertial coordinates (10 y₀, 5 y₁, 5 y₂, 15 y₃) on ℝ⁴. In them cone5 has integer vertices, no null triangle or tetrahedron, five spacelike and five timelike interior triangles, and interior edges of both causal types.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        The vertices of cone5 in the coordinates frameC; the centre 5 is at (2, 1, 1, 3).

                        Equations
                        Instances For

                          The vertices of cone5 are at the integer points posC in the coordinates frameC.

                          theorem Lightlike.ReggeLor.Tests.posC_tri (p q r : Fin 6) :
                          p ≠ q → p ≠ r → q ≠ r → gram2Z posC p q r ≠ 0

                          No triangle of posC is null.

                          theorem Lightlike.ReggeLor.Tests.posC_tet (σ : Finset (Fin 6)) :
                          σ ∈ Regge4.Tests.cone5.simps → ∀ p ∈ σ, ∀ q ∈ σ, ∀ r ∈ σ, ∀ s ∈ σ, {p, q, r, s}.card = 4 → gram3Z posC p q r s ≠ 0

                          No tetrahedron of cone5 at posC is null.

                          Both causal types occur among the interior triangles: {0, 1, 5} is timelike (gram2L = −1100) and {0, 2, 5} is spacelike (gram2L = 150), so the theorems below use both branches of the dihedral angle.

                          IsGeometric4.lorDeficit_eq_zero applies to cone5: all ten interior triangles, five of them spacelike and five timelike, have Lorentzian deficit 0.

                          Flat Minkowski space solves the Lorentzian Regge equations (example). Varying the signed squared length of the timelike interior edge {1, 5} alone leaves the complex Lorentzian Regge action of the flat subdivided 4-simplex stationary (IsGeometric4.lorReggeAction_stationary).

                          The Lorentzian Regge equations hold at the five interior edges of the flat cone5, each a sum over the four interior triangles at that edge (lorReggeAction_stationary_iff).

                          The Lorentzian Schläfli identity applies: the 4-simplex {1, 2, 3, 4, 5} of cone5 in frameC satisfies LorNondeg4; its triangles {1, 2, 5} and {2, 3, 5} are timelike and spacelike.

                          Schläfli's identity on a concrete Lorentzian 4-simplex: along every line of signed squared lengths, the area-weighted sum of the complex dihedral angles of {1, 2, 3, 4, 5} is stationary.

                          Wrong models #

                          noncomputable def Lightlike.ReggeLor.Tests.eucAngleL (L : Finset (Fin 6) → ℝ) (p q r s u : Fin 6) :

                          M12's dihedral-angle formula arccos (mixed / √(gram3 · gram3)), written in squared lengths.

                          Equations
                          Instances For
                            theorem Lightlike.ReggeLor.Tests.eucAngleL_sq (ℓ : Finset (Fin 6) → ℝ) :
                            (eucAngleL fun (e : Finset (Fin 6)) => ℓ e ^ 2) = Regge4.dihedral4 ℓ

                            On squared lengths ℓ², eucAngleL is M12's dihedral4 ℓ.

                            Wrong model: Euclidean angles on Lorentzian data. M12's dihedral-angle formula applied to the signed squared lengths of the flat timelike ring gives π/2, π/4, π/4 instead of π/2, 3π/4, 3π/4 (at a timelike triangle gram2 < 0 reverses the sign of the cosine) and reports the deficit π on flat Minkowski space.

                            Wrong model: the Euclidean flat value at a spacelike triangle. With Z = 1 (flat value 2π) in place of Sorkin's Z = −i, the flat spacelike ring would report the deficit 2π + 2πi.

                            Wrong model: real angles at a spacelike triangle. With any real-valued angles, such as M12's, the deficit of the flat spacelike triangle keeps the imaginary part −2π of its flat value, so it is never zero: closing a spacelike hinge needs Sorkin's complex angles.