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.Induction.Noncollapse.Assembly.Configuration |
| 2 | |
| 3 | /-! |
| 4 | # Uniform canonical estimates outside positive components |
| 5 | |
| 6 | Morgan--Tian Lemma 11.2, printed pp. 268-269, and its use in Proposition |
| 7 | 16.1, pp. 392-393. The stored M45 model estimates and the actual cap |
| 8 | certificate give one coefficient before the flow is chosen. Remark |
| 9 | 16.2's positive-component exclusion removes the compact C-component case. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.Proofs.M46 |
| 20 | |
| 21 | /-- The seed-cylinder analytic coefficient is fixed by the stored M45 |
| 22 | models before the next radius and flow, Lemma 11.2 and pp. 392-393. -/ |
| 23 | noncomputable def seedAnalyticConstant (S : RepairedControlledSchedulesData.{u}) : ℝ := |
| 24 | max S.setup.C (max S.calibration.model_analytics.neck_constant |
| 25 | S.calibration.model_analytics.round_constant) |
| 26 | |
| 27 | /-- The chosen seed-cylinder coefficient is positive, pp. 392-393. -/ |
| 28 | theorem seedAnalyticConstant_pos (S : RepairedControlledSchedulesData.{u}) : |
| 29 | 0 < seedAnalyticConstant S := |
| 30 | S.setup.C_pos.trans_le (le_max_left _ _) |
| 31 | |
| 32 | /-- Each actual canonical alternative outside positive-curvature components |
| 33 | has the uniform gradient and scalar-evolution estimates of Lemma 11.2, |
| 34 | pp. 268-269, used on p. 393. -/ |
| 35 | theorem canonical_analytic_on_nonpositive (S : RepairedControlledSchedulesData.{u}) |
| 36 | (F : SurgeryFlowData.{u}) (t : ℝ) (x : (F.slice t).carrier) |
| 37 | (hcanonical : SurgeryCanonicalControl F t x F.parameters.epsilon S.setup.C) |
| 38 | (hpositive : ¬ SurgeryPositiveComponentAt F t x) : |
| 39 | M45PointwiseAnalyticEstimate (F.metric t) (F.connection t) x |
| 40 | (seedAnalyticConstant S) := by |
| 41 | have hC : S.setup.C ≤ seedAnalyticConstant S := le_max_left _ _ |
| 42 | have hneck : S.calibration.model_analytics.neck_constant ≤ seedAnalyticConstant S := |
| 43 | (le_max_left _ _).trans (le_max_right _ _) |
| 44 | have hround : S.calibration.model_analytics.round_constant ≤ seedAnalyticConstant S := |
| 45 | (le_max_right _ _).trans (le_max_right _ _) |
| 46 | have hmono {B : ℝ} (hB : B ≤ seedAnalyticConstant S) |
| 47 | (h : M45PointwiseAnalyticEstimate (F.metric t) (F.connection t) x B) : |
| 48 | M45PointwiseAnalyticEstimate (F.metric t) (F.connection t) x |
| 49 | (seedAnalyticConstant S) := |
| 50 | ⟨h.1, |
| 51 | h.2.1.trans (mul_le_mul_of_nonneg_right hB (Real.rpow_nonneg h.1.le _)), |
| 52 | h.2.2.trans (mul_le_mul_of_nonneg_right hB (sq_nonneg _))⟩ |
| 53 | cases hcanonical with |
| 54 | | neck N hcenter => |
| 55 | have hsmall : N.neck.epsilon ≤ 1 / 200 := |
| 56 | N.epsilon_eq.le.trans F.parameters.epsilon_le |
| 57 | have h := S.calibration.model_analytics.neck (F.metric t) (F.connection t) |
| 58 | N.neck hsmall |
| 59 | rw [hcenter] at h |
| 60 | exact hmono hneck h |
| 61 | | cap N _ hconstant hconnection hx => |
| 62 | have hxcarrier : x ∈ N.carrier := by |
| 63 | rw [N.core_eq_interior_closed_core] at hx |
| 64 | have hclosed := interior_subset hx |
| 65 | rw [N.closed_core_eq_complement_end] at hclosed |
| 66 | exact hclosed.1 |
| 67 | have hR := N.scalar_pos x hxcarrier |
| 68 | obtain ⟨Bgrad, hBgrad, hgrad⟩ := N.gradient_bound |
| 69 | obtain ⟨Bevol, hBevol, hevol⟩ := N.laplacian_bound |
| 70 | have hg := hgrad x hxcarrier |
| 71 | have he := hevol x hxcarrier |
| 72 | rw [hconnection] at hR hg he |
| 73 | exact ⟨hR, |
| 74 | hg.trans (mul_le_mul_of_nonneg_right |
| 75 | ((hBgrad.le.trans hconstant).trans hC) (Real.rpow_nonneg hR.le _)), |
| 76 | he.trans (mul_le_mul_of_nonneg_right |
| 77 | ((hBevol.le.trans hconstant).trans hC) (sq_nonneg _))⟩ |
| 78 | | component N hx => |
| 79 | have hxcomponent : x ∈ connectedComponent N.basepoint := by |
| 80 | rwa [← N.component_eq] |
| 81 | have hcomponent : connectedComponent x = N.carrier := |
| 82 | (connectedComponent_eq hxcomponent).symm.trans N.component_eq.symm |
| 83 | exact (hpositive (by |
| 84 | intro y hy v w hvw |
| 85 | exact N.positive_sectional y (hcomponent ▸ hy) v w hvw)).elim |
| 86 | | round N hx => |
| 87 | exact hmono hround |
| 88 | (S.calibration.model_analytics.round (F.metric t) (F.connection t) |
| 89 | F.parameters.epsilon N F.parameters.epsilon_le x hx) |
| 90 | |
| 91 | /-- The old-prefix canonical hypothesis supplies the analytic estimates |
| 92 | above its own scalar threshold, retaining Remark 16.2's guard, p. 393. -/ |
| 93 | theorem old_prefix_analytic_on_nonpositive (S : RepairedControlledSchedulesData.{u}) |
| 94 | (p : SurgeryParameterPrefix S.constants) (compatible : S.SeedCompatible p) |
| 95 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 96 | (old : SurgeryPrefixControls p F O) {t : ℝ} |
| 97 | (ht : t ∈ surgeryObservationInterval O ∩ surgeryEpochEntry p.i) |
| 98 | (x : (F.slice t).carrier) (hpositive : ¬ SurgeryPositiveComponentAt F t x) |
| 99 | (hscalar : (p.r (Fin.last p.i))⁻¹ ^ 2 ≤ (F.connection t).scalarCurvature x) : |
| 100 | M45PointwiseAnalyticEstimate (F.metric t) (F.connection t) x |
| 101 | (seedAnalyticConstant S) := by |
| 102 | have hcanonical := old.canonical (Fin.last p.i) (by simp) t ht |
| 103 | (O.interval_subset ht.1) x hscalar |
| 104 | rw [old.C_eq, compatible.setup_eq] at hcanonical |
| 105 | exact canonical_analytic_on_nonpositive S F t x hcanonical hpositive |
| 106 | |
| 107 | end PoincareMT.Proofs.M46 |