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.Persistence.Cutoff.FiniteContinuation |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Cutoff.SequenceContradiction |
| 3 | |
| 4 | /-! |
| 5 | # A uniform cutoff before the flow and observation |
| 6 | |
| 7 | Failure of the frozen cutoff-first statement gives actual prepared |
| 8 | counterexamples. Finite continuation of their duration subsequence |
| 9 | contradicts the maximal-cylinder alternative. Morgan--Tian, |
| 10 | Proposition 16.5, pp. 370-375; M44 derivation 113. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M44 |
| 21 | |
| 22 | /-- The fixed setup and requested comparison choose a positive |
| 23 | cutoff before every eligible flow, observation, event and cap. |
| 24 | Source: Proposition 16.5, pp. 370-375; M44 derivation 113. -/ |
| 25 | theorem exists_cap_persistence_cutoff |
| 26 | (P : M44CapPersistencePredecessors.{u}) |
| 27 | {constants : MetricSurgeryConstants} (setup : SurgeryControlSetup constants) |
| 28 | (standard : RepairedStandardCapExistenceData setup.standard_initial) |
| 29 | (unique : RepairedStandardCapUniquenessData setup.standard_initial standard) |
| 30 | (start rNext A eta theta : ℝ) (hr : 0 < rNext) |
| 31 | (hA : 0 < A) (heta : 0 < eta) (htheta : 0 < theta) (htheta1 : theta < 1) : |
| 32 | ∃ cutoff : ℝ, 0 < cutoff ∧ |
| 33 | ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 34 | HEq O.standard_flow setup.standard_flow → |
| 35 | SurgeryFixedScalesOn setup F O start rNext cutoff → |
| 36 | SurgeryFlowAdmissible F → SurgeryFlowPinched F → |
| 37 | SurgeryCanonicalOn F (surgeryObservationInterval O) rNext → |
| 38 | ∀ (t : ℝ) (hT : t ∈ F.surgery_times) [Nonempty (F.slice t).carrier], |
| 39 | t ∈ surgeryObservationInterval O → start ≤ t → F.parameters.delta t ≤ cutoff → |
| 40 | ∀ i : Fin (F.event t hT).cap_count, |
| 41 | SurgeryCapPersistenceAlternative F O t hT i A eta theta := by |
| 42 | by_contra hnot |
| 43 | have hinner : 0 < A + 1 := by linarith |
| 44 | obtain ⟨cutoffs, _hpositive, hcutoffs, X, hetaX⟩ := |
| 45 | exists_prepared_cap_counterexamples P setup start rNext A eta theta (A + 1) |
| 46 | htheta hinner hnot |
| 47 | obtain ⟨c, hc, sigma, hsigma, hlim⟩ := prepared_counterexample_duration_subsequence X |
| 48 | let Y := fun n => X (sigma n) |
| 49 | have hcutY : Tendsto (fun n => cutoffs (sigma n)) atTop (𝓝 0) := |
| 50 | hcutoffs.comp hsigma.tendsto_atTop |
| 51 | have hetaY : Tendsto (fun n => (Y n).sample.eta) atTop (𝓝 0) := |
| 52 | hetaX.comp hsigma.tendsto_atTop |
| 53 | obtain ⟨R0, K, hinnerR0, hK, T, hT, hcT, hstage⟩ := |
| 54 | exists_cap_sequence_full_stage P setup standard unique hr hinner htheta htheta1 |
| 55 | Y hcutY hetaY hc.1 hc.2 hlim |
| 56 | exact prepared_counterexamples_contradiction P setup standard unique hA heta htheta htheta1 |
| 57 | Y hcutY hetaY hc.1 hc.2 hlim hinnerR0 hT hcT hK hstage |
| 58 | |
| 59 | end PoincareMT.M44 |