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.IntrinsicRadialAnnulusMetric |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialCylinderTensor |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialPointIdentification |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialDerivativeBall |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Cylinder.Geometry.CylinderLocality |
| 7 | |
| 8 | /-! |
| 9 | # The actual radial annulus as a frozen standard static neck |
| 10 | |
| 11 | Morgan-Tian Theorem 12.32, pp. 326-327. The literal annulus uses |
| 12 | the normalized metric's genuine inverse arclength. Its actual center |
| 13 | lies on the selected rotational orbit, so its normalization is exactly |
| 14 | its own scalar. The local pullback identity supplies the full frozen |
| 15 | static comparison with the original coordinate and requested epsilon. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle Topology |
| 23 | |
| 24 | namespace PoincareMT.M35.Uniqueness |
| 25 | |
| 26 | variable (g : RiemannianMetric 3 StandardCapSpace) |
| 27 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 28 | ∀ x u v : StandardCapSpace, |
| 29 | g.inner (standardRotation A x) |
| 30 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 31 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 32 | |
| 33 | theorem intrinsic_radial_center_norm (hcomplete : MetricComplete g) |
| 34 | (q : UnitTwoSphere) (x : StandardCapSpace) : |
| 35 | ‖intrinsicSpatialInverse g hrotation hcomplete (radialArclength g ‖x‖ • q.val)‖ = |
| 36 | ‖x‖ := by |
| 37 | have ha : 0 ≤ radialArclength g ‖x‖ := by |
| 38 | simpa only [radialArclength_zero] using |
| 39 | (radialArclength_strictMono g).monotone (norm_nonneg x) |
| 40 | rw [intrinsicSpatialInverse_norm, norm_smul, Real.norm_eq_abs, abs_of_nonneg ha, |
| 41 | norm_eq_of_mem_sphere, mul_one] |
| 42 | exact (radialArclengthOrderIso g hrotation hcomplete).symm_apply_apply ‖x‖ |
| 43 | |
| 44 | /-- The actual intrinsic radial center has the selected point's |
| 45 | own scalar, by its literal rotational orbit. -/ |
| 46 | theorem scalar_intrinsic_radial_center (P : M35StandardCapPredecessors) |
| 47 | (D : LeviCivitaData g) (Q : ℝ) (hQ : 0 < Q) (hcomplete : MetricComplete g) |
| 48 | (q : UnitTwoSphere) (x : StandardCapSpace) : |
| 49 | let G := M13.scaleSmoothMetric g Q hQ |
| 50 | let hrot := scaleSmoothMetric_rotation_invariant hrotation Q hQ |
| 51 | let hc := scaleSmoothMetric_complete g hcomplete Q hQ |
| 52 | D.scalarCurvature (intrinsicSpatialInverse G hrot hc |
| 53 | (radialArclength G ‖x‖ • q.val)) = D.scalarCurvature x := by |
| 54 | dsimp only |
| 55 | rw [(rotational_scalar_edist_eq_axis P D hrotation _).1, |
| 56 | intrinsic_radial_center_norm, ← (rotational_scalar_edist_eq_axis P D hrotation x).1] |
| 57 | |
| 58 | /-- Theorem 12.32: the actual normalized radial tensor gives the |
| 59 | literal original-slice standard static neck at its own scalar scale. -/ |
| 60 | noncomputable def radialStaticNeck |
| 61 | (atlas : StandardCylinderAtlas) (D : LeviCivitaData g) |
| 62 | (Q : ℝ) (hQ : 0 < Q) (hcomplete : MetricComplete g) |
| 63 | (q : UnitTwoSphere) (a b epsilon : ℝ) (hb : 0 < b) |
| 64 | (hepsilon : 0 < epsilon) (hepsilon' : epsilon < 1 / 2) |
| 65 | (hinner : 0 < a - b * epsilon⁻¹) |
| 66 | (hscalar : |
| 67 | let G := M13.scaleSmoothMetric g Q hQ |
| 68 | let hrot := scaleSmoothMetric_rotation_invariant hrotation Q hQ |
| 69 | let hc := scaleSmoothMetric_complete g hcomplete Q hQ |
| 70 | D.scalarCurvature (intrinsicSpatialInverse G hrot hc (a • q.val)) = Q) |
| 71 | (hclose : |
| 72 | let G := M13.scaleSmoothMetric g Q hQ |
| 73 | let hrot := scaleSmoothMetric_rotation_invariant hrotation Q hQ |
| 74 | let hc := scaleSmoothMetric_complete g hcomplete Q hQ |
| 75 | RoundCylinderClose epsilon 0 (radialCylinderTensor |
| 76 | (fun u => intrinsicWarpingRadius G hrot hc (a + b * u) ^ 2) b)) : |
| 77 | StandardStaticNeck atlas g D epsilon := by |
| 78 | let G := M13.scaleSmoothMetric g Q hQ |
| 79 | have hrot := scaleSmoothMetric_rotation_invariant hrotation Q hQ |
| 80 | have hc := scaleSmoothMetric_complete g hcomplete Q hQ |
| 81 | let N := intrinsicRadialAnnulusPatch G hrot hc q a b epsilon⁻¹ hb |
| 82 | (inv_pos.mpr hepsilon) hinner |
| 83 | refine { |
| 84 | epsilon_pos := hepsilon |
| 85 | epsilon_lt_half := hepsilon' |
| 86 | center := intrinsicSpatialInverse G hrot hc (a • q.val) |
| 87 | scalar_pos := by rw [hscalar]; exact hQ |
| 88 | patch := N |
| 89 | close := ?_ |
| 90 | } |
| 91 | change RoundCylinderClose epsilon 0 (fun z v w => |
| 92 | D.scalarCurvature (intrinsicSpatialInverse G hrot hc (a • q.val)) * |
| 93 | roundCylinderPullback g N.coordinate z v w) |
| 94 | rw [hscalar] |
| 95 | let B := radialCylinderTensor |
| 96 | (fun u => intrinsicWarpingRadius G hrot hc (a + b * u) ^ 2) b |
| 97 | have heq : ∀ z : RoundCylinderSpace, z.2 ∈ Ioo (-epsilon⁻¹) epsilon⁻¹ → |
| 98 | ∀ v w, B z v w = Q * roundCylinderPullback g N.coordinate z v w := by |
| 99 | intro z hz v w |
| 100 | change radialCylinderTensor _ b z v w = _ |
| 101 | rw [radialCylinderTensor_apply] |
| 102 | have h := intrinsicRadialAnnulusPatch_pullback G hrot hc q a b epsilon⁻¹ hb |
| 103 | (inv_pos.mpr hepsilon) hinner z hz v w |
| 104 | calc |
| 105 | _ = roundCylinderPullback G N.coordinate z v w := by |
| 106 | convert! h.symm using 1 |
| 107 | _ = _ := M13.scaleSmoothMetric_inner g Q hQ _ _ _ |
| 108 | obtain ⟨hsmooth, bound, hbound, hjet⟩ := hclose |
| 109 | refine ⟨cylinder_smooth_congr heq hsmooth, bound, hbound, ?_⟩ |
| 110 | intro z hz |
| 111 | rw [← cylinder_jet_congr heq 0 _ z hz] |
| 112 | exact hjet z hz |
| 113 | |
| 114 | end PoincareMT.M35.Uniqueness |