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.Global.ScheduleData |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Zero.ZeroCapDiscard |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Epoch.EpochCoverage |
| 4 | |
| 5 | /-! |
| 6 | # M49 controls on a given M51 prefix |
| 7 | |
| 8 | Use the same raw flow and its entire excluded-horizon observation. The |
| 9 | zero-cap component input comes from actual event maximality. Only numerical |
| 10 | parameter profiles, never geometric slices, are read beyond the old domain. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.RepairedGlobalControlledPrefix |
| 18 | |
| 19 | variable {K : MetricSurgeryConstants} {S : GlobalSurgerySchedule K} |
| 20 | {delta : ℝ → ℝ} {F : SurgeryFlowData.{u}} {H : ℝ} |
| 21 | (P : RepairedGlobalControlledPrefix S delta F H) |
| 22 | |
| 23 | include P |
| 24 | |
| 25 | /-- The excluded endpoint is allowed as an observation horizon. -/ |
| 26 | def observation : SurgeryObservation F where |
| 27 | H := H |
| 28 | H_pos := P.horizon_pos |
| 29 | interval_subset := by rw [P.time_domain_eq] |
| 30 | standard_flow := P.standard_initial_eq ▸ S.setup.standard_flow |
| 31 | |
| 32 | /-- The actual flow supplies the event predicates required by M49. -/ |
| 33 | theorem volumeControls (H13 : GeneralizedParabolicRescalingTheory.{u} 3) : |
| 34 | RepairedVolumeLossControls F := |
| 35 | ⟨P.admissible, P.pinched, F.nonemptyEventPreInterval, |
| 36 | F.vanishingEventPreInterval, F.zeroCapDiscard H13⟩ |
| 37 | |
| 38 | theorem observedVolumeControls (H13 : GeneralizedParabolicRescalingTheory.{u} 3) : |
| 39 | RepairedObservedVolumeControls F P.observation where |
| 40 | pinched := fun t ht => P.pinched t (P.observation.interval_subset ht) |
| 41 | strong_boundaries := fun T hT _ => P.admissible.strong_boundaries T hT |
| 42 | strong_disappearing := fun T hT _ => P.admissible.strong_disappearing T hT |
| 43 | strong_vanishing := fun T hT _ => P.admissible.strong_vanishing T hT |
| 44 | nonempty_pre_interval := F.nonemptyEventPreInterval |
| 45 | vanishing_pre_interval := F.vanishingEventPreInterval |
| 46 | zero_cap_discard := F.zeroCapDiscard H13 |
| 47 | |
| 48 | /-- One bound for the global seed bounds every event's actual delta. -/ |
| 49 | theorem event_delta_le (d : ℝ) (hd : S.Delta 0 ≤ d) |
| 50 | (hdelta : ∀ j t, t ∈ surgeryEpochEntry j → 0 ≤ t → delta t ≤ S.Delta j) |
| 51 | {t : ℝ} (ht : t ∈ F.surgery_times) : F.parameters.delta t ≤ d := by |
| 52 | have ht0 := F.time_domain_nonnegative (F.surgery_times_subset ht) |
| 53 | obtain ⟨j, hj⟩ := exists_surgeryEpochEntry ht0 |
| 54 | rw [P.delta_eq t ht0] |
| 55 | exact (hdelta j t hj ht0).trans ((S.Delta_antitone (Nat.zero_le j)).trans hd) |
| 56 | |
| 57 | /-- The prescribed future profiles identify the common horizon height; |
| 58 | raw parameter monotonicity then bounds every earlier actual height. -/ |
| 59 | theorem height_lower_bound {B : ℝ} {k : ℕ} (hB : 0 ≤ B) |
| 60 | (hk : B ∈ surgeryEpochEntry k) {t : ℝ} (ht : 0 ≤ t) (htB : t ≤ B) : |
| 61 | S.setup.selector.h (delta B * S.r k) (delta B) ≤ F.parameters.h t := by |
| 62 | have hprofile := P.schedule_agreement k B hk hB |
| 63 | have heq : F.parameters.h B = S.setup.selector.h (delta B * S.r k) (delta B) := by |
| 64 | rw [hprofile.2.2, hprofile.1] |
| 65 | rw [← heq] |
| 66 | exact F.parameters.h_antitone ht hB htB |
| 67 | |
| 68 | end PoincareMT.RepairedGlobalControlledPrefix |