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.Uniform.Assembly |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Estimates.LateReducedLength |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Estimates.InitialBallMeasure |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Components |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Product.ProductStable |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Product.ProductCylinder |
| 7 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Product.StableSource |
| 8 | |
| 9 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_10_LateVolume.lean` at |
| 10 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 11 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 12 | |
| 13 | /-! |
| 14 | # Compact noncollapsing after the fixed doubling time |
| 15 | |
| 16 | Morgan-Tian Theorem 8.10, pp. 176-177. The initial comparison ball |
| 17 | supplies an actual stable source. Apply Theorem 8.1 to the tested |
| 18 | half-radius cylinder and transfer the exact slice volume back. |
| 19 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-compact-assembly.md`. |
| 20 | -/ |
| 21 | |
| 22 | set_option autoImplicit false |
| 23 | -- The product construction retains the ordinary metric and its selected slice instances. |
| 24 | set_option backward.isDefEq.respectTransparency false |
| 25 | |
| 26 | open Set MeasureTheory |
| 27 | open scoped Manifold ContDiff Bundle ENNReal |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | namespace PoincareMT.Generalized.Noncollapse |
| 32 | |
| 33 | /-- The late-time compact volume constant precedes every manifold, flow, |
| 34 | point and tested scale. Source: Theorem 8.10, pp. 176-177, using the |
| 35 | actual Theorem 8.1 configuration on the half-radius cylinder. -/ |
| 36 | theorem exists_compact_late_volume_bound |
| 37 | (hM04 : RicciFlowCurvatureTheory.{u}) |
| 38 | (hM12 : GeneralizedRicciGaugeTheory.{u} 3) |
| 39 | (hM13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 40 | (hM14 : GeneralizedLGeometryTheory.{u} 3) |
| 41 | (hOrdinary : M14OrdinaryProviders.{u} 3) |
| 42 | (omega T0 : ℝ) (homega : 0 < omega) (hT0 : 0 < T0) : |
| 43 | ∃ kappa : ℝ, 0 < kappa ∧ |
| 44 | ∀ (M : Type u) [TopologicalSpace M] |
| 45 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 46 | [T3Space M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 47 | [CompactSpace M] [ConnectedSpace M] |
| 48 | (T : ℝ) (F : RicciFlow 3 M (Icc 0 T)) |
| 49 | (D : M15CompactTheorem810Data M T F omega T0), |
| 50 | 1 / (32 * (3 : ℝ) ^ 6) ≤ D.t₀ → |
| 51 | M15CompactTheorem810Estimate D kappa := by |
| 52 | obtain ⟨l0, hl0, hlength⟩ := exists_compact_late_reducedLength_bound hM04 |
| 53 | obtain ⟨V, hV, hvolume⟩ := exists_compact_initial_ball_volume_bound 3 (by decide) omega homega |
| 54 | obtain ⟨U⟩ := generalizedUniformTheorem hM04 3 hM12 hM13 hM14 T0 l0 V hT0 hl0 hV |
| 55 | refine ⟨U.kappa / 8, div_pos U.kappa_pos (by norm_num), ?_⟩ |
| 56 | intro M _ _ _ _ _ _ _ _ _ T F D hlate |
| 57 | let delta : ℝ := 1 / (32 * (3 : ℝ) ^ 6) |
| 58 | have hdelta : 0 < delta := by norm_num [delta] |
| 59 | change delta ≤ D.t₀ at hlate |
| 60 | have ht0 : 0 < D.t₀ := hdelta.trans_le hlate |
| 61 | let I : SpacetimeInterval := { |
| 62 | domain := Icc 0 T |
| 63 | ordConnected := F.interval |
| 64 | nontrivial := F.nontrivial |
| 65 | } |
| 66 | obtain ⟨P⟩ := hM12.ordinary_product M F.metric I F.smooth |
| 67 | let G := ordinaryProductTransport (I := I) F P |
| 68 | let t : I.domain := ⟨D.t₀, D.t₀_mem⟩ |
| 69 | let x : (G.slices D.t₀).Point := P.product.sliceIdentification t D.p |
| 70 | have hx : G.spacetime.timeFunction x.val = D.t₀ := x.property |
| 71 | obtain ⟨H⟩ := hM14.conclusion (I.domain × M) (fun q => q.1.val) I G |
| 72 | obtain ⟨capture⟩ := ordinaryProduct_capture (I := I) hM12 F P D.t₀ D.t₀ D.t₀_mem |
| 73 | have hwindow : Icc (D.t₀ - D.t₀) D.t₀ ⊆ I.domain := by |
| 74 | intro s hs |
| 75 | exact ⟨by simpa only [sub_self] using hs.1, hs.2.trans D.t₀_le_T⟩ |
| 76 | have hcomplete := compact_completeBoundedCurvatureOn F isCompact_Icc hwindow |
| 77 | obtain ⟨out, _, _, _⟩ := H.ordinary_capture hOrdinary M I P.product.productCylinder |
| 78 | (ordinaryProductCylinderMetric (I := I) F P) F D.t₀ D.t₀ D.t₀_mem ht0 hwindow hcomplete capture |
| 79 | obtain ⟨E⟩ := H.exponential.family D.t₀ x.val hx |
| 80 | let b := D.t₀ - delta / 4 |
| 81 | have hb : 0 < b := sub_pos.mpr ((div_lt_self hdelta (by norm_num : (1 : ℝ) < 4)).trans_le hlate) |
| 82 | have hbt : b < D.t₀ := by dsimp only [b]; linarith |
| 83 | have hphysical : D.t₀ - b = delta / 4 := by dsimp only [b]; ring |
| 84 | have hearly : delta / 4 ∈ Icc 0 (min T delta) := by |
| 85 | refine ⟨by positivity, le_min ?_ ?_⟩ |
| 86 | · exact (by linarith : delta / 4 ≤ D.t₀).trans D.t₀_le_T |
| 87 | · linarith |
| 88 | have htime : D.t₀ - b ∈ I.domain := by |
| 89 | rw [hphysical] |
| 90 | exact ⟨hearly.1, hearly.2.trans (min_le_left _ _)⟩ |
| 91 | obtain ⟨S⟩ := ordinaryProduct_exists_stableSet (I := I) F P H capture out hb hbt.le x.val hx E |
| 92 | have hinit (q : M) : (F.connection 0).curvatureTensorNorm q ≤ 1 := |
| 93 | (le_abs_self _).trans (D.initial_curvature_bound q) |
| 94 | obtain ⟨q0, hq0⟩ := hlength M T D.T_pos F hinit D.t₀ D.t₀_le_T hlate |
| 95 | (capture.point_map x.val) out.L out.V |
| 96 | have hballvolume : ENNReal.ofReal V ≤ |
| 97 | calibratedMetricVolume (F.metric (D.t₀ - b)) ((F.metric 0).ball q0 1) := by |
| 98 | rw [hphysical] |
| 99 | exact hvolume M T D.T_pos F hinit D.initial_unit_ball_volume |
| 100 | (delta / 4) hearly q0 |
| 101 | obtain ⟨W, hWopen, hWS, hWlength, hWvolume⟩ := ordinaryProduct_stable_source |
| 102 | (I := I) hM12 F P capture out hbt htime hx S ((F.metric 0).ball q0 1) |
| 103 | (RicciFlowAnalysis.initial_ball_isOpen (F.metric 0) q0 1) hq0 hballvolume |
| 104 | let r := D.r / 2 |
| 105 | have hr : 0 < r := half_pos D.radius_pos |
| 106 | have hrle : r ≤ D.r := half_le_self D.radius_pos.le |
| 107 | have hr2 : r ^ 2 ≤ D.r ^ 2 := (sq_le_sq₀ hr.le D.radius_pos.le).mpr hrle |
| 108 | have hrb : r ^ 2 ≤ b := by |
| 109 | calc |
| 110 | r ^ 2 = D.r ^ 2 / 4 := by dsimp only [r]; ring |
| 111 | _ ≤ D.t₀ / 4 := div_le_div_of_nonneg_right D.radius_sq_le_t₀ (by norm_num) |
| 112 | _ ≤ D.t₀ - D.t₀ / 4 := by linarith only [ht0] |
| 113 | _ ≤ b := sub_le_sub_left (div_le_div_of_nonneg_right hlate (by norm_num)) _ |
| 114 | let K : SpacetimeInterval := { |
| 115 | domain := Icc (D.t₀ - r ^ 2) D.t₀ |
| 116 | ordConnected := ordConnected_Icc |
| 117 | nontrivial := ⟨D.t₀ - r ^ 2, |
| 118 | ⟨le_rfl, sub_le_self _ (sq_nonneg r)⟩, |
| 119 | D.t₀, ⟨sub_le_self _ (sq_nonneg r), le_rfl⟩, |
| 120 | ne_of_lt (sub_lt_self _ (sq_pos_of_pos hr))⟩ |
| 121 | } |
| 122 | have hKI : K.domain ⊆ I.domain := by |
| 123 | intro s hs |
| 124 | change s ∈ Icc (D.t₀ - r ^ 2) D.t₀ at hs |
| 125 | exact D.time_window ⟨by linarith [hs.1], hs.2⟩ |
| 126 | have hballs : (F.metric D.t₀).ball D.p r ⊆ (F.metric D.t₀).ball D.p D.r := by |
| 127 | intro q hq |
| 128 | exact hq.trans_le (ENNReal.ofReal_le_ofReal hrle) |
| 129 | have hcurv : ∀ s ∈ K.domain, ∀ q ∈ (F.metric t.val).ball D.p r, |
| 130 | (F.connection s).curvatureTensorNorm q ≤ r⁻¹ ^ 2 := by |
| 131 | intro s hs q hq |
| 132 | change s ∈ Icc (D.t₀ - r ^ 2) D.t₀ at hs |
| 133 | have hs' : s ∈ Icc (D.t₀ - D.r ^ 2) D.t₀ := |
| 134 | ⟨by linarith [hs.1], hs.2⟩ |
| 135 | apply (le_abs_self _).trans ((D.curvature_bound s hs' q (hballs hq)).trans ?_) |
| 136 | exact (sq_le_sq₀ (inv_nonneg.mpr D.radius_pos.le) (inv_nonneg.mpr hr.le)).mpr |
| 137 | ((inv_le_inv₀ D.radius_pos hr).mpr hrle) |
| 138 | obtain ⟨C, ⟨B⟩⟩ := |
| 139 | ordinaryProduct_actualBallCylinder (I := I) hM12 hM13 F P t D.p hr K rfl hKI hcurv |
| 140 | let : CompactSpace (G.slices D.t₀).Point := |
| 141 | (P.product.sliceIdentification t).toHomeomorph.compactSpace |
| 142 | let configuration : M15Theorem81Configuration G D.t₀ x E T0 l0 V r K C B := { |
| 143 | tau₀ := b |
| 144 | tau₀_pos := hb |
| 145 | tau₀_le := hbt.le.trans (D.t₀_le_T.trans D.T_le_T₀) |
| 146 | radius_sq_le_tau₀ := hrb |
| 147 | terminal_mem := htime |
| 148 | terminal_ball_compact := isClosed_closure.isCompact |
| 149 | stable := S |
| 150 | W := W |
| 151 | W_open := hWopen |
| 152 | W_subset_stable := hWS |
| 153 | normalized_reduced_length := hWlength |
| 154 | terminal_image_volume := hWvolume |
| 155 | } |
| 156 | have hbound := U.estimate (I.domain × M) (fun q => q.1.val) I G D.t₀ x E r K C B configuration |
| 157 | have hcalc := ordinaryProduct_slice_calculus (I := I) hM13 F P t |
| 158 | have hball : P.product.sliceIdentification t '' (F.metric D.t₀).ball D.p r = |
| 159 | (G.slices D.t₀).metricOnPoints.ball x r := by |
| 160 | simpa only [Real.sqrt_one, one_mul] using! hcalc.ball_image D.p r |
| 161 | have hvol : calibratedMetricVolume (G.slices D.t₀).metricOnPoints |
| 162 | ((G.slices D.t₀).metricOnPoints.ball x r) = |
| 163 | calibratedMetricVolume (F.metric D.t₀) ((F.metric D.t₀).ball D.p r) := by |
| 164 | rw [← hball] |
| 165 | simpa using! |
| 166 | hcalc.volume_image ((F.metric D.t₀).ball D.p r) |
| 167 | change ENNReal.ofReal (U.kappa * r ^ 3) ≤ |
| 168 | calibratedMetricVolume (G.slices D.t₀).metricOnPoints |
| 169 | ((G.slices D.t₀).metricOnPoints.ball x r) at hbound |
| 170 | rw [hvol] at hbound |
| 171 | change ENNReal.ofReal (U.kappa / 8 * D.r ^ 3) ≤ _ |
| 172 | have hscale : U.kappa / 8 * D.r ^ 3 = U.kappa * r ^ 3 := by dsimp only [r]; ring |
| 173 | rw [hscale] |
| 174 | exact hbound.trans (measure_mono hballs) |
| 175 | |
| 176 | end PoincareMT.Generalized.Noncollapse |