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.Basic.Restart.SpatialBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.Basic.ClosedIntervalDerivativeBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Coordinates.SpacetimeBounds.Ricci.BootstrapAdapter |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.Coordinates.SpacetimeBounds.Bootstrap.Evolution |
| 5 | |
| 6 | /-! |
| 7 | # Metric-general The actual jet evolution equation and compact jet ranges |
| 8 | |
| 9 | The fixed coefficients solve the actual Ricci operator on the interior. |
| 10 | Uniform spatial bounds and ellipticity place every finite jet in a |
| 11 | compact subset of the operator domain, including at time zero. These |
| 12 | are the evolution inputs for Morgan-Tian Theorem 12.5, p. 297. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option maxSynthPendingDepth 8 |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | namespace PoincareMT.M34.MetricFlowApproximation |
| 23 | |
| 24 | open SpacetimeBounds SpacetimeBounds.Bootstrap |
| 25 | |
| 26 | variable {ginit : RiemannianMetric 3 StandardCapSpace} {Mfamily : ℕ → Type} |
| 27 | [∀ k, TopologicalSpace (Mfamily k)] [∀ k, ChartedSpace StandardCapSpace (Mfamily k)] |
| 28 | [∀ k, IsManifold (𝓡 3) ∞ (Mfamily k)] (A : MetricFlowApproximation ginit Mfamily) |
| 29 | |
| 30 | /-- The fixed-coordinate coefficient family is ordinarily smooth on the |
| 31 | open interior time slab (Theorem 12.5, p. 297). -/ |
| 32 | theorem contDiffOn_interior_coefficients (k : ℕ) : |
| 33 | ContDiffOn ℝ ∞ (fun p : ℝ × StandardCapSpace => A.coefficients k p.1 p.2) |
| 34 | (Ioo 0 A.time ×ˢ A.source k) := |
| 35 | (A.contDiffOn_coefficients k).mono (prod_mono Ioo_subset_Icc_self (Subset.refl _)) |
| 36 | |
| 37 | /-- The spatial two-jet lies in the actual Ricci operator's elliptic |
| 38 | domain wherever the fixed chart is defined (Theorem 12.5, p. 297). -/ |
| 39 | theorem spatialJet_mem_domain (k : ℕ) (t : ℝ) {x : StandardCapSpace} |
| 40 | (hx : x ∈ A.source k) : |
| 41 | spatialJet 2 (fun p : ℝ × StandardCapSpace => A.coefficients k p.1 p.2) (t, x) ∈ |
| 42 | jetRicciFlowDomain 3 := by |
| 43 | change ((twoJetProjection 3 (spatialJet 2 |
| 44 | (fun p : ℝ × StandardCapSpace => A.coefficients k p.1 p.2) (t, x))).1).IsInvertible |
| 45 | rw [twoJetProjection_spatialJet] |
| 46 | exact ((A.flow k).metric t).isInvertible_pullbackCoefficients |
| 47 | (A.chart_invertible k _ hx).injective |
| 48 | |
| 49 | /-- The fixed metric coefficients satisfy the finite-jet Ricci equation |
| 50 | at every interior time (Theorem 12.5, p. 297). -/ |
| 51 | theorem deriv_coefficients_eq_operator (k : ℕ) {t : ℝ} (ht : t ∈ Ioo 0 A.time) |
| 52 | {x : StandardCapSpace} (hx : x ∈ A.source k) : |
| 53 | deriv (fun s => A.coefficients k s x) t = |
| 54 | jetRicciFlowOperator 3 |
| 55 | (spatialJet 2 (fun p : ℝ × StandardCapSpace => A.coefficients k p.1 p.2) (t, x)) := by |
| 56 | rw [jetRicciFlowOperator, Function.comp_apply, twoJetProjection_spatialJet] |
| 57 | exact deriv_pullbackCoefficients_eq_ricciFlowOperator (A.interiorFlow k) |
| 58 | isOpen_Ioo (A.source_isOpen k) (A.chart_smooth k) |
| 59 | (fun _ hy => A.chart_invertible k _ hy) ht hx |
| 60 | |
| 61 | set_option synthInstance.maxHeartbeats 100000 in |
| 62 | -- Dependent jet products use the instance budget of the M07 jet adapter. |
| 63 | /-- Every prolonged spatial jet remains in one compact subset of the |
| 64 | elliptic operator domain, uniformly through time zero (Theorem 12.5, p. 297). -/ |
| 65 | theorem exists_compact_spatialJet_box (P : RicciFlowCurvatureTheory.{0}) |
| 66 | {K : Set StandardCapSpace} (hK : IsCompact K) (m : ℕ) : |
| 67 | ∃ L : Set (Jet StandardCapSpace (MetricCoefficient 3) (2 + m)), |
| 68 | IsCompact L ∧ L ⊆ (baseProjection 2 m) ⁻¹' jetRicciFlowDomain 3 ∧ |
| 69 | ∀ k t, t ∈ Icc 0 A.time → ∀ x ∈ K, x ∈ A.source k → |
| 70 | spatialJet (2 + m) |
| 71 | (fun p : ℝ × StandardCapSpace => A.coefficients k p.1 p.2) (t, x) ∈ L := by |
| 72 | obtain ⟨a, _b, ha, _hb, hcoeff⟩ := A.exists_compact_ellipticity P hK |
| 73 | obtain ⟨B, hB, hbound⟩ := A.exists_compact_spatialJet_bounds P hK (2 + m) |
| 74 | obtain ⟨L, hL, hLU, hbox⟩ := exists_compact_elliptic_jet_box 3 m ha B |
| 75 | refine ⟨L, hL, hLU, ?_⟩ |
| 76 | intro k t ht x hx hsource |
| 77 | apply hbox |
| 78 | · apply (pi_norm_le_iff_of_nonneg (zero_le_one.trans hB)).mpr |
| 79 | intro j |
| 80 | exact hbound j (by omega) k t ht x hx hsource |
| 81 | · exact fun v => (hcoeff k t ht x hx hsource v).1 |
| 82 | |
| 83 | set_option synthInstance.maxHeartbeats 100000 in |
| 84 | -- The prolonged operator is valued in dependent multilinear-map spaces. |
| 85 | /-- The time derivative of every spatial jet has a compact-uniform bound |
| 86 | on the interior (Theorem 12.5, p. 297). -/ |
| 87 | theorem exists_compact_timeDeriv_spatialJet_bound (P : RicciFlowCurvatureTheory.{0}) |
| 88 | {K : Set StandardCapSpace} (hK : IsCompact K) (m : ℕ) : |
| 89 | ∃ C : ℝ, 0 ≤ C ∧ ∀ k t, t ∈ Ioo 0 A.time → |
| 90 | ∀ x ∈ K, x ∈ A.source k → |
| 91 | ‖deriv (fun s => iteratedFDeriv ℝ m (A.coefficients k s) x) t‖ ≤ C := by |
| 92 | obtain ⟨L, hL, hLU, hrange⟩ := A.exists_compact_spatialJet_box P hK m |
| 93 | let Q := operator 2 (jetRicciFlowOperator 3) m |
| 94 | have hQ := contDiffOn_operator (isOpen_jetRicciFlowDomain 3) |
| 95 | (contDiffOn_jetRicciFlowOperator 3) m |
| 96 | obtain ⟨C, hC⟩ := hL.exists_bound_of_continuousOn (f := Q) |
| 97 | (hQ.continuousOn.mono hLU) |
| 98 | refine ⟨max C 0, le_max_right _ _, ?_⟩ |
| 99 | intro k t ht x hx hsource |
| 100 | have heq := deriv_spatialJet_eq_operator (isOpen_jetRicciFlowDomain 3) |
| 101 | (contDiffOn_jetRicciFlowOperator 3) (A.contDiffOn_interior_coefficients k) |
| 102 | isOpen_Ioo (A.source_isOpen k) |
| 103 | (fun z hz => A.spatialJet_mem_domain k z.1 hz.2) |
| 104 | (fun z hz => A.deriv_coefficients_eq_operator k hz.1 hz.2) m (z := (t, x)) ⟨ht, hsource⟩ |
| 105 | rw [heq] |
| 106 | exact (hC _ (hrange k t (Ioo_subset_Icc_self ht) x hx hsource)).trans (le_max_left _ _) |
| 107 | |
| 108 | /-- Every spatial jet approaches its prescribed initial value at a uniform |
| 109 | linear rate on compact sets (Theorem 12.5, p. 297). -/ |
| 110 | theorem exists_compact_spatialJet_initial_modulus (P : RicciFlowCurvatureTheory.{0}) |
| 111 | {K : Set StandardCapSpace} (hK : IsCompact K) (m : ℕ) : |
| 112 | ∃ C : ℝ, 0 ≤ C ∧ ∀ k t, t ∈ Icc 0 A.time → |
| 113 | ∀ x ∈ K, x ∈ A.source k → |
| 114 | ‖iteratedFDeriv ℝ m (A.coefficients k t) x - |
| 115 | iteratedFDeriv ℝ m ginit.euclideanCoefficients x‖ ≤ C * t := by |
| 116 | obtain ⟨C, hC, hbound⟩ := A.exists_compact_timeDeriv_spatialJet_bound P hK m |
| 117 | refine ⟨C, hC, ?_⟩ |
| 118 | intro k t ht x hx hsource |
| 119 | rw [← A.spatialJet_zero k m hsource] |
| 120 | have h : ‖iteratedFDeriv ℝ m (A.coefficients k t) x - |
| 121 | iteratedFDeriv ℝ m (A.coefficients k 0) x‖ ≤ C * |t - 0| := by |
| 122 | apply norm_sub_le_of_interior_deriv_bound_Icc |
| 123 | (f := fun s => iteratedFDeriv ℝ m (A.coefficients k s) x) A.time_pos hC |
| 124 | · exact A.continuousOn_spatialJet_time k m hsource |
| 125 | · intro s hs |
| 126 | exact A.differentiableAt_spatialJet_time k m hsource hs |
| 127 | · exact fun s hs => hbound k s hs x hx hsource |
| 128 | · exact ⟨le_rfl, A.time_pos.le⟩ |
| 129 | · exact ht |
| 130 | simpa only [sub_zero, abs_of_nonneg ht.1] using h |
| 131 | |
| 132 | end PoincareMT.M34.MetricFlowApproximation |