Documentation

CslibFrontier.Foundations.Geometry.CAT0.Basic

Complete CAT(0) spaces: definitions #

Cslib.CompleteCAT0Space X is the convention of the source formalization (Nc.Cat.Core): X is complete, and any two points x, v have a midpoint m with the inequality of Bruhat and Tits |zm|² ≤ ½|zx|² + ½|zv|² − ¼|xv|² for every z (the CN inequality). For geodesic spaces the CN inequality is equivalent to the CAT(0) condition on comparison triangles [BridsonHaefliger1999, II.1.9(1)(c), p. 163]; that equivalence is not formalized here, and the class is used only through the CN inequality. Complete real inner product spaces are instances (Cslib.CompleteCAT0Space.ofInnerProductSpace).

This file states the midpoint condition through the inequality that characterizes the point at fraction t on a geodesic, |zb|² ≤ (1 − t)|zx|² + t|zv|² − t(1 − t)|xv|² (Cslib.CAT0.IsPointAt), and the variance inequality of barycenters (Cslib.CAT0.IsBarycenter). Both predicates make sense in every metric space; the facts that need the CAT(0) inequality are in Cslib.CAT0.Toolkit.

The material comes from the formalization of VP ≠ VNP over every field [Ant26], modules Nc.Cat.Core and Nc.Cat.Prod.

Main definitions #

Main results #

References #

Points at fraction t #

def Cslib.CAT0.IsPointAt {X : Type u_1} [MetricSpace X] (x v : X) (t : ℝ) (b : X) :

b satisfies the inequality of the point at fraction t between x and v: |zb|² ≤ (1 − t)|zx|² + t|zv|² − t(1 − t)|xv|² for every z.

theorem Cslib.CAT0.IsPointAt.symm {X : Type u_1} [MetricSpace X] {x v b : X} {t : ℝ} (h : IsPointAt x v t b) :
IsPointAt v x (1 - t) b
theorem Cslib.CAT0.IsPointAt.dist_left {X : Type u_1} [MetricSpace X] {x v b : X} {t : ℝ} (h0 : 0 ≤ t) (h1 : t ≤ 1) (h : IsPointAt x v t b) :
dist x b = t * dist x v
theorem Cslib.CAT0.IsPointAt.dist_right {X : Type u_1} [MetricSpace X] {x v b : X} {t : ℝ} (h0 : 0 ≤ t) (h1 : t ≤ 1) (h : IsPointAt x v t b) :
dist b v = (1 - t) * dist x v
theorem Cslib.CAT0.IsPointAt.eq_of_dist {X : Type u_1} [MetricSpace X] {x v b b' : X} {t : ℝ} (h : IsPointAt x v t b) (h2 : dist x b' = t * dist x v) (h3 : dist b' v = (1 - t) * dist x v) :
b' = b

A point with the distances of the point at fraction t is that point.

A complete CAT(0) space in the convention of the source formalization (Nc.Cat.Core): a complete metric space in which any two points have a midpoint with the CN inequality of Bruhat and Tits, |zm|² ≤ ½|zx|² + ½|zv|² − ¼|xv|². For geodesic spaces this is equivalent to the comparison-triangle definition [BridsonHaefliger1999, II.1.9(1)(c)], which is not formalized here.

Instances
    noncomputable def Cslib.CAT0.mid {X : Type u_1} [MetricSpace X] [CompleteCAT0Space X] (x v : X) :
    X

    A chosen midpoint of x and v.

    theorem Cslib.CAT0.isPointAt_mid {X : Type u_1} [MetricSpace X] [CompleteCAT0Space X] (x v : X) :
    IsPointAt x v (1 / 2) (mid x v)
    theorem Cslib.CAT0.dist_mid_sq_le {X : Type u_1} [MetricSpace X] [CompleteCAT0Space X] (x v z : X) :
    dist z (mid x v) ^ 2 ≤ (dist z x ^ 2 + dist z v ^ 2) / 2 - dist x v ^ 2 / 4

    The inequality of Bruhat and Tits.

    theorem Cslib.CAT0.dist_mid_left {X : Type u_1} [MetricSpace X] [CompleteCAT0Space X] (x v : X) :
    dist x (mid x v) = dist x v / 2
    theorem Cslib.CAT0.dist_mid_right {X : Type u_1} [MetricSpace X] [CompleteCAT0Space X] (x v : X) :
    dist (mid x v) v = dist x v / 2
    theorem Cslib.completeCAT0Space_iff {X : Type u_1} [MetricSpace X] :
    CompleteCAT0Space X ↔ CompleteSpace X ∧ ∀ (x v : X), ∃ (m : X), dist x m = dist x v / 2 ∧ dist m v = dist x v / 2 ∧ ∀ (z : X), dist z m ^ 2 ≤ dist z x ^ 2 / 2 + dist z v ^ 2 / 2 - (dist x v / 2) ^ 2

    The class unfolded: X is complete, and any two points have a point at distance half their distance from both with the CN inequality. This restates the bundled axiom only; it is not the comparison-triangle definition.

    Barycenters #

    def Cslib.CAT0.IsBarycenter {X : Type u_1} [MetricSpace X] {ι : Type u_2} [Fintype ι] (w : ι → ℝ) (x : ι → X) (b : X) :

    b is a barycenter of the points x i with weights w i (of any total weight): the variance inequality ∑ wᵢ|bxᵢ|² + (∑ wᵢ)|yb|² ≤ ∑ wᵢ|yxᵢ|² holds for every y.

    theorem Cslib.CAT0.IsBarycenter.unique {X : Type u_1} [MetricSpace X] {ι : Type u_2} [Fintype ι] {w : ι → ℝ} {x : ι → X} {b b' : X} (hw : 0 < ∑ i : ι, w i) (h : IsBarycenter w x b) (h' : IsBarycenter w x b') :
    b = b'
    theorem Cslib.CAT0.IsBarycenter.map {X : Type u_1} [MetricSpace X] {ι : Type u_2} [Fintype ι] {Y : Type u_3} [MetricSpace Y] {w : ι → ℝ} {x : ι → X} {b : X} (h : IsBarycenter w x b) {f : X → Y} (hf : Isometry f) (hs : Function.Surjective f) :
    IsBarycenter w (fun (i : ι) => f (x i)) (f b)

    A surjective isometry maps barycenters to barycenters.

    theorem Cslib.CAT0.IsBarycenter.comp_equiv {X : Type u_1} [MetricSpace X] {ι : Type u_2} [Fintype ι] {κ : Type u_3} [Fintype κ] {w : ι → ℝ} {x : ι → X} {b : X} (h : IsBarycenter w x b) (e : κ ≃ ι) :
    IsBarycenter (w ∘ ⇑e) (x ∘ ⇑e) b

    Barycenters do not depend on the names of the points.

    Instances #

    A complete real inner product space is a complete CAT(0) space: the affine midpoint satisfies the CN inequality with equality, by Apollonius's identity.

    Finite ℓ² products #

    instance Cslib.CompleteCAT0Space.piLp {ι : Type u_2} [Fintype ι] {X : ι → Type u_3} [(i : ι) → MetricSpace (X i)] [∀ (i : ι), CompleteCAT0Space (X i)] :

    A finite ℓ² product of CAT(0) spaces is CAT(0): the inequality of Bruhat and Tits adds up over the coordinates.