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.Lifetime.Basic.GoodPointAnalytic |
| 2 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Ancient.Statement |
| 3 | |
| 4 | /-! |
| 5 | # A uniform analytic constant before the ancient limit |
| 6 | |
| 7 | The M27 derivative witness has strict slack below one constant chosen before |
| 8 | the ancient carrier. The actual M30 metric and connection identifications, |
| 9 | the normalized scalar at the base, and M04's within-time equation turn it |
| 10 | into strict bounds for the two actual limiting readouts. |
| 11 | Source: Morgan-Tian Theorem 9.93, pp. 242-243, and Theorem 12.28, |
| 12 | pp. 323-324; good-point-analytic-assembly.md, sections 2 and 4. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | /-- One positive constant bounds the actual normalized base readouts of |
| 25 | every identified ancient limit, with strict slack (Theorems 9.93 and 12.28). -/ |
| 26 | theorem exists_chapter11_analytic_constant (T : RepairedKappaAlternativeTheory.{u}) : |
| 27 | ∃ A : ℝ, 0 < A ∧ |
| 28 | ∀ (L : BlowupLimitFlow.{u} (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 29 | (_K : M30AncientKappaIdentification L kappa), |
| 30 | letI := L.carrier.topologicalSpace |
| 31 | letI := L.carrier.chartedSpace |
| 32 | letI := L.carrier.isManifold |
| 33 | scalarGradientNorm (L.flow.metric 0) (L.flow.connection 0) L.base < A ∧ |
| 34 | |(L.flow.connection 0).laplacian (L.flow.connection 0).scalarCurvature L.base + |
| 35 | 2 * (L.flow.connection 0).ricciNormSq L.base| < A := by |
| 36 | obtain ⟨epsilon, hepsilon, htheory⟩ := T.theorem_9_93 |
| 37 | obtain ⟨A, hA, hbound⟩ := htheory (epsilon / 2) (half_pos hepsilon) |
| 38 | (half_lt_self hepsilon) |
| 39 | refine ⟨A, hA, ?_⟩ |
| 40 | intro L kappa K |
| 41 | let := L.carrier.topologicalSpace |
| 42 | let := L.carrier.measurableSpace |
| 43 | let := L.carrier.borelSpace |
| 44 | let := L.carrier.chartedSpace |
| 45 | let := L.carrier.isManifold |
| 46 | let := L.carrier.t2Space |
| 47 | let := L.carrier.t3Space |
| 48 | let := L.carrier.secondCountable |
| 49 | let := L.connectedSpace |
| 50 | let S := K.certificate.solution |
| 51 | obtain ⟨B, _, hBA, hB⟩ := (hbound S).derivatives |
| 52 | have hpair : (⟨S.flow.metric 0, S.flow.connection 0⟩ : |
| 53 | Σ g : RiemannianMetric 3 L.carrier.carrier, LeviCivitaData g) = |
| 54 | ⟨L.flow.metric 0, L.flow.connection 0⟩ := |
| 55 | Sigma.ext (K.certificate.metric_eq 0 le_rfl) (K.connection_eq 0 le_rfl) |
| 56 | have hscalar := congrArg (fun gd : |
| 57 | Σ g : RiemannianMetric 3 L.carrier.carrier, LeviCivitaData g => |
| 58 | gd.2.scalarCurvature L.base) hpair |
| 59 | have hgradient := congrArg (fun gd : |
| 60 | Σ g : RiemannianMetric 3 L.carrier.carrier, LeviCivitaData g => |
| 61 | scalarGradientNorm gd.1 gd.2 L.base) hpair |
| 62 | have hevolution := congrArg (fun gd : |
| 63 | Σ g : RiemannianMetric 3 L.carrier.carrier, LeviCivitaData g => |
| 64 | gd.2.laplacian gd.2.scalarCurvature L.base + 2 * gd.2.ricciNormSq L.base) hpair |
| 65 | change (S.flow.connection 0).scalarCurvature L.base = |
| 66 | (L.flow.connection 0).scalarCurvature L.base at hscalar |
| 67 | rw [L.scalar_normalized] at hscalar |
| 68 | obtain ⟨_, hg, d, hd, hdb⟩ := hB 0 le_rfl L.base |
| 69 | have hdactual := S.flow.hasDerivWithinAt_scalarCurvature 0 self_mem_Iic L.base |
| 70 | have hdeq := (uniqueDiffOn_Iic (0 : ℝ) 0 self_mem_Iic).eq_deriv _ hd hdactual |
| 71 | change scalarGradientNorm (S.flow.metric 0) (S.flow.connection 0) L.base = |
| 72 | scalarGradientNorm (L.flow.metric 0) (L.flow.connection 0) L.base at hgradient |
| 73 | change (S.flow.connection 0).laplacian (S.flow.connection 0).scalarCurvature L.base + |
| 74 | 2 * (S.flow.connection 0).ricciNormSq L.base = _ at hevolution |
| 75 | rw [hgradient, hscalar, Real.one_rpow, mul_one] at hg |
| 76 | rw [hdeq, hevolution, hscalar, one_pow, mul_one] at hdb |
| 77 | exact ⟨hg.trans_lt hBA, hdb.trans_lt hBA⟩ |
| 78 | |
| 79 | end PoincareMT.M34 |