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.Blowup.Construction.Generalized.CylinderSpatialHomeomorph |
| 2 | import PoincareLib.Geometry.Riemannian.Homothety.Metric |
| 3 | |
| 4 | /-! |
| 5 | # Actual spatial slices of generalized convergence |
| 6 | |
| 7 | The retained cylinders supply literal smooth spatial maps into the |
| 8 | normalized source metrics. Compact spatial sets and a fixed included time |
| 9 | fit the recorded exhaustion after a finite shift, with no new extraction. |
| 10 | This is the coefficient and volume setup in Morgan--Tian Definition 5.12, |
| 11 | Proposition 5.14 and Theorem 11.8, pp. 90--91 and 272. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M30 |
| 22 | |
| 23 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 24 | FlowCarrier.isManifold |
| 25 | |
| 26 | /-- The original metric on the actual affine-time source slice, multiplied |
| 27 | by the positive blow-up scale (Definition 3.40 and Theorem 11.8, pp. 61, 272). -/ |
| 28 | noncomputable def normalizedBlowupSliceMetric (S : GeneralizedBlowupSequence.{u}) |
| 29 | (k : ℕ) (t : ℝ) : |
| 30 | RiemannianMetric 3 |
| 31 | ((S.flow k).slice ((S.base k).1 + t / S.scale k)).carrier := |
| 32 | M13.scaleSmoothMetric ((S.flow k).metric ((S.base k).1 + t / S.scale k)) |
| 33 | (S.scale k) (S.base_scalar_pos k) |
| 34 | |
| 35 | /-- The stored cylinder maps form the actual spatial partial homeomorphism |
| 36 | at each included source time (Definition 5.12 and Theorem 11.8, pp. 90, 272). -/ |
| 37 | noncomputable def generalizedSliceHomeomorph |
| 38 | {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 39 | (G : GeneralizedBlowupConvergence S J) (k : ℕ) (t : ℝ) |
| 40 | (ht : t ∈ Icc (-G.exhaustion.time k) 0) : |
| 41 | OpenPartialHomeomorph G.limit.carrier.carrier |
| 42 | ((S.flow (G.subsequence k)).slice |
| 43 | ((S.base (G.subsequence k)).1 + t / S.scale (G.subsequence k))).carrier := by |
| 44 | let W : SpacetimeInterval := { |
| 45 | domain := Icc (-G.exhaustion.time k) 0 |
| 46 | ordConnected := ordConnected_Icc |
| 47 | nontrivial := ⟨-G.exhaustion.time k, |
| 48 | ⟨le_rfl, neg_nonpos.mpr (G.exhaustion.time_pos k).le⟩, |
| 49 | 0, ⟨neg_nonpos.mpr (G.exhaustion.time_pos k).le, le_rfl⟩, |
| 50 | (neg_lt_zero.mpr (G.exhaustion.time_pos k)).ne⟩ } |
| 51 | let U : TopologicalSpace.Opens G.limit.sliceCarrier.carrier := |
| 52 | ⟨G.exhaustion.space k, G.exhaustion.space_open k⟩ |
| 53 | exact Cylinder.spatialHomeomorph (J := W) (U := U) (G.embedding k) ⟨t, ht⟩ |
| 54 | |
| 55 | /-- The retained spatial map is smooth at each point of its actual source |
| 56 | (Definition 5.12 and Theorem 11.8, pp. 90, 272). -/ |
| 57 | theorem generalizedSliceHomeomorph_contMDiffAt |
| 58 | {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 59 | (G : GeneralizedBlowupConvergence S J) (k : ℕ) (t : ℝ) |
| 60 | (ht : t ∈ Icc (-G.exhaustion.time k) 0) {x : G.limit.carrier.carrier} |
| 61 | (hx : x ∈ G.exhaustion.space k) : |
| 62 | ContMDiffAt (𝓡 3) (𝓡 3) ∞ (generalizedSliceHomeomorph G k t ht) x := |
| 63 | (G.embedding k).forward_smooth t ht x hx |>.contMDiffAt |
| 64 | ((G.exhaustion.space_open k).mem_nhds hx) |
| 65 | |
| 66 | /-- The actual inverse is smooth on the retained spatial image |
| 67 | (Definition 5.12 and Theorem 11.8, pp. 90, 272). -/ |
| 68 | theorem generalizedSliceHomeomorph_symm_contMDiffAt |
| 69 | {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 70 | (G : GeneralizedBlowupConvergence S J) (k : ℕ) (t : ℝ) |
| 71 | (ht : t ∈ Icc (-G.exhaustion.time k) 0) |
| 72 | {y : ((S.flow (G.subsequence k)).slice |
| 73 | ((S.base (G.subsequence k)).1 + t / S.scale (G.subsequence k))).carrier} |
| 74 | (hy : y ∈ (generalizedSliceHomeomorph G k t ht).target) : |
| 75 | ContMDiffAt (𝓡 3) (𝓡 3) ∞ (generalizedSliceHomeomorph G k t ht).symm y := |
| 76 | ((G.embedding k).inverse_smooth t ht y hy).contMDiffAt |
| 77 | ((generalizedSliceHomeomorph G k t ht).open_target.mem_nhds hy) |
| 78 | |
| 79 | /-- One fixed exhaustion stage contains each compact limit set |
| 80 | (Definition 5.12 and Theorem 11.8, pp. 90, 272). -/ |
| 81 | theorem exists_generalized_exhaustion_stage |
| 82 | {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 83 | (G : GeneralizedBlowupConvergence S J) {K : Set G.limit.carrier.carrier} |
| 84 | (hK : IsCompact K) : ∃ j, K ⊆ G.exhaustion.space j := by |
| 85 | exact hK.elim_directed_cover G.exhaustion.space G.exhaustion.space_open |
| 86 | (by |
| 87 | change K ⊆ (⋃ j, G.exhaustion.space j : Set G.limit.sliceCarrier.carrier) |
| 88 | rw [G.exhaustion.space_covers] |
| 89 | exact subset_univ _) |
| 90 | G.exhaustion.space_increasing.directed_le |
| 91 | |
| 92 | /-- A finite shift places any fixed included time in every source window |
| 93 | (Definition 5.12 and Theorem 11.8, pp. 90, 272). -/ |
| 94 | theorem exists_generalized_time_shift |
| 95 | {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 96 | (G : GeneralizedBlowupConvergence S J) {t : ℝ} (ht : t ∈ J) : |
| 97 | ∃ N : ℕ, ∀ k : ℕ, t ∈ Icc (-G.exhaustion.time (k + N)) 0 := by |
| 98 | obtain ⟨N, hN⟩ := eventually_atTop.mp |
| 99 | (G.exhaustion.time_cofinal {t} isCompact_singleton (singleton_subset_iff.mpr ht)) |
| 100 | exact ⟨N, fun k => hN (k + N) (by omega) (mem_singleton t)⟩ |
| 101 | |
| 102 | end PoincareMT.M30 |