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.Volume.LossTheory |
| 2 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.FiniteCardBound |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Proofs/M50/ObservedFiniteness.lean` at |
| 6 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 7 | |
| 8 | # Finiteness from the observed surgery count |
| 9 | |
| 10 | This logical consequence applies M49's calibrated raw-flow count. It neither |
| 11 | constructs an extension nor requires equality to a selected M36 operation. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | private theorem finite_of_finset_card_bound (s : Set ℝ) (n : ℕ) |
| 23 | (bound : ∀ A : Finset ℝ, (↑A : Set ℝ) ⊆ s → A.card ≤ n) : |
| 24 | s.Finite := |
| 25 | Set.finite_of_forall_finset_card_le s n bound |
| 26 | |
| 27 | /-- Apply M49's Lemma 17.12 count (Morgan--Tian, pp. 410--411) at its |
| 28 | selected cutoff. The same integer is chosen before every raw flow and |
| 29 | observation, retaining all initial-volume, horizon, height, and observed |
| 30 | geometric guards. An infinite observed surgery set would contain a finite |
| 31 | subset of cardinality `n + 1`, contradicting that count. This is a logical |
| 32 | corollary; continuation and global assembly remain separate obligations. -/ |
| 33 | theorem m50ObservedFiniteness_from_M49 |
| 34 | (V49 : RepairedVolumeLossTheory.{u}) |
| 35 | (g₀ : StandardInitialMetric) (K : MetricSurgeryConstants) : |
| 36 | ∃ deltaUpper : ℝ, 0 < deltaUpper ∧ deltaUpper ≤ K.delta₀ ∧ |
| 37 | ∀ (B : ℝ) (V₀ : ℝ≥0∞) (hMin : ℝ), |
| 38 | 0 < B → V₀ ≠ (⊤ : ℝ≥0∞) → 0 < hMin → |
| 39 | ∃ n : ℕ, ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 40 | F.standard_initial = g₀ → F.local_constants = K → O.H ≤ B → |
| 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 | (F.surgery_times ∩ surgeryObservationInterval O).Finite ∧ |
| 46 | ∀ A : Finset ℝ, |
| 47 | (↑A : Set ℝ) ⊆ F.surgery_times ∩ surgeryObservationInterval O → |
| 48 | A.card ≤ n := by |
| 49 | obtain ⟨deltaUpper, hdelta, hcutoff, _eventLoss, count⟩ := V49.calibrated g₀ K |
| 50 | refine ⟨deltaUpper, hdelta, hcutoff, ?_⟩ |
| 51 | intro B V₀ hMin hB hV₀ hhMin |
| 52 | obtain ⟨n, hn⟩ := count B V₀ hMin hB hV₀ hhMin |
| 53 | refine ⟨n, ?_⟩ |
| 54 | intro F O hg₀ hK hH controls hvolume hscales |
| 55 | have hcount := hn F O hg₀ hK hH controls hvolume hscales |
| 56 | exact ⟨finite_of_finset_card_bound _ n hcount, hcount⟩ |
| 57 | |
| 58 | end PoincareMT |