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.CanonicalInduction.Seed.Cap.SeedCapBirthDensity |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Cylinder.TrackedBall |
| 3 | |
| 4 | /-! |
| 5 | # Birth density from both actual cap persistence alternatives |
| 6 | |
| 7 | The positive comparison duration includes birth in either branch. |
| 8 | Source: MT Proposition 16.5, p. 370; seed-cap-birth-density.md, Stage E3. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff ENNReal |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.Proofs.M47 |
| 20 | |
| 21 | /-- Actual persistence supplies the entire birth comparison needed for |
| 22 | one density chosen before the physical flow, height and tested ball. -/ |
| 23 | theorem exists_seed_cap_persistence_density (g0 : StandardInitialMetric) |
| 24 | {Rtip Rmax : ℝ} (htip : 0 < Rtip) (hmax : 0 < Rmax) : |
| 25 | ∃ k : ℝ, 0 < k ∧ |
| 26 | ∀ (F : SurgeryFlowData.{u}), F.standard_initial = g0 → |
| 27 | ∀ (O : SurgeryObservation F) (t : ℝ) (hT : t ∈ F.surgery_times) |
| 28 | (_hn : Nonempty (F.slice t).carrier) (i : Fin (F.event t hT).cap_count) |
| 29 | (A eta theta : ℝ), |
| 30 | 2 * Rtip + Rmax ≤ A → 0 < eta → eta ≤ 1 / 2 → |
| 31 | 0 < theta → t < O.H → |
| 32 | SurgeryCapPersistenceAlternative F O t hT i A eta theta → |
| 33 | ∀ z ∈ (F.metric t).ball ((F.event t hT).caps i).tip (Rtip * F.parameters.h t), |
| 34 | ∀ r : ℝ, 0 < r → r ≤ Rmax * F.parameters.h t → |
| 35 | ENNReal.ofReal (k * r ^ 3) ≤ |
| 36 | calibratedMetricVolume (F.metric t) ((F.metric t).ball z r) := by |
| 37 | obtain ⟨k, hk, hbirth⟩ := exists_seed_cap_birth_density g0 htip hmax |
| 38 | refine ⟨k, hk, ?_⟩ |
| 39 | intro F hinitial O t hT hn i A eta theta hA heta hetaHalf htheta htH hpersist |
| 40 | have hh : 0 < F.parameters.h t := |
| 41 | F.parameters.h_pos t (F.time_domain_nonnegative (F.surgery_times_subset hT)) |
| 42 | rcases hpersist with ⟨e, initial, comparison, hidentity⟩ | |
| 43 | ⟨tPlus, htPlus, _, _, e, initial, comparison, hidentity, _⟩ |
| 44 | · have hzero : (0 : ℝ) ∈ Ico 0 (surgeryCapDuration t O.H (F.parameters.h t) theta) := |
| 45 | ⟨le_rfl, surgeryCapDuration_pos htH hh htheta⟩ |
| 46 | exact hbirth F hinitial O.standard_flow t hT hn i A eta hA heta hetaHalf _ e |
| 47 | initial comparison hzero (hidentity hzero) |
| 48 | · have hzero : (0 : ℝ) ∈ Ico 0 ((tPlus - t) / (F.parameters.h t) ^ 2) := |
| 49 | ⟨le_rfl, div_pos (sub_pos.mpr htPlus) (sq_pos_of_pos hh)⟩ |
| 50 | exact hbirth F hinitial O.standard_flow t hT hn i A eta hA heta hetaHalf _ e |
| 51 | initial comparison hzero (hidentity hzero) |
| 52 | |
| 53 | end PoincareMT.Proofs.M47 |