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.RawFlow.InitialCylinderCoordinates |
| 3 | |
| 4 | /-! |
| 5 | # A genuine Ricci-null direction on the initial tail |
| 6 | |
| 7 | Morgan-Tian Definition 12.1 and Section 12.6. The exact cylinder's |
| 8 | nonzero axial tangent vector is transported through the actual initial |
| 9 | end chart. The compact original core together with the compact zero-height |
| 10 | boundary leaves a tail covered by strictly positive-height charts. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.Uniqueness |
| 20 | |
| 21 | variable {g : RiemannianMetric 3 StandardCapSpace} (C : StandardCylindricalEnd g) |
| 22 | |
| 23 | include C |
| 24 | |
| 25 | theorem initialEnd_ricci_null (D : LeviCivitaData g) (q : UnitTwoSphere) |
| 26 | {s : ℝ} (hs : 0 < s) : |
| 27 | ∃ v : StandardCapSpace, v ≠ 0 ∧ D.ricci (C.coordinate (q, s)) v v = 0 := by |
| 28 | let p : StandardCapSpace := cylinderCoordinateEquiv.symm (0, s) |
| 29 | let f := C.coordinate ∘ cylinderChart q |
| 30 | let D0 := cylinderEuclideanConnection 0 (by norm_num) |
| 31 | let a : StandardCapSpace := EuclideanSpace.basisFun (Fin 3) ℝ 2 |
| 32 | have ha : a ≠ 0 := (EuclideanSpace.basisFun (Fin 3) ℝ).toBasis.ne_zero 2 |
| 33 | have hp : 0 < (cylinderCoordinateEquiv p).2 := by |
| 34 | simpa only [p, ContinuousLinearEquiv.apply_symm_apply] using hs |
| 35 | have heq : f p = C.coordinate (q, s) := by |
| 36 | dsimp only [f, Function.comp_def, cylinderChart, p] |
| 37 | rw [ContinuousLinearEquiv.apply_symm_apply] |
| 38 | congr 1 |
| 39 | refine Prod.ext ?_ rfl |
| 40 | change (chartAt (EuclideanSpace ℝ (Fin 2)) q).symm 0 = q |
| 41 | rw [← sphere_chart_center q] |
| 42 | exact (chartAt (EuclideanSpace ℝ (Fin 2)) q).left_inv (mem_chart_source _ q) |
| 43 | have hnear : ∀ᶠ z : StandardCapSpace in 𝓝 p, 0 < (cylinderCoordinateEquiv z).2 := |
| 44 | (continuous_snd.comp cylinderCoordinateEquiv.continuous).continuousAt.eventually |
| 45 | (eventually_gt_nhds hp) |
| 46 | have hinv := hnear.mono (fun z hz => initialEndChart_mfderiv_invertible C q hz) |
| 47 | have hmetric := hnear.mono (fun z hz => initialEndChart_metric C q hz) |
| 48 | let v : StandardCapSpace := mfderiv (𝓡 3) (𝓡 3) f p a |
| 49 | have hv : v ≠ 0 := by |
| 50 | intro hz |
| 51 | apply ha |
| 52 | exact hinv.self_of_nhds.injective (hz.trans (map_zero _).symm) |
| 53 | refine ⟨v, hv, ?_⟩ |
| 54 | have hricci := D0.ricci_eq_pullback_euclidean D |
| 55 | (initialEndChart_contMDiffAt C q hp) hinv hmetric a a |
| 56 | have hzero := cylinder_ricci_center 0 (by norm_num) D0 q s 2 2 |
| 57 | have hz : D0.ricci p a a = 0 := by |
| 58 | change D0.ricci p a a = inner ℝ (0 : EuclideanSpace ℝ (Fin 2)) 0 at hzero |
| 59 | simpa only [inner_zero_left] using hzero |
| 60 | change D0.ricci p a a = D.ricci (f p) v v at hricci |
| 61 | rw [heq, hz] at hricci |
| 62 | exact hricci.symm |
| 63 | |
| 64 | /-- Every sufficiently distant original radial axis point is covered by |
| 65 | an actual positive-height cylinder chart and has a nonzero Ricci-null vector. -/ |
| 66 | theorem initial_axis_tail_ricci_null (D : LeviCivitaData g) : |
| 67 | ∃ R : ℝ, 0 < R ∧ ∀ r, R ≤ r → ∃ v : StandardCapSpace, |
| 68 | v ≠ 0 ∧ D.ricci (r • EuclideanSpace.single (2 : Fin 3) 1) v v = 0 := by |
| 69 | have hc : Continuous (fun q : UnitTwoSphere => C.coordinate (q, 0)) := |
| 70 | C.coordinate_smooth.continuousOn.comp_continuous |
| 71 | (continuous_id.prodMk continuous_const) |
| 72 | (fun q => ⟨mem_univ q, neg_lt_zero.mpr C.collar_pos⟩) |
| 73 | let K := C.closed_core ∪ range (fun q : UnitTwoSphere => C.coordinate (q, 0)) |
| 74 | have hK : IsCompact K := C.core_compact.union (isCompact_range hc) |
| 75 | obtain ⟨B, hB⟩ := hK.bddAbove_image continuous_norm.continuousOn |
| 76 | let R := max 0 B + 1 |
| 77 | have hR : 0 < R := by dsimp only [R]; linarith [le_max_left (0 : ℝ) B] |
| 78 | refine ⟨R, hR, ?_⟩ |
| 79 | intro r hr |
| 80 | have hr0 : 0 < r := hR.trans_le hr |
| 81 | have hrB : B < r := by dsimp only [R] at hr; linarith [le_max_right (0 : ℝ) B] |
| 82 | let p : StandardCapSpace := r • EuclideanSpace.single (2 : Fin 3) 1 |
| 83 | have hnorm : ‖p‖ = r := by simp [p, norm_smul, Real.norm_eq_abs, abs_of_pos hr0] |
| 84 | have hpK : p ∉ K := by |
| 85 | intro hp |
| 86 | have hh := hB (mem_image_of_mem _ hp) |
| 87 | rw [hnorm] at hh |
| 88 | exact (not_le_of_gt hrB) hh |
| 89 | have hpc : p ∈ C.carrier := by |
| 90 | rw [C.carrier_eq] |
| 91 | refine ⟨mem_univ _, ?_⟩ |
| 92 | intro hball |
| 93 | apply hpK |
| 94 | apply Or.inl |
| 95 | rw [C.closed_core_eq] |
| 96 | change g.edist 0 p < ENNReal.ofReal C.radius at hball |
| 97 | exact le_of_lt hball |
| 98 | have hs0 := C.inverse_domain p hpc |
| 99 | have hs : 0 < (C.inverse p).2 := by |
| 100 | apply lt_of_le_of_ne hs0 |
| 101 | intro hz |
| 102 | apply hpK |
| 103 | apply Or.inr |
| 104 | refine ⟨(C.inverse p).1, ?_⟩ |
| 105 | rw [hz] |
| 106 | exact C.coordinate_right_inverse hpc |
| 107 | obtain ⟨v, hv, hnull⟩ := initialEnd_ricci_null C D (C.inverse p).1 hs |
| 108 | refine ⟨v, hv, ?_⟩ |
| 109 | change D.ricci (C.coordinate (C.inverse p)) v v = 0 at hnull |
| 110 | rw [C.coordinate_right_inverse hpc] at hnull |
| 111 | exact hnull |
| 112 | |
| 113 | end PoincareMT.M35.Uniqueness |