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.Compactness.Ancient.Coordinates.TimeWindows |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Coordinates.SpacetimeBounds.Bounds |
| 3 | |
| 4 | /-! |
| 5 | # Spacetime estimates in reference charts on arbitrary finite windows |
| 6 | |
| 7 | The charts are chosen on one reference interval. A compactness hypothesis on |
| 8 | another interval gives curvature control at the same spatial images, hence |
| 9 | extends those charts with uniformly weakened ellipticity constants. The |
| 10 | existing spacetime estimates apply to these extensions and therefore to the |
| 11 | original coordinate maps. |
| 12 | |
| 13 | Reference: Kleiner--Lott, Corollary 44.1, pp. 2682--2683, and Appendix E, |
| 14 | pp. 2848--2849. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option synthInstance.maxHeartbeats 100000 |
| 20 | set_option maxSynthPendingDepth 12 |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle Topology |
| 24 | |
| 25 | namespace PoincareMT.PointedRicciFlowCompactnessHypotheses |
| 26 | |
| 27 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 28 | FlowCarrier.isManifold FlowCarrier.t2Space |
| 29 | |
| 30 | /-- The larger-window M07 curvature bound extends every reference cover with |
| 31 | constants independent of the sequence index and the choice of its charts. -/ |
| 32 | theorem eventually_referenceNormalChartCover_extension |
| 33 | {n : ℕ} {T' T S' S : ℝ} (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 34 | (hS : S' < 0 ∧ 0 < S) |
| 35 | {A R ρ a b : ℝ} {N : ℕ} (hA : 0 < A) (hρ : 0 < ρ) |
| 36 | (hρR : 2 * ρ < R) (ha : 0 < a) (hb : 0 < b) : |
| 37 | ∃ a' b' : ℝ, 0 < a' ∧ 0 < b' ∧ ∀ᶠ k in atTop, |
| 38 | ∀ cover : NormalChartCover (H.sequence.flow k).metricAt |
| 39 | (H.sequence.flow k).base S' S A R ρ a b N, |
| 40 | ∃ wide : NormalChartCover (H.sequence.flow k).metricAt |
| 41 | (H.sequence.flow k).base T' T A R ρ a' b' N, |
| 42 | wide.chart = cover.chart := by |
| 43 | have hR : 0 < R := by linarith |
| 44 | obtain ⟨K, hK, hcurv⟩ := H.all_time_curvature_control_on_zero_ball |
| 45 | (A + R) (add_pos hA hR) |
| 46 | let a' := Real.exp (-(2 * ((n : ℝ) ^ 3 * K)) * (T - T')) * a |
| 47 | let b' := Real.exp ((2 * ((n : ℝ) ^ 3 * K)) * (T - T')) * b |
| 48 | refine ⟨a', b', mul_pos (Real.exp_pos _) ha, mul_pos (Real.exp_pos _) hb, ?_⟩ |
| 49 | filter_upwards [hcurv] with k hk |
| 50 | intro cover |
| 51 | exact ⟨cover.extendTimeOfCurvatureBoundOnBall hS H.time_bounds (Subset.refl _) |
| 52 | hA.le hR.le hρR ha.le hb.le hK hk, rfl⟩ |
| 53 | |
| 54 | /-- Reference charts have eventual uniform ellipticity on the entire larger |
| 55 | window, not only on the interval on which the charts were selected. -/ |
| 56 | theorem eventually_referenceNormalChartCover_ellipticity |
| 57 | {n : ℕ} {T' T S' S : ℝ} (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 58 | (hS : S' < 0 ∧ 0 < S) |
| 59 | {A R ρ a b : ℝ} {N : ℕ} (hA : 0 < A) (hρ : 0 < ρ) |
| 60 | (hρR : 2 * ρ < R) (ha : 0 < a) (hb : 0 < b) : |
| 61 | ∃ a' b' : ℝ, 0 < a' ∧ 0 < b' ∧ ∀ᶠ k in atTop, |
| 62 | ∀ cover : NormalChartCover (H.sequence.flow k).metricAt |
| 63 | (H.sequence.flow k).base S' S A R ρ a b N, |
| 64 | ∀ i, ∀ t ∈ Ioo T' T, ∀ x ∈ Metric.closedBall 0 (2 * ρ), ∀ v, |
| 65 | a' * ‖v‖ ^ 2 ≤ ((H.sequence.flow k).metricAt t).pullbackCoefficients |
| 66 | (cover.chart i) x v v ∧ |
| 67 | ((H.sequence.flow k).metricAt t).pullbackCoefficients (cover.chart i) x v v ≤ |
| 68 | b' * ‖v‖ ^ 2 := by |
| 69 | obtain ⟨a', b', ha', hb', hext⟩ := |
| 70 | H.eventually_referenceNormalChartCover_extension hS (N := N) hA hρ hρR ha hb |
| 71 | refine ⟨a', b', ha', hb', ?_⟩ |
| 72 | filter_upwards [hext] with k hk |
| 73 | intro cover |
| 74 | obtain ⟨wide, hchart⟩ := hk cover |
| 75 | simpa only [hchart] using wide.coefficients |
| 76 | |
| 77 | /-- All spacetime jets of the reference charts are bounded on every compact |
| 78 | time set in the larger window. The reference chart maps are retained exactly. -/ |
| 79 | theorem eventually_referenceNormalChartCover_spacetime_jet_bound |
| 80 | {n : ℕ} {T' T S' S : ℝ} (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 81 | (hShi : LocalCurvatureDerivativeEstimates.{0}) (hS : S' < 0 ∧ 0 < S) |
| 82 | {I : Set ℝ} (hIcompact : IsCompact I) (hI : I ⊆ Ioo T' T) |
| 83 | {A R ρ a b : ℝ} {N : ℕ} (hA : 0 < A) (hρ : 0 < ρ) |
| 84 | (hρR : 2 * ρ < R) (ha : 0 < a) (hb : 0 < b) (m : ℕ) : |
| 85 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in atTop, |
| 86 | ∀ cover : NormalChartCover (H.sequence.flow k).metricAt |
| 87 | (H.sequence.flow k).base S' S A R ρ a b N, |
| 88 | ∀ i, ∀ t ∈ I, ∀ x ∈ Metric.closedBall 0 ρ, |
| 89 | ‖iteratedFDeriv ℝ m (fun z : ℝ × EuclideanSpace ℝ (Fin n) => |
| 90 | ((H.sequence.flow k).metricAt z.1).pullbackCoefficients |
| 91 | (cover.chart i) z.2) (t, x)‖ ≤ B := by |
| 92 | obtain ⟨a', b', ha', hb', hext⟩ := |
| 93 | H.eventually_referenceNormalChartCover_extension hS (N := N) hA hρ hρR ha hb |
| 94 | obtain ⟨B, hB, hjets⟩ := |
| 95 | H.eventually_normalChartCover_spacetime_jet_bound_of_local_derivative_estimates |
| 96 | hShi hIcompact hI (N := N) hA hρ hρR ha' hb'.le m |
| 97 | refine ⟨B, hB, ?_⟩ |
| 98 | filter_upwards [hext, hjets] with k hextk hjetsk |
| 99 | intro cover |
| 100 | obtain ⟨wide, hchart⟩ := hextk cover |
| 101 | simpa only [hchart] using hjetsk wide |
| 102 | |
| 103 | /-- Smoothness on a finite time window uses the actual source flow and the |
| 104 | same reference chart; no time-window coefficient extension is needed. -/ |
| 105 | theorem referenceNormalChartCover_contDiffOn |
| 106 | {n : ℕ} {T' T S' S : ℝ} (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 107 | {A R ρ a b : ℝ} {N : ℕ} (k : ℕ) |
| 108 | (cover : NormalChartCover (H.sequence.flow k).metricAt |
| 109 | (H.sequence.flow k).base S' S A R ρ a b N) (i : Fin (N + 1)) : |
| 110 | ContDiffOn ℝ ∞ (fun z : ℝ × EuclideanSpace ℝ (Fin n) => |
| 111 | ((H.sequence.flow k).metricAt z.1).pullbackCoefficients (cover.chart i) z.2) |
| 112 | (Ioo T' T ×ˢ Metric.ball 0 R) := by |
| 113 | apply (H.sequence.flow k).flow.contDiffOn_pullbackCoefficients |
| 114 | isOpen_Ioo Metric.isOpen_ball |
| 115 | simpa only [cover.source i] using (cover.chart i).contMDiffOn |
| 116 | |
| 117 | end PoincareMT.PointedRicciFlowCompactnessHypotheses |