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.Coordinates.InitialJetContinuity |
| 2 | |
| 3 | /-! |
| 4 | # The interior coefficient limit solves the actual Ricci operator |
| 5 | |
| 6 | The common subsequence preserves the time derivative and every finite |
| 7 | spatial jet. Compact elliptic jet ranges keep the limiting operator |
| 8 | evaluation in its smooth domain. This identifies the equation needed |
| 9 | for the initial-endpoint bootstrap in Theorem 12.5, p. 297. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option maxSynthPendingDepth 8 |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | namespace PoincareMT.M34.InteriorCoefficientLimit |
| 20 | |
| 21 | open SpacetimeBounds SpacetimeBounds.Bootstrap |
| 22 | |
| 23 | variable {g0 : StandardInitialMetric} {A : CompactCapApproximation g0} |
| 24 | (G : InteriorCoefficientLimit A) |
| 25 | |
| 26 | set_option synthInstance.maxHeartbeats 100000 in |
| 27 | -- The target is the finite dependent product used by the M07 jet API. |
| 28 | /-- All components of a finite spatial jet converge along the selected |
| 29 | subsequence (Theorem 12.5, p. 297). -/ |
| 30 | theorem finiteSpatialJet_tendsto (m : ℕ) {t : ℝ} (ht : t ∈ Ioo 0 A.time) |
| 31 | (x : StandardCapSpace) : |
| 32 | Tendsto (fun k => spatialJet m |
| 33 | (fun p : ℝ × StandardCapSpace => A.coefficients (G.subsequence k) p.1 p.2) (t, x)) |
| 34 | atTop (𝓝 (spatialJet m G.coefficients (t, x))) := by |
| 35 | apply tendsto_pi_nhds.mpr |
| 36 | intro j |
| 37 | exact G.spatialJet_tendsto j ht x |
| 38 | |
| 39 | set_option synthInstance.maxHeartbeats 100000 in |
| 40 | -- Compact jet products carry the dependent multilinear-map norms. |
| 41 | /-- The limiting two-jet remains in the actual elliptic Ricci domain |
| 42 | (Theorem 12.5, p. 297). -/ |
| 43 | theorem spatialJet_mem_domain (P : RicciFlowCurvatureTheory.{0}) |
| 44 | {t : ℝ} (ht : t ∈ Ioo 0 A.time) (x : StandardCapSpace) : |
| 45 | spatialJet 2 G.coefficients (t, x) ∈ jetRicciFlowDomain 3 := by |
| 46 | obtain ⟨L, hL, hLU, hrange⟩ := A.exists_compact_spatialJet_box P |
| 47 | (isCompact_singleton (x := x)) 0 |
| 48 | apply hLU |
| 49 | apply hL.isClosed.mem_of_tendsto (G.finiteSpatialJet_tendsto 2 ht x) |
| 50 | filter_upwards [G.strictMono.tendsto_atTop.eventually |
| 51 | (eventually_compact_subset_double_source g0 (isCompact_singleton (x := x)))] with k hk |
| 52 | exact hrange (G.subsequence k) t (Ioo_subset_Icc_self ht) x (mem_singleton x) |
| 53 | (hk (mem_singleton x)) |
| 54 | |
| 55 | /-- Actual time derivatives converge at every interior spacetime point |
| 56 | (Theorem 12.5, p. 297). -/ |
| 57 | theorem timeDeriv_tendsto {t : ℝ} (ht : t ∈ Ioo 0 A.time) (x : StandardCapSpace) : |
| 58 | Tendsto (fun k => deriv (fun s => A.coefficients (G.subsequence k) s x) t) |
| 59 | atTop (𝓝 (deriv (fun s => G.coefficients (s, x)) t)) := by |
| 60 | have hread (f : ℝ × StandardCapSpace → MetricCoefficient 3) |
| 61 | (hf : DifferentiableAt ℝ f (t, x)) : |
| 62 | iteratedFDeriv ℝ 1 f (t, x) (fun _ => (1, 0)) = |
| 63 | deriv (fun s => f (s, x)) t := by |
| 64 | rw [iteratedFDeriv_one_apply] |
| 65 | exact (hf.hasFDerivAt.comp_hasDerivAt t |
| 66 | ((hasDerivAt_id t).prodMk (hasDerivAt_const t x))).deriv.symm |
| 67 | have hconv := (G.jet_convergence 1 {(t, x)} isCompact_singleton |
| 68 | (singleton_subset_iff.mpr ⟨ht, mem_univ x⟩)).tendsto_at |
| 69 | (x := (t, x)) (mem_singleton (t, x)) |
| 70 | have hev := (ContinuousMultilinearMap.uniformContinuous_eval_const |
| 71 | (𝕜 := ℝ) (F := MetricCoefficient 3) |
| 72 | (fun _ : Fin 1 => ((1 : ℝ), (0 : StandardCapSpace)))).continuous.continuousAt |
| 73 | (x := iteratedFDeriv ℝ 1 G.coefficients (t, x)) |>.tendsto |
| 74 | have h := hev.comp hconv |
| 75 | rw [hread G.coefficients |
| 76 | ((G.smooth.contDiffAt ((isOpen_Ioo.prod isOpen_univ).mem_nhds |
| 77 | ⟨ht, mem_univ x⟩)).differentiableAt (by simp))] at h |
| 78 | apply h.congr' |
| 79 | filter_upwards [G.strictMono.tendsto_atTop.eventually |
| 80 | (eventually_compact_subset_double_source g0 (isCompact_singleton (x := x)))] with k hk |
| 81 | exact hread _ ((A.contDiffOn_interior_coefficients (G.subsequence k)).contDiffAt |
| 82 | ((isOpen_Ioo.prod (compactCapSource_isOpen g0 (G.subsequence k))).mem_nhds |
| 83 | ⟨ht, hk (mem_singleton x)⟩) |>.differentiableAt (by simp)) |
| 84 | |
| 85 | set_option synthInstance.maxHeartbeats 100000 in |
| 86 | -- The operator is defined on the dependent product of spatial jets. |
| 87 | /-- The smooth interior limit satisfies the genuine coordinate Ricci |
| 88 | evolution equation (Theorem 12.5, p. 297). -/ |
| 89 | theorem deriv_coefficients_eq_operator (P : RicciFlowCurvatureTheory.{0}) |
| 90 | {t : ℝ} (ht : t ∈ Ioo 0 A.time) (x : StandardCapSpace) : |
| 91 | deriv (fun s => G.coefficients (s, x)) t = |
| 92 | jetRicciFlowOperator 3 (spatialJet 2 G.coefficients (t, x)) := by |
| 93 | apply tendsto_nhds_unique (G.timeDeriv_tendsto ht x) |
| 94 | have hQ := ((contDiffOn_jetRicciFlowOperator 3).contDiffAt |
| 95 | ((isOpen_jetRicciFlowDomain 3).mem_nhds |
| 96 | (G.spatialJet_mem_domain P ht x))).continuousAt.tendsto |
| 97 | apply (hQ.comp (G.finiteSpatialJet_tendsto 2 ht x)).congr' |
| 98 | filter_upwards [G.strictMono.tendsto_atTop.eventually |
| 99 | (eventually_compact_subset_double_source g0 (isCompact_singleton (x := x)))] with k hk |
| 100 | exact (A.deriv_coefficients_eq_operator (G.subsequence k) ht |
| 101 | (hk (mem_singleton x))).symm |
| 102 | |
| 103 | end PoincareMT.M34.InteriorCoefficientLimit |