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.LongTime.FiniteSlab.FiniteSourcePrefix |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.Assembly.LongSlabService |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.Generalized.BlowupSubsequence |
| 4 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.CurvatureDefect.CurvatureNorm |
| 5 | |
| 6 | /-! |
| 7 | # Long source certificates from an independently constructed convergence |
| 8 | |
| 9 | A completed full-horizon limit has a global curvature coefficient on every |
| 10 | compact time slab. Its scalar bound transfers to the raw finite source |
| 11 | cylinders on the retained subsequence. Native pinching then supplies the |
| 12 | curvature and vanishing negative-defect estimates stored by the long-slab |
| 13 | service, while keeping the original noncollapse certificates. |
| 14 | |
| 15 | This is a readout of an existing convergence, not a premise for constructing |
| 16 | that convergence (Morgan--Tian Theorem 11.8, pp. 272--279). |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.M30 |
| 27 | |
| 28 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 29 | FlowCarrier.isManifold |
| 30 | |
| 31 | /-- Full-horizon convergence and the raw long hypotheses give the long |
| 32 | source control service on exactly the retained subsequence. -/ |
| 33 | theorem longSlabControlService_of_convergence |
| 34 | (hC : RicciFlowCurvatureTheory.{u}) |
| 35 | {S : GeneralizedBlowupSequence.{u}} {T0 : ℝ≥0∞} |
| 36 | {epsilon C kappa r0 mu : ℝ} |
| 37 | (H : M30LongBlowupControls S epsilon C kappa r0 mu T0) |
| 38 | (G : GeneralizedBlowupConvergence S (blowupBackwardInterval T0)) : |
| 39 | M30LongSlabControlService |
| 40 | (reindexedBlowupSequence S G.subsequence G.subsequence_strictMono) kappa r0 T0 := by |
| 41 | let S' := reindexedBlowupSequence S G.subsequence G.subsequence_strictMono |
| 42 | refine { bounds := ?_ } |
| 43 | intro T hT hTT0 |
| 44 | have hI : Icc (-T) 0 ⊆ blowupBackwardInterval T0 := |
| 45 | closedSlab_subset_blowupBackwardInterval hTT0 |
| 46 | obtain ⟨K, _hK, hKbound⟩ := |
| 47 | G.limit.curvature_locally_bounded_in_time (Icc (-T) 0) isCompact_Icc hI |
| 48 | have hscalar : ∀ s ∈ Icc (-T) 0, ∀ x, |
| 49 | (G.limit.flow.connection s).scalarCurvature x ≤ 9 * K := by |
| 50 | intro s hs x |
| 51 | have habs := (G.limit.flow.connection s).abs_scalarCurvature_le_curvatureTensorNorm x |
| 52 | norm_num only [Nat.cast_ofNat, sq] at habs |
| 53 | have hnorm := (le_abs_self _).trans (hKbound s hs x) |
| 54 | have hle := (le_abs_self _).trans habs |
| 55 | nlinarith |
| 56 | let D : ℝ := max 4 (9 * K + 1) |
| 57 | have hD : 0 ≤ D := (by norm_num : (0 : ℝ) ≤ 4).trans (le_max_left _ _) |
| 58 | have hmax : max D 1 = D := |
| 59 | max_eq_left ((by norm_num : (1 : ℝ) ≤ 4).trans (le_max_left _ _)) |
| 60 | obtain ⟨Tplus, _hTplusNonneg, hTTplus, hTplusT0⟩ := |
| 61 | ENNReal.lt_iff_exists_real_btwn.mp hTT0 |
| 62 | have hTplus : 0 < Tplus := ENNReal.ofReal_pos.mp |
| 63 | ((ENNReal.ofReal_pos.mpr hT).trans hTTplus) |
| 64 | have hTTplus' : T < Tplus := |
| 65 | (ENNReal.ofReal_lt_ofReal_iff hTplus).mp hTTplus |
| 66 | refine ⟨13 * D, mul_nonneg (by norm_num) hD, ?_⟩ |
| 67 | intro A hA eta heta |
| 68 | have hprefix := eventually_finiteSlab_scalar_of_generalized_limit_bound_on_prefix |
| 69 | G hA (H.slabs Tplus hTplus hTplusT0 A hA) T hT hTTplus' hI |
| 70 | (fun s hs x _hx => hscalar s hs x) |
| 71 | have hpinch := G.subsequence_strictMono.tendsto_atTop.eventually |
| 72 | (eventually_curvatureNorm_and_negativeDefect_le hC S H.branch D hD eta heta) |
| 73 | filter_upwards [hprefix, hpinch] with k hk hpinchK |
| 74 | obtain ⟨e, he⟩ := hk |
| 75 | let e' : M30FiniteHorizonSlab S' k A Tplus kappa r0 := { |
| 76 | embedding := e.embedding |
| 77 | zero_identity := e.zero_identity |
| 78 | noncollapsed := e.noncollapsed } |
| 79 | refine ⟨Tplus, hTplus, hTTplus', hTplusT0, e', ?_, ?_⟩ |
| 80 | · intro s hs x hx |
| 81 | let p := (FiniteHorizonSlab.closedEmbedding e hTTplus').pointMap s hs x |
| 82 | have hp : p.1 ∈ (S.flow (G.subsequence k)).interval := |
| 83 | ((S.flow (G.subsequence k)).slice_nonempty_iff p.1).mp ⟨p.2⟩ |
| 84 | have h := (hpinchK p.1 hp p.2 (he s hs x hx)).1 |
| 85 | rw [hmax] at h |
| 86 | exact h |
| 87 | · intro s hs x hx |
| 88 | let p := (FiniteHorizonSlab.closedEmbedding e hTTplus').pointMap s hs x |
| 89 | have hp : p.1 ∈ (S.flow (G.subsequence k)).interval := |
| 90 | ((S.flow (G.subsequence k)).slice_nonempty_iff p.1).mp ⟨p.2⟩ |
| 91 | exact (hpinchK p.1 hp p.2 (he s hs x hx)).2 |
| 92 | |
| 93 | end PoincareMT.M30 |