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.Persistence.Analysis.Compactness.MovingTimeComparison |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Cylinder.CylinderMovingEstimates |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Compactness.CylinderCompactnessFeedEstimates |
| 4 | |
| 5 | /-! |
| 6 | # Actual spatial comparison up to moving stopping times |
| 7 | |
| 8 | The actual cylinder estimates and birth convergence upgrade interior |
| 9 | standard-flow identification to uniform spatial jets on the whole |
| 10 | moving half-open interval, including a zero limiting duration. |
| 11 | Morgan--Tian, Corollary 16.9, p. 373; M44 derivations 94-95. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M44 |
| 23 | |
| 24 | open SpacetimeBounds |
| 25 | |
| 26 | local notation "E" => StandardCapSpace |
| 27 | |
| 28 | noncomputable local instance movingJetsCoefficientNorm : |
| 29 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 30 | |
| 31 | noncomputable local instance movingJetsCoefficientSpace : |
| 32 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 33 | |
| 34 | variable {g0 : StandardInitialMetric} {F : ℕ → SurgeryFlowData.{u}} |
| 35 | {a : ℕ → ℝ} {ha : ∀ k, a k ∈ (F k).surgery_times} |
| 36 | [∀ k, Nonempty ((F k).slice (a k)).carrier] |
| 37 | {i : ∀ k, Fin ((F k).event (a k) (ha k)).cap_count} |
| 38 | |
| 39 | /-- The actual common time modulus upgrades compact interior |
| 40 | standard comparison to the entire moving lifetime. Source: |
| 41 | Corollary 16.9, p. 373; M44 derivations 94-95. -/ |
| 42 | theorem eventually_cylinder_moving_spatial_comparison |
| 43 | (P : M44CapPersistencePredecessors.{u}) |
| 44 | (standard : RepairedStandardCapExistenceData g0) |
| 45 | (D : ∀ k, CylinderCompactnessSample g0 (F k) (a k) (ha k) (i k)) |
| 46 | (hR : Tendsto (fun k => (D k).radius) atTop atTop) |
| 47 | (heta : Tendsto (fun k => (D k).eta) atTop (𝓝 0)) |
| 48 | {H c K : ℝ} (hH : 0 < H) (hH1 : H < 1) (hc : 0 ≤ c) (hcH : c ≤ H) |
| 49 | (hlife : ∀ k, (D k).lifetime ≤ H) |
| 50 | (hlim : Tendsto (fun k => (D k).lifetime) atTop (𝓝 c)) (hK : 0 < K) |
| 51 | (hcurv : ∀ᶠ k in atTop, ∀ t ∈ Ico (0 : ℝ) (D k).lifetime, ∀ y, |
| 52 | ((D k).ordinary.flow.connection t).curvatureTensorNorm y ≤ K) |
| 53 | (m : ℕ) {C : Set E} (hC : IsCompact C) |
| 54 | (hinterior : ∀ b : ℝ, 0 ≤ b → b < c → TendstoUniformlyOn |
| 55 | (fun k p => iteratedFDeriv ℝ m (fun y => (D k).coefficients (p.1, y)) p.2) |
| 56 | (fun p => iteratedFDeriv ℝ m (standard.flow.metric p.1).euclideanCoefficients p.2) |
| 57 | atTop (Icc (0 : ℝ) b ×ˢ C)) : |
| 58 | ∀ epsilon : ℝ, 0 < epsilon → ∀ᶠ k in atTop, |
| 59 | ∀ t ∈ Ico (0 : ℝ) (D k).lifetime, ∀ x ∈ C, |
| 60 | ‖iteratedFDeriv ℝ m (fun y => (D k).coefficients (t, y)) x - |
| 61 | iteratedFDeriv ℝ m (standard.flow.metric t).euclideanCoefficients x‖ < epsilon := by |
| 62 | obtain ⟨L, hL, hmod⟩ := eventually_cylinder_open_jet_modulus P D hR heta hH hK |
| 63 | hlife hcurv m hC |
| 64 | have hid (g : RiemannianMetric 3 E) : g.pullbackCoefficients id = g.euclideanCoefficients := by |
| 65 | ext y v w |
| 66 | simp only [RiemannianMetric.pullbackCoefficients, mfderiv_id, |
| 67 | RiemannianMetric.euclideanCoefficients] |
| 68 | rfl |
| 69 | have hsmooth : ContDiffOn ℝ ∞ (fun p : ℝ × E => |
| 70 | (standard.flow.metric p.1).euclideanCoefficients p.2) |
| 71 | (Ico 0 standard.flow.base.lifetime ×ˢ univ) := by |
| 72 | simpa only [hid, MaximalStandardCapFlow.metric] using |
| 73 | contDiffOn_pullbackCoefficients_within standard.flow.base.flow |
| 74 | isOpen_univ (contMDiff_id.contMDiffOn (s := univ)) |
| 75 | have hsub : Icc (0 : ℝ) H ⊆ Ico (0 : ℝ) standard.flow.base.lifetime := by |
| 76 | rw [standard.lifetime_one] |
| 77 | exact fun _ ht => ⟨ht.1, ht.2.trans_lt hH1⟩ |
| 78 | have hcont : ContinuousOn (fun p : ℝ × E => |
| 79 | iteratedFDeriv ℝ m (standard.flow.metric p.1).euclideanCoefficients p.2) |
| 80 | (Icc (0 : ℝ) H ×ˢ C) := |
| 81 | (contDiffOn_spatialJet_within hsmooth (uniqueDiffOn_Ico 0 standard.flow.base.lifetime) |
| 82 | isOpen_univ m).continuousOn.mono (prod_mono hsub (subset_univ C)) |
| 83 | have hbirth : TendstoUniformlyOn |
| 84 | (fun k x => iteratedFDeriv ℝ m (fun y => (D k).coefficients (0, y)) x) |
| 85 | (fun x => iteratedFDeriv ℝ m (standard.flow.metric 0).euclideanCoefficients x) |
| 86 | atTop C := by |
| 87 | simpa only [MaximalStandardCapFlow.metric, standard.flow.base.initial_metric] using |
| 88 | tendstoUniformlyOn_cylinder_initial_spatial_jet D hR heta m hC |
| 89 | have hmod' : ∀ᶠ k in atTop, ∀ s ∈ Ico (0 : ℝ) (D k).lifetime, |
| 90 | ∀ t ∈ Ico (0 : ℝ) (D k).lifetime, ∀ x ∈ C, |
| 91 | dist (iteratedFDeriv ℝ m (fun y => (D k).coefficients (t, y)) x) |
| 92 | (iteratedFDeriv ℝ m (fun y => (D k).coefficients (s, y)) x) ≤ L * |t - s| := by |
| 93 | simpa only [dist_eq_norm] using hmod |
| 94 | simpa only [dist_eq_norm] using Poincare.uniformly_close_on_moving_initial_intervals |
| 95 | hC hc hcH hL hlim hlife hcont hbirth hinterior hmod' |
| 96 | |
| 97 | end PoincareMT.M44 |