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.Extinction.Width.Path.Data |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.IdentificationTheory |
| 3 | |
| 4 | /-! |
| 5 | # M67 primitive initial class |
| 6 | |
| 7 | Proposition 18.18 starts with trivial pi2 and a chosen nonzero pi3 class. |
| 8 | For the current zero-time component paths, fix its loop-space representative |
| 9 | under one actual M59 system, and the induced metric at that same time. |
| 10 | The width theorem must preserve these choices. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | def m67InitialTime {F : SurgeryFlowData.{u}} {T : ℝ} |
| 22 | {W : RepairedEventChildWitness F} (P : RepairedComponentPath F T W) : |
| 23 | Set.Icc (0 : ℝ) T := |
| 24 | ⟨0, le_rfl, F.time_domain_nonnegative P.terminal_mem⟩ |
| 25 | |
| 26 | structure M67InitialClassData (S : M59IdentificationSystem.{u}) |
| 27 | {A : GeneralizedSliceCarrier.{u}} (C : SurgerySelectedComponent A) |
| 28 | (ambient_metric : RiemannianMetric 3 A.carrier) where |
| 29 | metric : RiemannianMetric 3 C.carrier.carrier |
| 30 | metric_pullback : ∀ x v w, |
| 31 | ambient_metric.inner (C.inclusion x) |
| 32 | (mfderiv (𝓡 3) (𝓡 3) C.inclusion x v) |
| 33 | (mfderiv (𝓡 3) (𝓡 3) C.inclusion x w) = metric.inner x v w |
| 34 | pi_two_trivial : Subsingleton (HomotopyGroup.Pi 2 C.carrier.carrier C.basepoint) |
| 35 | alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := C.carrier.carrier)) |
| 36 | (constantC1Loop C.basepoint) |
| 37 | nonzero : (S.core C.compact C.connected C.basepoint pi_two_trivial).pi_two_pi_three |
| 38 | alpha ≠ 1 |
| 39 | |
| 40 | end PoincareMT |