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.Compactness.Producer |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.CurvatureBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Curvature |
| 4 | |
| 5 | /-! |
| 6 | # Assembly of the pointed compactness conclusion |
| 7 | |
| 8 | This is the checked integration boundary for the M07 route. The geometric |
| 9 | limit and its complete zero-time slice are supplied by the Shi/Cheeger--Gromov |
| 10 | construction. The checked curvature bound for this limit and the completeness |
| 11 | theorem then assemble the frozen conclusion. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Filter |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /-- Every interior slice of a pointed limit complete at zero is complete under |
| 22 | the frozen two-time curvature hypotheses. -/ |
| 23 | theorem PointedGeometricConvergence.complete_interior |
| 24 | {n : ℕ} {T' T : ℝ} |
| 25 | {H : PointedRicciFlowCompactnessHypotheses n T' T} |
| 26 | (G : PointedGeometricConvergence H.sequence) |
| 27 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metricAt 0)) : |
| 28 | ∀ t ∈ Set.Ioo T' T, |
| 29 | G.limitCarrier.metricComplete (G.limitFlow.metricAt t) := by |
| 30 | apply G.limitFlow.complete_interior_of_two_time_curvature_bound H.time_bounds hcomplete |
| 31 | intro A hA |
| 32 | obtain ⟨K, hK, hbound⟩ := G.curvatureTensorNorm_le H A hA |
| 33 | exact ⟨K, hK, fun s hs t ht x hx => hbound s hs x hx t ht⟩ |
| 34 | |
| 35 | /-- A pointed geometric limit complete at zero supplies the frozen M07 |
| 36 | conclusion; its curvature convergence follows from the frozen metric jets. -/ |
| 37 | theorem pointedRicciFlowCompactness_of_geometric_limit |
| 38 | {n : ℕ} {T' T : ℝ} |
| 39 | {H : PointedRicciFlowCompactnessHypotheses n T' T} |
| 40 | (G : PointedGeometricConvergence H.sequence) |
| 41 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metricAt 0)) : |
| 42 | Nonempty (PointedRicciFlowCompactnessConclusion H) := |
| 43 | ⟨⟨G, G.complete_interior hcomplete⟩⟩ |
| 44 | |
| 45 | /-- Assemble the frozen conclusion from the geometric limit, zero-time |
| 46 | completeness, and pointwise curvature-norm naturality. -/ |
| 47 | theorem pointedRicciFlowCompactness_of_geometric_limit_and_curvature_tendsto |
| 48 | {n : ℕ} {T' T : ℝ} |
| 49 | {H : PointedRicciFlowCompactnessHypotheses n T' T} |
| 50 | (G : PointedGeometricConvergence H.sequence) |
| 51 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metricAt 0)) |
| 52 | (hcurv_tendsto : ∀ A : ℝ, 0 < A → |
| 53 | letI : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 54 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 55 | G.limitCarrier.chartedSpace |
| 56 | letI : IsManifold (𝓡 n) ∞ G.limitCarrier.carrier := G.limitCarrier.isManifold |
| 57 | ∀ s ∈ Set.Ioo T' T, ∀ x ∈ G.limitFlow.ballAt s A, |
| 58 | ∀ t ∈ Set.Ioo T' T, |
| 59 | Tendsto (fun k : ℕ => |
| 60 | let C := H.sequence.carrier (G.subsequence k) |
| 61 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 62 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 63 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 64 | ((H.sequence.flow (G.subsequence k)).flow.connection t).curvatureTensorNorm |
| 65 | ((G.embedding k).toFun (t, x)).2) |
| 66 | Filter.atTop (𝓝 ((G.limitFlow.flow.connection t).curvatureTensorNorm x))) : |
| 67 | Nonempty (PointedRicciFlowCompactnessConclusion H) := by |
| 68 | letI : TopologicalSpace G.limitCarrier.carrier := G.limitCarrier.topologicalSpace |
| 69 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) G.limitCarrier.carrier := |
| 70 | G.limitCarrier.chartedSpace |
| 71 | letI : IsManifold (𝓡 n) ∞ G.limitCarrier.carrier := G.limitCarrier.isManifold |
| 72 | have hcurv : ∀ A : ℝ, 0 < A → ∃ K : ℝ, 0 ≤ K ∧ |
| 73 | ∀ s ∈ Set.Ioo T' T, ∀ t ∈ Set.Ioo T' T, |
| 74 | ∀ x ∈ G.limitFlow.ballAt s A, |
| 75 | (G.limitFlow.flow.connection t).curvatureTensorNorm x ≤ K := by |
| 76 | intro A hA |
| 77 | obtain ⟨K, hK, hbound⟩ := |
| 78 | PointedGeometricConvergence.curvatureTensorNorm_le_of_tendsto |
| 79 | H G A hA (hcurv_tendsto A hA) |
| 80 | refine ⟨K, hK, ?_⟩ |
| 81 | intro s hs t ht x hx |
| 82 | exact hbound s hs x hx t ht |
| 83 | exact pointedRicciFlowCompactness_of_producers H ⟨G⟩ |
| 84 | (PointedRicciFlowCompletenessProducer.of_curvature_bound G hcomplete hcurv) |
| 85 | |
| 86 | end PoincareMT |