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.Surgery.Metric.Neck.CenteredNeckMetric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Collapse.AdaptedPolar |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Standard.Radial.RadialWeights |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Comparison.Jets.ComparisonCoordinateJets |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Comparison.ComparisonPullback |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Cylinder.Jets.CylinderAllOrderBounds |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Curvature.Transition.SurgeryTransitionMetric |
| 8 | |
| 9 | /-! |
| 10 | # The neck metric in the fixed cap coordinates |
| 11 | |
| 12 | Morgan--Tian Claim 13.1 and Theorem 13.2 compare the scalar-normalized |
| 13 | neck metric to the supplied standard cylindrical end. The coordinate |
| 14 | map here uses the supplied end's angular parametrization and the |
| 15 | reversed radial surgery height. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option maxSynthPendingDepth 12 |
| 21 | |
| 22 | open scoped Manifold ContDiff Topology BigOperators |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.MetricSurgery |
| 27 | |
| 28 | local notation "E₂" => EuclideanSpace ℝ (Fin 2) |
| 29 | local notation "E₃" => EuclideanSpace ℝ (Fin 3) |
| 30 | local notation "IC" => ModelWithCorners.prod (𝓡 2) 𝓘(ℝ, ℝ) |
| 31 | |
| 32 | noncomputable def comparisonCylinderMap (g₀ : StandardInitialMetric) |
| 33 | (x : StandardCapSpace) : RoundCylinderSpace := |
| 34 | ((adaptedInverseCoordinates g₀ x).1, standardSurgeryHeight g₀ x) |
| 35 | |
| 36 | noncomputable def comparisonNeckLift (g₀ : StandardInitialMetric) |
| 37 | {M : Type u} [TopologicalSpace M] |
| 38 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 39 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g) : StandardCapSpace → M := |
| 40 | N.coordinate_map ∘ comparisonCylinderMap g₀ |
| 41 | |
| 42 | theorem comparisonCylinderMap_contMDiffAt (g₀ : StandardInitialMetric) |
| 43 | {x : StandardCapSpace} (hx : x ≠ 0) : |
| 44 | ContMDiffAt (𝓡 3) IC ∞ (comparisonCylinderMap g₀) x := by |
| 45 | have hA := (adaptedInverseCoordinates_contMDiffOn g₀ x (by simpa using hx)).contMDiffAt |
| 46 | (isOpen_compl_singleton.mem_nhds (by simpa using hx)) |
| 47 | exact hA.fst.prodMk (standardSurgeryHeight_contDiffAt g₀ hx).contMDiffAt |
| 48 | |
| 49 | theorem comparison_chart_source_nhds (g₀ : StandardInitialMetric) |
| 50 | (theta : UnitTwoSphere) {x : StandardCapSpace} (hx : x ≠ 0) |
| 51 | (hchart : (adaptedInverseCoordinates g₀ x).1 ∈ (chartAt E₂ theta).source) : |
| 52 | ∀ᶠ p in nhds x, (adaptedInverseCoordinates g₀ p).1 ∈ (chartAt E₂ theta).source := by |
| 53 | have hA := (adaptedInverseCoordinates_contMDiffOn g₀ x (by simpa using hx)).contMDiffAt |
| 54 | (isOpen_compl_singleton.mem_nhds (by simpa using hx)) |
| 55 | exact hA.fst.continuousAt.preimage_mem_nhds ((chartAt E₂ theta).open_source.mem_nhds hchart) |
| 56 | |
| 57 | theorem comparisonCenteredCoordinates_height (g₀ : StandardInitialMetric) |
| 58 | (theta : UnitTwoSphere) (s : ℝ) (p : StandardCapSpace) : |
| 59 | cylinderHeightCovector (comparisonCenteredCoordinates g₀ theta s p) + s = |
| 60 | standardSurgeryHeight g₀ p := by |
| 61 | change (cylinderEuclideanEquiv (cylinderEuclideanEquiv.symm |
| 62 | ((chartAt E₂ theta) (adaptedInverseCoordinates g₀ p).1, |
| 63 | standardSurgeryHeight g₀ p - s))).2 + s = _ |
| 64 | rw [ContinuousLinearEquiv.apply_symm_apply] |
| 65 | exact sub_add_cancel _ _ |
| 66 | |
| 67 | theorem centeredCylinderLift_comparisonCoordinates (g₀ : StandardInitialMetric) |
| 68 | (theta : UnitTwoSphere) (s : ℝ) {p : StandardCapSpace} |
| 69 | (hchart : (adaptedInverseCoordinates g₀ p).1 ∈ (chartAt E₂ theta).source) : |
| 70 | centeredCylinderLift theta s (comparisonCenteredCoordinates g₀ theta s p) = |
| 71 | comparisonCylinderMap g₀ p := by |
| 72 | apply Prod.ext |
| 73 | · change (chartAt E₂ theta).symm ((cylinderEuclideanEquiv (cylinderEuclideanEquiv.symm |
| 74 | ((chartAt E₂ theta) (adaptedInverseCoordinates g₀ p).1, |
| 75 | standardSurgeryHeight g₀ p - s))).1) = _ |
| 76 | rw [ContinuousLinearEquiv.apply_symm_apply] |
| 77 | exact (chartAt E₂ theta).left_inv hchart |
| 78 | · exact comparisonCenteredCoordinates_height g₀ theta s p |
| 79 | |
| 80 | theorem adaptedClippedCollapse_comparisonCylinderMap (g₀ : StandardInitialMetric) |
| 81 | {x : StandardCapSpace} (hx : x ≠ 0) : |
| 82 | adaptedClippedCollapse g₀ (surgeryCapRadius g₀) (comparisonCylinderMap g₀ x) = x := by |
| 83 | have hr : 0 < radialArclength g₀ ‖x‖ := radialArclength_pos g₀ (norm_pos_iff.mpr hx) |
| 84 | have hs : (comparisonCylinderMap g₀ x).2 < surgeryCapRadius g₀ := by |
| 85 | change g₀.cylindrical_end.radius + 4 - radialArclength g₀ ‖x‖ < |
| 86 | g₀.cylindrical_end.radius + 4 |
| 87 | linarith |
| 88 | rw [adaptedClippedCollapse_of_lt g₀ _ _ hs] |
| 89 | have hh : surgeryCapRadius g₀ - standardSurgeryHeight g₀ x = |
| 90 | (adaptedInverseCoordinates g₀ x).2 := by |
| 91 | dsimp [surgeryCapRadius, standardSurgeryHeight, adaptedInverseCoordinates] |
| 92 | ring |
| 93 | change adaptedPolarPoint g₀ ((adaptedInverseCoordinates g₀ x).1, |
| 94 | surgeryCapRadius g₀ - standardSurgeryHeight g₀ x) = x |
| 95 | rw [hh] |
| 96 | exact adaptedPolarPoint_inverse g₀ x hx |
| 97 | |
| 98 | noncomputable def comparisonCenteredStandardLift (g₀ : StandardInitialMetric) |
| 99 | (theta : UnitTwoSphere) (s : ℝ) : E₃ → StandardCapSpace := |
| 100 | adaptedClippedCollapse g₀ (surgeryCapRadius g₀) ∘ centeredCylinderLift theta s |
| 101 | |
| 102 | theorem comparisonCenteredStandardLift_contMDiffAt (g₀ : StandardInitialMetric) |
| 103 | (theta : UnitTwoSphere) (s : ℝ) {p : E₃} |
| 104 | (hp : cylinderHeightCovector p + s < 2) : |
| 105 | ContMDiffAt (𝓡 3) (𝓡 3) ∞ (comparisonCenteredStandardLift g₀ theta s) p := by |
| 106 | have htip : (centeredCylinderLift theta s p).2 < surgeryCapRadius g₀ := by |
| 107 | change cylinderHeightCovector p + s < g₀.cylindrical_end.radius + 4 |
| 108 | linarith [g₀.cylindrical_end.radius_pos] |
| 109 | exact ((adaptedClippedCollapse_contMDiffOn g₀ _ _ htip).contMDiffAt |
| 110 | ((isOpen_lt continuous_snd continuous_const).mem_nhds htip)).comp p |
| 111 | (centeredCylinderLift_contMDiff theta s p) |
| 112 | |
| 113 | theorem comparisonCenteredStandardLift_pullback (g₀ : StandardInitialMetric) |
| 114 | (theta : UnitTwoSphere) (s : ℝ) {p : E₃} |
| 115 | (hp : cylinderHeightCovector p + s < 2) : |
| 116 | g₀.metric.pullbackCoefficients (comparisonCenteredStandardLift g₀ theta s) p = |
| 117 | cylinderModelField p := by |
| 118 | let A := centeredCylinderLift theta s |
| 119 | have htip : (A p).2 < surgeryCapRadius g₀ := by |
| 120 | change cylinderHeightCovector p + s < g₀.cylindrical_end.radius + 4 |
| 121 | linarith [g₀.cylindrical_end.radius_pos] |
| 122 | have hclip := ((adaptedClippedCollapse_contMDiffOn g₀ _ (A p) htip).contMDiffAt |
| 123 | ((isOpen_lt continuous_snd continuous_const).mem_nhds htip)).mdifferentiableAt (by simp) |
| 124 | have hA := (centeredCylinderLift_contMDiff theta s p).mdifferentiableAt (by simp) |
| 125 | have hd := mfderiv_comp p hclip hA |
| 126 | apply euclideanThree_bilinear_ext |
| 127 | intro i j |
| 128 | change g₀.metric.inner (adaptedClippedCollapse g₀ (surgeryCapRadius g₀) (A p)) |
| 129 | (mfderiv (𝓡 3) (𝓡 3) (adaptedClippedCollapse g₀ (surgeryCapRadius g₀) ∘ A) p |
| 130 | (EuclideanSpace.basisFun (Fin 3) ℝ i)) |
| 131 | (mfderiv (𝓡 3) (𝓡 3) (adaptedClippedCollapse g₀ (surgeryCapRadius g₀) ∘ A) p |
| 132 | (EuclideanSpace.basisFun (Fin 3) ℝ j)) = _ |
| 133 | rw [hd] |
| 134 | change g₀.metric.inner (adaptedClippedCollapse g₀ (surgeryCapRadius g₀) (A p)) |
| 135 | (mfderiv IC (𝓡 3) (adaptedClippedCollapse g₀ (surgeryCapRadius g₀)) (A p) |
| 136 | (mfderiv (𝓡 3) IC A p (EuclideanSpace.basisFun (Fin 3) ℝ i))) |
| 137 | (mfderiv IC (𝓡 3) (adaptedClippedCollapse g₀ (surgeryCapRadius g₀)) (A p) |
| 138 | (mfderiv (𝓡 3) IC A p (EuclideanSpace.basisFun (Fin 3) ℝ j))) = _ |
| 139 | rw [adaptedClippedCollapse_bilinear_transition g₀ (A p) hp] |
| 140 | exact centeredCylinderLift_basis_gram theta s p i j |
| 141 | |
| 142 | variable {M : Type u} [TopologicalSpace M] [ChartedSpace E₃ M] |
| 143 | [IsManifold (𝓡 3) ∞ M] {g : RiemannianMetric 3 M} |
| 144 | |
| 145 | theorem comparisonNeckLift_contMDiffAt (g₀ : StandardInitialMetric) |
| 146 | (N : EpsilonNeck g) {x : StandardCapSpace} (hx : x ≠ 0) |
| 147 | (hheight : standardSurgeryHeight g₀ x ∈ Set.Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) : |
| 148 | ContMDiffAt (𝓡 3) (𝓡 3) ∞ (comparisonNeckLift g₀ N) x := |
| 149 | (neck_coordinate_contMDiffAt N (z := comparisonCylinderMap g₀ x) |
| 150 | ⟨Set.mem_univ _, hheight⟩).comp x (comparisonCylinderMap_contMDiffAt g₀ hx) |
| 151 | |
| 152 | theorem comparisonNeckError_contDiffAt (g₀ : StandardInitialMetric) |
| 153 | (N : EpsilonNeck g) {x : StandardCapSpace} (hx : x ≠ 0) |
| 154 | (hheight : standardSurgeryHeight g₀ x ∈ Set.Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) : |
| 155 | ContDiffAt ℝ ∞ (fun p => (normalizedNeckMetric N).pullbackCoefficients |
| 156 | (comparisonNeckLift g₀ N) p - g₀.metric.euclideanCoefficients p) x := |
| 157 | ((normalizedNeckMetric N).contDiffAt_pullbackCoefficients |
| 158 | (comparisonNeckLift_contMDiffAt g₀ N hx hheight)).sub |
| 159 | (g₀.metric.contDiffAt_euclideanCoefficients x) |
| 160 | |
| 161 | theorem pullbackCoefficients_congr_germ (g : RiemannianMetric 3 M) |
| 162 | {f k : E₃ → M} {x : E₃} (heq : f =ᶠ[nhds x] k) : |
| 163 | g.pullbackCoefficients f x = g.pullbackCoefficients k x := by |
| 164 | have hd := heq.mfderiv_eq (I := 𝓡 3) (I' := 𝓡 3) |
| 165 | apply ContinuousLinearMap.ext |
| 166 | intro v |
| 167 | apply ContinuousLinearMap.ext |
| 168 | intro w |
| 169 | change g.inner (f x) (mfderiv (𝓡 3) (𝓡 3) f x v) |
| 170 | (mfderiv (𝓡 3) (𝓡 3) f x w) = _ |
| 171 | rw [heq.self_of_nhds, hd] |
| 172 | rfl |
| 173 | |
| 174 | theorem comparisonNeckLift_pullbackCentered (g₀ : StandardInitialMetric) |
| 175 | (N : EpsilonNeck g) (theta : UnitTwoSphere) (s : ℝ) |
| 176 | {x : StandardCapSpace} (hx : x ≠ 0) |
| 177 | (hchart : (adaptedInverseCoordinates g₀ x).1 ∈ (chartAt E₂ theta).source) |
| 178 | (hheight : standardSurgeryHeight g₀ x ∈ Set.Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) : |
| 179 | (normalizedNeckMetric N).pullbackCoefficients (comparisonNeckLift g₀ N) x = |
| 180 | (centeredCylinderMetric (fun z v w => normalizedNeckForm N z v w) theta s |
| 181 | (comparisonCenteredCoordinates g₀ theta s x)).bilinearComp |
| 182 | (fderiv ℝ (comparisonCenteredCoordinates g₀ theta s) x) |
| 183 | (fderiv ℝ (comparisonCenteredCoordinates g₀ theta s) x) := by |
| 184 | let Phi := comparisonCenteredCoordinates g₀ theta s |
| 185 | have hPhi := comparisonCenteredCoordinates_contDiffAt_of_mem g₀ theta s hx hchart |
| 186 | have hmem : Phi x ∈ centeredNeckDomain N s := by |
| 187 | change cylinderHeightCovector (Phi x) + s ∈ Set.Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ |
| 188 | rw [comparisonCenteredCoordinates_height] |
| 189 | exact hheight |
| 190 | have heq : centeredNeckLift N theta s ∘ Phi =ᶠ[nhds x] comparisonNeckLift g₀ N := by |
| 191 | filter_upwards [comparison_chart_source_nhds g₀ theta hx hchart] with p hp |
| 192 | change N.coordinate_map (centeredCylinderLift theta s (Phi p)) = |
| 193 | N.coordinate_map (comparisonCylinderMap g₀ p) |
| 194 | rw [centeredCylinderLift_comparisonCoordinates g₀ theta s hp] |
| 195 | rw [← pullbackCoefficients_congr_germ (normalizedNeckMetric N) heq, |
| 196 | pullbackCoefficients_comp _ (centeredNeckLift_contMDiffAt N theta s hmem) hPhi, |
| 197 | normalizedNeckMetric_pullbackCoefficients N theta s hmem] |
| 198 | |
| 199 | theorem comparisonStandard_pullbackCentered (g₀ : StandardInitialMetric) |
| 200 | (theta : UnitTwoSphere) (s : ℝ) {x : StandardCapSpace} (hx : x ≠ 0) |
| 201 | (hchart : (adaptedInverseCoordinates g₀ x).1 ∈ (chartAt E₂ theta).source) |
| 202 | (hheight : standardSurgeryHeight g₀ x < 2) : |
| 203 | g₀.metric.euclideanCoefficients x = |
| 204 | (cylinderModelField (comparisonCenteredCoordinates g₀ theta s x)).bilinearComp |
| 205 | (fderiv ℝ (comparisonCenteredCoordinates g₀ theta s) x) |
| 206 | (fderiv ℝ (comparisonCenteredCoordinates g₀ theta s) x) := by |
| 207 | let Phi := comparisonCenteredCoordinates g₀ theta s |
| 208 | have hPhi := comparisonCenteredCoordinates_contDiffAt_of_mem g₀ theta s hx hchart |
| 209 | have hh : cylinderHeightCovector (Phi x) + s < 2 := by |
| 210 | rw [comparisonCenteredCoordinates_height] |
| 211 | exact hheight |
| 212 | have heq : comparisonCenteredStandardLift g₀ theta s ∘ Phi =ᶠ[nhds x] id := by |
| 213 | filter_upwards [comparison_chart_source_nhds g₀ theta hx hchart, |
| 214 | isOpen_compl_singleton.mem_nhds (by simpa using hx : x ∈ ({0}ᶜ : Set E₃))] with p hp hp0 |
| 215 | change adaptedClippedCollapse g₀ (surgeryCapRadius g₀) |
| 216 | (centeredCylinderLift theta s (Phi p)) = p |
| 217 | rw [centeredCylinderLift_comparisonCoordinates g₀ theta s hp] |
| 218 | exact adaptedClippedCollapse_comparisonCylinderMap g₀ (by simpa using hp0) |
| 219 | have hid : g₀.metric.pullbackCoefficients id x = g₀.metric.euclideanCoefficients x := by |
| 220 | apply ContinuousLinearMap.ext |
| 221 | intro v |
| 222 | apply ContinuousLinearMap.ext |
| 223 | intro w |
| 224 | change g₀.metric.inner x (mfderiv (𝓡 3) (𝓡 3) id x v) |
| 225 | (mfderiv (𝓡 3) (𝓡 3) id x w) = _ |
| 226 | rw [mfderiv_id] |
| 227 | rfl |
| 228 | rw [← hid, ← pullbackCoefficients_congr_germ g₀.metric heq, |
| 229 | pullbackCoefficients_comp _ (comparisonCenteredStandardLift_contMDiffAt g₀ theta s hh) hPhi, |
| 230 | comparisonCenteredStandardLift_pullback g₀ theta s hh] |
| 231 | |
| 232 | theorem comparisonNeckError_centered_germ (g₀ : StandardInitialMetric) |
| 233 | (N : EpsilonNeck g) {x : StandardCapSpace} (hx : x ≠ 0) |
| 234 | (hheight : standardSurgeryHeight g₀ x ∈ Set.Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) |
| 235 | (hx₂ : standardSurgeryHeight g₀ x < 2) : |
| 236 | (fun p => (normalizedNeckMetric N).pullbackCoefficients (comparisonNeckLift g₀ N) p - |
| 237 | g₀.metric.euclideanCoefficients p) =ᶠ[nhds x] |
| 238 | fun p => (centeredCylinderError (fun z v w => normalizedNeckForm N z v w) |
| 239 | (adaptedInverseCoordinates g₀ x).1 (standardSurgeryHeight g₀ x) |
| 240 | (comparisonCenteredCoordinates g₀ (adaptedInverseCoordinates g₀ x).1 |
| 241 | (standardSurgeryHeight g₀ x) p)).bilinearComp |
| 242 | (fderiv ℝ (comparisonCenteredCoordinates g₀ (adaptedInverseCoordinates g₀ x).1 |
| 243 | (standardSurgeryHeight g₀ x)) p) |
| 244 | (fderiv ℝ (comparisonCenteredCoordinates g₀ (adaptedInverseCoordinates g₀ x).1 |
| 245 | (standardSurgeryHeight g₀ x)) p) := by |
| 246 | let theta := (adaptedInverseCoordinates g₀ x).1 |
| 247 | let s := standardSurgeryHeight g₀ x |
| 248 | have hnonzero : ∀ᶠ p in nhds x, p ≠ (0 : StandardCapSpace) := |
| 249 | isOpen_compl_singleton.mem_nhds hx |
| 250 | have hneck : ∀ᶠ p in nhds x, |
| 251 | standardSurgeryHeight g₀ p ∈ Set.Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ := |
| 252 | (standardSurgeryHeight_continuous g₀).continuousAt.preimage_mem_nhds |
| 253 | (isOpen_Ioo.mem_nhds hheight) |
| 254 | have htwo : ∀ᶠ p in nhds x, standardSurgeryHeight g₀ p < 2 := |
| 255 | (isOpen_lt (standardSurgeryHeight_continuous g₀) continuous_const).mem_nhds hx₂ |
| 256 | filter_upwards [hnonzero, hneck, htwo, |
| 257 | comparison_chart_source_nhds g₀ theta hx (mem_chart_source E₂ _)] with p hp hpneck hp₂ hpchart |
| 258 | rw [comparisonNeckLift_pullbackCentered g₀ N theta s hp hpchart hpneck, |
| 259 | comparisonStandard_pullbackCentered g₀ theta s hp hpchart hp₂] |
| 260 | have herr := congrFun (centeredCylinderMetric_sub_model |
| 261 | (fun z v w => normalizedNeckForm N z v w) theta s) |
| 262 | (comparisonCenteredCoordinates g₀ theta s p) |
| 263 | apply ContinuousLinearMap.ext |
| 264 | intro v |
| 265 | apply ContinuousLinearMap.ext |
| 266 | intro w |
| 267 | simp only [sub_apply, ContinuousLinearMap.bilinearComp_apply] |
| 268 | rw [← herr] |
| 269 | rfl |
| 270 | |
| 271 | /-- Claim 13.1 in the literal cap coordinates. The constant depends only |
| 272 | on the fixed standard metric, compact set and derivative order. -/ |
| 273 | theorem exists_comparisonNeckMetric_jet_bound (g₀ : StandardInitialMetric) |
| 274 | {K : Set StandardCapSpace} (hK : IsCompact K) (hK0 : ∀ x ∈ K, x ≠ 0) |
| 275 | (hKheight : ∀ x ∈ K, standardSurgeryHeight g₀ x < 2) (m : ℕ) : |
| 276 | ∃ C : ℝ, 1 ≤ C ∧ |
| 277 | ∀ {M' : Type u} [TopologicalSpace M'] [ChartedSpace E₃ M'] [IsManifold (𝓡 3) ∞ M'] |
| 278 | {g' : RiemannianMetric 3 M'} (N : EpsilonNeck g'), |
| 279 | m ≤ ⌊N.epsilon⁻¹⌋₊ → |
| 280 | (∀ x ∈ K, standardSurgeryHeight g₀ x ∈ Set.Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) → |
| 281 | ∀ x ∈ K, ∀ j : ℕ, j ≤ m → |
| 282 | ‖iteratedFDeriv ℝ j (fun p => |
| 283 | (normalizedNeckMetric N).pullbackCoefficients (comparisonNeckLift g₀ N) p - |
| 284 | g₀.metric.euclideanCoefficients p) x‖ ≤ C * N.epsilon := by |
| 285 | classical |
| 286 | choose D hD hDbound using fun j : Fin (m + 1) => exists_centeredCylinderError_jet_bound j |
| 287 | let D0 : ℝ := 1 + ∑ j : Fin (m + 1), D j |
| 288 | have hD0 : 0 < D0 := by |
| 289 | have hsum : 0 ≤ ∑ j : Fin (m + 1), D j := |
| 290 | Finset.sum_nonneg (fun j _ => (hD j).le) |
| 291 | dsimp [D0] |
| 292 | linarith |
| 293 | have hDle (j : Fin (m + 1)) : D j ≤ D0 := by |
| 294 | have h := Finset.single_le_sum (f := D) (fun j _ => (hD j).le) (Finset.mem_univ j) |
| 295 | dsimp [D0] |
| 296 | linarith |
| 297 | obtain ⟨Q, hQ, hQbound⟩ := exists_comparisonCenteredCoordinates_jet_bound g₀ hK hK0 (m + 1) |
| 298 | have hQ0 : 0 ≤ Q := zero_le_one.trans hQ |
| 299 | let L : ℝ := 2 ^ m * 2 ^ m * m.factorial * Q ^ m * Q * Q |
| 300 | have hL : 0 ≤ L := by dsimp [L]; positivity |
| 301 | refine ⟨1 + L * D0, le_add_of_nonneg_right (mul_nonneg hL hD0.le), ?_⟩ |
| 302 | intro M' _ _ _ g' N horder hheight x hx j hj |
| 303 | let B : RoundCylinderTwoTensor := fun z v w => normalizedNeckForm N z v w |
| 304 | let z : RoundCylinderSpace := comparisonCylinderMap g₀ x |
| 305 | let Phi := comparisonCenteredCoordinates g₀ z.1 z.2 |
| 306 | have hB : RoundCylinderClose N.epsilon 0 B := N.metric_comparison.close |
| 307 | have hz : z.2 ∈ Set.Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ := hheight x hx |
| 308 | have hPhi0 : Phi x = 0 := comparisonCenteredCoordinates_self g₀ x |
| 309 | have hPhi : ContDiffAt ℝ ∞ Phi x := comparisonCenteredCoordinates_contDiffAt g₀ (hK0 x hx) |
| 310 | have hBs : ContDiffAt ℝ ∞ (centeredCylinderError B z.1 z.2) (Phi x) := by |
| 311 | rw [hPhi0] |
| 312 | exact centeredCylinderError_contDiffAt hB z hz |
| 313 | have hBj (l : ℕ) (hl : l ≤ j) : |
| 314 | ‖iteratedFDeriv ℝ l (centeredCylinderError B z.1 z.2) (Phi x)‖ ≤ D0 * N.epsilon := by |
| 315 | rw [hPhi0] |
| 316 | let l' : Fin (m + 1) := ⟨l, Nat.lt_succ_of_le (hl.trans hj)⟩ |
| 317 | exact (hDbound l' N.epsilon_pos hB ((hl.trans hj).trans horder) z hz).trans |
| 318 | (mul_le_mul_of_nonneg_right (hDle l') N.epsilon_pos.le) |
| 319 | have hjet := norm_iteratedFDeriv_bilinearPullback_at hPhi hBs j |
| 320 | (mul_nonneg hD0.le N.epsilon_pos.le) hQ hBj |
| 321 | (fun l _ hl => hQbound x hx l (by omega)) |
| 322 | have hconstant : (2 : ℝ) ^ j * 2 ^ j * j.factorial * Q ^ j * Q * Q ≤ L := by |
| 323 | dsimp [L] |
| 324 | gcongr <;> norm_num |
| 325 | have heq := comparisonNeckError_centered_germ g₀ N (hK0 x hx) hz (hKheight x hx) |
| 326 | rw [(heq.iteratedFDeriv ℝ j).self_of_nhds] |
| 327 | exact hjet.trans ((mul_le_mul_of_nonneg_right hconstant |
| 328 | (mul_nonneg hD0.le N.epsilon_pos.le)).trans (by nlinarith [N.epsilon_pos])) |
| 329 | |
| 330 | end PoincareMT.MetricSurgery |