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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckAnalysis.ModelChristoffel |
| 3 | |
| 4 | /-! |
| 5 | # Smooth germs in the frozen cylinder derivative recursion |
| 6 | |
| 7 | Morgan--Tian Definition 2.16, p. 30, and Proposition 9.79, pp. 232-234. |
| 8 | These lemmas keep each actual derivative inside its open smoothness domain. |
| 9 | They supply the regularity required for linear finite-jet estimates in |
| 10 | the cylinder-jet bootstrap derivation. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle BigOperators InnerProductSpace Topology |
| 17 | |
| 18 | namespace PoincareMT.Proofs.M28.NeckAnalysis |
| 19 | |
| 20 | /-- The actual chosen-chart model Christoffels are globally smooth before |
| 21 | the model's singular time. -/ |
| 22 | theorem contDiff_roundCylinderChristoffel {u : ℝ} (hu : u < 1) |
| 23 | (q : UnitTwoSphere) (a b d : Fin 3) : |
| 24 | ContDiff ℝ ∞ (fun p => roundCylinderChristoffel u |
| 25 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) p a b d) := by |
| 26 | simp_rw [roundCylinderChristoffel_chosen_chart hu] |
| 27 | exact contDiff_cylinderModelChristoffel a b d |
| 28 | |
| 29 | /-- The actual chosen-chart model Gram coefficients are smooth, even when |
| 30 | only their coefficient formula and not metric positivity is needed. -/ |
| 31 | theorem contDiff_roundCylinderGram (u : ℝ) (q : UnitTwoSphere) |
| 32 | (a b : Fin 3) : |
| 33 | ContDiff ℝ ∞ (fun p => roundCylinderGram u |
| 34 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) p a b) := by |
| 35 | have hf : ContDiff ℝ ∞ (fun p : RoundCylinderCoordinates => |
| 36 | 2 * (1-u) * sphereChartConformalFactor p.1) := |
| 37 | by |
| 38 | convert ((contDiff_const : ContDiff ℝ ∞ |
| 39 | (fun _ : RoundCylinderCoordinates => 2 * (1-u))).smul |
| 40 | (contDiff_sphereChartConformalFactor.comp contDiff_fst)) using 1 |
| 41 | funext p |
| 42 | simp [smul_eq_mul] |
| 43 | simp_rw [roundCylinderGram_chosen_chart] |
| 44 | fin_cases a <;> fin_cases b <;> dsimp [Matrix.diagonal] <;> |
| 45 | first | exact hf | exact contDiff_const |
| 46 | |
| 47 | /-- One literal covariant derivative preserves smoothness on an open set; |
| 48 | the model correction includes every existing covariant slot. -/ |
| 49 | theorem contDiffOn_roundCylinderTensorDerivative {u : ℝ} (hu : u < 1) |
| 50 | (q : UnitTwoSphere) {S : Set RoundCylinderCoordinates} (hS : IsOpen S) |
| 51 | {r : ℕ} {T : RoundCylinderCoordinates → (Fin r → Fin 3) → ℝ} |
| 52 | (hT : ∀ a, ContDiffOn ℝ ∞ (fun p => T p a) S) : |
| 53 | ∀ a, ContDiffOn ℝ ∞ (fun p => roundCylinderTensorDerivative u |
| 54 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) T p a) S := by |
| 55 | intro a p hp |
| 56 | have ht (b : Fin r → Fin 3) : ContDiffAt ℝ ∞ (fun y => T y b) p := |
| 57 | (hT b).contDiffAt (hS.mem_nhds hp) |
| 58 | have hd := ((ht (fun i => a i.succ)).fderiv_right (m := ∞) (by simp)).clm_apply |
| 59 | (contDiffAt_const (c := roundCylinderCoordinateBasis (a 0))) |
| 60 | have hc : ContDiffAt ℝ ∞ (fun y => ∑ i : Fin r, ∑ j : Fin 3, |
| 61 | roundCylinderChristoffel u (chartAt (EuclideanSpace ℝ (Fin 2)) q) y |
| 62 | j (a 0) (a i.succ) * T y (Function.update (fun k => a k.succ) i j)) p := by |
| 63 | apply ContDiffAt.sum |
| 64 | intro i _ |
| 65 | apply ContDiffAt.sum |
| 66 | intro j _ |
| 67 | exact (contDiff_roundCylinderChristoffel hu q j (a 0) (a i.succ)).contDiffAt.mul |
| 68 | (ht _) |
| 69 | exact (hd.sub hc).contDiffWithinAt |
| 70 | |
| 71 | /-- Every component of every frozen error derivative is smooth on the actual |
| 72 | open strip, with no condition on total tensor values outside that strip. -/ |
| 73 | theorem contDiffOn_roundCylinderIteratedDerivative {epsilon u : ℝ} (hu : u < 1) |
| 74 | {B : RoundCylinderTwoTensor} (hB : RoundCylinderTensorSmoothOn epsilon B) |
| 75 | (q : UnitTwoSphere) (k : ℕ) : |
| 76 | ∀ a, ContDiffOn ℝ ∞ (fun p => roundCylinderIteratedDerivative u |
| 77 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) B k p a) |
| 78 | ((chartAt (EuclideanSpace ℝ (Fin 2)) q).target ×ˢ Ioo (-epsilon⁻¹) epsilon⁻¹) := by |
| 79 | induction k with |
| 80 | | zero => |
| 81 | intro a |
| 82 | exact (hB q (a 0) (a 1)).sub |
| 83 | (contDiff_roundCylinderGram u q (a 0) (a 1)).contDiffOn |
| 84 | | succ k ih => |
| 85 | exact contDiffOn_roundCylinderTensorDerivative hu q |
| 86 | ((chartAt (EuclideanSpace ℝ (Fin 2)) q).open_target.prod isOpen_Ioo) ih |
| 87 | |
| 88 | end PoincareMT.Proofs.M28.NeckAnalysis |