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.Action.IntrinsicEnergyBound |
| 2 | |
| 3 | /-! |
| 4 | # Uniform speed in the metric at the initial time |
| 5 | |
| 6 | Window metric comparison transfers the intrinsic energy estimate to a |
| 7 | single complete metric, as in the Chapter 6 continuation argument. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open scoped Manifold ContDiff Bundle |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.ReducedLength |
| 17 | |
| 18 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 19 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 20 | [IsManifold (𝓡 n) ∞ M] |
| 21 | |
| 22 | theorem initialMetric_inner_le_window {J : Set ℝ} (F : RicciFlow n M J) |
| 23 | (hM04 : RicciFlowCurvatureTheory.{u}) (T b K : ℝ) |
| 24 | (hb : 0 ≤ b) (hK : 0 ≤ K) (hwindow : Set.Icc (T - b) T ⊆ J) |
| 25 | (hbound : ∀ s ∈ Set.Icc (T - b) T, ∀ x : M, |
| 26 | (F.connection s).curvatureTensorNorm x ≤ K) |
| 27 | (t : ℝ) (ht : t ∈ Set.Icc (T - b) T) |
| 28 | (x : M) (v : TangentSpace (𝓡 n) x) : |
| 29 | (F.metric T).inner x v v ≤ |
| 30 | Real.exp (2 * (n : ℝ) * K * b) * (F.metric t).inner x v v := by |
| 31 | have hlo := (window_metric_comparison F hM04 T b K hb hK hwindow hbound t ht x v).1 |
| 32 | calc |
| 33 | _ = Real.exp (2 * (n : ℝ) * K * b) * |
| 34 | (Real.exp (-(2 * (n : ℝ) * K * b)) * (F.metric T).inner x v v) := by |
| 35 | rw [← mul_assoc, ← Real.exp_add, add_neg_cancel, Real.exp_zero, one_mul] |
| 36 | _ ≤ _ := mul_le_mul_of_nonneg_left hlo (Real.exp_nonneg _) |
| 37 | |
| 38 | theorem exists_uniform_initialMetric_speed_bound {J : Set ℝ} |
| 39 | [ConnectedSpace M] [T3Space M] [SecondCountableTopology M] |
| 40 | (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) |
| 41 | (T τmax : ℝ) (hτmax : 0 < τmax) (hwindow : Set.Icc (T - τmax) T ⊆ J) |
| 42 | (hcurvature : CompleteBoundedCurvatureOn F (Set.Icc (T - τmax) T)) |
| 43 | (b Emax : ℝ) (hb : 0 < b) (hbmax : b < τmax) (hEmax : 0 ≤ Emax) : |
| 44 | ∃ C : ℝ, 0 < C ∧ ∀ (γ : ℝ → M) (U : Set ℝ) (h : ℝ), |
| 45 | 0 ≤ h → h < Real.sqrt b → IsOpen U → Set.Icc 0 h ⊆ U → |
| 46 | ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) ∞ γ U → |
| 47 | ∀ E : ParametricAlongCurveExtensionOn (n := n) (Set.Icc 0 h) γ |
| 48 | (curveVelocityWithin (n := n) γ (Set.Icc 0 h)), |
| 49 | (∀ s ∈ Set.Icc 0 h, regularizedLGeodesicEquation F T γ (Set.Icc 0 h) E s) → |
| 50 | regularizedCurveEnergy F T γ 0 ≤ Emax → |
| 51 | ∀ s ∈ Set.Icc 0 h, |
| 52 | (F.metric T).tangentNorm (γ s) (curveVelocity γ s) ≤ C := by |
| 53 | obtain ⟨A, hA, henergy⟩ := exists_uniform_regularizedCurveEnergy_exp_bound |
| 54 | F hM04 T τmax hτmax hwindow hcurvature b hb hbmax |
| 55 | obtain ⟨K, hK, hcurv⟩ := hcurvature.2 |
| 56 | let D : ℝ := 2 * (n : ℝ) * K * τmax |
| 57 | let Q : ℝ := Real.exp D * ((Emax + 1) * Real.exp (A * Real.sqrt b)) |
| 58 | refine ⟨Real.sqrt Q + 1, by positivity, ?_⟩ |
| 59 | intro γ U h hh hhb hU hIU hγ E heq hE s hs |
| 60 | have he := henergy γ U h hh hhb hU hIU hγ E heq s hs |
| 61 | have hsqrt : s ≤ Real.sqrt b := hs.2.trans hhb.le |
| 62 | have hs2 : s ^ 2 ≤ b := by |
| 63 | nlinarith [Real.sq_sqrt hb.le, Real.sqrt_nonneg b, hs.1] |
| 64 | have ht : T - s ^ 2 ∈ Set.Icc (T - τmax) T := |
| 65 | ⟨by linarith, sub_le_self _ (sq_nonneg s)⟩ |
| 66 | have he' : regularizedCurveEnergy F T γ s ≤ |
| 67 | (Emax + 1) * Real.exp (A * Real.sqrt b) := by |
| 68 | have h1 := mul_le_mul_of_nonneg_right (add_le_add_right hE 1) (Real.exp_nonneg (A * s)) |
| 69 | have h2 := mul_le_mul_of_nonneg_left |
| 70 | (Real.exp_le_exp.mpr (mul_le_mul_of_nonneg_left hsqrt hA.le)) |
| 71 | (by linarith : 0 ≤ Emax + 1) |
| 72 | linarith [h1, h2] |
| 73 | have hmetric := initialMetric_inner_le_window F hM04 T τmax K hτmax.le hK hwindow |
| 74 | (fun t ht x ↦ (le_abs_self _).trans (hcurv t ht x)) (T - s ^ 2) ht |
| 75 | (γ s) (curveVelocity γ s) |
| 76 | have hquadratic : (F.metric T).inner (γ s) (curveVelocity γ s) (curveVelocity γ s) ≤ Q := |
| 77 | hmetric.trans (mul_le_mul_of_nonneg_left he' (Real.exp_nonneg D)) |
| 78 | exact (Real.sqrt_le_sqrt hquadratic).trans (by linarith) |
| 79 | |
| 80 | end PoincareMT.ReducedLength |