Documentation

Lightlike.Regge.Tests

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 #

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:

Wrong inputs and wrong formulas #

The manifold condition (Lightlike/Regge/Manifold.lean) #

Geometric triangulations (Lightlike/Regge/Embedded.lean) #

Regge's equations #

Combinatorial 3-manifolds and flat solutions #

Bridge to Ponzano–Regge #

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.

    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.

    theorem Lightlike.Regge.Tests.ring5_gap_mem :
    0.1276 < 2 * Real.pi - 5 * Real.arccos (1 / 3) ∧ 2 * Real.pi - 5 * Real.arccos (1 / 3) < 0.1292 ∧ 7.31 < (2 * Real.pi - 5 * Real.arccos (1 / 3)) * 180 / Real.pi ∧ (2 * Real.pi - 5 * Real.arccos (1 / 3)) * 180 / Real.pi < 7.41

    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

      The edge {0, 1} of ring5 is interior and lies in all five tetrahedra.

      theorem Lightlike.Regge.Tests.ring5_deficit :
      deficit ring5 (fun (x : Finset (Fin 7)) => 1) {0, 1} = 2 * Real.pi - 5 * Real.arccos (1 / 3) ∧ 0 < deficit ring5 (fun (x : Finset (Fin 7)) => 1) {0, 1}

      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 vertices of the octahedron in ℝ³.

        Equations
        Instances For
          noncomputable def Lightlike.Regge.Tests.octLen :
          Finset (Fin 6) → ℝ

          The edge lengths of the octahedron placed in ℝ³.

          Equations
          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 vertices of the unit cube in ℝ³.

              Equations
              Instances For
                noncomputable def Lightlike.Regge.Tests.cubeLen :
                Finset (Fin 8) → ℝ

                The edge lengths of the cube placed in ℝ³.

                Equations
                Instances For
                  theorem Lightlike.Regge.Tests.cubeLen_pair {u v : Fin 8} (h : u ≠ v) :
                  cubeLen {u, v} = √(∑ i : Fin 3, ((cubePos u).ofLp i - (cubePos v).ofLp i) ^ 2)

                  The length of an edge of the cube complex, in coordinates.

                  The lengths of the edges of the six Kuhn tetrahedra: the diagonal √3, and 1 or √2.

                  The diagonal {0, 7} is an interior edge of the cube complex.

                  All six tetrahedra contain the diagonal.

                  theorem Lightlike.Regge.Tests.cube_sum (G : Finset (Fin 8) → ℝ) :
                  ∑ t ∈ cube.tets, G t = G {0, 7, 1, 3} + G {0, 7, 1, 5} + G {0, 7, 2, 3} + G {0, 7, 2, 6} + G {0, 7, 4, 5} + G {0, 7, 4, 6}

                  A sum over the tetrahedra of the cube, written out, each tetrahedron listed as {0, 7, e_a, e_a + e_b}.

                  theorem Lightlike.Regge.Tests.kuhn_angleAvg (F : ℝ → ℝ → ℝ → ℝ → ℝ → ℝ → ℝ) (ℓ : Finset (Fin 8) → ℝ) {a b : Fin 8} {d : ℝ} (hne : 0 ≠ a ∧ 0 ≠ b ∧ 7 ≠ a ∧ 7 ≠ b ∧ a ≠ b) (h0 : ℓ {0, 7} = d) (h1 : ℓ {0, a} = 1) (h2 : ℓ {7, a} = √2) (h3 : ℓ {0, b} = √2) (h4 : ℓ {7, b} = 1) (h5 : ℓ {a, b} = 1) :
                  angleAvg F ℓ {0, 7, a, b} {0, 7} = (F d 1 (√2) (√2) 1 1 + F d (√2) 1 1 (√2) 1 + F d (√2) 1 1 (√2) 1 + F d 1 (√2) (√2) 1 1) / 4

                  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.

                  theorem Lightlike.Regge.Tests.kuhn_dihedralAt (ℓ : Finset (Fin 8) → ℝ) {a b : Fin 8} {d : ℝ} (hd : d ≠ 0) (hne : 0 ≠ a ∧ 0 ≠ b ∧ 7 ≠ a ∧ 7 ≠ b ∧ a ≠ b) (h0 : ℓ {0, 7} = d) (h1 : ℓ {0, a} = 1) (h2 : ℓ {7, a} = √2) (h3 : ℓ {0, b} = √2) (h4 : ℓ {7, b} = 1) (h5 : ℓ {a, b} = 1) :
                  dihedralAt ℓ {0, 7, a, b} {0, 7} = PR.dihedral d 1 (√2) (√2) 1 1

                  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.

                  Flat example (direct computation). The diagonal of the unit cube, surrounded by the six Kuhn tetrahedra, has deficit angle 2π - 6 · π/3 = 0.

                  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

                    Away from the diagonal the stretched lengths are the cube's.

                    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.

                    noncomputable def Lightlike.Regge.Tests.deficitWith {V : Type u_1} [DecidableEq V] (F : ℝ → ℝ → ℝ → ℝ → ℝ → ℝ → ℝ) (K : PR.Complex3 V) (ℓ : Finset V → ℝ) (e : Finset V) :

                    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
                    Instances For
                      theorem Lightlike.Regge.Tests.deficitWith_dihedral {V : Type u_1} [DecidableEq V] (K : PR.Complex3 V) (ℓ : Finset V → ℝ) (e : Finset V) :

                      With the dihedral angle as the formula, deficitWith is deficit.

                      theorem Lightlike.Regge.Tests.deficitWith_exterior {V : Type u_1} [DecidableEq V] (K : PR.Complex3 V) (ℓ : Finset V → ℝ) {e : Finset V} (he : e.card = 2) :
                      deficitWith (fun (a b c d f g : ℝ) => Real.pi - PR.dihedral a b c d f g) K ℓ e = (4 - ↑(star K e).card) * Real.pi - deficit K ℓ e

                      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.

                      noncomputable def Lightlike.Regge.Tests.faceAngle (_pq pr _qr ps _qs rs : ℝ) :

                      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

                        Wrong formula fails: face angles on the cube. Each Kuhn tetrahedron reports π/4, so the six of them give 2π - 6 · π/4 = π/2 instead of 0.

                        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).

                        theorem Lightlike.Regge.Tests.cube_deficit_unit :
                        deficit cube (fun (x : Finset (Fin 8)) => 1) {0, 7} = 2 * Real.pi - 6 * Real.arccos (1 / 3) ∧ deficit cube (fun (x : Finset (Fin 8)) => 1) {0, 7} < 0

                        Six regular tetrahedra around an edge overlap: with unit lengths the cube complex's diagonal has deficit 2π - 6 arccos (1/3) < 0.

                        theorem Lightlike.Regge.Tests.deficit_unit_ne_zero {V : Type u_1} [DecidableEq V] (K : PR.Complex3 V) {e : Finset V} (he : e.card = 2) :
                        deficit K (fun (x : Finset V) => 1) e ≠ 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
                        Instances For
                          noncomputable def Lightlike.Regge.Tests.tetLen (l : Fin 6 → ℝ) :
                          Finset (Fin 4) → ℝ

                          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
                            theorem Lightlike.Regge.Tests.tetLen_pair (l : Fin 6 → ℝ) {u v : Fin 4} (h : u ≠ v) :
                            tetLen l {u, v} = ![![0, l 0, l 2, l 4], ![l 0, 0, l 1, l 5], ![l 2, l 1, 0, l 3], ![l 4, l 5, l 3, 0]] u v

                            The length of an edge of singleTet.

                            The single tetrahedron has no interior edge, and all six edges are on the boundary.

                            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.

                            Three tetrahedra sharing the triangle {0, 1, 2}: not a manifold.

                            Equations
                            Instances For

                              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.

                              theorem Lightlike.Regge.Tests.stdFrame_orthonormal :
                              Orthonormal ℝ ![!₂[0, 0, 1], !₂[1, 0, 0], !₂[0, 1, 0]]

                              The standard frame e₃, e₁, e₂ of ℝ³ is orthonormal.

                              theorem Lightlike.Regge.Tests.oct_linIndep {r s : Fin 6} {α : ℝ} (hr : octPos r - octPos 0 = 1 • !₂[0, 0, 1] + 1 • (Real.cos α • !₂[1, 0, 0] + Real.sin α • !₂[0, 1, 0])) (hs : octPos s - octPos 0 = 1 • !₂[0, 0, 1] + 1 • (Real.cos (α + Real.pi / 2) • !₂[1, 0, 0] + Real.sin (α + Real.pi / 2) • !₂[0, 1, 0])) :

                              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.

                              theorem Lightlike.Regge.Tests.octahedron_region (t : Finset (Fin 6)) :
                              t ∈ octahedron.tets → ∀ y ∈ openHull octPos t, (2 ∈ t → 0 < y.ofLp 0) ∧ (2 ∉ t → y.ofLp 0 < 0) ∧ (3 ∈ t → 0 < y.ofLp 1) ∧ (3 ∉ t → y.ofLp 1 < 0)

                              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
                                noncomputable def Lightlike.Regge.Tests.dwPos :

                                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
                                  noncomputable def Lightlike.Regge.Tests.dwRad (k : ℕ) :

                                  The radii of the link vertices of doubleRing in dwPos.

                                  Equations
                                  Instances For
                                    theorem Lightlike.Regge.Tests.dwPos_cyl (k : ℕ) :
                                    k ≤ 8 → dwPos (dwLink k) = dwPos 0 + 1 • !₂[0, 0, 1] + dwRad k • (Real.cos (↑k * (Real.pi / 2)) • !₂[1, 0, 0] + Real.sin (↑k * (Real.pi / 2)) • !₂[0, 1, 0])

                                    The link vertices of doubleRing in cylindrical coordinates: height 1 above x 0, radius dwRad k, angle k π/2.

                                    A placement winding twice has deficit -2π. The eight tetrahedra around the edge {0, 1} turn by 4π in total.

                                    theorem Lightlike.Regge.Tests.doubleRing_overlap :
                                    ¬∀ i < 8, ∀ j < 8, i ≠ j → Disjoint (openTet (dwPos 0) (dwPos 1) (dwPos (dwLink i)) (dwPos (dwLink (i + 1)))) (openTet (dwPos 0) (dwPos 1) (dwPos (dwLink j)) (dwPos (dwLink (j + 1))))

                                    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.

                                    theorem Lightlike.Regge.Tests.regularTet_gradient (v : Fin 6 → ℝ) :
                                    HasDerivAt (fun (τ : ℝ) => PR.reggeAction fun (i : Fin 6) => 1 + τ * v i) (∑ e : Fin 6, v e * (Real.pi - Real.arccos (1 / 3))) 0

                                    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.

                                    theorem Lightlike.Regge.Tests.simplexBoundary_reggeEquations (v : Finset (Fin 5) → ℝ) :
                                    HasDerivAt (fun (τ : ℝ) => reggeAction simplexBoundary fun (e : Finset (Fin 5)) => 1 + τ * v e) (∑ e ∈ simplexBoundary.edges, v e * (2 * Real.pi - 3 * Real.arccos (1 / 3))) 0

                                    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.

                                    theorem Lightlike.Regge.Tests.simplexBoundary_gradient :
                                    (HasFDerivAt (reggeAction simplexBoundary) (reggeGradient simplexBoundary fun (x : Finset (Fin 5)) => 1) fun (x : Finset (Fin 5)) => 1) ∧ ∀ (v : Finset (Fin 5) → ℝ), (reggeGradient simplexBoundary fun (x : Finset (Fin 5)) => 1) v = ∑ e ∈ simplexBoundary.edges, v e * (2 * Real.pi - 3 * Real.arccos (1 / 3))

                                    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 the vertex 0.

                                      Equations
                                      Instances For

                                        Two tetrahedra sharing only a vertex form an edge-manifold (with boundary).

                                        theorem Lightlike.Regge.Tests.octahedron_stationary (v : Finset (Fin 6) → ℝ) (hv : ∀ e ∈ bdryEdges octahedron, v e = 0) :
                                        HasDerivAt (fun (τ : ℝ) => reggeAction octahedron fun (e : Finset (Fin 6)) => octLen e + τ * v e) 0 0

                                        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 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.)

                                          The five-vertex Möbius band: the triangles {i, i+1, i+2}, indices mod 5.

                                          Equations
                                          Instances For

                                            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.

                                            The Möbius band has Euler characteristic 0, so it is not a disc.