Hyperbolic distance and angles in the Poincaré disk; the vertices
DefinitionMathieuM23_HyperbolicDiskModel the hyperbolic plane by the open unit disk with its metric of curvature , for which
For a hyperbolic triangle with vertices , the interior angle at is the unique with
(hyperbolic law of cosines). For the source defines
Formalization Note The interior angle is defined through the hyperbolic law of cosines, with . In the disk model this agrees with the Euclidean angle between the geodesic arcs.
import Mathlib
/-!
# Hyperbolic triangles in the Poincaré disk (Lemma 3.2)
The hyperbolic plane is modelled by the open unit disk `D = {q ∈ ℂ : |q| < 1}` with the
metric of constant curvature `-1`, for which
`cosh d(z, w) = 1 + 2|z - w|² / ((1 - |z|²)(1 - |w|²))`.
The interior angle of a hyperbolic triangle at a vertex is expressed through the hyperbolic law
of cosines.
-/
namespace MathieuM23
/-- `cosh d(z, w)` for the hyperbolic metric on the unit disk. -/
noncomputable def diskCoshDist (z w : ℂ) : ℝ :=
1 + 2 * ‖z - w‖ ^ 2 / ((1 - ‖z‖ ^ 2) * (1 - ‖w‖ ^ 2))
/-- The interior angle at the vertex `p` of the hyperbolic triangle with vertices `p, q, r` in
the unit disk, defined by the hyperbolic law of cosines
`cos ∠p = (cosh d(p,q) cosh d(p,r) - cosh d(q,r)) / (sinh d(p,q) sinh d(p,r))`,
with `sinh d = √(cosh² d - 1)`. -/
noncomputable def diskAngle (p q r : ℂ) : ℝ :=
Real.arccos
((diskCoshDist p q * diskCoshDist p r - diskCoshDist q r) /
(Real.sqrt (diskCoshDist p q ^ 2 - 1) * Real.sqrt (diskCoshDist p r ^ 2 - 1)))
/-- The vertex `a = e^{-iθ} √(tan(π/4 - θ))`. -/
noncomputable def vertexA (θ : ℝ) : ℂ :=
Complex.exp (-(θ : ℂ) * Complex.I) * (Real.sqrt (Real.tan (Real.pi / 4 - θ)) : ℂ)
/-- The vertex `b = 0`. -/
noncomputable def vertexB : ℂ := 0
/-- The vertex `c = √(cos 2θ)`. -/
noncomputable def vertexC (θ : ℝ) : ℂ := (Real.sqrt (Real.cos (2 * θ)) : ℂ)
end MathieuM23
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Disclosure — NON-BLIND read-back. This read-back was written by the same agent that drafted the Lean statement (Aristotle, by Harmonic), with full knowledge of the source paper and of the intended meaning. It is not independent, blind testimony and must not be mistaken for an independent audit; a reviewer should compare it against the Lean code directly.
All quantities are real or complex numbers; no restriction to the unit disk is built into the definitions.
- Cosh-distance. For , , where is the complex modulus. If or the denominator is and, by the convention that division by zero gives , . Outside the disk the formula is evaluated as written.
- Angle. For , . Here is the real square root, taken as on negative inputs. is the real arccosine with values in , extended by for and for . Edge case: if or (so a square root vanishes), the quotient is by convention and the "angle" equals .
- Vertices. For real : (real square root, if the tangent is negative), , and (real square root, regarded as a complex number).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.