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.InteriorLimitEvolution |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Flow.InitialEvolutionBootstrap |
| 3 | |
| 4 | /-! |
| 5 | # Smooth coefficients and the Ricci equation through time zero |
| 6 | |
| 7 | The extension by the exact initial metric has continuous actual spatial |
| 8 | jets of every order. Its finite jets lie in the elliptic operator domain |
| 9 | also at zero. The boundary bootstrap proves joint within-smoothness and |
| 10 | the actual included-time equation (Theorem 12.5, p. 297). |
| 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.InteriorCoefficientLimit |
| 21 | |
| 22 | open SpacetimeBounds SpacetimeBounds.Bootstrap |
| 23 | |
| 24 | variable {g0 : StandardInitialMetric} {A : CompactCapApproximation g0} |
| 25 | (G : InteriorCoefficientLimit A) |
| 26 | |
| 27 | /-- The extended coefficients agree with a jointly smooth field at all |
| 28 | interior times (Theorem 12.5, p. 297). -/ |
| 29 | theorem contDiffOn_closedCoefficients_interior : |
| 30 | ContDiffOn ℝ ∞ G.closedCoefficients (Ioo 0 A.time ×ˢ univ) := by |
| 31 | apply G.smooth.congr |
| 32 | intro p hp |
| 33 | exact G.closedCoefficients_of_mem hp.1 p.2 |
| 34 | |
| 35 | /-- Every total time slice is a smooth spatial coefficient field |
| 36 | (Theorem 12.5, p. 297). -/ |
| 37 | theorem contDiff_closedCoefficients_slice (t : ℝ) : |
| 38 | ContDiff ℝ ∞ (fun x => G.closedCoefficients (t, x)) := by |
| 39 | apply contDiff_iff_contDiffAt.mpr |
| 40 | intro x |
| 41 | by_cases ht : t ∈ Ioo 0 A.time |
| 42 | · have h := (G.smooth.contDiffAt |
| 43 | ((isOpen_Ioo.prod isOpen_univ).mem_nhds ⟨ht, mem_univ x⟩)).comp x |
| 44 | (contDiffAt_const.prodMk contDiffAt_id) |
| 45 | simpa only [closedCoefficients, ht, if_true, Function.comp_def, id_eq] using h |
| 46 | · simpa only [closedCoefficients, ht, if_false] using |
| 47 | g0.metric.contDiffAt_euclideanCoefficients x |
| 48 | |
| 49 | set_option synthInstance.maxHeartbeats 100000 in |
| 50 | -- A finite jet is the dependent product of the actual spatial derivatives. |
| 51 | /-- Finite jets of the extension agree with the original interior jets |
| 52 | (Theorem 12.5, p. 297). -/ |
| 53 | theorem closedFiniteSpatialJet_of_mem (m : ℕ) {t : ℝ} (ht : t ∈ Ioo 0 A.time) |
| 54 | (x : StandardCapSpace) : |
| 55 | spatialJet m G.closedCoefficients (t, x) = spatialJet m G.coefficients (t, x) := by |
| 56 | funext j |
| 57 | exact G.closedSpatialJet_of_mem j ht x |
| 58 | |
| 59 | set_option synthInstance.maxHeartbeats 100000 in |
| 60 | -- The Ricci domain is expressed on dependent spatial two-jets. |
| 61 | /-- All extended two-jets have invertible zeroth coefficient, including |
| 62 | the prescribed initial jet (Theorem 12.5, p. 297). -/ |
| 63 | theorem closedSpatialJet_mem_domain (P : RicciFlowCurvatureTheory.{0}) |
| 64 | (t : ℝ) (x : StandardCapSpace) : |
| 65 | spatialJet 2 G.closedCoefficients (t, x) ∈ jetRicciFlowDomain 3 := by |
| 66 | by_cases ht : t ∈ Ioo 0 A.time |
| 67 | · rw [G.closedFiniteSpatialJet_of_mem 2 ht] |
| 68 | exact G.spatialJet_mem_domain P ht x |
| 69 | · change ((twoJetProjection 3 (spatialJet 2 G.closedCoefficients (t, x))).1).IsInvertible |
| 70 | rw [twoJetProjection_spatialJet] |
| 71 | change (G.closedCoefficients (t, x)).IsInvertible |
| 72 | simp only [closedCoefficients, ht, if_false] |
| 73 | convert! g0.metric.inner_isInvertible x |
| 74 | |
| 75 | set_option synthInstance.maxHeartbeats 100000 in |
| 76 | -- The genuine Ricci operator is evaluated on the retained finite jet. |
| 77 | /-- The extension satisfies the actual Ricci equation in the interior |
| 78 | (Theorem 12.5, p. 297). -/ |
| 79 | theorem deriv_closedCoefficients_eq_operator (P : RicciFlowCurvatureTheory.{0}) |
| 80 | {t : ℝ} (ht : t ∈ Ioo 0 A.time) (x : StandardCapSpace) : |
| 81 | deriv (fun s => G.closedCoefficients (s, x)) t = |
| 82 | jetRicciFlowOperator 3 (spatialJet 2 G.closedCoefficients (t, x)) := by |
| 83 | have heq : (fun s => G.closedCoefficients (s, x)) =ᶠ[𝓝 t] |
| 84 | (fun s => G.coefficients (s, x)) := by |
| 85 | filter_upwards [isOpen_Ioo.mem_nhds ht] with s hs |
| 86 | exact G.closedCoefficients_of_mem hs x |
| 87 | rw [heq.deriv_eq, G.closedFiniteSpatialJet_of_mem 2 ht] |
| 88 | exact G.deriv_coefficients_eq_operator P ht x |
| 89 | |
| 90 | set_option synthInstance.maxHeartbeats 100000 in |
| 91 | -- The bootstrap simultaneously handles every dependent spatial-jet order. |
| 92 | /-- Every actual spatial jet is jointly within-smooth on the slab |
| 93 | including time zero (Theorem 12.5, p. 297). -/ |
| 94 | theorem contDiffOn_closedSpatialJet (P : RicciFlowCurvatureTheory.{0}) (m : ℕ) : |
| 95 | ContDiffOn ℝ ∞ (G.closedSpatialJet m) (Ico 0 A.time ×ˢ univ) := |
| 96 | contDiffOn_spatialJets_of_initial_evolution |
| 97 | (isOpen_jetRicciFlowDomain 3) (contDiffOn_jetRicciFlowOperator 3) |
| 98 | G.contDiffOn_closedCoefficients_interior (G.continuousOn_closedSpatialJet P) |
| 99 | (fun p _ => G.closedSpatialJet_mem_domain P p.1 p.2) |
| 100 | (fun p hp => G.deriv_closedCoefficients_eq_operator P hp.1 p.2) m |
| 101 | |
| 102 | set_option synthInstance.maxHeartbeats 100000 in |
| 103 | -- The coefficient equation uses the same finite-jet bootstrap. |
| 104 | /-- The actual metric coefficient field is jointly smooth through its |
| 105 | prescribed initial slice (Theorem 12.5, p. 297). -/ |
| 106 | theorem contDiffOn_closedCoefficients (P : RicciFlowCurvatureTheory.{0}) : |
| 107 | ContDiffOn ℝ ∞ G.closedCoefficients (Ico 0 A.time ×ˢ univ) := |
| 108 | contDiffOn_of_initial_spatial_jet_evolution |
| 109 | (isOpen_jetRicciFlowDomain 3) (contDiffOn_jetRicciFlowOperator 3) |
| 110 | G.contDiffOn_closedCoefficients_interior (G.continuousOn_closedSpatialJet P) |
| 111 | (fun p _ => G.closedSpatialJet_mem_domain P p.1 p.2) |
| 112 | (fun p hp => G.deriv_closedCoefficients_eq_operator P hp.1 p.2) |
| 113 | |
| 114 | set_option synthInstance.maxHeartbeats 100000 in |
| 115 | -- The endpoint derivative is evaluated in the actual finite-jet Ricci operator. |
| 116 | /-- The Ricci coefficient equation holds as a within derivative at every |
| 117 | included time, also at zero (Theorem 12.5, p. 297). -/ |
| 118 | theorem hasDerivWithinAt_closedCoefficients (P : RicciFlowCurvatureTheory.{0}) |
| 119 | {t : ℝ} (ht : t ∈ Ico 0 A.time) (x : StandardCapSpace) : |
| 120 | HasDerivWithinAt (fun s => G.closedCoefficients (s, x)) |
| 121 | (jetRicciFlowOperator 3 (spatialJet 2 G.closedCoefficients (t, x))) (Ico 0 A.time) t := |
| 122 | hasDerivWithinAt_of_initial_spatial_jet_evolution |
| 123 | (p := (t, x)) |
| 124 | (isOpen_jetRicciFlowDomain 3) (contDiffOn_jetRicciFlowOperator 3) |
| 125 | G.contDiffOn_closedCoefficients_interior (G.continuousOn_closedSpatialJet P) |
| 126 | (fun p _ => G.closedSpatialJet_mem_domain P p.1 p.2) |
| 127 | (fun p hp => G.deriv_closedCoefficients_eq_operator P hp.1 p.2) ⟨ht, mem_univ x⟩ |
| 128 | |
| 129 | end PoincareMT.M34.InteriorCoefficientLimit |