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.ReducedGeometry.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.OrdinaryCapture |
| 3 | import PoincareLib.Geometry.RicciFlow.Rescaling.Ordinary |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.ExistenceData |
| 5 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Volume.Basic |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.Theory |
| 7 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence |
| 8 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Theory |
| 9 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Ancient.Statement |
| 10 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Theory |
| 11 | |
| 12 | /-! |
| 13 | # M34 standard-cap existence statement |
| 14 | |
| 15 | A standard initial metric exists, and every chosen standard initial metric |
| 16 | receives the full cap-flow existence package. The applied services below |
| 17 | provide the earlier theorems used in the complete M34 construction; they |
| 18 | assume none of its geometric conclusions. All direct carriers are Type 0. |
| 19 | |
| 20 | Source and derivation: |
| 21 | `reviews/contracts/2026-09-17-m34-full-contract.md`. |
| 22 | -/ |
| 23 | |
| 24 | set_option autoImplicit false |
| 25 | |
| 26 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 27 | |
| 28 | namespace PoincareMT |
| 29 | |
| 30 | /-- The actual earlier theorem services for M34. Compact local flow is used |
| 31 | in dimensions two and three. Noncompact restart, complete-space splitting, |
| 32 | and the initial-endpoint compactness argument remain internal M34 work. -/ |
| 33 | structure M34StandardCapPredecessors : Prop where |
| 34 | local_flow : |
| 35 | ∀ (n : ℕ) (M : Type) [TopologicalSpace M] |
| 36 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 37 | [T2Space M] [SecondCountableTopology M] [CompactSpace M], |
| 38 | RicciFlowLocalTheory n M |
| 39 | curvature : RicciFlowCurvatureTheory.{0} |
| 40 | pointed_compactness : |
| 41 | ∀ {T' T : ℝ} (H : PointedRicciFlowCompactnessHypotheses 3 T' T), |
| 42 | Nonempty (PointedRicciFlowCompactnessConclusion H) |
| 43 | ordinary_windows : M14OrdinaryProviders.{0} 3 |
| 44 | ordinary_product : |
| 45 | ∀ (M : Type) [TopologicalSpace M] |
| 46 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 47 | [T2Space M] [SecondCountableTopology M] [Nonempty M] |
| 48 | (I : SpacetimeInterval) (F : RicciFlow 3 M I.domain), |
| 49 | ∃ R : OrdinaryProductRicciGeometry F.metric I, |
| 50 | IntrinsicGeneralizedRicciEquation R.leafwiseConnection |
| 51 | ordinary_rescaling : |
| 52 | ∀ (M : Type) [TopologicalSpace M] |
| 53 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 54 | [T2Space M] [SecondCountableTopology M] |
| 55 | (I : SpacetimeInterval) (F : RicciFlow 3 M I.domain) |
| 56 | (Q : ℝ) (hQ : 0 < Q) (a : ℝ), |
| 57 | Nonempty (OrdinaryParabolicRescaling F Q hQ a) |
| 58 | metric_homothety : |
| 59 | ∀ (M N : Type) [TopologicalSpace M] |
| 60 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 61 | [TopologicalSpace N] |
| 62 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) N] [IsManifold (𝓡 3) ∞ N] |
| 63 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 64 | [T3Space N] [MeasurableSpace N] [BorelSpace N] |
| 65 | (g : RiemannianMetric 3 M) (h : RiemannianMetric 3 N) |
| 66 | (f : Diffeomorph (𝓡 3) (𝓡 3) M N ∞) (Q : ℝ), 0 < Q → |
| 67 | MetricHomothety g h f Q → MetricHomothetyCalculus g h f Q |
| 68 | exponential : |
| 69 | ∀ (X : Type) [TopologicalSpace X] (time : X → ℝ) |
| 70 | (I : SpacetimeInterval) (G : GeneralizedLGeometryTransport 3 X time I), |
| 71 | Nonempty (M14ExponentialConclusion G) |
| 72 | ordinary_capture : |
| 73 | ∀ (X : Type) [TopologicalSpace X] (time : X → ℝ) |
| 74 | (I : SpacetimeInterval) (G : GeneralizedLGeometryTransport 3 X time I) |
| 75 | (O : M14OrdinaryProviders.{0} 3), |
| 76 | M14OrdinaryCaptureStatement G O |
| 77 | noncollapse_generalized : M15GeneralizedUniformTheorem.{0} 3 |
| 78 | zero_avr : |
| 79 | ∀ {M : Type} [TopologicalSpace M] |
| 80 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 81 | [MeasurableSpace M] [BorelSpace M] |
| 82 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 83 | (K : AncientKappaSolution 3 M), AncientAsymptoticVolumeRatioZero K |
| 84 | kappa_alternatives : RepairedKappaAlternativeTheory.{0} |
| 85 | long_limits : ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ 1 / 400 ∧ |
| 86 | M30LongLimitStatement.{0} epsilon₀ |
| 87 | |
| 88 | structure RepairedStandardCapExistenceTheory : Prop where |
| 89 | initial_metric : Nonempty StandardInitialMetric |
| 90 | existence : ∀ g₀ : StandardInitialMetric, |
| 91 | Nonempty (RepairedStandardCapExistenceData g₀) |
| 92 | |
| 93 | end PoincareMT |