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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Scalar.ScalarPersistenceProof |
| 3 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 4 | import PoincareLib.Geometry.Riemannian.Homothety.Curvature.ContractionTransport |
| 5 | import PoincareLib.Geometry.Riemannian.Homothety.Length |
| 6 | |
| 7 | /-! |
| 8 | # Scalar persistence in physical units |
| 9 | |
| 10 | Morgan--Tian's local scalar argument, pp. 52-54, with the exact positive |
| 11 | parabolic rescaling of Definition 3.40, p. 61. The same initial metric |
| 12 | ball is used throughout, and the terminal time remains included. |
| 13 | See `proof-work/tasks/M47/derivations/component-estimate.md`, Stage D4. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M47 |
| 25 | |
| 26 | /-- The normalized local scalar estimate gives a uniform physical-time |
| 27 | estimate on the actual initial ball; pp. 52-54 and Definition 3.40. -/ |
| 28 | theorem exists_physical_scalar_persistence |
| 29 | (P : M47ScalarPersistencePredecessors.{u}) |
| 30 | (rescale : GeneralizedParabolicRescalingTheory.{u} 3) |
| 31 | (K a : ℝ) (hK : 0 < K) (ha : 0 < a) : |
| 32 | ∃ tau : ℝ, 0 < tau ∧ tau ≤ 1 ∧ |
| 33 | ∀ (M : Type u) [TopologicalSpace M] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 35 | [T2Space M] [SecondCountableTopology M], |
| 36 | ∀ (s t H : ℝ), s < t → 0 < H → |
| 37 | ∀ (F : RicciFlow 3 M (Icc s t)) (p : M), |
| 38 | IsCompact (closure ((F.metric s).ball p (a / Real.sqrt H))) → |
| 39 | (∀ u ∈ Icc s t, ∀ x ∈ (F.metric s).ball p (a / Real.sqrt H), |
| 40 | (F.connection u).curvatureTensorNorm x ≤ K * H) → |
| 41 | (∀ u ∈ Icc s t, ∀ x ∈ (F.metric s).ball p (a / Real.sqrt H), |
| 42 | -H ≤ (F.connection u).scalarCurvature x) → |
| 43 | (∀ x ∈ (F.metric s).ball p (a / Real.sqrt H), |
| 44 | 3 * H / 4 ≤ (F.connection s).scalarCurvature x) → |
| 45 | H * (t - s) ≤ tau → H / 4 ≤ (F.connection t).scalarCurvature p := by |
| 46 | obtain ⟨tau, htau, htau1, hpersist⟩ := localScalarPersistence P K a hK ha |
| 47 | refine ⟨tau, htau, htau1, ?_⟩ |
| 48 | intro M _ _ _ _ _ s t H hst hH F p hcompact hcurvature hfloor hinitial hshort |
| 49 | let I : SpacetimeInterval := { |
| 50 | domain := Icc s t |
| 51 | ordConnected := ordConnected_Icc |
| 52 | nontrivial := F.nontrivial |
| 53 | } |
| 54 | obtain ⟨R⟩ := rescale.ordinary_flow M I F H hH s |
| 55 | let T := H * (t - s) |
| 56 | have hT : 0 < T := mul_pos hH (sub_pos.mpr hst) |
| 57 | have hclock (u : ℝ) (hu : u ∈ Icc (0 : ℝ) T) : |
| 58 | parabolicTimeInv H s u ∈ Icc s t := by |
| 59 | dsimp only [parabolicTimeInv] |
| 60 | constructor |
| 61 | · linarith [div_nonneg hu.1 hH.le] |
| 62 | · have hd : u / H ≤ t - s := (div_le_iff₀ hH).2 (by |
| 63 | have h := hu.2 |
| 64 | dsimp only [T] at h |
| 65 | nlinarith) |
| 66 | linarith |
| 67 | have hsub : Icc (0 : ℝ) T ⊆ (parabolicInterval H hH s I).domain := by |
| 68 | intro u hu |
| 69 | exact (mem_parabolicInterval_iff H hH s I u).2 (hclock u hu) |
| 70 | let G : RicciFlow 3 M (Icc 0 T) := { |
| 71 | metric := R.flow.metric |
| 72 | connection := R.flow.connection |
| 73 | interval := ordConnected_Icc |
| 74 | nontrivial := ⟨0, ⟨le_rfl, hT.le⟩, T, ⟨hT.le, le_rfl⟩, hT.ne⟩ |
| 75 | smooth := R.flow.smooth.mono (Set.prod_mono hsub Subset.rfl) |
| 76 | equation := fun u hu x v w => (R.flow.equation u (hsub hu) x v w).mono hsub |
| 77 | } |
| 78 | have hscalar (u : ℝ) (x : M) : |
| 79 | (G.connection u).scalarCurvature x = |
| 80 | (F.connection (parabolicTimeInv H s u)).scalarCurvature x / H := by |
| 81 | simpa only [Diffeomorph.coe_refl, id_eq] using |
| 82 | M13.homothety_scalarCurvature_eq _ _ (Diffeomorph.refl (𝓡 3) M ∞) |
| 83 | H hH (R.metric_homothety u) (F.connection _) (R.flow.connection u) x |
| 84 | have hnorm (u : ℝ) (x : M) : |
| 85 | (G.connection u).curvatureTensorNorm x = |
| 86 | (F.connection (parabolicTimeInv H s u)).curvatureTensorNorm x / H := by |
| 87 | simpa only [Diffeomorph.coe_refl, id_eq] using |
| 88 | M13.homothety_curvatureTensorNorm_eq _ _ (Diffeomorph.refl (𝓡 3) M ∞) |
| 89 | H hH (R.metric_homothety u) (F.connection _) (R.flow.connection u) x |
| 90 | have hradius : Real.sqrt H * (a / Real.sqrt H) = a := by |
| 91 | field_simp [ne_of_gt (Real.sqrt_pos.mpr hH)] |
| 92 | have hball : (G.metric 0).ball p a = (F.metric s).ball p (a / Real.sqrt H) := by |
| 93 | have hb := M13.homothety_ball_image _ _ (Diffeomorph.refl (𝓡 3) M ∞) |
| 94 | H hH (R.metric_homothety 0) p (a / Real.sqrt H) |
| 95 | simpa only [Diffeomorph.coe_refl, Set.image_id', id_eq, |
| 96 | parabolicTimeInv, zero_div, add_zero, hradius] using hb.symm |
| 97 | have hcompactG : IsCompact (closure ((G.metric 0).ball p a)) := by |
| 98 | rw [hball] |
| 99 | exact hcompact |
| 100 | have hcurvatureG : ∀ u ∈ Icc 0 T, ∀ x ∈ (G.metric 0).ball p a, |
| 101 | (G.connection u).curvatureTensorNorm x ≤ K := by |
| 102 | intro u hu x hx |
| 103 | rw [hnorm] |
| 104 | exact (div_le_iff₀ hH).2 (hcurvature _ (hclock u hu) x (hball ▸ hx)) |
| 105 | have hfloorG : ∀ u ∈ Icc 0 T, ∀ x ∈ (G.metric 0).ball p a, |
| 106 | -1 ≤ (G.connection u).scalarCurvature x := by |
| 107 | intro u hu x hx |
| 108 | rw [hscalar] |
| 109 | apply (le_div_iff₀ hH).2 |
| 110 | simpa only [neg_one_mul] using hfloor _ (hclock u hu) x (hball ▸ hx) |
| 111 | have hinitialG : ∀ x ∈ (G.metric 0).ball p a, |
| 112 | 3 / 4 ≤ (G.connection 0).scalarCurvature x := by |
| 113 | intro x hx |
| 114 | rw [hscalar, show parabolicTimeInv H s 0 = s from by simp [parabolicTimeInv]] |
| 115 | apply (le_div_iff₀ hH).2 |
| 116 | linarith [hinitial x (hball ▸ hx)] |
| 117 | have hfinal := hpersist M T hT G p hcompactG hcurvatureG hfloorG hinitialG T |
| 118 | ⟨hT.le, le_min le_rfl hshort⟩ |
| 119 | rw [hscalar] at hfinal |
| 120 | have hend : parabolicTimeInv H s T = t := by |
| 121 | dsimp only [T, parabolicTimeInv] |
| 122 | field_simp |
| 123 | ring |
| 124 | rw [hend] at hfinal |
| 125 | have := (le_div_iff₀ hH).1 hfinal |
| 126 | linarith |
| 127 | |
| 128 | end PoincareMT.M47 |