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 | |
| 4 | /-! |
| 5 | # The actual Ricci tensor is isotropic at the rotational tip |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. Every tangent direction at the |
| 8 | fixed tip is an actual rotation of the radial axis. Naturality under |
| 9 | those genuine metric isometries makes the Ricci and metric quadratic |
| 10 | forms proportional there. A fine cylindrical metric cannot have this |
| 11 | identity, which will exclude the tip from the selected end neck. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | namespace PoincareMT.M35.Uniqueness |
| 20 | |
| 21 | private noncomputable abbrev e2 : StandardCapSpace := EuclideanSpace.single (2 : Fin 3) 1 |
| 22 | |
| 23 | variable {g : RiemannianMetric 3 StandardCapSpace} (D : LeviCivitaData g) |
| 24 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 25 | ∀ x u v : StandardCapSpace, |
| 26 | g.inner (standardRotation A x) |
| 27 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 28 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 29 | |
| 30 | include hrotation |
| 31 | |
| 32 | private theorem tip_ricci_rotation |
| 33 | (A : Matrix.specialOrthogonalGroup (Fin 3) ℝ) (u v : StandardCapSpace) : |
| 34 | D.ricci 0 (standardRotation A u) (standardRotation A v) = D.ricci 0 u v := by |
| 35 | let F := standardRotationDiffeomorph A |
| 36 | have hF : MetricHomothety g g F 1 := by |
| 37 | intro y a b |
| 38 | change g.inner (standardRotation A y) |
| 39 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) y a) |
| 40 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) y b) = _ |
| 41 | simpa only [one_mul] using hrotation A y a b |
| 42 | have h := M13.homothety_ricci_eq g g F 1 zero_lt_one hF D D 0 u v |
| 43 | let R (x a b : StandardCapSpace) := D.ricci x a b |
| 44 | change R (standardRotation A 0) |
| 45 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) 0 u) |
| 46 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) 0 v) = R 0 u v at h |
| 47 | rw [standardRotation_mfderiv] at h |
| 48 | change R (Matrix.toEuclideanLin A.1 0) |
| 49 | (standardRotation A u) (standardRotation A v) = R 0 u v at h |
| 50 | rw [map_zero] at h |
| 51 | exact h |
| 52 | |
| 53 | private theorem tip_metric_rotation |
| 54 | (A : Matrix.specialOrthogonalGroup (Fin 3) ℝ) (u v : StandardCapSpace) : |
| 55 | g.inner 0 (standardRotation A u) (standardRotation A v) = g.inner 0 u v := by |
| 56 | have h := hrotation A 0 u v |
| 57 | let B (x a b : StandardCapSpace) := g.inner x a b |
| 58 | change B (standardRotation A 0) |
| 59 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) 0 u) |
| 60 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) 0 v) = B 0 u v at h |
| 61 | rw [standardRotation_mfderiv] at h |
| 62 | change B (Matrix.toEuclideanLin A.1 0) |
| 63 | (standardRotation A u) (standardRotation A v) = B 0 u v at h |
| 64 | rw [map_zero] at h |
| 65 | exact h |
| 66 | |
| 67 | /-- Theorem 12.32, pp. 326-327: all actual tip directions have the |
| 68 | same Ricci-to-metric ratio, expressed without division by a vector norm. -/ |
| 69 | theorem rotational_tip_ricci_diagonal (u v : StandardCapSpace) : |
| 70 | D.ricci 0 u u * g.inner 0 v v = D.ricci 0 v v * g.inner 0 u u := by |
| 71 | have hdiag (w : StandardCapSpace) : |
| 72 | D.ricci 0 w w = ‖w‖ ^ 2 * D.ricci 0 e2 e2 ∧ |
| 73 | g.inner 0 w w = ‖w‖ ^ 2 * g.inner 0 e2 e2 := by |
| 74 | obtain ⟨A, hA⟩ := exists_axis_rotation w |
| 75 | have hR := tip_ricci_rotation D hrotation A (‖w‖ • e2) (‖w‖ • e2) |
| 76 | have hG := tip_metric_rotation hrotation A (‖w‖ • e2) (‖w‖ • e2) |
| 77 | rw [hA] at hR hG |
| 78 | constructor |
| 79 | · change M13.ricciLinear D 0 w w = _ |
| 80 | change M13.ricciLinear D 0 w w = |
| 81 | M13.ricciLinear D 0 (‖w‖ • e2) (‖w‖ • e2) at hR |
| 82 | rw [hR] |
| 83 | simp only [map_smul, LinearMap.smul_apply, smul_eq_mul, M13.ricciLinear_apply] |
| 84 | ring |
| 85 | · rw [hG] |
| 86 | simp only [map_smul, smul_apply, smul_eq_mul] |
| 87 | ring |
| 88 | rw [(hdiag u).1, (hdiag v).1, (hdiag u).2, (hdiag v).2] |
| 89 | ring |
| 90 | |
| 91 | end PoincareMT.M35.Uniqueness |