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.Gauge.Geometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.OrdinaryCapture |
| 3 | |
| 4 | /-! |
| 5 | # Reduced geometry of an ordinary product |
| 6 | |
| 7 | The retained product geometry supplies the actual generalized spacetime, |
| 8 | its adapted cover, and its slice connections. The Ricci equation is obtained |
| 9 | from the ordinary flow through the exact product equivalence. |
| 10 | |
| 11 | Source: Morgan-Tian, Definition 3.36 and Remark 3.37, pp. 60-61; |
| 12 | Definitions 6.1-6.2, pp. 105-106. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.OrdinaryProductRicciGeometry |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | {g : ℝ → RiemannianMetric n M} {I : SpacetimeInterval} |
| 26 | |
| 27 | /-- The exact product realization, equipped with its intrinsic Ricci equation. -/ |
| 28 | def toLGeometry (P : OrdinaryProductRicciGeometry g I) |
| 29 | (h : IntrinsicGeneralizedRicciEquation P.leafwiseConnection) : |
| 30 | GeneralizedLGeometryTransport n (I.domain × M) (fun p => p.1.val) I where |
| 31 | spacetime := P.product.spacetime |
| 32 | slices := P.product.slices |
| 33 | timeIntervals := P.product.timeIntervals |
| 34 | gaugeCover := P.cover |
| 35 | leafwise := P.leafwiseConnection |
| 36 | ricciEquation := h |
| 37 | |
| 38 | /-- An ordinary Ricci flow supplies the intrinsic equation of its product. -/ |
| 39 | theorem intrinsicEquation_of_ricciFlow (F : RicciFlow n M I.domain) |
| 40 | (P : OrdinaryProductRicciGeometry F.metric I) : |
| 41 | IntrinsicGeneralizedRicciEquation P.leafwiseConnection := |
| 42 | (P.equation_iff F.connection).mpr F.equation |
| 43 | |
| 44 | /-- Generalized reduced geometry on the exact ordinary-flow product. -/ |
| 45 | def ricciFlowLGeometry (F : RicciFlow n M I.domain) |
| 46 | (P : OrdinaryProductRicciGeometry F.metric I) : |
| 47 | GeneralizedLGeometryTransport n (I.domain × M) (fun p => p.1.val) I := |
| 48 | P.toLGeometry (P.intrinsicEquation_of_ricciFlow F) |
| 49 | |
| 50 | variable (P : OrdinaryProductRicciGeometry g I) |
| 51 | |
| 52 | theorem productCylinder_surjective : Function.Surjective P.product.productCylinder.toSpacetime := |
| 53 | fun p => ⟨p, P.product.productCylinder_eq p⟩ |
| 54 | |
| 55 | @[simp] theorem productCylinder_range : Set.range P.product.productCylinder.toSpacetime = |
| 56 | Set.univ := Set.range_eq_univ.mpr P.productCylinder_surjective |
| 57 | |
| 58 | /-- The actual spatial coordinate of the product spacetime. -/ |
| 59 | def pointMap : P.product.spacetime.Point → M := fun p => p.2 |
| 60 | |
| 61 | @[simp] theorem pointMap_apply (p : P.product.spacetime.Point) : |
| 62 | P.pointMap p = p.2 := rfl |
| 63 | |
| 64 | @[simp] theorem pointMap_productCylinder |
| 65 | (t : (P.product.timeIntervals.interval I).Point) (x : M) : |
| 66 | P.pointMap (P.product.productCylinder.toSpacetime (t, x)) = x := by |
| 67 | rw [P.product.productCylinder_eq] |
| 68 | rfl |
| 69 | |
| 70 | theorem pointMap_continuous : Continuous P.pointMap := continuous_snd |
| 71 | |
| 72 | theorem pointMap_smooth : ContMDiff (spacetimeModel n) (𝓡 n) ∞ P.pointMap := by |
| 73 | have h : P.pointMap = fun p => (P.product.productIdentification.symm p).2 := by |
| 74 | funext p |
| 75 | have he := P.product.productIdentification_eq (P.product.productIdentification.symm p) |
| 76 | rw [P.product.productIdentification.apply_symm_apply] at he |
| 77 | exact congrArg Prod.snd he |
| 78 | rw [h] |
| 79 | exact contMDiff_snd.comp P.product.productIdentification.symm.contMDiff |
| 80 | |
| 81 | theorem productCylinder_pointMap |
| 82 | (p : P.product.spacetime.Point) (t : ℝ) |
| 83 | (ht : t ∈ I.domain) (hp : P.product.spacetime.timeFunction p = t) : |
| 84 | P.product.productCylinder.toSpacetime (⟨t, ht⟩, P.pointMap p) = p := by |
| 85 | rw [P.product.productCylinder_eq] |
| 86 | apply Prod.ext |
| 87 | · exact Subtype.ext hp.symm |
| 88 | · rfl |
| 89 | |
| 90 | theorem path_captured |
| 91 | (h : IntrinsicGeneralizedRicciEquation P.leafwiseConnection) |
| 92 | {T τ₁ τ₂ : ℝ} {x y : (P.toLGeometry h).Point} |
| 93 | (p : M14BackwardPath (P.toLGeometry h) T τ₁ τ₂ x y) (s : ℝ) : |
| 94 | p.curve s ∈ Set.range P.product.productCylinder.toSpacetime := by |
| 95 | rw [P.productCylinder_range] |
| 96 | trivial |
| 97 | |
| 98 | end PoincareMT.OrdinaryProductRicciGeometry |