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.TerminalSourceJetsG4Assembly |
| 2 | |
| 3 | /-! |
| 4 | # Actual eventual first-failure data to same-chart mixed jets |
| 5 | |
| 6 | The literal eventual first-failure and G2 certificates produce the closed |
| 7 | curvature bound on the selected chart images. The frozen mixed-jet theorem |
| 8 | then applies to these same Type-u open sources and their actual coefficient |
| 9 | representatives. The width remains local to the fixed chart label. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option maxSynthPendingDepth 12 |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 24 | local notation "V" => E →L[ℝ] E →L[ℝ] ℝ |
| 25 | |
| 26 | /-- Every raw-curvature input to the mixed estimate is derived from the |
| 27 | eventual actual first-failure/G2 certificate on the unchanged source family. -/ |
| 28 | theorem terminalSourceJetsG4_eventually_mixed |
| 29 | {α : Type v} (l : Filter α) |
| 30 | (S : RepairedControlledSchedulesData.{u}) |
| 31 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 32 | (p : SurgeryParameterPrefix S.constants) |
| 33 | (P : M46Predecessors.{u}) |
| 34 | {τ R L eta ρ : ℝ} (hτ : 0 < τ) (hρ : 0 < ρ) (hρR : 2 * ρ < R) |
| 35 | (hsmall : ∀ s : ℝ, |s| ≤ 2 * ρ → |
| 36 | ((13 * max (4 * L / 3) 1) * s ^ 2) * |
| 37 | Real.exp (max 1 ((13 * max (4 * L / 3) 1) * s ^ 2)) ≤ 3) |
| 38 | (F₀ : α → SurgeryFlowData.{u}) |
| 39 | (O : ∀ k, SurgeryObservation (F₀ k)) |
| 40 | (W : ∀ k, M33RegularHistoryWindow (F₀ k)) |
| 41 | (H : ∀ k, M33RegularHistoryData (W k)) |
| 42 | (C₀ : α → GeneralizedSliceCarrier.{u}) |
| 43 | (base Q rNext : α → ℝ) |
| 44 | (U : ∀ k, TopologicalSpace.Opens (C₀ k).carrier) |
| 45 | (e : ∀ k, GeneralizedFlowCylinder (H k).generalized (C₀ k) |
| 46 | (base k) (Q k) (Icc (-τ) 0) (U k : Set (C₀ k).carrier)) |
| 47 | (F : ∀ k, RicciFlow 3 (U k) (Icc (-τ) 0)) |
| 48 | (C : ∀ k, TerminalSourceChart ((F k).metric 0) R) |
| 49 | (hGood : ∀ᶠ k in l, |
| 50 | TerminalSourceJetsG4Good S B p (O k) (H k) (U k) (e k) (F k) |
| 51 | (τ := τ) (base := base k) (Q := Q k) (rNext := rNext k) |
| 52 | (R := R) (L := L) (eta := eta) (C k)) |
| 53 | (fminus : α → ℝ × E → V) |
| 54 | (hactual : ∀ᶠ k in l, EqOn (fminus k) |
| 55 | (fun q : ℝ × E => ((F k).metric q.1).pullbackCoefficients (C k).chart q.2) |
| 56 | (Ioo (-τ) 0 ×ˢ Metric.ball 0 R)) |
| 57 | {K : Set E} (hK : K ⊆ Metric.closedBall 0 ρ) (m : ℕ) : |
| 58 | ∃ D : ℝ, 0 ≤ D ∧ ∀ᶠ k in l, |
| 59 | ∀ t ∈ Ioo (-(τ / 2)) 0, ∀ x ∈ K, |
| 60 | ‖iteratedFDeriv ℝ m (fminus k) (t, x)‖ ≤ D := by |
| 61 | have hG4 := terminalSourceJetsG4_eventually_raw l S B p P hτ F₀ O W H C₀ |
| 62 | base Q rNext U e F C hGood |
| 63 | have hH : 0 < 13 * max (4 * L / 3) 1 := |
| 64 | mul_pos (by norm_num) (lt_of_lt_of_le zero_lt_one (le_max_right _ _)) |
| 65 | exact terminalSourceJetsG4_same_chart_mixed l (fun k => (U k : Type u)) P.m04 |
| 66 | hτ hH hρ hρR hsmall F C hG4 fminus hactual hK m |
| 67 | |
| 68 | end PoincareMT.M47 |