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.StableSet.Cylinders.LowBallCylinder |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Cylinders.CutoffFloor |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Cylinders.ObservedWindow |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.Volume.SmallRadiusAssembly |
| 5 | |
| 6 | /-! |
| 7 | # The observed low-scalar cylinder with the common cutoff |
| 8 | |
| 9 | Morgan--Tian Proposition 16.1, pp. 367-368 and 392-393. The actual |
| 10 | observation supplies the canonical window and its overlap delta bound. |
| 11 | The common cap birth estimate then discharges the last geometric input |
| 12 | to the checked backward-cylinder construction. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.Proofs.M46 |
| 24 | |
| 25 | /-- Further cutoff minima preserve the exact low-cylinder producer, |
| 26 | so the cap-avoidance constraints can use the same final cutoff. -/ |
| 27 | theorem LowScalarCylinderProducer.cutoff_mono {K : MetricSurgeryConstants} |
| 28 | {p : SurgeryParameterPrefix K} {rNext cutoff smaller rho : ℝ} |
| 29 | (produce : LowScalarCylinderProducer.{u} p rNext cutoff rho) |
| 30 | (hsmall : smaller ≤ cutoff) : |
| 31 | LowScalarCylinderProducer.{u} p rNext smaller rho := by |
| 32 | intro F O inputs D hnew hlow |
| 33 | exact produce F O (inputs.cutoff_mono hsmall) D hnew hlow |
| 34 | |
| 35 | /-- Actual observed inputs and the shared M44 birth estimate give the |
| 36 | literal low-cylinder record. The overlap bound controls the whole short |
| 37 | window even before the new radius profile begins. -/ |
| 38 | theorem lowScalarCylinder_of_observed_birth_bounds |
| 39 | (P : M46Predecessors.{u}) (P44 : M44CapPersistencePredecessors.{u}) |
| 40 | (S : RepairedControlledSchedulesData.{u}) (p : SurgeryParameterPrefix S.constants) |
| 41 | (hp : S.SeedCompatible p) {B c rNext cutoff : ℝ} |
| 42 | (hB : 1 ≤ B) (hBanalytic : seedAnalyticConstant S ≤ B) (hc : 0 < c) |
| 43 | (hr : 0 < rNext) (hrLast : rNext ≤ p.r (Fin.last p.i)) |
| 44 | (hcutoff : cutoff ≤ capScalarCutoff p.setup.epsilon c rNext) |
| 45 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 46 | (inputs : ObservedInputs p rNext cutoff F O) (D : NoncollapseTest F O) |
| 47 | (hnew : surgeryEpochStart p.i ≤ D.time) |
| 48 | (hcenter : (F.connection D.time).scalarCurvature D.center < rNext⁻¹ ^ 2) |
| 49 | (hbirth : ∀ (t : ℝ) (hT : t ∈ F.surgery_times) |
| 50 | [Nonempty (F.slice t).carrier], t ∈ surgeryObservationInterval O → |
| 51 | surgeryEpochStart (p.i - 1) ≤ t → |
| 52 | ∀ i : Fin (F.event t hT).cap_count, |
| 53 | ∀ x ∈ ((F.event t hT).caps i).carrier, |
| 54 | c / (2 * (F.parameters.h t) ^ 2) ≤ (F.connection t).scalarCurvature x) : |
| 55 | Nonempty (LowScalarCylinder D (smallTestRadius B rNext)) := by |
| 56 | have hwindow := observed_low_cylinder_window p inputs D hnew hB hr hrLast |
| 57 | apply lowScalarCylinder_of_canonical_and_cap_floor P P44 S D inputs.pinched |
| 58 | hB hBanalytic hr |
| 59 | (hrLast.trans ((p.r_le_epsilon _).trans (p.setup.epsilon_le.trans (min_le_left _ _)))) |
| 60 | hcenter.le (fun t ht => O.interval_subset (hwindow ht).1) |
| 61 | D.exists_later_observed_time |
| 62 | · intro t ht x hhigh |
| 63 | have h := inputs.canonical t (hwindow ht).1 |
| 64 | (O.interval_subset (hwindow ht).1) x hhigh |
| 65 | simpa only [inputs.old.C_eq, hp.setup_eq] using h |
| 66 | · intro t ht hT _ i x hx |
| 67 | have hw := hwindow (Ioc_subset_Icc_self ht) |
| 68 | have hdelta : F.parameters.delta t ≤ capScalarCutoff F.parameters.epsilon c rNext := by |
| 69 | rw [inputs.old.epsilon_eq] |
| 70 | exact (inputs.overlap t hw).trans hcutoff |
| 71 | exact (cap_birth_floor_gt_four_inv_sq F hw.1.1 hc hr hdelta).trans_le |
| 72 | (hbirth t hT hw.1 hw.2.1 i x hx) |
| 73 | |
| 74 | /-- The common before-flow cap birth estimate yields the exact root |
| 75 | producer endpoint, with all radius and cutoff dependencies unchanged. -/ |
| 76 | theorem lowScalarCylinderProducer_of_birth_bounds |
| 77 | (P : M46Predecessors.{u}) (P44 : M44CapPersistencePredecessors.{u}) |
| 78 | (S : RepairedControlledSchedulesData.{u}) (p : SurgeryParameterPrefix S.constants) |
| 79 | (hp : S.SeedCompatible p) {B c rNext cutoff : ℝ} |
| 80 | (hB : 1 ≤ B) (hBanalytic : seedAnalyticConstant S ≤ B) (hc : 0 < c) |
| 81 | (hr : 0 < rNext) (hrLast : rNext ≤ p.r (Fin.last p.i)) |
| 82 | (hcutoff : cutoff ≤ capScalarCutoff p.setup.epsilon c rNext) |
| 83 | (hbirth : ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 84 | ObservedInputs p rNext cutoff F O → |
| 85 | ∀ (t : ℝ) (hT : t ∈ F.surgery_times) [Nonempty (F.slice t).carrier], |
| 86 | t ∈ surgeryObservationInterval O → surgeryEpochStart (p.i - 1) ≤ t → |
| 87 | ∀ i : Fin (F.event t hT).cap_count, |
| 88 | ∀ x ∈ ((F.event t hT).caps i).carrier, |
| 89 | c / (2 * (F.parameters.h t) ^ 2) ≤ (F.connection t).scalarCurvature x) : |
| 90 | LowScalarCylinderProducer.{u} p rNext cutoff (smallTestRadius B rNext) := by |
| 91 | intro F O inputs D hnew hcenter |
| 92 | exact lowScalarCylinder_of_observed_birth_bounds P P44 S p hp hB hBanalytic hc |
| 93 | hr hrLast hcutoff inputs D hnew hcenter (hbirth F O inputs) |
| 94 | |
| 95 | end PoincareMT.Proofs.M46 |