import Mathlib /-! # Complete 6-Region Unbounded Venn Separation among CAT(0), Busemann Convexity, # and Gromov δ-Hyperbolicity For geodesic metric spaces, the three fundamental non-positive curvature properties `{CAT(0), Busemann convex, Gromov δ-hyperbolic}` generate `2^3 = 8` formal Venn cells. Since `CAT(0) → Busemann convex`, the two cells `CAT(0) ∧ ¬Busemann` are empty. In this module we prove that ALL SIX remaining cells are inhabited by **explicit, UNBOUNDED** geodesic metric spaces (ruling out trivial bounded/compact witnesses for Gromov hyperbolicity): | Region | CAT(0) | Busemann | Gromov Hyp | Explicit Unbounded Witness | |---|---|---|---|---| | 1 | Yes | Yes | Yes (`δ = 0`) | Real line `(ℝ, |·|)` | | 2 | Yes | Yes | No | Euclidean plane `(ℝ², ‖·‖₂)` | | 3 | No | Yes | No | Hybrid normed plane `(ℝ², ‖·‖₂ + ‖·‖₁)` | | 4 | No | Yes | Yes (`δ = 2`) | Hybrid normed strip `([0,1] × ℝ, ‖·‖₂ + ‖·‖₁)` | | 5 | No | No | Yes (`δ = 1`) | Manhattan strip `([0,1] × ℝ, ‖·‖₁)` | | 6 | No | No | No | Manhattan plane `(ℝ², ‖·‖₁)` | Key technical ingredient: strict convexity of the hybrid norm `‖u‖_* = ‖u‖₂ + ‖u‖₁` forces **unique straight-line geodesics** in BOTH `HybridPlane` and `HybridStrip`, giving genuine Busemann convexity while failing the Bruhat–Tits midpoint CN inequality on `(0,0),(1,0),(0,1)`. -/ namespace CurvatureVennSeparation /-! ## Section 1: Core Metric, Geodesic, Curvature & Hyperbolicity Predicates -/ /-- Metric function axioms on an arbitrary type `α`. -/ structure IsMetricFn {α : Type*} (d : α → α → ℝ) : Prop where nonneg : ∀ x y, 0 ≤ d x y eq_zero_iff : ∀ x y, d x y = 0 ↔ x = y symm : ∀ x y, d x y = d y x triangle : ∀ x y z, d x z ≤ d x y + d y z lemma IsMetricFn.self {α : Type*} {d : α → α → ℝ} (hd : IsMetricFn d) (x : α) : d x x = 0 := (hd.eq_zero_iff x x).mpr rfl /-- Constant-speed geodesic segment parameterized on `[0, 1]` from `x` to `y`. -/ structure UnitGeo {α : Type*} (d : α → α → ℝ) (x y : α) where γ : ℝ → α start : γ 0 = x stop : γ 1 = y isom : ∀ s t : ℝ, 0 ≤ s → s ≤ 1 → 0 ≤ t → t ≤ 1 → d (γ s) (γ t) = |s - t| * d x y lemma UnitGeo.dist_left {α : Type*} {d : α → α → ℝ} {x y : α} (g : UnitGeo d x y) {t : ℝ} (ht0 : 0 ≤ t) (ht1 : t ≤ 1) : d x (g.γ t) = t * d x y := by have h := g.isom 0 t le_rfl (by norm_num) ht0 ht1 rw [g.start, zero_sub, abs_neg, abs_of_nonneg ht0] at h exact h lemma UnitGeo.dist_right {α : Type*} {d : α → α → ℝ} {x y : α} (g : UnitGeo d x y) {t : ℝ} (ht0 : 0 ≤ t) (ht1 : t ≤ 1) : d (g.γ t) y = (1 - t) * d x y := by have h := g.isom t 1 ht0 ht1 (by norm_num) le_rfl rw [g.stop, abs_of_nonpos (by linarith)] at h have : -(t - 1) = 1 - t := by ring rw [this] at h exact h def UnitGeo.rev {α : Type*} {d : α → α → ℝ} (hd : IsMetricFn d) {x y : α} (g : UnitGeo d x y) : UnitGeo d y x where γ t := g.γ (1 - t) start := by simpa using g.stop stop := by simpa using g.start isom s t hs0 hs1 ht0 ht1 := by have h := g.isom (1 - s) (1 - t) (by linarith) (by linarith) (by linarith) (by linarith) rw [show (1 - s) - (1 - t) = -(s - t) by ring, abs_neg, hd.symm x y] at h exact h /-- `CAT(0)` non-positive curvature (`λ`-CN inequality for all geodesics). -/ def IsCAT0 {α : Type*} (d : α → α → ℝ) : Prop := (∀ x y : α, Nonempty (UnitGeo d x y)) ∧ ∀ (x y z : α) (g : UnitGeo d y z) (lam : ℝ), 0 ≤ lam → lam ≤ 1 → d x (g.γ lam) ^ 2 ≤ (1 - lam) * d x y ^ 2 + lam * d x z ^ 2 - lam * (1 - lam) * d y z ^ 2 /-- Busemann convexity for all pairs of constant-speed geodesics. -/ def IsBusemann {α : Type*} (d : α → α → ℝ) : Prop := (∀ x y : α, Nonempty (UnitGeo d x y)) ∧ ∀ (x₁ y₁ x₂ y₂ : α) (g₁ : UnitGeo d x₁ y₁) (g₂ : UnitGeo d x₂ y₂) (lam : ℝ), 0 ≤ lam → lam ≤ 1 → d (g₁.γ lam) (g₂.γ lam) ≤ (1 - lam) * d x₁ x₂ + lam * d y₁ y₂ /-- Gromov 4-point `δ`-hyperbolicity. -/ def IsFourPointHyp {α : Type*} (d : α → α → ℝ) (δ : ℝ) : Prop := ∀ x y z w : α, d x y + d z w ≤ max (d x z + d y w) (d x w + d y z) + 2 * δ /-- A metric space is Gromov hyperbolic if it is `δ`-hyperbolic for some `δ ≥ 0`. -/ def IsGromovHyp {α : Type*} (d : α → α → ℝ) : Prop := ∃ δ : ℝ, 0 ≤ δ ∧ IsFourPointHyp d δ /-- Unboundedness (rules out trivial bounded witnesses for Gromov hyperbolicity). -/ def IsUnbounded {α : Type*} (d : α → α → ℝ) : Prop := ∀ M : ℝ, ∃ x y : α, M < d x y /-- **THEOREM (Empty Venn Cells: `CAT(0) → Busemann`)**: Every `CAT(0)` metric space is Busemann convex, ruling out the two cells `CAT(0) ∧ ¬Busemann`. -/ theorem cat0_implies_busemann {α : Type*} {d : α → α → ℝ} (hd : IsMetricFn d) (hcat : IsCAT0 d) : IsBusemann d := by refine ⟨hcat.1, ?_⟩ have hshared : ∀ (x y₁ y₂ : α) (g₁ : UnitGeo d x y₁) (g₂ : UnitGeo d x y₂) (t : ℝ), 0 ≤ t → t ≤ 1 → d (g₁.γ t) (g₂.γ t) ≤ t * d y₁ y₂ := by intro x y₁ y₂ g₁ g₂ t ht0 ht1 have h1 := hcat.2 (g₁.γ t) x y₂ g₂ t ht0 ht1 have h2 := hcat.2 y₂ x y₁ g₁ t ht0 ht1 have hgx : d (g₁.γ t) x = t * d x y₁ := by rw [hd.symm]; exact g₁.dist_left ht0 ht1 rw [hgx] at h1 rw [hd.symm y₂ (g₁.γ t), hd.symm y₂ x, hd.symm y₂ y₁] at h2 have hmul : t * d (g₁.γ t) y₂ ^ 2 ≤ t * ((1 - t) * d x y₂ ^ 2 + t * d y₁ y₂ ^ 2 - t * (1 - t) * d x y₁ ^ 2) := mul_le_mul_of_nonneg_left h2 ht0 have hcomb : d (g₁.γ t) (g₂.γ t) ^ 2 ≤ (1 - t) * (t * d x y₁) ^ 2 + t * ((1 - t) * d x y₂ ^ 2 + t * d y₁ y₂ ^ 2 - t * (1 - t) * d x y₁ ^ 2) - t * (1 - t) * d x y₂ ^ 2 := by linarith have halg : (1 - t) * (t * d x y₁) ^ 2 + t * ((1 - t) * d x y₂ ^ 2 + t * d y₁ y₂ ^ 2 - t * (1 - t) * d x y₁ ^ 2) - t * (1 - t) * d x y₂ ^ 2 = (t * d y₁ y₂) ^ 2 := by ring have hnonneg : 0 ≤ t * d y₁ y₂ := mul_nonneg ht0 (hd.nonneg y₁ y₂) nlinarith [hd.nonneg (g₁.γ t) (g₂.γ t)] intro x₁ y₁ x₂ y₂ g₁ g₂ lam h0 h1 obtain ⟨η⟩ := hcat.1 x₁ y₂ have ha := hshared x₁ y₁ y₂ g₁ η lam h0 h1 have hb : d (η.γ lam) (g₂.γ lam) ≤ (1 - lam) * d x₁ x₂ := by have hrev := hshared y₂ x₁ x₂ (η.rev hd) (g₂.rev hd) (1 - lam) (by linarith) (by linarith) simpa [UnitGeo.rev, sub_sub_cancel] using hrev calc d (g₁.γ lam) (g₂.γ lam) ≤ d (g₁.γ lam) (η.γ lam) + d (η.γ lam) (g₂.γ lam) := hd.triangle _ _ _ _ ≤ lam * d y₁ y₂ + (1 - lam) * d x₁ x₂ := add_le_add ha hb _ = (1 - lam) * d x₁ x₂ + lam * d y₁ y₂ := add_comm _ _ lemma busemann_unique_geo {α : Type*} {d : α → α → ℝ} (hd : IsMetricFn d) (hbus : IsBusemann d) {x y : α} (g₁ g₂ : UnitGeo d x y) {t : ℝ} (ht0 : 0 ≤ t) (ht1 : t ≤ 1) : g₁.γ t = g₂.γ t := by have h := hbus.2 x y x y g₁ g₂ t ht0 ht1 rw [hd.self x, hd.self y] at h exact (hd.eq_zero_iff _ _).mp (le_antisymm (by linarith) (hd.nonneg _ _)) /-! ## Helper: 1D 0-Hyperbolicity & Additive-Band Hyperbolicity Transfer -/ lemma real_four_point_zero (a b c d : ℝ) : |a - b| + |c - d| ≤ max (|a - c| + |b - d|) (|a - d| + |b - c|) := by have hord : ∀ x y z w : ℝ, x ≤ y → z ≤ w → |x - y| + |z - w| ≤ max (|x - z| + |y - w|) (|x - w| + |y - z|) := by intro x y z w hxy hzw rw [abs_of_nonpos (by linarith : x - y ≤ 0), abs_of_nonpos (by linarith : z - w ≤ 0)] rcases le_total y z with hyz | hzy · exact le_max_of_le_right (by linarith [neg_le_abs (x - w), neg_le_abs (y - z)]) · rcases le_total w x with hwx | hxw · exact le_max_of_le_right (by linarith [le_abs_self (x - w), le_abs_self (y - z)]) · exact le_max_of_le_right (by linarith [neg_le_abs (x - w), le_abs_self (y - z)]) rcases le_total a b with hab | hba <;> rcases le_total c d with hcd | hdc · exact hord a b c d hab hcd · have h := hord a b d c hab hdc; rwa [abs_sub_comm d c, max_comm] at h · have h := hord b a c d hba hcd rwa [abs_sub_comm b a, max_comm, add_comm |b - c| |a - d|, add_comm |b - d| |a - c|] at h · have h := hord b a d c hba hdc rwa [abs_sub_comm b a, abs_sub_comm d c, add_comm |b - d| |a - c|, add_comm |b - c| |a - d|] at h /-- If `d` lies within an additive band `[c · |f x - f y|, c · |f x - f y| + K]` (`c ≥ 0, K ≥ 0`), then `d` is globally `K`-hyperbolic! -/ lemma fourPointHyp_of_real_band {α : Type*} {d : α → α → ℝ} (f : α → ℝ) {c K : ℝ} (hc : 0 ≤ c) (hlo : ∀ x y, c * |f x - f y| ≤ d x y) (hhi : ∀ x y, d x y ≤ c * |f x - f y| + K) : IsFourPointHyp d K := by intro x y z w have h1d := real_four_point_zero (f x) (f y) (f z) (f w) have hmul : c * (|f x - f y| + |f z - f w|) ≤ c * max (|f x - f z| + |f y - f w|) (|f x - f w| + |f y - f z|) := mul_le_mul_of_nonneg_left h1d hc rcases le_total (|f x - f z| + |f y - f w|) (|f x - f w| + |f y - f z|) with h | h · rw [max_eq_right h] at hmul have := hhi x y; have := hhi z w; have := hlo x w; have := hlo y z linarith [le_max_right (d x z + d y w) (d x w + d y z)] · rw [max_eq_left h] at hmul have := hhi x y; have := hhi z w; have := hlo x z; have := hlo y w linarith [le_max_left (d x z + d y w) (d x w + d y z)] /-! ## Section 2: Region 1 — Real Line `ℝ` (`CAT(0) ∧ Busemann ∧ Hyp ∧ Unbounded`) -/ def realDist (x y : ℝ) : ℝ := |x - y| lemma realDist_isMetricFn : IsMetricFn realDist where nonneg x y := abs_nonneg _ eq_zero_iff x y := by simp [realDist, sub_eq_zero] symm x y := abs_sub_comm x y triangle x y z := by unfold realDist have : x - z = (x - y) + (y - z) := by ring rw [this]; exact abs_add_le _ _ theorem region1_real_line : IsMetricFn realDist ∧ IsCAT0 realDist ∧ IsBusemann realDist ∧ IsGromovHyp realDist ∧ IsUnbounded realDist := by have hcat : IsCAT0 realDist := by refine ⟨fun x y => ⟨{ γ := fun t => (1 - t) * x + t * y start := by ring stop := by ring isom := fun s t _ _ _ _ => by unfold realDist rw [show ((1 - s) * x + s * y) - ((1 - t) * x + t * y) = -(s - t) * (x - y) by ring, abs_mul, abs_neg] }⟩, ?_⟩ intro x y z g lam h0 h1 -- In `ℝ`, ANY geodesic satisfies `g.γ lam = (1 - lam) * y + lam * z`! have hlin : g.γ lam = (1 - lam) * y + lam * z := by have hL := g.dist_left h0 h1 have hR := g.dist_right h0 h1 unfold realDist at hL hR rcases le_total y z with hyz | hzy · rw [abs_of_nonpos (by linarith : y - z ≤ 0)] at hL hR have hsum : |y - g.γ lam| + |g.γ lam - z| = z - y := by linarith have h1' : y ≤ g.γ lam := by by_contra hlt; push Not at hlt rw [abs_of_pos (by linarith : 0 < y - g.γ lam), abs_of_neg (by linarith : g.γ lam - z < 0)] at hsum linarith have h2' : g.γ lam ≤ z := by by_contra hlt; push Not at hlt rw [abs_of_nonpos (by linarith : y - g.γ lam ≤ 0), abs_of_pos (by linarith : 0 < g.γ lam - z)] at hsum linarith rw [abs_of_nonpos (by linarith : y - g.γ lam ≤ 0)] at hL; linarith · rw [abs_of_nonneg (by linarith : 0 ≤ y - z)] at hL hR have hsum : |y - g.γ lam| + |g.γ lam - z| = y - z := by linarith have h1' : g.γ lam ≤ y := by by_contra hlt; push Not at hlt rw [abs_of_neg (by linarith : y - g.γ lam < 0), abs_of_pos (by linarith : 0 < g.γ lam - z)] at hsum linarith rw [abs_of_nonneg (by linarith : 0 ≤ y - g.γ lam)] at hL; linarith rw [hlin]; unfold realDist simp only [sq_abs] have halg : (x - ((1 - lam) * y + lam * z)) ^ 2 = (1 - lam) * (x - y) ^ 2 + lam * (x - z) ^ 2 - lam * (1 - lam) * (y - z) ^ 2 := by ring linarith refine ⟨realDist_isMetricFn, hcat, cat0_implies_busemann realDist_isMetricFn hcat, ⟨0, le_rfl, fun x y z w => by simp only [mul_zero, add_zero]; exact real_four_point_zero x y z w⟩, fun M => ⟨0, max 0 M + 1, by unfold realDist; rw [zero_sub, abs_neg, abs_of_pos (by linarith [le_max_left 0 M])] linarith [le_max_right 0 M]⟩⟩ /-! ## Section 3: Region 2 — Euclidean Plane `ℝ²` (`CAT(0) ∧ Busemann ∧ ¬Hyp ∧ Unbounded`) -/ noncomputable def euclidNorm (u : ℝ × ℝ) : ℝ := Real.sqrt (u.1 ^ 2 + u.2 ^ 2) noncomputable def euclid2Dist (p q : ℝ × ℝ) : ℝ := euclidNorm (p.1 - q.1, p.2 - q.2) lemma euclidNorm_nonneg (u : ℝ × ℝ) : 0 ≤ euclidNorm u := Real.sqrt_nonneg _ lemma euclidNorm_sq (u : ℝ × ℝ) : euclidNorm u ^ 2 = u.1 ^ 2 + u.2 ^ 2 := Real.sq_sqrt (by positivity) lemma euclidNorm_eq_zero_iff (u : ℝ × ℝ) : euclidNorm u = 0 ↔ u.1 = 0 ∧ u.2 = 0 := by constructor · intro h have hsq : u.1 ^ 2 + u.2 ^ 2 = 0 := by rw [← euclidNorm_sq u, h]; norm_num exact ⟨by nlinarith, by nlinarith⟩ · rintro ⟨h1, h2⟩; simp [euclidNorm, h1, h2] lemma euclidNorm_smul (c x y : ℝ) : euclidNorm (c * x, c * y) = |c| * euclidNorm (x, y) := by unfold euclidNorm rw [show (c * x) ^ 2 + (c * y) ^ 2 = c ^ 2 * (x ^ 2 + y ^ 2) by ring, Real.sqrt_mul (sq_nonneg c), Real.sqrt_sq_eq_abs] lemma euclidNorm_add_le (x₁ y₁ x₂ y₂ : ℝ) : euclidNorm (x₁ + x₂, y₁ + y₂) ≤ euclidNorm (x₁, y₁) + euclidNorm (x₂, y₂) := by have hcs : x₁ * x₂ + y₁ * y₂ ≤ euclidNorm (x₁, y₁) * euclidNorm (x₂, y₂) := by have hsq : (x₁ * x₂ + y₁ * y₂) ^ 2 ≤ (euclidNorm (x₁, y₁) * euclidNorm (x₂, y₂)) ^ 2 := by rw [mul_pow, euclidNorm_sq, euclidNorm_sq] nlinarith [sq_nonneg (x₁ * y₂ - y₁ * x₂)] nlinarith [mul_nonneg (euclidNorm_nonneg (x₁, y₁)) (euclidNorm_nonneg (x₂, y₂))] have hsq : euclidNorm (x₁ + x₂, y₁ + y₂) ^ 2 ≤ (euclidNorm (x₁, y₁) + euclidNorm (x₂, y₂)) ^ 2 := by rw [euclidNorm_sq] have := euclidNorm_sq (x₁, y₁); have := euclidNorm_sq (x₂, y₂) nlinarith nlinarith [euclidNorm_nonneg (x₁ + x₂, y₁ + y₂), euclidNorm_nonneg (x₁, y₁), euclidNorm_nonneg (x₂, y₂)] /-- **Strict Convexity Key Lemma for `euclidNorm`**: If `euclidNorm (u + v) = euclidNorm u + euclidNorm v`, `u + v ≠ 0`, and `euclidNorm u = t * euclidNorm (u + v)` (`t ≥ 0`), then `u = t • (u + v)`! -/ lemma euclidNorm_strict_collinear {u v : ℝ × ℝ} {t : ℝ} (_ht0 : 0 ≤ t) (heq : euclidNorm (u.1 + v.1, u.2 + v.2) = euclidNorm u + euclidNorm v) (hnu : euclidNorm u = t * euclidNorm (u.1 + v.1, u.2 + v.2)) : u.1 = t * (u.1 + v.1) ∧ u.2 = t * (u.2 + v.2) := by set w : ℝ × ℝ := (u.1 + v.1, u.2 + v.2) have hnw_sq : euclidNorm w ^ 2 = (euclidNorm u + euclidNorm v) ^ 2 := by rw [heq] have hdot : u.1 * v.1 + u.2 * v.2 = euclidNorm u * euclidNorm v := by have h1 := euclidNorm_sq w have h2 := euclidNorm_sq u have h3 := euclidNorm_sq v dsimp [w] at h1 nlinarith -- Compute `u · w = u · u + u · v = ‖u‖² + ‖u‖‖v‖ = ‖u‖(‖u‖ + ‖v‖) = t ‖w‖²`! have hdot_w : u.1 * w.1 + u.2 * w.2 = t * (w.1 ^ 2 + w.2 ^ 2) := by have h1 := euclidNorm_sq u have h2 := euclidNorm_sq w have hmul : euclidNorm u * (euclidNorm u + euclidNorm v) = t * euclidNorm w ^ 2 := by rw [← heq, hnu]; ring dsimp [w] at h2 ⊢ nlinarith -- Therefore `(u - t w)² = ‖u‖² - 2 t (u · w) + t² ‖w‖² = t²‖w‖² - 2 t²‖w‖² + t²‖w‖² = 0`!! have hzero : (u.1 - t * w.1) ^ 2 + (u.2 - t * w.2) ^ 2 = 0 := by have h1 := euclidNorm_sq u have h2 := euclidNorm_sq w have h3 : euclidNorm u ^ 2 = t ^ 2 * (w.1 ^ 2 + w.2 ^ 2) := by rw [hnu, mul_pow, euclidNorm_sq] nlinarith exact ⟨by nlinarith, by nlinarith⟩ lemma euclid2Dist_isMetricFn : IsMetricFn euclid2Dist where nonneg p q := euclidNorm_nonneg _ eq_zero_iff p q := by unfold euclid2Dist rw [euclidNorm_eq_zero_iff] constructor · rintro ⟨h1, h2⟩; ext <;> linarith · rintro rfl; simp symm p q := by unfold euclid2Dist euclidNorm congr 1; ring triangle p q r := by unfold euclid2Dist have h : (p.1 - r.1, p.2 - r.2) = ((p.1 - q.1) + (q.1 - r.1), (p.2 - q.2) + (q.2 - r.2)) := by ext <;> dsimp <;> ring rw [h]; exact euclidNorm_add_le (p.1 - q.1) (p.2 - q.2) (q.1 - r.1) (q.2 - r.2) /-- Every unit-speed geodesic in `Euclid2` is uniquely the straight line! -/ lemma euclid2_geo_eq_line {p q : ℝ × ℝ} (g : UnitGeo euclid2Dist p q) {t : ℝ} (ht0 : 0 ≤ t) (ht1 : t ≤ 1) : g.γ t = ((1 - t) * p.1 + t * q.1, (1 - t) * p.2 + t * q.2) := by set u : ℝ × ℝ := ((g.γ t).1 - p.1, (g.γ t).2 - p.2) set v : ℝ × ℝ := (q.1 - (g.γ t).1, q.2 - (g.γ t).2) have huv : (u.1 + v.1, u.2 + v.2) = (q.1 - p.1, q.2 - p.2) := by ext <;> dsimp [u, v] <;> ring have hnu : euclidNorm u = t * euclidNorm (u.1 + v.1, u.2 + v.2) := by rw [huv] have hL := g.dist_left ht0 ht1 rw [euclid2Dist_isMetricFn.symm p (g.γ t), euclid2Dist_isMetricFn.symm p q] at hL exact hL have hnv : euclidNorm v = (1 - t) * euclidNorm (u.1 + v.1, u.2 + v.2) := by rw [huv] have hR := g.dist_right ht0 ht1 rw [euclid2Dist_isMetricFn.symm (g.γ t) q, euclid2Dist_isMetricFn.symm p q] at hR exact hR have heq : euclidNorm (u.1 + v.1, u.2 + v.2) = euclidNorm u + euclidNorm v := by linarith have ⟨hx, hy⟩ := euclidNorm_strict_collinear ht0 heq hnu dsimp [u, v] at hx hy ext <;> dsimp <;> linarith theorem region2_euclid_plane : IsMetricFn euclid2Dist ∧ IsCAT0 euclid2Dist ∧ IsBusemann euclid2Dist ∧ ¬IsGromovHyp euclid2Dist ∧ IsUnbounded euclid2Dist := by have hcat : IsCAT0 euclid2Dist := by refine ⟨fun p q => ⟨{ γ := fun t => ((1 - t) * p.1 + t * q.1, (1 - t) * p.2 + t * q.2) start := by ext <;> dsimp <;> ring stop := by ext <;> dsimp <;> ring isom := fun s t _ _ _ _ => by unfold euclid2Dist have h : (((1 - s) * p.1 + s * q.1) - ((1 - t) * p.1 + t * q.1), ((1 - s) * p.2 + s * q.2) - ((1 - t) * p.2 + t * q.2)) = (-(s - t) * (p.1 - q.1), -(s - t) * (p.2 - q.2)) := by ext <;> dsimp <;> ring rw [h, euclidNorm_smul, abs_neg] }⟩, ?_⟩ intro x y z g lam h0 h1 rw [euclid2_geo_eq_line g h0 h1] unfold euclid2Dist rw [euclidNorm_sq, euclidNorm_sq, euclidNorm_sq, euclidNorm_sq] have halg : (x.1 - ((1 - lam) * y.1 + lam * z.1)) ^ 2 + (x.2 - ((1 - lam) * y.2 + lam * z.2)) ^ 2 = (1 - lam) * ((x.1 - y.1) ^ 2 + (x.2 - y.2) ^ 2) + lam * ((x.1 - z.1) ^ 2 + (x.2 - z.2) ^ 2) - lam * (1 - lam) * ((y.1 - z.1) ^ 2 + (y.2 - z.2) ^ 2) := by ring linarith have hnotHyp : ¬IsGromovHyp euclid2Dist := by rintro ⟨δ, hδ, h4⟩ set R := 4 * δ + 4 have hR : 0 < R := by linarith have hsq := h4 (0, 0) (R, R) (R, 0) (0, R) have d0R : euclid2Dist (0, 0) (R, 0) = R := by unfold euclid2Dist euclidNorm; simp [Real.sqrt_sq (le_of_lt hR)] have d0R' : euclid2Dist (0, 0) (0, R) = R := by unfold euclid2Dist euclidNorm; simp [Real.sqrt_sq (le_of_lt hR)] have dRR1 : euclid2Dist (R, R) (0, R) = R := by unfold euclid2Dist euclidNorm; simp [Real.sqrt_sq (le_of_lt hR)] have dRR2 : euclid2Dist (R, R) (R, 0) = R := by unfold euclid2Dist euclidNorm; simp [Real.sqrt_sq (le_of_lt hR)] have ddiag1 : euclid2Dist (0, 0) (R, R) = Real.sqrt 2 * R := by unfold euclid2Dist euclidNorm rw [show ((0 : ℝ) - R) ^ 2 + ((0 : ℝ) - R) ^ 2 = 2 * R ^ 2 by ring, Real.sqrt_mul (by norm_num), Real.sqrt_sq (le_of_lt hR)] have ddiag2 : euclid2Dist (R, 0) (0, R) = Real.sqrt 2 * R := by unfold euclid2Dist euclidNorm rw [show (R - 0) ^ 2 + ((0 : ℝ) - R) ^ 2 = 2 * R ^ 2 by ring, Real.sqrt_mul (by norm_num), Real.sqrt_sq (le_of_lt hR)] rw [ddiag1, ddiag2, d0R, d0R', dRR1, dRR2, max_self] at hsq have hrt2 : (5 : ℝ) / 4 < Real.sqrt 2 := by have : ((5 : ℝ) / 4) ^ 2 < Real.sqrt 2 ^ 2 := by rw [Real.sq_sqrt (by norm_num)]; norm_num nlinarith [Real.sqrt_nonneg 2] nlinarith refine ⟨euclid2Dist_isMetricFn, hcat, cat0_implies_busemann euclid2Dist_isMetricFn hcat, hnotHyp, fun M => ⟨(max 0 M + 1, 0), (0, 0), by unfold euclid2Dist euclidNorm have hpos : 0 < max 0 M + 1 := by linarith [le_max_left 0 M] simp only [sub_zero, zero_pow (by norm_num : 2 ≠ 0), add_zero, Real.sqrt_sq (le_of_lt hpos)] linarith [le_max_right 0 M]⟩⟩ /-! ## Section 4: Hybrid Norm `‖u‖_* = ‖u‖₂ + ‖u‖₁` — Regions 3 & 4 (`¬CAT(0) ∧ Busemann`) -/ /-- Strictly convex hybrid norm `‖u‖_* = √(u₁² + u₂²) + |u₁| + |u₂|` on `ℝ²`. -/ noncomputable def hybridNorm (u : ℝ × ℝ) : ℝ := euclidNorm u + |u.1| + |u.2| noncomputable def hybridDist (p q : ℝ × ℝ) : ℝ := hybridNorm (p.1 - q.1, p.2 - q.2) lemma hybridNorm_nonneg (u : ℝ × ℝ) : 0 ≤ hybridNorm u := by unfold hybridNorm; linarith [euclidNorm_nonneg u, abs_nonneg u.1, abs_nonneg u.2] lemma hybridNorm_eq_zero_iff (u : ℝ × ℝ) : hybridNorm u = 0 ↔ u.1 = 0 ∧ u.2 = 0 := by unfold hybridNorm constructor · intro h have h1 : |u.1| = 0 := by linarith [euclidNorm_nonneg u, abs_nonneg u.1, abs_nonneg u.2] have h2 : |u.2| = 0 := by linarith [euclidNorm_nonneg u, abs_nonneg u.1, abs_nonneg u.2] exact ⟨abs_eq_zero.mp h1, abs_eq_zero.mp h2⟩ · rintro ⟨h1, h2⟩; simp [euclidNorm, h1, h2] lemma hybridNorm_smul (c x y : ℝ) : hybridNorm (c * x, c * y) = |c| * hybridNorm (x, y) := by unfold hybridNorm rw [euclidNorm_smul, abs_mul, abs_mul]; ring lemma hybridNorm_add_le (x₁ y₁ x₂ y₂ : ℝ) : hybridNorm (x₁ + x₂, y₁ + y₂) ≤ hybridNorm (x₁, y₁) + hybridNorm (x₂, y₂) := by unfold hybridNorm linarith [euclidNorm_add_le x₁ y₁ x₂ y₂, abs_add_le x₁ x₂, abs_add_le y₁ y₂] lemma hybridDist_isMetricFn : IsMetricFn hybridDist where nonneg p q := hybridNorm_nonneg _ eq_zero_iff p q := by unfold hybridDist rw [hybridNorm_eq_zero_iff] constructor · rintro ⟨h1, h2⟩; ext <;> linarith · rintro rfl; simp symm p q := by unfold hybridDist hybridNorm euclidNorm rw [abs_sub_comm p.1 q.1, abs_sub_comm p.2 q.2] congr 2; congr 1; ring triangle p q r := by unfold hybridDist have h : (p.1 - r.1, p.2 - r.2) = ((p.1 - q.1) + (q.1 - r.1), (p.2 - q.2) + (q.2 - r.2)) := by ext <;> dsimp <;> ring rw [h]; exact hybridNorm_add_le (p.1 - q.1) (p.2 - q.2) (q.1 - r.1) (q.2 - r.2) /-- **STRICT CONVEXITY KEY LEMMA FOR `hybridNorm`**: If `hybridNorm (u + v) = hybridNorm u + hybridNorm v` and `hybridNorm u = t * hybridNorm (u + v)` (`t ∈ [0, 1]`), then `u = t • (u + v)`! -/ lemma hybridNorm_strict_collinear {u v : ℝ × ℝ} {t : ℝ} (_ht0 : 0 ≤ t) (heq : hybridNorm (u.1 + v.1, u.2 + v.2) = hybridNorm u + hybridNorm v) (hnu : hybridNorm u = t * hybridNorm (u.1 + v.1, u.2 + v.2)) : u.1 = t * (u.1 + v.1) ∧ u.2 = t * (u.2 + v.2) := by -- Equality in `hybridNorm` forces equality in `euclidNorm`! have he_eq : euclidNorm (u.1 + v.1, u.2 + v.2) = euclidNorm u + euclidNorm v := by unfold hybridNorm at heq have h1 := euclidNorm_add_le u.1 u.2 v.1 v.2 have h2 := abs_add_le u.1 v.1 have h3 := abs_add_le u.2 v.2 linarith set w : ℝ × ℝ := (u.1 + v.1, u.2 + v.2) by_cases hw : euclidNorm w = 0 · obtain ⟨hw1, hw2⟩ := (euclidNorm_eq_zero_iff w).mp hw have hnw : hybridNorm w = 0 := (hybridNorm_eq_zero_iff w).mpr ⟨hw1, hw2⟩ have hu0 : hybridNorm u = 0 := by rw [hnu, hnw, mul_zero] obtain ⟨hu1, hu2⟩ := (hybridNorm_eq_zero_iff u).mp hu0 dsimp [w] at hw1 hw2 exact ⟨by rw [hw1, hu1, mul_zero], by rw [hw2, hu2, mul_zero]⟩ · have hw_pos : 0 < euclidNorm w := lt_of_le_of_ne (euclidNorm_nonneg w) (Ne.symm hw) set s := euclidNorm u / euclidNorm w have hs0 : 0 ≤ s := div_nonneg (euclidNorm_nonneg u) (le_of_lt hw_pos) have hsu : euclidNorm u = s * euclidNorm w := by dsimp [s]; field_simp [ne_of_gt hw_pos] have ⟨hx, hy⟩ := euclidNorm_strict_collinear hs0 he_eq hsu -- Now compute `hybridNorm u = s * hybridNorm w` to deduce `s = t`! have hhu : hybridNorm u = s * hybridNorm w := by have hu_eq : u = (s * w.1, s * w.2) := Prod.ext hx hy rw [hu_eq, hybridNorm_smul, abs_of_nonneg hs0] have hnw_pos : 0 < hybridNorm w := by unfold hybridNorm; linarith [abs_nonneg w.1, abs_nonneg w.2] have hst : s = t := by nlinarith rw [hst] at hx hy exact ⟨hx, hy⟩ /-- Every unit-speed geodesic in `HybridPlane` (or any subset with `hybridDist`) is the straight line! -/ lemma hybrid_geo_eq_line {p q : ℝ × ℝ} {γ : ℝ → ℝ × ℝ} (hL : ∀ t, 0 ≤ t → t ≤ 1 → hybridDist p (γ t) = t * hybridDist p q) (hR : ∀ t, 0 ≤ t → t ≤ 1 → hybridDist (γ t) q = (1 - t) * hybridDist p q) {t : ℝ} (ht0 : 0 ≤ t) (ht1 : t ≤ 1) : γ t = ((1 - t) * p.1 + t * q.1, (1 - t) * p.2 + t * q.2) := by set u : ℝ × ℝ := ((γ t).1 - p.1, (γ t).2 - p.2) set v : ℝ × ℝ := (q.1 - (γ t).1, q.2 - (γ t).2) have huv : (u.1 + v.1, u.2 + v.2) = (q.1 - p.1, q.2 - p.2) := by ext <;> dsimp [u, v] <;> ring have hnu : hybridNorm u = t * hybridNorm (u.1 + v.1, u.2 + v.2) := by rw [huv] have h := hL t ht0 ht1 rw [hybridDist_isMetricFn.symm p (γ t), hybridDist_isMetricFn.symm p q] at h exact h have hnv : hybridNorm v = (1 - t) * hybridNorm (u.1 + v.1, u.2 + v.2) := by rw [huv] have h := hR t ht0 ht1 rw [hybridDist_isMetricFn.symm (γ t) q, hybridDist_isMetricFn.symm p q] at h exact h have heq : hybridNorm (u.1 + v.1, u.2 + v.2) = hybridNorm u + hybridNorm v := by linarith have ⟨hx, hy⟩ := hybridNorm_strict_collinear ht0 heq hnu dsimp [u, v] at hx hy ext <;> dsimp <;> linarith /-- Explicit CAT(0) midpoint CN violation witness for `hybridDist` on `(0,0), (1,0), (0,1)`! -/ lemma hybrid_midpoint_cn_violation : let x : ℝ × ℝ := (0, 0) let y : ℝ × ℝ := (1, 0) let z : ℝ × ℝ := (0, 1) let m : ℝ × ℝ := ((1 - 1 / 2) * y.1 + (1 / 2) * z.1, (1 - 1 / 2) * y.2 + (1 / 2) * z.2) (1 - 1 / 2) * hybridDist x y ^ 2 + (1 / 2) * hybridDist x z ^ 2 - (1 / 2) * (1 - 1 / 2) * hybridDist y z ^ 2 < hybridDist x m ^ 2 := by intro x y z m have dxy : hybridDist x y = 2 := by unfold hybridDist hybridNorm euclidNorm; dsimp [x, y]; norm_num have dxz : hybridDist x z = 2 := by unfold hybridDist hybridNorm euclidNorm; dsimp [x, z]; norm_num have dyz : hybridDist y z = Real.sqrt 2 + 2 := by unfold hybridDist hybridNorm euclidNorm; dsimp [y, z]; norm_num; ring have dxm : hybridDist x m = (Real.sqrt 2)⁻¹ + 1 := by unfold hybridDist hybridNorm euclidNorm; dsimp [x, y, z, m]; norm_num; ring rw [dxy, dxz, dyz, dxm] have hrt2 : Real.sqrt 2 ^ 2 = 2 := Real.sq_sqrt (by norm_num) have hrt2_pos : 0 < Real.sqrt 2 := Real.sqrt_pos.mpr (by norm_num) have hrt_inv_pos : 0 < (Real.sqrt 2)⁻¹ := inv_pos.mpr hrt2_pos have hrt_inv_sq : (Real.sqrt 2)⁻¹ ^ 2 = 1 / 2 := by rw [inv_pow, hrt2]; norm_num -- `LHS = 4 - (6 + 4√2)/4 = 5/2 - √2 < 3/2`, while `RHS = 3/2 + 2(√2)⁻¹ > 3/2`! have hrt2_gt1 : 1 < Real.sqrt 2 := by nlinarith nlinarith /-- **THEOREM (Region 3: Hybrid Plane `¬CAT(0) ∧ Busemann ∧ ¬Hyp ∧ Unbounded`)**: -/ theorem region3_hybrid_plane : IsMetricFn hybridDist ∧ ¬IsCAT0 hybridDist ∧ IsBusemann hybridDist ∧ ¬IsGromovHyp hybridDist ∧ IsUnbounded hybridDist := by let hline : ∀ p q : ℝ × ℝ, UnitGeo hybridDist p q := fun p q => { γ := fun t => ((1 - t) * p.1 + t * q.1, (1 - t) * p.2 + t * q.2) start := by ext <;> dsimp <;> ring stop := by ext <;> dsimp <;> ring isom := fun s t _ _ _ _ => by unfold hybridDist have h : (((1 - s) * p.1 + s * q.1) - ((1 - t) * p.1 + t * q.1), ((1 - s) * p.2 + s * q.2) - ((1 - t) * p.2 + t * q.2)) = (-(s - t) * (p.1 - q.1), -(s - t) * (p.2 - q.2)) := by ext <;> dsimp <;> ring rw [h, hybridNorm_smul, abs_neg] } have hbus : IsBusemann hybridDist := by refine ⟨fun p q => ⟨hline p q⟩, ?_⟩ intro x₁ y₁ x₂ y₂ g₁ g₂ lam h0 h1 rw [hybrid_geo_eq_line (fun t a b => g₁.dist_left a b) (fun t a b => g₁.dist_right a b) h0 h1, hybrid_geo_eq_line (fun t a b => g₂.dist_left a b) (fun t a b => g₂.dist_right a b) h0 h1] unfold hybridDist have hsplit : (((1 - lam) * x₁.1 + lam * y₁.1) - ((1 - lam) * x₂.1 + lam * y₂.1), ((1 - lam) * x₁.2 + lam * y₁.2) - ((1 - lam) * x₂.2 + lam * y₂.2)) = ((1 - lam) * (x₁.1 - x₂.1) + lam * (y₁.1 - y₂.1), (1 - lam) * (x₁.2 - x₂.2) + lam * (y₁.2 - y₂.2)) := by ext <;> dsimp <;> ring rw [hsplit] calc hybridNorm ((1 - lam) * (x₁.1 - x₂.1) + lam * (y₁.1 - y₂.1), (1 - lam) * (x₁.2 - x₂.2) + lam * (y₁.2 - y₂.2)) ≤ hybridNorm ((1 - lam) * (x₁.1 - x₂.1), (1 - lam) * (x₁.2 - x₂.2)) + hybridNorm (lam * (y₁.1 - y₂.1), lam * (y₁.2 - y₂.2)) := hybridNorm_add_le _ _ _ _ _ = |1 - lam| * hybridNorm (x₁.1 - x₂.1, x₁.2 - x₂.2) + |lam| * hybridNorm (y₁.1 - y₂.1, y₁.2 - y₂.2) := by rw [hybridNorm_smul, hybridNorm_smul] _ = (1 - lam) * hybridNorm (x₁.1 - x₂.1, x₁.2 - x₂.2) + lam * hybridNorm (y₁.1 - y₂.1, y₁.2 - y₂.2) := by rw [abs_of_nonneg (by linarith), abs_of_nonneg h0] have hnotCAT : ¬IsCAT0 hybridDist := by intro hcat have hcn := hcat.2 (0, 0) (1, 0) (0, 1) (hline (1, 0) (0, 1)) (1 / 2) (by norm_num) (by norm_num) have hv := hybrid_midpoint_cn_violation dsimp [hline] at hcn; linarith have hnotHyp : ¬IsGromovHyp hybridDist := by rintro ⟨δ, hδ, h4⟩ set R := 2 * δ + 2 have hR : 0 < R := by linarith have hsq := h4 (0, 0) (R, R) (R, 0) (0, R) have d0R : hybridDist (0, 0) (R, 0) = 2 * R := by unfold hybridDist hybridNorm euclidNorm simp [Real.sqrt_sq (le_of_lt hR), abs_of_pos hR]; ring have d0R' : hybridDist (0, 0) (0, R) = 2 * R := by unfold hybridDist hybridNorm euclidNorm simp [Real.sqrt_sq (le_of_lt hR), abs_of_pos hR]; ring have dRR1 : hybridDist (R, R) (0, R) = 2 * R := by unfold hybridDist hybridNorm euclidNorm simp [Real.sqrt_sq (le_of_lt hR), abs_of_pos hR]; ring have dRR2 : hybridDist (R, R) (R, 0) = 2 * R := by unfold hybridDist hybridNorm euclidNorm simp [Real.sqrt_sq (le_of_lt hR), abs_of_pos hR]; ring have ddiag1 : hybridDist (0, 0) (R, R) = (Real.sqrt 2 + 2) * R := by unfold hybridDist hybridNorm euclidNorm rw [show ((0 : ℝ) - R) ^ 2 + ((0 : ℝ) - R) ^ 2 = 2 * R ^ 2 by ring, Real.sqrt_mul (by norm_num), Real.sqrt_sq (le_of_lt hR), zero_sub, abs_neg, abs_of_pos hR]; ring have ddiag2 : hybridDist (R, 0) (0, R) = (Real.sqrt 2 + 2) * R := by unfold hybridDist hybridNorm euclidNorm rw [show (R - 0) ^ 2 + ((0 : ℝ) - R) ^ 2 = 2 * R ^ 2 by ring, Real.sqrt_mul (by norm_num), Real.sqrt_sq (le_of_lt hR), sub_zero, zero_sub, abs_neg, abs_of_pos hR]; ring rw [ddiag1, ddiag2, d0R, d0R', dRR1, dRR2, max_self] at hsq have hrt2 : 1 < Real.sqrt 2 := by have : (1 : ℝ) ^ 2 < Real.sqrt 2 ^ 2 := by rw [Real.sq_sqrt (by norm_num)]; norm_num nlinarith [Real.sqrt_nonneg 2] nlinarith refine ⟨hybridDist_isMetricFn, hnotCAT, hbus, hnotHyp, fun M => ⟨(0, max 0 M + 1), (0, 0), by unfold hybridDist hybridNorm euclidNorm have hpos : 0 < max 0 M + 1 := by linarith [le_max_left 0 M] simp only [sub_zero, zero_pow (by norm_num : 2 ≠ 0), zero_add, abs_zero, add_zero, Real.sqrt_sq (le_of_lt hpos), abs_of_pos hpos] linarith [le_max_right 0 M]⟩⟩ /-- **The Unbounded Hybrid Strip `HybridStrip := [0, 1] × ℝ` with `‖·‖_* = ‖·‖₂ + ‖·‖₁`**: Crucial non-trivial unbounded witness for Region 4 (`¬CAT(0) ∧ Busemann ∧ Gromov Hyp ∧ Unbounded`)! -/ def Strip : Type := { p : ℝ × ℝ // 0 ≤ p.1 ∧ p.1 ≤ 1 } noncomputable def hybridStripDist (p q : Strip) : ℝ := hybridDist p.1 q.1 lemma hybridStripDist_isMetricFn : IsMetricFn hybridStripDist where nonneg p q := hybridDist_isMetricFn.nonneg p.1 q.1 eq_zero_iff p q := by unfold hybridStripDist rw [hybridDist_isMetricFn.eq_zero_iff] exact ⟨Subtype.ext, congrArg Subtype.val⟩ symm p q := hybridDist_isMetricFn.symm p.1 q.1 triangle p q r := hybridDist_isMetricFn.triangle p.1 q.1 r.1 /-- **THEOREM (Region 4: Unbounded Hybrid Strip `¬CAT(0) ∧ Busemann ∧ Hyp ∧ Unbounded`)**: -/ theorem region4_hybrid_strip : IsMetricFn hybridStripDist ∧ ¬IsCAT0 hybridStripDist ∧ IsBusemann hybridStripDist ∧ IsGromovHyp hybridStripDist ∧ IsUnbounded hybridStripDist := by let hline : ∀ p q : Strip, UnitGeo hybridStripDist p q := fun p q => { γ := fun t => let s := max 0 (min 1 t) ⟨((1 - s) * p.1.1 + s * q.1.1, (1 - t) * p.1.2 + t * q.1.2), by have hs0 : 0 ≤ max 0 (min 1 t) := le_max_left _ _ have hs1 : max 0 (min 1 t) ≤ 1 := max_le (by norm_num) (min_le_left _ _) refine ⟨by nlinarith [p.2.1, q.2.1], by nlinarith [p.2.2, q.2.2]⟩⟩ start := by apply Subtype.ext; ext <;> dsimp <;> norm_num stop := by apply Subtype.ext; ext <;> dsimp <;> norm_num isom := fun s t hs0 hs1 ht0 ht1 => by unfold hybridStripDist hybridDist have hs_eq : max 0 (min 1 s) = s := by rw [min_eq_right hs1, max_eq_right hs0] have ht_eq : max 0 (min 1 t) = t := by rw [min_eq_right ht1, max_eq_right ht0] dsimp only rw [hs_eq, ht_eq] have h : (((1 - s) * p.1.1 + s * q.1.1) - ((1 - t) * p.1.1 + t * q.1.1), ((1 - s) * p.1.2 + s * q.1.2) - ((1 - t) * p.1.2 + t * q.1.2)) = (-(s - t) * (p.1.1 - q.1.1), -(s - t) * (p.1.2 - q.1.2)) := by ext <;> dsimp <;> ring rw [h, hybridNorm_smul, abs_neg] } have hbus : IsBusemann hybridStripDist := by refine ⟨fun p q => ⟨hline p q⟩, ?_⟩ intro x₁ y₁ x₂ y₂ g₁ g₂ lam h0 h1 have hg1 : (g₁.γ lam).1 = ((1 - lam) * x₁.1.1 + lam * y₁.1.1, (1 - lam) * x₁.1.2 + lam * y₁.1.2) := hybrid_geo_eq_line (γ := fun t => (g₁.γ t).1) (fun t a b => g₁.dist_left a b) (fun t a b => g₁.dist_right a b) h0 h1 have hg2 : (g₂.γ lam).1 = ((1 - lam) * x₂.1.1 + lam * y₂.1.1, (1 - lam) * x₂.1.2 + lam * y₂.1.2) := hybrid_geo_eq_line (γ := fun t => (g₂.γ t).1) (fun t a b => g₂.dist_left a b) (fun t a b => g₂.dist_right a b) h0 h1 unfold hybridStripDist hybridDist rw [hg1, hg2] have hsplit : (((1 - lam) * x₁.1.1 + lam * y₁.1.1) - ((1 - lam) * x₂.1.1 + lam * y₂.1.1), ((1 - lam) * x₁.1.2 + lam * y₁.1.2) - ((1 - lam) * x₂.1.2 + lam * y₂.1.2)) = ((1 - lam) * (x₁.1.1 - x₂.1.1) + lam * (y₁.1.1 - y₂.1.1), (1 - lam) * (x₁.1.2 - x₂.1.2) + lam * (y₁.1.2 - y₂.1.2)) := by ext <;> dsimp <;> ring rw [hsplit] calc hybridNorm ((1 - lam) * (x₁.1.1 - x₂.1.1) + lam * (y₁.1.1 - y₂.1.1), (1 - lam) * (x₁.1.2 - x₂.1.2) + lam * (y₁.1.2 - y₂.1.2)) ≤ hybridNorm ((1 - lam) * (x₁.1.1 - x₂.1.1), (1 - lam) * (x₁.1.2 - x₂.1.2)) + hybridNorm (lam * (y₁.1.1 - y₂.1.1), lam * (y₁.1.2 - y₂.1.2)) := hybridNorm_add_le _ _ _ _ _ = |1 - lam| * hybridNorm (x₁.1.1 - x₂.1.1, x₁.1.2 - x₂.1.2) + |lam| * hybridNorm (y₁.1.1 - y₂.1.1, y₁.1.2 - y₂.1.2) := by rw [hybridNorm_smul, hybridNorm_smul] _ = (1 - lam) * hybridNorm (x₁.1.1 - x₂.1.1, x₁.1.2 - x₂.1.2) + lam * hybridNorm (y₁.1.1 - y₂.1.1, y₁.1.2 - y₂.1.2) := by rw [abs_of_nonneg (by linarith), abs_of_nonneg h0] have hnotCAT : ¬IsCAT0 hybridStripDist := by intro hcat let x : Strip := ⟨(0, 0), by norm_num⟩ let y : Strip := ⟨(1, 0), by norm_num⟩ let z : Strip := ⟨(0, 1), by norm_num⟩ have hcn := hcat.2 x y z (hline y z) (1 / 2) (by norm_num) (by norm_num) have hm_eq : ((hline y z).γ (1 / 2)).1 = ((1 - 1 / 2) * (1 : ℝ) + (1 / 2) * 0, (1 - 1 / 2) * 0 + (1 / 2) * 1) := by dsimp [hline, y, z]; norm_num unfold hybridStripDist at hcn rw [hm_eq] at hcn have hv := hybrid_midpoint_cn_violation dsimp only [x, y, z] at hcn linarith have hHyp : IsGromovHyp hybridStripDist := by refine ⟨2, by norm_num, fourPointHyp_of_real_band (fun p : Strip => p.1.2) (c := 2) (K := 2) (by norm_num) ?_ ?_⟩ · intro p q unfold hybridStripDist hybridDist hybridNorm euclidNorm have hge : |p.1.2 - q.1.2| ≤ Real.sqrt ((p.1.1 - q.1.1) ^ 2 + (p.1.2 - q.1.2) ^ 2) := by rw [← Real.sqrt_sq_eq_abs] exact Real.sqrt_le_sqrt (by nlinarith [sq_nonneg (p.1.1 - q.1.1)]) linarith [abs_nonneg (p.1.1 - q.1.1)] · intro p q unfold hybridStripDist hybridDist hybridNorm euclidNorm have hle : Real.sqrt ((p.1.1 - q.1.1) ^ 2 + (p.1.2 - q.1.2) ^ 2) ≤ |p.1.1 - q.1.1| + |p.1.2 - q.1.2| := by have hsq : Real.sqrt ((p.1.1 - q.1.1) ^ 2 + (p.1.2 - q.1.2) ^ 2) ^ 2 ≤ (|p.1.1 - q.1.1| + |p.1.2 - q.1.2|) ^ 2 := by rw [Real.sq_sqrt (by positivity)] nlinarith [sq_abs (p.1.1 - q.1.1), sq_abs (p.1.2 - q.1.2), abs_nonneg (p.1.1 - q.1.1), abs_nonneg (p.1.2 - q.1.2)] nlinarith [Real.sqrt_nonneg ((p.1.1 - q.1.1) ^ 2 + (p.1.2 - q.1.2) ^ 2), abs_nonneg (p.1.1 - q.1.1), abs_nonneg (p.1.2 - q.1.2)] have hx1 : |p.1.1 - q.1.1| ≤ 1 := by rw [abs_le]; constructor <;> linarith [p.2.1, p.2.2, q.2.1, q.2.2] linarith refine ⟨hybridStripDist_isMetricFn, hnotCAT, hbus, hHyp, fun M => ⟨⟨(0, max 0 M + 1), by norm_num⟩, ⟨(0, 0), by norm_num⟩, by unfold hybridStripDist hybridDist hybridNorm euclidNorm have hpos : 0 < max 0 M + 1 := by linarith [le_max_left 0 M] simp only [sub_zero, zero_pow (by norm_num : 2 ≠ 0), zero_add, abs_zero, add_zero, Real.sqrt_sq (le_of_lt hpos), abs_of_pos hpos] linarith [le_max_right 0 M]⟩⟩ /-! ## Section 5: Manhattan (`ℓ₁`) Strip & Plane — Regions 5 & 6 (`¬CAT(0) ∧ ¬Busemann`) -/ def l1Dist (p q : ℝ × ℝ) : ℝ := |p.1 - q.1| + |p.2 - q.2| lemma l1Dist_isMetricFn : IsMetricFn l1Dist where nonneg p q := add_nonneg (abs_nonneg _) (abs_nonneg _) eq_zero_iff p q := by unfold l1Dist constructor · intro h have h1 : |p.1 - q.1| = 0 := by linarith [abs_nonneg (p.1 - q.1), abs_nonneg (p.2 - q.2)] have h2 : |p.2 - q.2| = 0 := by linarith [abs_nonneg (p.1 - q.1), abs_nonneg (p.2 - q.2)] ext <;> linarith [abs_eq_zero.mp h1, abs_eq_zero.mp h2] · rintro rfl; simp symm p q := by simp [l1Dist, abs_sub_comm] triangle p q r := by unfold l1Dist have h1 : |p.1 - r.1| ≤ |p.1 - q.1| + |q.1 - r.1| := by have : p.1 - r.1 = (p.1 - q.1) + (q.1 - r.1) := by ring rw [this]; exact abs_add_le _ _ have h2 : |p.2 - r.2| ≤ |p.2 - q.2| + |q.2 - r.2| := by have : p.2 - r.2 = (p.2 - q.2) + (q.2 - r.2) := by ring rw [this]; exact abs_add_le _ _ linarith def l1StripDist (p q : Strip) : ℝ := l1Dist p.1 q.1 lemma l1StripDist_isMetricFn : IsMetricFn l1StripDist where nonneg p q := l1Dist_isMetricFn.nonneg p.1 q.1 eq_zero_iff p q := by unfold l1StripDist rw [l1Dist_isMetricFn.eq_zero_iff] exact ⟨Subtype.ext, congrArg Subtype.val⟩ symm p q := l1Dist_isMetricFn.symm p.1 q.1 triangle p q r := l1Dist_isMetricFn.triangle p.1 q.1 r.1 /-- Two distinct `ℓ₁` geodesics from `(0, 0)` to `(1, 1)` inside `[0, 1] × ℝ`, refuting geodesic uniqueness (hence refuting BOTH Busemann convexity and `CAT(0)`!). -/ private noncomputable def l1CornerGeo : UnitGeo l1StripDist ⟨(0, 0), by norm_num⟩ ⟨(1, 1), by norm_num⟩ where γ t := if t ≤ 1 / 2 then ⟨(max 0 (min 1 (2 * t)), 0), by exact ⟨le_max_left _ _, max_le (by norm_num) (min_le_left _ _)⟩⟩ else ⟨(1, 2 * t - 1), by norm_num⟩ start := by apply Subtype.ext; simp only [show (0 : ℝ) ≤ 1 / 2 by norm_num, ↓reduceIte]; norm_num stop := by apply Subtype.ext; simp only [show ¬((1 : ℝ) ≤ 1 / 2) by norm_num, ↓reduceIte]; norm_num isom s t hs0 hs1 ht0 ht1 := by have hd : l1StripDist ⟨(0, 0), by norm_num⟩ ⟨(1, 1), by norm_num⟩ = 2 := by norm_num [l1StripDist, l1Dist] rw [hd] unfold l1StripDist l1Dist by_cases hs : s ≤ 1 / 2 <;> by_cases ht : t ≤ 1 / 2 <;> simp only [hs, ht, ↓reduceIte] · rw [min_eq_right (by linarith : 2 * s ≤ 1), max_eq_right (by linarith : 0 ≤ 2 * s), min_eq_right (by linarith : 2 * t ≤ 1), max_eq_right (by linarith : 0 ≤ 2 * t), sub_self, abs_zero, add_zero, show 2 * s - 2 * t = (s - t) * 2 by ring, abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 2)] · rw [min_eq_right (by linarith : 2 * s ≤ 1), max_eq_right (by linarith : 0 ≤ 2 * s), abs_of_nonpos (by linarith : 2 * s - 1 ≤ 0), abs_of_nonpos (by linarith : 0 - (2 * t - 1) ≤ 0), abs_of_neg (by linarith : s - t < 0)]; ring · rw [min_eq_right (by linarith : 2 * t ≤ 1), max_eq_right (by linarith : 0 ≤ 2 * t), abs_of_nonneg (by linarith : 0 ≤ 1 - 2 * t), abs_of_pos (by linarith : 0 < 2 * s - 1 - 0), abs_of_pos (by linarith : 0 < s - t)]; ring · rw [sub_self, abs_zero, zero_add, show 2 * s - 1 - (2 * t - 1) = (s - t) * 2 by ring, abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 2)] private noncomputable def l1DiagGeo : UnitGeo l1StripDist ⟨(0, 0), by norm_num⟩ ⟨(1, 1), by norm_num⟩ where γ t := ⟨(max 0 (min 1 t), t), ⟨le_max_left _ _, max_le (by norm_num) (min_le_left _ _)⟩⟩ start := by apply Subtype.ext; norm_num stop := by apply Subtype.ext; norm_num isom s t hs0 hs1 ht0 ht1 := by have hd : l1StripDist ⟨(0, 0), by norm_num⟩ ⟨(1, 1), by norm_num⟩ = 2 := by norm_num [l1StripDist, l1Dist] rw [hd]; unfold l1StripDist l1Dist dsimp only rw [min_eq_right hs1, max_eq_right hs0, min_eq_right ht1, max_eq_right ht0]; ring /-- **THEOREM (Region 5: Unbounded `ℓ₁` Strip `¬CAT(0) ∧ ¬Busemann ∧ Hyp ∧ Unbounded`)**: -/ theorem region5_l1_strip : IsMetricFn l1StripDist ∧ ¬IsCAT0 l1StripDist ∧ ¬IsBusemann l1StripDist ∧ IsGromovHyp l1StripDist ∧ IsUnbounded l1StripDist := by have hnotBus : ¬IsBusemann l1StripDist := by intro hbus have heq := busemann_unique_geo l1StripDist_isMetricFn hbus l1DiagGeo l1CornerGeo (t := 1 / 2) (by norm_num) (by norm_num) have hval := congrArg (fun p : Strip => p.1.1) heq simp only [l1DiagGeo, l1CornerGeo, show (1 / 2 : ℝ) ≤ 1 / 2 by norm_num, ↓reduceIte] at hval norm_num at hval have hnotCAT : ¬IsCAT0 l1StripDist := fun h => hnotBus (cat0_implies_busemann l1StripDist_isMetricFn h) have hHyp : IsGromovHyp l1StripDist := by refine ⟨1, by norm_num, fourPointHyp_of_real_band (fun p : Strip => p.1.2) (c := 1) (K := 1) (by norm_num) ?_ ?_⟩ · intro p q; unfold l1StripDist l1Dist; linarith [abs_nonneg (p.1.1 - q.1.1)] · intro p q; unfold l1StripDist l1Dist have hx : |p.1.1 - q.1.1| ≤ 1 := by rw [abs_le]; constructor <;> linarith [p.2.1, p.2.2, q.2.1, q.2.2] linarith refine ⟨l1StripDist_isMetricFn, hnotCAT, hnotBus, hHyp, fun M => ⟨⟨(0, max 0 M + 1), by norm_num⟩, ⟨(0, 0), by norm_num⟩, by unfold l1StripDist l1Dist have hpos : 0 < max 0 M + 1 := by linarith [le_max_left 0 M] simp only [sub_zero, sub_self, abs_zero, zero_add, abs_of_pos hpos] linarith [le_max_right 0 M]⟩⟩ /-- **THEOREM (Region 6: `ℓ₁` Plane `¬CAT(0) ∧ ¬Busemann ∧ ¬Hyp ∧ Unbounded`)**: -/ theorem region6_l1_plane : IsMetricFn l1Dist ∧ ¬IsCAT0 l1Dist ∧ ¬IsBusemann l1Dist ∧ ¬IsGromovHyp l1Dist ∧ IsUnbounded l1Dist := by let g1 : UnitGeo l1Dist (0, 0) (1, 1) := { γ := fun t => (l1DiagGeo.γ t).1 start := congrArg Subtype.val l1DiagGeo.start stop := congrArg Subtype.val l1DiagGeo.stop isom := l1DiagGeo.isom } let g2 : UnitGeo l1Dist (0, 0) (1, 1) := { γ := fun t => (l1CornerGeo.γ t).1 start := congrArg Subtype.val l1CornerGeo.start stop := congrArg Subtype.val l1CornerGeo.stop isom := l1CornerGeo.isom } have hnotBus : ¬IsBusemann l1Dist := by intro hbus have heq := busemann_unique_geo l1Dist_isMetricFn hbus g1 g2 (t := 1 / 2) (by norm_num) (by norm_num) have hval := congrArg Prod.fst heq simp only [g1, g2, l1DiagGeo, l1CornerGeo, show (1 / 2 : ℝ) ≤ 1 / 2 by norm_num, ↓reduceIte] at hval norm_num at hval have hnotCAT : ¬IsCAT0 l1Dist := fun h => hnotBus (cat0_implies_busemann l1Dist_isMetricFn h) have hnotHyp : ¬IsGromovHyp l1Dist := by rintro ⟨δ, hδ, h4⟩ set R := δ + 1 have hR : 0 < R := by linarith have hsq := h4 (0, 0) (R, R) (R, 0) (0, R) simp only [l1Dist, sub_zero, zero_sub, abs_neg, abs_zero, sub_self, abs_of_pos hR, add_zero, zero_add, max_self] at hsq linarith refine ⟨l1Dist_isMetricFn, hnotCAT, hnotBus, hnotHyp, fun M => ⟨(max 0 M + 1, 0), (0, 0), by unfold l1Dist have hpos : 0 < max 0 M + 1 := by linarith [le_max_left 0 M] simp only [sub_zero, sub_self, abs_zero, add_zero, abs_of_pos hpos] linarith [le_max_right 0 M]⟩⟩ /-! ## Section 6: Master 6-Region Unbounded Venn Classification Theorem -/ /-- **THEOREM (Complete 6-Region Unbounded Curvature Venn Classification)**: 1. Every `CAT(0)` metric space is Busemann convex (the 2 cells `CAT(0) ∧ ¬Busemann` are empty). 2. All 6 remaining cells of `{CAT(0), Busemann, Gromov δ-hyperbolic}` are inhabited by explicit, **unbounded** geodesic metric spaces: `(ℝ, |·|)`, `(ℝ², ‖·‖₂)`, `(ℝ², ‖·‖_*)`, `([0,1]×ℝ, ‖·‖_*)`, `([0,1]×ℝ, ‖·‖₁)`, `(ℝ², ‖·‖₁)`. -/ theorem curvature_venn_six_regions : (∀ (α : Type) (d : α → α → ℝ), IsMetricFn d → IsCAT0 d → IsBusemann d) ∧ (∃ (α : Type) (d : α → α → ℝ), IsMetricFn d ∧ IsCAT0 d ∧ IsBusemann d ∧ IsGromovHyp d ∧ IsUnbounded d) ∧ (∃ (α : Type) (d : α → α → ℝ), IsMetricFn d ∧ IsCAT0 d ∧ IsBusemann d ∧ ¬IsGromovHyp d ∧ IsUnbounded d) ∧ (∃ (α : Type) (d : α → α → ℝ), IsMetricFn d ∧ ¬IsCAT0 d ∧ IsBusemann d ∧ ¬IsGromovHyp d ∧ IsUnbounded d) ∧ (∃ (α : Type) (d : α → α → ℝ), IsMetricFn d ∧ ¬IsCAT0 d ∧ IsBusemann d ∧ IsGromovHyp d ∧ IsUnbounded d) ∧ (∃ (α : Type) (d : α → α → ℝ), IsMetricFn d ∧ ¬IsCAT0 d ∧ ¬IsBusemann d ∧ IsGromovHyp d ∧ IsUnbounded d) ∧ (∃ (α : Type) (d : α → α → ℝ), IsMetricFn d ∧ ¬IsCAT0 d ∧ ¬IsBusemann d ∧ ¬IsGromovHyp d ∧ IsUnbounded d) := ⟨fun _ _ hd hc => cat0_implies_busemann hd hc, ⟨ℝ, realDist, region1_real_line⟩, ⟨ℝ × ℝ, euclid2Dist, region2_euclid_plane⟩, ⟨ℝ × ℝ, hybridDist, region3_hybrid_plane⟩, ⟨Strip, hybridStripDist, region4_hybrid_strip⟩, ⟨Strip, l1StripDist, region5_l1_strip⟩, ⟨ℝ × ℝ, l1Dist, region6_l1_plane⟩⟩ /-! ## Axiom Verification -/ #print axioms cat0_implies_busemann #print axioms euclidNorm_strict_collinear #print axioms hybridNorm_strict_collinear #print axioms region1_real_line #print axioms region2_euclid_plane #print axioms region3_hybrid_plane #print axioms region4_hybrid_strip #print axioms region5_l1_strip #print axioms region6_l1_plane #print axioms curvature_venn_six_regions end CurvatureVennSeparation