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.Terminal.Source.TerminalSourceJetsG4Mixed |
| 2 | |
| 3 | /-! |
| 4 | # Eventual assembly of the actual G4 source bound |
| 5 | |
| 6 | Each good index carries the literal first-failure guards and the same-source |
| 7 | G2 clock/norm readout. The eventual theorem applies the reviewed pointwise |
| 8 | G4 producer on that exact indexed source and keeps the included `Icc` |
| 9 | endpoints. Positive's survival and six-radius image producer is upstream. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 23 | |
| 24 | /-- The literal per-index first-failure and G2 certificate. The source, |
| 25 | ordinary flow, generalized cylinder, clock, scalar ceiling and norm readout |
| 26 | are all tied to this same index. -/ |
| 27 | structure TerminalSourceJetsG4Good |
| 28 | (S : RepairedControlledSchedulesData.{u}) |
| 29 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 30 | (p : SurgeryParameterPrefix S.constants) |
| 31 | {F₀ : SurgeryFlowData.{u}} (O : SurgeryObservation F₀) |
| 32 | {W : M33RegularHistoryWindow F₀} |
| 33 | (H : M33RegularHistoryData W) |
| 34 | {C₀ : GeneralizedSliceCarrier.{u}} |
| 35 | {base Q τ rNext : ℝ} |
| 36 | (U : TopologicalSpace.Opens C₀.carrier) |
| 37 | (e : GeneralizedFlowCylinder H.generalized C₀ base Q |
| 38 | (Icc (-τ) 0) (U : Set C₀.carrier)) |
| 39 | (F : RicciFlow 3 U (Icc (-τ) 0)) |
| 40 | {R L eta : ℝ} (C : TerminalSourceChart (F.metric 0) R) : Prop where |
| 41 | hInitial : F₀.standard_initial = S.setup.standard_initial |
| 42 | hConstants : F₀.local_constants = S.constants |
| 43 | hC : F₀.parameters.C = S.setup.C |
| 44 | hBase : base ∈ Ico (surgeryEpochStart p.i) O.H |
| 45 | hTauNonneg : 0 ≤ τ |
| 46 | hScale : 64 * (τ + 1) ≤ Q |
| 47 | hLarge : B.curvature_threshold ≤ Q |
| 48 | hThreshold : rNext⁻¹ ^ 2 ≤ Q |
| 49 | hPinched : SurgeryFlowPinched F₀ |
| 50 | hEarlier : SurgeryCanonicalOn F₀ |
| 51 | (surgeryObservationInterval O ∩ Iio base) rNext |
| 52 | hOverlap : ∀ u ∈ surgeryObservationInterval O ∩ |
| 53 | Ico (surgeryEpochStart (p.i - 1)) O.H, |
| 54 | F₀.parameters.delta u ≤ B.delta S.setup.standard_initial S.constants |
| 55 | hne : (U : Set C₀.carrier).Nonempty |
| 56 | htime : ∀ s ∈ Icc (-τ) 0, |
| 57 | base + s / Q ∈ H.generalized.interval |
| 58 | hnorm : ∀ (s : ℝ) (hs : s ∈ Icc (-τ) 0) (x : U), |
| 59 | (F.connection s).curvatureTensorNorm x = |
| 60 | (H.generalized.connection (base + s / Q)).curvatureTensorNorm |
| 61 | (e.forward s hs x.val) / Q |
| 62 | hL : 1 ≤ L |
| 63 | hTerminal : ∀ x : C₀.carrier, x ∈ (U : Set C₀.carrier) → |
| 64 | normalizedCylinderScalar e x 0 ≤ L |
| 65 | hShort : blowupAnalyticConstant S B * L * τ ≤ 1 / 4 |
| 66 | heta : 0 < eta |
| 67 | hPinchingScale : blowupPinchingThreshold (4 * L / 3) eta ≤ Q |
| 68 | |
| 69 | /-- Assemble the actual closed-time G4 bound from the eventual literal |
| 70 | first-failure/G2 certificates. -/ |
| 71 | theorem terminalSourceJetsG4_eventually_raw |
| 72 | {α : Type v} (l : Filter α) |
| 73 | (S : RepairedControlledSchedulesData.{u}) |
| 74 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 75 | (p : SurgeryParameterPrefix S.constants) |
| 76 | (P : M46Predecessors.{u}) |
| 77 | {τ R L eta : ℝ} (hτ : 0 < τ) |
| 78 | (F₀ : α → SurgeryFlowData.{u}) |
| 79 | (O : ∀ k, SurgeryObservation (F₀ k)) |
| 80 | (W : ∀ k, M33RegularHistoryWindow (F₀ k)) |
| 81 | (H : ∀ k, M33RegularHistoryData (W k)) |
| 82 | (C₀ : α → GeneralizedSliceCarrier.{u}) |
| 83 | (base Q rNext : α → ℝ) |
| 84 | (U : ∀ k, TopologicalSpace.Opens (C₀ k).carrier) |
| 85 | (e : ∀ k, GeneralizedFlowCylinder (H k).generalized (C₀ k) |
| 86 | (base k) (Q k) (Icc (-τ) 0) (U k : Set (C₀ k).carrier)) |
| 87 | (F : ∀ k, RicciFlow 3 (U k) (Icc (-τ) 0)) |
| 88 | (C : ∀ k, TerminalSourceChart ((F k).metric 0) R) |
| 89 | (hGood : ∀ᶠ k in l, |
| 90 | TerminalSourceJetsG4Good S B p (O k) (H k) (U k) (e k) (F k) |
| 91 | (τ := τ) (base := base k) (Q := Q k) (rNext := rNext k) |
| 92 | (R := R) (L := L) (eta := eta) (C k)) : |
| 93 | ∀ᶠ k in l, ∀ s ∈ Icc (-τ) 0, ∀ y ∈ |
| 94 | (C k).chart '' Metric.ball 0 R, |
| 95 | ((F k).connection s).curvatureTensorNorm y ≤ |
| 96 | 13 * max (4 * L / 3) 1 := by |
| 97 | filter_upwards [hGood] with k hk |
| 98 | have h := terminalSourceJetsG4_on_chart S B p (O k) |
| 99 | hk.hInitial hk.hConstants hk.hC hk.hBase hk.hTauNonneg hk.hScale hk.hLarge |
| 100 | hk.hThreshold hk.hPinched hk.hEarlier hk.hOverlap P (H k) hτ (U k) (e k) |
| 101 | (F k) hk.htime hk.hnorm hk.hL hk.hTerminal hk.hShort hk.heta |
| 102 | hk.hPinchingScale (C k) |
| 103 | exact h.2 |
| 104 | |
| 105 | end PoincareMT.M47 |