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.OrdinaryLiftedPath |
| 2 | |
| 3 | /-! |
| 4 | # Actual capture data for the whole ordinary product |
| 5 | |
| 6 | Projection and lifting preserve the genuine path regularity and finite |
| 7 | action. Since the retained cylinder covers the whole spacetime, every |
| 8 | generalized path is captured on its actual geometric interval. |
| 9 | Source: Morgan-Tian Proposition 12.13, pp. 304-306; ordinary product |
| 10 | specialization of the Chapter 7 capture theorem. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M34 |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | [T3Space M] [ConnectedSpace M] [SecondCountableTopology M] |
| 25 | [MeasurableSpace M] [BorelSpace M] |
| 26 | {I : SpacetimeInterval} {F : RicciFlow n M I.domain} |
| 27 | |
| 28 | /-- The retained whole ordinary product supplies every actual path-map |
| 29 | and capture field needed by M14 (Proposition 12.13, pp. 304-306). -/ |
| 30 | noncomputable def ordinaryProductCaptureData |
| 31 | (R : OrdinaryProductRicciGeometry F.metric I) |
| 32 | (hRicci : IntrinsicGeneralizedRicciEquation R.leafwiseConnection) |
| 33 | {T : ℝ} (hT : T ∈ I.domain) (taumax : ℝ) : |
| 34 | M14OrdinaryCaptureData (ordinaryProductLGeometry R hRicci) M I |
| 35 | R.product.productCylinder R.product.productMetric F T taumax where |
| 36 | metric_eq := by rw [R.product.productMetric_eq]; exact fun _ _ => rfl |
| 37 | point_map := ordinaryProductProjection R.product |
| 38 | point_map_on_cylinder := ordinaryProductProjection_cylinder R.product |
| 39 | point_map_continuous := (ordinaryProductProjection_contMDiff R.product).continuous.continuousOn |
| 40 | path_map := fun _ _ _ _ p _ => ordinaryProjectedPath R hRicci hT p |
| 41 | path_start_eq := fun _ _ _ _ p _ => congrArg (ordinaryProductProjection R.product) p.curve_start |
| 42 | path_end_eq := fun _ _ _ _ p _ => congrArg (ordinaryProductProjection R.product) p.curve_end |
| 43 | path_curve_eq := fun _ _ _ _ _ _ _ _ => rfl |
| 44 | path_capture_eq := by |
| 45 | intro a b x y p _ s hs |
| 46 | rw [R.product.productCylinder_eq] |
| 47 | apply Prod.ext |
| 48 | · exact Subtype.ext (p.curve_time s hs).symm |
| 49 | · exact ordinaryProductProjection_eq R.product (p.curve s) |
| 50 | path_lift := by |
| 51 | intro a b q |
| 52 | refine ⟨ordinaryLiftedPath R hRicci q, ?_⟩ |
| 53 | intro s hs |
| 54 | apply congrArg R.product.productCylinder.toSpacetime |
| 55 | apply Prod.ext |
| 56 | · exact Subtype.ext ((R.product.timeIntervals.interval I).realParam_val |
| 57 | (q.time_mem s hs)).symm |
| 58 | · rfl |
| 59 | capture_from_start := by |
| 60 | intro a b x y _ _ p s _ |
| 61 | rw [ordinaryProductCylinder_range] |
| 62 | exact mem_univ (p.curve s) |
| 63 | |
| 64 | end PoincareMT.M34 |