Documentation

CslibFrontier.Foundations.Geometry.CAT0.Toolkit

CAT(0) spaces: points on geodesics, barycenters, projections and flat rectangles #

The elementary facts about a CAT(0) space Y that follow from the inequality of Bruhat and Tits alone, in the form of Lemma "toolkit" of VP ≠ VNP over every field [Ant26] (module Paper.Toolkit); for the CN inequality see [BridsonHaefliger1999, II.1.9(1)(c)].

All existence statements come from one minimization principle (Cslib.CAT0.exists_add_mul_dist_sq_le): a continuous nonnegative function that is uniformly convex along midpoints has a minimizer on every nonempty closed midpoint-convex set, with quadratic growth away from it.

Main results #

References #

theorem Cslib.CAT0.exists_add_mul_dist_sq_le {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] (C : Set Y) (hC : IsClosed C) (hne : C.Nonempty) (hmem : ∀ x ∈ C, ∀ v ∈ C, mid x v ∈ C) (Θ : Y → ℝ) (hΘ : Continuous Θ) (hΘ0 : ∀ (x : Y), 0 ≤ Θ x) {c : ℝ} (hc : 0 < c) (hconv : ∀ x ∈ C, ∀ v ∈ C, Θ (mid x v) ≤ (Θ x + Θ v) / 2 - c / 4 * dist x v ^ 2) :
∃ b ∈ C, ∀ y ∈ C, Θ b + c * dist y b ^ 2 ≤ Θ y

The minimization principle. Let C be nonempty, closed and closed under midpoints, and let Θ ≥ 0 be continuous with Θ(m) ≤ ½Θ(x) + ½Θ(v) − (c/4)|xv|² for the midpoint m of x, v ∈ C, where c > 0. Then some b ∈ C has Θ(b) + c|yb|² ≤ Θ(y) for every y ∈ C. Minimizing sequences are Cauchy by the convexity; their limit is compared with the midpoints towards y.

Barycenters #

theorem Cslib.CAT0.exists_isBarycenter {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] {ι : Type u_2} [Fintype ι] [Nonempty Y] (w : ι → ℝ) (hw : ∀ (i : ι), 0 ≤ w i) (x : ι → Y) :
∃ (b : Y), IsBarycenter w x b

Points with nonnegative weights have a barycenter: the minimizer of y ↦ ∑ wᵢ|yxᵢ|².

Points on geodesics (part (a)) #

theorem Cslib.CAT0.exists_isPointAt {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] (x v : Y) {t : ℝ} (h0 : 0 ≤ t) (h1 : t ≤ 1) :
∃ (b : Y), IsPointAt x v t b

For t ∈ [0, 1] some point satisfies the inequality of the point at fraction t: the barycenter of x and v with the weights 1 − t and t.

theorem Cslib.CAT0.existsUnique_dist_eq {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] (x v : Y) {t : ℝ} (h0 : 0 ≤ t) (h1 : t ≤ 1) :
∃! γ : Y, dist x γ = t * dist x v ∧ dist γ v = (1 - t) * dist x v

Part (a). For t ∈ [0, 1] exactly one point has distances t|xv| and (1 − t)|xv| from x and v. By isPointAt_of_dist it satisfies the inequality of the point at fraction t.

theorem Cslib.CAT0.isPointAt_of_dist {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] {x v c : Y} {t : ℝ} (h0 : 0 ≤ t) (h1 : t ≤ 1) (e1 : dist x c = t * dist x v) (e2 : dist c v = (1 - t) * dist x v) :
IsPointAt x v t c

A point with the distances of the point at fraction t satisfies its inequality.

theorem Cslib.CAT0.apply_eq_of_dist_eq {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] {f : Y → Y} (hf : Isometry f) {x v q : Y} (hx : f x = x) (hv : f v = v) {t : ℝ} (h0 : 0 ≤ t) (h1 : t ≤ 1) (e1 : dist x q = t * dist x v) (e2 : dist q v = (1 - t) * dist x v) :
f q = q

An isometry that fixes x and v fixes the point with the distances of the point at fraction t ∈ [0, 1] between them: by part (a) it is the only such point.

The quadrilateral inequality (part (b)) #

theorem Cslib.CAT0.dist_sq_add_dist_sq_le {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] (x v y u : Y) :
dist x v ^ 2 + dist y u ^ 2 ≤ dist x u ^ 2 + dist y v ^ 2 + 2 * dist x y * dist u v

Part (b), the quadrilateral inequality. |xv|² + |yu|² ≤ |xu|² + |yv|² + 2|xy||uv|. The proof applies quadrilateral_aux with s = t = τ/(1 + τ) and lets le_two_mul_of_forall choose τ.

theorem Cslib.CAT0.dist_sq_add_dist_sq_le_sides {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] (x v y u : Y) :
dist x v ^ 2 + dist y u ^ 2 ≤ dist x y ^ 2 + dist y v ^ 2 + dist v u ^ 2 + dist x u ^ 2

Part (b). The squared diagonals of a quadrangle add up to at most its squared sides.

