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.Comparison.Map |
| 2 | |
| 3 | /-! |
| 4 | # The full retained region on the selected parent |
| 5 | |
| 6 | The open region in Morgan--Tian Proposition 15.12 (p. 365) is restricted to |
| 7 | the actual child component. Continuity is used only on the interior of the |
| 8 | displayed retained set, the domain where the retention map is supplied. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- Openness of exactly the full retained set in Proposition 15.12, p. 365. -/ |
| 20 | theorem m57RetainedRegion_isOpen |
| 21 | {g₀ : StandardInitialMetric} (D : RepairedSurgeryFlowData.{u} g₀) |
| 22 | (T : ℝ) (hT : T ∈ D.flow.surgery_times) |
| 23 | [Nonempty (D.flow.slice T).carrier] |
| 24 | (parent : SurgerySelectedComponent (D.flow.slice (D.flow.event T hT).tMinus)) |
| 25 | (child : SurgerySelectedComponent (D.flow.slice T)) : |
| 26 | IsOpen {x | parent.inclusion x ∈ interior (D.flow.event T hT).retained_pre ∧ |
| 27 | (D.flow.event T hT).retention.map (parent.inclusion x) ∈ |
| 28 | Set.range child.inclusion} := by |
| 29 | have hret := (D.flow.event T hT).retention.map_smooth.continuousOn.mono |
| 30 | (interior_subset (s := (D.flow.event T hT).retained_pre)) |
| 31 | exact (hret.isOpen_inter_preimage isOpen_interior |
| 32 | child.inclusion_openEmbedding.isOpen_range).preimage parent.inclusion_smooth.continuous |
| 33 | |
| 34 | end PoincareMT |