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.RadialStaticNeck |
| 3 | |
| 4 | /-! |
| 5 | # Scalar-normalized necks in the original intrinsic radial coordinate |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. The axial speed is chosen |
| 8 | as the inverse square root of the actual central scalar. The spatial |
| 9 | patch stays in the original metric's intrinsic coordinate, so its |
| 10 | annular carrier and the literal cap core use the same radial variable. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.Uniqueness |
| 20 | |
| 21 | variable (g : RiemannianMetric 3 StandardCapSpace) |
| 22 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 23 | ∀ x u v : StandardCapSpace, |
| 24 | g.inner (standardRotation A x) |
| 25 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 26 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 27 | (hcomplete : MetricComplete g) |
| 28 | |
| 29 | /-- The literal original-metric radial center has the same scalar |
| 30 | as every point on its selected rotational orbit. -/ |
| 31 | theorem scalar_intrinsic_radial_center_unscaled (P : M35StandardCapPredecessors) |
| 32 | (D : LeviCivitaData g) (q : UnitTwoSphere) (x : StandardCapSpace) : |
| 33 | D.scalarCurvature (intrinsicSpatialInverse g hrotation hcomplete |
| 34 | (radialArclength g ‖x‖ • q.val)) = D.scalarCurvature x := by |
| 35 | rw [(rotational_scalar_edist_eq_axis P D hrotation _).1, |
| 36 | intrinsic_radial_center_norm, ← (rotational_scalar_edist_eq_axis P D hrotation x).1] |
| 37 | |
| 38 | /-- Theorem 12.32: the exact angular profile comparison gives a |
| 39 | scalar-normalized static neck whose annular carrier is expressed in |
| 40 | the original metric's true radial coordinate. -/ |
| 41 | noncomputable def scalarRadialNeck |
| 42 | (atlas : StandardCylinderAtlas) (D : LeviCivitaData g) |
| 43 | (Q : ℝ) (hQ : 0 < Q) (q : UnitTwoSphere) (a b epsilon : ℝ) |
| 44 | (hb : 0 < b) (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) |
| 45 | (hunit : Q * b ^ 2 = 1) (hinner : 0 < a - b * epsilon⁻¹) |
| 46 | (hscalar : D.scalarCurvature (intrinsicSpatialInverse g hrotation hcomplete |
| 47 | (a • q.val)) = Q) |
| 48 | (hclose : RoundCylinderClose epsilon 0 (radialCylinderTensor |
| 49 | (fun u => Q * intrinsicWarpingRadius g hrotation hcomplete (a + b * u) ^ 2) 1)) : |
| 50 | StandardStaticNeck atlas g D epsilon := by |
| 51 | let N := intrinsicRadialAnnulusPatch g hrotation hcomplete q a b epsilon⁻¹ hb |
| 52 | (inv_pos.mpr he) hinner |
| 53 | refine { |
| 54 | epsilon_pos := he |
| 55 | epsilon_lt_half := hehalf |
| 56 | center := intrinsicSpatialInverse g hrotation hcomplete (a • q.val) |
| 57 | scalar_pos := by rw [hscalar]; exact hQ |
| 58 | patch := N |
| 59 | close := ?_ |
| 60 | } |
| 61 | change RoundCylinderClose epsilon 0 (fun z v w => |
| 62 | D.scalarCurvature (intrinsicSpatialInverse g hrotation hcomplete (a • q.val)) * |
| 63 | roundCylinderPullback g N.coordinate z v w) |
| 64 | rw [hscalar] |
| 65 | let B := radialCylinderTensor |
| 66 | (fun u => Q * intrinsicWarpingRadius g hrotation hcomplete (a + b * u) ^ 2) 1 |
| 67 | have heq : ∀ z : RoundCylinderSpace, z.2 ∈ Ioo (-epsilon⁻¹) epsilon⁻¹ → |
| 68 | ∀ v w, B z v w = Q * roundCylinderPullback g N.coordinate z v w := by |
| 69 | intro z hz v w |
| 70 | have h := intrinsicRadialAnnulusPatch_pullback g hrotation hcomplete q a b epsilon⁻¹ hb |
| 71 | (inv_pos.mpr he) hinner z hz v w |
| 72 | have hraw : radialCylinderTensor |
| 73 | (fun u => intrinsicWarpingRadius g hrotation hcomplete (a + b * u) ^ 2) b z v w = |
| 74 | roundCylinderPullback g N.coordinate z v w := by |
| 75 | rw [radialCylinderTensor_apply] |
| 76 | convert! h.symm using 1 |
| 77 | rw [← hraw] |
| 78 | change radialCylinderTensor _ 1 z v w = Q * radialCylinderTensor _ b z v w |
| 79 | rw [radialCylinderTensor_apply, radialCylinderTensor_apply] |
| 80 | have hunit' := congrArg (fun r : ℝ => r * v.2 * w.2) hunit |
| 81 | nlinarith only [hunit'] |
| 82 | obtain ⟨hsmooth, bound, hbound, hjet⟩ := hclose |
| 83 | refine ⟨cylinder_smooth_congr heq hsmooth, bound, hbound, ?_⟩ |
| 84 | intro z hz |
| 85 | rw [← cylinder_jet_congr heq 0 _ z hz] |
| 86 | exact hjet z hz |
| 87 | |
| 88 | end PoincareMT.M35.Uniqueness |