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.Variation.Minimizers.MinimizerEuler |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Jacobi.Jacobi |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.IndexForm.IndexKernel |
| 4 | |
| 5 | /-! |
| 6 | # The complete generalized path calculus |
| 7 | |
| 8 | Morgan-Tian Sections 6.1-6.4, in particular Lemma 6.4, Definition 6.7, |
| 9 | Lemmas 6.8, 6.10, 6.12, Proposition 6.13 and Proposition 6.33, |
| 10 | pp. 107-122. This assembles the exact frozen calculus clauses from |
| 11 | the actual closed-domain horizontal constructions. No completeness |
| 12 | or open square-root extension of the supplied curve is assumed. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | |
| 24 | /-- All nine frozen generalized path-calculus conclusions follow |
| 25 | from the preceding actual constructions, Sections 6.1-6.4, |
| 26 | pp. 107-122. The second variation applies to every Euler path; |
| 27 | the index and its kernel retain their stated minimality hypotheses. -/ |
| 28 | theorem pathCalculusConclusion |
| 29 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 30 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) : |
| 31 | M14PathCalculusConclusion G where |
| 32 | minimizer_euler := minimizerEulerStatement hCoordinates hM12 |
| 33 | square_root_euler := squareRootEulerStatement hCoordinates hM12 |
| 34 | square_root_regularization := squareRootRegularizationStatement hCoordinates hM12 |
| 35 | first_variation := firstVariationStatement hCoordinates hM12 |
| 36 | second_variation := secondVariationStatement hCoordinates hM04 hM12 |
| 37 | fixed_endpoint_index := fixedEndpointIndexStatement hCoordinates hM04 hM12 |
| 38 | fixed_endpoint_index_kernel := fixedEndpointIndexKernelStatement hCoordinates hM04 hM12 |
| 39 | jacobi := jacobiStatement hM04 hM12 |
| 40 | initial_jacobi := initialJacobiStatement hM04 hM12 |
| 41 | |
| 42 | end PoincareMT.M14 |