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.Noncollapse.Compact.Product.OrdinaryProduct |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Provider |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Data |
| 4 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 5 | import PoincareLib.Geometry.Spacetime.Realization.Manifold.OpenSubsetDiffeomorph |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Cylinder.BallTopology |
| 7 | |
| 8 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_10_ProductCylinder.lean` at |
| 9 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 10 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 11 | |
| 12 | /-! |
| 13 | # Actual ball cylinders in the ordinary product |
| 14 | |
| 15 | Morgan-Tian Definition 3.38, p. 61, Theorem 8.1(2)-(3), p. 169, |
| 16 | and Theorem 8.10, p. 177. M11's exact restriction operations retain |
| 17 | the original product points; M13's unit-scale calculus identifies |
| 18 | the actual source ball in the selected slice metric. |
| 19 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-product-configuration.md`. |
| 20 | -/ |
| 21 | |
| 22 | set_option autoImplicit false |
| 23 | -- The selected product and slice charts share the retained metric representatives. |
| 24 | set_option backward.isDefEq.respectTransparency false |
| 25 | |
| 26 | open Set |
| 27 | open scoped Manifold ContDiff Bundle |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | namespace PoincareMT.Generalized.Noncollapse |
| 32 | |
| 33 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 35 | [T3Space M] [MeasurableSpace M] [BorelSpace M] {I : SpacetimeInterval} |
| 36 | |
| 37 | /-- The retained ordinary slice identification has exact unit-scale |
| 38 | metric calculus. Source: Theorem 1.2, pp. 3-4, and Definition 3.38, |
| 39 | p. 61, used in Theorem 8.10, p. 177. -/ |
| 40 | theorem ordinaryProduct_slice_calculus |
| 41 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 42 | (F : RicciFlow n M I.domain) |
| 43 | (P : OrdinaryProductRicciGeometry F.metric I) (t : I.domain) : |
| 44 | MetricHomothetyCalculus (F.metric t.val) |
| 45 | ((ordinaryProductTransport F P).slices t.val).metricOnPoints |
| 46 | (P.product.sliceIdentification t) 1 := by |
| 47 | apply hM13.metric_homothety M ((ordinaryProductTransport F P).slices t.val).Point |
| 48 | (F.metric t.val) ((ordinaryProductTransport F P).slices t.val).metricOnPoints |
| 49 | (P.product.sliceIdentification t) 1 zero_lt_one |
| 50 | intro x v w |
| 51 | simpa only [one_mul] using! P.product.sliceMetric_eq t x v w |
| 52 | |
| 53 | variable [SecondCountableTopology M] |
| 54 | |
| 55 | /-- A closed ordinary curvature cylinder gives the actual based ball |
| 56 | cylinder of Theorem 8.1(2)-(3), p. 169, as used in Theorem 8.10, p. 177. -/ |
| 57 | theorem ordinaryProduct_actualBallCylinder |
| 58 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 59 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 60 | (F : RicciFlow n M I.domain) |
| 61 | (P : OrdinaryProductRicciGeometry F.metric I) |
| 62 | (T : I.domain) (p : M) {r : ℝ} (hr : 0 < r) |
| 63 | (K : SpacetimeInterval) |
| 64 | (hK : K.domain = Icc (T.val - r ^ 2) T.val) |
| 65 | (hKI : K.domain ⊆ I.domain) |
| 66 | (hcurv : ∀ s ∈ K.domain, ∀ q ∈ (F.metric T.val).ball p r, |
| 67 | (F.connection s).curvatureTensorNorm q ≤ r⁻¹ ^ 2) : |
| 68 | ∃ U : TopologicalSpace.Opens M, |
| 69 | Nonempty (M15ActualBallCylinder (ordinaryProductTransport F P) T.val |
| 70 | (P.product.sliceIdentification T p) r K U) := by |
| 71 | let G := ordinaryProductTransport F P |
| 72 | let U : TopologicalSpace.Opens M := |
| 73 | ⟨(F.metric T.val).ball p r, RicciFlowAnalysis.initial_ball_isOpen (F.metric T.val) p r⟩ |
| 74 | obtain ⟨e1, he1⟩ := P.product.compatible.cylinder_time_restrict M I K hKI |
| 75 | P.product.productCylinder |
| 76 | obtain ⟨e2, he2⟩ := P.product.compatible.cylinder_open_restrict M K e1 U |
| 77 | obtain ⟨g⟩ := P.product.compatible.cylinder_metric U K e2 |
| 78 | have he (s : (G.timeIntervals.interval K).Point) (q : U) : |
| 79 | e2.toSpacetime (s, q) = P.product.productCylinder.toSpacetime |
| 80 | (⟨s.val, hKI s.property⟩, q.val) := by |
| 81 | rw [he2, he1] |
| 82 | rfl |
| 83 | let f : U → (G.slices T.val).Point := P.product.sliceIdentification T ∘ Subtype.val |
| 84 | have hf : ContMDiff (𝓡 n) (𝓡 n) ∞ f := |
| 85 | (P.product.sliceIdentification T).contMDiff.comp contMDiff_subtype_val |
| 86 | have hbase : T.val ∈ K.domain := by |
| 87 | rw [hK] |
| 88 | exact ⟨sub_le_self _ (sq_nonneg r), le_rfl⟩ |
| 89 | refine ⟨U, ⟨{ |
| 90 | radius_pos := hr |
| 91 | interval_domain := hK |
| 92 | base_mem := hbase |
| 93 | embedding := e2 |
| 94 | metric := g |
| 95 | source_map := f |
| 96 | source_map_embedding := |
| 97 | (P.product.sliceIdentification T).toHomeomorph.isEmbedding.comp .subtypeVal |
| 98 | source_map_range := ?_ |
| 99 | based := ?_ |
| 100 | source_map_smooth := hf.contMDiffOn |
| 101 | source_map_differential_injective := ?_ |
| 102 | curvature_bound := ?_ |
| 103 | }⟩⟩ |
| 104 | · have hrange : range f = P.product.sliceIdentification T '' (F.metric T.val).ball p r := by |
| 105 | ext y |
| 106 | constructor |
| 107 | · rintro ⟨q, rfl⟩ |
| 108 | exact ⟨q.val, q.property, rfl⟩ |
| 109 | · rintro ⟨q, hq, rfl⟩ |
| 110 | exact ⟨⟨q, hq⟩, rfl⟩ |
| 111 | rw [hrange] |
| 112 | simpa using! (ordinaryProduct_slice_calculus hM13 F P T).ball_image p r |
| 113 | · intro q |
| 114 | change e2.toSpacetime (⟨T.val, hbase⟩, q) = |
| 115 | (P.product.sliceIdentification T q.val).val |
| 116 | rw [he, P.product.productCylinder_eq, P.product.sliceIdentification_eq] |
| 117 | · intro q |
| 118 | have hd := mfderiv_comp q |
| 119 | ((P.product.sliceIdentification T).contMDiff.mdifferentiableAt (by simp)) |
| 120 | ((contMDiff_subtype_val (n := ∞)).mdifferentiableAt (by simp)) |
| 121 | change mfderiv (𝓡 n) (𝓡 n) f q = _ at hd |
| 122 | rw [hd] |
| 123 | exact ((P.product.sliceIdentification T).mfderivToContinuousLinearEquiv |
| 124 | (by simp) q.val).injective.comp (Poincare.Spacetime.Realization.openSubset_differential_injective U q) |
| 125 | · intro s q |
| 126 | rw [he] |
| 127 | have hc := (ordinaryProduct_moving_calculus hM12 F P).curvature_norm_eq |
| 128 | ⟨s.val, hKI s.property⟩ q.val |
| 129 | exact hc.symm.le.trans (hcurv s.val s.property q.val q.property) |
| 130 | |
| 131 | end PoincareMT.Generalized.Noncollapse |