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.Noncollapse.Compat.ParabolicRescaling |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.ParabolicRescaling |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Homothety |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.PrefixVolume |
| 5 | |
| 6 | /-! |
| 7 | # The actual seed image in the selected realized history |
| 8 | |
| 9 | Morgan--Tian Claim 16.27 and its use in Theorem 8.1, pp. 393-394. |
| 10 | The open history embedding and actual slice identification transfer |
| 11 | an open seed with compact regular closure to the same realized slice. |
| 12 | The selected volume calibration is preserved exactly. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Topology ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M13 |
| 24 | export PoincareMT.EpochExtension.SliceGeometry (originalSlice_volume) |
| 25 | end PoincareMT.M13 |
| 26 | |
| 27 | namespace PoincareMT.Proofs.M46 |
| 28 | |
| 29 | /-- A physical seed with compact regular closure gives the actual |
| 30 | realized comparison neighborhood, preserving image, closure and volume. -/ |
| 31 | theorem realized_seed_of_regular_image (P : M46Predecessors.{u}) |
| 32 | {F : SurgeryFlowData.{u}} {window : M33RegularHistoryWindow F} |
| 33 | (R : M46RegularSpacetimeData window) {t : ℝ} |
| 34 | (ht : t ∈ R.history.generalized.interval) |
| 35 | {A : Set (F.slice t).carrier} (hA : IsOpen A) (hcompact : IsCompact (closure A)) |
| 36 | (hregular : closure A ⊆ m33RegularRegion F t) : |
| 37 | ∃ B : Set (R.geometry.toLGeometry.slices t).Point, |
| 38 | IsOpen B ∧ IsCompact (closure B) ∧ |
| 39 | (R.history.history.forward t ht ∘ (R.geometry.sliceIdentification t).identification.symm) |
| 40 | '' B = A ∧ |
| 41 | (R.history.history.forward t ht ∘ (R.geometry.sliceIdentification t).identification.symm) |
| 42 | '' closure B = closure A ∧ |
| 43 | calibratedMetricVolume (R.geometry.toLGeometry.slices t).metricOnPoints B = |
| 44 | calibratedMetricVolume (F.metric t) A := by |
| 45 | let identify := (R.geometry.sliceIdentification t).identification |
| 46 | let f := R.history.history.forward t ht ∘ identify.symm |
| 47 | have hf : Topology.IsOpenEmbedding f := |
| 48 | (R.history.history.forward_openEmbedding t ht).comp identify.symm.toHomeomorph.isOpenEmbedding |
| 49 | have hrange : range f = m33RegularRegion F t := by |
| 50 | rw [← R.history.regular_range t ht] |
| 51 | ext y |
| 52 | constructor |
| 53 | · rintro ⟨q, rfl⟩ |
| 54 | exact ⟨identify.symm q, rfl⟩ |
| 55 | · rintro ⟨z, rfl⟩ |
| 56 | exact ⟨identify z, by simp only [f, Function.comp_apply, Diffeomorph.symm_apply_apply]⟩ |
| 57 | have hclrange : closure A ⊆ range f := hrange ▸ hregular |
| 58 | let B := f ⁻¹' A |
| 59 | have himage : f '' B = A := image_preimage_eq_of_subset (subset_closure.trans hclrange) |
| 60 | have hclosure : closure B = f ⁻¹' closure A := by |
| 61 | rw [hf.isEmbedding.closure_eq_preimage_closure_image, himage] |
| 62 | have hBcompact : IsCompact (closure B) := by |
| 63 | rw [hclosure] |
| 64 | exact hf.isEmbedding.isInducing.isCompact_preimage' hcompact hclrange |
| 65 | refine ⟨B, hA.preimage hf.continuous, hBcompact, himage, ?_, ?_⟩ |
| 66 | · rw [hclosure] |
| 67 | exact image_preimage_eq_of_subset hclrange |
| 68 | · have hidentify : identify '' (identify.symm '' B) = B := by |
| 69 | ext q |
| 70 | constructor |
| 71 | · rintro ⟨_, ⟨z, hz, rfl⟩, rfl⟩ |
| 72 | simpa only [Diffeomorph.apply_symm_apply] using hz |
| 73 | · intro hq |
| 74 | exact ⟨identify.symm q, mem_image_of_mem _ hq, identify.apply_symm_apply q⟩ |
| 75 | have hphysical : R.history.history.forward t ht '' (identify.symm '' B) = A := by |
| 76 | rw [← image_comp] |
| 77 | exact himage |
| 78 | change calibratedMetricVolume (R.geometry.realization.slices t).metricOnPoints B = _ |
| 79 | rw [← hidentify, M13.originalSlice_volume R.geometry P.m13 t, |
| 80 | ← R.history.volume_image t ht, hphysical] |
| 81 | |
| 82 | end PoincareMT.Proofs.M46 |