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.ReducedVolume.Metric.Hessian.GradientNorm |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Metric.Comparison.LocalMetricBound |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Theory |
| 4 | |
| 5 | /-! |
| 6 | # Uniform support bounds in the terminal metric |
| 7 | |
| 8 | The actual M09 upper barriers and joint smoothness of the flow metric |
| 9 | produce uniform time and spatial bounds near every interior point. |
| 10 | Spatial derivatives are evaluated using the fixed terminal tangent norm. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology NNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.ReducedVolume |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | [ConnectedSpace M] {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 25 | |
| 26 | /-- Actual upper barriers have locally uniform first derivatives in fixed units. -/ |
| 27 | theorem reducedLength_local_terminal_supports |
| 28 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 29 | (hwindow : Icc (T - τmax) T ⊆ J) |
| 30 | (z : M × ℝ) (hz : z ∈ univ ×ˢ Ioo 0 τmax) : |
| 31 | ∃ N : Set (M × ℝ), IsOpen N ∧ z ∈ N ∧ N ⊆ univ ×ˢ Ioo 0 τmax ∧ |
| 32 | ∃ C D : ℝ≥0, ∀ w ∈ N, ∃ B : ReducedLengthUpperBarrier F T p w.1 w.2, |
| 33 | |deriv (fun s ↦ B.representative (w.1, s)) w.2| ≤ D ∧ |
| 34 | ∀ v : TangentSpace (𝓡 n) w.1, |
| 35 | |mvfderiv (𝓡 n) (fun q ↦ B.representative (q, w.2)) w.1 v| ≤ |
| 36 | C * (F.metric T).tangentNorm w.1 v := by |
| 37 | obtain ⟨N, hNopen, hzN, hNtime, C, hC, hbarrier⟩ := |
| 38 | hDifferential.local_upper_barrier_bounds p z hz |
| 39 | obtain ⟨V, hVopen, hzV, _, K, hK, hmetric⟩ := |
| 40 | slice_tangentNorm_locally_le_terminal (F := F) hwindow z hz |
| 41 | refine ⟨N ∩ V, hNopen.inter hVopen, ⟨hzN, hzV⟩, |
| 42 | fun w hw ↦ hNtime hw.1, |
| 43 | ⟨Real.sqrt C * K, mul_nonneg (Real.sqrt_nonneg _) hK⟩, ⟨C, hC⟩, ?_⟩ |
| 44 | intro w hw |
| 45 | obtain ⟨B, htime, hgradient, _⟩ := hbarrier w hw.1 |
| 46 | refine ⟨B, htime, fun v ↦ ?_⟩ |
| 47 | calc |
| 48 | _ ≤ Real.sqrt C * (F.metric (T - w.2)).tangentNorm w.1 v := |
| 49 | abs_mvfderiv_le_of_gradientNormSq_le hgradient v |
| 50 | _ ≤ Real.sqrt C * (K * (F.metric T).tangentNorm w.1 v) := |
| 51 | mul_le_mul_of_nonneg_left (hmetric w hw.2 v) (Real.sqrt_nonneg _) |
| 52 | _ = (Real.sqrt C * K) * (F.metric T).tangentNorm w.1 v := (mul_assoc _ _ _).symm |
| 53 | |
| 54 | end PoincareMT.ReducedVolume |