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.Singular.RegularLimit.ScalarEscape |
| 2 | |
| 3 | /-! |
| 4 | # Properness of a terminal scalar limit |
| 5 | |
| 6 | The compact confinement of fixed finite-liminf sublevels implies properness |
| 7 | of any continuous scalar limit on a parametrization of the whole regular |
| 8 | region. Smooth metric convergence will supply that continuous scalar limit. |
| 9 | |
| 10 | Source: the final paragraph of Morgan--Tian, Lemma 11.21, p. 280. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | namespace PoincareMT.SingularTimeAssumptions |
| 21 | |
| 22 | variable {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 24 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 25 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 26 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 27 | |
| 28 | /-- Every continuous scalar limit on the entire regular region is proper and |
| 29 | bounded below. The proof constructs compact confinement on a single old slice. -/ |
| 30 | theorem scalar_limit_proper_and_bounded_below (H : SingularTimeAssumptions F T M) |
| 31 | (P04 : RicciFlowCurvatureTheory.{u}) |
| 32 | {X : Type v} [TopologicalSpace X] (i : X → M) (hi : Topology.IsEmbedding i) |
| 33 | (hrange : range i = H.reference.regularLimitSet) |
| 34 | (S : X → ℝ) (hS : Continuous S) |
| 35 | (hlim : ∀ x : X, Tendsto (fun t => H.reference.scalar t (i x)) |
| 36 | (𝓝[<] T) (𝓝 (S x))) : |
| 37 | (∃ L : ℝ, ∀ x : X, L ≤ S x) ∧ |
| 38 | ∀ K : Set ℝ, IsCompact K → IsCompact (S ⁻¹' K) := by |
| 39 | have hwindow : ∀ᶠ t in 𝓝[<] T, t ∈ Ico H.reference.tMinus T := by |
| 40 | filter_upwards [self_mem_nhdsWithin, |
| 41 | (eventually_gt_nhds H.reference.tMinus_lt).filter_mono nhdsWithin_le_nhds] with t ht hgt |
| 42 | exact ⟨hgt.le, ht⟩ |
| 43 | constructor |
| 44 | · obtain ⟨L, hL⟩ := H.reference_scalar_lower_bound |
| 45 | exact ⟨L, fun x => ge_of_tendsto (hlim x) (hwindow.mono fun t ht => hL t ht (i x))⟩ |
| 46 | · intro K hK |
| 47 | obtain ⟨B, hB⟩ := hK.bddAbove |
| 48 | obtain ⟨A, hA, hAreg, hconfine⟩ := H.exists_compact_containing_liminf_sublevel P04 (B + 1) |
| 49 | have hArange : A ⊆ range i := by rwa [hrange] |
| 50 | have hcompact : IsCompact (i ⁻¹' A) := hi.isInducing.isCompact_preimage' hA hArange |
| 51 | apply hcompact.of_isClosed_subset (hK.isClosed.preimage hS) |
| 52 | intro x hx |
| 53 | apply hconfine (i x) |
| 54 | intro a ha |
| 55 | have hnear : ∀ᶠ t in 𝓝[<] T, a < t := |
| 56 | (eventually_gt_nhds ha).filter_mono nhdsWithin_le_nhds |
| 57 | have hscalar : ∀ᶠ t in 𝓝[<] T, H.reference.scalar t (i x) < B + 1 := |
| 58 | (hlim x).eventually (eventually_lt_nhds (by linarith [hB hx] : S x < B + 1)) |
| 59 | obtain ⟨t, ht, hta, htB⟩ := (hwindow.and (hnear.and hscalar)).exists |
| 60 | exact ⟨t, hta, ht, htB.le⟩ |
| 61 | |
| 62 | end PoincareMT.SingularTimeAssumptions |