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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.OrdinaryFlow |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedCylinderMetric |
| 5 | |
| 6 | /-! |
| 7 | # Ordinary flow on a compatible generalized cylinder |
| 8 | |
| 9 | M12 realizes the generalized spacetime and transports an actual compatible |
| 10 | cylinder to an ordinary Ricci flow on its open source carrier. The source |
| 11 | metric is the existing raw-cylinder metric, so this producer exposes the |
| 12 | metric pullback instead of introducing a new cylinder hypothesis. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28 |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | variable {F : GeneralizedRicciFlowData.{u}} |
| 28 | {C : GeneralizedSliceCarrier.{u}} {a q : ℝ} {J : SpacetimeInterval} |
| 29 | {U : TopologicalSpace.Opens C.carrier} |
| 30 | (e : GeneralizedFlowCylinder F C a q J.domain U) |
| 31 | (hI : (Proofs.M12.cylinderPhysicalInterval a q e.scale_pos J).domain ⊆ F.interval) |
| 32 | |
| 33 | /-- A generalized cylinder has an actual ordinary Ricci-flow witness on its |
| 34 | open source carrier. The witness is obtained from the intrinsic equation of |
| 35 | the realized generalized flow and M12's compatible-cylinder realization. |
| 36 | -/ |
| 37 | theorem exists_raw_cylinder_ordinary_flow : |
| 38 | ∃ G : Proofs.M12.FlowBoxRicciGeometry F, |
| 39 | ∃ K : SpacetimeCylinderMetric |
| 40 | (Proofs.M12.rawCylinderTransport G.realization e hI), |
| 41 | Nonempty (OrdinaryGaugeWitness G.leafwise |
| 42 | (Proofs.M12.rawCylinderTransport G.realization e hI) K) := by |
| 43 | let hM11 : GeneralizedSpacetimeGeometryTheory.{u} 3 := |
| 44 | generalizedSpacetimeGeometry 3 |
| 45 | let hM12 : GeneralizedRicciGaugeTheory.{u} 3 := |
| 46 | generalizedRicciGaugeGeometry_from_M03_M04_M11 3 |
| 47 | obtain ⟨G⟩ := Proofs.M12.flowBoxRicciGeometry F hM11 hM12 |
| 48 | let R := G.realization |
| 49 | let eR := Proofs.M12.rawCylinderTransport R e hI |
| 50 | let H := hM12.gauges F.point Sigma.fst (Proofs.M12.flowInterval F) |
| 51 | R.spacetime R.slices R.timeIntervals R.gaugeCover G.leafwise |
| 52 | have hOn : IntrinsicGeneralizedRicciEquationOn G.leafwise |
| 53 | (Set.range eR.toSpacetime) := by |
| 54 | intro p hp u v |
| 55 | exact G.equation p u v |
| 56 | let K : SpacetimeCylinderMetric eR := |
| 57 | Proofs.M12.rawCylinderMetric R e hI |
| 58 | obtain ⟨W⟩ := H.compatible_ordinary U |
| 59 | (Proofs.M12.cylinderPhysicalInterval a q e.scale_pos J) eR K hOn |
| 60 | exact ⟨G, K, ⟨W⟩⟩ |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end PoincareMT.M28 |