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.Empty.EmptyAdmissible |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Empty.EmptyControls |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Empty.EmptyPolicy |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Global.ScheduleData |
| 5 | |
| 6 | /-! |
| 7 | # The controlled empty branch of M51 |
| 8 | |
| 9 | Morgan--Tian Section 17.2, p. 409. An included empty slice completes the |
| 10 | given-flow branch on all nonnegative times, with the original numerical |
| 11 | profiles, actual old events and geometric controls. This does not construct |
| 12 | the normalized initial flow or iterate the nonempty branch. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M51Empty |
| 23 | |
| 24 | noncomputable def controlledExtension |
| 25 | (m13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 26 | {K : MetricSurgeryConstants} {S : GlobalSurgerySchedule K} |
| 27 | {delta : ℝ → ℝ} {F : SurgeryFlowData.{u}} {H a : ℝ} |
| 28 | (P : RepairedGlobalControlledPrefix S delta F H) |
| 29 | (ha : a ∈ F.time_domain) [IsEmpty (F.slice a).carrier] |
| 30 | (hdelta : ∀ j : ℕ, ∀ t ∈ surgeryEpochEntry j, |
| 31 | 0 ≤ t → delta t ≤ S.Delta j) : |
| 32 | RepairedGlobalControlledExtension S F where |
| 33 | extension := extension F ha |
| 34 | time_domain_eq := rfl |
| 35 | admissible := admissible F ha m13 P.admissible |
| 36 | terminal_policy := terminalPolicy F ha P.terminal_policy |
| 37 | pinched := pinched F ha P.pinched |
| 38 | canonical := canonical F ha m13 P.canonical |
| 39 | noncollapsed := noncollapsed F ha m13 P.noncollapsed |
| 40 | schedule_agreement := by |
| 41 | intro j t ht ht0 |
| 42 | rcases P.schedule_agreement j t ht ht0 with ⟨hr, hk, hh⟩ |
| 43 | change F.parameters.r t = S.r j ∧ F.parameters.kappa t = S.kappa j ∧ |
| 44 | F.parameters.delta t ≤ S.Delta j ∧ |
| 45 | F.parameters.h t = S.setup.selector.h |
| 46 | (F.parameters.delta t * F.parameters.r t) (F.parameters.delta t) |
| 47 | rw [P.delta_eq t ht0] |
| 48 | exact ⟨hr, hk, hdelta j t ht ht0, hh⟩ |
| 49 | local_finite := fun _ _ => (flow_events_finite F ha).subset inter_subset_left |
| 50 | no_finite_accumulation := fun _ _ => |
| 51 | ⟨1, by norm_num, (flow_events_finite F ha).subset inter_subset_left⟩ |
| 52 | |
| 53 | end PoincareMT.M51Empty |