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.AncientKappa.Asymptotic.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.Basic |
| 3 | |
| 4 | /-! |
| 5 | # M19 two-dimensional classification data |
| 6 | |
| 7 | The alternatives are dimension-specific and do not inherit the 3D quotient or |
| 8 | orientation assumptions. The two-dimensional kappa classification is kept |
| 9 | separate from the later three-dimensional model ledger. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] |
| 22 | [IsManifold (𝓡 2) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 23 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 24 | |
| 25 | /-- A compact round ancient two-dimensional kappa-solution certificate. -/ |
| 26 | structure TwoDimensionalAncientRoundCertificate |
| 27 | (K : AncientKappaSolution 2 M) where |
| 28 | compact : CompactSpace M |
| 29 | round_at_all_times : ∀ t : ℝ, t ≤ 0 → |
| 30 | ConstantPositiveSectionalCurvature (K.flow.metric t) (K.flow.connection t) |
| 31 | |
| 32 | /-! The roundness output for an actual M18 asymptotic limit. The bounded |
| 33 | curvature and homothety fields are included here because Remark 9.12 defers |
| 34 | both properties until the two-dimensional argument of Corollary 9.50. -/ |
| 35 | structure TwoDimensionalAsymptoticRoundCertificate |
| 36 | {K : AncientKappaSolution 2 M} (S : AncientRescalingSequence K) |
| 37 | (L : AncientAsymptoticSolitonLimitData S) where |
| 38 | bounded_curvature : |
| 39 | let C := L.convergence.limit.carrier |
| 40 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 41 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 2)) C.carrier := C.chartedSpace |
| 42 | letI : IsManifold (𝓡 2) ∞ C.carrier := C.isManifold |
| 43 | ∀ t : ℝ, t < 0 → |
| 44 | ∃ B : ℝ, 0 ≤ B ∧ ∀ x : C.carrier, |
| 45 | |(L.convergence.limit.flow.connection t).curvatureTensorNorm x| ≤ B |
| 46 | self_similar : |
| 47 | let C := L.convergence.limit.carrier |
| 48 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 49 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 2)) C.carrier := C.chartedSpace |
| 50 | letI : IsManifold (𝓡 2) ∞ C.carrier := C.isManifold |
| 51 | ∀ t : ℝ, t < 0 → |
| 52 | Nonempty (HomotheticMetricSlice |
| 53 | (L.convergence.limit.flow.metric (-1)) |
| 54 | (L.convergence.limit.flow.metric t) |t|) |
| 55 | compact : |
| 56 | let C := L.convergence.limit.carrier |
| 57 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 58 | CompactSpace C.carrier |
| 59 | round_at_all_times : |
| 60 | ∀ t : ℝ, t < 0 → |
| 61 | let C := L.convergence.limit.carrier |
| 62 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 63 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 2)) C.carrier := C.chartedSpace |
| 64 | letI : IsManifold (𝓡 2) ∞ C.carrier := C.isManifold |
| 65 | ConstantPositiveSectionalCurvature |
| 66 | (L.convergence.limit.flow.metric t) |
| 67 | (L.convergence.limit.flow.connection t) |
| 68 | |
| 69 | /-- The compact/noncompact alternatives for a 2D shrinking soliton. -/ |
| 70 | inductive TwoDimensionalSolitonModel |
| 71 | (S : GradientShrinkingSolitonData 2 M) |
| 72 | (G : ShrinkingSolitonFlow S) : Type (u + 2) where |
| 73 | | compactRound : CompactRoundShrinkingModel G → TwoDimensionalSolitonModel S G |
| 74 | |
| 75 | structure TwoDimensionalShrinkingSolitonConclusion |
| 76 | (S : GradientShrinkingSolitonData 2 M) where |
| 77 | flow : ShrinkingSolitonFlow S |
| 78 | model : TwoDimensionalSolitonModel S flow |
| 79 | |
| 80 | end PoincareMT |