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.ReducedGeometry.LGeometry.Minimization.MinimizingSequence |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Path.PathEnergy |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Path.PathTightness |
| 4 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Minimization.Charts.ChartCoercivity |
| 5 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Minimization.ChartCover |
| 6 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Minimization.IntegratedEnergy |
| 7 | import Mathlib.Topology.Order.ProjIcc |
| 8 | |
| 9 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/MinimizingCompactness.lean` at |
| 10 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 11 | |
| 12 | |
| 13 | /-! |
| 14 | # Uniform limits of minimizing backward paths |
| 15 | |
| 16 | The complete terminal metric supplies tightness from the action bound. |
| 17 | The limit constructed here still needs chart regularity before it is an |
| 18 | admissible minimizing path. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | open scoped Manifold ContDiff Bundle intervalIntegral Topology ENNReal |
| 25 | open MeasureTheory Set Filter |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.LGeometry |
| 30 | |
| 31 | variable {n : ℕ} {M : Type u} [mTop : TopologicalSpace M] |
| 32 | [mChart : ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 33 | [mSmooth : IsManifold (𝓡 n) ∞ M] [mConnected : ConnectedSpace M] [mT3 : T3Space M] |
| 34 | |
| 35 | /-- The direct-method sequence has a continuous uniform limit with the required endpoints. -/ |
| 36 | theorem exists_backward_minimizing_uniform_limit {J : Set ℝ} {F : RicciFlow n M J} |
| 37 | {T τmax τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) (hT : T ∈ J) |
| 38 | (hwindow : Set.Icc (T - τmax) T ⊆ J) |
| 39 | (hcurvature : CompleteBoundedCurvatureOn F (Set.Icc (T - τmax) T)) |
| 40 | (hτ₁ : 0 ≤ τ₁) (hordered : τ₁ < τ₂) (hτ₂ : τ₂ ≤ τmax) (p₁ p₂ : M) : |
| 41 | letI : MetricSpace M := referenceMetricSpace (F.metric T) |
| 42 | ∃ (p : ℕ → BackwardTimePath F T τ₁ τ₂) (γ : ℝ → M), |
| 43 | (∀ k, (p k).curve τ₁ = p₁ ∧ (p k).curve τ₂ = p₂) ∧ |
| 44 | Antitone (fun k ↦ backwardLLength F T τ₁ τ₂ (p k).curve) ∧ |
| 45 | Tendsto (fun k ↦ backwardLLength F T τ₁ τ₂ (p k).curve) |
| 46 | atTop (𝓝 (sInf (backwardActionValues F T τ₁ τ₂ p₁ p₂))) ∧ |
| 47 | Continuous γ ∧ γ (Real.sqrt τ₁) = p₁ ∧ γ (Real.sqrt τ₂) = p₂ ∧ |
| 48 | TendstoUniformlyOn (fun k ↦ squareReparameterizedCurve (p k).curve) γ atTop |
| 49 | (sqrtParameterInterval τ₁ τ₂) := by |
| 50 | letI : MetricSpace M := referenceMetricSpace (F.metric T) |
| 51 | have hτmax : 0 ≤ τmax := hτ₁.trans (hordered.le.trans hτ₂) |
| 52 | letI : CompleteSpace M := referenceMetricSpace_complete (F.metric T) |
| 53 | (hcurvature.1 T ⟨sub_le_self T hτmax, le_rfl⟩) |
| 54 | letI : LocallyCompactSpace M := |
| 55 | Manifold.locallyCompact_of_finiteDimensional (M := M) (𝓡 n) |
| 56 | obtain ⟨p, hp, hanti, hmin⟩ := exists_backward_minimizing_sequence |
| 57 | hM04 hT hwindow hcurvature hτ₁ hordered hτ₂ p₁ p₂ |
| 58 | obtain ⟨K, hK, hRm⟩ := hcurvature.2 |
| 59 | let a := Real.sqrt τ₁ |
| 60 | let b := Real.sqrt τ₂ |
| 61 | have hab : a < b := Real.sqrt_lt_sqrt hτ₁ hordered |
| 62 | let C := 2 * (Real.exp (2 * (n : ℝ) * K * τmax) * |
| 63 | (backwardLLength F T τ₁ τ₂ (p 0).curve + |
| 64 | (Real.sqrt τ₂ * (n : ℝ) ^ 2 * K) * (τ₂ - τ₁))) |
| 65 | have hE (k : ℕ) : |
| 66 | IntervalIntegrable |
| 67 | (referenceSpeedSq (F.metric T) (squareReparameterizedCurve (p k).curve)) volume a b ∧ |
| 68 | (∫ s in a..b, |
| 69 | referenceSpeedSq (F.metric T) (squareReparameterizedCurve (p k).curve) s) ≤ C := by |
| 70 | have href := referenceWeightedEnergy_bound hM04 hwindow hK hRm (p k) hτ₂ |
| 71 | have hsquare := squarePath_referenceEnergy (p k) (F.metric T) href.1 |
| 72 | refine ⟨hsquare.1, ?_⟩ |
| 73 | rw [hsquare.2] |
| 74 | apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 2) |
| 75 | apply href.2.trans |
| 76 | apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le |
| 77 | exact add_le_add (hanti (Nat.zero_le k)) le_rfl |
| 78 | let f : ℕ → Icc a b → M := fun k s ↦ squareReparameterizedCurve (p k).curve s |
| 79 | have hmod (s t : Icc a b) (k : ℕ) : |
| 80 | dist (f k s) (f k t) ≤ Real.sqrt C * Real.sqrt (dist s t) := by |
| 81 | have h := dist_le_sqrt_energy (F.metric T) hab |
| 82 | (squarePath_continuousOn (p k)) (squarePath_regular (p k)) |
| 83 | (hE k).1 (hE k).2 s s.2 t t.2 |
| 84 | simpa only [f, Subtype.dist_eq, Real.dist_eq, abs_sub_comm] using h |
| 85 | have hf : Equicontinuous f := by |
| 86 | apply UniformEquicontinuous.equicontinuous |
| 87 | apply Metric.uniformEquicontinuous_of_continuity_modulus |
| 88 | (fun r ↦ Real.sqrt C * Real.sqrt r) _ f hmod |
| 89 | simpa only [Real.sqrt_zero, mul_zero] using |
| 90 | (tendsto_const_nhds.mul (Real.continuous_sqrt.tendsto (0 : ℝ))) |
| 91 | let left : Icc a b := ⟨a, le_rfl, hab.le⟩ |
| 92 | let right : Icc a b := ⟨b, hab.le, le_rfl⟩ |
| 93 | have hleft (k : ℕ) : f k left = p₁ := by |
| 94 | simpa only [f, left, a, squareReparameterizedCurve, Real.sq_sqrt hτ₁] using (hp k).1 |
| 95 | have hright (k : ℕ) : f k right = p₂ := by |
| 96 | simpa only [f, right, b, squareReparameterizedCurve, |
| 97 | Real.sq_sqrt (hτ₁.trans hordered.le)] using (hp k).2 |
| 98 | letI : PreconnectedSpace (Icc a b) := isPreconnected_iff_preconnectedSpace.mp |
| 99 | isPreconnected_Icc |
| 100 | obtain ⟨g, φ, hφ, hlim⟩ := exists_uniform_subsequence_of_anchored f hf left p₁ hleft |
| 101 | let γ : ℝ → M := fun s ↦ g (projIcc a b hab.le s) |
| 102 | have hγ : Continuous γ := g.continuous.comp continuous_projIcc |
| 103 | have hγleft : γ a = p₁ := by |
| 104 | have h := hlim.tendsto_at left |
| 105 | simp only [hleft] at h |
| 106 | have hg := tendsto_nhds_unique h tendsto_const_nhds |
| 107 | simpa [γ, left] using hg |
| 108 | have hγright : γ b = p₂ := by |
| 109 | have h := hlim.tendsto_at right |
| 110 | simp only [hright] at h |
| 111 | have hg := tendsto_nhds_unique h tendsto_const_nhds |
| 112 | simpa [γ, right] using hg |
| 113 | refine ⟨fun k ↦ p (φ k), γ, fun k ↦ hp (φ k), hanti.comp_monotone hφ.monotone, |
| 114 | hmin.comp hφ.tendsto_atTop, hγ, hγleft, hγright, ?_⟩ |
| 115 | change TendstoUniformlyOn (fun k ↦ squareReparameterizedCurve (p (φ k)).curve) |
| 116 | γ atTop (Icc a b) |
| 117 | apply tendstoUniformlyOn_iff_tendstoUniformly_comp_coe.mpr |
| 118 | have hclamp : (fun s : Icc a b ↦ γ s) = g := by |
| 119 | funext s |
| 120 | change g (projIcc a b hab.le s) = g s |
| 121 | rw [projIcc_of_mem _ s.2] |
| 122 | simpa only [f, Function.comp_def, hclamp] using hlim |
| 123 | |
| 124 | /-- Finite chart pieces of a bounded-energy sequence identify the limit's L2 velocities. -/ |
| 125 | theorem finite_chartH1_limit {ι : Type*} [Fintype ι] |
| 126 | (g : RiemannianMetric n M) (a b : ι → ℝ) (hab : ∀ i, a i ≤ b i) |
| 127 | (x : ι → M) (K : ι → Set M) (hK : ∀ i, IsCompact (K i)) |
| 128 | (hsrc : ∀ i, K i ⊆ (chartAt (EuclideanSpace ℝ (Fin n)) (x i)).source) |
| 129 | (α : ℕ → ℝ → M) (γ : ℝ → M) |
| 130 | (hα : ∀ i k, ContinuousOn (α k) (Icc (a i) (b i))) |
| 131 | (hreg : ∀ i k, ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 (α k) (Ioo (a i) (b i))) |
| 132 | (hαK : ∀ i k, MapsTo (α k) (Icc (a i) (b i)) (K i)) |
| 133 | (hγK : ∀ i, MapsTo γ (Icc (a i) (b i)) (K i)) |
| 134 | (hpoint : ∀ i s, s ∈ Icc (a i) (b i) → |
| 135 | Tendsto (fun k ↦ α k s) atTop (𝓝 (γ s))) |
| 136 | (hE : ∀ i k, IntervalIntegrable (referenceSpeedSq g (α k)) volume (a i) (b i)) |
| 137 | (C : ι → ℝ) (hbound : ∀ i k, (∫ s in a i..b i, referenceSpeedSq g (α k) s) ≤ C i) : |
| 138 | ∃ (v : ∀ i, ℕ → ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i)) |
| 139 | (w : ∀ i, ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i)) |
| 140 | (B : ι → ℝ) (φ : ℕ → ℕ), StrictMono φ ∧ |
| 141 | (∀ i k, ‖v i k‖ ≤ B i ∧ |
| 142 | (v i k : ℝ → EuclideanSpace ℝ (Fin n)) =ᵐ[volume.restrict (Icc (a i) (b i))] |
| 143 | deriv ((extChartAt (𝓡 n) (x i)) ∘ α k)) ∧ |
| 144 | (∀ i, ∀ s ∈ Icc (a i) (b i), |
| 145 | extChartAt (𝓡 n) (x i) (γ s) = extChartAt (𝓡 n) (x i) (γ (a i)) + |
| 146 | ∫ r in a i..s, w i r) ∧ |
| 147 | ∀ i, ∀ l : ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i) →L[ℝ] ℝ, |
| 148 | Tendsto (fun k ↦ l (v i (φ k))) atTop (𝓝 (l (w i))) := by |
| 149 | classical |
| 150 | choose c hc hcbound using fun i ↦ chart_velocity_L2_bound g (x i) (hK i) (hsrc i) |
| 151 | choose hLp hvbound using fun i k ↦ |
| 152 | hcbound i (hab i) (α k) (hreg i k) (hαK i k) (hE i k) (hbound i k) |
| 153 | let v : ∀ i, ℕ → ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i) := |
| 154 | fun i k ↦ (hLp i k).toLp (deriv ((extChartAt (𝓡 n) (x i)) ∘ α k)) |
| 155 | letI : Fact ((2 : ℝ≥0∞) ≠ (⊤ : ℝ≥0∞)) := ⟨by norm_num⟩ |
| 156 | letI (i : ι) : TopologicalSpace.SeparableSpace |
| 157 | (ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i)) := inferInstance |
| 158 | obtain ⟨φ, hφ, w, hweak⟩ := exists_finite_weak_subsequence v |
| 159 | (fun i ↦ Real.sqrt ((c i)⁻¹ * C i)) hvbound |
| 160 | refine ⟨v, w, (fun i ↦ Real.sqrt ((c i)⁻¹ * C i)), φ, hφ, |
| 161 | (fun i k ↦ ⟨hvbound i k, (hLp i k).coeFn_toLp⟩), ?_, fun i ↦ (hweak i).2⟩ |
| 162 | intro i s hs |
| 163 | apply chart_primitive_of_weak_limit |
| 164 | (fun k ↦ (extChartAt (𝓡 n) (x i)) ∘ α (φ k)) |
| 165 | ((extChartAt (𝓡 n) (x i)) ∘ γ) (fun k ↦ v i (φ k)) (w i) _ _ (hweak i).2 hs |
| 166 | · intro k r hr |
| 167 | have hαsrc : ∀ t ∈ Icc (a i) (b i), |
| 168 | α (φ k) t ∈ (chartAt (EuclideanSpace ℝ (Fin n)) (x i)).source := by |
| 169 | intro t ht |
| 170 | exact (hsrc i) (hαK i (φ k) ht) |
| 171 | apply chart_primitive_of_deriv |
| 172 | ((continuousOn_extChartAt (I := 𝓡 n) (x i)).comp (hα i (φ k)) |
| 173 | (fun t ht ↦ by simpa only [extChartAt_source] using hαsrc t ht)) _ |
| 174 | (hLp i (φ k)) hr |
| 175 | intro t ht |
| 176 | have hm := ((hreg i (φ k) t ht).contMDiffAt (isOpen_Ioo.mem_nhds ht)).mdifferentiableAt |
| 177 | (by norm_num) |
| 178 | exact ((mdifferentiableAt_extChartAt |
| 179 | (hαsrc t (Ioo_subset_Icc_self ht))).comp t hm).differentiableAt.hasDerivAt |
| 180 | · intro t ht |
| 181 | have hsrc' : γ t ∈ (extChartAt (𝓡 n) (x i)).source := by |
| 182 | simpa only [extChartAt_source] using hsrc i (hγK i ht) |
| 183 | exact ((continuousAt_extChartAt' hsrc').tendsto.comp |
| 184 | (hpoint i t ht)).comp hφ.tendsto_atTop |
| 185 | |
| 186 | set_option synthInstance.maxHeartbeats 200000 in |
| 187 | -- Coefficient representatives live in a nested continuous-linear-map space. |
| 188 | /-- The finite chart action is lower semicontinuous along the common weak subsequence. -/ |
| 189 | theorem finite_chart_action_le {J : Set ℝ} (F : RicciFlow n M J) |
| 190 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) {ι : Type*} [Fintype ι] |
| 191 | (a b : ι → ℝ) (hab : ∀ i, a i ≤ b i) (x : ι → M) |
| 192 | (K : ι → Set M) (hK : ∀ i, IsCompact (K i)) |
| 193 | (hsrc : ∀ i, K i ⊆ (chartAt (EuclideanSpace ℝ (Fin n)) (x i)).source) |
| 194 | (htime : ∀ i s, s ∈ Icc (a i) (b i) → T - s ^ 2 ∈ J) |
| 195 | (α : ℕ → ℝ → M) (γ : ℝ → M) |
| 196 | (hα : ∀ i k, ContinuousOn (α k) (Icc (a i) (b i))) |
| 197 | (hγ : ∀ i, ContinuousOn γ (Icc (a i) (b i))) |
| 198 | (hαK : ∀ i k, MapsTo (α k) (Icc (a i) (b i)) (K i)) |
| 199 | (hγK : ∀ i, MapsTo γ (Icc (a i) (b i)) (K i)) |
| 200 | (hlim : letI : MetricSpace M := referenceMetricSpace (F.metric T) |
| 201 | ∀ i, TendstoUniformlyOn α γ atTop (Icc (a i) (b i))) |
| 202 | (v : ∀ i, ℕ → ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i)) |
| 203 | (w : ∀ i, ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i)) |
| 204 | (C : ι → ℝ) (hC : ∀ i, 0 ≤ C i) (hbound : ∀ i k, ‖v i k‖ ≤ C i) |
| 205 | (hweak : ∀ i, ∀ l : ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i) →L[ℝ] ℝ, |
| 206 | Tendsto (fun k ↦ l (v i k)) atTop (𝓝 (l (w i)))) |
| 207 | (action : ℕ → ℝ) (L : ℝ) (haction : Tendsto action atTop (𝓝 L)) |
| 208 | (henergy : ∀ k, |
| 209 | (∑ i : ι, ((∫ s in a i..b i, regularizedChartMetric F T (x i) (s, α k s) |
| 210 | (v i k s) (v i k s)) + |
| 211 | ∫ s in a i..b i, 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (α k s))) |
| 212 | ≤ action k) : |
| 213 | (∑ i : ι, ((∫ s in a i..b i, regularizedChartMetric F T (x i) (s, γ s) |
| 214 | (w i s) (w i s)) + |
| 215 | ∫ s in a i..b i, 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (γ s))) ≤ L := by |
| 216 | classical |
| 217 | letI : MetricSpace M := referenceMetricSpace (F.metric T) |
| 218 | let B i k s := regularizedChartMetric F T (x i) (s, α k s) |
| 219 | let D i s := regularizedChartMetric F T (x i) (s, γ s) |
| 220 | have hBcont (i : ι) (k : ℕ) : ContinuousOn (B i k) (Icc (a i) (b i)) := |
| 221 | (regularizedChartMetric_continuousOn F T (x i) (htime i) (hsrc i)).comp |
| 222 | (continuousOn_id.prodMk (hα i k)) (fun s hs ↦ ⟨hs, hαK i k hs⟩) |
| 223 | have hDcont (i : ι) : ContinuousOn (D i) (Icc (a i) (b i)) := |
| 224 | (regularizedChartMetric_continuousOn F T (x i) (htime i) (hsrc i)).comp |
| 225 | (continuousOn_id.prodMk (hγ i)) (fun s hs ↦ ⟨hs, hγK i hs⟩) |
| 226 | have hB (i : ι) (k : ℕ) : |
| 227 | MemLp (B i k) ∞ (volume.restrict (Icc (a i) (b i))) := |
| 228 | continuousOn_memLp_top_Icc (f := B i k) (a := a i) (b := b i) (hBcont i k) |
| 229 | have hD (i : ι) : |
| 230 | MemLp (D i) ∞ (volume.restrict (Icc (a i) (b i))) := |
| 231 | continuousOn_memLp_top_Icc (f := D i) (a := a i) (b := b i) (hDcont i) |
| 232 | let Qk i k := integratedFormMap _ ((hB i k).toLp (B i k)) |
| 233 | let Q i := integratedFormMap _ ((hD i).toLp (D i)) |
| 234 | have hQ (i : ι) : Tendsto (fun k ↦ ‖Qk i k - Q i‖) atTop (𝓝 (0 : ℝ)) := by |
| 235 | apply integratedForm_tendsto_of_uniform (B i) (D i) (hB i) (hD i) |
| 236 | exact uniform_composition_on_compact_core (hK i) _ |
| 237 | (regularizedChartMetric_continuousOn F T (x i) (htime i) (hsrc i)) α γ |
| 238 | (Eventually.of_forall (hαK i)) (hγK i) (hlim i) |
| 239 | have hQpos (i : ι) (z : ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i)) : |
| 240 | 0 ≤ Q i z z := by |
| 241 | apply integratedForm_nonneg (hD i) _ z |
| 242 | filter_upwards [ae_restrict_mem measurableSet_Icc] with s hs |
| 243 | exact regularizedChartMetric_nonneg F T (x i) s (hsrc i (hγK i hs)) |
| 244 | have hQeq (i : ι) (z : ChartL2 (EuclideanSpace ℝ (Fin n)) (a i) (b i)) : |
| 245 | Q i z z = ∫ s in a i..b i, D i s (z s) (z s) := by |
| 246 | rw [intervalIntegral.integral_of_le (hab i), ← integral_Icc_eq_integral_Ioc] |
| 247 | rw [integratedFormMap_apply] |
| 248 | apply integral_congr_ae |
| 249 | filter_upwards [MemLp.coeFn_toLp |
| 250 | (E := EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) |
| 251 | (f := D i) (hD i)] with s hs |
| 252 | rw [hs] |
| 253 | have hQkeq (i : ι) (k : ℕ) : |
| 254 | Qk i k (v i k) (v i k) = ∫ s in a i..b i, B i k s (v i k s) (v i k s) := by |
| 255 | rw [intervalIntegral.integral_of_le (hab i), ← integral_Icc_eq_integral_Ioc] |
| 256 | rw [integratedFormMap_apply] |
| 257 | apply integral_congr_ae |
| 258 | filter_upwards [MemLp.coeFn_toLp |
| 259 | (E := EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) |
| 260 | (f := B i k) (hB i k)] with s hs |
| 261 | rw [hs] |
| 262 | let V : ι → ℝ × M → ℝ := fun _ z ↦ |
| 263 | 2 * z.1 ^ 2 * (F.connection (T - z.1 ^ 2)).scalarCurvature z.2 |
| 264 | have hV (i : ι) : ContinuousOn (V i) (Icc (a i) (b i) ×ˢ K i) := |
| 265 | regularizedPotential_continuousOn F hM04 T (htime i) |
| 266 | have hpotential (i : ι) : Tendsto (fun k ↦ ∫ s in a i..b i, V i (s, α k s)) atTop |
| 267 | (𝓝 (∫ s in a i..b i, V i (s, γ s))) := by |
| 268 | apply TendstoUniformlyOn.tendsto_intervalIntegral_of_continuousOn |
| 269 | · apply Eventually.of_forall |
| 270 | intro k |
| 271 | rw [uIcc_of_le (hab i)] |
| 272 | exact (hV i).comp (continuousOn_id.prodMk (hα i k)) |
| 273 | (fun s hs ↦ ⟨hs, hαK i k hs⟩) |
| 274 | · rw [uIcc_of_le (hab i)] |
| 275 | exact uniform_composition_on_compact_core (hK i) (V i) (hV i) α γ |
| 276 | (Eventually.of_forall (hαK i)) (hγK i) (hlim i) |
| 277 | have htotal := finite_quadratic_action_le v w C hC hbound hweak Q Qk hQpos hQ |
| 278 | (fun k ↦ ∑ i, ∫ s in a i..b i, V i (s, α k s)) action |
| 279 | (∑ i, ∫ s in a i..b i, V i (s, γ s)) L |
| 280 | (tendsto_finsetSum Finset.univ (fun i _ ↦ hpotential i)) haction |
| 281 | (fun k ↦ by simpa only [hQkeq, ← Finset.sum_add_distrib, B, V] using henergy k) |
| 282 | simpa only [hQeq, ← Finset.sum_add_distrib, D, V] using htotal |
| 283 | |
| 284 | /-- A chart velocity representative computes the original regularized action on a piece. -/ |
| 285 | theorem chart_piece_action_eq {J : Set ℝ} (F : RicciFlow n M J) |
| 286 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) {a b : ℝ} (hab : a ≤ b) |
| 287 | (x : M) (α : ℝ → M) (hα : ContinuousOn α (Icc a b)) |
| 288 | (hreg : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 α (Ioo a b)) |
| 289 | (hsrc : MapsTo α (Icc a b) (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 290 | (htime : ∀ s ∈ Icc a b, T - s ^ 2 ∈ J) |
| 291 | (hint : IntervalIntegrable (regularizedLIntegrand F T α) volume a b) |
| 292 | (v : ChartL2 (EuclideanSpace ℝ (Fin n)) a b) |
| 293 | (hv : (v : ℝ → EuclideanSpace ℝ (Fin n)) =ᵐ[volume.restrict (Icc a b)] |
| 294 | deriv ((extChartAt (𝓡 n) x) ∘ α)) : |
| 295 | (∫ s in a..b, regularizedChartMetric F T x (s, α s) (v s) (v s)) + |
| 296 | (∫ s in a..b, 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (α s)) = |
| 297 | ∫ s in a..b, regularizedLIntegrand F T α s := by |
| 298 | let V := fun s ↦ 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (α s) |
| 299 | have hVcont : ContinuousOn V (Icc a b) := |
| 300 | (regularizedPotential_continuousOn F hM04 T (K := univ) htime).comp |
| 301 | (continuousOn_id.prodMk hα) (fun s hs ↦ ⟨hs, mem_univ _⟩) |
| 302 | have hV : IntervalIntegrable V volume a b := by |
| 303 | apply hVcont.intervalIntegrable_of_Icc hab |
| 304 | have hkin : (∫ s in a..b, regularizedChartMetric F T x (s, α s) (v s) (v s)) = |
| 305 | ∫ s in a..b, regularizedLIntegrand F T α s - V s := by |
| 306 | rw [intervalIntegral.integral_of_le hab, intervalIntegral.integral_of_le hab, |
| 307 | ← integral_Icc_eq_integral_Ioc, ← integral_Icc_eq_integral_Ioc] |
| 308 | apply integral_congr_ae |
| 309 | have hmem : ∀ᵐ s ∂volume.restrict (Icc a b), s ∈ Ioo a b := by |
| 310 | rw [← restrict_Ioo_eq_restrict_Icc] |
| 311 | exact ae_restrict_mem measurableSet_Ioo |
| 312 | filter_upwards [hv, hmem] with s hs hsI |
| 313 | rw [hs] |
| 314 | have hdiff := ((hreg s hsI).contMDiffAt (isOpen_Ioo.mem_nhds hsI)).mdifferentiableAt |
| 315 | (by norm_num) |
| 316 | change (1 / 2 : ℝ) * metricInChart (F.metric (T - s ^ 2)) x (α s) |
| 317 | (deriv ((extChartAt (𝓡 n) x) ∘ α) s) (deriv ((extChartAt (𝓡 n) x) ∘ α) s) = _ |
| 318 | rw [metricInChart_deriv _ (hsrc (Ioo_subset_Icc_self hsI)) hdiff] |
| 319 | simp only [regularizedLIntegrand, referenceSpeedSq, V, add_sub_cancel_left] |
| 320 | rw [hkin, intervalIntegral.integral_sub hint hV, sub_add_cancel] |
| 321 | |
| 322 | private theorem sum_integral_fin_partition {m : ℕ} (t : Fin (m + 1) → ℝ) |
| 323 | (ht : Monotone t) (f : ℝ → ℝ) |
| 324 | (hf : IntervalIntegrable f volume (t 0) (t (Fin.last m))) : |
| 325 | (∑ i : Fin m, ∫ s in t i.castSucc..t i.succ, f s) = |
| 326 | ∫ s in t 0..t (Fin.last m), f s := by |
| 327 | induction m with |
| 328 | | zero => simp |
| 329 | | succ m ih => |
| 330 | rw [Fin.sum_univ_castSucc] |
| 331 | have hfirst : IntervalIntegrable f volume (t 0) (t (Fin.last m).castSucc) := |
| 332 | hf.mono_set (by |
| 333 | rw [uIcc_of_le (ht (Fin.zero_le _)), |
| 334 | uIcc_of_le (ht (Fin.zero_le _))] |
| 335 | exact Icc_subset_Icc le_rfl (ht (Fin.le_last _))) |
| 336 | have hlast : IntervalIntegrable f volume |
| 337 | (t (Fin.last m).castSucc) (t (Fin.last (m + 1))) := |
| 338 | let hlastidx : (Fin.last m).castSucc ≤ Fin.last (m + 1) := by |
| 339 | simpa only [Fin.succ_last] using Fin.castSucc_le_succ (Fin.last m) |
| 340 | hf.mono_set (by |
| 341 | rw [uIcc_of_le (ht hlastidx), |
| 342 | uIcc_of_le (ht (Fin.zero_le _))] |
| 343 | exact Icc_subset_Icc (ht (Fin.zero_le _)) le_rfl) |
| 344 | have hsum := ih (fun i ↦ t i.castSucc) (ht.comp (fun _ _ hij ↦ hij)) hfirst |
| 345 | simpa only [Fin.castSucc_zero, Fin.succ_last] using |
| 346 | hsum ▸ intervalIntegral.integral_add_adjacent_intervals hfirst hlast |
| 347 | |
| 348 | set_option maxHeartbeats 800000 in |
| 349 | -- This assembly transports one dependent L2 space for each chart segment. |
| 350 | set_option synthInstance.maxHeartbeats 200000 in |
| 351 | /-- The complete-flow direct method yields a chart H1 limit below the backward action infimum. -/ |
| 352 | theorem exists_backward_minimizing_chart_limit {J : Set ℝ} {F : RicciFlow n M J} |
| 353 | {T τmax τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) (hT : T ∈ J) |
| 354 | (hwindow : Icc (T - τmax) T ⊆ J) |
| 355 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 356 | (hτ₁ : 0 ≤ τ₁) (hordered : τ₁ < τ₂) (hτ₂ : τ₂ ≤ τmax) (p₁ p₂ : M) : |
| 357 | ∃ (γ : ℝ → M) (m : ℕ) (t : Fin (m + 1) → ℝ) (x : Fin m → M) |
| 358 | (K : Fin m → Set M) |
| 359 | (w : ∀ i : Fin m, ChartL2 (EuclideanSpace ℝ (Fin n)) (t i.castSucc) (t i.succ)), |
| 360 | Continuous γ ∧ γ (Real.sqrt τ₁) = p₁ ∧ γ (Real.sqrt τ₂) = p₂ ∧ |
| 361 | Monotone t ∧ t 0 = Real.sqrt τ₁ ∧ t (Fin.last m) = Real.sqrt τ₂ ∧ |
| 362 | (∀ i, IsCompact (K i) ∧ |
| 363 | γ '' Icc (t i.castSucc) (t i.succ) ⊆ interior (K i) ∧ |
| 364 | K i ⊆ (chartAt (EuclideanSpace ℝ (Fin n)) (x i)).source) ∧ |
| 365 | (∀ i s, s ∈ Icc (t i.castSucc) (t i.succ) → |
| 366 | extChartAt (𝓡 n) (x i) (γ s) = extChartAt (𝓡 n) (x i) (γ (t i.castSucc)) + |
| 367 | ∫ r in t i.castSucc..s, w i r) ∧ |
| 368 | (∑ i, ((∫ s in t i.castSucc..t i.succ, |
| 369 | regularizedChartMetric F T (x i) (s, γ s) (w i s) (w i s)) + |
| 370 | ∫ s in t i.castSucc..t i.succ, |
| 371 | 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (γ s))) ≤ |
| 372 | sInf (backwardActionValues F T τ₁ τ₂ p₁ p₂) := by |
| 373 | classical |
| 374 | letI : MetricSpace M := referenceMetricSpace (F.metric T) |
| 375 | letI : LocallyCompactSpace M := |
| 376 | Manifold.locallyCompact_of_finiteDimensional (M := M) (𝓡 n) |
| 377 | let a := Real.sqrt τ₁ |
| 378 | let b := Real.sqrt τ₂ |
| 379 | have hab : a < b := Real.sqrt_lt_sqrt hτ₁ hordered |
| 380 | obtain ⟨p, γ, hp, hanti, hmin, hγ, hγa, hγb, hlim⟩ := |
| 381 | exists_backward_minimizing_uniform_limit hM04 hT hwindow hcurvature |
| 382 | hτ₁ hordered hτ₂ p₁ p₂ |
| 383 | obtain ⟨m, t, x, K, N, ht, hta, htb, hK, htail⟩ := |
| 384 | exists_compact_partition_of_uniform_limit |
| 385 | (fun x : M ↦ (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 386 | (fun x ↦ (chartAt (EuclideanSpace ℝ (Fin n)) x).open_source) |
| 387 | (fun y ↦ ⟨y, mem_chart_source _ y⟩) hab.le γ hγ |
| 388 | (fun k ↦ squareReparameterizedCurve (p k).curve) hlim |
| 389 | have hseg (i : Fin m) : t i.castSucc ≤ t i.succ := ht (Fin.castSucc_le_succ i) |
| 390 | have hleft (i : Fin m) : a ≤ t i.castSucc := by |
| 391 | rw [← hta] |
| 392 | exact ht (Fin.zero_le _) |
| 393 | have hright (i : Fin m) : t i.succ ≤ b := by |
| 394 | rw [← htb] |
| 395 | exact ht (Fin.le_last _) |
| 396 | have hsub (i : Fin m) : Icc (t i.castSucc) (t i.succ) ⊆ Icc a b := |
| 397 | Icc_subset_Icc (hleft i) (hright i) |
| 398 | have hsuboo (i : Fin m) : Ioo (t i.castSucc) (t i.succ) ⊆ Ioo a b := |
| 399 | Ioo_subset_Ioo (hleft i) (hright i) |
| 400 | have husub (i : Fin m) : uIcc (t i.castSucc) (t i.succ) ⊆ uIcc a b := by |
| 401 | simpa only [uIcc_of_le (hseg i), uIcc_of_le hab.le] using hsub i |
| 402 | let q : ℕ → BackwardTimePath F T τ₁ τ₂ := fun k ↦ p (k + N) |
| 403 | let α : ℕ → ℝ → M := fun k ↦ squareReparameterizedCurve (q k).curve |
| 404 | have hshift : StrictMono (fun k : ℕ ↦ k + N) := fun _ _ hij ↦ Nat.add_lt_add_right hij N |
| 405 | have hlimq : TendstoUniformlyOn α γ atTop (Icc a b) := by |
| 406 | intro U hU |
| 407 | exact hshift.tendsto_atTop.eventually (hlim U hU) |
| 408 | have hα (i : Fin m) (k : ℕ) : ContinuousOn (α k) (Icc (t i.castSucc) (t i.succ)) := |
| 409 | (squarePath_continuousOn (q k)).mono (hsub i) |
| 410 | have hreg (i : Fin m) (k : ℕ) : |
| 411 | ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 (α k) (Ioo (t i.castSucc) (t i.succ)) := |
| 412 | (squarePath_regular (q k)).mono (hsuboo i) |
| 413 | have hαK (i : Fin m) (k : ℕ) : MapsTo (α k) (Icc (t i.castSucc) (t i.succ)) (K i) := |
| 414 | htail (k + N) (Nat.le_add_left N k) i |
| 415 | have hγK (i : Fin m) : MapsTo γ (Icc (t i.castSucc) (t i.succ)) (K i) := |
| 416 | fun s hs ↦ interior_subset ((hK i).2.1 (mem_image_of_mem γ hs)) |
| 417 | have htime (i : Fin m) (s : ℝ) (hs : s ∈ Icc (t i.castSucc) (t i.succ)) : |
| 418 | T - s ^ 2 ∈ J := by |
| 419 | apply (p 0).time_mem |
| 420 | have hsab := hsub i hs |
| 421 | have hsn : 0 ≤ s := (Real.sqrt_nonneg τ₁).trans hsab.1 |
| 422 | constructor |
| 423 | · simpa only [a, Real.sq_sqrt hτ₁] using |
| 424 | (sq_le_sq₀ (Real.sqrt_nonneg τ₁) hsn).mpr hsab.1 |
| 425 | · simpa only [b, Real.sq_sqrt (hτ₁.trans hordered.le)] using |
| 426 | (sq_le_sq₀ hsn (Real.sqrt_nonneg τ₂)).mpr hsab.2 |
| 427 | obtain ⟨R, hR, hRm⟩ := hcurvature.2 |
| 428 | let C := 2 * (Real.exp (2 * (n : ℝ) * R * τmax) * |
| 429 | (backwardLLength F T τ₁ τ₂ (p 0).curve + |
| 430 | (Real.sqrt τ₂ * (n : ℝ) ^ 2 * R) * (τ₂ - τ₁))) |
| 431 | have hE (k : ℕ) : IntervalIntegrable |
| 432 | (referenceSpeedSq (F.metric T) (α k)) volume a b ∧ |
| 433 | (∫ s in a..b, referenceSpeedSq (F.metric T) (α k) s) ≤ C := by |
| 434 | have href := referenceWeightedEnergy_bound hM04 hwindow hR hRm (q k) hτ₂ |
| 435 | have hsquare := squarePath_referenceEnergy (q k) (F.metric T) href.1 |
| 436 | refine ⟨hsquare.1, ?_⟩ |
| 437 | rw [hsquare.2] |
| 438 | apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 2) |
| 439 | apply href.2.trans |
| 440 | apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le |
| 441 | exact add_le_add (hanti (Nat.zero_le (k + N))) le_rfl |
| 442 | have hEpiece (i : Fin m) (k : ℕ) : IntervalIntegrable |
| 443 | (referenceSpeedSq (F.metric T) (α k)) volume (t i.castSucc) (t i.succ) := |
| 444 | (hE k).1.mono_set (husub i) |
| 445 | have hEbound (i : Fin m) (k : ℕ) : |
| 446 | (∫ s in t i.castSucc..t i.succ, referenceSpeedSq (F.metric T) (α k) s) ≤ C := by |
| 447 | apply le_trans _ (hE k).2 |
| 448 | exact intervalIntegral.integral_mono_interval (hleft i) (hseg i) (hright i) |
| 449 | (Eventually.of_forall (referenceSpeedSq_nonneg _ _)) (hE k).1 |
| 450 | obtain ⟨v, w, B, φ, hφ, hv, hprimitive, hweak⟩ := |
| 451 | finite_chartH1_limit (F.metric T) (fun i ↦ t i.castSucc) (fun i ↦ t i.succ) hseg |
| 452 | x K (fun i ↦ (hK i).1) (fun i ↦ (hK i).2.2) α γ hα hreg hαK hγK |
| 453 | (fun i s hs ↦ hlimq.tendsto_at (hsub i hs)) hEpiece (fun _ ↦ C) hEbound |
| 454 | have hlimφ (i : Fin m) : TendstoUniformlyOn (fun k ↦ α (φ k)) γ atTop |
| 455 | (Icc (t i.castSucc) (t i.succ)) := by |
| 456 | intro U hU |
| 457 | exact hφ.tendsto_atTop.eventually ((hlimq.mono (hsub i)) U hU) |
| 458 | have henergy (k : ℕ) : |
| 459 | (∑ i : Fin m, |
| 460 | ((∫ s in t i.castSucc..t i.succ, |
| 461 | regularizedChartMetric F T (x i) (s, α (φ k) s) (v i (φ k) s) (v i (φ k) s)) + |
| 462 | ∫ s in t i.castSucc..t i.succ, |
| 463 | 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (α (φ k) s))) ≤ |
| 464 | backwardLLength F T τ₁ τ₂ (q (φ k)).curve := by |
| 465 | have haction := squarePath_action (q (φ k)) |
| 466 | have hpieces (i : Fin m) := chart_piece_action_eq F hM04 T (hseg i) (x i) (α (φ k)) |
| 467 | (hα i (φ k)) (hreg i (φ k)) |
| 468 | (fun s hs ↦ (hK i).2.2 (hαK i (φ k) hs)) (htime i) |
| 469 | (haction.1.mono_set (husub i)) (v i (φ k)) (hv i (φ k)).2 |
| 470 | simp only [hpieces] |
| 471 | have hsum := sum_integral_fin_partition t ht (regularizedLIntegrand F T (α (φ k))) |
| 472 | (by simpa only [hta, htb] using haction.1) |
| 473 | rw [hsum, hta, htb] |
| 474 | exact haction.2.le |
| 475 | have hLSC : |
| 476 | (∑ i : Fin m, ((∫ s in t i.castSucc..t i.succ, |
| 477 | regularizedChartMetric F T (x i) (s, γ s) (w i s) (w i s)) + |
| 478 | ∫ s in t i.castSucc..t i.succ, |
| 479 | 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (γ s))) ≤ |
| 480 | sInf (backwardActionValues F T τ₁ τ₂ p₁ p₂) := |
| 481 | @finite_chart_action_le n M mTop mChart mSmooth mConnected mT3 J F hM04 T |
| 482 | (Fin m) inferInstance |
| 483 | (fun i ↦ t i.castSucc) (fun i ↦ t i.succ) hseg |
| 484 | x K (fun i ↦ (hK i).1) (fun i ↦ (hK i).2.2) htime (fun k ↦ α (φ k)) γ |
| 485 | (fun i k ↦ hα i (φ k)) (fun _ ↦ hγ.continuousOn) |
| 486 | (fun i k ↦ hαK i (φ k)) hγK hlimφ (fun i k ↦ v i (φ k)) w B |
| 487 | (fun i ↦ (norm_nonneg (v i 0)).trans (hv i 0).1) |
| 488 | (fun i k ↦ (hv i (φ k)).1) hweak |
| 489 | (fun k ↦ backwardLLength F T τ₁ τ₂ (q (φ k)).curve) _ |
| 490 | ((hmin.comp hshift.tendsto_atTop).comp hφ.tendsto_atTop) henergy |
| 491 | refine ⟨γ, m, t, x, K, w, ?_⟩ |
| 492 | exact ⟨hγ, hγa, hγb, ht, hta, htb, hK, hprimitive, hLSC⟩ |
| 493 | |
| 494 | end PoincareMT.LGeometry |