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