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.InitialAxialPatch |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Geometry.NeckCharts |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Cylinder.Geometry.SphereCoordinates |
| 5 | |
| 6 | /-! |
| 7 | # The actual differential of the initial axial normalization |
| 8 | |
| 9 | Morgan-Tian Theorem 12.32, pp. 326-327. The time-independent neck |
| 10 | map has literal differential `(v_sphere, c*v_axis)`. This identity |
| 11 | records the true metric pullback before any finite-jet estimate. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35 |
| 21 | |
| 22 | /-- The actual product-manifold derivative of the axial dilation. -/ |
| 23 | theorem cylinderAxialDilation_mfderiv (c : ℝ) (hc : 0 < c) |
| 24 | (z : StandardCylinderSpace) |
| 25 | (v : TangentSpace ((𝓡 2).prod 𝓘(ℝ, ℝ)) z) : |
| 26 | mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) ((𝓡 2).prod 𝓘(ℝ, ℝ)) |
| 27 | (cylinderAxialDilation c hc) z v = (v.1, c * v.2) := by |
| 28 | have hd : HasFDerivAt (fun r : ℝ => c * r) |
| 29 | (c • ContinuousLinearMap.id ℝ ℝ) z.2 := by |
| 30 | simpa only [smul_eq_mul] using! (hasFDerivAt_id z.2).const_smul c |
| 31 | have haxis := hd.hasMFDerivAt.comp z |
| 32 | (hasMFDerivAt_snd (I := 𝓡 2) (I' := 𝓘(ℝ, ℝ)) z) |
| 33 | have hprod := (hasMFDerivAt_fst (I := 𝓡 2) (I' := 𝓘(ℝ, ℝ)) (x := z)).prodMk haxis |
| 34 | have h := congrArg |
| 35 | (fun L : (EuclideanSpace ℝ (Fin 2) × ℝ) →L[ℝ] |
| 36 | (EuclideanSpace ℝ (Fin 2) × ℝ) => L v) hprod.mfderiv |
| 37 | convert! h using 1 |
| 38 | |
| 39 | /-- The actual normalized patch pulls the original metric back |
| 40 | with its displayed scalar normalization and axial differential. -/ |
| 41 | theorem initial_axial_patch_pullback |
| 42 | (g : RiemannianMetric 3 StandardCapSpace) {length : ℝ} {x : StandardCapSpace} |
| 43 | (N : StandardCylinderPatch length x) (c l : ℝ) (hc : 0 < c) (hl : 0 < l) |
| 44 | (hcl : c * l ≤ length) (z : StandardCylinderSpace) (hz : z.2 ∈ Ioo (-l) l) |
| 45 | (v w : TangentSpace ((𝓡 2).prod 𝓘(ℝ, ℝ)) z) : |
| 46 | roundCylinderPullback g (N.axialRescale c l hc hl hcl).coordinate z v w = |
| 47 | roundCylinderPullback g N.coordinate (z.1, c * z.2) |
| 48 | (v.1, c * v.2) (w.1, c * w.2) := by |
| 49 | let e := cylinderAxialDilation c hc |
| 50 | have hin : (e z).2 ∈ Ioo (-length) length := by |
| 51 | change -length < c * z.2 ∧ c * z.2 < length |
| 52 | have hlo := mul_lt_mul_of_pos_left hz.1 hc |
| 53 | have hhi := mul_lt_mul_of_pos_left hz.2 hc |
| 54 | constructor <;> nlinarith only [hlo, hhi, hcl] |
| 55 | have hN := (N.coordinate_smooth (e z) ⟨mem_univ _, hin⟩).contMDiffAt |
| 56 | ((isOpen_univ.prod isOpen_Ioo).mem_nhds ⟨mem_univ _, hin⟩) |
| 57 | have hderiv (u : TangentSpace ((𝓡 2).prod 𝓘(ℝ, ℝ)) z) : |
| 58 | mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) |
| 59 | (N.axialRescale c l hc hl hcl).coordinate z u = |
| 60 | mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate (z.1, c * z.2) |
| 61 | (u.1, c * u.2) := by |
| 62 | change mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) (N.coordinate ∘ e) z u = _ |
| 63 | rw [mfderiv_comp_apply z (hN.mdifferentiableAt (by simp)) |
| 64 | (e.contMDiff.mdifferentiable (by simp) z)] |
| 65 | rw [cylinderAxialDilation_mfderiv] |
| 66 | rfl |
| 67 | simpa only [roundCylinderPullback] using! |
| 68 | congrArg₂ (fun a b => g.inner ((N.axialRescale c l hc hl hcl).coordinate z) a b) |
| 69 | (hderiv v) (hderiv w) |
| 70 | |
| 71 | end PoincareMT.M35 |