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 | set_option autoImplicit false |
| 5 | |
| 6 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 7 | |
| 8 | universe u |
| 9 | |
| 10 | namespace PoincareMT |
| 11 | |
| 12 | /-- Build one metric-calibrated width slice from a nonzero loop-space class. |
| 13 | The M59 core supplies the normalized regular family and the canonical |
| 14 | loop-space-to-`pi₃` identification; chronology is deliberately outside this |
| 15 | pointwise constructor. -/ |
| 16 | noncomputable def m67WidthSliceOfClass |
| 17 | (S : M59IdentificationSystem.{u}) |
| 18 | {A : GeneralizedSliceCarrier.{u}} |
| 19 | (C : SurgerySelectedComponent A) |
| 20 | (ambient_metric : RiemannianMetric 3 A.carrier) |
| 21 | (metric : RiemannianMetric 3 C.carrier.carrier) |
| 22 | (connection : LeviCivitaData metric) |
| 23 | (metric_pullback : ∀ x v w, |
| 24 | ambient_metric.inner (C.inclusion x) |
| 25 | (mfderiv (𝓡 3) (𝓡 3) C.inclusion x v) |
| 26 | (mfderiv (𝓡 3) (𝓡 3) C.inclusion x w) = metric.inner x v w) |
| 27 | (pi_two_trivial : Subsingleton |
| 28 | (HomotopyGroup.Pi 2 C.carrier.carrier C.basepoint)) |
| 29 | (alpha : HomotopyGroup.Pi 2 |
| 30 | (C1FreeLoopSpace (M := C.carrier.carrier)) |
| 31 | (constantC1Loop C.basepoint)) |
| 32 | (hα : (S.core C.compact C.connected C.basepoint pi_two_trivial).pi_two_pi_three |
| 33 | alpha ≠ 1) : |
| 34 | M67WidthSlice S.quotient C := by |
| 35 | let core := S.core C.compact C.connected C.basepoint pi_two_trivial |
| 36 | let hrep := core.regular_representatives alpha |
| 37 | let Gamma := Classical.choose hrep |
| 38 | have hGamma := Classical.choose_spec hrep |
| 39 | refine |
| 40 | { ambient_metric := ambient_metric |
| 41 | metric := metric |
| 42 | connection := connection |
| 43 | metric_pullback := metric_pullback |
| 44 | family := m59FamilyMap Gamma |
| 45 | family_null := fun c => Gamma.null_homotopic c |
| 46 | alpha := alpha |
| 47 | represents := ⟨Gamma, hGamma.1, hGamma.2, by rfl⟩ |
| 48 | pi_two_trivial := pi_two_trivial |
| 49 | loop_pi_three := core.pi_two_pi_three |
| 50 | class_nonzero := hα } |
| 51 | |
| 52 | end PoincareMT |