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.TerminalCutoffBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Basic.CutoffDoubles |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Flow.DoubleFlows |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Limits.CompactDerivativeBounds |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Construction.Basic.Restart.Approximation |
| 6 | |
| 7 | /-! |
| 8 | # A common-time compact approximation of the terminal metric |
| 9 | |
| 10 | The compact cutoff metrics have uniform initial curvature jets. Compact |
| 11 | local existence and continuation give one positive closed time slab; |
| 12 | the initial derivative estimates give all uniform higher bounds there. |
| 13 | The exact retained pullbacks form the metric-general approximation |
| 14 | interface for Morgan-Tian Theorem 12.5, pp. 296-297. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | /-- The concrete sequence of cutoff radii lies in the collar range |
| 25 | (Theorem 12.5, pp. 296-297). -/ |
| 26 | theorem terminalCutoffRadius_ge_three (k : ℕ) : (3 : ℝ) ≤ (k : ℝ) + 5 := by |
| 27 | linarith [Nat.cast_nonneg (α := ℝ) k] |
| 28 | |
| 29 | /-- The actual compact carriers used to approximate the terminal metric |
| 30 | (Theorem 12.5, pp. 296-297). -/ |
| 31 | abbrev TerminalCutoffDouble (g0 : StandardInitialMetric) (k : ℕ) := |
| 32 | CutoffDouble g0.cylindrical_end (terminalCutoffRadius_ge_three k) |
| 33 | |
| 34 | namespace PartialFlowTerminalJets |
| 35 | |
| 36 | variable {g0 : StandardInitialMetric} {F : PartialStandardCapFlow g0} {S : ℝ} |
| 37 | (L : PartialFlowTerminalJets F S) (P : M34StandardCapPredecessors) |
| 38 | (E0 : StandardCapEstimate g0) {B : ℝ} (hS : 0 < S) (hSF : S ≤ F.lifetime) (hB : 0 < B) |
| 39 | (hfull : ∀ t ∈ Ico 0 S, ∀ x : StandardCapSpace, |
| 40 | (F.flow.connection t).curvatureTensorNorm x ≤ B) |
| 41 | |
| 42 | /-- One initial intrinsic bound applies to every cutoff double and every |
| 43 | compatible connection (Theorem 12.5, pp. 296-297). -/ |
| 44 | theorem cutoffDouble_curvatureDerivative_bound (m : ℕ) : |
| 45 | ∃ C : ℝ, 0 ≤ C ∧ ∀ (R : ℝ) (hR : 3 ≤ R), |
| 46 | ∀ D : LeviCivitaData (cutoffDoubleMetric g0.cylindrical_end |
| 47 | (L.metric P.curvature E0 hS hSF hB hfull) hR), |
| 48 | ∀ q : CutoffDouble g0.cylindrical_end hR, D.curvatureDerivativeNorm m q ≤ C := by |
| 49 | obtain ⟨C, hC, hbound⟩ := L.cutoffMetric_curvatureDerivative_bound |
| 50 | P.curvature E0 hS hSF hB hfull m |
| 51 | refine ⟨C, hC, fun R hR D q => ?_⟩ |
| 52 | let h := L.metric P.curvature E0 hS hSF hB hfull |
| 53 | let Dh := (cutoffMetric g0.cylindrical_end h R).euclideanLeviCivitaData |
| 54 | exact cutoffDouble_curvatureDerivative_le g0.cylindrical_end h hR Dh m (hbound R Dh) D q |
| 55 | |
| 56 | /-- Each finite initial derivative range is uniformly bounded before |
| 57 | choosing the compact cutoff double (Theorem 12.5, pp. 296-297). -/ |
| 58 | theorem cutoffDouble_initialDerivative_bounds_upto (k : ℕ) : |
| 59 | ∃ C : ℝ, 0 ≤ C ∧ ∀ (R : ℝ) (hR : 3 ≤ R), |
| 60 | ∀ D : LeviCivitaData (cutoffDoubleMetric g0.cylindrical_end |
| 61 | (L.metric P.curvature E0 hS hSF hB hfull) hR), |
| 62 | ∀ j ≤ k, ∀ q : CutoffDouble g0.cylindrical_end hR, D.curvatureDerivativeNorm j q ≤ C := by |
| 63 | induction k with |
| 64 | | zero => |
| 65 | obtain ⟨C, hC, hb⟩ := L.cutoffDouble_curvatureDerivative_bound P E0 hS hSF hB hfull 0 |
| 66 | refine ⟨C, hC, fun R hR D j hj q => ?_⟩ |
| 67 | have hj0 : j = 0 := by omega |
| 68 | subst j |
| 69 | exact hb R hR D q |
| 70 | | succ k ih => |
| 71 | obtain ⟨C, hC, hb⟩ := ih |
| 72 | obtain ⟨A, hA, ha⟩ := L.cutoffDouble_curvatureDerivative_bound P E0 hS hSF hB hfull (k + 1) |
| 73 | refine ⟨max C A, le_max_of_le_left hC, fun R hR D j hj q => ?_⟩ |
| 74 | by_cases hjk : j ≤ k |
| 75 | · exact (hb R hR D j hjk q).trans (le_max_left _ _) |
| 76 | · have hjs : j = k + 1 := by omega |
| 77 | subst j |
| 78 | exact (ha R hR D q).trans (le_max_right _ _) |
| 79 | |
| 80 | /-- All compact terminal approximations evolve on one positive closed |
| 81 | slab with a common full-curvature bound (Theorem 12.5, pp. 296-297). -/ |
| 82 | theorem cutoffDouble_flows_exist : |
| 83 | ∃ τ K : ℝ, 0 < τ ∧ 0 < K ∧ ∀ (R : ℝ) (hR : 3 ≤ R), |
| 84 | ∃ H : RicciFlow 3 (CutoffDouble g0.cylindrical_end hR) (Icc 0 τ), |
| 85 | H.metric 0 = cutoffDoubleMetric g0.cylindrical_end |
| 86 | (L.metric P.curvature E0 hS hSF hB hfull) hR ∧ |
| 87 | ∀ t ∈ Icc 0 τ, ∀ q : CutoffDouble g0.cylindrical_end hR, |
| 88 | (H.connection t).curvatureTensorNorm q ≤ K := by |
| 89 | obtain ⟨A, hA, hbound⟩ := L.cutoffDouble_curvatureDerivative_bound P E0 hS hSF hB hfull 0 |
| 90 | let C := A + 1 |
| 91 | have hC : 0 < C := by dsimp [C]; linarith |
| 92 | let τ : ℝ := 1 / (23328 * C) |
| 93 | have hτ : 0 < τ := by dsimp [τ]; positivity |
| 94 | have hsmall : 16 * (3 : ℝ) ^ 6 * C * τ ≤ 1 / 2 := by |
| 95 | have hCne : C ≠ 0 := ne_of_gt hC |
| 96 | dsimp [τ] |
| 97 | norm_num |
| 98 | field_simp |
| 99 | nlinarith |
| 100 | refine ⟨τ, 2 * C, hτ, by positivity, fun R hR => ?_⟩ |
| 101 | let h := cutoffDoubleMetric g0.cylindrical_end (L.metric P.curvature E0 hS hSF hB hfull) hR |
| 102 | obtain ⟨D⟩ := exists_leviCivitaData h |
| 103 | obtain ⟨H, hH, hnorm⟩ := exists_compactFlow_on_small_slab |
| 104 | (P.local_flow 3 (CutoffDouble g0.cylindrical_end hR)) h D hC hτ hsmall (fun q => by |
| 105 | rw [← D.curvatureDerivativeNorm_zero] |
| 106 | exact (hbound R hR D q).trans (by dsimp [C]; linarith)) |
| 107 | exact ⟨H, hH, hnorm⟩ |
| 108 | |
| 109 | /-- All higher curvature derivatives remain uniformly bounded on the |
| 110 | same slab, including its initial endpoint (Theorem 12.5, pp. 296-297). -/ |
| 111 | theorem cutoffDouble_flow_derivative_bounds {T K : ℝ} (hT : 0 < T) (hK : 0 < K) (k : ℕ) : |
| 112 | ∃ C : ℝ, 0 < C ∧ ∀ (R : ℝ) (hR : 3 ≤ R) |
| 113 | (H : RicciFlow 3 (CutoffDouble g0.cylindrical_end hR) (Icc 0 T)), |
| 114 | H.metric 0 = cutoffDoubleMetric g0.cylindrical_end |
| 115 | (L.metric P.curvature E0 hS hSF hB hfull) hR → |
| 116 | (∀ t ∈ Icc 0 T, ∀ q : CutoffDouble g0.cylindrical_end hR, |
| 117 | (H.connection t).curvatureTensorNorm q ≤ K) → |
| 118 | ∀ t ∈ Icc 0 T, ∀ q : CutoffDouble g0.cylindrical_end hR, |
| 119 | (H.connection t).curvatureDerivativeNorm k q ≤ C := by |
| 120 | obtain ⟨A, _hA, hA⟩ := L.cutoffDouble_initialDerivative_bounds_upto P E0 hS hSF hB hfull k |
| 121 | have hKA : 0 < max K A := hK.trans_le (le_max_left _ _) |
| 122 | obtain ⟨C, hC, hest⟩ := compact_initial_derivative_bound P.curvature 3 k hKA hT |
| 123 | refine ⟨C, hC, fun R hR H hH hcurv => ?_⟩ |
| 124 | apply hest (CutoffDouble g0.cylindrical_end hR) H |
| 125 | · exact fun t ht q => (hcurv t ht q).trans (le_max_left _ _) |
| 126 | · have hinit : ∀ D : LeviCivitaData (H.metric 0), ∀ j ≤ k, |
| 127 | ∀ q : CutoffDouble g0.cylindrical_end hR, D.curvatureDerivativeNorm j q ≤ A := by |
| 128 | rw [hH] |
| 129 | exact hA R hR |
| 130 | exact fun j hj q => (hinit (H.connection 0) j hj q).trans (le_max_right _ _) |
| 131 | |
| 132 | /-- The compact cutoff flows fill the actual metric-general |
| 133 | approximation interface for the terminal metric |
| 134 | (Theorem 12.5, pp. 296-297). -/ |
| 135 | theorem metricFlowApproximation_exists : |
| 136 | Nonempty (MetricFlowApproximation (L.metric P.curvature E0 hS hSF hB hfull) |
| 137 | (TerminalCutoffDouble g0)) := by |
| 138 | classical |
| 139 | obtain ⟨T, K, hT, hK, hflows⟩ := L.cutoffDouble_flows_exist P E0 hS hSF hB hfull |
| 140 | choose H hinit hcurv using fun k : ℕ => hflows ((k : ℝ) + 5) (terminalCutoffRadius_ge_three k) |
| 141 | choose C hC hderiv using fun m => |
| 142 | L.cutoffDouble_flow_derivative_bounds P E0 hS hSF hB hfull hT hK m |
| 143 | refine ⟨{ |
| 144 | time := T |
| 145 | time_pos := hT |
| 146 | flow := H |
| 147 | source := fun k => endTruncation g0.cylindrical_end (((k : ℝ) + 5) - 1) |
| 148 | source_isOpen := fun k => endTruncation_isOpen _ (by linarith [Nat.cast_nonneg (α := ℝ) k]) |
| 149 | chart := fun k => cutoffDoubleChart g0.cylindrical_end (terminalCutoffRadius_ge_three k) false |
| 150 | chart_smooth := fun k => cutoffDoubleChart_contMDiffOn _ _ _ |
| 151 | chart_invertible := fun k x hx => cutoffDoubleChart_mfderiv_isInvertible _ _ _ hx |
| 152 | initial_pullback := ?_ |
| 153 | compact_sources := ?_ |
| 154 | curvature_bound := C |
| 155 | bound_pos := hC |
| 156 | curvature_le := fun m k => hderiv m ((k : ℝ) + 5) (terminalCutoffRadius_ge_three k) |
| 157 | (H k) (hinit k) (hcurv k) }⟩ |
| 158 | · intro k x hx |
| 159 | rw [hinit k] |
| 160 | exact cutoffDoubleMetric_initial_pullback _ _ _ _ hx |
| 161 | · intro K hK |
| 162 | have heq (k : ℕ) : ((k : ℝ) + 5) - 1 = (k : ℝ) + 4 := by ring |
| 163 | simpa only [heq] using eventually_compact_subset_cutoff_source g0.cylindrical_end hK |
| 164 | |
| 165 | end PartialFlowTerminalJets |
| 166 | end PoincareMT.M34 |