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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.ExistenceData |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Minimum.Compactness.ScalarBound |
| 4 | import Mathlib.Topology.Algebra.Order.Field |
| 5 | |
| 6 | /-! |
| 7 | # Times of a scalar blowup sequence |
| 8 | |
| 9 | Morgan-Tian, Theorem 12.28, pp. 323-324. Uniform curvature control on every |
| 10 | closed earlier slab forces any scalar blowup sequence toward the terminal |
| 11 | time. Its normalized backward duration consequently diverges. |
| 12 | See `tasks/M35/derivations/04-generalized-realization.md`. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.PartialStandardCapFlow |
| 21 | |
| 22 | /-- Theorem 12.28, pp. 323-324: one threshold excludes the initial |
| 23 | time strip and ensures at least one unit of normalized backward time. -/ |
| 24 | theorem exists_unit_backward_duration_threshold {g₀ : StandardInitialMetric} |
| 25 | (F : PartialStandardCapFlow g₀) : |
| 26 | ∃ H : ℝ, 0 < H ∧ ∀ t ∈ Ico 0 F.lifetime, ∀ x : StandardCapSpace, |
| 27 | H ≤ (F.flow.connection t).scalarCurvature x → |
| 28 | 1 ≤ t * (F.flow.connection t).scalarCurvature x := by |
| 29 | have hhalf : 0 < F.lifetime / 2 := half_pos F.lifetime_pos |
| 30 | have hhalfT : F.lifetime / 2 < F.lifetime := half_lt_self F.lifetime_pos |
| 31 | obtain ⟨K, _, hK⟩ := F.curvature_locally_bounded (F.lifetime / 2) hhalf.le hhalfT |
| 32 | refine ⟨max (9 * K) (2 / F.lifetime) + 1, ?_, ?_⟩ |
| 33 | · have hmax := le_max_right (9 * K) (2 / F.lifetime) |
| 34 | have hpos : 0 < 2 / F.lifetime := div_pos (by norm_num) F.lifetime_pos |
| 35 | linarith |
| 36 | · intro t ht x hR |
| 37 | have hlarge : 9 * K < (F.flow.connection t).scalarCurvature x := by |
| 38 | linarith [le_max_left (9 * K) (2 / F.lifetime)] |
| 39 | have hscale : 2 / F.lifetime ≤ (F.flow.connection t).scalarCurvature x := by |
| 40 | linarith [le_max_right (9 * K) (2 / F.lifetime)] |
| 41 | have htime : F.lifetime / 2 < t := by |
| 42 | by_contra h |
| 43 | have hn := (le_abs_self _).trans (hK t ⟨ht.1, le_of_not_gt h⟩ x) |
| 44 | have hs := M10.abs_scalarCurvature_le (F.flow.metric t) (F.flow.connection t) x |
| 45 | norm_num at hs |
| 46 | linarith [le_abs_self ((F.flow.connection t).scalarCurvature x)] |
| 47 | have hpos : 0 ≤ (F.flow.connection t).scalarCurvature x := |
| 48 | (div_nonneg (by norm_num) F.lifetime_pos.le).trans hscale |
| 49 | have hprod := (div_le_iff₀ F.lifetime_pos).mp hscale |
| 50 | nlinarith [mul_nonneg (sub_nonneg.mpr htime.le) hpos] |
| 51 | |
| 52 | /-- Theorem 12.28, pp. 323-324: scalar blowup points escape every closed earlier time slab. -/ |
| 53 | theorem tendsto_time_of_scalar_diverges {g₀ : StandardInitialMetric} |
| 54 | (F : PartialStandardCapFlow g₀) (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 55 | (ht : ∀ k, t k ∈ Ico 0 F.lifetime) |
| 56 | (hR : Tendsto (fun k => (F.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) : |
| 57 | Tendsto t atTop (𝓝 F.lifetime) := by |
| 58 | apply tendsto_order.2 |
| 59 | constructor |
| 60 | · intro T hT |
| 61 | by_cases hT0 : 0 ≤ T |
| 62 | · obtain ⟨K, _, hK⟩ := F.curvature_locally_bounded T hT0 hT |
| 63 | filter_upwards [hR.eventually_gt_atTop (9 * K)] with k hk |
| 64 | by_contra hkt |
| 65 | have hnorm := (le_abs_self _).trans (hK (t k) ⟨(ht k).1, le_of_not_gt hkt⟩ (x k)) |
| 66 | have hscalar := M10.abs_scalarCurvature_le (F.flow.metric (t k)) |
| 67 | (F.flow.connection (t k)) (x k) |
| 68 | have hle := le_abs_self ((F.flow.connection (t k)).scalarCurvature (x k)) |
| 69 | norm_num at hscalar |
| 70 | linarith |
| 71 | · exact Eventually.of_forall (fun k => lt_of_lt_of_le (lt_of_not_ge hT0) (ht k).1) |
| 72 | · intro T hT |
| 73 | exact Eventually.of_forall (fun k => (ht k).2.trans hT) |
| 74 | |
| 75 | /-- Theorem 12.28, pp. 323-324: every fixed finite normalized backward horizon eventually exists. -/ |
| 76 | theorem tendsto_scalar_mul_time_of_diverges {g₀ : StandardInitialMetric} |
| 77 | (F : PartialStandardCapFlow g₀) (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 78 | (ht : ∀ k, t k ∈ Ico 0 F.lifetime) |
| 79 | (hR : Tendsto (fun k => (F.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) : |
| 80 | Tendsto (fun k => (F.flow.connection (t k)).scalarCurvature (x k) * t k) |
| 81 | atTop atTop := |
| 82 | hR.atTop_mul_pos F.lifetime_pos (F.tendsto_time_of_scalar_diverges t x ht hR) |
| 83 | |
| 84 | end PoincareMT.PartialStandardCapFlow |