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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialSlabScalar |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.ArclengthSlabContinuity |
| 4 | |
| 5 | /-! |
| 6 | # The actual intrinsic end leaves compact sets uniformly in initial time |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. Joint continuity of genuine |
| 9 | arclength on the original closed slab bounds it on each fixed compact |
| 10 | set. Its actual inverse therefore escapes that compact set uniformly, |
| 11 | so the M34 scalar comparison applies to the literal radial end. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | local notation "V" => StandardCapSpace |
| 23 | |
| 24 | /-- The genuine inverse-arclength axis escapes every original |
| 25 | compact set uniformly on one closed initial slab. -/ |
| 26 | theorem initial_intrinsic_axis_escapes_compact |
| 27 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 28 | (E : RepairedStandardCapExistenceData g₀) {theta : ℝ} |
| 29 | (htheta : theta ∈ Ico 0 E.flow.base.lifetime) |
| 30 | {K : Set V} (hK : IsCompact K) : |
| 31 | ∃ R : ℝ, 0 < R ∧ ∀ t ∈ Icc 0 theta, ∀ s ≥ R, |
| 32 | rawInverseRadius P E.flow.base E.rotation_invariant t s • |
| 33 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ) ∉ K := by |
| 34 | let F (p : ℝ × V) := radialArclength (E.flow.metric p.1) ‖p.2‖ |
| 35 | have hF : ContinuousOn F (Icc 0 theta ×ˢ K) := |
| 36 | (raw_radialArclength_continuousOn_slab E.flow.base htheta.1 htheta.2).comp |
| 37 | (continuousOn_fst.prodMk continuousOn_snd.norm) |
| 38 | (fun _ hp => ⟨hp.1, mem_univ _⟩) |
| 39 | obtain ⟨C, hC⟩ := (isCompact_Icc.prod hK).exists_bound_of_continuousOn hF |
| 40 | refine ⟨max 1 (C + 1), lt_of_lt_of_le zero_lt_one (le_max_left _ _), ?_⟩ |
| 41 | intro t ht s hs hinside |
| 42 | have hspos : 0 < s := (lt_of_lt_of_le zero_lt_one (le_max_left _ _)).trans_le hs |
| 43 | have htG : t ∈ Ico 0 E.flow.base.lifetime := ⟨ht.1, ht.2.trans_lt htheta.2⟩ |
| 44 | have hr := rawInverseRadius_pos P E.flow.base E.rotation_invariant htG hspos |
| 45 | have hnorm : ‖rawInverseRadius P E.flow.base E.rotation_invariant t s • |
| 46 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)‖ = |
| 47 | rawInverseRadius P E.flow.base E.rotation_invariant t s := by |
| 48 | rw [norm_smul, Real.norm_eq_abs, abs_of_pos hr] |
| 49 | simp |
| 50 | have h := hC (t, rawInverseRadius P E.flow.base E.rotation_invariant t s • |
| 51 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) ⟨ht, hinside⟩ |
| 52 | change |radialArclength (E.flow.metric t) ‖_‖| ≤ C at h |
| 53 | have hinverse : radialArclength (E.flow.metric t) |
| 54 | (rawInverseRadius P E.flow.base E.rotation_invariant t s) = s := by |
| 55 | convert! radialArclength_rawInverseRadius P E.flow.base E.rotation_invariant htG s using 1 |
| 56 | rw [hnorm, hinverse, abs_of_pos hspos] at h |
| 57 | have hlarge := (le_max_right 1 (C + 1)).trans hs |
| 58 | linarith only [h, hlarge] |
| 59 | |
| 60 | /-- M34's actual fixed-patch comparison controls scalar |
| 61 | normalization on the entire intrinsic radial tail of the closed slab. -/ |
| 62 | theorem exists_initial_intrinsic_scalar_control |
| 63 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 64 | (E : RepairedStandardCapExistenceData g₀) {theta eta : ℝ} |
| 65 | (htheta : theta ∈ Ico 0 E.flow.base.lifetime) (heta : 0 < eta) : |
| 66 | ∃ R : ℝ, 0 < R ∧ ∀ t ∈ Icc 0 theta, ∀ s ≥ R, |
| 67 | |(1 - t) * (E.flow.connection t).scalarCurvature |
| 68 | (rawInverseRadius P E.flow.base E.rotation_invariant t s • |
| 69 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) - 1| < eta := by |
| 70 | obtain ⟨K, hK, hscalar⟩ := exists_initial_slab_scalar_control E htheta heta |
| 71 | obtain ⟨R, hR, hescape⟩ := initial_intrinsic_axis_escapes_compact P E htheta hK |
| 72 | exact ⟨R, hR, fun t ht s hs => hscalar _ (hescape t ht s hs) t ht⟩ |
| 73 | |
| 74 | /-- The actual scalar on the moving intrinsic end converges to |
| 75 | the precise model scalar when the closed-slab times converge. -/ |
| 76 | theorem initial_intrinsic_axis_scalar_tendsto |
| 77 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 78 | (E : RepairedStandardCapExistenceData g₀) {theta : ℝ} |
| 79 | (htheta : theta ∈ Ico 0 E.flow.base.lifetime) |
| 80 | (t s : ℕ → ℝ) (ht : ∀ k, t k ∈ Icc 0 theta) |
| 81 | {t₀ : ℝ} (ht₀ : t₀ < 1) (htlim : Tendsto t atTop (𝓝 t₀)) |
| 82 | (hslim : Tendsto s atTop atTop) : |
| 83 | Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature |
| 84 | (rawInverseRadius P E.flow.base E.rotation_invariant (t k) (s k) • |
| 85 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ))) atTop (𝓝 (1 / (1 - t₀))) := by |
| 86 | let S k := (E.flow.connection (t k)).scalarCurvature |
| 87 | (rawInverseRadius P E.flow.base E.rotation_invariant (t k) (s k) • |
| 88 | EuclideanSpace.single (2 : Fin 3) (1 : ℝ)) |
| 89 | have hnormalize : Tendsto (fun k => (1 - t k) * S k) atTop (𝓝 1) := by |
| 90 | apply Metric.tendsto_atTop.mpr |
| 91 | intro eta heta |
| 92 | obtain ⟨R, _hR, hcontrol⟩ := exists_initial_intrinsic_scalar_control P E htheta heta |
| 93 | obtain ⟨n, hn⟩ := eventually_atTop.mp (hslim.eventually_ge_atTop R) |
| 94 | exact ⟨n, fun k hk => by |
| 95 | simpa only [Real.dist_eq, S] using hcontrol (t k) (ht k) (s k) (hn k hk)⟩ |
| 96 | have hdiv := hnormalize.div ((tendsto_const_nhds (x := (1 : ℝ))).sub htlim) |
| 97 | (sub_pos.mpr ht₀).ne' |
| 98 | apply hdiv.congr' |
| 99 | apply Eventually.of_forall |
| 100 | intro k |
| 101 | have hkone : t k < 1 := (ht k).2.trans_lt (E.lifetime_one ▸ htheta.2) |
| 102 | exact mul_div_cancel_left₀ (S k) (sub_pos.mpr hkone).ne' |
| 103 | |
| 104 | end PoincareMT.M35.Uniqueness |