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.Surgery.StandardCap.Persistence.SourceNames.Curvature |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.InitialFlow.CurvatureEnergy |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Analysis.CompactCubicComparison |
| 4 | import PoincareLib.Geometry.RicciFlow.Curvature.Estimates.Shi.Cutoff.LaplacianMaximum |
| 5 | |
| 6 | /-! |
| 7 | # Curvature control through time 1/16 |
| 8 | |
| 9 | Morgan--Tian Proposition 4.11, pp. 67-68, and Claim 15.1, p. 353. |
| 10 | The sharp full-tensor energy coefficient and compact comparison give |
| 11 | the required interval for any already existing compact ordinary flow. |
| 12 | Maximal existence is a separate step. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | local notation "M04.contMDiffOn_flow_curvatureDerivativeEnergy" => PoincareMT.RicciFlowAnalysis.contMDiffOn_flow_curvatureDerivativeEnergy |
| 23 | local notation "M04.contMDiff_tensorNorm_sq" => PoincareMT.RicciFlowAnalysis.contMDiff_tensorNorm_sq |
| 24 | local notation "M04.isSmoothCovariantTensor_riemannEvaluation" => PoincareMT.RicciFlowAnalysis.isSmoothCovariantTensor_riemannEvaluation |
| 25 | local notation "M04.laplacian_nonpos_of_isLocalMax" => PoincareMT.RicciFlowAnalysis.laplacian_nonpos_of_isLocalMax |
| 26 | |
| 27 | namespace PoincareMT.M45 |
| 28 | |
| 29 | set_option maxHeartbeats 800000 in |
| 30 | -- Joint energy smoothness and its spatial and temporal slices share large bundle terms. |
| 31 | /-- An initial full-curvature bound of one remains at most two through |
| 32 | time 1/16 of any existing compact flow. Claim 15.1, p. 353. -/ |
| 33 | theorem compact_curvature_le_two_of_initial_bound |
| 34 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 35 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 36 | [CompactSpace M] {T : ℝ} (hT : 0 < T) |
| 37 | (F : RicciFlow n M (Icc 0 T)) |
| 38 | (hinit : ∀ q : M, (F.connection 0).curvatureTensorNorm q ≤ 1) : |
| 39 | ∀ t ∈ Icc 0 (min T (1 / 16 : ℝ)), ∀ q : M, |
| 40 | (F.connection t).curvatureTensorNorm q ≤ 2 := by |
| 41 | let N : M → ℝ → ℝ := fun q t => (F.connection t).curvatureTensorNorm q |
| 42 | let b : ℝ := min T (1 / 16) |
| 43 | have hb : 0 ≤ b := le_min hT.le (by norm_num) |
| 44 | have hsub : Icc 0 b ⊆ Icc 0 T := fun _ ht => ⟨ht.1, ht.2.trans (min_le_left _ _)⟩ |
| 45 | have hbC : 16 * b ≤ 1 := by have := min_le_right T (1 / 16 : ℝ); dsimp [b]; linarith |
| 46 | have hnonneg (q : M) (t : ℝ) : 0 ≤ N q t := Real.sqrt_nonneg _ |
| 47 | have hE : ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) 𝓘(ℝ, ℝ) ∞ |
| 48 | (fun p : ℝ × M => N p.2 p.1 ^ 2) (Icc 0 T ×ˢ univ) := by |
| 49 | simpa only [N, LeviCivitaData.curvatureDerivativeNorm_zero] using |
| 50 | M04.contMDiffOn_flow_curvatureDerivativeEnergy F 0 |
| 51 | have hN : ContinuousOn (Function.uncurry N) (univ ×ˢ Icc 0 b) := by |
| 52 | have hswap := hE.continuousOn.comp continuous_swap.continuousOn |
| 53 | (show MapsTo Prod.swap (univ ×ˢ Icc 0 b) (Icc 0 T ×ˢ univ) from |
| 54 | fun _ hp => ⟨hsub hp.2, mem_univ _⟩) |
| 55 | apply hswap.sqrt.congr |
| 56 | intro p _ |
| 57 | exact (Real.sqrt_sq (hnonneg p.1 p.2)).symm |
| 58 | have htime (q : M) : ContDiffOn ℝ ∞ (fun t => N q t ^ 2) (Icc 0 T) := |
| 59 | contDiffOn_curvatureEnergy_timeSlice F q |
| 60 | have hspace (t : ℝ) : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (fun q => N q t ^ 2) := by |
| 61 | have hnorm : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ |
| 62 | (fun q => ((F.connection t).curvatureDerivativeNorm 0 q) ^ 2) := |
| 63 | M04.contMDiff_tensorNorm_sq (F.metric t) |
| 64 | (M04.isSmoothCovariantTensor_riemannEvaluation (F.connection t)) |
| 65 | simpa only [LeviCivitaData.curvatureDerivativeNorm_zero] using hnorm |
| 66 | have hbound := Poincare.Parabolic.norm_le_two_of_sq_deriv_le_cube_at_max_sharp |
| 67 | (N := N) (D := fun q t => derivWithin (fun s => N q s ^ 2) (Icc 0 T) t) |
| 68 | (by norm_num : (0 : ℝ) < 16) hb hbC hN (fun q t _ => hnonneg q t) |
| 69 | (fun q t ht => |
| 70 | (((htime q).differentiableOn (by simp)) t (hsub ⟨ht.1.le, ht.2⟩)).hasDerivWithinAt.mono hsub) |
| 71 | (fun q t ht hmax => by |
| 72 | have htT := hsub ⟨ht.1.le, ht.2⟩ |
| 73 | have hmaxsq : IsLocalMax (fun z => N z t ^ 2) q := |
| 74 | Filter.Eventually.of_forall (fun z => |
| 75 | pow_le_pow_left₀ (hnonneg z t) (hmax z) 2) |
| 76 | have hlap := M04.laplacian_nonpos_of_isLocalMax (F.connection t) |
| 77 | (hspace t).contMDiffAt hmaxsq |
| 78 | have hheat := curvatureEnergy_heat_inequality F htT q |
| 79 | change derivWithin (fun s => N q s ^ 2) (Icc 0 T) t ≤ |
| 80 | (F.connection t).laplacian (fun z => N z t ^ 2) q + 16 * N q t ^ 3 at hheat |
| 81 | linarith) hinit |
| 82 | intro t ht q |
| 83 | exact hbound q t ht |
| 84 | |
| 85 | end PoincareMT.M45 |