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.Existence.Construction.Flow.ApproximationEvolution |
| 2 | |
| 3 | /-! |
| 4 | # Interior spacetime bounds in fixed cap coordinates |
| 5 | |
| 6 | The smooth finite-jet Ricci equation and the compact elliptic jet ranges |
| 7 | give all joint time-space derivative bounds. The constants remain valid |
| 8 | arbitrarily close to time zero, while ordinary derivatives are asserted |
| 9 | only in the interior. This is the extraction input for Morgan-Tian |
| 10 | Theorem 12.5, p. 297; see initial-endpoint-limit.md. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option maxSynthPendingDepth 8 |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | namespace PoincareMT.M34.CompactCapApproximation |
| 21 | |
| 22 | open SpacetimeBounds SpacetimeBounds.Bootstrap |
| 23 | |
| 24 | variable {g0 : StandardInitialMetric} (A : CompactCapApproximation g0) |
| 25 | |
| 26 | set_option synthInstance.maxHeartbeats 100000 in |
| 27 | -- The bootstrap uses dependent finite products of multilinear derivative spaces. |
| 28 | /-- All interior spacetime derivatives are eventually uniformly bounded |
| 29 | on each compact spatial set (Theorem 12.5, p. 297). -/ |
| 30 | theorem eventually_compact_spacetimeJet_bound (P : RicciFlowCurvatureTheory.{0}) |
| 31 | {K : Set StandardCapSpace} (hK : IsCompact K) (m : ℕ) : |
| 32 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k : ℕ in atTop, ∀ t ∈ Ioo 0 A.time, |
| 33 | ∀ x ∈ K, x ∈ compactCapSource g0 k → |
| 34 | ‖iteratedFDeriv ℝ m |
| 35 | (fun p : ℝ × StandardCapSpace => A.coefficients k p.1 p.2) (t, x)‖ ≤ B := by |
| 36 | let f := fun k (p : ℝ × StandardCapSpace) => A.coefficients k p.1 p.2 |
| 37 | let S := fun k => Ioo 0 A.time ×ˢ (K ∩ compactCapSource g0 k) |
| 38 | have hspatial (j : ℕ) : ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k : ℕ in atTop, |
| 39 | ∀ z ∈ S k, ‖iteratedFDeriv ℝ j (fun x => f k (z.1, x)) z.2‖ ≤ B := by |
| 40 | obtain ⟨B, hB, hbound⟩ := A.exists_compact_spatialJet_bounds P hK j |
| 41 | exact ⟨B, zero_le_one.trans hB, Eventually.of_forall |
| 42 | (fun k z hz => hbound j le_rfl k z.1 (Ioo_subset_Icc_self hz.1) z.2 hz.2.1 hz.2.2)⟩ |
| 43 | have hcompact (j : ℕ) : |
| 44 | ∃ L : Set (Jet StandardCapSpace (MetricCoefficient 3) (2 + j)), |
| 45 | IsCompact L ∧ L ⊆ (baseProjection 2 j) ⁻¹' jetRicciFlowDomain 3 ∧ |
| 46 | ∀ᶠ k : ℕ in atTop, MapsTo (spatialJet (2 + j) (f k)) (S k) L := by |
| 47 | obtain ⟨L, hL, hLU, hrange⟩ := A.exists_compact_spatialJet_box P hK j |
| 48 | exact ⟨L, hL, hLU, Eventually.of_forall |
| 49 | (fun k z hz => hrange k z.1 (Ioo_subset_Icc_self hz.1) z.2 hz.2.1 hz.2.2)⟩ |
| 50 | obtain ⟨B, hB, hbound⟩ := eventuallyBounded_spacetime_jets atTop |
| 51 | (isOpen_jetRicciFlowDomain 3) (contDiffOn_jetRicciFlowOperator 3) |
| 52 | f (fun _ => Ioo 0 A.time) (compactCapSource g0) S |
| 53 | (A.contDiffOn_interior_coefficients) (fun _ => isOpen_Ioo) |
| 54 | (compactCapSource_isOpen g0) (fun _ _ hz => ⟨hz.1, hz.2.2⟩) |
| 55 | (fun k z hz => A.spatialJet_mem_domain k z.1 hz.2) |
| 56 | (fun k z hz => A.deriv_coefficients_eq_operator k hz.1 hz.2) hspatial hcompact m |
| 57 | refine ⟨B, hB, hbound.mono ?_⟩ |
| 58 | intro k hk t ht x hx hsource |
| 59 | exact hk (t, x) ⟨ht, hx, hsource⟩ |
| 60 | |
| 61 | end PoincareMT.M34.CompactCapApproximation |