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.ObservedCylinder |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.Confinement.OverlapCaps |
| 3 | |
| 4 | /-! |
| 5 | # One cap-persistence cutoff also produces the low-scalar cylinders |
| 6 | |
| 7 | Morgan--Tian Proposition 16.5 and Proposition 16.1, pp. 370 and 391-394. |
| 8 | The scalar-rate tolerance is supplied exactly once. The stored M44 |
| 9 | cutoff is then decreased to the positive whole-cap floor cutoff. Both |
| 10 | cap persistence and the actual low-cylinder producer use that same value. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M46 |
| 22 | |
| 23 | /-- The literal scalar-rate output at the shared eta gives one cutoff |
| 24 | for both M44 overlap persistence and the actual low-cylinder producer. |
| 25 | All numerical choices precede the observed flow and tested point. -/ |
| 26 | theorem exists_overlapCapCutoff_with_lowCylinders |
| 27 | (P : M46Predecessors.{u}) (P44 : M44CapPersistencePredecessors.{u}) |
| 28 | (S : RepairedControlledSchedulesData.{u}) (p : SurgeryParameterPrefix S.constants) |
| 29 | (hp : S.SeedCompatible p) {B c theta A eta rNext : ℝ} |
| 30 | (hB : 1 ≤ B) (hBanalytic : seedAnalyticConstant S ≤ B) (hc : 0 < c) |
| 31 | (htheta : 0 < theta) (hthetaOne : theta < 1) |
| 32 | (hA : S.standard_initial.cylindrical_end.radius + 5 < A) (heta : 0 < eta) |
| 33 | (hr : 0 < rNext) (hrLast : rNext ≤ p.r (Fin.last p.i)) |
| 34 | (hbound : ∀ (F : SurgeryFlowData.{u}) (_hinitial : F.standard_initial = S.standard_initial) |
| 35 | (model : MaximalStandardCapFlow F.standard_initial), |
| 36 | HEq model S.cap_persistence.standard_cap.flow → |
| 37 | ∀ (t : ℝ) (hT : t ∈ F.surgery_times) (_hn : Nonempty (F.slice t).carrier) |
| 38 | (i : Fin (F.event t hT).cap_count) (J : Set ℝ) (U : Set (F.slice t).carrier) |
| 39 | (e : SurgeryFlowCylinder F (F.slice t) t ((F.parameters.h t)⁻¹ ^ 2) J U) |
| 40 | (initial : SurgeryCapInitialComparison F t hT i A), |
| 41 | SurgeryCapFamilyComparison F model A eta e initial.chart → |
| 42 | 0 < F.parameters.h t → ∀ (s : ℝ) (hs : s ∈ J), s ≤ theta → |
| 43 | ∀ x ∈ F.standard_initial.metric.ball 0 A, |
| 44 | c / (2 * (1 - s) * (F.parameters.h t) ^ 2) ≤ |
| 45 | (F.connection (t + s / ((F.parameters.h t)⁻¹ ^ 2))).scalarCurvature |
| 46 | (e.forward s hs (initial.chart x))) : |
| 47 | ∃ cutoff : ℝ, 0 < cutoff ∧ cutoff ≤ p.Delta (Fin.last p.i) ∧ |
| 48 | (∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F) |
| 49 | (inputs : ObservedInputs p rNext cutoff F O), |
| 50 | OverlapCapControl p O inputs.old A eta theta) ∧ |
| 51 | LowScalarCylinderProducer.{u} p rNext cutoff (smallTestRadius B rNext) := by |
| 52 | have hApos : 0 < A := by linarith [S.standard_initial.cylindrical_end.radius_pos] |
| 53 | obtain ⟨deltaM44, hdeltaM44, hdeltaLast, hpersistence⟩ := |
| 54 | exists_seedCompatibleOverlapCapCutoff S p hp rNext hr hrLast A eta theta |
| 55 | hApos heta htheta hthetaOne |
| 56 | let cutoff := min deltaM44 (capScalarCutoff p.setup.epsilon c rNext) |
| 57 | have hcutoff : 0 < cutoff := |
| 58 | lt_min hdeltaM44 (capScalarCutoff_pos p.setup.epsilon_pos hc hr) |
| 59 | have hM44 : cutoff ≤ deltaM44 := min_le_left _ _ |
| 60 | have hfloor : cutoff ≤ capScalarCutoff p.setup.epsilon c rNext := min_le_right _ _ |
| 61 | have hcontrol (F : SurgeryFlowData.{u}) (O : SurgeryObservation F) |
| 62 | (inputs : ObservedInputs p rNext cutoff F O) : |
| 63 | OverlapCapControl p O inputs.old A eta theta := by |
| 64 | let larger := inputs.cutoff_mono hM44 |
| 65 | exact hpersistence F O larger.next_epoch larger.old larger.admissible |
| 66 | larger.pinched larger.scales larger.canonical larger.overlap |
| 67 | refine ⟨cutoff, hcutoff, hM44.trans hdeltaLast, hcontrol, ?_⟩ |
| 68 | apply lowScalarCylinderProducer_of_birth_bounds P P44 S p hp hB hBanalytic hc |
| 69 | hr hrLast hfloor |
| 70 | intro F O inputs t hT hn ht hstart i |
| 71 | have hinitial : F.standard_initial = S.standard_initial := by |
| 72 | rw [inputs.old.standard_initial_eq, hp.setup_eq, S.setup_standard_initial_eq] |
| 73 | have hpflow : HEq p.setup.standard_flow S.cap_persistence.standard_cap.flow := by |
| 74 | rw [hp.setup_eq] |
| 75 | exact S.setup_standard_flow_eq |
| 76 | have hmodel : HEq (O.redecorateTo inputs.old.standard_initial_eq).standard_flow |
| 77 | S.cap_persistence.standard_cap.flow := |
| 78 | (redecorateTo_standard_flow O inputs.old.standard_initial_eq).trans hpflow |
| 79 | have hAF : F.standard_initial.cylindrical_end.radius + 5 < A := by |
| 80 | rw [hinitial] |
| 81 | exact hA |
| 82 | apply insertedCap_scalarLower_of_persistence |
| 83 | (O.redecorateTo inputs.old.standard_initial_eq) hT i htheta hAF ht.2 |
| 84 | (fun J U e initial comparison => hbound F hinitial _ hmodel t hT hn i |
| 85 | J U e initial comparison |
| 86 | (F.parameters.h_pos t (F.time_domain_nonnegative (F.surgery_times_subset hT)))) |
| 87 | exact hcontrol F O inputs t hT ht hstart i |
| 88 | |
| 89 | end PoincareMT.Proofs.M46 |