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.GlobalSchedule.Numerical.NumericalSchedule |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Epoch.EpochCoverage |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Zero.ZeroCapDiscard |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Volume.FinitePrefixTheory |
| 5 | |
| 6 | /-! |
| 7 | # The retained loss service on the actual global flow |
| 8 | |
| 9 | Use the cutoff chosen before induction, build the primitive event controls |
| 10 | on this flow, and pass its selected certificate unchanged to M50. |
| 11 | Source: Morgan--Tian Section 17.2, printed pp. 409-411. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M51 |
| 21 | |
| 22 | /-- The actual raw flow supplies the primitive event predicates needed for volume loss. -/ |
| 23 | theorem globalVolumeControls (F : SurgeryFlowData.{u}) |
| 24 | (H13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 25 | (admissible : SurgeryFlowAdmissible F) (pinched : SurgeryFlowPinched F) : |
| 26 | RepairedVolumeLossControls F := |
| 27 | ⟨admissible, pinched, F.nonemptyEventPreInterval, |
| 28 | F.vanishingEventPreInterval, F.zeroCapDiscard H13⟩ |
| 29 | |
| 30 | /-- Apply the retained loss service and M50 to the same flow and the same loss certificate. -/ |
| 31 | theorem selected_global_volume |
| 32 | (S : RepairedControlledSchedulesData.{u}) |
| 33 | (N : RepairedNoncollapseInductionData S) |
| 34 | (C : RepairedCanonicalInductionData S N) |
| 35 | (H13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 36 | (F50 : RepairedFinitePrefixTheory.{u}) |
| 37 | (d : ℝ) (hd : (M51Numerical.schedule S N C).Delta 0 ≤ d) |
| 38 | (losses : ∀ (F : SurgeryFlowData.{u}) (V : RepairedVolumeLossControls F), |
| 39 | F.standard_initial = S.standard_initial → F.local_constants = S.constants → |
| 40 | (∀ t ∈ F.surgery_times, F.parameters.delta t ≤ d) → |
| 41 | Nonempty (RepairedVolumeLossData F V)) |
| 42 | (F : SurgeryFlowData.{u}) |
| 43 | (hstandard : F.standard_initial = S.standard_initial) |
| 44 | (hconstants : F.local_constants = S.constants) |
| 45 | (admissible : SurgeryFlowAdmissible F) (pinched : SurgeryFlowPinched F) |
| 46 | (hdelta : ∀ j t, t ∈ surgeryEpochEntry j → t ∈ F.time_domain → |
| 47 | F.parameters.delta t ≤ (M51Numerical.schedule S N C).Delta j) : |
| 48 | ∃ V : RepairedVolumeLossData F (globalVolumeControls F H13 admissible pinched), |
| 49 | Nonempty (RepairedFinitePrefixData F (globalVolumeControls F H13 admissible pinched) V) := by |
| 50 | have hbound : ∀ t ∈ F.surgery_times, F.parameters.delta t ≤ d := by |
| 51 | intro t ht |
| 52 | have htF := F.surgery_times_subset ht |
| 53 | obtain ⟨j, hj⟩ := exists_surgeryEpochEntry (F.time_domain_nonnegative htF) |
| 54 | exact (hdelta j t hj htF).trans |
| 55 | (((M51Numerical.schedule S N C).Delta_antitone (Nat.zero_le j)).trans hd) |
| 56 | obtain ⟨V⟩ := losses F (globalVolumeControls F H13 admissible pinched) |
| 57 | hstandard hconstants hbound |
| 58 | exact ⟨V, F50.finite_prefix F (globalVolumeControls F H13 admissible pinched) V⟩ |
| 59 | |
| 60 | end PoincareMT.M51 |