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.ReducedGeometry.ReducedLength.Calculus.RiemannianProper |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.ODE.TimeTranslatedFlow |
| 3 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 4 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Basic |
| 5 | |
| 6 | /-! |
| 7 | # Uniform derivative bounds inside the backward time window |
| 8 | |
| 9 | Translate the actual flow to a positive forward-time interval. Complete |
| 10 | selected-metric balls meet the frozen local Shi estimate's compactness |
| 11 | hypothesis, uniformly over their centers. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.ReducedLength |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 24 | [IsManifold (𝓡 n) ∞ M] [ConnectedSpace M] [T3Space M] [SecondCountableTopology M] |
| 25 | |
| 26 | theorem exists_uniform_curvatureDerivative_bound {J : Set ℝ} (F : RicciFlow n M J) |
| 27 | (hM04 : RicciFlowCurvatureTheory.{u}) (T τmax : ℝ) (hτmax : 0 < τmax) |
| 28 | (hwindow : Set.Icc (T - τmax) T ⊆ J) |
| 29 | (hcurvature : CompleteBoundedCurvatureOn F (Set.Icc (T - τmax) T)) |
| 30 | (k : ℕ) (b : ℝ) (_hb : 0 ≤ b) (hbmax : b < τmax) : |
| 31 | ∃ C : ℝ, 0 < C ∧ ∀ τ ∈ Set.Icc 0 b, ∀ x : M, |
| 32 | (F.connection (T - τ)).curvatureDerivativeNorm k x ≤ C := by |
| 33 | obtain ⟨K, _hK, hbound⟩ := hcurvature.2 |
| 34 | let K0 : ℝ := max K 1 |
| 35 | have hK0 : 0 < K0 := lt_of_lt_of_le zero_lt_one (le_max_right _ _) |
| 36 | let a : ℝ := T - τmax |
| 37 | let α : ℝ := τmax * K0 |
| 38 | have hα : 0 < α := mul_pos hτmax hK0 |
| 39 | have htime_mem : ∀ t ∈ Set.Icc 0 τmax, a + t ∈ Set.Icc (T - τmax) T := by |
| 40 | intro t ht |
| 41 | dsimp [a] |
| 42 | constructor <;> linarith [ht.1, ht.2] |
| 43 | have htime : ∀ t ∈ Set.Icc 0 τmax, a + t ∈ J := |
| 44 | fun t ht ↦ hwindow (htime_mem t ht) |
| 45 | let G := timeTranslatedFlow F a τmax hτmax htime |
| 46 | have hcomplete : MetricComplete (G.metric 0) := |
| 47 | hcurvature.1 (a + 0) (htime_mem 0 ⟨le_rfl, hτmax.le⟩) |
| 48 | have hGbound : ∀ t ∈ Set.Icc 0 τmax, ∀ x : M, |
| 49 | (G.connection t).curvatureTensorNorm x ≤ K0 := by |
| 50 | intro t ht x |
| 51 | exact ((le_abs_self _).trans (hbound (a + t) (htime_mem t ht) x)).trans (le_max_left _ _) |
| 52 | have htime_length : τmax ≤ α / K0 := by |
| 53 | dsimp [α] |
| 54 | rw [mul_div_cancel_right₀ _ hK0.ne'] |
| 55 | obtain ⟨C0, hC0, hestimate⟩ := |
| 56 | hM04.local_derivative_estimates n k K0 α 2 hK0 hα (by norm_num) |
| 57 | let δ : ℝ := τmax - b |
| 58 | have hδ : 0 < δ := sub_pos.mpr hbmax |
| 59 | have hpower : 0 < δ ^ ((k : ℝ) / 2) := Real.rpow_pos_of_pos hδ _ |
| 60 | refine ⟨C0 / δ ^ ((k : ℝ) / 2), div_pos hC0 hpower, ?_⟩ |
| 61 | intro τ hτ x |
| 62 | have hx : x ∈ (G.metric 0).ball x (2 / 2) := by |
| 63 | letI : MetricSpace M := selectedMetricSpace (G.metric 0) |
| 64 | change edist x x < ENNReal.ofReal (2 / 2) |
| 65 | norm_num |
| 66 | have ht : τmax - τ ∈ Set.Ioc 0 τmax := ⟨by linarith [hτ.2], by linarith [hτ.1]⟩ |
| 67 | have he := hestimate M τmax hτmax htime_length G x |
| 68 | (isCompact_closure_metric_ball (G.metric 0) hcomplete x 2) |
| 69 | (fun t ht y _hy ↦ hGbound t ht y) (τmax - τ) ht x hx |
| 70 | have htranslate : a + (τmax - τ) = T - τ := by dsimp [a]; ring |
| 71 | change (F.connection (a + (τmax - τ))).curvatureDerivativeNorm k x ≤ |
| 72 | C0 / (τmax - τ) ^ ((k : ℝ) / 2) at he |
| 73 | rw [htranslate] at he |
| 74 | apply he.trans |
| 75 | apply div_le_div_of_nonneg_left hC0.le hpower |
| 76 | apply Real.rpow_le_rpow hδ.le |
| 77 | · dsimp [δ] |
| 78 | linarith [hτ.2] |
| 79 | · positivity |
| 80 | |
| 81 | end PoincareMT.ReducedLength |