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.Flow.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Open.OpenVolume |
| 3 | |
| 4 | /-! |
| 5 | # Components removed by a zero-cap event |
| 6 | |
| 7 | Once maximality has shown that the retained pre-region is proper, the |
| 8 | zero-cap boundary formula makes that region clopen. Its complement contains |
| 9 | an entire component of positive volume for the actual pre-flow metric. |
| 10 | This is the component-count alternative in Morgan--Tian Lemma 17.12, |
| 11 | printed pp. 410-411; properness remains a separate analytic obligation. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Topology ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.SurgeryEventData |
| 21 | |
| 22 | variable {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} |
| 23 | {P : SurgeryParameters} {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 24 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {T : ℝ} |
| 25 | |
| 26 | /-- With no inserted caps the retained region has no boundary. -/ |
| 27 | theorem retainedPre_isClopen_of_zero_caps |
| 28 | (E : SurgeryEventData g₀ K P slice metric T) (hzero : E.cap_count = 0) : |
| 29 | IsClopen E.retained_pre := by |
| 30 | apply isClopen_iff_frontier_eq_empty.mpr |
| 31 | rw [E.pre_boundary] |
| 32 | apply Set.eq_empty_iff_forall_notMem.mpr |
| 33 | intro x hx |
| 34 | obtain ⟨i, _⟩ := Set.mem_iUnion.mp hx |
| 35 | exact Nat.not_lt_zero i.val (hzero ▸ i.isLt) |
| 36 | |
| 37 | /-- A proper zero-cap retained region omits a whole positive-volume component. -/ |
| 38 | theorem discardedComponent_of_zero_caps |
| 39 | (E : SurgeryEventData g₀ K P slice metric T) |
| 40 | (hzero : E.cap_count = 0) (hproper : E.retained_pre ≠ Set.univ) : |
| 41 | ∃ x : (slice E.tMinus).carrier, |
| 42 | connectedComponent x ⊆ E.retained_preᶜ ∧ |
| 43 | 0 < calibratedMetricVolume (E.pre_flow.metric E.tMinus) (connectedComponent x) := by |
| 44 | obtain ⟨x, hx⟩ := Set.nonempty_compl.mpr hproper |
| 45 | exact ⟨x, (E.retainedPre_isClopen_of_zero_caps hzero).compl.connectedComponent_subset hx, |
| 46 | M51.calibratedMetricVolume_component_pos _ x⟩ |
| 47 | |
| 48 | end PoincareMT.SurgeryEventData |