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.Existence.InitialEstimates.EndTransport |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialEstimates.Regularity |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialEstimates.CoreVolume |
| 4 | |
| 5 | /-! |
| 6 | # Global bounds from the compact cap and exact cylindrical end |
| 7 | |
| 8 | Morgan-Tian Lemma 12.3, pp. 294-295. Enlarge the supplied compact core |
| 9 | by the closed end strip of heights zero through one. Every curvature |
| 10 | value is represented in this compact set, using axial translation for |
| 11 | points at larger heights. This proves all global curvature derivative |
| 12 | bounds and reduces the scalar estimate to pointwise strict positivity. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff |
| 19 | |
| 20 | namespace PoincareMT.M34 |
| 21 | |
| 22 | variable {g : RiemannianMetric 3 StandardCapSpace} |
| 23 | |
| 24 | /-- The compact comparison region includes the core, the closed boundary |
| 25 | of the end, and the reference height-one sphere (Lemma 12.3, pp. 294-295). -/ |
| 26 | def endEstimateCore (e : StandardCylindricalEnd g) : Set StandardCapSpace := |
| 27 | e.closed_core ∪ e.coordinate '' (univ ×ˢ Icc (0 : ℝ) 1) |
| 28 | |
| 29 | /-- The comparison core is compact; coordinate regularity on the collar |
| 30 | includes both endpoints of the closed strip (Lemma 12.3, pp. 294-295). -/ |
| 31 | theorem endEstimateCore_isCompact (e : StandardCylindricalEnd g) : |
| 32 | IsCompact (endEstimateCore e) := by |
| 33 | apply e.core_compact.union |
| 34 | apply (isCompact_univ.prod isCompact_Icc).image_of_continuousOn |
| 35 | apply e.coordinate_smooth.continuousOn.mono |
| 36 | intro z hz |
| 37 | exact ⟨mem_univ _, by |
| 38 | change -e.collar < z.2 |
| 39 | have h := hz.2.1 |
| 40 | linarith [e.collar_pos]⟩ |
| 41 | |
| 42 | /-- Every point outside the comparison core has actual end height larger |
| 43 | than one (Lemma 12.3, pp. 294-295). -/ |
| 44 | theorem end_height_gt_one_of_not_mem_core (e : StandardCylindricalEnd g) |
| 45 | {x : StandardCapSpace} (hx : x ∉ endEstimateCore e) : |
| 46 | ∃ z : StandardCylinderSpace, 1 < z.2 ∧ e.coordinate z = x := by |
| 47 | have hxcore : x ∉ e.closed_core := fun h => hx (Or.inl h) |
| 48 | have hcarrier : x ∈ e.carrier := by |
| 49 | rw [e.carrier_eq] |
| 50 | refine ⟨mem_univ _, fun hb => hxcore ?_⟩ |
| 51 | rw [e.closed_core_eq] |
| 52 | exact (show g.edist 0 x < ENNReal.ofReal e.radius from hb).le |
| 53 | refine ⟨e.inverse x, ?_, e.coordinate_right_inverse hcarrier⟩ |
| 54 | by_contra h |
| 55 | apply hx |
| 56 | exact Or.inr ⟨e.inverse x, ⟨mem_univ _, e.inverse_domain x hcarrier, le_of_not_gt h⟩, |
| 57 | e.coordinate_right_inverse hcarrier⟩ |
| 58 | |
| 59 | /-- Each point has one representative in the compact comparison core |
| 60 | with the same scalar curvature and all curvature derivative norms |
| 61 | (Lemma 12.3, pp. 294-295). -/ |
| 62 | theorem end_compact_curvature_representative (D : LeviCivitaData g) |
| 63 | (e : StandardCylindricalEnd g) (x : StandardCapSpace) : |
| 64 | ∃ y ∈ endEstimateCore e, D.scalarCurvature x = D.scalarCurvature y ∧ |
| 65 | ∀ k : ℕ, D.curvatureDerivativeNorm k x = D.curvatureDerivativeNorm k y := by |
| 66 | by_cases hx : x ∈ endEstimateCore e |
| 67 | · exact ⟨x, hx, rfl, fun _ => rfl⟩ |
| 68 | obtain ⟨z, hz, rfl⟩ := end_height_gt_one_of_not_mem_core e hx |
| 69 | have hzpos : 0 < z.2 := zero_lt_one.trans hz |
| 70 | have hsum : z.2 + (1 - z.2) = 1 := by ring |
| 71 | have hpos : 0 < z.2 + (1 - z.2) := by rw [hsum]; exact zero_lt_one |
| 72 | refine ⟨e.coordinate (z.1, 1), Or.inr ⟨(z.1, 1), ?_, rfl⟩, ?_, ?_⟩ |
| 73 | · exact ⟨mem_univ _, zero_le_one, le_rfl⟩ |
| 74 | · simpa only [hsum] using end_scalarCurvature_translate D e (1 - z.2) hzpos hpos |
| 75 | · intro k |
| 76 | simpa only [hsum] using end_curvatureDerivativeNorm_translate D e (1 - z.2) hzpos hpos k |
| 77 | |
| 78 | /-- An actual smooth metric with a compact core and exact end has a |
| 79 | uniform bound for each covariant curvature derivative on all of R3 |
| 80 | (Lemma 12.3, pp. 294-295). -/ |
| 81 | theorem end_curvatureDerivativeNorm_bounded (D : LeviCivitaData g) |
| 82 | (e : StandardCylindricalEnd g) (k : ℕ) : |
| 83 | ∃ C : ℝ, 0 ≤ C ∧ ∀ x : StandardCapSpace, D.curvatureDerivativeNorm k x ≤ C := by |
| 84 | obtain ⟨C, hC0, hC⟩ := |
| 85 | curvatureDerivativeNorm_bounded_on_compact D k (endEstimateCore_isCompact e) |
| 86 | refine ⟨C, hC0, fun x => ?_⟩ |
| 87 | obtain ⟨y, hy, _, hnorm⟩ := end_compact_curvature_representative D e x |
| 88 | rw [hnorm k] |
| 89 | exact hC y hy |
| 90 | |
| 91 | /-- Positive scalar curvature on the compact comparison core gives the |
| 92 | required positive reciprocal bounds everywhere (Lemma 12.3, pp. 294-295). -/ |
| 93 | theorem end_scalarCurvature_bounds (D : LeviCivitaData g) |
| 94 | (e : StandardCylindricalEnd g) |
| 95 | (hpos : ∀ x ∈ endEstimateCore e, 0 < D.scalarCurvature x) : |
| 96 | ∃ C : ℝ, 0 < C ∧ ∀ x : StandardCapSpace, |
| 97 | C⁻¹ ≤ D.scalarCurvature x ∧ D.scalarCurvature x ≤ C := by |
| 98 | obtain ⟨C, hC0, hC⟩ := |
| 99 | scalarCurvature_bounds_on_compact D (endEstimateCore_isCompact e) hpos |
| 100 | refine ⟨C, hC0, fun x => ?_⟩ |
| 101 | obtain ⟨y, hy, hscalar, _⟩ := end_compact_curvature_representative D e x |
| 102 | rw [hscalar] |
| 103 | exact hC y hy |
| 104 | |
| 105 | /-- All fields of the frozen initial estimate follow once strict scalar |
| 106 | positivity has been proved for the supplied metric (Lemma 12.3, pp. 294-295). -/ |
| 107 | theorem standardCapEstimate_of_scalar_pos (g₀ : StandardInitialMetric) |
| 108 | (hpos : ∀ x : StandardCapSpace, 0 < g₀.connection.scalarCurvature x) : |
| 109 | Nonempty (StandardCapEstimate g₀) := by |
| 110 | obtain ⟨C, hC0, hC⟩ := end_scalarCurvature_bounds g₀.connection g₀.cylindrical_end |
| 111 | (fun x _ => hpos x) |
| 112 | obtain ⟨V, hV0, hV⟩ := exists_core_volume_bound g₀ |
| 113 | exact ⟨{ |
| 114 | scalar_constant := C |
| 115 | scalar_constant_pos := hC0 |
| 116 | scalar_bounds := hC |
| 117 | core_volume_constant := V |
| 118 | core_volume_constant_pos := hV0 |
| 119 | core_volume_upper := hV |
| 120 | curvature_derivative_bounds := |
| 121 | end_curvatureDerivativeNorm_bounded g₀.connection g₀.cylindrical_end }⟩ |
| 122 | |
| 123 | end PoincareMT.M34 |