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.GlobalSchedule.Empty.EmptyExtension |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Extension.ExtensionNoncollapse |
| 3 | |
| 4 | /-! |
| 5 | # Geometric controls on the permanent empty extension |
| 6 | |
| 7 | Morgan--Tian Section 17.2, p. 409. The original controls apply at every |
| 8 | nonempty slice, whose physical time precedes the empty cutoff. Later slices |
| 9 | have no spatial points. The supplied scale-one M13 calculus transports the |
| 10 | actual old canonical neighborhoods and tested noncollapse cylinders. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M51Empty |
| 21 | |
| 22 | variable (F : SurgeryFlowData.{u}) {a : ℝ} (ha : a ∈ F.time_domain) |
| 23 | [IsEmpty (F.slice a).carrier] |
| 24 | |
| 25 | /-- The absolute-time pinching inequalities retain their original clock. -/ |
| 26 | theorem pinched (h : SurgeryFlowPinched F) : SurgeryFlowPinched (flow F ha) := by |
| 27 | intro t ht |
| 28 | by_cases hta : t ≤ a |
| 29 | · have htold : t ∈ F.time_domain := |
| 30 | F.time_domain_interval.out F.zero_mem ha ⟨ht, hta⟩ |
| 31 | change SurgeryPinchedAt (F.connection (min t a)) t |
| 32 | rw [min_eq_left hta] |
| 33 | exact h t htold |
| 34 | · let : IsEmpty ((flow F ha).slice t).carrier := |
| 35 | flow_empty_after F ha (lt_of_not_ge hta).le |
| 36 | refine ⟨ht, ?_, ?_⟩ |
| 37 | · intro x |
| 38 | exact isEmptyElim x |
| 39 | · intro x |
| 40 | exact isEmptyElim x |
| 41 | |
| 42 | /-- Every actual point uses the old canonical control with the same r, |
| 43 | epsilon and C. The singleton window does not alter the parameter profiles. -/ |
| 44 | theorem canonical (m13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 45 | (h : SurgeryCanonicalAssumption F) : SurgeryCanonicalAssumption (flow F ha) := by |
| 46 | intro t ht x |
| 47 | let : Nonempty (slice F a t).carrier := ⟨x⟩ |
| 48 | have hta : t < a := time_lt_of_nonempty F a |
| 49 | have htold : t ∈ F.time_domain := |
| 50 | F.time_domain_interval.out F.zero_mem ha ⟨ht, hta.le⟩ |
| 51 | have hJ : ({t} : Set ℝ) ⊆ F.time_domain := by |
| 52 | intro s hs |
| 53 | have hs' : s = t := mem_singleton_iff.mp hs |
| 54 | subst s |
| 55 | exact htold |
| 56 | have hold : SurgeryCanonicalOn F {t} (F.parameters.r t) := by |
| 57 | intro s hs hsold |
| 58 | have hs' : s = t := mem_singleton_iff.mp hs |
| 59 | subst s |
| 60 | exact h t hsold |
| 61 | exact (extension F ha).canonical_on m13 hJ hold t (mem_singleton t) ht x |
| 62 | |
| 63 | /-- Pull each tested cylinder back to the old flow, preserving its radius, |
| 64 | kappa, terminal ball and positive-component exception. -/ |
| 65 | theorem noncollapsed (m13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 66 | (h : SurgeryNoncollapsed F) : SurgeryNoncollapsed (flow F ha) := by |
| 67 | intro t ht x |
| 68 | let : Nonempty (slice F a t).carrier := ⟨x⟩ |
| 69 | have hta : t < a := time_lt_of_nonempty F a |
| 70 | have htold : t ∈ F.time_domain := |
| 71 | F.time_domain_interval.out F.zero_mem ha ⟨ht, hta.le⟩ |
| 72 | have hJ : ({t} : Set ℝ) ⊆ F.time_domain := by |
| 73 | intro s hs |
| 74 | have hs' : s = t := mem_singleton_iff.mp hs |
| 75 | subst s |
| 76 | exact htold |
| 77 | have hold : SurgeryNoncollapsedOn F {t} (F.parameters.kappa t) := by |
| 78 | intro s hs hsold |
| 79 | have hs' : s = t := mem_singleton_iff.mp hs |
| 80 | subst s |
| 81 | exact h t hsold |
| 82 | exact (extension F ha).noncollapsed_on m13 hJ hold t (mem_singleton t) ht x |
| 83 | |
| 84 | end PoincareMT.M51Empty |