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.ModelGram |
| 3 | |
| 4 | /-! |
| 5 | # Actual model Christoffels with uniform finite jets |
| 6 | |
| 7 | Morgan--Tian Definition 2.16, p. 30, and Proposition 9.79, pp. 232-234. |
| 8 | The frozen chosen-chart connection has a universal rational formula. |
| 9 | Its spatial jets at every chosen center are independent of the sphere |
| 10 | chart, axial position, and normalized time before singularity. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle BigOperators InnerProductSpace |
| 16 | |
| 17 | namespace PoincareMT.Proofs.M28.NeckAnalysis |
| 18 | |
| 19 | /-- The sphere coordinate components, extended by zero in the axial slot. -/ |
| 20 | def cylinderSphereCoordinate (p : RoundCylinderCoordinates) : Fin 3 → ℝ := |
| 21 | ![p.1 0, p.1 1, 0] |
| 22 | |
| 23 | /-- The Kronecker symbol on the two sphere directions. -/ |
| 24 | def cylinderSphereDelta (a b : Fin 3) : ℝ := |
| 25 | if a = b ∧ a ≠ 2 then 1 else 0 |
| 26 | |
| 27 | /-- Universal coefficients of the actual model connection in its chosen |
| 28 | stereographic charts; the sphere scale is constant in space. -/ |
| 29 | noncomputable def cylinderModelChristoffel (p : RoundCylinderCoordinates) |
| 30 | (a b d : Fin 3) : ℝ := |
| 31 | (-2 / (‖p.1‖ ^ 2 + 4)) * |
| 32 | (cylinderSphereDelta a d * cylinderSphereCoordinate p b + |
| 33 | cylinderSphereDelta a b * cylinderSphereCoordinate p d - |
| 34 | cylinderSphereDelta b d * cylinderSphereCoordinate p a) |
| 35 | |
| 36 | /-- The frozen Christoffel formula is exactly the universal model formula |
| 37 | throughout every chosen chart, not just at the contraction point. -/ |
| 38 | theorem roundCylinderChristoffel_chosen_chart {u : ℝ} (hu : u < 1) |
| 39 | (q : UnitTwoSphere) (p : RoundCylinderCoordinates) (a b d : Fin 3) : |
| 40 | roundCylinderChristoffel u (chartAt (EuclideanSpace ℝ (Fin 2)) q) p a b d = |
| 41 | cylinderModelChristoffel p a b d := by |
| 42 | have ht : 1 - u ≠ 0 := ne_of_gt (sub_pos.mpr hu) |
| 43 | have hp : ‖p.1‖ ^ 2 + 4 ≠ 0 := by positivity |
| 44 | unfold roundCylinderChristoffel |
| 45 | rw [roundCylinderGram_inverse_chosen_chart hu] |
| 46 | simp_rw [fderiv_roundCylinderGram_chosen_chart] |
| 47 | fin_cases a <;> fin_cases b <;> fin_cases d <;> |
| 48 | simp [Matrix.diagonal, roundCylinderCoordinateBasis, |
| 49 | EuclideanSpace.inner_single_right, cylinderModelChristoffel, |
| 50 | cylinderSphereDelta, cylinderSphereCoordinate, sphereChartConformalFactor] <;> |
| 51 | field_simp [ht, hp] <;> ring |
| 52 | |
| 53 | /-- The rational connection coefficients are smooth on the full chart. -/ |
| 54 | theorem contDiff_cylinderModelChristoffel (a b d : Fin 3) : |
| 55 | ContDiff ℝ ∞ (fun p : RoundCylinderCoordinates => cylinderModelChristoffel p a b d) := by |
| 56 | have hc (j : Fin 3) : ContDiff ℝ ∞ |
| 57 | (fun p : RoundCylinderCoordinates => cylinderSphereCoordinate p j) := by |
| 58 | fin_cases j <;> dsimp [cylinderSphereCoordinate] <;> fun_prop |
| 59 | have hr : ContDiff ℝ ∞ |
| 60 | (fun p : RoundCylinderCoordinates => -2 / (‖p.1‖ ^ 2 + 4)) := |
| 61 | contDiff_const.div (((contDiff_norm_sq ℝ).comp contDiff_fst).add contDiff_const) |
| 62 | (fun _ => by positivity) |
| 63 | have hcb : ContDiff ℝ ∞ (fun p => |
| 64 | cylinderSphereDelta a d * cylinderSphereCoordinate p b) := by |
| 65 | convert ((contDiff_const : ContDiff ℝ ∞ |
| 66 | (fun _ : RoundCylinderCoordinates => cylinderSphereDelta a d)).smul (hc b)) using 1 |
| 67 | funext p |
| 68 | simp [smul_eq_mul] |
| 69 | have hcd : ContDiff ℝ ∞ (fun p => |
| 70 | cylinderSphereDelta a b * cylinderSphereCoordinate p d) := by |
| 71 | convert ((contDiff_const : ContDiff ℝ ∞ |
| 72 | (fun _ : RoundCylinderCoordinates => cylinderSphereDelta a b)).smul (hc d)) using 1 |
| 73 | funext p |
| 74 | simp [smul_eq_mul] |
| 75 | have hca : ContDiff ℝ ∞ (fun p => |
| 76 | cylinderSphereDelta b d * cylinderSphereCoordinate p a) := by |
| 77 | convert ((contDiff_const : ContDiff ℝ ∞ |
| 78 | (fun _ : RoundCylinderCoordinates => cylinderSphereDelta b d)).smul (hc a)) using 1 |
| 79 | funext p |
| 80 | simp [smul_eq_mul] |
| 81 | exact hr.mul ((hcb.add hcd).sub hca) |
| 82 | |
| 83 | /-- Translation in the axial coordinate preserves every actual model jet. -/ |
| 84 | theorem iteratedFDeriv_cylinderModelChristoffel_axial (k : ℕ) (s : ℝ) |
| 85 | (a b d : Fin 3) : |
| 86 | iteratedFDeriv ℝ k (fun p => cylinderModelChristoffel p a b d) (0, s) = |
| 87 | iteratedFDeriv ℝ k (fun p => cylinderModelChristoffel p a b d) 0 := by |
| 88 | have heq : (fun p : RoundCylinderCoordinates => |
| 89 | cylinderModelChristoffel ((0, s) + p) a b d) = |
| 90 | (fun p => cylinderModelChristoffel p a b d) := by |
| 91 | funext p |
| 92 | simp [cylinderModelChristoffel, cylinderSphereCoordinate] |
| 93 | have h := iteratedFDeriv_comp_add_left (𝕜 := ℝ) |
| 94 | (f := fun p => cylinderModelChristoffel p a b d) k (0, s) 0 |
| 95 | rw [heq, add_zero] at h |
| 96 | exact h.symm |
| 97 | |
| 98 | /-- Every requested finite list of actual model connection jets has one |
| 99 | bound chosen before the chart, axial point, and model time. -/ |
| 100 | theorem exists_bound_roundCylinderChristoffel_jets (m : ℕ) : |
| 101 | ∃ C : ℝ, 0 ≤ C ∧ ∀ (u : ℝ), u < 1 → ∀ (q : UnitTwoSphere) (s : ℝ), |
| 102 | ∀ k ≤ m, ∀ a b d : Fin 3, |
| 103 | ‖iteratedFDeriv ℝ k |
| 104 | (fun p => roundCylinderChristoffel u |
| 105 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) p a b d) (0, s)‖ ≤ C := by |
| 106 | let value : Fin (m + 1) × Fin 3 × Fin 3 × Fin 3 → ℝ := fun i => |
| 107 | ‖iteratedFDeriv ℝ i.1 (fun p => |
| 108 | cylinderModelChristoffel p i.2.1 i.2.2.1 i.2.2.2) 0‖ |
| 109 | refine ⟨∑ i, value i, Finset.sum_nonneg (fun _ _ => norm_nonneg _), ?_⟩ |
| 110 | intro u hu q s k hkm a b d |
| 111 | simp_rw [roundCylinderChristoffel_chosen_chart hu] |
| 112 | rw [iteratedFDeriv_cylinderModelChristoffel_axial] |
| 113 | exact Finset.single_le_sum (f := value) (fun _ _ => norm_nonneg _) |
| 114 | (Finset.mem_univ (⟨k, Nat.lt_succ_of_le hkm⟩, a, b, d)) |
| 115 | |
| 116 | end PoincareMT.Proofs.M28.NeckAnalysis |