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.Blowup.Construction.LongTime.RecenteredNormalizedVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.GeneralizedLimit.GeneralizedPointNoncollapse |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.GeneralizedLimit.GeneralizedCurvatureConvergence |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.GeneralizedLimit.GeneralizedBallVolume |
| 5 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.Coverage |
| 6 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.SpatialEmbedding |
| 7 | |
| 8 | /-! |
| 9 | # All-scale noncollapse on the actual generalized limit |
| 10 | |
| 11 | Smaller parabolic tests fit compact space-time buffers. The retained |
| 12 | maps capture their entire normalized source balls, where the actual point |
| 13 | certificate applies after recentering. Exact volume comparison then gives |
| 14 | the original kappa at the target radius. Source: Morgan--Tian Definition |
| 15 | 9.1 and Theorem 11.8, pp. 180 and 272; M30 derivation |
| 16 | `generalized-limit-noncollapse.md`. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.M30 |
| 27 | |
| 28 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 29 | FlowCarrier.isManifold FlowCarrier.measurableSpace FlowCarrier.borelSpace |
| 30 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 31 | |
| 32 | /-- Every actual parabolic test in the supplied limit has the original |
| 33 | kappa volume lower bound, at any scale fitting its time domain |
| 34 | (Definition 9.1 and Theorem 11.8, pp. 180, 272). -/ |
| 35 | theorem generalized_limit_noncollapsed_of_longSlabService |
| 36 | {S : GeneralizedBlowupSequence.{u}} {T0 : ℝ≥0∞} {kappa r0 : ℝ} |
| 37 | (G : GeneralizedBlowupConvergence S (blowupBackwardInterval T0)) |
| 38 | (H : M30LongSlabControlService S kappa r0 T0) |
| 39 | (hr0 : 0 < r0) : |
| 40 | BlowupLimitNoncollapsed G.limit kappa := by |
| 41 | intro t ht p r hr htime hcurv |
| 42 | obtain ⟨N, hNt⟩ := exists_generalized_time_shift G ht |
| 43 | apply generalized_limit_ball_volume_lower_bound G ht N hNt p hr kappa |
| 44 | intro rho hrho hrhor |
| 45 | obtain ⟨a, hrhoa, har⟩ := exists_between hrhor |
| 46 | obtain ⟨b, hab, hbr⟩ := exists_between har |
| 47 | have ha : 0 < a := hrho.trans hrhoa |
| 48 | have hb : 0 < b := ha.trans hab |
| 49 | let g := G.limit.flow.metric t |
| 50 | let : MetricSpace G.limit.carrier.carrier := G.limit.carrier.metricSpaceOf g |
| 51 | let K := closure (g.ball p b) |
| 52 | have hKclosed : K ⊆ {x | g.edist p x ≤ ENNReal.ofReal b} := by |
| 53 | apply closure_minimal |
| 54 | (fun x (hx : g.edist p x < ENNReal.ofReal b) => hx.le) |
| 55 | exact isClosed_le (continuous_const.edist continuous_id) continuous_const |
| 56 | have hK : IsCompact K := IsCompact.of_isClosed_subset |
| 57 | (g.isCompact_closedBall_of_metricComplete (G.limit.complete t ht) p b) |
| 58 | isClosed_closure hKclosed |
| 59 | have hKr : K ⊆ g.ball p r := fun x hx => |
| 60 | (hKclosed hx).trans_lt ((ENNReal.ofReal_lt_ofReal_iff hr).mpr hbr) |
| 61 | have haK : g.ball p a ⊆ K := by |
| 62 | intro x hx |
| 63 | exact subset_closure (hx.trans_le (ENNReal.ofReal_le_ofReal hab.le)) |
| 64 | let I := Icc (t - rho ^ 2) t |
| 65 | have hsq : rho ^ 2 < r ^ 2 := (sq_lt_sq₀ hrho.le hr.le).mpr hrhor |
| 66 | have hITest : I ⊆ Ioc (t - r ^ 2) t := by |
| 67 | intro s hs |
| 68 | exact ⟨by linarith [hs.1], hs.2⟩ |
| 69 | have hIJ : I ⊆ blowupBackwardInterval T0 := hITest.trans htime |
| 70 | have hdelta : 0 < rho⁻¹ ^ 2 - r⁻¹ ^ 2 := by |
| 71 | apply sub_pos.mpr |
| 72 | rw [inv_pow, inv_pow] |
| 73 | exact (inv_lt_inv₀ (sq_pos_of_pos hr) (sq_pos_of_pos hrho)).mpr hsq |
| 74 | let C := a / rho |
| 75 | have hC : 1 < C := (one_lt_div hrho).mpr hrhoa |
| 76 | have hCrho : C * rho = a := div_mul_cancel₀ a hrho.ne' |
| 77 | have herror := (tendsto_add_atTop_nat N).eventually |
| 78 | (eventually_generalized_curvature_error G (I := I) isCompact_Icc hIJ hK hdelta) |
| 79 | have hpoint := (tendsto_add_atTop_nat N).eventually |
| 80 | (eventually_generalized_point_noncollapsed_of_longSlabService G H ht p) |
| 81 | have hlarge := (S.scalar_diverges.comp |
| 82 | (G.subsequence_strictMono.tendsto_atTop.comp (tendsto_add_atTop_nat N))).eventually_ge_atTop |
| 83 | ((rho / r0) ^ 2) |
| 84 | filter_upwards [eventually_generalized_tangent_comparison G ht N hNt hK hC, |
| 85 | herror, hpoint, hlarge] with k hcompare herr hnon hscale |
| 86 | let e := generalizedSliceHomeomorph G (k + N) t (hNt k) |
| 87 | let h := normalizedBlowupSliceMetric S (G.subsequence (k + N)) t |
| 88 | have he : e.MDifferentiable (𝓡 3) (𝓡 3) := by |
| 89 | constructor |
| 90 | · intro x hx |
| 91 | exact ((generalizedSliceHomeomorph_contMDiffAt G (k + N) t (hNt k) hx).mdifferentiableAt |
| 92 | (by simp)).mdifferentiableWithinAt |
| 93 | · intro y hy |
| 94 | exact ((generalizedSliceHomeomorph_symm_contMDiffAt G (k + N) t (hNt k) hy).mdifferentiableAt |
| 95 | (by simp)).mdifferentiableWithinAt |
| 96 | have hinverse := g.inverse_tangentNorm_le_of_le h e he hcompare.1 |
| 97 | (fun x hx v => (hcompare.2 x hx v).2) |
| 98 | have hcapture : h.ball (e p) rho ⊆ e '' g.ball p a := by |
| 99 | have hh := g.ball_subset_image_ball_of_inverse_tangentNorm_le h e p hb |
| 100 | (zero_lt_one.trans hC) (hCrho.trans_lt hab) hK hcompare.1 |
| 101 | (fun y hy => (generalizedSliceHomeomorph_symm_contMDiffAt G (k + N) t (hNt k) hy).of_le |
| 102 | (by simp)) hinverse |
| 103 | simpa only [hCrho] using hh |
| 104 | have hsqrt : 0 < Real.sqrt (S.scale (G.subsequence (k + N))) := |
| 105 | Real.sqrt_pos.mpr (S.base_scalar_pos (G.subsequence (k + N))) |
| 106 | have hcutoff : rho / Real.sqrt (S.scale (G.subsequence (k + N))) ≤ r0 := by |
| 107 | apply (div_le_iff₀ hsqrt).mpr |
| 108 | have hh := (div_le_iff₀ hr0).mp (Real.le_sqrt_of_sq_le hscale) |
| 109 | simpa only [GeneralizedBlowupSequence.scale, Function.comp_apply, mul_comm] using hh |
| 110 | let W : SpacetimeInterval := { |
| 111 | domain := Icc (-G.exhaustion.time (k + N)) 0 |
| 112 | ordConnected := ordConnected_Icc |
| 113 | nontrivial := ⟨-G.exhaustion.time (k + N), |
| 114 | ⟨le_rfl, neg_nonpos.mpr (G.exhaustion.time_pos (k + N)).le⟩, |
| 115 | 0, ⟨neg_nonpos.mpr (G.exhaustion.time_pos (k + N)).le, le_rfl⟩, |
| 116 | (neg_lt_zero.mpr (G.exhaustion.time_pos (k + N))).ne⟩ } |
| 117 | let U : TopologicalSpace.Opens G.limit.sliceCarrier.carrier := |
| 118 | ⟨G.exhaustion.space (k + N), G.exhaustion.space_open (k + N)⟩ |
| 119 | have hback : Icc (-rho ^ 2) 0 ⊆ (fun s : ℝ => t + s) ⁻¹' W.domain := by |
| 120 | intro s hs |
| 121 | apply herr.1 |
| 122 | constructor <;> linarith [hs.1, hs.2] |
| 123 | have hball : h.ball (e p) rho ⊆ |
| 124 | (G.embedding (k + N)).forward t (hNt k) '' G.exhaustion.space (k + N) := |
| 125 | hcapture.trans (image_mono (haK.trans hcompare.1)) |
| 126 | have htest : ∀ s (hs : s ∈ Ioc (-rho ^ 2) 0), ∀ y ∈ h.ball (e p) rho, |
| 127 | |(S.flow (G.subsequence (k + N))).curvatureNorm |
| 128 | ((G.embedding (k + N)).pointMap (t + s) |
| 129 | (hback (Ioc_subset_Icc_self hs)) ((G.embedding (k + N)).inverse t (hNt k) y))| / |
| 130 | S.scale (G.subsequence (k + N)) ≤ rho⁻¹ ^ 2 := by |
| 131 | intro s hs y hy |
| 132 | obtain ⟨x, hx, hxy⟩ := hcapture hy |
| 133 | have hxK := haK hx |
| 134 | have hinv : (G.embedding (k + N)).inverse t (hNt k) y = x := by |
| 135 | change e.symm y = x |
| 136 | rw [← hxy, e.left_inv (hcompare.1 hxK)] |
| 137 | have hts : t + s ∈ I := by constructor <;> linarith [hs.1, hs.2] |
| 138 | have hbound := hcurv (t + s) (hITest hts) x (hKr hxK) |
| 139 | have hclose := (abs_lt.mp (herr.2.2 (t + s) hts |
| 140 | (hback (Ioc_subset_Icc_self hs)) x hxK)).2 |
| 141 | rw [hinv] |
| 142 | have hnorm : 0 ≤ (S.flow (G.subsequence (k + N))).curvatureNorm |
| 143 | ((G.embedding (k + N)).pointMap (t + s) (hback (Ioc_subset_Icc_self hs)) x) := |
| 144 | Real.sqrt_nonneg _ |
| 145 | rw [abs_of_nonneg hnorm] |
| 146 | have htarget := (le_abs_self _).trans hbound |
| 147 | linarith |
| 148 | exact Cylinder.normalized_volume_of_recentered_noncollapse |
| 149 | (J := W) (U := U) (G.embedding (k + N)) ⟨t, hNt k⟩ (e p) |
| 150 | hrho hcutoff hback (hnon (hNt k)) hball htest |
| 151 | |
| 152 | end PoincareMT.M30 |