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.Noncollapse.Universal.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Noncollapse.Universal.Volume.PastControl |
| 3 | import PoincareLib.Geometry.RicciFlow.MetricComparison |
| 4 | |
| 5 | /-! # Applied scalar and metric control for universal noncollapsing |
| 6 | |
| 7 | The frozen ancient Harnack service makes scalar curvature nondecreasing. |
| 8 | Together with nonnegative curvature, a scalar bound on one time slice |
| 9 | controls the metric on the preceding unit interval. |
| 10 | Reference: Morgan--Tian, Corollary 4.39, p. 81, Theorem 4.40, p. 82, |
| 11 | and Proposition 9.58, pp. 220--221. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle ENNReal |
| 18 | |
| 19 | universe u |
| 20 | namespace PoincareMT.M22UniversalNoncollapsingPredecessors |
| 21 | |
| 22 | variable {d n : ℕ} (H : M22UniversalNoncollapsingPredecessors.{u} d) |
| 23 | {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 26 | [SecondCountableTopology M] [ConnectedSpace M] (K : AncientKappaSolution n M) |
| 27 | |
| 28 | include H |
| 29 | |
| 30 | theorem scalar_monotone {s t : ℝ} (hst : s ≤ t) (ht : t ≤ 0) (x : M) : |
| 31 | (K.flow.connection s).scalarCurvature x ≤ (K.flow.connection t).scalarCurvature x := by |
| 32 | apply K.scalar_monotone_of_differential |
| 33 | (H.ancient_differential n M K.flow K.complete K.nonnegative_curvature_operator |
| 34 | (fun t ht ↦ K.operator_bound_of_tensor_calculus t ht |
| 35 | (H.tensor_calculus n M _ _)) K.nonflat) s t hst ht x |
| 36 | |
| 37 | theorem complete_bounded_on {J : Set ℝ} (hJ : J ⊆ Iic (0 : ℝ)) : |
| 38 | CompleteBoundedCurvatureOn K.flow J := by |
| 39 | obtain ⟨C, hC, hbound⟩ := K.whole_past_bound_of_scalar_monotone |
| 40 | (fun t _ ↦ H.tensor_calculus n M _ _) |
| 41 | (fun _ _ hst ht x ↦ H.scalar_monotone K hst ht x) |
| 42 | refine ⟨fun t ht ↦ K.complete t (hJ ht), C, hC, fun t ht x ↦ ?_⟩ |
| 43 | rw [abs_of_nonneg (by unfold LeviCivitaData.curvatureTensorNorm; positivity)] |
| 44 | exact hbound t (hJ ht) x |
| 45 | |
| 46 | theorem metric_inner_le_exp_four {s : ℝ} (hs : s ∈ Icc (-2 : ℝ) (-1)) |
| 47 | (x : M) (hx : (K.flow.connection (-1)).scalarCurvature x ≤ 2) |
| 48 | (v : TangentSpace (𝓡 n) x) : |
| 49 | (K.flow.metric s).inner x v v ≤ Real.exp 4 * (K.flow.metric (-1)).inner x v v := by |
| 50 | have hnonneg (t : ℝ) : 0 ≤ (K.flow.metric t).inner x v v := by |
| 51 | by_cases hv : v = 0 |
| 52 | · simp [hv] |
| 53 | · exact ((K.flow.metric t).pos x v hv).le |
| 54 | have hRic (t : ℝ) (ht : t ∈ Icc (-2 : ℝ) (-1)) : |
| 55 | |(K.flow.connection t).ricci x v v| ≤ 2 * (K.flow.metric t).inner x v v := by |
| 56 | have ht0 : t ≤ 0 := ht.2.trans (by norm_num) |
| 57 | have hbound := (K.flow.connection t).ricci_bounds_of_nonnegative_curvatureOperator |
| 58 | (H.tensor_calculus n M _ _) x (K.nonnegative_curvature_operator t ht0 x) v |
| 59 | rw [abs_of_nonneg hbound.1] |
| 60 | exact hbound.2.trans (mul_le_mul_of_nonneg_right |
| 61 | ((H.scalar_monotone K ht.2 (by norm_num) x).trans hx) (hnonneg t)) |
| 62 | have hcomp := (K.flow.metric_inner_self_exp_bounds (convex_Icc (-2) (-1)) |
| 63 | (fun t ht ↦ ht.2.trans (by norm_num)) x v 2 hRic |
| 64 | (a := -1) (by norm_num) hs).2 |
| 65 | apply hcomp.trans |
| 66 | apply mul_le_mul_of_nonneg_right _ (hnonneg (-1)) |
| 67 | apply Real.exp_le_exp.mpr |
| 68 | rw [abs_of_nonpos (by linarith [hs.2] : s - -1 ≤ 0)] |
| 69 | linarith [hs.1] |
| 70 | |
| 71 | end PoincareMT.M22UniversalNoncollapsingPredecessors |