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.StandardCap.Existence.Analysis.Energy.CutoffL2SpatialJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Asymptotics.EndCylinderDifference |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.EndSlabCover |
| 4 | |
| 5 | /-! |
| 6 | # Spatial-jet decay of the actual end-cylinder difference |
| 7 | |
| 8 | The proved compact-cutoff L2 energy of the native coefficient |
| 9 | difference decays uniformly on a closed common time horizon. The |
| 10 | generic cutoff-to-jet comparison therefore sends every spatial jet to |
| 11 | zero, uniformly on the cutoff plateau slab. This is Proposition 12.7, |
| 12 | pp. 298-299 and cutoff-l2-spatial-jets.md. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option maxSynthPendingDepth 8 |
| 18 | |
| 19 | open Set MeasureTheory Filter |
| 20 | open scoped Manifold ContDiff Topology BigOperators |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | open DifferenceEnergy |
| 25 | |
| 26 | variable (P : RicciFlowCurvatureTheory.{0}) {g0 : StandardInitialMetric} |
| 27 | (E0 : StandardCapEstimate g0) (F : PartialStandardCapFlow g0) |
| 28 | (e : StandardCylindricalEnd g0.metric) |
| 29 | {dH dA dS : ℕ} (qH : FH 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dH)) |
| 30 | (qA : FA 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dA)) |
| 31 | (qS : FS 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dS)) (p : endReferenceRegion e) |
| 32 | |
| 33 | include P E0 qH qA qS p |
| 34 | |
| 35 | /-- Finite-coordinate cutoff energy of the native end-cylinder difference |
| 36 | vanishes uniformly on a closed common horizon |
| 37 | (Proposition 12.7, pp. 298-299). -/ |
| 38 | theorem partialFlow_endCylinder_cutoffCoordinateEnergy_tendstoUniformlyOn {T : ℝ} |
| 39 | (hT : T ∈ Ico 0 F.lifetime ∩ Ico 0 1) : |
| 40 | TendstoUniformlyOn |
| 41 | (fun j t => cutoffCoordinateEnergy (qH : FH 3 →L[ℝ] EuclideanSpace ℝ (Fin dH)) |
| 42 | (endEnergyCutoff e) (endCylinderDifferenceCoefficients e F.flow (j + 1) t)) |
| 43 | (fun _ => 0) atTop (Icc 0 T) := by |
| 44 | let : MeasurableSpace StandardCapSpace := borel _ |
| 45 | let : BorelSpace StandardCapSpace := ⟨rfl⟩ |
| 46 | have hE := |
| 47 | partialFlow_endCylinderDifferenceEnergy_tendstoUniformlyOn P E0 F e qH qA qS p hT |
| 48 | apply Metric.tendstoUniformlyOn_iff.mpr |
| 49 | intro ε hε |
| 50 | filter_upwards [(Metric.tendstoUniformlyOn_iff.mp hE) ε hε] with j hj t ht |
| 51 | have hnn := cutoffCoordinateEnergy_nonneg |
| 52 | (qH : FH 3 →L[ℝ] EuclideanSpace ℝ (Fin dH)) (endEnergyCutoff e) |
| 53 | (endCylinderDifferenceCoefficients e F.flow (j + 1) t) |
| 54 | have htJ : t ∈ Ico 0 F.lifetime ∩ Ico 0 1 := |
| 55 | ⟨⟨ht.1, ht.2.trans_lt hT.1.2⟩, ⟨ht.1, ht.2.trans_lt hT.2.2⟩⟩ |
| 56 | have hle : |
| 57 | cutoffCoordinateEnergy (qH : FH 3 →L[ℝ] EuclideanSpace ℝ (Fin dH)) |
| 58 | (endEnergyCutoff e) |
| 59 | (endCylinderDifferenceCoefficients e F.flow (j + 1) t) ≤ |
| 60 | endCylinderDifferenceEnergy e qH qA qS F.flow p (j + 1) t := by |
| 61 | simpa [cutoffCoordinateEnergy] using |
| 62 | endCylinderDifferenceCoefficients_energy_le e qH qA qS F.flow p htJ (j + 1) |
| 63 | have hEd : endCylinderDifferenceEnergy e qH qA qS F.flow p (j + 1) t < ε := by |
| 64 | have := hj t ht |
| 65 | rwa [dist_comm, dist_eq_norm, sub_zero, Real.norm_eq_abs, |
| 66 | abs_of_nonneg (endCylinderDifferenceEnergy_nonneg e qH qA qS F.flow p (j + 1) t)] |
| 67 | at this |
| 68 | rw [dist_comm, dist_eq_norm, sub_zero, Real.norm_eq_abs, abs_of_nonneg hnn] |
| 69 | exact hle.trans_lt hEd |
| 70 | |
| 71 | /-- Every spatial jet of the native end-cylinder difference vanishes |
| 72 | uniformly on the cutoff plateau, before the translation index and |
| 73 | included time (Proposition 12.7, pp. 298-299). -/ |
| 74 | theorem partialFlow_endCylinderDifferenceCoefficients_iteratedFDeriv_tendsto |
| 75 | {T : ℝ} (hT : T ∈ Ico 0 F.lifetime ∩ Ico 0 1) (m : ℕ) {ε : ℝ} (hε : 0 < ε) : |
| 76 | ∃ N, ∀ k ≥ N, ∀ t ∈ Icc 0 T, |
| 77 | ∀ x ∈ endClosedSlab e (17 / 5) (23 / 5), |
| 78 | ‖iteratedFDeriv ℝ m |
| 79 | (endCylinderDifferenceCoefficients e F.flow (k + 1) t) x‖ < ε := by |
| 80 | let : MeasurableSpace StandardCapSpace := borel _ |
| 81 | let : BorelSpace StandardCapSpace := ⟨rfl⟩ |
| 82 | let U := endReferenceRegion e |
| 83 | have hU : IsOpen U := endReferenceRegion_isOpen e |
| 84 | have hφ := (energyCutoffs_contDiff e).1.continuous |
| 85 | have hφc := (energyCutoffs_hasCompactSupport e).1 |
| 86 | have hφU := endEnergyCutoff_tsupport_subset_region e |
| 87 | have hK : IsCompact (endClosedSlab e (17 / 5) (23 / 5)) := |
| 88 | endClosedSlab_isCompact e (by norm_num) |
| 89 | have hKφ : endClosedSlab e (17 / 5) (23 / 5) ⊆ {y | endEnergyCutoff e y ≠ 0} := by |
| 90 | intro y hy |
| 91 | have hy1 : endEnergyCutoff e y = 1 := endEnergyCutoff_eq_one_on_slab (e := e) hy |
| 92 | simp [hy1] |
| 93 | have hf : ∀ k t, t ∈ Icc (0 : ℝ) T → |
| 94 | ContDiffOn ℝ ∞ (endCylinderDifferenceCoefficients e F.flow (k + 1) t) U := |
| 95 | fun k t _ => endCylinderDifferenceCoefficients_contDiffOn e F.flow (k + 1) t |
| 96 | have hbound : ∀ K, IsCompact K → K ⊆ U → ∀ m' : ℕ, ∃ M : ℝ, |
| 97 | ∀ k t, t ∈ Icc (0 : ℝ) T → ∀ x ∈ K, |
| 98 | ‖iteratedFDeriv ℝ m' (endCylinderDifferenceCoefficients e F.flow (k + 1) t) x‖ ≤ M := by |
| 99 | intro K hKc hKU m' |
| 100 | obtain ⟨M, hM⟩ := |
| 101 | partialFlow_endCylinderDifferenceCoefficients_bounds P E0 F e hT hKc m' |
| 102 | refine ⟨M, fun k t ht x hx => hM (k + 1) t ht x hx (hKU hx)⟩ |
| 103 | have hL := |
| 104 | partialFlow_endCylinder_cutoffCoordinateEnergy_tendstoUniformlyOn |
| 105 | P E0 F e qH qA qS p hT |
| 106 | exact tendstoUniformlyOn_iteratedFDeriv_of_cutoff_energy_Icc hU |
| 107 | (qH : FH 3 →L[ℝ] EuclideanSpace ℝ (Fin dH)) qH.injective |
| 108 | hφ hφc hφU hf hbound hL m hK hKφ ε hε |
| 109 | |
| 110 | end PoincareMT.M34 |