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.Noncollapse.StableSet.Seed.SeedImage |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.SeedScales |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.Transport.SurgeryCylinderRestriction |
| 4 | import PoincareLib.Geometry.RicciFlow.MetricComparison.LocalCurvature |
| 5 | |
| 6 | /-! |
| 7 | # The old prefix supplies the actual comparison-image volume |
| 8 | |
| 9 | Morgan--Tian Claim 16.27, p. 393. Restrict the longer controlled |
| 10 | cylinder to the old source ball to invoke old noncollapse. The fixed |
| 11 | interior image retains one eighth of that volume and a compact regular |
| 12 | buffer, with every numerical scale chosen from the old prefix. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M04 |
| 24 | export PoincareMT.RicciFlowAnalysis (initial_half_ball_closure_subset_initial_ball) |
| 25 | end PoincareMT.M04 |
| 26 | namespace PoincareMT.M04 |
| 27 | export PoincareMT.RicciFlowAnalysis (initial_ball_isOpen) |
| 28 | end PoincareMT.M04 |
| 29 | |
| 30 | namespace PoincareMT.Proofs.M46 |
| 31 | |
| 32 | /-- The uniform source volume is a conclusion of the actual old-prefix |
| 33 | test and the controlled cylinder, with no earlier-ball assumption. -/ |
| 34 | theorem old_seed_image_volume |
| 35 | (P : M44CapPersistencePredecessors.{u}) {K : MetricSurgeryConstants} |
| 36 | (p : SurgeryParameterPrefix K) {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 37 | (old : SurgeryPrefixControls p F O) (hpinch : SurgeryFlowPinched F) |
| 38 | {t B : ℝ} (ht : t ∈ surgeryObservationInterval O ∩ surgeryEpochEntry p.i) |
| 39 | (x : (F.slice t).carrier) (hpositive : ¬ SurgeryPositiveComponentAt F t x) |
| 40 | (hB : 1 ≤ B) |
| 41 | (e : SurgeryFlowCylinder F (F.slice t) t 1 |
| 42 | (Icc (-seedCylinderDuration B (p.r (Fin.last p.i))) 0) |
| 43 | ((F.metric t).ball x (p.r (Fin.last p.i) / (8 * B)))) |
| 44 | (hbase : ∀ h y, y ∈ (F.metric t).ball x (p.r (Fin.last p.i) / (8 * B)) → |
| 45 | HEq (e.forward 0 h y) y) |
| 46 | (hRm : ∀ s hs y, y ∈ (F.metric t).ball x (p.r (Fin.last p.i) / (8 * B)) → |
| 47 | (F.connection (t + s / 1)).curvatureTensorNorm (e.forward s hs y) ≤ |
| 48 | 52 * (p.r (Fin.last p.i))⁻¹ ^ 2) : |
| 49 | ∃ hs : -seedImageDelay B (p.r (Fin.last p.i)) ∈ |
| 50 | Icc (-seedCylinderDuration B (p.r (Fin.last p.i))) 0, |
| 51 | let A := e.forward (-seedImageDelay B (p.r (Fin.last p.i))) hs '' |
| 52 | (F.metric t).ball x (seedImageRadius B (p.r (Fin.last p.i))) |
| 53 | IsOpen A ∧ IsCompact (closure A) ∧ |
| 54 | closure A ⊆ m33RegularRegion F (t + -seedImageDelay B (p.r (Fin.last p.i)) / 1) ∧ |
| 55 | ENNReal.ofReal (p.kappa (Fin.last p.i) * |
| 56 | seedImageRadius B (p.r (Fin.last p.i)) ^ 3 / 8) ≤ |
| 57 | calibratedMetricVolume |
| 58 | (F.metric (t + -seedImageDelay B (p.r (Fin.last p.i)) / 1)) A := by |
| 59 | let r := p.r (Fin.last p.i) |
| 60 | let rho := seedImageRadius B r |
| 61 | have hr : 0 < r := p.r_pos _ |
| 62 | have hrho : 0 < rho := seedImageRadius_pos hB hr |
| 63 | have hrhole : rho ≤ F.parameters.epsilon := by |
| 64 | rw [old.epsilon_eq] |
| 65 | exact (seedImageRadius_le hB hr).trans (p.r_le_epsilon _) |
| 66 | have hbuffer : closure ((F.metric t).ball x rho) ⊆ (F.metric t).ball x (r / (8 * B)) := by |
| 67 | have hhalf := M04.initial_half_ball_closure_subset_initial_ball (F.metric t) x |
| 68 | (by positivity : 0 < 2 * rho) |
| 69 | rw [show 2 * rho / 2 = rho by ring] at hhalf |
| 70 | intro y hy |
| 71 | exact (hhalf hy).trans_le |
| 72 | (ENNReal.ofReal_le_ofReal (twice_seedImageRadius_lt_ball_radius hB hr).le) |
| 73 | have hsource := subset_closure.trans hbuffer |
| 74 | have hJ : Icc (-rho ^ 2) 0 ⊆ Icc (-seedCylinderDuration B r) 0 := |
| 75 | Icc_subset_Icc_left (neg_le_neg (seedImageRadius_sq_le_duration hB hr)) |
| 76 | let test := e.restrict hJ ordConnected_Icc hsource |
| 77 | have hvolume : ENNReal.ofReal (p.kappa (Fin.last p.i) * rho ^ 3) ≤ |
| 78 | calibratedMetricVolume (F.metric t) ((F.metric t).ball x rho) := by |
| 79 | apply old.noncollapsed (Fin.last p.i) (by simp) t ht (O.interval_subset ht.1) |
| 80 | x hpositive rho hrho hrhole test |
| 81 | · intro h y hy |
| 82 | exact hbase _ y (hsource hy) |
| 83 | · intro s hs y hy |
| 84 | exact (hRm s (hJ hs) y (hsource hy)).trans (seedImageRadius_curvature_bound hB hr) |
| 85 | have hseed : -seedImageDelay B r ∈ Ioc (-seedCylinderDuration B r) 0 := |
| 86 | ⟨neg_lt_neg (seedImageDelay_lt_duration hB hr), |
| 87 | neg_nonpos.mpr (seedImageDelay_pos hB hr).le⟩ |
| 88 | refine ⟨Ioc_subset_Icc_self hseed, ?_⟩ |
| 89 | apply controlled_cylinder_seed_image P hpinch e (M04.initial_ball_isOpen _ _ _) hbase |
| 90 | hseed _ hRm (M04.initial_ball_isOpen _ _ _) |
| 91 | ((F.slices_compact t (O.interval_subset ht.1)).of_isClosed_subset isClosed_closure |
| 92 | (subset_univ _)) hbuffer hvolume |
| 93 | simpa only [neg_neg] using seedImageDelay_metric_short hB hr |
| 94 | |
| 95 | end PoincareMT.Proofs.M46 |