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.NormalizedOrbitRadius |
| 3 | |
| 4 | /-! |
| 5 | # Scalar and distance at actual rotational orbits |
| 6 | |
| 7 | Morgan-Tian Section 12.6 and Theorem 12.32. The literal frozen SO(3) |
| 8 | action is a global smooth isometry of each selected rotational metric. |
| 9 | M13 therefore identifies the actual scalar and distance of an arbitrary |
| 10 | point with those of the axis point at the same Euclidean radius. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal |
| 17 | |
| 18 | namespace PoincareMT.M35.Uniqueness |
| 19 | |
| 20 | /-- Section 12.6: the original standard rotation is a genuine global |
| 21 | diffeomorphism, with the inverse rotation as its actual inverse. -/ |
| 22 | noncomputable def standardRotationDiffeomorph |
| 23 | (A : Matrix.specialOrthogonalGroup (Fin 3) ℝ) : |
| 24 | Diffeomorph (𝓡 3) (𝓡 3) StandardCapSpace StandardCapSpace ∞ where |
| 25 | toFun := standardRotation A |
| 26 | invFun := standardRotation A⁻¹ |
| 27 | left_inv := by |
| 28 | intro x |
| 29 | simpa only [inv_inv] using standardRotation_inv_apply A⁻¹ x |
| 30 | right_inv := standardRotation_inv_apply A |
| 31 | contMDiff_toFun := contMDiff_iff_contDiff.mpr |
| 32 | (Matrix.toEuclideanLin A.1).toContinuousLinearMap.contDiff |
| 33 | contMDiff_invFun := contMDiff_iff_contDiff.mpr |
| 34 | (Matrix.toEuclideanLin (A⁻¹).1).toContinuousLinearMap.contDiff |
| 35 | |
| 36 | /-- Section 12.6: actual scalar and distance are constant on the |
| 37 | original rotational orbit, with no new symmetry assumption on coordinates. -/ |
| 38 | theorem rotational_scalar_edist_eq_axis (P : M35StandardCapPredecessors) |
| 39 | {g : RiemannianMetric 3 StandardCapSpace} (D : LeviCivitaData g) |
| 40 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 41 | ∀ x u v : StandardCapSpace, |
| 42 | g.inner (standardRotation A x) |
| 43 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 44 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 45 | (x : StandardCapSpace) : |
| 46 | D.scalarCurvature x = D.scalarCurvature (‖x‖ • EuclideanSpace.single (2 : Fin 3) 1) ∧ |
| 47 | g.edist 0 x = g.edist 0 (‖x‖ • EuclideanSpace.single (2 : Fin 3) 1) := by |
| 48 | obtain ⟨A, hA⟩ := exists_axis_rotation x |
| 49 | let e := standardRotationDiffeomorph A |
| 50 | have he : MetricHomothety g g e 1 := by |
| 51 | intro y u v |
| 52 | change g.inner (standardRotation A y) |
| 53 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) y u) |
| 54 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) y v) = _ |
| 55 | simpa only [one_mul] using hrotation A y u v |
| 56 | have H := P.metric_homothety StandardCapSpace StandardCapSpace g g e 1 zero_lt_one he |
| 57 | have hAx : e (‖x‖ • EuclideanSpace.single (2 : Fin 3) 1) = x := hA |
| 58 | have hAz : e 0 = 0 := (Matrix.toEuclideanLin A.1).map_zero |
| 59 | constructor |
| 60 | · have hs := H.scalar_eq D D (‖x‖ • EuclideanSpace.single (2 : Fin 3) 1) |
| 61 | rw [hAx, div_one] at hs |
| 62 | exact hs |
| 63 | · have hd := H.edist_eq 0 (‖x‖ • EuclideanSpace.single (2 : Fin 3) 1) |
| 64 | rw [hAz, hAx, Real.sqrt_one, ENNReal.ofReal_one, one_mul] at hd |
| 65 | exact hd |
| 66 | |
| 67 | end PoincareMT.M35.Uniqueness |
| 68 | |
| 69 | namespace PoincareMT.RepairedStandardCapExistenceData |
| 70 | |
| 71 | open M35.Uniqueness |
| 72 | |
| 73 | /-- Theorem 12.32: the scalar-normalized orbit-radius bound applies |
| 74 | to every actual high-curvature point, independently of its axis direction. -/ |
| 75 | theorem exists_normalized_orbit_radius_bound_all_points (P : M35StandardCapPredecessors) |
| 76 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) : |
| 77 | ∃ B H : ℝ, 0 < B ∧ 0 < H ∧ ∀ t ∈ Ico 0 E.flow.base.lifetime, |
| 78 | ∀ x : StandardCapSpace, x ≠ 0 → H ≤ (E.flow.connection t).scalarCurvature x → |
| 79 | axisWarpingRadius (E.flow.metric t) ‖x‖ * |
| 80 | Real.sqrt ((E.flow.connection t).scalarCurvature x) ≤ B := by |
| 81 | obtain ⟨B, H, hB, hH, hbound⟩ := E.exists_normalized_orbit_radius_bound P |
| 82 | refine ⟨B, H, hB, hH, ?_⟩ |
| 83 | intro t ht x hx hhigh |
| 84 | have hs := (rotational_scalar_edist_eq_axis P (E.flow.connection t) |
| 85 | (E.rotation_invariant t ht) x).1 |
| 86 | rw [hs] at hhigh ⊢ |
| 87 | exact hbound t ht ‖x‖ (norm_pos_iff.mpr hx) hhigh |
| 88 | |
| 89 | end PoincareMT.RepairedStandardCapExistenceData |