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.RotationInvariance.EndPullbackFlow |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Coordinates.PartialFlowSpatialJetBounds |
| 3 | |
| 4 | /-! |
| 5 | # Uniform bounds for the actual translated flows |
| 6 | |
| 7 | One compact reference set controls ellipticity and every finite collection |
| 8 | of spatial metric jets for all actual translated flows. The constants are |
| 9 | chosen before the translation, time, chart center and reference point. |
| 10 | This supplies the uniform local estimates in Morgan-Tian Section 12.5, |
| 11 | pp. 309-319; see translated-pullback-flows.md. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | -- Metric jets take values in twice-curried continuous linear maps. |
| 17 | set_option maxSynthPendingDepth 8 |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | /-- All actual end pullback flows share compact-reference ellipticity and |
| 25 | finite spatial jet bounds on a bounded-curvature horizon |
| 26 | (Section 12.5, pp. 309-319). -/ |
| 27 | theorem partialFlow_endPullback_bounds (P : RicciFlowCurvatureTheory.{0}) |
| 28 | {g0 : StandardInitialMetric} (E0 : StandardCapEstimate g0) |
| 29 | (F : PartialStandardCapFlow g0) (e : StandardCylindricalEnd g0.metric) |
| 30 | {S B : ℝ} (hS : 0 < S) (hSF : S ≤ F.lifetime) (hB : 0 < B) |
| 31 | (hfull : ∀ t ∈ Ico 0 S, ∀ x : StandardCapSpace, |
| 32 | (F.flow.connection t).curvatureTensorNorm x ≤ B) |
| 33 | {K : Set StandardCapSpace} (hK : IsCompact K) (m : ℕ) : |
| 34 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 35 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 36 | (I := 𝓡 3) (n := ∞) |
| 37 | ∃ a M : ℝ, 0 < a ∧ 1 ≤ M ∧ ∀ (s : ℝ) (hs : -3 < s), |
| 38 | ∀ t ∈ Ico 0 S, ∀ (p : endReferenceRegion e) (x : StandardCapSpace), |
| 39 | x ∈ K → x ∈ endReferenceRegion e → |
| 40 | (∀ j ≤ m, ‖iteratedFDeriv ℝ j |
| 41 | (((endPullbackFlow e F.flow s hs).metric t).pullbackCoefficients |
| 42 | (extChartAt (𝓡 3) p).symm) x‖ ≤ M) ∧ |
| 43 | (∀ v : StandardCapSpace, a * ‖v‖ ^ 2 ≤ |
| 44 | ((endPullbackFlow e F.flow s hs).metric t).pullbackCoefficients |
| 45 | (extChartAt (𝓡 3) p).symm x v v) := by |
| 46 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 47 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 48 | (I := 𝓡 3) (n := ∞) |
| 49 | obtain ⟨a, b, ha, _hb, hell⟩ := |
| 50 | partialFlow_compactPullback_ellipticity P F hSF hB.le hfull hK |
| 51 | obtain ⟨M, hM, hjets⟩ := |
| 52 | partialFlow_compactPullback_spatialJet_bounds P E0 F hS hSF hB hfull hK m |
| 53 | refine ⟨a, M, ha, hM, ?_⟩ |
| 54 | intro s hs t ht p x hx hxU |
| 55 | constructor |
| 56 | · intro j hj |
| 57 | rw [endPullbackFlow_iteratedFDeriv e F.flow s hs t p j x hxU] |
| 58 | exact hjets j hj (endReferenceRegion_isOpen e) |
| 59 | (endReferenceTranslation_contMDiffOn e hs) |
| 60 | (fun _ hy => endReferenceTranslation_mfderiv_isInvertible e hs hy) |
| 61 | (fun _ hy u v => endReferenceTranslation_metric e hs hy u v) t ht x hx hxU |
| 62 | · intro v |
| 63 | rw [endPullbackFlow_chart_coefficients e F.flow s hs t p x hxU] |
| 64 | exact (hell t ht x hx (endAxialTranslation e s) |
| 65 | (fun u v => endReferenceTranslation_metric e hs hxU u v) v).1 |
| 66 | |
| 67 | end PoincareMT.M34 |