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.Blowup.Construction.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.OrdinaryFlow |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedCylinderMetric |
| 4 | import PoincareLib.Geometry.RicciFlow.Rescaling.Construction |
| 5 | import PoincareLib.Geometry.RicciFlow.Harnack.Regularity |
| 6 | |
| 7 | /-! |
| 8 | # Ordinary Ricci flow on an open generalized cylinder |
| 9 | |
| 10 | Morgan--Tian Definitions 3.38 and 3.40, p. 61, and Corollary 11.3, p. 269. |
| 11 | M12 realizes the supplied raw cylinder in physical time, with its actual |
| 12 | metric. M13 rescales that ordinary flow back to the original cylinder |
| 13 | parameter. The resulting metric is exactly the normalized pullback. |
| 14 | No completeness or compactness conclusion is asserted here. |
| 15 | See the M30 ordinary-extraction derivation for the retained choices and |
| 16 | the endpoint and empty-carrier checks. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open Set |
| 22 | open scoped Manifold ContDiff Bundle Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.M30.Cylinder |
| 27 | |
| 28 | open PoincareMT.Proofs.M12 |
| 29 | |
| 30 | /-- The two affine clocks cancel on the exact interval, preserving either |
| 31 | kind of endpoint (Definition 3.40 and time translation, p. 61). -/ |
| 32 | theorem rescale_physicalInterval_domain (origin scale : ℝ) (hscale : 0 < scale) |
| 33 | (J : SpacetimeInterval) : |
| 34 | (parabolicInterval scale hscale origin |
| 35 | (cylinderPhysicalInterval origin scale hscale J)).domain = J.domain := by |
| 36 | change parabolicTime scale origin '' (parabolicTimeInv scale origin '' J.domain) = J.domain |
| 37 | ext s |
| 38 | constructor |
| 39 | · rintro ⟨t, ⟨r, hr, rfl⟩, rfl⟩ |
| 40 | simpa only [parabolicTime_parabolicTimeInv scale hscale] using hr |
| 41 | · intro hs |
| 42 | exact ⟨parabolicTimeInv scale origin s, ⟨s, hs, rfl⟩, |
| 43 | parabolicTime_parabolicTimeInv scale hscale origin s⟩ |
| 44 | |
| 45 | variable {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 46 | {origin scale : ℝ} {J : SpacetimeInterval} |
| 47 | {U : TopologicalSpace.Opens C.carrier} |
| 48 | |
| 49 | /-- A nonempty source carrier forces every physical cylinder time into the |
| 50 | generalized flow's interval, by the total forward map (Definition 3.38, |
| 51 | p. 61). The designated open spatial subset may still be empty. -/ |
| 52 | theorem physicalInterval_subset [Nonempty C.carrier] |
| 53 | (e : GeneralizedFlowCylinder F C origin scale J.domain U) : |
| 54 | (cylinderPhysicalInterval origin scale e.scale_pos J).domain ⊆ F.interval := by |
| 55 | rintro _ ⟨s, hs, rfl⟩ |
| 56 | apply (F.slice_nonempty_iff _).mp |
| 57 | exact ⟨e.forward s hs (Classical.choice (inferInstance : Nonempty C.carrier))⟩ |
| 58 | |
| 59 | /-- A supplied open cylinder carries an actual ordinary Ricci flow whose |
| 60 | metric is the same normalized pullback (Definition 3.38 and Corollary 11.3, |
| 61 | pp. 61 and 269). Only physical-time containment is assumed; M11, M12 and |
| 62 | M13 supply the geometric realization, equation and parabolic rescaling. -/ |
| 63 | theorem exists_ordinaryFlow |
| 64 | (e : GeneralizedFlowCylinder F C origin scale J.domain U) |
| 65 | (hI : (cylinderPhysicalInterval origin scale e.scale_pos J).domain ⊆ F.interval) : |
| 66 | ∃ G : RicciFlow 3 U J.domain, |
| 67 | ∀ s (hs : s ∈ J.domain) (x : U) (v w : TangentSpace (𝓡 3) x), |
| 68 | (G.metric s).inner x v w = |
| 69 | e.pullbackInner s hs x.val |
| 70 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 71 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w) := by |
| 72 | let hM12 := generalizedRicciGaugeGeometry_from_M03_M04_M11.{u} 3 |
| 73 | obtain ⟨R⟩ := flowBoxRicciGeometry F (generalizedSpacetimeGeometry 3) hM12 |
| 74 | let K := cylinderPhysicalInterval origin scale e.scale_pos J |
| 75 | let eR := rawCylinderTransport R.realization e hI |
| 76 | have hgauges := hM12.gauges F.point Sigma.fst (flowInterval F) |
| 77 | R.realization.spacetime R.realization.slices R.realization.timeIntervals |
| 78 | R.realization.gaugeCover R.leafwise |
| 79 | obtain ⟨H, ⟨W⟩⟩ := hgauges.compatible_realization R.equation U K eR |
| 80 | obtain ⟨N⟩ := M13.ordinaryParabolicRescaling K W.flow scale e.scale_pos origin |
| 81 | have hJ := rescale_physicalInterval_domain origin scale e.scale_pos J |
| 82 | have hsub : J.domain ⊆ (parabolicInterval scale e.scale_pos origin K).domain := by |
| 83 | rw [hJ] |
| 84 | let G : RicciFlow 3 U J.domain := Poincare.Geometry.RicciFlow.Harnack.restrictFlow |
| 85 | N.flow hsub J.ordConnected J.nontrivial |
| 86 | refine ⟨G, ?_⟩ |
| 87 | intro s hs x v w |
| 88 | change (N.flow.metric s).inner x v w = _ |
| 89 | rw [N.metric_eq, W.metric_eq] |
| 90 | change scale * (H.metric (origin + s / scale)).inner x v w = _ |
| 91 | rw [rawCylinderMetric_eq R.realization e hI H ⟨s, hs⟩ |
| 92 | (R.sliceIdentification (origin + s / scale)) x v w] |
| 93 | exact mul_div_cancel₀ _ e.scale_pos.ne' |
| 94 | |
| 95 | end PoincareMT.M30.Cylinder |