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.Geometry.Limits.CompactDerivativeBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Flow.DoubleFlows |
| 3 | |
| 4 | /-! |
| 5 | # Uniform compact-double derivatives including time zero |
| 6 | |
| 7 | Finite maxima of the initial derivative bounds are independent of the |
| 8 | double height. The compact initial estimate preserves a bound for every |
| 9 | order on the common closed slab, with the constant selected before the |
| 10 | double and flow. This is the initial-endpoint preparation in Morgan-Tian |
| 11 | Theorem 12.5, p. 297; see the common-compact-lifetime derivation. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff |
| 17 | open Set |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | /-- Every finite initial derivative range has a common bound before the |
| 22 | double height or compatible connection is chosen (Theorem 12.5, p. 297). -/ |
| 23 | theorem endDouble_initialDerivative_bounds_upto (g0 : StandardInitialMetric) |
| 24 | (E0 : StandardCapEstimate g0) (k : ℕ) : |
| 25 | ∃ C : ℝ, 0 ≤ C ∧ ∀ (L : ℝ) (hL : 1 < L) |
| 26 | (D : LeviCivitaData (endDoubleMetric g0.cylindrical_end hL)), |
| 27 | ∀ j ≤ k, ∀ q : EndDouble g0.cylindrical_end hL, D.curvatureDerivativeNorm j q ≤ C := by |
| 28 | induction k with |
| 29 | | zero => |
| 30 | obtain ⟨C, hC, hb⟩ := endDouble_curvatureDerivative_bounds g0 E0 0 |
| 31 | refine ⟨C, hC, fun L hL D j hj q => ?_⟩ |
| 32 | have hj0 : j = 0 := by omega |
| 33 | subst j |
| 34 | exact hb L hL D q |
| 35 | | succ k ih => |
| 36 | obtain ⟨C, hC, hb⟩ := ih |
| 37 | obtain ⟨A, hA, ha⟩ := endDouble_curvatureDerivative_bounds g0 E0 (k + 1) |
| 38 | refine ⟨max C A, le_max_of_le_left hC, fun L hL D j hj q => ?_⟩ |
| 39 | by_cases hjk : j ≤ k |
| 40 | · exact (hb L hL D j hjk q).trans (le_max_left _ _) |
| 41 | · have hjs : j = k + 1 := by omega |
| 42 | subst j |
| 43 | exact (ha L hL D q).trans (le_max_right _ _) |
| 44 | |
| 45 | /-- Each curvature derivative has a uniform bound on the common closed |
| 46 | slab, including the initial time, before choosing a double (Theorem 12.5, p. 297). -/ |
| 47 | theorem endDouble_flow_curvatureDerivative_bounds (P : RicciFlowCurvatureTheory.{0}) |
| 48 | (g0 : StandardInitialMetric) (E0 : StandardCapEstimate g0) |
| 49 | {T B : ℝ} (hT : 0 < T) (hB : 0 < B) (k : ℕ) : |
| 50 | ∃ C : ℝ, 0 < C ∧ ∀ (L : ℝ) (hL : 1 < L) |
| 51 | (F : RicciFlow 3 (EndDouble g0.cylindrical_end hL) (Icc 0 T)), |
| 52 | F.metric 0 = endDoubleMetric g0.cylindrical_end hL → |
| 53 | (∀ t ∈ Icc 0 T, ∀ q : EndDouble g0.cylindrical_end hL, |
| 54 | (F.connection t).curvatureTensorNorm q ≤ B) → |
| 55 | ∀ t ∈ Icc 0 T, ∀ q : EndDouble g0.cylindrical_end hL, |
| 56 | (F.connection t).curvatureDerivativeNorm k q ≤ C := by |
| 57 | obtain ⟨A, _hA, hA⟩ := endDouble_initialDerivative_bounds_upto g0 E0 k |
| 58 | have hK : 0 < max B A := hB.trans_le (le_max_left _ _) |
| 59 | obtain ⟨C, hC, hest⟩ := compact_initial_derivative_bound P 3 k hK hT |
| 60 | refine ⟨C, hC, fun L hL F hF hfull => ?_⟩ |
| 61 | apply hest (EndDouble g0.cylindrical_end hL) F |
| 62 | · exact fun t ht q => (hfull t ht q).trans (le_max_left _ _) |
| 63 | · have hinit : ∀ D : LeviCivitaData (F.metric 0), ∀ j ≤ k, |
| 64 | ∀ q : EndDouble g0.cylindrical_end hL, D.curvatureDerivativeNorm j q ≤ A := by |
| 65 | rw [hF] |
| 66 | exact hA L hL |
| 67 | exact fun j hj q => (hinit (F.connection 0) j hj q).trans (le_max_right _ _) |
| 68 | |
| 69 | end PoincareMT.M34 |