The geodesic through two points as a semicircle #
This file makes the classical description of the geodesics of ℍ quantitative, for the geodesic
geodesicBetween P Q from P to Q. The affine map
UpperHalfPlane.toPoint P : z ↦ P.im * z + P.re sends I to P, so geodesicBetween P Q is
toPoint P followed by a rotation of the imaginary axis
(exists_geodesicBetween_eq_toPoint_mul_rotation); the half-planes of a rotated axis are given
by an explicit quadratic form (mem_rightHalfPlane_rotation_iff).
When P.re ≠ Q.re, the geodesic through P and Q is the semicircle centred at
UpperHalfPlane.circleCenter P Q on the real axis, which passes through both points
(UpperHalfPlane.normSq_sub_circleCenter, mem_range_geodesicLine_geodesicBetween_iff_of_re_ne),
and it is the only such point of the real axis (UpperHalfPlane.circleCenter_eq_of_normSq_eq);
its right half-plane is the inside of that disc when Q is to the right of P and the outside
when Q is to the left (mem_rightHalfPlane_geodesicBetween_iff_of_re_lt,
mem_rightHalfPlane_geodesicBetween_iff_of_lt_re), and its velocity at P is tangent to the
semicircle, oriented clockwise exactly when Q is to the right of P
(exists_velocity_geodesicBetween_zero_eq). When P.re = Q.re the geodesic is the vertical line
through P (geodesicBetween_eq_toPoint_of_re_eq,
mem_rightHalfPlane_geodesicBetween_iff_of_re_eq,
exists_velocity_geodesicBetween_zero_eq_of_re_eq). Conversely, a geodesic line running between
two points (other than ∞) of a circle centred on the real axis, with distinct real parts, lies
on that circle (IsGeodesicFromTo.normSq_geodesicLine_sub).
Source: Katok, Fuchsian groups, geodesic flows…, Clay Math. Proc. 10 (2010), §3 Theorem 3.1
(p. 10): the geodesics in ℍ are the semicircles and the rays orthogonal to the real axis.
The half-planes of a rotated axis, explicitly #
The real part after the inverse rotation by θ, as a quadratic form in the point: the
numerator vanishes exactly on the rotated imaginary axis.
The denominator of re_rotation_inv_smul is positive.
Membership in the right half-plane of a rotated axis, as a quadratic inequality.
The real part of a point of the rotated axis, at height y before rotating.
The centre of the semicircle through two points #
A point of ℍ lies strictly between the two ends of any semicircle through it: its real part
is within less than the radius |P - c| of the centre c.
The centre on the real axis of the semicircle through P and Q, when P.re ≠ Q.re.
Equations
- P.circleCenter Q = (Complex.normSq ↑Q - Complex.normSq ↑P) / (2 * (Q.re - P.re))
Instances For
The centre of the semicircle through P and Q, as a formula.
The centre of the semicircle through two points does not depend on their order.
Both endpoints lie on the semicircle: they are equidistant from its centre.
A point m of the real axis equidistant from P and Q, with P.re ≠ Q.re, is the centre
of the semicircle through P and Q.
The geodesic through two points as a semicircle #
The geodesic from P to Q is the normalising map of P followed by a rotation of the
imaginary axis.
The semicircle case: the geodesic from P to Q is toPoint P followed by a rotation
by an angle θ, whose sign is opposite to that of Q.re - P.re, and the centre of the
semicircle through P and Q is P.re - cos 2θ / sin 2θ · P.im.
The semicircle case: after applying the inverse of the geodesic from P to Q, the real
part of a point is a positive multiple of (P.re - Q.re) · (|z - c|² - |P - c|²), where c is
the centre of the semicircle through P and Q.
The semicircle case of the description of the half-planes of geodesicBetween P Q: the
right half-plane is the inside of the disc through P and Q centred on the real axis when
Q is to the right of P, and the outside when it is to the left.
The left half-plane of the geodesic from P to Q, in the semicircle case.
The geodesic through P and Q, as a set, is the semicircle through them centred on the
real axis.
The geodesic from P to a point Q to its right runs clockwise along the semicircle through
them, so its right half-plane is the inside of the disc.
The geodesic from P to a point Q to its left runs counterclockwise along the semicircle
through them, so its right half-plane is the outside of the disc.
The geodesic from P up to a point Q above it is the vertical line through P.
The geodesic from P up to a point Q above it is a vertical line; its right half-plane is
the side of larger real part.
The velocity at P of the geodesic from P to Q is tangent to the semicircle through
them, with the clockwise orientation exactly when Q is to the right of P.
The velocity at P of the vertical geodesic from P to Q points up exactly when Q is
above P.
Geodesic lines through two points of a semicircle #
A geodesic line running between two points (other than ∞) of a circle centred on the real
axis, with distinct real parts, lies on that circle.