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.Soliton.ThreeDimensional.Noncompact.Rigidity.Limit |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.SpatialLimit |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Asymptotic.RescaledSlice |
| 4 | |
| 5 | /-! |
| 6 | # Static noncollapse of the spatial-limit source |
| 7 | |
| 8 | Static noncollapse is transported to every generated ancient slice, every |
| 9 | positive parabolic rescaling, and the small carriers used for pointed limits. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 25 | [SecondCountableTopology M] [ConnectedSpace M] |
| 26 | |
| 27 | namespace RicciFlow |
| 28 | |
| 29 | attribute [local instance] smallCarrier smallChartedSpace smallIsManifold |
| 30 | smallMeasurableSpace smallBorelSpace smallT3Space |
| 31 | |
| 32 | omit [T2Space M] [ConnectedSpace M] in |
| 33 | theorem metricKappaNoncollapsed_shrink {J : Set ℝ} (F : RicciFlow n M J) |
| 34 | (t : ℝ) {κ : ℝ} (hκ : MetricKappaNoncollapsed (F.metric t) (F.connection t) κ) : |
| 35 | MetricKappaNoncollapsed (F.shrink.metric t) (F.shrink.connection t) κ := by |
| 36 | refine ⟨hκ.1, fun p r hr hbound => ?_⟩ |
| 37 | rw [calibratedMetricVolume_eq_volumeMeasure, F.shrink_volumeMeasure_ball, |
| 38 | ← calibratedMetricVolume_eq_volumeMeasure] |
| 39 | apply hκ.2 ((equivShrink M).symm p) r hr |
| 40 | intro q hq |
| 41 | have hmem : equivShrink M q ∈ (F.shrink.metric t).ball p r := by |
| 42 | simpa only [RiemannianMetric.ball, mem_ofPred_eq, F.shrink_edist, |
| 43 | Equiv.symm_apply_apply] using hq |
| 44 | simpa only [F.shrink_curvatureTensorNorm, Equiv.symm_apply_apply] using |
| 45 | hbound (equivShrink M q) hmem |
| 46 | |
| 47 | theorem interiorAncientRescaleAt_metricKappaNoncollapsed (F : RicciFlow n M (Iic 0)) |
| 48 | {κ : ℝ} (hκ : ∀ t ≤ 0, MetricKappaNoncollapsed (F.metric t) (F.connection t) κ) |
| 49 | (Q : ℝ) (hQ : 0 < Q) (t₀ t : ℝ) (ht : t < -t₀ * Q) : |
| 50 | MetricKappaNoncollapsed ((F.interiorAncientRescaleAt Q hQ t₀).metric t) |
| 51 | ((F.interiorAncientRescaleAt Q hQ t₀).connection t) κ := by |
| 52 | have htime : t₀ + t / Q ≤ 0 := by |
| 53 | have h := (div_lt_iff₀ hQ).mpr ht |
| 54 | linarith |
| 55 | exact (hκ _ htime).rescaledMetric Q hQ |
| 56 | |
| 57 | end RicciFlow |
| 58 | |
| 59 | variable {N : Type u} [TopologicalSpace N] |
| 60 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) N] [IsManifold (𝓡 3) ∞ N] |
| 61 | [MeasurableSpace N] [BorelSpace N] [T2Space N] [T3Space N] |
| 62 | [SecondCountableTopology N] [ConnectedSpace N] |
| 63 | |
| 64 | namespace ShrinkingSolitonFlow |
| 65 | |
| 66 | variable {S : GradientShrinkingSolitonData 3 N} (G : ShrinkingSolitonFlow S) |
| 67 | |
| 68 | theorem ancientSourceFlow_metricKappaNoncollapsed (t : ℝ) (ht : t ≤ 0) : |
| 69 | MetricKappaNoncollapsed (G.ancientSourceFlow.metric t) |
| 70 | (G.ancientSourceFlow.connection t) S.kappa := by |
| 71 | obtain ⟨E⟩ := G.self_similar (t + -1) (by linarith) |
| 72 | exact E.kappaNoncollapsed (abs_pos.mpr (by linarith)) S.connection |
| 73 | (G.flow.connection (t + -1)) S.kappa_noncollapsed |
| 74 | |
| 75 | end ShrinkingSolitonFlow |
| 76 | |
| 77 | end PoincareMT |