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.Uniqueness.CapGeometry.RadialPointIdentification |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.CurvatureDerivativeNorm |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialNormalization |
| 5 | import PoincareLib.Geometry.Riemannian.Homothety.Completeness |
| 6 | |
| 7 | /-! |
| 8 | # Retaining radial intervals in the actual normalized metric |
| 9 | |
| 10 | The original SO(3) action carries an axis point to the selected center and |
| 11 | preserves both distance and the first covariant curvature norm. Consequently |
| 12 | an ambient ball bound controls one outward radial interval of fixed length. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 20 | |
| 21 | namespace PoincareMT.M35.Uniqueness |
| 22 | |
| 23 | private noncomputable abbrev e2 : StandardCapSpace := EuclideanSpace.single (2 : Fin 3) 1 |
| 24 | |
| 25 | /-- The actual covariant curvature norms are constant on the original |
| 26 | rotation orbits, at every derivative order. -/ |
| 27 | theorem rotational_curvatureDerivativeNorm_eq |
| 28 | {g : RiemannianMetric 3 StandardCapSpace} (D : LeviCivitaData g) |
| 29 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 30 | ∀ x u v : StandardCapSpace, |
| 31 | g.inner (standardRotation A x) |
| 32 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 33 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 34 | (A : Matrix.specialOrthogonalGroup (Fin 3) ℝ) (x : StandardCapSpace) (m : ℕ) : |
| 35 | D.curvatureDerivativeNorm m (standardRotation A x) = D.curvatureDerivativeNorm m x := by |
| 36 | let e := standardRotationDiffeomorph A |
| 37 | exact (D.curvatureDerivativeNorm_eq_pullback D isOpen_univ e.contMDiff.contMDiffOn |
| 38 | (fun y _ => ⟨e.mfderivToContinuousLinearEquiv (by simp) y, rfl⟩) |
| 39 | (fun y _ u v => (hrotation A y u v).symm) m (mem_univ x)).symm |
| 40 | |
| 41 | /-- An actual ambient ball of radius `d` retains the outward axis interval |
| 42 | of radial arclength at most `d / 2`, after the literal original rotation. -/ |
| 43 | theorem radial_curvatureDerivative_bound_of_ball_bound |
| 44 | {g : RiemannianMetric 3 StandardCapSpace} (D : LeviCivitaData g) |
| 45 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 46 | ∀ x u v : StandardCapSpace, |
| 47 | g.inner (standardRotation A x) |
| 48 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 49 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 50 | {d B : ℝ} (hd : 0 < d) (x : StandardCapSpace) |
| 51 | (hbound : ∀ y ∈ g.ball x d, D.curvatureDerivativeNorm 1 y ≤ B) |
| 52 | {r : ℝ} (hr : ‖x‖ ≤ r) |
| 53 | (hlength : radialArclength g r - radialArclength g ‖x‖ ≤ d / 2) : |
| 54 | D.curvatureDerivativeNorm 1 (r • e2) ≤ B := by |
| 55 | obtain ⟨A, hA⟩ := exists_axis_rotation x |
| 56 | let e := standardRotationDiffeomorph A |
| 57 | have he : MetricHomothety g g e 1 := by |
| 58 | intro y u v |
| 59 | change g.inner (standardRotation A y) |
| 60 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) y u) |
| 61 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) y v) = _ |
| 62 | simpa only [one_mul] using hrotation A y u v |
| 63 | have hdist := M13.homothety_edist g g e 1 zero_lt_one he (‖x‖ • e2) (r • e2) |
| 64 | have hAx : e (‖x‖ • e2) = x := hA |
| 65 | rw [hAx, Real.sqrt_one, ENNReal.ofReal_one, one_mul] at hdist |
| 66 | have hmem : e (r • e2) ∈ g.ball x d := by |
| 67 | change g.edist x (e (r • e2)) < ENNReal.ofReal d |
| 68 | rw [hdist] |
| 69 | exact ((edist_axis_segment_le g hr).trans (ENNReal.ofReal_le_ofReal hlength)).trans_lt |
| 70 | ((ENNReal.ofReal_lt_ofReal_iff hd).mpr (half_lt_self hd)) |
| 71 | have h := hbound (e (r • e2)) hmem |
| 72 | change D.curvatureDerivativeNorm 1 (standardRotation A (r • e2)) ≤ B at h |
| 73 | rw [rotational_curvatureDerivativeNorm_eq D hrotation A (r • e2) 1] at h |
| 74 | exact h |
| 75 | |
| 76 | /-- Scalar normalization preserves the literal original rotation action. -/ |
| 77 | theorem scaleSmoothMetric_rotation_invariant |
| 78 | {g : RiemannianMetric 3 StandardCapSpace} |
| 79 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 80 | ∀ x u v : StandardCapSpace, |
| 81 | g.inner (standardRotation A x) |
| 82 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 83 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 84 | (Q : ℝ) (hQ : 0 < Q) (A : Matrix.specialOrthogonalGroup (Fin 3) ℝ) |
| 85 | (x u v : StandardCapSpace) : |
| 86 | (M13.scaleSmoothMetric g Q hQ).inner (standardRotation A x) |
| 87 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 88 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = |
| 89 | (M13.scaleSmoothMetric g Q hQ).inner x u v := by |
| 90 | simp only [M13.scaleSmoothMetric_inner, hrotation] |
| 91 | |
| 92 | /-- The actual scalar-normalized connection has the same sectional sign. -/ |
| 93 | theorem scaleLeviCivitaData_nonnegative_sectional |
| 94 | {g : RiemannianMetric 3 StandardCapSpace} (D : LeviCivitaData g) |
| 95 | (hsec : D.NonnegativeSectionalCurvature) (Q : ℝ) (hQ : 0 < Q) : |
| 96 | (M13.scaleLeviCivitaData D Q hQ).NonnegativeSectionalCurvature := by |
| 97 | intro x u v |
| 98 | have h := M13.homothety_curvatureTensor_eq g (M13.scaleSmoothMetric g Q hQ) |
| 99 | (Diffeomorph.refl (𝓡 3) StandardCapSpace ∞) Q |
| 100 | (M13.identity_metricHomothety g Q hQ) D (M13.scaleLeviCivitaData D Q hQ) x u v u v |
| 101 | change (M13.scaleLeviCivitaData D Q hQ).curvatureTensor x |
| 102 | (mfderiv (𝓡 3) (𝓡 3) id x u) (mfderiv (𝓡 3) (𝓡 3) id x v) |
| 103 | (mfderiv (𝓡 3) (𝓡 3) id x u) (mfderiv (𝓡 3) (𝓡 3) id x v) = _ at h |
| 104 | simp only [mfderiv_id] at h |
| 105 | change (M13.scaleLeviCivitaData D Q hQ).curvatureTensor x u v u v = |
| 106 | Q * D.curvatureTensor x u v u v at h |
| 107 | rw [h] |
| 108 | exact mul_nonneg hQ.le (hsec x u v) |
| 109 | |
| 110 | /-- Completeness of the actual source metric survives scalar normalization. -/ |
| 111 | theorem scaleSmoothMetric_complete |
| 112 | (g : RiemannianMetric 3 StandardCapSpace) (hcomplete : MetricComplete g) |
| 113 | (Q : ℝ) (hQ : 0 < Q) : MetricComplete (M13.scaleSmoothMetric g Q hQ) := by |
| 114 | exact (M13.homothety_complete_iff g (M13.scaleSmoothMetric g Q hQ) |
| 115 | (Diffeomorph.refl (𝓡 3) StandardCapSpace ∞) Q hQ |
| 116 | (M13.identity_metricHomothety g Q hQ)).mpr hcomplete |
| 117 | |
| 118 | end PoincareMT.M35.Uniqueness |