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.Normalization.RoundSlices |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.Normalization.RicciNorm |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.Normalization.Scalar |
| 4 | |
| 5 | /-! |
| 6 | # Scalar normalization of ancient three-dimensional line flows |
| 7 | |
| 8 | The surface classification is applied separately at each selected time. |
| 9 | Its spatial scalar constancy and the Ricci-norm identity of the parallel |
| 10 | direction reduce the actual ambient scalar evolution to the Riccati equation. |
| 11 | A positive lower bound with extinction at time one fixes its integration |
| 12 | constant without requiring a single factor through future times. |
| 13 | |
| 14 | Reference: Morgan--Tian, Proposition 9.46, pp. 209-213, and Corollary 9.50, |
| 15 | pp. 214-215. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set |
| 23 | open scoped Manifold ContDiff Bundle ENNReal |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.RicciFlow |
| 28 | |
| 29 | variable {M : Type u} [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] |
| 30 | [ConnectedSpace M] [MeasurableSpace M] [BorelSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 32 | |
| 33 | omit [MeasurableSpace M] [BorelSpace M] in |
| 34 | /-- Every slice has the Ricci-norm identity of its actual parallel-gradient |
| 35 | surface factor. -/ |
| 36 | theorem ricciNormSq_eq_half_scalar_sq_of_line_at_each_time |
| 37 | (hP : ThreeDimensionalClassificationPredecessors.{u}) |
| 38 | (F : RicciFlow 3 M (Iio 1)) |
| 39 | (hcomplete : ∀ t < 1, MetricComplete (F.metric t)) |
| 40 | (hnonneg : ∀ t < 1, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 41 | (hline : ∀ t < 1, ∃ γ : ℝ → M, ∀ s r : ℝ, |
| 42 | (F.metric t).edist (γ s) (γ r) = ENNReal.ofReal |s - r|) |
| 43 | (t : ℝ) (ht : t < 1) (x : M) : |
| 44 | (F.connection t).ricciNormSq x = (1 / 2 : ℝ) * (F.connection t).scalarCurvature x ^ 2 := by |
| 45 | obtain ⟨γ, hγ⟩ := hline t ht |
| 46 | have hD := hP.curvature.tensor_calculus 3 M (F.metric t) (F.connection t) |
| 47 | have hRic : (F.connection t).NonnegativeRicciCurvature := by |
| 48 | intro y v |
| 49 | exact ((F.connection t).ricci_bounds_of_nonnegative_curvatureOperator hD y |
| 50 | (hnonneg t ht y) v).1 |
| 51 | obtain ⟨hf, hu, _, hz, _⟩ := (F.metric t).busemann_parallel_unit_gradient |
| 52 | (F.connection t) (hcomplete t ht) hRic hγ |
| 53 | exact (F.connection t).ricciNormSq_eq_half_scalar_sq_of_parallel_gradient hD hf hu hz x |
| 54 | |
| 55 | /-- The complete noncollapsed ancient line flow has cylindrical scalar |
| 56 | normalization, with no roundness or normalization hypothesis. -/ |
| 57 | theorem scalarCurvature_eq_one_div_one_sub_of_line_at_each_time |
| 58 | (hP : ThreeDimensionalClassificationPredecessors.{u}) |
| 59 | (F : RicciFlow 3 M (Iio 1)) |
| 60 | (hcomplete : ∀ t < 1, MetricComplete (F.metric t)) |
| 61 | (hnonneg : ∀ t < 1, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 62 | (hbound : ∀ T < 1, ∃ K : ℝ, 0 ≤ K ∧ ∀ t ≤ T, ∀ x, |
| 63 | (F.connection t).curvatureTensorNorm x ≤ K) |
| 64 | {κ : ℝ} (hκ : ∀ t < 1, |
| 65 | MetricKappaNoncollapsed (F.metric t) (F.connection t) κ) |
| 66 | (hline : ∀ t < 1, ∃ γ : ℝ → M, ∀ s r : ℝ, |
| 67 | (F.metric t).edist (γ s) (γ r) = ENNReal.ofReal |s - r|) |
| 68 | {c : ℝ} (hc : 0 < c) |
| 69 | (hlower : ∀ t < 1, ∀ x : M, |
| 70 | c / (1 - t) ≤ (F.connection t).scalarCurvature x) : |
| 71 | ∀ t < 1, ∀ x : M, (F.connection t).scalarCurvature x = 1 / (1 - t) := by |
| 72 | have hpos (t : ℝ) (ht : t < 1) (x : M) : |
| 73 | 0 < (F.connection t).scalarCurvature x := |
| 74 | (div_pos hc (sub_pos.mpr ht)).trans_le (hlower t ht x) |
| 75 | exact F.scalarCurvature_eq_one_div_one_sub_of_spatially_constant_lower_bound |
| 76 | (F.scalarCurvature_spatially_constant_of_line_at_each_time |
| 77 | hP hcomplete hnonneg hbound hκ hpos hline) |
| 78 | (F.ricciNormSq_eq_half_scalar_sq_of_line_at_each_time hP hcomplete hnonneg hline) |
| 79 | hc hlower |
| 80 | |
| 81 | end PoincareMT.RicciFlow |