back to table · edit · history · where entries came from · files · download
4657 bytes, as of the version from 2026-11-25 23:04 (current). Recorded here, not run.
{
"cusp_shape": " def cusp_shape(self, cusp_num=0):\n \"\"\"\n Get the polished cusp shape for this representation::\n\n sage: M = ManifoldHP('m015')\n sage: rho = M.polished_holonomy(bits_prec=100)\n sage: rho.cusp_shape() # doctest: +NUMERIC24\n -0.49024466750661447990098220731 + 2.9794470664789769463726817144*I\n\n \"\"\"\n M, L = (self.SL2C(w) for w in self.peripheral_curves()[cusp_num])\n C = extend_to_basis(parabolic_eigenvector(M))\n M, L = ( make_trace_2( C**(-1)*A*C ) for A in [M, L] )\n z = L[0][1]/M[0][1]\n return z.conjugate()\n",
"verify_hyperbolicity": "@sage_method\ndef verify_hyperbolicity(manifold, verbose=False, bits_prec=None,\n holonomy=False, fundamental_group_args=[], lift_to_SL=True):\n \"\"\"\n Given an orientable SnapPy Manifold, verifies its hyperbolicity.\n\n Similar to HIKMOT's :py:meth:`verify_hyperbolicity`, the result is either\n ``(True, listOfShapeIntervals)`` or ``(False, [])`` if verification failed.\n ``listOfShapesIntervals`` is a list of complex intervals (elements in\n sage's ``ComplexIntervalField``) certified to contain the true shapes\n for the hyperbolic manifold.\n\n Higher precision intervals can be obtained by setting ``bits_prec``::\n\n sage: from snappy import Manifold\n sage: M = Manifold(\"m019\")\n sage: M.verify_hyperbolicity() # doctest: +NUMERIC12\n (True, [0.780552527850? + 0.914473662967?*I, 0.780552527850? + 0.91447366296773?*I, 0.4600211755737? + 0.6326241936052?*I])\n\n sage: M = Manifold(\"t02333(3,4)\")\n sage: M.verify_hyperbolicity() # doctest: +NUMERIC9\n (True, [2.152188153612? + 0.284940667895?*I, 1.92308491369? + 1.10360701507?*I, 0.014388591584? + 0.143084469681?*I, -2.5493670288? + 3.7453498408?*I, 0.142120333822? + 0.176540027036?*I, 0.504866865874? + 0.82829881681?*I, 0.50479249917? + 0.98036162786?*I, -0.589495705074? + 0.81267480427?*I])\n\n One can instead get a holonomy representation associated to the\n verified hyperbolic structure. This representation takes values\n in 2x2 matrices with entries in the ``ComplexIntervalField``::\n\n sage: M = Manifold(\"m004(1,2)\")\n sage: success, rho = M.verify_hyperbolicity(holonomy=True)\n sage: success\n True\n sage: trace = rho('aaB').trace(); trace # doctest: +NUMERIC9\n -0.1118628555? + 3.8536121048?*I\n sage: (trace - 2).contains_zero()\n False\n sage: (rho('aBAbaabAB').trace() - 2).contains_zero()\n True\n\n Here, there is **provably** a fixed holonomy representation rho0\n from the fundamental group G of M to SL(2, C) so that for each\n element g of G the matrix rho0(g) is contained in rho(g). In\n particular, the above constitutes a proof that the word 'aaB' is\n non-trivial in G. In contrast, the final computation is\n consistent with 'aBAbaabAB' being trivial in G, but *does not prove\n this*.\n\n A non-hyperbolic manifold (``False`` indicates that the manifold\n might not be hyperbolic but does **not** certify\n non-hyperbolicity. Sometimes, hyperbolicity can only be verified\n after increasing the precision)::\n\n sage: M = Manifold(\"4_1(1,0)\")\n sage: M.verify_hyperbolicity()\n (False, [])\n\n Under the hood, the function will call the ``CertifiedShapesEngine`` to produce\n intervals certified to contain a solution to the rectangular gluing equations.\n It then calls ``check_logarithmic_gluing_equations_and_positively_oriented_tets``\n to verify that the logarithmic gluing equations are fulfilled and that all\n tetrahedra are positively oriented.\n \"\"\"\n\n try:\n shape_intervals = manifold.tetrahedra_shapes(\n 'rect', bits_prec=bits_prec, intervals=True)\n except (ValueError, RuntimeError):\n if verbose:\n print(\"Could not certify solution to rectangular gluing equations\")\n return FalseTuple((False, []))\n\n try:\n check_logarithmic_gluing_equations_and_positively_oriented_tets(\n manifold, shape_intervals)\n except exceptions.NumericalVerifyError as e:\n if verbose:\n print(e)\n return FalseTuple((False, []))\n\n if holonomy:\n hol_rep = snap.interval_reps.holonomy_from_shape_intervals(\n manifold, shape_intervals, fundamental_group_args, lift_to_SL)\n hol_rep.shapes = shape_intervals\n return True, hol_rep\n else:\n return True, shape_intervals\n"
}