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.Estimates.MinimumBall |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Estimates.DoublingTime |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Cylinder.CurvatureContractions |
| 4 | import PoincareLib.Geometry.RicciFlow.MetricComparison.LocalCurvature |
| 5 | |
| 6 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_10_LateReducedLength.lean` at |
| 7 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 8 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 9 | |
| 10 | /-! |
| 11 | # A uniform reduced-length bound on an initial unit ball |
| 12 | |
| 13 | Morgan-Tian Theorem 8.10, p. 177. Fix the dimension-three doubling time |
| 14 | and append the short path between its half and quarter physical times. |
| 15 | Reduced-length normalization cancels the square-root action factor. |
| 16 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-minimum-ball.md`. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open Set |
| 22 | open scoped Manifold ContDiff Bundle |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.Generalized.Noncollapse |
| 27 | |
| 28 | /-- At late times a uniform reduced-length bound holds on some initial |
| 29 | unit ball. The constant precedes the manifold and the flow. Source: |
| 30 | Morgan-Tian Theorem 8.10, p. 177, with the fixed doubling interval. -/ |
| 31 | theorem exists_compact_late_reducedLength_bound |
| 32 | (hM04 : RicciFlowCurvatureTheory.{u}) : |
| 33 | ∃ l0 : ℝ, 0 < l0 ∧ |
| 34 | ∀ (M : Type u) [TopologicalSpace M] |
| 35 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 36 | [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 37 | [CompactSpace M] [ConnectedSpace M] |
| 38 | (T : ℝ) (_hT : 0 < T) (F : RicciFlow 3 M (Icc 0 T)), |
| 39 | (∀ q, (F.connection 0).curvatureTensorNorm q ≤ 1) → |
| 40 | ∀ (t0 : ℝ), t0 ≤ T → 1 / (32 * (3 : ℝ) ^ 6) ≤ t0 → |
| 41 | ∀ (p : M) (_hL : LGeodesicTheory F t0 t0) |
| 42 | (_hV : ReducedVolumeTheory F t0 t0), |
| 43 | ∃ q0 : M, ∀ q ∈ (F.metric 0).ball q0 1, |
| 44 | reducedLength F t0 p q (t0 - 1 / (32 * (3 : ℝ) ^ 6) / 4) ≤ l0 := by |
| 45 | let delta : ℝ := 1 / (32 * (3 : ℝ) ^ 6) |
| 46 | let C : ℝ := Real.exp (6 * delta) |
| 47 | have hdelta : 0 < delta := by norm_num [delta] |
| 48 | have hC : 0 < C := Real.exp_pos _ |
| 49 | refine ⟨3 / 2 + (18 + (C / (delta / 4)) ^ 2) * (delta / 4) / 2, by positivity, ?_⟩ |
| 50 | intro M _ _ _ _ _ _ _ _ T hT F hinit t0 ht0 hlate p hL hV |
| 51 | change delta ≤ t0 at hlate |
| 52 | let c := t0 - delta / 2 |
| 53 | let b := t0 - delta / 4 |
| 54 | have ht0pos : 0 < t0 := hdelta.trans_le hlate |
| 55 | have hc : 0 < c := sub_pos.mpr ((half_lt_self hdelta).trans_le hlate) |
| 56 | have hcb : c < b := by dsimp only [c, b]; linarith |
| 57 | have hb : b < t0 := by dsimp only [b]; linarith |
| 58 | have hwindow : Icc (t0 - t0) t0 ⊆ Icc 0 T := by |
| 59 | intro s hs |
| 60 | exact ⟨by simpa only [sub_self] using hs.1, hs.2.trans ht0⟩ |
| 61 | have hphys (t : ℝ) (ht : t ∈ Icc c b) : t0 - t ∈ Icc 0 (min T delta) := by |
| 62 | dsimp only [c, b] at ht |
| 63 | have hlo : delta / 4 ≤ t0 - t := by linarith only [ht.2] |
| 64 | have hhi : t0 - t ≤ delta / 2 := by linarith only [ht.1] |
| 65 | exact ⟨(div_nonneg hdelta.le (by norm_num)).trans hlo, |
| 66 | le_min (hhi.trans ((half_le_self hdelta.le).trans (hlate.trans ht0))) |
| 67 | (hhi.trans (half_le_self hdelta.le))⟩ |
| 68 | have hcurv (s : ℝ) (hs : s ∈ Icc 0 (min T delta)) (x : M) : |
| 69 | (F.connection s).curvatureTensorNorm x ≤ 2 := |
| 70 | compact_curvature_le_two_of_initial_bound (by decide) hT F hinit s hs x |
| 71 | have hnorm (t : ℝ) (ht : t ∈ Icc c b) (x : M) (v : TangentSpace (𝓡 3) x) : |
| 72 | (F.metric (t0 - t)).tangentNorm x v ≤ C * (F.metric 0).tangentNorm x v := by |
| 73 | have hs := hphys t ht |
| 74 | have hn := RicciFlowAnalysis.tangentNorm_comparison_at_of_curvature_bound F |
| 75 | (show 0 ∈ Icc 0 T from ⟨le_rfl, hT.le⟩) |
| 76 | (show t0 - t ∈ Icc 0 T from ⟨hs.1, hs.2.trans (min_le_left _ _)⟩) |
| 77 | hs.1 (by norm_num : (0 : ℝ) ≤ 2) x |
| 78 | (fun s hst => hcurv s ⟨hst.1, hst.2.trans hs.2⟩ x) v |
| 79 | apply hn.2.trans |
| 80 | apply mul_le_mul_of_nonneg_right _ (Real.sqrt_nonneg _) |
| 81 | apply Real.exp_le_exp.mpr |
| 82 | change (3 : ℝ) * 2 * (t0 - t - 0) ≤ 6 * delta |
| 83 | linarith [hs.2.trans (min_le_right T delta)] |
| 84 | have hscalar (t : ℝ) (ht : t ∈ Icc c b) (x : M) : |
| 85 | (F.connection (t0 - t)).scalarCurvature x ≤ 18 := by |
| 86 | calc |
| 87 | _ ≤ |(F.connection (t0 - t)).scalarCurvature x| := le_abs_self _ |
| 88 | _ ≤ (3 : ℝ) ^ 2 * (F.connection (t0 - t)).curvatureTensorNorm x := |
| 89 | abs_scalarCurvature_le_curvatureTensorNorm _ _ |
| 90 | _ ≤ (3 : ℝ) ^ 2 * 2 := |
| 91 | mul_le_mul_of_nonneg_left (hcurv _ (hphys t ht) x) (sq_nonneg _) |
| 92 | _ = 18 := by norm_num |
| 93 | obtain ⟨q0, hq0⟩ := exists_ball_reducedLength_bound F hM04 t0 t0 ht0pos hwindow |
| 94 | hL hV hc hcb hb (F.metric 0) p (by norm_num : (0 : ℝ) < 1) hC.le |
| 95 | (by norm_num : (0 : ℝ) ≤ 18) hnorm hscalar |
| 96 | refine ⟨q0, ?_⟩ |
| 97 | intro q hq |
| 98 | have hbc : b - c = delta / 4 := by dsimp only [b, c]; ring |
| 99 | simpa only [hbc, mul_one, Nat.cast_ofNat] using hq0 q hq |
| 100 | |
| 101 | end PoincareMT.Generalized.Noncollapse |