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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.NonflatLineLimit |
| 3 | import PoincareLib.Geometry.Riemannian.Splitting.Busemann.Main |
| 4 | import PoincareLib.Geometry.Riemannian.Splitting.ParallelGradient.Basic |
| 5 | import PoincareLib.Geometry.RicciFlow.Lift |
| 6 | |
| 7 | /-! |
| 8 | # A terminal parallel potential on the lifted ancient limit |
| 9 | |
| 10 | The nonflat positive-volume ancient line limit is lifted into the original |
| 11 | source universe. Its actual metric, connection, curvature, distances and ball |
| 12 | volumes are transported by the lifting diffeomorphism. The canonical terminal |
| 13 | Busemann function then has a smooth parallel unit gradient and zero Hessian. |
| 14 | These conclusions concern the zero slice; backward persistence is separate. |
| 15 | |
| 16 | References: Kleiner--Lott (corrected 2013), Proposition 41.13, p. 2678; |
| 17 | Morgan--Tian, Proposition 2.3, pp. 21--23, and Lemma 2.14, pp. 28--29. |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | set_option autoImplicit false |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | open Set Filter |
| 25 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.RicciFlow |
| 30 | |
| 31 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 32 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 33 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 34 | |
| 35 | set_option maxHeartbeats 800000 in |
| 36 | /-- Original bounded ancient data construct a nonflat positive-volume ancient |
| 37 | flow in the original universe and its explicit smooth terminal Busemann |
| 38 | potential. Curvature theory is used only in that original universe. -/ |
| 39 | theorem exists_nonflat_ancient_limit_with_terminal_parallel_gradient |
| 40 | {m : ℕ} (hm : 0 < m) {M : Type u} |
| 41 | [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] |
| 42 | [ConnectedSpace M] [NoncompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 43 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] [IsManifold (𝓡 (m + 1)) ∞ M] |
| 44 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (m + 1) M (Iic 0)) |
| 45 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 46 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 47 | {K : ℝ} (hK : 0 ≤ K) |
| 48 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 49 | {κ : ℝ} (hκ : 0 < κ) |
| 50 | (hnoncollapse : ∀ t ≤ 0, ∀ x : M, ∀ r : ℝ, 0 < r → |
| 51 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ y ∈ (F.metric t).ball x r, |
| 52 | (F.connection s).curvatureTensorNorm y ≤ r⁻¹ ^ 2) → |
| 53 | ENNReal.ofReal (κ * r ^ (m + 1)) ≤ |
| 54 | (F.metric t).volumeMeasure ((F.metric t).ball x r)) |
| 55 | {t₀ t₁ : ℝ} (ht₀ : t₀ < 0) (ht₁ : t₁ ≤ 0) (htimeOrder : t₀ ≤ t₁) |
| 56 | (p : M) (hvolume : 0 < (F.metric t₁).asymptoticVolumeRatio p) |
| 57 | (hunbounded : ¬ BddAbove (range (fun x => |
| 58 | ((F.metric t₀).edist p x).toReal ^ 2 * (F.connection t₀).scalarCurvature x))) : |
| 59 | ∃ C : FlowCarrier.{u} (m + 1), ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 60 | ∃ Flim : RicciFlow (m + 1) C.carrier (Iio δ), ∃ base : C.carrier, |
| 61 | (∀ t ∈ Iio δ, C.metricComplete (Flim.metric t)) ∧ |
| 62 | (∀ t ∈ Iio δ, ∀ x, (Flim.connection t).NonnegativeCurvatureOperator x) ∧ |
| 63 | (∀ t ∈ Iio δ, ∀ x, |
| 64 | (Flim.connection t).curvatureTensorNorm x ≤ 4 * (((m + 1 : ℕ) : ℝ)) ^ 2) ∧ |
| 65 | 0 < (Flim.connection 0).scalarCurvature base ∧ |
| 66 | 0 < (Flim.metric 0).asymptoticVolumeRatio base ∧ |
| 67 | ∃ (γ : ℝ → C.carrier) (f : C.carrier → ℝ), |
| 68 | γ 0 = base ∧ |
| 69 | (∀ s t : ℝ, (Flim.metric 0).edist (γ s) (γ t) = ENNReal.ofReal |s - t|) ∧ |
| 70 | f = (Flim.metric 0).busemann γ ∧ |
| 71 | ContMDiff (𝓡 (m + 1)) 𝓘(ℝ, ℝ) ∞ f ∧ |
| 72 | RiemannianMetric.HasUnitGradient (Flim.connection 0) f ∧ |
| 73 | RiemannianMetric.HasZeroHessian (Flim.connection 0) f ∧ f base = 0 := by |
| 74 | obtain ⟨C, δ, hδ, hδone, H, base, hc, hop, hnorm, hscalar, hAVR, hline⟩ := |
| 75 | exists_nonflat_small_ancient_limit_with_line_of_unbounded_scalar_ratio hm hC F |
| 76 | hcomplete hoperator hK hbound hκ hnoncollapse ht₀ ht₁ htimeOrder p hvolume hunbounded |
| 77 | let : ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 78 | let : ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) (ULift.{u} C.carrier) := |
| 79 | Poincare.Manifold.uliftChartedSpace _ C.carrier |
| 80 | let : IsManifold (𝓡 (m + 1)) ∞ (ULift.{u} C.carrier) := |
| 81 | Poincare.Manifold.uliftIsManifold (𝓡 (m + 1)) C.carrier |
| 82 | let : ConnectedSpace (ULift.{u} C.carrier) := |
| 83 | (Homeomorph.ulift.connectedSpace_iff).mpr inferInstance |
| 84 | let : SecondCountableTopology (ULift.{u} C.carrier) := |
| 85 | Homeomorph.ulift.secondCountableTopology |
| 86 | let L : FlowCarrier.{u} (m + 1) := |
| 87 | FlowCarrier.ofConnectedManifold (m + 1) (ULift.{u} C.carrier) |
| 88 | let Hlift : RicciFlow (m + 1) (ULift.{u} C.carrier) (Iio δ) := H.ulift |
| 89 | let := C.metricSpaceOf (H.metric 0) |
| 90 | obtain ⟨γ, hγ, hγ0⟩ := hline |
| 91 | let γlift : ℝ → ULift.{u} C.carrier := fun s => ULift.up.{u} (γ s) |
| 92 | have hγlift0 : γlift 0 = ULift.up.{u} base := congrArg ULift.up hγ0 |
| 93 | have hγlift : ∀ s t : ℝ, (Hlift.metric 0).edist (γlift s) (γlift t) = |
| 94 | ENNReal.ofReal |s - t| := by |
| 95 | intro s t |
| 96 | rw [show (Hlift.metric 0).edist (γlift s) (γlift t) = |
| 97 | (H.metric 0).edist (γ s) (γ t) by exact H.ulift_edist 0 _ _] |
| 98 | change edist (γ s) (γ t) = ENNReal.ofReal |s - t| |
| 99 | rw [hγ.edist_eq, edist_dist, Real.dist_eq] |
| 100 | have hcLift (t : ℝ) (ht : t ∈ Iio δ) : MetricComplete (Hlift.metric t) := |
| 101 | (H.ulift_metricComplete_iff t).mpr (hc t ht) |
| 102 | have hopLift (t : ℝ) (ht : t ∈ Iio δ) (x : ULift.{u} C.carrier) : |
| 103 | (Hlift.connection t).NonnegativeCurvatureOperator x := |
| 104 | (H.ulift_nonnegativeCurvatureOperator_iff t x).mpr (hop t ht x.down) |
| 105 | have hRic : (Hlift.connection 0).NonnegativeRicciCurvature := by |
| 106 | intro x v |
| 107 | exact ((Hlift.connection 0).ricci_bounds_of_nonnegative_curvatureOperator |
| 108 | (hC.tensor_calculus (m + 1) (ULift.{u} C.carrier) |
| 109 | (Hlift.metric 0) (Hlift.connection 0)) x (hopLift 0 hδ x) v).1 |
| 110 | obtain ⟨hf, hu, _, hz, hf0⟩ := (Hlift.metric 0).busemann_parallel_unit_gradient |
| 111 | (Hlift.connection 0) (hcLift 0 hδ) hRic hγlift |
| 112 | have hAVRLift : (Hlift.metric 0).asymptoticVolumeRatio (ULift.up.{u} base) = |
| 113 | (H.metric 0).asymptoticVolumeRatio base := by |
| 114 | simp only [RiemannianMetric.asymptoticVolumeRatio, Hlift, H.ulift_volumeMeasure_ball] |
| 115 | refine ⟨L, δ, hδ, hδone, Hlift, ULift.up.{u} base, hcLift, hopLift, ?_, ?_, |
| 116 | hAVRLift.symm ▸ hAVR, γlift, (Hlift.metric 0).busemann γlift, |
| 117 | hγlift0, hγlift, rfl, hf, hu, hz, ?_⟩ |
| 118 | · intro t ht x |
| 119 | simpa only [Hlift, H.ulift_curvatureTensorNorm] using hnorm t ht x.down |
| 120 | · simpa only [Hlift, H.ulift_scalarCurvature] using hscalar |
| 121 | · simpa only [hγlift0] using hf0 |
| 122 | |
| 123 | end PoincareMT.RicciFlow |