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.SelectedIntrinsicAnnulusClose |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialStaticNeck |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.FarTipReflectedExclusion |
| 5 | |
| 6 | /-! |
| 7 | # Actual radial-neck comparison at the point's own scalar |
| 8 | |
| 9 | Morgan-Tian Theorem 12.32, pp. 326-327. This names only the literal |
| 10 | normalized radial annulus in the original selected slice. Its comparison |
| 11 | is produced by the same-limit far-tip geometry and is consumed by the |
| 12 | actual standard static-neck constructor. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | namespace PoincareMT.M35.OrdinaryRealization |
| 22 | |
| 23 | open Uniqueness |
| 24 | |
| 25 | local notation "V" => StandardCapSpace |
| 26 | |
| 27 | /-- The literal radial annulus at the actual point's own scalar scale, |
| 28 | with positive inner radius and the full frozen comparison. -/ |
| 29 | def RadialAnnulusComparison {g₀ : StandardInitialMetric} |
| 30 | (E : RepairedStandardCapExistenceData g₀) (t : ℝ) |
| 31 | (ht : t ∈ Ico 0 E.flow.base.lifetime) (x : V) (epsilon : ℝ) : Prop := |
| 32 | let Q := (E.flow.connection t).scalarCurvature x |
| 33 | let hQ := E.scalar_pos ht x |
| 34 | let G := M13.scaleSmoothMetric (E.flow.metric t) Q hQ |
| 35 | let hrot := scaleSmoothMetric_rotation_invariant (E.rotation_invariant t ht) Q hQ |
| 36 | let hc := scaleSmoothMetric_complete (E.flow.metric t) (E.complete t ht) Q hQ |
| 37 | let a := radialArclength G ‖x‖ |
| 38 | 0 < a - epsilon⁻¹ ∧ RoundCylinderClose epsilon 0 |
| 39 | (radialCylinderTensor (fun u => intrinsicWarpingRadius G hrot hc (a + u) ^ 2) 1) |
| 40 | |
| 41 | /-- The exact actual comparison supplies a frozen static neck with |
| 42 | the literal intrinsic radial patch and its own scalar normalization. -/ |
| 43 | noncomputable def RadialAnnulusComparison.staticNeck |
| 44 | (P : M35StandardCapPredecessors) {g₀ : StandardInitialMetric} |
| 45 | (E : RepairedStandardCapExistenceData g₀) (t : ℝ) |
| 46 | (ht : t ∈ Ico 0 E.flow.base.lifetime) (x : V) (epsilon : ℝ) |
| 47 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) (q : UnitTwoSphere) |
| 48 | (h : RadialAnnulusComparison E t ht x epsilon) : |
| 49 | StandardStaticNeck E.atlas (E.flow.metric t) (E.flow.connection t) epsilon := by |
| 50 | let Q := (E.flow.connection t).scalarCurvature x |
| 51 | have hQ : 0 < Q := E.scalar_pos ht x |
| 52 | let G := M13.scaleSmoothMetric (E.flow.metric t) Q hQ |
| 53 | let a := radialArclength G ‖x‖ |
| 54 | exact radialStaticNeck (E.flow.metric t) (E.rotation_invariant t ht) E.atlas |
| 55 | (E.flow.connection t) Q hQ (E.complete t ht) q a 1 epsilon zero_lt_one he hehalf |
| 56 | (by simpa only [one_mul] using h.1) |
| 57 | (scalar_intrinsic_radial_center (E.flow.metric t) (E.rotation_invariant t ht) |
| 58 | P (E.flow.connection t) Q hQ (E.complete t ht) q x) |
| 59 | (by simpa only [one_mul] using h.2) |
| 60 | |
| 61 | /-- Theorem 12.32: the actual same-limit far-tip geometry supplies |
| 62 | the full radial comparison at the selected point's own scalar scale. -/ |
| 63 | theorem blowupSequence_radial_annulus_comparison |
| 64 | (P : M35StandardCapPredecessors) |
| 65 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 66 | (t : ℕ → ℝ) (x : ℕ → V) |
| 67 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 68 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 69 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 70 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 71 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 72 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 73 | (A : BlowupAncientKappaIdentification L.limit kappa) |
| 74 | (epsilon : ℝ) (he : 0 < epsilon) : |
| 75 | ∀ᶠ k in atTop, RadialAnnulusComparison E (t (L.subsequence k)) (ht _) |
| 76 | (x (L.subsequence k)) epsilon := by |
| 77 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 78 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 79 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 80 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 81 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 82 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 83 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 84 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 85 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 86 | obtain ⟨epsilonBar, hbar, hmodels⟩ := P.kappa_models.theorem_9_93 |
| 87 | obtain ⟨C, _hC, hCmodels⟩ := hmodels (epsilonBar / 2) (by positivity) (by linarith) |
| 88 | obtain ⟨N⟩ := blowupSequence_far_tip_sphere_line P E t x ht hR hd L A |
| 89 | (hCmodels A.solution).alternatives |
| 90 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 91 | have hQ (k : ℕ) : 0 < Q k := |
| 92 | (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 93 | let G (k : ℕ) : RiemannianMetric 3 V := |
| 94 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) (Q k) (hQ k) |
| 95 | let a k := radialArclength (G k) ‖x (L.subsequence k)‖ |
| 96 | have hclose := blowupSequence_intrinsic_annulus_eventually_close P E t x ht hR hd L A N |
| 97 | a (fun _ => 1) 0 epsilon le_rfl he tendsto_const_nhds |
| 98 | (Eventually.of_forall fun _ => by simp only [a, G, Q, sub_self, abs_zero, le_refl]) |
| 99 | have ha := (blowupSequence_intrinsic_center_limits P E t x ht hR hd L).1 |
| 100 | filter_upwards [hclose, ha.eventually (eventually_gt_atTop epsilon⁻¹)] with k hk hak |
| 101 | have hpair : 0 < a k - epsilon⁻¹ ∧ |
| 102 | RoundCylinderClose epsilon 0 (radialCylinderTensor |
| 103 | (fun u => intrinsicWarpingRadius (G k) |
| 104 | (scaleSmoothMetric_rotation_invariant |
| 105 | (E.rotation_invariant (t (L.subsequence k)) (ht _)) (Q k) (hQ k)) |
| 106 | (scaleSmoothMetric_complete (E.flow.metric (t (L.subsequence k))) |
| 107 | (E.complete (t (L.subsequence k)) (ht _)) (Q k) (hQ k)) (a k + u) ^ 2) 1) := |
| 108 | ⟨sub_pos.mpr hak, by simpa only [one_mul] using hk⟩ |
| 109 | simpa only [RadialAnnulusComparison, a, G, Q, blowupSequence_scale] using hpair |
| 110 | |
| 111 | end PoincareMT.M35.OrdinaryRealization |