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.Surgery.StandardCap.Existence.Noncollapsing.OrdinaryCaptureData |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Regularity.Continuity.MinimizingLifts |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Imports.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Regularity.Continuity.MinimizingLifts |
| 4 | |
| 5 | /-! |
| 6 | # Reduced length on the actual ordinary stable branch |
| 7 | |
| 8 | Full ordinary capture transfers minimality between generalized paths |
| 9 | which agree on their geometric interval. The actual exponential path |
| 10 | therefore has the same reduced length as its ordinary projection. |
| 11 | Source: Morgan-Tian Proposition 12.13, pp. 304-306; Proposition 7.5. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | [T3Space M] [ConnectedSpace M] [SecondCountableTopology M] |
| 26 | [MeasurableSpace M] [BorelSpace M] |
| 27 | {I : SpacetimeInterval} {F : RicciFlow n M I.domain} |
| 28 | (R : OrdinaryProductRicciGeometry F.metric I) |
| 29 | (hRicci : IntrinsicGeneralizedRicciEquation R.leafwiseConnection) |
| 30 | {T taumax : ℝ} (hT : T ∈ I.domain) |
| 31 | (out : M14OrdinaryCaptureOutput (ordinaryProductLGeometry R hRicci) M I |
| 32 | R.product.productCylinder R.product.productMetric F T taumax |
| 33 | (ordinaryProductCaptureData (I := I) (F := F) R hRicci hT taumax)) |
| 34 | |
| 35 | include hT out |
| 36 | |
| 37 | /-- Ordinary capture and locality of action transfer minimality on the |
| 38 | actual geometric interval (Proposition 7.5). -/ |
| 39 | theorem ordinaryProduct_minimizing_of_eqOn {a b : ℝ} |
| 40 | {x y x' y' : (ordinaryProductLGeometry R hRicci).Point} |
| 41 | (p : M14BackwardPath (ordinaryProductLGeometry R hRicci) T a b x y) |
| 42 | (q : M14BackwardPath (ordinaryProductLGeometry R hRicci) T a b x' y') |
| 43 | (hb : b ≤ taumax) (hp : M14IsMinimizing p) |
| 44 | (hpq : EqOn p.curve q.curve (Icc a b)) : M14IsMinimizing q := by |
| 45 | have hx : x ∈ range R.product.productCylinder.toSpacetime := by |
| 46 | rw [ordinaryProductCylinder_range]; trivial |
| 47 | have hx' : x' ∈ range R.product.productCylinder.toSpacetime := by |
| 48 | rw [ordinaryProductCylinder_range]; trivial |
| 49 | have hpc : ∀ s ∈ Icc a b, p.curve s ∈ range R.product.productCylinder.toSpacetime := by |
| 50 | intro s _; rw [ordinaryProductCylinder_range]; trivial |
| 51 | have hqc : ∀ s ∈ Icc a b, q.curve s ∈ range R.product.productCylinder.toSpacetime := by |
| 52 | intro s _; rw [ordinaryProductCylinder_range]; trivial |
| 53 | apply (out.minimizing_transport a b x' y' hb hx' q hqc).mpr |
| 54 | apply M10.minimizing_of_eqOn ((out.minimizing_transport a b x y hb hx p hpc).mp hp) |
| 55 | intro s hs |
| 56 | exact congrArg (ordinaryProductProjection R.product) (hpq hs) |
| 57 | |
| 58 | /-- The retained stable exponential branch has exactly the ordinary |
| 59 | reduced length at its actual projected endpoint (Proposition 12.13). -/ |
| 60 | theorem ordinaryProduct_stable_reduced_length {tau : ℝ} |
| 61 | {x : (ordinaryProductLGeometry R hRicci).Point} |
| 62 | (E : M14ExponentialFamily (ordinaryProductLGeometry R hRicci) T x) |
| 63 | (H : M14StableSet (ordinaryProductLGeometry R hRicci) T tau x E) |
| 64 | (hmax : tau ≤ taumax) (Z : (ordinaryProductLGeometry R hRicci).Horizontal x) |
| 65 | (hZ : Z ∈ H.carrier) : |
| 66 | E.reduced_length Z (Real.sqrt tau) = reducedLength F T |
| 67 | (ordinaryProductProjection R.product x) |
| 68 | (ordinaryProductProjection R.product (H.endpoint_map Z)) tau := by |
| 69 | have hs := H.survivor Z hZ |
| 70 | have hpos := Real.sqrt_pos.mpr H.tau_pos |
| 71 | have hsq := Real.sq_sqrt H.tau_pos.le |
| 72 | have hmin : M14IsMinimizing (E.path Z (Real.sqrt tau) hs hpos) := by |
| 73 | have hex : ∃ p : M14BackwardPath (ordinaryProductLGeometry R hRicci) |
| 74 | T 0 ((Real.sqrt tau) ^ 2) x (H.endpoint_map Z), |
| 75 | EqOn p.curve (fun r => E.gamma Z (Real.sqrt r)) |
| 76 | (Icc 0 ((Real.sqrt tau) ^ 2)) ∧ M14IsMinimizing p := by |
| 77 | rw [hsq] |
| 78 | obtain ⟨p, hp, hmin, _⟩ := H.minimizing_path Z hZ |
| 79 | exact ⟨p, hp, hmin⟩ |
| 80 | obtain ⟨p, hp, hmin⟩ := hex |
| 81 | apply ordinaryProduct_minimizing_of_eqOn R hRicci hT out p |
| 82 | (E.path Z (Real.sqrt tau) hs hpos) (by rwa [hsq]) hmin |
| 83 | intro r hr |
| 84 | exact (hp hr).trans (E.path_coherent Z (Real.sqrt tau) hs hpos r hr).symm |
| 85 | rw [E.reduced_length_global_eq Z (Real.sqrt tau) hs hpos hmin, hsq, |
| 86 | ← H.endpoint_map_eq Z hZ] |
| 87 | apply out.reduced_length_transport tau x (H.endpoint_map Z) H.tau_pos hmax |
| 88 | E.base_time (H.endpoint_time Z hZ) |
| 89 | all_goals rw [ordinaryProductCylinder_range]; trivial |
| 90 | |
| 91 | end PoincareMT.M34 |