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.AncientKappa.Compactness.Terminal.Normalization |
| 2 | import PoincareLib.Geometry.Riemannian.Curvature.Scalar.SharpBounds |
| 3 | |
| 4 | /-! |
| 5 | # Scalar monotonicity and past curvature control through zero |
| 6 | |
| 7 | Continuity extends the scalar monotonicity of the retained interior limit |
| 8 | to the included terminal slice. Nonnegative curvature operator then bounds |
| 9 | earlier full curvature by later scalar curvature on the actual closed flow, |
| 10 | before constructing an ancient kappa-solution package. |
| 11 | |
| 12 | Reference: Morgan--Tian, Corollary 9.53 and Theorem 9.64, pp. 217, 225-229. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | namespace RicciFlow |
| 24 | |
| 25 | /-- Scalar monotonicity on negative times extends to the included terminal |
| 26 | time by the scalar regularity of the actual closed Ricci flow. -/ |
| 27 | theorem scalar_monotone_terminal_of_interior |
| 28 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 29 | {M : Type} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 31 | (F : RicciFlow 3 M (Iic 0)) |
| 32 | (hmono : ∀ s t : ℝ, s ≤ t → t < 0 → ∀ x : M, |
| 33 | (F.connection s).scalarCurvature x ≤ (F.connection t).scalarCurvature x) : |
| 34 | ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x : M, |
| 35 | (F.connection s).scalarCurvature x ≤ (F.connection t).scalarCurvature x := by |
| 36 | intro s t hst ht x |
| 37 | rcases lt_or_eq_of_le ht with ht | rfl |
| 38 | · exact hmono s t hst ht x |
| 39 | rcases lt_or_eq_of_le hst with hs | rfl |
| 40 | · have hreg : ContinuousOn (fun u => (F.connection u).scalarCurvature x) (Iic 0) := |
| 41 | (P.scalar_regular M (Iic 0) F).continuousOn.comp (f := fun u : ℝ => (u, x)) |
| 42 | (continuous_id.prodMk continuous_const).continuousOn (fun u hu => ⟨hu, mem_univ x⟩) |
| 43 | have hlim : Tendsto (fun u => (F.connection u).scalarCurvature x) (𝓝[<] 0) |
| 44 | (𝓝 ((F.connection 0).scalarCurvature x)) := |
| 45 | (hreg 0 (by change (0 : ℝ) ≤ 0; exact le_refl 0)).mono Iio_subset_Iic_self |
| 46 | apply ge_of_tendsto hlim |
| 47 | filter_upwards [self_mem_nhdsWithin, |
| 48 | (eventually_gt_nhds hs).filter_mono nhdsWithin_le_nhds] with u hu hsu |
| 49 | exact hmono s u hsu.le hu x |
| 50 | · exact le_rfl |
| 51 | |
| 52 | /-- On a closed flow with nonnegative curvature operator and scalar |
| 53 | monotonicity, earlier full curvature is bounded by later scalar curvature. -/ |
| 54 | theorem past_curvatureTensorNorm_le_scalar_of_nonnegative_operator |
| 55 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 56 | {M : Type} [TopologicalSpace M] |
| 57 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 58 | (F : RicciFlow 3 M (Iic 0)) |
| 59 | (hoperator : ∀ t : ℝ, t ≤ 0 → ∀ x : M, |
| 60 | (F.connection t).NonnegativeCurvatureOperator x) |
| 61 | (hmono : ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x : M, |
| 62 | (F.connection s).scalarCurvature x ≤ (F.connection t).scalarCurvature x) |
| 63 | {s t : ℝ} (hst : s ≤ t) (ht : t ≤ 0) (x : M) : |
| 64 | |(F.connection s).curvatureTensorNorm x| ≤ (F.connection t).scalarCurvature x := by |
| 65 | rw [abs_of_nonneg (show 0 ≤ (F.connection s).curvatureTensorNorm x from Real.sqrt_nonneg _)] |
| 66 | exact ((F.connection s).curvatureTensorNorm_le_scalarCurvature_sharp |
| 67 | (P.tensor_calculus 3 M (F.metric s) (F.connection s)) x |
| 68 | (hoperator s (hst.trans ht) x)).trans (hmono s t hst ht x) |
| 69 | |
| 70 | end RicciFlow |
| 71 | |
| 72 | namespace NormalizedKappaSolutionSequence |
| 73 | |
| 74 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 75 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 76 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 77 | |
| 78 | local instance closedMonotonicityCarrierConnected (C : FlowCarrier.{0} 3) : |
| 79 | ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 80 | |
| 81 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 82 | (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 83 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 84 | |
| 85 | private theorem closedMonotone_scalarCurvature_eq_of_metric_eq |
| 86 | {M : Type*} [TopologicalSpace M] |
| 87 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 88 | {g h : RiemannianMetric 3 M} (D : LeviCivitaData g) (E : LeviCivitaData h) |
| 89 | (heq : g = h) (x : M) : D.scalarCurvature x = E.scalarCurvature x := by |
| 90 | subst h |
| 91 | exact D.scalarCurvature_eq E x |
| 92 | |
| 93 | /-- The same retained interior flow gives scalar monotonicity on its actual |
| 94 | closed extension, including comparisons with the terminal slice. -/ |
| 95 | theorem closedLimit_scalar_monotone |
| 96 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 97 | (F : RicciFlow 3 G.limitCarrier.carrier (Iic 0)) |
| 98 | (hmetric : ∀ t : ℝ, t < 0 → F.metric t = G.limitFlow.metric (t + 1)) : |
| 99 | ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x : G.limitCarrier.carrier, |
| 100 | (F.connection s).scalarCurvature x ≤ (F.connection t).scalarCurvature x := by |
| 101 | apply F.scalar_monotone_terminal_of_interior P |
| 102 | intro s t hst ht x |
| 103 | rw [closedMonotone_scalarCurvature_eq_of_metric_eq |
| 104 | (F.connection s) (G.limitFlow.connection (s + 1)) (hmetric s (hst.trans_lt ht)) x, |
| 105 | closedMonotone_scalarCurvature_eq_of_metric_eq |
| 106 | (F.connection t) (G.limitFlow.connection (t + 1)) (hmetric t ht) x] |
| 107 | exact S.interiorLimit_scalar_monotone G P (by linarith) (by linarith) x |
| 108 | |
| 109 | /-- The actual closed extension inherits the original whole-past curvature |
| 110 | control by later scalar curvature, with no global boundedness premise. -/ |
| 111 | theorem closedLimit_past_norm_le_scalar |
| 112 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 113 | (F : RicciFlow 3 G.limitCarrier.carrier (Iic 0)) |
| 114 | (hmetric : ∀ t : ℝ, t < 0 → F.metric t = G.limitFlow.metric (t + 1)) |
| 115 | {s t : ℝ} (hst : s ≤ t) (ht : t ≤ 0) (x : G.limitCarrier.carrier) : |
| 116 | |(F.connection s).curvatureTensorNorm x| ≤ (F.connection t).scalarCurvature x := |
| 117 | F.past_curvatureTensorNorm_le_scalar_of_nonnegative_operator P |
| 118 | (S.closedLimit_nonnegativeCurvatureOperator G P F hmetric) |
| 119 | (S.closedLimit_scalar_monotone G P F hmetric) hst ht x |
| 120 | |
| 121 | end NormalizedKappaSolutionSequence |
| 122 | end PoincareMT |