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.Blowup.Neck.Geometry.NeckRestriction |
| 3 | |
| 4 | /-! |
| 5 | # The actual axial rescaling of the initial neck patch |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327, initial-neck alternative. |
| 8 | One positive constant rescales the entire spatial patch. Restriction |
| 9 | is performed in the original patch before this diffeomorphism, so the |
| 10 | actual carrier, both inverse identities, and the central point persist. |
| 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 |
| 20 | |
| 21 | /-- The axial dilation used by the actual scalar normalization. -/ |
| 22 | noncomputable def cylinderAxialDilation (c : ℝ) (hc : 0 < c) : |
| 23 | Diffeomorph ((𝓡 2).prod 𝓘(ℝ, ℝ)) ((𝓡 2).prod 𝓘(ℝ, ℝ)) |
| 24 | StandardCylinderSpace StandardCylinderSpace ∞ where |
| 25 | toFun z := (z.1, c * z.2) |
| 26 | invFun z := (z.1, z.2 / c) |
| 27 | left_inv z := by ext <;> simp [hc.ne'] |
| 28 | right_inv z := by |
| 29 | apply Prod.ext |
| 30 | · rfl |
| 31 | · exact mul_div_cancel₀ z.2 hc.ne' |
| 32 | contMDiff_toFun := contMDiff_fst.prodMk |
| 33 | (((contDiff_const.mul contDiff_id).contMDiff).comp contMDiff_snd) |
| 34 | contMDiff_invFun := contMDiff_fst.prodMk |
| 35 | (((contDiff_id.div_const c).contMDiff).comp contMDiff_snd) |
| 36 | |
| 37 | end PoincareMT.M35 |
| 38 | |
| 39 | namespace PoincareMT.StandardCylinderPatch |
| 40 | |
| 41 | /-- Theorem 12.32: the exact shorter scalar-normalized patch has |
| 42 | the original center and one time-independent coordinate map. -/ |
| 43 | noncomputable def axialRescale {length : ℝ} {x : StandardCapSpace} |
| 44 | (N : StandardCylinderPatch length x) (c l : ℝ) (hc : 0 < c) (hl : 0 < l) |
| 45 | (hcl : c * l ≤ length) : StandardCylinderPatch l x := by |
| 46 | let M := N.restrict (mul_pos hc hl) hcl |
| 47 | let e := M35.cylinderAxialDilation c hc |
| 48 | have hmap : MapsTo e (univ ×ˢ Ioo (-l) l) (univ ×ˢ Ioo (-(c * l)) (c * l)) := by |
| 49 | intro z hz |
| 50 | refine ⟨mem_univ _, ?_, ?_⟩ |
| 51 | · change -(c * l) < c * z.2 |
| 52 | simpa only [mul_neg] using mul_lt_mul_of_pos_left hz.2.1 hc |
| 53 | · exact mul_lt_mul_of_pos_left hz.2.2 hc |
| 54 | have hinv : MapsTo e.symm (univ ×ˢ Ioo (-(c * l)) (c * l)) |
| 55 | (univ ×ˢ Ioo (-l) l) := by |
| 56 | intro z hz |
| 57 | refine ⟨mem_univ _, ?_, ?_⟩ |
| 58 | · change -l < z.2 / c |
| 59 | exact (lt_div_iff₀ hc).mpr (by nlinarith only [hz.2.1]) |
| 60 | · change z.2 / c < l |
| 61 | exact (div_lt_iff₀ hc).mpr (by nlinarith only [hz.2.2]) |
| 62 | refine { |
| 63 | length_pos := hl |
| 64 | carrier := M.carrier |
| 65 | carrier_open := M.carrier_open |
| 66 | coordinate := M.coordinate ∘ e |
| 67 | inverse := e.symm ∘ M.inverse |
| 68 | coordinate_image := ?_ |
| 69 | coordinate_left_inverse := ?_ |
| 70 | coordinate_right_inverse := ?_ |
| 71 | inverse_domain := ?_ |
| 72 | coordinate_smooth := M.coordinate_smooth.comp e.contMDiff.contMDiffOn hmap |
| 73 | inverse_smooth := e.symm.contMDiff.comp_contMDiffOn M.inverse_smooth |
| 74 | center_sphere := ?_ |
| 75 | } |
| 76 | · apply Subset.antisymm |
| 77 | · rintro y ⟨z, hz, rfl⟩ |
| 78 | exact M.coordinate_image ▸ mem_image_of_mem M.coordinate (hmap hz) |
| 79 | · intro y hy |
| 80 | obtain ⟨z, hz, rfl⟩ := M.coordinate_image.symm ▸ hy |
| 81 | refine ⟨e.symm z, hinv hz, ?_⟩ |
| 82 | simp only [Function.comp_apply, e.apply_symm_apply] |
| 83 | · intro z hz |
| 84 | simp only [Function.comp_apply, M.coordinate_left_inverse (hmap hz), e.symm_apply_apply] |
| 85 | · intro y hy |
| 86 | simp only [Function.comp_apply, e.apply_symm_apply, M.coordinate_right_inverse hy] |
| 87 | · intro y hy |
| 88 | exact (hinv ⟨mem_univ _, M.inverse_domain y hy⟩).2 |
| 89 | · obtain ⟨q, hq⟩ := M.center_sphere |
| 90 | refine ⟨q, ?_⟩ |
| 91 | change M.coordinate (q, c * 0) = x |
| 92 | simpa only [mul_zero] using hq |
| 93 | |
| 94 | theorem axialRescale_carrier {length : ℝ} {x : StandardCapSpace} |
| 95 | (N : StandardCylinderPatch length x) (c l : ℝ) (hc : 0 < c) (hl : 0 < l) |
| 96 | (hcl : c * l ≤ length) : |
| 97 | (N.axialRescale c l hc hl hcl).carrier = |
| 98 | N.carrier ∩ N.inverse ⁻¹' (univ ×ˢ Ioo (-(c * l)) (c * l)) := rfl |
| 99 | |
| 100 | theorem axialRescale_coordinate {length : ℝ} {x : StandardCapSpace} |
| 101 | (N : StandardCylinderPatch length x) (c l : ℝ) (hc : 0 < c) (hl : 0 < l) |
| 102 | (hcl : c * l ≤ length) (z : StandardCylinderSpace) : |
| 103 | (N.axialRescale c l hc hl hcl).coordinate z = N.coordinate (z.1, c * z.2) := rfl |
| 104 | |
| 105 | theorem axialRescale_subset {length : ℝ} {x : StandardCapSpace} |
| 106 | (N : StandardCylinderPatch length x) (c l : ℝ) (hc : 0 < c) (hl : 0 < l) |
| 107 | (hcl : c * l ≤ length) : (N.axialRescale c l hc hl hcl).carrier ⊆ N.carrier := |
| 108 | inter_subset_left |
| 109 | |
| 110 | end PoincareMT.StandardCylinderPatch |