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.Schedules.Prefix.Initial |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Volume.LossTheory |
| 3 | |
| 4 | /-! |
| 5 | # M51 volume cutoff before the induction seeds |
| 6 | |
| 7 | Choose M49's cutoff first, then use the checked M45 cutoff restriction. |
| 8 | The new calibration has its own compatible initial prefix; no old prefix |
| 9 | is silently treated as compatible with a changed seed. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | /-- Calibrate selected raw-flow losses before the finite-prefix induction. |
| 21 | Sources: Definition 15.7's downward cutoff freedom and Lemma 17.12, |
| 22 | Morgan--Tian, pp. 360--361 and 410--411. The selected cutoff and both M49 |
| 23 | applications (selected losses and the uniform observed count) are retained |
| 24 | together; M46/M47 must use the new seeds. -/ |
| 25 | theorem m51VolumeCalibration_from_M49 |
| 26 | (B : RepairedControlledSchedulesData.{u}) (V49 : RepairedVolumeLossTheory.{u}) : |
| 27 | ∃ deltaUpper : ℝ, ∃ hpos : 0 < deltaUpper, |
| 28 | deltaUpper ≤ B.constants.delta₀ ∧ |
| 29 | (B.restrictDelta deltaUpper hpos).Delta0 ≤ deltaUpper ∧ |
| 30 | (∀ (F : SurgeryFlowData.{u}) (C : RepairedVolumeLossControls F), |
| 31 | F.standard_initial = (B.restrictDelta deltaUpper hpos).standard_initial → |
| 32 | F.local_constants = (B.restrictDelta deltaUpper hpos).constants → |
| 33 | (∀ T ∈ F.surgery_times, F.parameters.delta T ≤ deltaUpper) → |
| 34 | Nonempty (RepairedVolumeLossData F C)) ∧ |
| 35 | (∀ (Btime : ℝ) (V₀ : ℝ≥0∞) (hMin : ℝ), |
| 36 | 0 < Btime → V₀ ≠ (⊤ : ℝ≥0∞) → 0 < hMin → |
| 37 | ∃ n : ℕ, ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 38 | F.standard_initial = B.standard_initial → |
| 39 | F.local_constants = B.constants → |
| 40 | O.H ≤ Btime → |
| 41 | RepairedObservedVolumeControls F O → |
| 42 | calibratedMetricVolume (F.metric 0) Set.univ ≤ V₀ → |
| 43 | (∀ T ∈ F.surgery_times ∩ surgeryObservationInterval O, |
| 44 | F.parameters.delta T ≤ deltaUpper ∧ hMin ≤ F.parameters.h T) → |
| 45 | ∀ S : Finset ℝ, |
| 46 | (↑S : Set ℝ) ⊆ F.surgery_times ∩ surgeryObservationInterval O → |
| 47 | S.card ≤ n) := by |
| 48 | obtain ⟨deltaUpper, hpos, hle, losses, count⟩ := |
| 49 | V49.calibrated B.standard_initial B.constants |
| 50 | refine ⟨deltaUpper, hpos, hle, min_le_right _ _, ?_, ?_⟩ |
| 51 | · intro F C hg₀ hK hdelta |
| 52 | exact losses F C hg₀ hK hdelta |
| 53 | · intro Btime V₀ hMin hBtime hV₀ hhMin |
| 54 | obtain ⟨n, hn⟩ := count Btime V₀ hMin hBtime hV₀ hhMin |
| 55 | refine ⟨n, ?_⟩ |
| 56 | intro F' O hg₀' hK' hH controls hvolume hscales |
| 57 | exact hn F' O hg₀' hK' hH controls hvolume hscales |
| 58 | |
| 59 | end PoincareMT |