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.Gauge.Geometry |
| 3 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 4 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 5 | import PoincareLib.Geometry.RicciFlow.Curvature.Construction |
| 6 | import PoincareLib.Geometry.RicciFlow.Rescaling.Generalized |
| 7 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Predecessors |
| 8 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Assembly |
| 9 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SmallTime.Stability.SmallTimeCoverage |
| 10 | |
| 11 | /-! |
| 12 | # M14 generalized L-geometry theorem |
| 13 | |
| 14 | The theorem below assembles the actual generalized path calculus, |
| 15 | exponential family, reduced-volume transport and analytic rescaling. |
| 16 | Compact small-time stability is proved by confinement and finite-energy |
| 17 | comparison. All coordinate services are supplied by the closed lower milestones. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology intervalIntegral BigOperators |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | variable {n : ℕ} |
| 29 | |
| 30 | /-- |
| 31 | Morgan--Tian, Chapter 6, Definitions 6.1--6.25 and Theorems 6.50--6.79 |
| 32 | (pp. 105--147), together with Chapter 7, Definition 7.1, Proposition 7.5 |
| 33 | and Theorems 7.10--7.26 (pp. 149--167), |
| 34 | and Theorem 8.1 (pp. 169--171): |
| 35 | for an actual generalized Ricci-flow spacetime with its horizontal |
| 36 | Levi-Civita calculus, backward paths use the clock equation and horizontal |
| 37 | projection, the square-root Euler/Jacobi and first/second variation formulas |
| 38 | hold on their genuine domains. Reduced length is a function of the actual |
| 39 | endpoint, whose clock fixes elapsed time; its backward derivative is minus |
| 40 | the derivative along the time vector. Positive-start formulas retain their |
| 41 | actual start time and endpoint derivative. The zero-start exponential family |
| 42 | fixes the initial tangent and asserts smoothness only on its existence domain. |
| 43 | Its positive-time action is jointly smooth, with initial-vector derivative |
| 44 | g(A,d_Z gamma), where A is the actual square-root velocity. The second |
| 45 | variation and Jacobi IVP require a regular Euler path; index nonnegativity |
| 46 | and its fixed-endpoint kernel additionally require minimality. |
| 47 | Fixed-time stable sets select the actual uniquely minimizing branches and |
| 48 | have the strict-prefix property. Calibrated Jacobian/reduced-volume transport |
| 49 | holds on the relative-interior regular domain, with Gaussian domination and |
| 50 | integrability on the displayed stable image. Whenever a complete, |
| 51 | bounded-curvature ordinary presentation is supplied, the same carrier yields |
| 52 | the M08 L-geodesic, M09 reduced-length, and M10 reduced-volume outputs through |
| 53 | their explicit providers. The ordinary flow has the actual cylinder metric; |
| 54 | capture and time-window hypotheses restrict action, regular-locus and volume |
| 55 | comparisons. On interior times its captured stable image has full measure, |
| 56 | and the actual cylinder preserves measure on every measurable captured subset. |
| 57 | Ordinary providers are required only for this branch. Attainment identifies |
| 58 | the action of an actual stable minimizing branch with the infimum; finite |
| 59 | action alone is never asserted to produce a minimizer on a generalized flow. |
| 60 | With one full-curvature bound on a valid past slab, every compact initial-vector |
| 61 | set is stable for sufficiently small positive times, and its short branches |
| 62 | stay in a supplied compact neighborhood of the base. No compact set containing |
| 63 | all competing paths is a hypothesis. With a compact exhaustion and the slab |
| 64 | bound, reduced volume tends to (4*pi)^(n/2) at zero. Disjoint stable images |
| 65 | have additive reduced volume, and a fixed W's terminal-image lower bound |
| 66 | holds through its terminal time, as required by Theorem 8.1 (4)-(5). |
| 67 | The paired Jacobi term uses |
| 68 | g(R(Y,A)A,W), matching equation (6.6). |
| 69 | M13 parabolic rescaling identities are consumed |
| 70 | from the preceding rescaling theory. For every prescribed Q > 0 and shift a, |
| 71 | construct the analytic target with clock Q*(t-a), the exact transformed |
| 72 | interval, metric Q*g, and time vector chi/Q. The identity diffeomorphism, |
| 73 | horizontal and slice differentials identify the same geometric objects. |
| 74 | M13's metric-homothety calculus on those slices supplies connection, |
| 75 | curvature and volume scaling, with M12's Levi-Civita uniqueness identifying |
| 76 | the selected leafwise connections; |
| 77 | the normalized initial-vector map divides the horizontal map by sqrt(Q). |
| 78 | Action scales by sqrt(Q), reduced length is invariant on its finite domain, |
| 79 | and one selected target exponential family agrees pointwise with the |
| 80 | original on its domain, including square-root time zero. Its joint domains |
| 81 | and stable images use that same family; the Jacobian and density factors cancel. |
| 82 | The construction is conditional on |
| 83 | finite action, survival, and regular-domain hypotheses and makes no blanket |
| 84 | completeness claim for a generalized spacetime. |
| 85 | The applicable project corrections are `reviews/contracts/M08-repair-contract.md`, |
| 86 | `reviews/errata/2026-09-13-reduced-length-source.md`, and |
| 87 | `reviews/errata/2026-09-11-tensor-evolution.md`. The analytic rescaling follows |
| 88 | Lemma 6.72 (p. 141), Corollary 6.74 and Lemma 6.75 (p. 142), and the primitive |
| 89 | interface correction in `reviews/contracts/M11-M25-primitive-refactor-round1.md`. |
| 90 | Further clock, capture and survival corrections are derived in |
| 91 | `reviews/contracts/M11-M25-primitive-followup-round1.md`, following Definition |
| 92 | 6.25, Definition 6.45, Lemma 6.49, Proposition 6.56 and Proposition 6.81. |
| 93 | The curvature-slot and slab corrections are recorded in |
| 94 | `reviews/contracts/2026-09-15-m14-m15-correction-round1.md`. |
| 95 | The complete public scope and ordinary subset transports are recorded in |
| 96 | `reviews/contracts/2026-09-17-m14-m15-full-review-round1.md`. |
| 97 | -/ |
| 98 | theorem generalizedLGeometryTheory |
| 99 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 100 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 101 | (hM04 : RicciFlowCurvatureTheory.{u}) : |
| 102 | GeneralizedLGeometryTheory.{u} n := by |
| 103 | cases hM04 |
| 104 | refine ⟨?_⟩ |
| 105 | intro X _ time I G |
| 106 | exact ⟨M14.generalizedLGeometryConclusion_of_smallTimeCoverage |
| 107 | (m12MetricPredecessors.{0} n) ricciFlowCurvatureTheory.{0} hM12 hM13 G |
| 108 | (M14.smallTimeCoverageStatement (m12MetricPredecessors.{0} n) hM12 G)⟩ |
| 109 | |
| 110 | /-- Supply M14's actual M04/M12/M13 services. The ordinary-capture conclusion |
| 111 | still requires the caller's M08/M09/M10 provider; this assembly does not supply |
| 112 | it. Sources and qualifications are those of the complete statement above. -/ |
| 113 | theorem generalizedLGeometryTheory_from_predecessors (n : ℕ) : |
| 114 | GeneralizedLGeometryTheory.{u} n := |
| 115 | generalizedLGeometryTheory |
| 116 | (generalizedRicciGaugeGeometry_from_M03_M04_M11 n) |
| 117 | (generalizedParabolicRescaling_from_M12 n) ricciFlowCurvatureTheory |
| 118 | |
| 119 | end PoincareMT |