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.IntrinsicRadialPatch |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialAnnulusMetric |
| 4 | |
| 5 | /-! |
| 6 | # Actual original-slice coefficients on the radial cap end |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. The genuine inverse arclength |
| 9 | diffeomorphism identifies the radial patch tensor with the checked |
| 10 | intrinsic warped tensor. This is the literal patch that bounds the |
| 11 | chosen metric-ball core, so its coefficient estimates directly supply |
| 12 | the frozen static-neck comparison. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | namespace PoincareMT.M35.Uniqueness |
| 22 | |
| 23 | variable (g : RiemannianMetric 3 StandardCapSpace) |
| 24 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 25 | ∀ x u v : StandardCapSpace, |
| 26 | g.inner (standardRotation A x) |
| 27 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 28 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 29 | (hcomplete : MetricComplete g) |
| 30 | |
| 31 | /-- Theorem 12.32, pp. 326-327: the actual radial end on the original slice |
| 32 | has precisely the intrinsic angular coefficient and constant axial speed. -/ |
| 33 | theorem intrinsicRadialAnnulusPatch_pullback (q₀ : UnitTwoSphere) (a b length : ℝ) |
| 34 | (hb : 0 < b) (hl : 0 < length) (hinner : 0 < a - b * length) |
| 35 | (z : StandardCylinderSpace) (hz : z.2 ∈ Ioo (-length) length) |
| 36 | (v w : RoundCylinderTangent z) : |
| 37 | roundCylinderPullback g |
| 38 | (intrinsicRadialAnnulusPatch g hrotation hcomplete q₀ a b length |
| 39 | hb hl hinner).coordinate z v w = |
| 40 | intrinsicWarpingRadius g hrotation hcomplete (a + b * z.2) ^ 2 * |
| 41 | inner ℝ |
| 42 | (mvfderiv (𝓡 2) (fun p : UnitTwoSphere => p.val) z.1 v.1) |
| 43 | (mvfderiv (𝓡 2) (fun p : UnitTwoSphere => p.val) z.1 w.1) + |
| 44 | b ^ 2 * v.2 * w.2 := by |
| 45 | let F := intrinsicSpatialDiffeomorph g hrotation hcomplete |
| 46 | let N := radialAnnulusPatch q₀ a b length hb hl hinner |
| 47 | have hcoord := N.coordinate_smooth.contMDiffAt |
| 48 | ((isOpen_univ.prod isOpen_Ioo).mem_nhds ⟨mem_univ z.1, hz⟩) |
| 49 | have hchain := mfderiv_comp z |
| 50 | (F.symm.contMDiff.mdifferentiable (by simp) (N.coordinate z)) |
| 51 | (hcoord.mdifferentiableAt (by simp)) |
| 52 | have hmetric : roundCylinderPullback g (F.symm ∘ N.coordinate) z v w = |
| 53 | roundCylinderPullback (intrinsicSpatialMetric g hrotation hcomplete) |
| 54 | N.coordinate z v w := by |
| 55 | change g.inner (F.symm (N.coordinate z)) |
| 56 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) (F.symm ∘ N.coordinate) z v) |
| 57 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) (F.symm ∘ N.coordinate) z w) = _ |
| 58 | rw [hchain] |
| 59 | change g.inner (intrinsicSpatialInverse g hrotation hcomplete (N.coordinate z)) |
| 60 | (mfderiv (𝓡 3) (𝓡 3) (intrinsicSpatialInverse g hrotation hcomplete) |
| 61 | (N.coordinate z) (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate z v)) |
| 62 | (mfderiv (𝓡 3) (𝓡 3) (intrinsicSpatialInverse g hrotation hcomplete) |
| 63 | (N.coordinate z) (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate z w)) = _ |
| 64 | rw [mfderiv_eq_fderiv] |
| 65 | exact (intrinsicSpatialMetric_pullback g hrotation hcomplete _ _ _).symm |
| 66 | have hr : 0 < a + b * z.2 := by |
| 67 | have h := mul_lt_mul_of_pos_left hz.1 hb |
| 68 | linarith |
| 69 | exact hmetric.trans (intrinsic_radial_annulus_pullback g hrotation hcomplete a b z hr v w) |
| 70 | |
| 71 | end PoincareMT.M35.Uniqueness |