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.Existence.Lifetime.CanonicalGeometry.StrongNeckRestriction |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.Coordinates.LimitMetricJets |
| 3 | |
| 4 | /-! |
| 5 | # Compact capture of a shorter strong-neck cylinder |
| 6 | |
| 7 | A closed shorter cylinder lies strictly inside the old neck domain. Its |
| 8 | actual coordinate image is compact and is eventually contained in every |
| 9 | later spatial exhaustion stage, while the closed normalized backward |
| 10 | slab is eventually included in the same stages. This is the compact |
| 11 | restriction used in Morgan-Tian Theorem 12.28, pp. 323-324. |
| 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.EpsilonNeck |
| 22 | |
| 23 | variable {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 25 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g) |
| 26 | |
| 27 | /-- A closed axial strip strictly inside the neck has compact actual |
| 28 | coordinate image, with no derivative or injectivity extension assumed. -/ |
| 29 | theorem isCompact_coordinate_map_closedStrip {r : ℝ} (hr : r < N.epsilon⁻¹) : |
| 30 | IsCompact (N.coordinate_map '' (univ ×ˢ Icc (-r) r)) := by |
| 31 | have hsub : (univ : Set UnitTwoSphere) ×ˢ Icc (-r) r ⊆ |
| 32 | univ ×ˢ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹ := by |
| 33 | intro z hz |
| 34 | exact ⟨hz.1, (neg_lt_neg hr).trans_le hz.2.1, hz.2.2.trans_lt hr⟩ |
| 35 | exact (isCompact_univ.prod isCompact_Icc).image_of_continuousOn |
| 36 | (N.coordinate_map_smooth.continuousOn.mono hsub) |
| 37 | |
| 38 | /-- The smaller actual carrier lies in the image of its closed axial |
| 39 | strip. The total inverse is used only on the original carrier. -/ |
| 40 | theorem restrictedCarrier_subset_coordinate_map_closedStrip (epsilon : ℝ) : |
| 41 | N.restrictedCarrier epsilon ⊆ |
| 42 | N.coordinate_map '' (univ ×ˢ Icc (-epsilon⁻¹) epsilon⁻¹) := by |
| 43 | intro x hx |
| 44 | refine ⟨N.coordinate_inverse x, ⟨mem_univ _, hx.2.2.1.le, hx.2.2.2.le⟩, ?_⟩ |
| 45 | have h := congrArg (fun y : N.carrier => (y : M)) |
| 46 | (N.coordinate_inverse_right x hx.1) |
| 47 | rw [N.coordinate_map_eq] at h |
| 48 | exact h |
| 49 | |
| 50 | end PoincareMT.EpsilonNeck |
| 51 | |
| 52 | namespace PoincareMT.GeneralizedBlowupConvergence |
| 53 | |
| 54 | variable {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 55 | (C : GeneralizedBlowupConvergence S J) |
| 56 | |
| 57 | /-- Every closed shorter neck cylinder and the entire closed backward |
| 58 | unit slab are simultaneously captured at all sufficiently large stages. |
| 59 | This is an actual exhaustion statement, not a persistence hypothesis. -/ |
| 60 | theorem eventually_captures_closed_neck |
| 61 | (g : RiemannianMetric 3 C.limit.sliceCarrier.carrier) (N : EpsilonNeck g) |
| 62 | {r : ℝ} (hr : r < N.epsilon⁻¹) (hJ : Icc (-1 : ℝ) 0 ⊆ J) : |
| 63 | ∀ᶠ k : ℕ in atTop, |
| 64 | N.coordinate_map '' (univ ×ˢ Icc (-r) r) ⊆ C.exhaustion.space k ∧ |
| 65 | Icc (-1 : ℝ) 0 ⊆ Icc (-C.exhaustion.time k) 0 := by |
| 66 | obtain ⟨j, hj⟩ := C.exists_exhaustion_superset |
| 67 | (N.isCompact_coordinate_map_closedStrip hr) |
| 68 | filter_upwards [eventually_ge_atTop j, C.exhaustion.time_cofinal _ isCompact_Icc hJ] |
| 69 | with k hk ht |
| 70 | exact ⟨hj.trans (C.exhaustion.space_increasing hk), ht⟩ |
| 71 | |
| 72 | /-- A strict increase of epsilon yields compact spatial capture of the |
| 73 | actual restricted carrier and full normalized backward-time capture. -/ |
| 74 | theorem eventually_captures_restricted_neck |
| 75 | (g : RiemannianMetric 3 C.limit.sliceCarrier.carrier) (N : EpsilonNeck g) |
| 76 | {epsilon : ℝ} (hepsilon : N.epsilon < epsilon) (hJ : Icc (-1 : ℝ) 0 ⊆ J) : |
| 77 | ∀ᶠ k : ℕ in atTop, |
| 78 | N.restrictedCarrier epsilon ⊆ C.exhaustion.space k ∧ |
| 79 | Icc (-1 : ℝ) 0 ⊆ Icc (-C.exhaustion.time k) 0 := by |
| 80 | have hinv : epsilon⁻¹ < N.epsilon⁻¹ := inv_strictAnti₀ N.epsilon_pos hepsilon |
| 81 | filter_upwards [C.eventually_captures_closed_neck g N hinv hJ] with k hk |
| 82 | exact ⟨(N.restrictedCarrier_subset_coordinate_map_closedStrip epsilon).trans hk.1, hk.2⟩ |
| 83 | |
| 84 | end PoincareMT.GeneralizedBlowupConvergence |