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.Existence.Asymptotics.EndCylinderBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Asymptotics.EndCylinderEnergy |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.EndPullbackBounds |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Energy.UniformFamilyEnergyBounds |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.Energy.BoundedBoundaryEnergy |
| 6 | |
| 7 | /-! |
| 8 | # Geometric end-energy decay for every actual partial cap flow |
| 9 | |
| 10 | Uniform elliptic three-jets control the genuine energy values and their |
| 11 | one-sided rates. The compatible end cover supplies the neighboring |
| 12 | energies. Finite boundary-energy Gronwall then gives geometric decay |
| 13 | uniformly on a closed time interval below both lifetimes. This is |
| 14 | Proposition 12.7, pp. 298-299 and compatible-reference-energy.md. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option maxSynthPendingDepth 8 |
| 20 | |
| 21 | open Set MeasureTheory Filter |
| 22 | open scoped Manifold ContDiff Topology |
| 23 | |
| 24 | namespace PoincareMT.M34 |
| 25 | |
| 26 | open DifferenceEnergy |
| 27 | |
| 28 | variable (P : RicciFlowCurvatureTheory.{0}) {g0 : StandardInitialMetric} |
| 29 | (E0 : StandardCapEstimate g0) (F : PartialStandardCapFlow g0) |
| 30 | (e : StandardCylindricalEnd g0.metric) |
| 31 | {dH dA dS : ℕ} (qH : FH 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dH)) |
| 32 | (qA : FA 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dA)) |
| 33 | (qS : FS 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dS)) (p : endReferenceRegion e) |
| 34 | |
| 35 | include P E0 |
| 36 | |
| 37 | /-- One value bound and one neighboring-rate constant apply before every |
| 38 | natural end index and every tested time in a fixed common compact horizon |
| 39 | (Proposition 12.7, pp. 298-299). -/ |
| 40 | theorem partialFlow_endCylinderDifferenceEnergy_bounds {T : ℝ} |
| 41 | (hT : T ∈ Ico 0 F.lifetime ∩ Ico 0 1) : |
| 42 | let E := endCylinderDifferenceEnergy e qH qA qS F.flow p |
| 43 | ∃ M C : ℝ, 0 ≤ M ∧ 0 ≤ C ∧ |
| 44 | (∀ i t, t ∈ Icc 0 T → E i t ≤ M) ∧ |
| 45 | (∀ j t, t ∈ Ioo 0 T → |
| 46 | deriv (E (j + 1)) t ≤ C * (E j t + E (j + 1) t + E (j + 2) t)) := by |
| 47 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 48 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 49 | (I := 𝓡 3) (n := ∞) |
| 50 | let : MeasurableSpace StandardCapSpace := borel _ |
| 51 | let : BorelSpace StandardCapSpace := ⟨rfl⟩ |
| 52 | intro E |
| 53 | obtain ⟨S, hTS, hSF⟩ := exists_between hT.1.2 |
| 54 | have hS : 0 < S := hT.1.1.trans_lt hTS |
| 55 | obtain ⟨B0, _hB0, hb0⟩ := F.curvature_locally_bounded S hS.le hSF |
| 56 | let B := max 1 B0 |
| 57 | have hB : 0 < B := zero_lt_one.trans_le (le_max_left _ _) |
| 58 | have hfull (s) (hs : s ∈ Ico 0 S) (x) : (F.flow.connection s).curvatureTensorNorm x ≤ B := |
| 59 | (le_abs_self _).trans ((hb0 s ⟨hs.1, hs.2.le⟩ x).trans (le_max_right _ _)) |
| 60 | obtain ⟨aA, MA, haA, _hMA, hA⟩ := partialFlow_endPullback_bounds P E0 F e |
| 61 | hS hSF.le hB hfull (energyCutoffs_hasCompactSupport e).1 3 |
| 62 | obtain ⟨aB, MB, haB, _hMB, hBmodel⟩ := endCylinderFlow_compact_bounds e hT.2.2 |
| 63 | (energyCutoffs_hasCompactSupport e).1 3 |
| 64 | obtain ⟨M, L, hM, hL, hfamily⟩ := exists_uniformFamily_energy_bounds |
| 65 | (endReferenceRegion e) (endReferenceRegion_isOpen e) qH qA qS |
| 66 | ((energyCutoffs_contDiff e).1.of_le (by simp)) (energyCutoffs_hasCompactSupport e).1 |
| 67 | (endEnergyCutoff_tsupport_subset_region e) haA haB MA MB |
| 68 | have hj (j : ℕ) : -3 < (j : ℝ) := by have := Nat.cast_nonneg (α := ℝ) j; linarith |
| 69 | have hclosed (t) (ht : t ∈ Icc 0 T) : t ∈ Ico 0 S := ⟨ht.1, ht.2.trans_lt hTS⟩ |
| 70 | have hcommon (t) (ht : t ∈ Icc 0 T) : t ∈ Ico 0 F.lifetime ∩ Ico 0 1 := |
| 71 | ⟨⟨ht.1, ht.2.trans_lt hT.1.2⟩, ⟨ht.1, ht.2.trans_lt hT.2.2⟩⟩ |
| 72 | have hinterior (t) (ht : t ∈ Ioo 0 T) : t ∈ interior (Ico 0 F.lifetime ∩ Ico 0 1) := by |
| 73 | rw [interior_inter, interior_Ico, interior_Ico] |
| 74 | exact ⟨⟨ht.1, ht.2.trans hT.1.2⟩, ⟨ht.1, ht.2.trans hT.2.2⟩⟩ |
| 75 | obtain ⟨hvalue, hrate⟩ := hfamily (K := Icc 0 T) |
| 76 | (fun j : ℕ => endPullbackFlow e F.flow j (hj j)) (fun _ : ℕ => endCylinderFlow e) p |
| 77 | (fun j t ht x hx => hA j (hj j) t (hclosed t ht) p x hx |
| 78 | (endEnergyCutoff_tsupport_subset_region e hx)) |
| 79 | (fun _ t ht x hx => hBmodel t ht p x hx (endEnergyCutoff_tsupport_subset_region e hx)) |
| 80 | obtain ⟨C, hC, hsupport⟩ := exists_endCylinderDifferenceSupportIntegral_bound e qH qA qS |
| 81 | refine ⟨M, L * C, hM, mul_nonneg hL hC, |
| 82 | fun i t ht => hvalue i t ht (hcommon t ht), ?_⟩ |
| 83 | intro j t ht |
| 84 | let D := endCylinderDifferenceSupportIntegral e qH qA qS F.flow p |
| 85 | calc |
| 86 | _ ≤ L * D (j + 1) t := hrate (j + 1) t ⟨ht.1.le, ht.2.le⟩ (hinterior t ht) |
| 87 | _ ≤ L * (C * (E j t + E (j + 1) t + E (j + 2) t)) := |
| 88 | mul_le_mul_of_nonneg_left |
| 89 | (hsupport F.flow p (hcommon t ⟨ht.1.le, ht.2.le⟩) j) hL |
| 90 | _ = _ := (mul_assoc _ _ _).symm |
| 91 | |
| 92 | /-- Actual positive-index cap-versus-cylinder energies decay geometrically |
| 93 | uniformly throughout a closed included time interval, including zero |
| 94 | (Proposition 12.7, pp. 298-299). -/ |
| 95 | theorem partialFlow_endCylinderDifferenceEnergy_decay {T : ℝ} |
| 96 | (hT : T ∈ Ico 0 F.lifetime ∩ Ico 0 1) : |
| 97 | ∃ M C : ℝ, 0 ≤ M ∧ 0 ≤ C ∧ ∀ j t, t ∈ Icc 0 T → |
| 98 | endCylinderDifferenceEnergy e qH qA qS F.flow p (j + 1) t ≤ |
| 99 | M * (1 / 2 : ℝ) ^ (j + 1) * Real.exp (9 * C * t) := by |
| 100 | obtain ⟨M, C, hM, hC, hvalue, hrate⟩ := |
| 101 | partialFlow_endCylinderDifferenceEnergy_bounds P E0 F e qH qA qS p hT |
| 102 | have hcommon (t) (ht : t ∈ Icc 0 T) : t ∈ Ico 0 F.lifetime ∩ Ico 0 1 := |
| 103 | ⟨⟨ht.1, ht.2.trans_lt hT.1.2⟩, ⟨ht.1, ht.2.trans_lt hT.2.2⟩⟩ |
| 104 | have hinterior (t) (ht : t ∈ Ioo 0 T) : t ∈ interior (Ico 0 F.lifetime ∩ Ico 0 1) := by |
| 105 | rw [interior_inter, interior_Ico, interior_Ico] |
| 106 | exact ⟨⟨ht.1, ht.2.trans hT.1.2⟩, ⟨ht.1, ht.2.trans hT.2.2⟩⟩ |
| 107 | have hdecay := le_geometric_exp_of_bounded_boundary_energy hC |
| 108 | (fun j => endCylinderDifferenceEnergy_continuousOn e qH qA qS F.flow p |
| 109 | isCompact_Icc (fun t ht => hcommon t ht) (j + 1)) |
| 110 | (fun j t ht => endCylinderDifferenceEnergy_differentiableAt e qH qA qS F.flow p |
| 111 | (hinterior t ht) (j + 1)) |
| 112 | (fun j => endCylinderDifferenceEnergy_zero e qH qA qS F.flow p F.initial_metric (j + 1)) |
| 113 | (fun j t _ => endCylinderDifferenceEnergy_nonneg e qH qA qS F.flow p (j + 1) t) |
| 114 | hvalue hrate |
| 115 | refine ⟨M, C, hM, hC, ?_⟩ |
| 116 | simpa only [sub_zero] using hdecay |
| 117 | |
| 118 | /-- The actual energies tend to zero uniformly in all times of a closed |
| 119 | common horizon as the positive end index tends to infinity |
| 120 | (Proposition 12.7, pp. 298-299). -/ |
| 121 | theorem partialFlow_endCylinderDifferenceEnergy_tendstoUniformlyOn {T : ℝ} |
| 122 | (hT : T ∈ Ico 0 F.lifetime ∩ Ico 0 1) : |
| 123 | TendstoUniformlyOn |
| 124 | (fun j => endCylinderDifferenceEnergy e qH qA qS F.flow p (j + 1)) |
| 125 | (fun _ => 0) atTop (Icc 0 T) := by |
| 126 | obtain ⟨M, C, hM, hC, hbound⟩ := |
| 127 | partialFlow_endCylinderDifferenceEnergy_decay P E0 F e qH qA qS p hT |
| 128 | have hp : Tendsto (fun j : ℕ => (1 / 2 : ℝ) ^ (j + 1)) atTop (𝓝 0) := by |
| 129 | simpa only [pow_succ, zero_mul] using |
| 130 | (tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num : (0 : ℝ) ≤ 1 / 2) |
| 131 | (by norm_num : (1 / 2 : ℝ) < 1)).mul_const (1 / 2 : ℝ) |
| 132 | have hsmall : Tendsto (fun j : ℕ => M * (1 / 2 : ℝ) ^ (j + 1) * Real.exp (9 * C * T)) |
| 133 | atTop (𝓝 0) := by |
| 134 | simpa only [mul_zero, zero_mul] using (hp.const_mul M).mul_const (Real.exp (9 * C * T)) |
| 135 | apply Metric.tendstoUniformlyOn_iff.mpr |
| 136 | intro ε hε |
| 137 | filter_upwards [hsmall.eventually (gt_mem_nhds hε)] with j hj |
| 138 | intro t ht |
| 139 | rw [dist_comm, dist_eq_norm, sub_zero, Real.norm_eq_abs, |
| 140 | abs_of_nonneg (endCylinderDifferenceEnergy_nonneg e qH qA qS F.flow p (j + 1) t)] |
| 141 | apply (hbound j t ht).trans_lt |
| 142 | apply lt_of_le_of_lt _ hj |
| 143 | exact mul_le_mul_of_nonneg_left |
| 144 | (Real.exp_le_exp.mpr (mul_le_mul_of_nonneg_left ht.2 (mul_nonneg (by norm_num) hC))) |
| 145 | (mul_nonneg hM (pow_nonneg (by norm_num) _)) |
| 146 | |
| 147 | end PoincareMT.M34 |