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.StandardCap.Persistence.Limit.Retained.RetainedChart |
| 2 | |
| 3 | /-! |
| 4 | # Low scalar points lie in the retained interior |
| 5 | |
| 6 | Morgan--Tian Lemma 11.2 and Proposition 16.5, used on p. 393. |
| 7 | The finitely many inserted caps are closed and cover the complement |
| 8 | of the continuing region. Their strict scalar lower bound therefore |
| 9 | places every low-scalar point in the interior of that region, with |
| 10 | the actual smooth inverse retention map available there. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.Proofs.M46 |
| 21 | |
| 22 | /-- A scalar ceiling strictly below the birth-cap floor guarantees |
| 23 | actual interior retention at an included surgery, p. 393. -/ |
| 24 | theorem low_scalar_subset_retained_interior |
| 25 | (F : SurgeryFlowData.{u}) {t L : ℝ} (hT : t ∈ F.surgery_times) |
| 26 | [Nonempty (F.slice t).carrier] |
| 27 | (hcap : ∀ i : Fin (F.event t hT).cap_count, |
| 28 | ∀ y ∈ ((F.event t hT).caps i).carrier, |
| 29 | L < (F.connection t).scalarCurvature y) : |
| 30 | {y | (F.connection t).scalarCurvature y ≤ L} ⊆ |
| 31 | interior (F.event t hT).retained_post := by |
| 32 | let event := F.event t hT |
| 33 | let U : Set (F.slice t).carrier := (⋃ i, (event.caps i).carrier)ᶜ |
| 34 | have hU : IsOpen U := |
| 35 | (isClosed_iUnion_of_finite (fun i => (event.caps i).carrier_compact.isClosed)).isOpen_compl |
| 36 | have hret : U ⊆ event.retained_post := by |
| 37 | intro y hy |
| 38 | have hcover : y ∈ event.retained_post ∪ ⋃ i, (event.caps i).carrier := by |
| 39 | rw [event.post_cover] |
| 40 | exact mem_univ _ |
| 41 | exact hcover.resolve_right hy |
| 42 | intro y hy |
| 43 | apply interior_maximal hret hU |
| 44 | intro hmem |
| 45 | obtain ⟨i, hi⟩ := mem_iUnion.mp hmem |
| 46 | exact not_lt_of_ge hy (hcap i y hi) |
| 47 | |
| 48 | /-- The actual inverse retention sends every low-scalar point into the |
| 49 | pre-surgery retained interior and recovers that same physical point. |
| 50 | Source: Proposition 16.5 in the seed construction, p. 393. -/ |
| 51 | theorem low_scalar_inverse_retained |
| 52 | (F : SurgeryFlowData.{u}) {t L : ℝ} (hT : t ∈ F.surgery_times) |
| 53 | [Nonempty (F.slice t).carrier] |
| 54 | (hcap : ∀ i : Fin (F.event t hT).cap_count, |
| 55 | ∀ y ∈ ((F.event t hT).caps i).carrier, |
| 56 | L < (F.connection t).scalarCurvature y) |
| 57 | {y : (F.slice t).carrier} (hy : (F.connection t).scalarCurvature y ≤ L) : |
| 58 | (F.event t hT).retention.inverse y ∈ interior (F.event t hT).retained_pre ∧ |
| 59 | (F.event t hT).retention.map ((F.event t hT).retention.inverse y) = y := by |
| 60 | have hret := low_scalar_subset_retained_interior F hT hcap hy |
| 61 | let chart := M44.regionEquivalenceInteriorChart (F.event t hT).retention |
| 62 | exact ⟨chart.map_target hret, chart.right_inv hret⟩ |
| 63 | |
| 64 | end PoincareMT.Proofs.M46 |