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.Existence.RotationInvariance.Uniqueness |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.RotatedFlow |
| 3 | |
| 4 | /-! |
| 5 | # Invariance under the prescribed standard rotations |
| 6 | |
| 7 | The actual pullback by a fixed SO(3) rotation is a partial flow with the |
| 8 | same initial metric and lifetime. Noncompact metric uniqueness therefore |
| 9 | gives precisely the literal-action equality in the frozen contract. |
| 10 | This is Morgan-Tian Section 12.5, pp. 309-319 and rotation-invariance.md. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | /-- Every partial standard-cap flow is invariant under the actual fixed |
| 21 | standard SO(3) action at every included time |
| 22 | (Section 12.5, pp. 309-319). -/ |
| 23 | theorem partialStandardCapFlow_rotation_invariant (P : RicciFlowCurvatureTheory.{0}) |
| 24 | {g0 : StandardInitialMetric} (E0 : StandardCapEstimate g0) |
| 25 | (F : PartialStandardCapFlow g0) (e : StandardCylindricalEnd g0.metric) |
| 26 | {t : ℝ} (ht : t ∈ Ico 0 F.lifetime) |
| 27 | (A : Matrix.specialOrthogonalGroup (Fin 3) ℝ) |
| 28 | (x : StandardCapSpace) (u v : TangentSpace (𝓡 3) x) : |
| 29 | (F.flow.metric t).inner (standardRotation A x) |
| 30 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 31 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = |
| 32 | (F.flow.metric t).inner x u v := by |
| 33 | have h := partialStandardCapFlow_metric_unique P E0 |
| 34 | (PartialStandardCapFlow.rotatedPartialFlow F A) F e ⟨ht, ht⟩ |
| 35 | calc |
| 36 | _ = ((PartialStandardCapFlow.rotatedPartialFlow F A).flow.metric t).inner x u v := |
| 37 | (PartialStandardCapFlow.rotatedPartialFlow_metric_inner F A t x u v).symm |
| 38 | _ = _ := congrArg (fun G : RiemannianMetric 3 StandardCapSpace => G.inner x u v) h |
| 39 | |
| 40 | end PoincareMT.M34 |