theorem Cslib.CAT0.sides_eq_of_dist_sq_add_dist_sq_eq {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] {x v y u : Y} (he : dist x v ^ 2 + dist y u ^ 2 = dist x y ^ 2 + dist y v ^ 2 + dist v u ^ 2 + dist x u ^ 2) :
dist x y = dist v u ∧ dist y v = dist x u

Part (b). If the squared diagonals of a quadrangle add up to its squared sides, opposite sides are equal.

Barycenters (part (c)) #

theorem Cslib.CAT0.IsBarycenter.sum_mul_dist_le {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] {ι : Type u_2} [Fintype ι] {w : ι → ℝ} (hw : ∀ (i : ι), 0 ≤ w i) {x x' : ι → Y} {b b' : Y} (h : IsBarycenter w x b) (h' : IsBarycenter w x' b') :
(∑ i : ι, w i) * dist b b' ≤ ∑ i : ι, w i * dist (x i) (x' i)

Part (c). Barycenters depend 1-Lipschitz on the points: (∑ wᵢ)|bb'| ≤ ∑ wᵢ|xᵢx'ᵢ|. Add the variance inequalities of b at b' and of b' at b, and apply the quadrilateral inequality to every b, b', xᵢ, x'ᵢ.

theorem Cslib.CAT0.isBarycenter_one_iff {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] {n : ℕ} (hn : 0 < n) (x : Fin n → Y) (b : Y) :
IsBarycenter (fun (x : Fin n) => 1) x b ↔ ∀ (y : Y), ∑ i : Fin n, dist b (x i) ^ 2 ≤ ∑ i : Fin n, dist y (x i) ^ 2

Part (c). For n ≥ 1 points, the barycenter with unit weights is the unique minimizer of y ↦ ∑ |yxᵢ|².

Projections (part (d)) #

theorem Cslib.CAT0.exists_proj {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] (F : Set Y) (hF : IsClosed F) (hne : F.Nonempty) (hconv : ∀ x ∈ F, ∀ v ∈ F, ∀ (m : Y), dist x m = dist x v / 2 → dist m v = dist x v / 2 → m ∈ F) (y : Y) :
∃ P ∈ F, (∀ q ∈ F, dist y P ≤ dist y q) ∧ ∀ q ∈ F, dist y P ^ 2 + dist P q ^ 2 ≤ dist y q ^ 2

Part (d). A nonempty closed convex set F has a nearest point P to every y, with |yP|² + |Pq|² ≤ |yq|² for q ∈ F. Here a set is convex if it contains every point with the distances of a midpoint of two of its points.

Flat rectangles (part (f)) #

The letters are those of the paper: |xy| = |uv| = δ, |xu| = |yv| = h, a is the point at s on [x, u] and b the point at t on [y, v]. The form Φ(p, p'; r, r') = |pr'|² + |p'r|² − |pr|² − |p'r'|² is at most 2|pp'||rr'| by the quadrilateral inequality, and it is additive when [p, p'] and [r, r'] are cut; so equality for the whole rectangle is inherited by the parts.

theorem Cslib.CAT0.dist_sq_of_flat_of_isPointAt {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] {x u v y a b : Y} {h δ s t : ℝ} (hp : dist x u = h) (hp' : dist y v = h) (hq : dist u v = δ) (hq' : dist x y = δ) (hd : h ^ 2 + δ ^ 2 ≤ dist x v ^ 2) (hd' : h ^ 2 + δ ^ 2 ≤ dist u y ^ 2) (hs0 : 0 ≤ s) (hs1 : s ≤ 1) (ht0 : 0 ≤ t) (ht1 : t ≤ 1) (ha : IsPointAt x u s a) (hb : IsPointAt y v t b) :
dist a b ^ 2 = δ ^ 2 + (s - t) ^ 2 * h ^ 2

Part (f), flat rectangles, with a and b given by the inequality of the point at fraction s, t, and lower bounds for the diagonals: |ab|² = δ² + (s − t)²h².

theorem Cslib.CAT0.dist_sq_of_flat {Y : Type u_1} [MetricSpace Y] [CompleteCAT0Space Y] {x u v y a b : Y} {h δ s t : ℝ} (hxy : dist x y = δ) (huv : dist u v = δ) (hxu : dist x u = h) (hyv : dist y v = h) (d1 : dist x v ^ 2 = δ ^ 2 + h ^ 2) (d2 : dist y u ^ 2 = δ ^ 2 + h ^ 2) (hs0 : 0 ≤ s) (hs1 : s ≤ 1) (ht0 : 0 ≤ t) (ht1 : t ≤ 1) (a1 : dist x a = s * dist x u) (a2 : dist a u = (1 - s) * dist x u) (b1 : dist y b = t * dist y v) (b2 : dist b v = (1 - t) * dist y v) :
dist a b ^ 2 = δ ^ 2 + h ^ 2 * (s - t) ^ 2

Part (f), flat rectangles. If |xy| = |uv| = δ, |xu| = |yv| = h, both diagonals have squared length δ² + h², and a ∈ [x, u], b ∈ [y, v] have |xa| = s h, |yb| = t h, then |ab|² = δ² + h²(s − t)².