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.OrdinaryProductLift |
| 2 | |
| 3 | /-! |
| 4 | # Capture by the complete ordinary-product cylinder |
| 5 | |
| 6 | Projection and lifting of admissible paths give the exact ordinary-capture |
| 7 | input on the complete product cylinder. The only time assumption is that |
| 8 | the selected terminal time belongs to the supplied ordinary flow domain. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.OrdinaryProductRicciGeometry |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | [T3Space M] [ConnectedSpace M] [SecondCountableTopology M] |
| 23 | [MeasurableSpace M] [BorelSpace M] |
| 24 | {I : SpacetimeInterval} (F : RicciFlow n M I.domain) |
| 25 | (P : OrdinaryProductRicciGeometry F.metric I) |
| 26 | |
| 27 | /-- The actual product presentation supplies every ordinary-capture field. -/ |
| 28 | noncomputable def ordinaryCapture |
| 29 | (h : IntrinsicGeneralizedRicciEquation P.leafwiseConnection) |
| 30 | (T τmax : ℝ) (hT : T ∈ I.domain) : |
| 31 | M14OrdinaryCaptureData (P.toLGeometry h) M I |
| 32 | P.product.productCylinder P.product.productMetric F T τmax where |
| 33 | metric_eq := by |
| 34 | intro t _ |
| 35 | exact congrFun P.product.productMetric_eq.symm t |
| 36 | point_map := P.pointMap |
| 37 | point_map_on_cylinder := P.pointMap_productCylinder |
| 38 | point_map_continuous := P.pointMap_continuous.continuousOn |
| 39 | path_map := fun _ _ _ _ p _ => P.projectBackwardPath F h hT p |
| 40 | path_start_eq := by |
| 41 | intro τ₁ τ₂ x y p _ |
| 42 | change P.pointMap (p.curve τ₁) = P.pointMap x |
| 43 | rw [p.curve_start] |
| 44 | path_end_eq := by |
| 45 | intro τ₁ τ₂ x y p _ |
| 46 | change P.pointMap (p.curve τ₂) = P.pointMap y |
| 47 | rw [p.curve_end] |
| 48 | path_curve_eq := fun _ _ _ _ _ _ _ _ => rfl |
| 49 | path_capture_eq := by |
| 50 | intro τ₁ τ₂ x y p _ s hs |
| 51 | exact P.productCylinder_pointMap (p.curve s) (T - s) |
| 52 | ((P.projectBackwardPath F h hT p).time_mem s hs) (p.curve_time s hs) |
| 53 | path_lift := by |
| 54 | intro τ₁ τ₂ q |
| 55 | refine ⟨P.liftBackwardPath F q h, ?_⟩ |
| 56 | intro s hs |
| 57 | change P.product.productCylinder.toSpacetime (⟨T - s, q.time_mem s hs⟩, q.curve s) = |
| 58 | P.liftCurve F q s |
| 59 | unfold liftCurve |
| 60 | congr 1 |
| 61 | apply Prod.ext |
| 62 | · apply Subtype.ext |
| 63 | exact ((P.product.timeIntervals.interval I).realParam_val (q.time_mem s hs)).symm |
| 64 | · rfl |
| 65 | capture_from_start := fun _ _ _ _ _ _ p s _ => P.path_captured h p s |
| 66 | |
| 67 | @[simp] theorem ordinaryCapture_pointMap |
| 68 | (h : IntrinsicGeneralizedRicciEquation P.leafwiseConnection) |
| 69 | (T τmax : ℝ) (hT : T ∈ I.domain) : |
| 70 | (P.ordinaryCapture F h T τmax hT).point_map = P.pointMap := rfl |
| 71 | |
| 72 | end PoincareMT.OrdinaryProductRicciGeometry |