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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.IntrinsicShapeAmbientBall |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.IntrinsicCenterNormalization |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.IntrinsicCollarPoint |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.IntrinsicCollarJets |
| 6 | |
| 7 | /-! |
| 8 | # Actual angular-profile limits on the entire intrinsic collar |
| 9 | |
| 10 | Morgan-Tian Theorem 12.32, pp. 326-327. Every bounded radial offset is |
| 11 | realized by a point of the actual normalized ambient ball. The retained |
| 12 | shape estimates therefore apply throughout the collar, including moving |
| 13 | points at its endpoints. The conclusion is about the actual squared |
| 14 | orbit radius and all its genuine arclength derivatives. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 22 | |
| 23 | namespace PoincareMT.M35.OrdinaryRealization |
| 24 | |
| 25 | open Uniqueness |
| 26 | |
| 27 | local notation "V" => StandardCapSpace |
| 28 | |
| 29 | /-- Theorem 12.32: the actual angular coefficient converges with all |
| 30 | arclength derivatives at any moving point of a bounded full collar. -/ |
| 31 | theorem blowupSequence_intrinsic_collar_profile_jets |
| 32 | (P : M35StandardCapPredecessors) |
| 33 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 34 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 35 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 36 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 37 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 38 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 39 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 40 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 41 | (A : BlowupAncientKappaIdentification L.limit kappa) : |
| 42 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 43 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 44 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 45 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 46 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 47 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 48 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 49 | letI : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 50 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 51 | ∀ (_N : M27SphereLineFlowCertificate A.solution), |
| 52 | ∀ (idx : ℕ → ℕ), Tendsto idx atTop atTop → |
| 53 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence (idx k)) |
| 54 | let hQ k := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence (idx k)) |
| 55 | let G (k : ℕ) : RiemannianMetric 3 V := |
| 56 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence (idx k)))) (Q k) (hQ k) |
| 57 | let hrot k := scaleSmoothMetric_rotation_invariant |
| 58 | (E.rotation_invariant (t (L.subsequence (idx k))) (ht _)) (Q k) (hQ k) |
| 59 | let hc k := scaleSmoothMetric_complete (E.flow.metric (t (L.subsequence (idx k)))) |
| 60 | (E.complete (t (L.subsequence (idx k))) (ht _)) (Q k) (hQ k) |
| 61 | let a k := radialArclength (G k) ‖x (L.subsequence (idx k))‖ |
| 62 | ∀ (s : ℕ → ℝ) (length : ℝ), 0 ≤ length → |
| 63 | (∀ᶠ k in atTop, |s k - a k| ≤ length) → ∀ m : ℕ, |
| 64 | Tendsto (fun k => iteratedDeriv m |
| 65 | (fun u => intrinsicWarpingRadius (G k) (hrot k) (hc k) u ^ 2) (s k)) |
| 66 | atTop (𝓝 (if m = 0 then 2 else 0)) := by |
| 67 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 68 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 69 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 70 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 71 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 72 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 73 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 74 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 75 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 76 | intro N idx hidx |
| 77 | dsimp only |
| 78 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence (idx k)) |
| 79 | have hQ (k : ℕ) : 0 < Q k := |
| 80 | (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence (idx k)) |
| 81 | let G (k : ℕ) : RiemannianMetric 3 V := |
| 82 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence (idx k)))) (Q k) (hQ k) |
| 83 | have hrot k := scaleSmoothMetric_rotation_invariant |
| 84 | (E.rotation_invariant (t (L.subsequence (idx k))) (ht _)) (Q k) (hQ k) |
| 85 | have hc k := scaleSmoothMetric_complete (E.flow.metric (t (L.subsequence (idx k)))) |
| 86 | (E.complete (t (L.subsequence (idx k))) (ht _)) (Q k) (hQ k) |
| 87 | let D k := M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence (idx k)))) |
| 88 | (Q k) (hQ k) |
| 89 | have hsec k : (D k).NonnegativeSectionalCurvature := |
| 90 | scaleLeviCivitaData_nonnegative_sectional |
| 91 | (E.flow.connection (t (L.subsequence (idx k)))) |
| 92 | (E.nonnegative_sectional (t (L.subsequence (idx k))) (ht _)) (Q k) (hQ k) |
| 93 | let a k := radialArclength (G k) ‖x (L.subsequence (idx k))‖ |
| 94 | obtain ⟨ha₀, hcenter₀⟩ := blowupSequence_intrinsic_center_limits P E t x ht hR hd L |
| 95 | have ha : Tendsto a atTop atTop := ha₀.comp hidx |
| 96 | have hcenter := hcenter₀.comp hidx |
| 97 | intro s length hlength hcollar |
| 98 | have hs : ∀ᶠ k in atTop, 0 < s k := by |
| 99 | filter_upwards [ha.eventually (eventually_gt_atTop (length + 1)), hcollar] |
| 100 | with k hak hsk |
| 101 | linarith [(abs_le.mp hsk).1] |
| 102 | have hvalue := intrinsic_collar_orbit_sq_tendsto_two G hrot hc D hsec a s ha hcenter |
| 103 | hlength hcollar |
| 104 | apply intrinsic_orbit_sq_jets_tendsto G hrot hc s hs hvalue |
| 105 | intro m |
| 106 | apply Metric.tendsto_nhds.mpr |
| 107 | intro epsilon hepsilon |
| 108 | have hball := hidx.eventually (blowupSequence_intrinsic_shape_on_ambient_ball |
| 109 | P E t x ht hR hd L A N m (length + 1) epsilon (by positivity) hepsilon) |
| 110 | filter_upwards [hs, hcollar, hball] with k hsk hck hbk |
| 111 | obtain ⟨y, hys, hyd⟩ := exists_intrinsic_collar_point (G k) (hrot k) (hc k) |
| 112 | P (x (L.subsequence (idx k))) hsk |
| 113 | have hymem : y ∈ (G k).ball (x (L.subsequence (idx k))) (length + 1) := by |
| 114 | exact hyd.trans_lt ((ENNReal.ofReal_le_ofReal hck).trans_lt |
| 115 | ((ENNReal.ofReal_lt_ofReal_iff (by positivity : (0 : ℝ) < length + 1)).mpr |
| 116 | (by linarith))) |
| 117 | have hh := hbk y hymem |
| 118 | rw [hys] at hh |
| 119 | simpa only [Real.dist_eq, sub_zero] using hh |
| 120 | |
| 121 | end PoincareMT.M35.OrdinaryRealization |