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.Existence.Construction.Flow.CommonCompactLifetime |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Curvature.DoubleCurvature |
| 3 | import PoincareLib.Geometry.RicciFlow.Local.Connection.Existence |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.ExistenceTheory |
| 5 | |
| 6 | /-! |
| 7 | # Compact-double flows on one common closed time slab |
| 8 | |
| 9 | The initial full-curvature bound is independent of the double height. |
| 10 | Compact existence, uniqueness, and continuation therefore give flows |
| 11 | on one positive closed time slab with one full-curvature bound. Their |
| 12 | initial metrics are the actual glued metrics, so the fixed cap charts |
| 13 | retain the prescribed initial geometry. This follows Morgan-Tian |
| 14 | Theorem 12.5, p. 297, with the reviewed full-energy comparison. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open scoped Manifold ContDiff |
| 20 | open Set |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | /-- Compact Hausdorff doubles have the separation structure used by the |
| 25 | actual Riemannian completeness predicate (Theorem 12.5, p. 297). -/ |
| 26 | instance endDouble_t3Space {g : RiemannianMetric 3 StandardCapSpace} |
| 27 | (e : StandardCylindricalEnd g) {L : ℝ} (hL : 1 < L) : T3Space (EndDouble e hL) := by |
| 28 | let := endDouble_t2Space e hL |
| 29 | let := endDouble_compactSpace e hL |
| 30 | let : R1Space (EndDouble e hL) := T2Space.r1Space |
| 31 | let : T1Space (EndDouble e hL) := T2Space.t1Space |
| 32 | let : NormalSpace (EndDouble e hL) := NormalSpace.of_compactSpace_r1Space |
| 33 | let : T4Space (EndDouble e hL) := {} |
| 34 | exact T4Space.t3Space |
| 35 | |
| 36 | /-- All compact doubles have complete flows on one positive closed slab |
| 37 | with one full-curvature bound, selected before the height (Theorem 12.5, p. 297). -/ |
| 38 | theorem exists_uniform_endDouble_flows (P : M34StandardCapPredecessors) |
| 39 | (g0 : StandardInitialMetric) (E0 : StandardCapEstimate g0) : |
| 40 | ∃ τ B : ℝ, 0 < τ ∧ 0 < B ∧ ∀ (L : ℝ) (hL : 1 < L), |
| 41 | ∃ F : RicciFlow 3 (EndDouble g0.cylindrical_end hL) (Icc 0 τ), |
| 42 | F.metric 0 = endDoubleMetric g0.cylindrical_end hL ∧ |
| 43 | (∀ t ∈ Icc 0 τ, MetricComplete (F.metric t)) ∧ |
| 44 | ∀ t ∈ Icc 0 τ, ∀ q : EndDouble g0.cylindrical_end hL, |
| 45 | (F.connection t).curvatureTensorNorm q ≤ B := by |
| 46 | obtain ⟨C, hC, hbound⟩ := endDouble_curvatureTensorNorm_bound g0 E0 |
| 47 | let τ : ℝ := 1 / (23328 * C) |
| 48 | have hτ : 0 < τ := by dsimp [τ]; positivity |
| 49 | have hsmall : 16 * (3 : ℝ) ^ 6 * C * τ ≤ 1 / 2 := by |
| 50 | have hCne : C ≠ 0 := ne_of_gt hC |
| 51 | dsimp [τ] |
| 52 | norm_num |
| 53 | field_simp |
| 54 | nlinarith |
| 55 | refine ⟨τ, 2 * C, hτ, by positivity, ?_⟩ |
| 56 | intro L hL |
| 57 | obtain ⟨D⟩ := exists_leviCivitaData (endDoubleMetric g0.cylindrical_end hL) |
| 58 | obtain ⟨F, hF, hnorm⟩ := exists_compactFlow_on_small_slab |
| 59 | (P.local_flow 3 (EndDouble g0.cylindrical_end hL)) |
| 60 | (endDoubleMetric g0.cylindrical_end hL) D hC hτ hsmall (hbound L hL D) |
| 61 | exact ⟨F, hF, fun t _ => (F.metric t).metricComplete_of_compact, hnorm⟩ |
| 62 | |
| 63 | end PoincareMT.M34 |