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.CanonicalInduction.Limit.Finite.LimitFiniteEndpointService |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteUniformSlab |
| 3 | |
| 4 | /-! |
| 5 | # The actual finite-horizon extension in induction |
| 6 | |
| 7 | The original regular sequence constructs its endpoint service once. |
| 8 | The same coefficient and availability selections retain the finite cap |
| 9 | budget and produce a strictly longer controlled slab. |
| 10 | MT Proposition 17.1, pp. 407-408; induction-finite-contradiction.md, IF1-IF4. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | variable (F : ℕ → SurgeryFlowData.{u}) (W : ∀ k, M33RegularHistoryWindow (F k)) |
| 24 | (history : ∀ k, M33RegularHistoryData (W k)) (baseTime : ℕ → ℝ) |
| 25 | (hbaseTime : ∀ k, baseTime k ∈ (history k).generalized.interval) |
| 26 | (basePoint : ∀ k, ((history k).generalized.slice (baseTime k)).carrier) |
| 27 | (hPositive : ∀ k, 0 < ((F k).connection (baseTime k)).scalarCurvature |
| 28 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) |
| 29 | (hDiverges : Tendsto (fun k => ((F k).connection (baseTime k)).scalarCurvature |
| 30 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) atTop atTop) |
| 31 | |
| 32 | local notation "V" => regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 33 | basePoint hPositive hDiverges |
| 34 | |
| 35 | variable {H : ℝ≥0∞} (G : GeneralizedBlowupConvergence |
| 36 | (regularHistoryBlowupSequence F W history baseTime hbaseTime basePoint hPositive hDiverges) |
| 37 | (blowupBackwardInterval H)) |
| 38 | |
| 39 | private local instance inductionFiniteTopology : TopologicalSpace G.limit.carrier.carrier := |
| 40 | G.limit.carrier.topologicalSpace |
| 41 | private local instance inductionFiniteCharts : ChartedSpace |
| 42 | (EuclideanSpace ℝ (Fin 3)) G.limit.carrier.carrier := G.limit.carrier.chartedSpace |
| 43 | private local instance inductionFiniteManifold : IsManifold (𝓡 3) ∞ G.limit.carrier.carrier := |
| 44 | G.limit.carrier.isManifold |
| 45 | |
| 46 | variable |
| 47 | (hbad : ∀ k, ¬ SurgeryCanonicalControl (F k) (baseTime k) |
| 48 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k)) |
| 49 | (F k).parameters.epsilon (F k).parameters.C) |
| 50 | (capBudget : |
| 51 | let seq := regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 52 | basePoint hPositive hDiverges |
| 53 | ∀ j : ℕ, ∀ᶠ k in atTop, |
| 54 | ∀ (C : GeneralizedSliceCarrier.{u}) {Ucap : Set C.carrier}, IsOpen Ucap → |
| 55 | ∀ {a : ℝ} (ha : a ∈ Ico (-((j : ℝ) + 1)) 0), |
| 56 | ∀ E0 : SurgeryFlowCylinder (F (G.subsequence k)) C (baseTime (G.subsequence k)) |
| 57 | (seq.scale (G.subsequence k)) (Icc a 0) Ucap, |
| 58 | (∀ s (hs : s ∈ Icc a 0), ∀ x ∈ Ucap, |
| 59 | ((F (G.subsequence k)).connection |
| 60 | (baseTime (G.subsequence k) + s / seq.scale (G.subsequence k))).scalarCurvature |
| 61 | (E0.forward s hs x) ≤ ((j : ℝ) + 1) * seq.scale (G.subsequence k)) → |
| 62 | let bottom : a ∈ Icc a 0 := ⟨le_rfl, ha.2.le⟩ |
| 63 | let zero : (0 : ℝ) ∈ Icc a 0 := ⟨ha.2.le, le_rfl⟩ |
| 64 | let tbirth := baseTime (G.subsequence k) + a / seq.scale (G.subsequence k) |
| 65 | ∀ (hEvent : tbirth ∈ (F (G.subsequence k)).surgery_times), |
| 66 | ∀ [Nonempty ((F (G.subsequence k)).slice tbirth).carrier], |
| 67 | ∀ (i : Fin ((F (G.subsequence k)).event tbirth hEvent).cap_count) (contact : C.carrier), |
| 68 | contact ∈ Ucap → |
| 69 | E0.forward a bottom contact ∈ |
| 70 | (((F (G.subsequence k)).event tbirth hEvent).caps i).carrier → |
| 71 | (∀ x ∈ Ucap, ((F (G.subsequence k)).metric tbirth).edist |
| 72 | (E0.forward a bottom contact) (E0.forward a bottom x) ≤ |
| 73 | ENNReal.ofReal (((j : ℝ) + 1) / Real.sqrt (seq.scale (G.subsequence k)))) → |
| 74 | ∀ y ∈ Ucap, |
| 75 | ((F (G.subsequence k)).connection |
| 76 | (baseTime (G.subsequence k) + 0 / seq.scale (G.subsequence k))).scalarCurvature |
| 77 | (E0.forward 0 zero y) = seq.scale (G.subsequence k) → |
| 78 | SurgeryCanonicalControl (F (G.subsequence k)) |
| 79 | (baseTime (G.subsequence k) + 0 / seq.scale (G.subsequence k)) |
| 80 | (E0.forward 0 zero y) (F (G.subsequence k)).parameters.epsilon |
| 81 | (F (G.subsequence k)).parameters.C) |
| 82 | |
| 83 | include hbad capBudget in |
| 84 | /-- Original finite-horizon sequence guards construct a longer slab on |
| 85 | an actual strict selection, with no endpoint-source or cap-exclusion input. |
| 86 | MT Proposition 17.1, pp. 407-408. -/ |
| 87 | theorem induction_exists_finite_horizon_extension |
| 88 | (P : M47Predecessors.{u}) (S : RepairedControlledSchedulesData.{u}) |
| 89 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 90 | (controls : M30GeometricLongControls V H) |
| 91 | (p : ℕ → SurgeryParameterPrefix S.constants) (O : ∀ k, SurgeryObservation (F k)) |
| 92 | (hfinite : H ≠ ⊤) |
| 93 | (hInitial : ∀ k, (F k).standard_initial = S.setup.standard_initial) |
| 94 | (hConstants : ∀ k, (F k).local_constants = S.constants) |
| 95 | (hParameters : ∀ k, (F k).parameters.epsilon = S.setup.epsilon ∧ |
| 96 | (F k).parameters.C = S.setup.C) |
| 97 | (hBase : ∀ k, baseTime k ∈ Ico (surgeryEpochStart (p k).i) (O k).H) |
| 98 | (hPinched : ∀ k, SurgeryFlowPinched (F k)) |
| 99 | (rNext : ℕ → ℝ) (hThreshold : ∀ k, (rNext k)⁻¹ ^ 2 ≤ (V).scale k) |
| 100 | (hEarlier : ∀ k, SurgeryCanonicalOn (F k) (Ico 0 (baseTime k)) (rNext k)) |
| 101 | (hOverlap : ∀ k, ∀ t ∈ surgeryObservationInterval (O k) ∩ |
| 102 | Ico (surgeryEpochStart ((p k).i - 1)) (O k).H, |
| 103 | (F k).parameters.delta t ≤ B.delta S.setup.standard_initial S.constants) : |
| 104 | ∃ rho : ℕ → ℕ, ∃ hrho : StrictMono rho, |
| 105 | ∃ T : ℝ, 0 < T ∧ H.toReal < T ∧ |
| 106 | TerminalCommonIntervalSlab (terminalCommonInterval_reindex V rho hrho) T := by |
| 107 | obtain ⟨sigma, hsigma, _gE, _DE, _hcomplete, _hoperator, etaIndex, hetaIndex, |
| 108 | _hn, psi, _hpsiSource, _htimes, Bglobal, _hBglobal, _hbound, hL, hballs⟩ := |
| 109 | limitFinite_actual_endpoint_terminal_ball_service F W history baseTime hbaseTime |
| 110 | basePoint hPositive hDiverges G hbad capBudget P S B p O controls.horizon_pos hfinite |
| 111 | hInitial hConstants hParameters hBase hPinched rNext hThreshold hEarlier hOverlap |
| 112 | obtain ⟨T, hT, hlarge, rho, hrho, _hrho, hslab⟩ := |
| 113 | limitFinite_exists_selected_longer_slab F W history baseTime hbaseTime basePoint |
| 114 | hPositive hDiverges G sigma etaIndex P S B controls hfinite hsigma hetaIndex p O |
| 115 | hInitial hConstants (fun k => (hParameters k).2) hBase hPinched rNext hThreshold |
| 116 | hEarlier hOverlap hbad psi (2 * max 1 (3 * Bglobal)) hL hballs |
| 117 | (fun j => (hsigma.comp hetaIndex).tendsto_atTop.eventually (capBudget j)) |
| 118 | exact ⟨rho, hrho, T, hT, hlarge, hslab⟩ |
| 119 | |
| 120 | end PoincareMT.M47 |