# Documentation

Mathlib.Analysis.Complex.UpperHalfPlane.Metric

# Metric on the upper half-plane #

In this file we define a MetricSpace structure on the UpperHalfPlane. We use hyperbolic (Poincaré) distance given by dist z w = 2 * arsinh (dist (z : ℂ) w / (2 * Real.sqrt (z.im * w.im))) instead of the induced Euclidean distance because the hyperbolic distance is invariant under holomorphic automorphisms of the upper half-plane. However, we ensure that the projection to TopologicalSpace is definitionally equal to the induced topological space structure.

We also prove that a metric ball/closed ball/sphere in Poincaré metric is a Euclidean ball/closed ball/sphere with another center and radius.

theorem UpperHalfPlane.cosh_half_dist (z : UpperHalfPlane) (w : UpperHalfPlane) :
Real.cosh (dist z w / 2) = dist (z) (↑() w) / ()
theorem UpperHalfPlane.tanh_half_dist (z : UpperHalfPlane) (w : UpperHalfPlane) :
Real.tanh (dist z w / 2) = dist z w / dist (z) (↑() w)
theorem UpperHalfPlane.exp_half_dist (z : UpperHalfPlane) (w : UpperHalfPlane) :
Real.exp (dist z w / 2) = (dist z w + dist (z) (↑() w)) / ()
theorem UpperHalfPlane.cosh_dist (z : UpperHalfPlane) (w : UpperHalfPlane) :
Real.cosh (dist z w) = 1 + dist z w ^ 2 / ()
theorem UpperHalfPlane.sinh_half_dist_add_dist (a : UpperHalfPlane) (b : UpperHalfPlane) (c : UpperHalfPlane) :
Real.sinh ((dist a b + dist b c) / 2) = (dist a b * dist (c) (↑() b) + dist b c * dist (a) (↑() b)) / ( * dist (b) (↑() b))
theorem UpperHalfPlane.dist_eq_iff_eq_sq_sinh {z : UpperHalfPlane} {w : UpperHalfPlane} {r : } (hr : 0 r) :
dist z w = r dist z w ^ 2 / () = Real.sinh (r / 2) ^ 2

An auxiliary MetricSpace instance on the upper half-plane. This instance has bad projection to TopologicalSpace. We replace it later.

Instances For

Euclidean center of the circle with center z and radius r in the hyperbolic metric.

Instances For
@[simp]
@[simp]
theorem UpperHalfPlane.dist_coe_center_sq (z : UpperHalfPlane) (w : UpperHalfPlane) (r : ) :
dist z ↑() ^ 2 = * (Real.cosh (dist z w) - ) + () ^ 2
theorem UpperHalfPlane.dist_coe_center (z : UpperHalfPlane) (w : UpperHalfPlane) (r : ) :
dist z ↑() = Real.sqrt ( * (Real.cosh (dist z w) - ) + () ^ 2)
@[simp]
theorem UpperHalfPlane.dist_self_center (z : UpperHalfPlane) (r : ) :
dist z ↑() = * ( - 1)

For two points on the same vertical line, the distance is equal to the distance between the logarithms of their imaginary parts.

Hyperbolic distance between two points is greater than or equal to the distance between the logarithms of their imaginary parts.

An upper estimate on the complex distance between two points in terms of the hyperbolic distance and the imaginary part of one of the points.

An upper estimate on the complex distance between two points in terms of the hyperbolic distance and the imaginary part of one of the points.

The hyperbolic metric on the upper half plane. We ensure that the projection to TopologicalSpace is definitionally equal to the subtype topology.

theorem UpperHalfPlane.im_pos_of_dist_center_le {z : UpperHalfPlane} {r : } {w : } (h : dist w ↑() ) :
0 < w.im
theorem UpperHalfPlane.isometry_vertical_line (a : ) :
Isometry fun y => UpperHalfPlane.mk { re := a, im := } (_ : 0 < )
theorem UpperHalfPlane.isometry_real_vadd (a : ) :
Isometry ((fun x x_1 => x +ᵥ x_1) a)
theorem UpperHalfPlane.isometry_pos_mul (a : { x // 0 < x }) :
Isometry ((fun x x_1 => x x_1) a)