Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.RicciFlow.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.DistanceDistortion |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.SourceSegments |
| 4 | |
| 5 | /-! |
| 6 | # Opposite minimizing segments across a bounded time buffer |
| 7 | |
| 8 | An additive bound on the two endpoint lengths preserves comparison cosines |
| 9 | tending to minus one. Applied to the actual distance comparison, this |
| 10 | constructs long minimizing segments in the earlier source metric from |
| 11 | terminal segments inside a controlled terminal ball. |
| 12 | |
| 13 | This is the time-buffer step between the spatial selection of Kleiner--Lott |
| 14 | (corrected 2013), Proposition 41.13, p. 2678, and the line construction in |
| 15 | Appendix G, p. 2852. Intrinsic triangle comparison at the earlier slice is |
| 16 | still required to produce two-sided arcs and a limit line. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 24 | |
| 25 | namespace Poincare.AncientVolume.Splitting |
| 26 | |
| 27 | private theorem comparison_cosine_additive_bounds |
| 28 | {a b c A B D C : ℝ} (ha : 0 < a) (hb : 0 < b) (hc : 0 ≤ c) |
| 29 | (hC : 0 ≤ C) (htriangle : c ≤ a + b) |
| 30 | (hA : a ≤ A ∧ A ≤ a + C) (hB : b ≤ B ∧ B ≤ b + C) |
| 31 | (hcD : c ≤ D) (htriangle' : D ≤ A + B) : |
| 32 | 0 ≤ (A ^ 2 + B ^ 2 - D ^ 2) / (2 * A * B) + 1 ∧ |
| 33 | (A ^ 2 + B ^ 2 - D ^ 2) / (2 * A * B) + 1 ≤ |
| 34 | (a ^ 2 + b ^ 2 - c ^ 2) / (2 * a * b) + 1 + |
| 35 | 2 * C / a + 2 * C / b + (2 * C ^ 2 / a) / b := by |
| 36 | have hAp : 0 < A := ha.trans_le hA.1 |
| 37 | have hBp : 0 < B := hb.trans_le hB.1 |
| 38 | have hD : 0 ≤ D := hc.trans hcD |
| 39 | have hden : 0 < 2 * a * b := by positivity |
| 40 | have hden' : 0 < 2 * A * B := by positivity |
| 41 | have hdenle : 2 * a * b ≤ 2 * A * B := by |
| 42 | nlinarith [mul_le_mul hA.1 hB.1 hb.le hAp.le] |
| 43 | have hold : 0 ≤ (a + b) ^ 2 - c ^ 2 := |
| 44 | sub_nonneg.mpr (pow_le_pow_left₀ hc htriangle 2) |
| 45 | have hnew : 0 ≤ (A + B) ^ 2 - D ^ 2 := |
| 46 | sub_nonneg.mpr (pow_le_pow_left₀ hD htriangle' 2) |
| 47 | have hnum : (A + B) ^ 2 - D ^ 2 ≤ |
| 48 | (a + b) ^ 2 - c ^ 2 + 4 * C * (a + b) + 4 * C ^ 2 := by |
| 49 | have hsum : A + B ≤ a + b + 2 * C := by linarith [hA.2, hB.2] |
| 50 | have hsum2 := pow_le_pow_left₀ (by positivity : 0 ≤ A + B) hsum 2 |
| 51 | have hc2 := pow_le_pow_left₀ hc hcD 2 |
| 52 | nlinarith |
| 53 | have holdplus : 0 ≤ (a + b) ^ 2 - c ^ 2 + 4 * C * (a + b) + 4 * C ^ 2 := by |
| 54 | positivity |
| 55 | have hidentity (a b c : ℝ) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 56 | (a ^ 2 + b ^ 2 - c ^ 2) / (2 * a * b) + 1 = |
| 57 | ((a + b) ^ 2 - c ^ 2) / (2 * a * b) := by |
| 58 | field_simp |
| 59 | ring |
| 60 | rw [hidentity A B D hAp.ne' hBp.ne'] |
| 61 | refine ⟨div_nonneg hnew hden'.le, ?_⟩ |
| 62 | calc |
| 63 | _ ≤ ((a + b) ^ 2 - c ^ 2 + 4 * C * (a + b) + 4 * C ^ 2) / (2 * A * B) := |
| 64 | div_le_div_of_nonneg_right hnum hden'.le |
| 65 | _ ≤ ((a + b) ^ 2 - c ^ 2 + 4 * C * (a + b) + 4 * C ^ 2) / (2 * a * b) := |
| 66 | div_le_div_of_nonneg_left holdplus hden hdenle |
| 67 | _ = _ := by field_simp; ring |
| 68 | |
| 69 | /-- Bounded additive changes of diverging positive side lengths preserve |
| 70 | an endpoint comparison cosine tending to minus one, provided the opposite |
| 71 | side does not shrink and the new lengths obey the triangle inequality. -/ |
| 72 | theorem tendsto_comparison_cosine_of_additive_bounds |
| 73 | {a b c A B D : ℕ → ℝ} {C : ℝ} (hC : 0 ≤ C) |
| 74 | (ha : ∀ i, 0 < a i) (hb : ∀ i, 0 < b i) (hc : ∀ i, 0 ≤ c i) |
| 75 | (htriangle : ∀ i, c i ≤ a i + b i) |
| 76 | (haTop : Tendsto a atTop atTop) (hbTop : Tendsto b atTop atTop) |
| 77 | (hcos : Tendsto (fun i => (a i ^ 2 + b i ^ 2 - c i ^ 2) / (2 * a i * b i)) |
| 78 | atTop (𝓝 (-1))) |
| 79 | (hA : ∀ i, a i ≤ A i ∧ A i ≤ a i + C) |
| 80 | (hB : ∀ i, b i ≤ B i ∧ B i ≤ b i + C) |
| 81 | (hD : ∀ i, c i ≤ D i) (htriangle' : ∀ i, D i ≤ A i + B i) : |
| 82 | Tendsto (fun i => (A i ^ 2 + B i ^ 2 - D i ^ 2) / (2 * A i * B i)) |
| 83 | atTop (𝓝 (-1)) := by |
| 84 | have hzero : Tendsto |
| 85 | (fun i => (a i ^ 2 + b i ^ 2 - c i ^ 2) / (2 * a i * b i) + 1) atTop (𝓝 0) := by |
| 86 | simpa only [neg_add_cancel] using hcos.add_const 1 |
| 87 | have he1 : Tendsto (fun i => 2 * C / a i) atTop (𝓝 0) := |
| 88 | tendsto_const_nhds.div_atTop haTop |
| 89 | have he2 : Tendsto (fun i => 2 * C / b i) atTop (𝓝 0) := |
| 90 | tendsto_const_nhds.div_atTop hbTop |
| 91 | have he3 : Tendsto (fun i => (2 * C ^ 2 / a i) / b i) atTop (𝓝 0) := |
| 92 | (tendsto_const_nhds.div_atTop haTop).div_atTop hbTop |
| 93 | have hu : Tendsto (fun i => |
| 94 | (a i ^ 2 + b i ^ 2 - c i ^ 2) / (2 * a i * b i) + 1 + |
| 95 | 2 * C / a i + 2 * C / b i + (2 * C ^ 2 / a i) / b i) atTop (𝓝 0) := by |
| 96 | simpa only [add_zero] using ((hzero.add he1).add he2).add he3 |
| 97 | have hbound (i : ℕ) := comparison_cosine_additive_bounds (ha i) (hb i) (hc i) hC |
| 98 | (htriangle i) (hA i) (hB i) (hD i) (htriangle' i) |
| 99 | have hnew : Tendsto |
| 100 | (fun i => (A i ^ 2 + B i ^ 2 - D i ^ 2) / (2 * A i * B i) + 1) atTop (𝓝 0) := |
| 101 | tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hu |
| 102 | (fun i => (hbound i).1) (fun i => (hbound i).2) |
| 103 | simpa only [add_sub_cancel_right, zero_sub] using hnew.sub_const 1 |
| 104 | |
| 105 | end Poincare.AncientVolume.Splitting |
| 106 | |
| 107 | universe u |
| 108 | |
| 109 | namespace PoincareMT.RicciFlow |
| 110 | |
| 111 | private theorem toReal_edist_le_of_ricci_nonneg |
| 112 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] [PreconnectedSpace M] |
| 113 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 114 | {J : Set ℝ} (F : RicciFlow n M J) {a b : ℝ} |
| 115 | (hab : a ≤ b) (hJ : Icc a b ⊆ interior J) |
| 116 | (hRic : ∀ t ∈ Icc a b, ∀ x : M, ∀ v : TangentSpace (𝓡 n) x, |
| 117 | 0 ≤ (F.connection t).ricci x v v) (p x : M) : |
| 118 | ((F.metric b).edist p x).toReal ≤ ((F.metric a).edist p x).toReal := by |
| 119 | apply le_of_forall_gt_imp_ge_of_dense |
| 120 | intro r hr |
| 121 | have hx : x ∈ (F.metric a).ball p r := |
| 122 | (ENNReal.lt_ofReal_iff_toReal_lt ((F.metric a).edist_ne_top p x)).mpr hr |
| 123 | have hx' := F.ball_subset_ball_of_ricci_nonneg hJ p r |
| 124 | ⟨le_rfl, hab⟩ ⟨hab, le_rfl⟩ hab (fun t ht y _ v => hRic t ht y v) hx |
| 125 | exact ((ENNReal.lt_ofReal_iff_toReal_lt ((F.metric b).edist_ne_top p x)).mp hx').le |
| 126 | |
| 127 | private theorem endpoint_distance_triangle |
| 128 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] [PreconnectedSpace M] |
| 129 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 130 | (g : RiemannianMetric n M) (q x y : M) : |
| 131 | (g.edist x y).toReal ≤ (g.edist q x).toReal + (g.edist q y).toReal := by |
| 132 | let := g.toMetricSpace |
| 133 | change dist x y ≤ dist q x + dist q y |
| 134 | simpa only [dist_comm x q] using dist_triangle x q y |
| 135 | |
| 136 | /-- Terminal opposite segments inside controlled balls construct actual |
| 137 | opposite minimizing segments at the earlier buffered time. Their endpoint |
| 138 | lengths diverge and their comparison cosines still tend to minus one. -/ |
| 139 | theorem exists_buffered_opposite_minimizing_segments_intrinsic |
| 140 | {m : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 141 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] [IsManifold (𝓡 (m + 1)) ∞ M] |
| 142 | (hm : 0 < m) |
| 143 | (J : ℕ → Set ℝ) (F : ∀ i, RicciFlow (m + 1) M (J i)) |
| 144 | {δ Λ scale : ℝ} (hδ : 0 < δ) (hΛ : 0 ≤ Λ) (hscale : 0 < scale) |
| 145 | (hJ : ∀ i, Icc (-δ) 0 ⊆ interior (J i)) |
| 146 | (hcomplete : ∀ i t, t ∈ Icc (-δ) 0 → MetricComplete ((F i).metric t)) |
| 147 | (hRic : ∀ i t, t ∈ Icc (-δ) 0 → ∀ x : M, ∀ v : TangentSpace (𝓡 (m + 1)) x, |
| 148 | 0 ≤ ((F i).connection t).ricci x v v) |
| 149 | (q : ℕ → M) (r L : ℕ → ℝ) (hr : ∀ i, 0 < r i) |
| 150 | (hmargin : ∀ i, 4 * Real.exp (Λ * δ) * r i ≤ L i) |
| 151 | (hupper : ∀ i t, t ∈ Icc (-δ) 0 → ∀ z ∈ ((F i).metric 0).ball (q i) (L i), |
| 152 | ∀ v : TangentSpace (𝓡 (m + 1)) z, |
| 153 | ((F i).connection t).ricci z v v ≤ Λ * ((F i).metric t).inner z v v) |
| 154 | (minus plus : ℕ → ℝ → M) (a b : ℕ → ℝ) |
| 155 | (ha : ∀ i, 0 < a i) (hb : ∀ i, 0 < b i) |
| 156 | (hminus0 : ∀ i, minus i 0 = q i) (hplus0 : ∀ i, plus i 0 = q i) |
| 157 | (hminus : ∀ i, ∀ s ∈ Icc (0 : ℝ) (a i), ∀ t ∈ Icc (0 : ℝ) (a i), |
| 158 | (((F i).metric 0).edist (minus i s) (minus i t)).toReal = |s - t|) |
| 159 | (hplus : ∀ i, ∀ s ∈ Icc (0 : ℝ) (b i), ∀ t ∈ Icc (0 : ℝ) (b i), |
| 160 | (((F i).metric 0).edist (plus i s) (plus i t)).toReal = |s - t|) |
| 161 | (hx : ∀ i, minus i (a i) ∈ ((F i).metric 0).ball (q i) (r i)) |
| 162 | (hy : ∀ i, plus i (b i) ∈ ((F i).metric 0).ball (q i) (r i)) |
| 163 | (haTop : Tendsto a atTop atTop) (hbTop : Tendsto b atTop atTop) |
| 164 | (hcos : Tendsto (fun i => |
| 165 | (a i ^ 2 + b i ^ 2 - |
| 166 | (((F i).metric 0).edist (minus i (a i)) (plus i (b i))).toReal ^ 2) / |
| 167 | (2 * a i * b i)) atTop (𝓝 (-1))) : |
| 168 | let A := fun i => (((F i).metric (-δ)).edist (q i) (minus i (a i))).toReal |
| 169 | let B := fun i => (((F i).metric (-δ)).edist (q i) (plus i (b i))).toReal |
| 170 | let error := (4 * (((m + 1 : ℕ) : ℝ)) * scale + 8 * Λ / scale) * δ |
| 171 | (∀ i, 0 < A i ∧ 0 < B i ∧ a i ≤ A i ∧ A i ≤ a i + error ∧ |
| 172 | b i ≤ B i ∧ B i ≤ b i + error) ∧ |
| 173 | Tendsto A atTop atTop ∧ Tendsto B atTop atTop ∧ |
| 174 | Tendsto (fun i => |
| 175 | (A i ^ 2 + B i ^ 2 - |
| 176 | (((F i).metric (-δ)).edist (minus i (a i)) (plus i (b i))).toReal ^ 2) / |
| 177 | (2 * A i * B i)) atTop (𝓝 (-1)) ∧ |
| 178 | ∃ earlierMinus earlierPlus : ℕ → ℝ → M, |
| 179 | (∀ i, earlierMinus i 0 = q i ∧ earlierMinus i (A i) = minus i (a i) ∧ |
| 180 | earlierPlus i 0 = q i ∧ earlierPlus i (B i) = plus i (b i)) ∧ |
| 181 | (∀ i, ∀ s ∈ Icc (0 : ℝ) (A i), ∀ t ∈ Icc (0 : ℝ) (A i), |
| 182 | (((F i).metric (-δ)).edist (earlierMinus i s) (earlierMinus i t)).toReal = |s - t|) ∧ |
| 183 | (∀ i, ∀ s ∈ Icc (0 : ℝ) (B i), ∀ t ∈ Icc (0 : ℝ) (B i), |
| 184 | (((F i).metric (-δ)).edist (earlierPlus i s) (earlierPlus i t)).toReal = |s - t|) := by |
| 185 | let A := fun i => (((F i).metric (-δ)).edist (q i) (minus i (a i))).toReal |
| 186 | let B := fun i => (((F i).metric (-δ)).edist (q i) (plus i (b i))).toReal |
| 187 | let error := (4 * (((m + 1 : ℕ) : ℝ)) * scale + 8 * Λ / scale) * δ |
| 188 | have herror : 0 ≤ error := by dsimp [error]; positivity |
| 189 | have haminus (i : ℕ) : (((F i).metric 0).edist (q i) (minus i (a i))).toReal = a i := by |
| 190 | rw [← hminus0 i, hminus i 0 ⟨le_rfl, (ha i).le⟩ (a i) ⟨(ha i).le, le_rfl⟩, |
| 191 | zero_sub, abs_neg, abs_of_pos (ha i)] |
| 192 | have hbplus (i : ℕ) : (((F i).metric 0).edist (q i) (plus i (b i))).toReal = b i := by |
| 193 | rw [← hplus0 i, hplus i 0 ⟨le_rfl, (hb i).le⟩ (b i) ⟨(hb i).le, le_rfl⟩, |
| 194 | zero_sub, abs_neg, abs_of_pos (hb i)] |
| 195 | have hmonotone (i : ℕ) (x y : M) : |
| 196 | (((F i).metric 0).edist x y).toReal ≤ (((F i).metric (-δ)).edist x y).toReal := |
| 197 | (F i).toReal_edist_le_of_ricci_nonneg (neg_nonpos.mpr hδ.le) (hJ i) (hRic i) x y |
| 198 | have hadd (i : ℕ) (x y : M) |
| 199 | (hx' : x ∈ ((F i).metric 0).ball (q i) (r i)) |
| 200 | (hy' : y ∈ ((F i).metric 0).ball (q i) (r i)) : |
| 201 | (((F i).metric (-δ)).edist x y).toReal ≤ |
| 202 | (((F i).metric 0).edist x y).toReal + error := by |
| 203 | simpa only [sub_neg_eq_add, zero_add] using |
| 204 | (F i).toReal_edist_le_add_of_ricci_upper_on_terminal_ball_intrinsic hm |
| 205 | (neg_nonpos.mpr hδ.le) (hJ i) (hcomplete i) (hRic i) hΛ hscale (hr i) |
| 206 | (by simpa only [sub_neg_eq_add, zero_add] using hmargin i) |
| 207 | (q i) (hupper i) x y hx' hy' |
| 208 | have hqball (i : ℕ) : q i ∈ ((F i).metric 0).ball (q i) (r i) := by |
| 209 | simpa only [RiemannianMetric.ball, mem_ofPred_eq, RiemannianMetric.edist, |
| 210 | Manifold.riemannianEDist_self] using ENNReal.ofReal_pos.mpr (hr i) |
| 211 | have hA (i : ℕ) : a i ≤ A i ∧ A i ≤ a i + error := by |
| 212 | constructor |
| 213 | · simpa only [haminus] using hmonotone i (q i) (minus i (a i)) |
| 214 | · simpa only [haminus] using hadd i (q i) (minus i (a i)) (hqball i) (hx i) |
| 215 | have hB (i : ℕ) : b i ≤ B i ∧ B i ≤ b i + error := by |
| 216 | constructor |
| 217 | · simpa only [hbplus] using hmonotone i (q i) (plus i (b i)) |
| 218 | · simpa only [hbplus] using hadd i (q i) (plus i (b i)) (hqball i) (hy i) |
| 219 | have hAp (i : ℕ) : 0 < A i := (ha i).trans_le (hA i).1 |
| 220 | have hBp (i : ℕ) : 0 < B i := (hb i).trans_le (hB i).1 |
| 221 | have htriangle (i : ℕ) : |
| 222 | (((F i).metric 0).edist (minus i (a i)) (plus i (b i))).toReal ≤ a i + b i := by |
| 223 | simpa only [haminus, hbplus] using |
| 224 | endpoint_distance_triangle ((F i).metric 0) (q i) (minus i (a i)) (plus i (b i)) |
| 225 | have hnewcos := Poincare.AncientVolume.Splitting.tendsto_comparison_cosine_of_additive_bounds |
| 226 | herror ha hb (fun _ => ENNReal.toReal_nonneg) htriangle haTop hbTop hcos hA hB |
| 227 | (fun i => hmonotone i (minus i (a i)) (plus i (b i))) |
| 228 | (fun i => endpoint_distance_triangle ((F i).metric (-δ)) (q i) |
| 229 | (minus i (a i)) (plus i (b i))) |
| 230 | choose earlierMinus hm0 hmend hmmin using fun i => |
| 231 | ((F i).metric (-δ)).exists_unit_speed_minimizing_segment_of_metricComplete |
| 232 | (hcomplete i (-δ) ⟨le_rfl, neg_nonpos.mpr hδ.le⟩) (q i) (minus i (a i)) (hAp i) |
| 233 | choose earlierPlus hp0 hpend hpmin using fun i => |
| 234 | ((F i).metric (-δ)).exists_unit_speed_minimizing_segment_of_metricComplete |
| 235 | (hcomplete i (-δ) ⟨le_rfl, neg_nonpos.mpr hδ.le⟩) (q i) (plus i (b i)) (hBp i) |
| 236 | exact ⟨(fun i => ⟨hAp i, hBp i, (hA i).1, (hA i).2, hB i⟩), |
| 237 | tendsto_atTop_mono (fun i => (hA i).1) haTop, |
| 238 | tendsto_atTop_mono (fun i => (hB i).1) hbTop, hnewcos, |
| 239 | earlierMinus, earlierPlus, (fun i => ⟨hm0 i, hmend i, hp0 i, hpend i⟩), hmmin, hpmin⟩ |
| 240 | |
| 241 | /-- Compatibility form of the intrinsic buffered segment construction. -/ |
| 242 | theorem exists_buffered_opposite_minimizing_segments |
| 243 | {m : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 244 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] [IsManifold (𝓡 (m + 1)) ∞ M] |
| 245 | (hC : RicciFlowCurvatureCalculus.{u}) (hm : 0 < m) |
| 246 | (J : ℕ → Set ℝ) (F : ∀ i, RicciFlow (m + 1) M (J i)) |
| 247 | {δ Λ scale : ℝ} (hδ : 0 < δ) (hΛ : 0 ≤ Λ) (hscale : 0 < scale) |
| 248 | (hJ : ∀ i, Icc (-δ) 0 ⊆ interior (J i)) |
| 249 | (hcomplete : ∀ i t, t ∈ Icc (-δ) 0 → MetricComplete ((F i).metric t)) |
| 250 | (hRic : ∀ i t, t ∈ Icc (-δ) 0 → ∀ x : M, ∀ v : TangentSpace (𝓡 (m + 1)) x, |
| 251 | 0 ≤ ((F i).connection t).ricci x v v) |
| 252 | (q : ℕ → M) (r L : ℕ → ℝ) (hr : ∀ i, 0 < r i) |
| 253 | (hmargin : ∀ i, 4 * Real.exp (Λ * δ) * r i ≤ L i) |
| 254 | (hupper : ∀ i t, t ∈ Icc (-δ) 0 → ∀ z ∈ ((F i).metric 0).ball (q i) (L i), |
| 255 | ∀ v : TangentSpace (𝓡 (m + 1)) z, |
| 256 | ((F i).connection t).ricci z v v ≤ Λ * ((F i).metric t).inner z v v) |
| 257 | (minus plus : ℕ → ℝ → M) (a b : ℕ → ℝ) |
| 258 | (ha : ∀ i, 0 < a i) (hb : ∀ i, 0 < b i) |
| 259 | (hminus0 : ∀ i, minus i 0 = q i) (hplus0 : ∀ i, plus i 0 = q i) |
| 260 | (hminus : ∀ i, ∀ s ∈ Icc (0 : ℝ) (a i), ∀ t ∈ Icc (0 : ℝ) (a i), |
| 261 | (((F i).metric 0).edist (minus i s) (minus i t)).toReal = |s - t|) |
| 262 | (hplus : ∀ i, ∀ s ∈ Icc (0 : ℝ) (b i), ∀ t ∈ Icc (0 : ℝ) (b i), |
| 263 | (((F i).metric 0).edist (plus i s) (plus i t)).toReal = |s - t|) |
| 264 | (hx : ∀ i, minus i (a i) ∈ ((F i).metric 0).ball (q i) (r i)) |
| 265 | (hy : ∀ i, plus i (b i) ∈ ((F i).metric 0).ball (q i) (r i)) |
| 266 | (haTop : Tendsto a atTop atTop) (hbTop : Tendsto b atTop atTop) |
| 267 | (hcos : Tendsto (fun i => |
| 268 | (a i ^ 2 + b i ^ 2 - |
| 269 | (((F i).metric 0).edist (minus i (a i)) (plus i (b i))).toReal ^ 2) / |
| 270 | (2 * a i * b i)) atTop (𝓝 (-1))) : |
| 271 | let A := fun i => (((F i).metric (-δ)).edist (q i) (minus i (a i))).toReal |
| 272 | let B := fun i => (((F i).metric (-δ)).edist (q i) (plus i (b i))).toReal |
| 273 | let error := (4 * (((m + 1 : ℕ) : ℝ)) * scale + 8 * Λ / scale) * δ |
| 274 | (∀ i, 0 < A i ∧ 0 < B i ∧ a i ≤ A i ∧ A i ≤ a i + error ∧ |
| 275 | b i ≤ B i ∧ B i ≤ b i + error) ∧ |
| 276 | Tendsto A atTop atTop ∧ Tendsto B atTop atTop ∧ |
| 277 | Tendsto (fun i => |
| 278 | (A i ^ 2 + B i ^ 2 - |
| 279 | (((F i).metric (-δ)).edist (minus i (a i)) (plus i (b i))).toReal ^ 2) / |
| 280 | (2 * A i * B i)) atTop (𝓝 (-1)) ∧ |
| 281 | ∃ earlierMinus earlierPlus : ℕ → ℝ → M, |
| 282 | (∀ i, earlierMinus i 0 = q i ∧ earlierMinus i (A i) = minus i (a i) ∧ |
| 283 | earlierPlus i 0 = q i ∧ earlierPlus i (B i) = plus i (b i)) ∧ |
| 284 | (∀ i, ∀ s ∈ Icc (0 : ℝ) (A i), ∀ t ∈ Icc (0 : ℝ) (A i), |
| 285 | (((F i).metric (-δ)).edist (earlierMinus i s) (earlierMinus i t)).toReal = |s - t|) ∧ |
| 286 | (∀ i, ∀ s ∈ Icc (0 : ℝ) (B i), ∀ t ∈ Icc (0 : ℝ) (B i), |
| 287 | (((F i).metric (-δ)).edist (earlierPlus i s) (earlierPlus i t)).toReal = |s - t|) := by |
| 288 | exact exists_buffered_opposite_minimizing_segments_intrinsic hm J F hδ hΛ hscale |
| 289 | hJ hcomplete hRic q r L hr hmargin hupper minus plus a b ha hb hminus0 hplus0 |
| 290 | hminus hplus hx hy haTop hbTop hcos |
| 291 | |
| 292 | end PoincareMT.RicciFlow |