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.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Asymptotic.Compactness.Calibration |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.FactorFlow |
| 4 | import PoincareLib.Geometry.Riemannian.Splitting.ParallelGradient.Volume |
| 5 | |
| 6 | /-! |
| 7 | # Noncollapse of the induced parallel-gradient factor |
| 8 | |
| 9 | The factor projection contracts distances and preserves the full curvature |
| 10 | norm. A curvature bound on a factor ball therefore bounds curvature on the |
| 11 | ambient ball with the same radius. Ambient noncollapse and containment in |
| 12 | the product cylinder give the factor noncollapse constant `kappa / 2`. |
| 13 | The metric and connection are those of the actual induced zero level. |
| 14 | |
| 15 | Reference: Morgan--Tian, Lemma 2.14, pp. 28-29, and Proposition 9.46, |
| 16 | pp. 209-213. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option maxSynthPendingDepth 8 |
| 23 | |
| 24 | open Set TopologicalSpace |
| 25 | open Poincare.Geometry.Manifold.RegularLevel |
| 26 | open scoped Manifold ContDiff Bundle ENNReal |
| 27 | |
| 28 | namespace PoincareMT |
| 29 | |
| 30 | namespace RiemannianMetric |
| 31 | |
| 32 | /-- Static noncollapse descends to the actual induced zero-level metric. -/ |
| 33 | theorem parallelGradient_factor_kappaNoncollapsed |
| 34 | {n : ℕ} {M : Type*} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 35 | [MeasurableSpace M] [BorelSpace M] |
| 36 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 37 | [IsManifold (𝓡 (n + 1)) ∞ M] {g : RiemannianMetric (n + 1) M} |
| 38 | {D : LeviCivitaData g} {f : M → ℝ} (hc : MetricComplete g) |
| 39 | (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 40 | (hu : HasUnitGradient D f) (hz : HasZeroHessian D f) |
| 41 | {κ : ℝ} (hκ : MetricKappaNoncollapsed g D κ) : |
| 42 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 43 | ⟨finrank_euclideanSpace_fin⟩ |
| 44 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 45 | (fun x _ => regular_of_hasUnitGradient hu x) n 0 |
| 46 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 47 | (fun x _ => regular_of_hasUnitGradient hu x) n 0 |
| 48 | let h := regularLevelMetric hf (⊤ : Opens M) |
| 49 | (fun x _ => regular_of_hasUnitGradient hu x) 0 g |
| 50 | MetricKappaNoncollapsed h h.leviCivitaData (κ / 2) := by |
| 51 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 52 | ⟨finrank_euclideanSpace_fin⟩ |
| 53 | let hreg := fun x (_ : x ∈ (⊤ : Opens M)) => regular_of_hasUnitGradient hu x |
| 54 | let := openLevelSetChartedSpace hf (⊤ : Opens M) hreg n 0 |
| 55 | let := isManifold_openLevelSet hf (⊤ : Opens M) hreg n 0 |
| 56 | let h := regularLevelMetric hf (⊤ : Opens M) hreg 0 g |
| 57 | obtain ⟨_, hconn, _, Φ, e, _, _, _, _, hm, _, hnorm, _⟩ := |
| 58 | exists_parallelGradient_productIsometry_curvature hc hf hu hz |
| 59 | let : ConnectedSpace (zeroLevelSet f) := hconn |
| 60 | let : SecondCountableTopology (zeroLevelSet f) := h.secondCountableTopology |
| 61 | refine ⟨div_pos hκ.1 (by norm_num), fun y r hr hcurv => ?_⟩ |
| 62 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 63 | apply volumeMeasure_factor_lower_bound h g e hm y r κ hr |
| 64 | rw [← calibratedMetricVolume_eq_volumeMeasure] |
| 65 | apply hκ.2 (e (y, 0)) r hr |
| 66 | intro x hx |
| 67 | rw [← hnorm x] |
| 68 | apply hcurv (e.symm x).1 |
| 69 | change h.edist y (e.symm x).1 < ENNReal.ofReal r |
| 70 | change g.edist (e (y, 0)) x < ENNReal.ofReal r at hx |
| 71 | have hproj := productIsometry_fst_edist_le g h e hm (e (y, 0)) x |
| 72 | simpa only [e.symm_apply_apply] using hproj.trans_lt hx |
| 73 | |
| 74 | end RiemannianMetric |
| 75 | |
| 76 | namespace RicciFlow |
| 77 | |
| 78 | open RiemannianMetric |
| 79 | |
| 80 | /-- The same fixed zero-level factor flow inherits static noncollapse on |
| 81 | every slice, with one constant independent of time. -/ |
| 82 | theorem parallelGradientFactor_kappaNoncollapsed |
| 83 | {n : ℕ} {M : Type*} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 84 | [MeasurableSpace M] [BorelSpace M] |
| 85 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 86 | [IsManifold (𝓡 (n + 1)) ∞ M] {J : Set ℝ} |
| 87 | (F : RicciFlow (n + 1) M J) |
| 88 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 89 | {t₀ : ℝ} (ht₀ : t₀ ∈ J) |
| 90 | (hu : ∀ t ∈ J, HasUnitGradient (F.connection t) f) |
| 91 | (hz : ∀ t ∈ J, HasZeroHessian (F.connection t) f) |
| 92 | (hc : ∀ t ∈ J, MetricComplete (F.metric t)) |
| 93 | {κ : ℝ} (hκ : ∀ t ∈ J, MetricKappaNoncollapsed (F.metric t) (F.connection t) κ) : |
| 94 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 95 | ⟨finrank_euclideanSpace_fin⟩ |
| 96 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 97 | (fun x _ => regular_of_hasUnitGradient (hu t₀ ht₀) x) n 0 |
| 98 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 99 | (fun x _ => regular_of_hasUnitGradient (hu t₀ ht₀) x) n 0 |
| 100 | let H := F.parallelGradientFactor hf ht₀ hu hz |
| 101 | ∀ t ∈ J, MetricKappaNoncollapsed (H.metric t) (H.connection t) (κ / 2) := by |
| 102 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 103 | ⟨finrank_euclideanSpace_fin⟩ |
| 104 | let hreg := fun x (_ : x ∈ (⊤ : Opens M)) => regular_of_hasUnitGradient (hu t₀ ht₀) x |
| 105 | let := openLevelSetChartedSpace hf (⊤ : Opens M) hreg n 0 |
| 106 | let := isManifold_openLevelSet hf (⊤ : Opens M) hreg n 0 |
| 107 | dsimp only |
| 108 | intro t ht |
| 109 | exact parallelGradient_factor_kappaNoncollapsed (hc t ht) hf (hu t ht) (hz t ht) (hκ t ht) |
| 110 | |
| 111 | end RicciFlow |
| 112 | |
| 113 | end PoincareMT |