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.Boundedness.Compact |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Projective.Alternatives |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Projective.Exclusion |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Boundedness.Spherical |
| 5 | |
| 6 | /-! |
| 7 | # Bounded terminal scalar curvature of the actual ancient limit |
| 8 | |
| 9 | An unbounded terminal field would construct selected rescalings whose |
| 10 | bounded auxiliary limit splits with a round surface. Its spherical and |
| 11 | projective cylinder alternatives are both impossible in the original |
| 12 | complete nonnegatively curved terminal metric. |
| 13 | |
| 14 | Reference: Morgan--Tian, Theorem 9.64, pp. 225-229; corrected Kleiner--Lott, |
| 15 | Theorem 46.1, pp. 2687-2688. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | namespace PoincareMT.RicciFlow |
| 26 | |
| 27 | variable {M : Type} [TopologicalSpace M] [T2Space M] [T3Space M] |
| 28 | [SecondCountableTopology M] [ConnectedSpace M] [MeasurableSpace M] [BorelSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | |
| 31 | /-- The original predecessor services and the actual raw flow geometry |
| 32 | force a global scalar bound before the flow is packaged as a kappa-solution. -/ |
| 33 | theorem exists_terminal_scalar_bound_of_m23_predecessors |
| 34 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 35 | {κ : ℝ} (F : RicciFlow 3 M (Iic 0)) (hκ : 0 < κ) |
| 36 | (hc : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 37 | (hop : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 38 | (hmono : ∀ s t, s ≤ t → t ≤ 0 → ∀ x, |
| 39 | (F.connection s).scalarCurvature x ≤ (F.connection t).scalarCurvature x) |
| 40 | (hnc : ∀ t ≤ 0, ∀ p : M, ∀ r : ℝ, 0 < r → |
| 41 | (∀ s ∈ Ioc (t - r ^ 2) t, ∀ x ∈ (F.metric t).ball p r, |
| 42 | |(F.connection s).curvatureTensorNorm x| ≤ r⁻¹ ^ 2) → |
| 43 | ENNReal.ofReal (κ * r ^ 3) ≤ calibratedMetricVolume (F.metric t) |
| 44 | ((F.metric t).ball p r)) |
| 45 | (p : M) : |
| 46 | ∃ B : ℝ, 0 ≤ B ∧ ∀ x : M, (F.connection 0).scalarCurvature x ≤ B := by |
| 47 | classical |
| 48 | by_cases hcompact : CompactSpace M |
| 49 | · let _ := hcompact |
| 50 | exact F.exists_terminal_scalar_bound_of_compactSpace P |
| 51 | let _ : NoncompactSpace M := ⟨fun h => hcompact ⟨h⟩⟩ |
| 52 | by_contra hbound |
| 53 | have hunbounded : ¬ BddAbove (range (F.connection 0).scalarCurvature) := by |
| 54 | rintro ⟨B, hB⟩ |
| 55 | exact hbound ⟨max B 0, le_max_right _ _, fun x => |
| 56 | (hB (mem_range_self x)).trans (le_max_left _ _)⟩ |
| 57 | obtain ⟨S, _⟩ := F.exists_selected_roundProductBlowup P hκ hc hop hmono hnc p hunbounded |
| 58 | have hsec : (F.connection 0).NonnegativeSectionalCurvature := |
| 59 | fun x v w => (F.connection 0).curvatureTensor_self_nonneg_of_nonnegative_curvatureOperator |
| 60 | x (hop 0 le_rfl x) v w |
| 61 | obtain ⟨εs, hεs, hspherical⟩ := S.exists_no_eventual_spherical_necks (hc 0 le_rfl) hsec |
| 62 | obtain ⟨εp, hεp, hprojective⟩ := S.exists_no_eventual_projective_necks (hc 0 le_rfl) hsec |
| 63 | let ε := min εs (min εp (1 / 4)) |
| 64 | have hε : 0 < ε := lt_min hεs (lt_min hεp (by norm_num)) |
| 65 | have hεs' : ε ≤ εs := min_le_left _ _ |
| 66 | have hεp' : ε ≤ εp := (min_le_right _ _).trans (min_le_left _ _) |
| 67 | have hεhalf : ε < 1 / 2 := |
| 68 | ((min_le_right _ _).trans (min_le_right _ _)).trans_lt (by norm_num) |
| 69 | obtain ⟨δ, _, _, B, hmodels⟩ := S.exists_terminal_round_or_projective_necks |
| 70 | P hκ (hc 0 le_rfl) (hop 0 le_rfl) hmono hε hεhalf |
| 71 | rcases hmodels with ⟨Φ, q, _, hnecks⟩ | ⟨Φ, q, _, _, _, _, hnecks⟩ |
| 72 | · apply hspherical ε hε hεs' B.convergence.subsequence B.convergence.subsequence_strictMono |
| 73 | filter_upwards [hnecks] with i hi |
| 74 | obtain ⟨N, hNe, hNs, hNc, _⟩ := hi |
| 75 | exact ⟨N, hNe, hNs, hNc⟩ |
| 76 | · apply hprojective ε hε hεp' B.convergence.subsequence B.convergence.subsequence_strictMono |
| 77 | (fun i => B.convergence.embedding i ∘ Φ) q |
| 78 | filter_upwards [hnecks] with i hi |
| 79 | exact ⟨hi.1, hi.2.1, hi.2.2.2.1, hi.2.2.1⟩ |
| 80 | |
| 81 | end PoincareMT.RicciFlow |