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.Regularity.AlmostEverywhere.RegularGerms |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Basic |
| 3 | |
| 4 | /-! |
| 5 | # The exact weak coefficients on regular reduced-length germs |
| 6 | |
| 7 | Morgan-Tian Corollary 6.51 and Theorem 7.13. The time and gradient |
| 8 | formulas identify the two frozen weak integrands with the common |
| 9 | upper Laplacian expression and its negative double. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.ReducedVolume |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | [ConnectedSpace M] {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} |
| 23 | {p q : M} {τ : ℝ} |
| 24 | |
| 25 | /-- The literal Laplacian is bounded by the combined time and value expression at regular points. -/ |
| 26 | theorem reducedLength_regular_laplacian_le |
| 27 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 28 | (r : ReducedLengthRegularPoint F T τmax p q τ) : |
| 29 | (F.connection (T - τ)).laplacian (fun x ↦ reducedLength F T p x τ) q ≤ |
| 30 | -deriv (fun s ↦ reducedLength F T p q s) τ + |
| 31 | ((n : ℝ) / 2 - reducedLength F T p q τ) / τ := by |
| 32 | have h := (hDifferential.regular_point_formulas p q τ r).2.2.2.1 |
| 33 | rw [(regular_time_eventuallyEq r).deriv_eq, regular_laplacian_eq r, |
| 34 | r.representative_eq (q, τ) r.center_mem] at h |
| 35 | simpa only [reducedLengthLaplacian, sub_eq_add_neg, add_comm] using |
| 36 | (le_sub_iff_add_le').mpr h |
| 37 | |
| 38 | /-- Both complete frozen weak integrands have the same reduced expression at regular points. -/ |
| 39 | theorem reducedLength_regular_weak_integrands |
| 40 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 41 | (r : ReducedLengthRegularPoint F T τmax p q τ) (φ : M → ℝ) : |
| 42 | let H := -deriv (fun s ↦ reducedLength F T p q s) τ + |
| 43 | ((n : ℝ) / 2 - reducedLength F T p q τ) / τ |
| 44 | reducedLengthFirstWeakIntegrand F T p τ φ q = |
| 45 | φ q * H - reducedLength F T p q τ * (F.connection (T - τ)).laplacian φ q ∧ |
| 46 | reducedLengthSecondWeakIntegrand F T p τ φ q = |
| 47 | -2 * (φ q * H - reducedLength F T p q τ * (F.connection (T - τ)).laplacian φ q) := by |
| 48 | have ht := (hDifferential.regular_point_formulas p q τ r).1 |
| 49 | have hg := (hDifferential.regular_point_formulas p q τ r).2.1 |
| 50 | rw [(regular_time_eventuallyEq r).deriv_eq, |
| 51 | r.representative_eq (q, τ) r.center_mem] at ht |
| 52 | rw [regular_gradientNormSq_eq r, r.representative_eq (q, τ) r.center_mem] at hg |
| 53 | dsimp only |
| 54 | simp only [reducedLengthFirstWeakIntegrand, reducedLengthSecondWeakIntegrand, ht, hg] |
| 55 | constructor <;> ring |
| 56 | |
| 57 | end PoincareMT.ReducedVolume |