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.EpochExtension.History.Transport.GuardedCylinders |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Removal.Continuation.RemovalRestriction |
| 3 | |
| 4 | /-! |
| 5 | # Lifting the regular part of an actual cap birth |
| 6 | |
| 7 | Proposition 16.13 and Lemma 16.15, pp. 377-381. Restricting the physical |
| 8 | cap source to its regular birth points supplies the missing initial |
| 9 | regularity guard. Every later included point is regular by the actual |
| 10 | retention condition and the earlier included birth time. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | -- Physical birth identities are equalities in dependent slice fibers. |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.Proofs.M46 |
| 23 | |
| 24 | /-- The actual cap cylinder restricted to regular birth points lifts |
| 25 | to the selected regular history, retaining its physical transport and |
| 26 | metric. Source: Proposition 14.12 and Lemma 16.15, pp. 350 and 379-381. -/ |
| 27 | theorem exists_capCylinder_regular_birth_lift |
| 28 | {F : SurgeryFlowData.{u}} {W : M33RegularHistoryWindow F} |
| 29 | (H : M33RegularHistoryData W) {origin scale : ℝ} {I : Set ℝ} |
| 30 | {U : Set (F.slice origin).carrier} (hU : IsOpen U) |
| 31 | (e : SurgeryFlowCylinder F (F.slice origin) origin scale I U) |
| 32 | (hzero : (0 : ℝ) ∈ I) (hnonneg : ∀ s ∈ I, 0 ≤ s) |
| 33 | (hbase : ∀ h x, x ∈ U → HEq (e.forward 0 h x) x) |
| 34 | (htime : ∀ s ∈ I, origin + s / scale ∈ H.generalized.interval) : |
| 35 | ∃ d : GeneralizedFlowCylinder H.generalized (F.slice origin) origin scale I |
| 36 | (U ∩ m33RegularRegion F origin), |
| 37 | (∀ s hs x, x ∈ U ∩ m33RegularRegion F origin → |
| 38 | H.history.forward (origin + s / scale) (htime s hs) |
| 39 | (d.forward s hs x) = e.forward s hs x) ∧ |
| 40 | (∀ s hs x, x ∈ U ∩ m33RegularRegion F origin → |
| 41 | ∀ v w : TangentSpace (𝓡 3) x, |
| 42 | d.pullbackInner s hs x v w = e.pullbackInner s hs x v w) := by |
| 43 | have horigin : origin ∈ H.generalized.interval := by simpa using htime 0 hzero |
| 44 | have hopen : IsOpen (m33RegularRegion F origin) := by |
| 45 | rw [← H.regular_range origin horigin] |
| 46 | exact (H.history.forward_openEmbedding origin horigin).isOpen_range |
| 47 | let small := M44.restrictCylinderSource e |
| 48 | (inter_subset_left : U ∩ m33RegularRegion F origin ⊆ U) |
| 49 | have hregular : ∀ s hs, |
| 50 | small.forward s hs '' (U ∩ m33RegularRegion F origin) ⊆ |
| 51 | m33RegularRegion F (origin + s / scale) := by |
| 52 | intro s hs |
| 53 | by_cases hz : s = 0 |
| 54 | · subst s |
| 55 | rintro y ⟨x, ⟨hxU, hxreg⟩, rfl⟩ |
| 56 | have heq : (⟨origin + 0 / scale, small.forward 0 hs x⟩ : Σ t, (F.slice t).carrier) = |
| 57 | ⟨origin, x⟩ := Sigma.ext (by simp) (hbase hs x hxU) |
| 58 | exact (congrArg (fun p : Σ t, (F.slice t).carrier => |
| 59 | p.2 ∈ m33RegularRegion F p.1) heq).mpr hxreg |
| 60 | · apply small.regular_image_of_earlier hs |
| 61 | exact ⟨0, hzero, lt_of_le_of_ne (hnonneg s hs) (Ne.symm hz)⟩ |
| 62 | exact H.cylinders_from_surgery (F.slice origin) origin scale I |
| 63 | (U ∩ m33RegularRegion F origin) (hU.inter hopen) htime small hregular |
| 64 | |
| 65 | end PoincareMT.Proofs.M46 |