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.Subsequence |
| 2 | import PoincareLib.Topology.Order.TimeInterval |
| 3 | |
| 4 | /-! |
| 5 | # Local control before pointed extraction |
| 6 | |
| 7 | The frozen hypotheses give eventual control separately at each radius. A |
| 8 | single diagonal subsequence makes all earlier integer-radius bounds and |
| 9 | compactness assertions hold at each stage, together with the fixed volume |
| 10 | lower bound. The ordinary product-flow vector field permits identity |
| 11 | spacetime embeddings, so the two-time curvature bound also controls fixed |
| 12 | zero-time cylinders. |
| 13 | |
| 14 | This prepares the local inputs to Morgan--Tian, Theorem 3.28, p. 51, and |
| 15 | Proposition 5.14 and Theorem 5.15, pp. 90--92. It does not supply the local Shi |
| 16 | estimate or construct normal charts, a limit carrier, or a limit metric. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | /-- The identity embedding satisfies the frozen vector-field condition. -/ |
| 26 | def SmoothSpacetimeEmbedding.refl |
| 27 | {n : ℕ} {T' T : ℝ} {C : FlowCarrier n} |
| 28 | (F : BasedFlow n T' T C) (domain : Set (ℝ × C.carrier)) : |
| 29 | SmoothSpacetimeEmbedding F F domain where |
| 30 | toFun := id |
| 31 | time_preserving := fun _ _ => rfl |
| 32 | injective_on := Function.injective_id.injOn |
| 33 | inverse := id |
| 34 | left_inverse := fun _ _ => rfl |
| 35 | right_inverse := fun _ _ => rfl |
| 36 | smooth_on := by |
| 37 | let := C.topologicalSpace |
| 38 | let := C.chartedSpace |
| 39 | let := C.isManifold |
| 40 | exact contMDiffOn_id |
| 41 | smooth_inverse_on := by |
| 42 | let := C.topologicalSpace |
| 43 | let := C.chartedSpace |
| 44 | let := C.isManifold |
| 45 | exact contMDiffOn_id |
| 46 | vector_field_compatible := by |
| 47 | let := C.topologicalSpace |
| 48 | let := C.chartedSpace |
| 49 | let := C.isManifold |
| 50 | intro t x |
| 51 | simp [F.spacetimeVectorField_spatial_zero, mfderiv_const] |
| 52 | |
| 53 | namespace PointedRicciFlowCompactnessHypotheses |
| 54 | |
| 55 | /-- The two-time hypothesis controls identity cylinders throughout every |
| 56 | interior time set with a bound independent of that time set. -/ |
| 57 | theorem exists_identity_cylinder_control |
| 58 | {n : ℕ} {T' T : ℝ} |
| 59 | (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 60 | (A : ℝ) (hA : 0 < A) : |
| 61 | ∃ K : ℝ, 0 ≤ K ∧ ∀ᶠ k in Filter.atTop, |
| 62 | ∀ I : Set ℝ, I ⊆ Set.Ioo T' T → |
| 63 | CurvatureBoundOn (H.sequence.flow k) (H.sequence.flow k) A I |
| 64 | (SmoothSpacetimeEmbedding.refl (H.sequence.flow k) |
| 65 | (I ×ˢ (H.sequence.flow k).zeroBall A)) K := by |
| 66 | obtain ⟨K, hK, hbound⟩ := H.all_time_curvature_control_on_zero_ball A hA |
| 67 | refine ⟨K, hK, hbound.mono ?_⟩ |
| 68 | intro k hk I hI |
| 69 | exact ⟨hK, fun t ht x hx => hk t (hI ht) x hx⟩ |
| 70 | |
| 71 | /-- Uniformize compactness, two-time curvature, and noncollapse on all earlier |
| 72 | integer-radius stages using one strictly increasing subsequence. -/ |
| 73 | theorem exists_uniform_local_control |
| 74 | {n : ℕ} {T' T : ℝ} |
| 75 | (H : PointedRicciFlowCompactnessHypotheses n T' T) : |
| 76 | ∃ r₀ κ : ℝ, 0 < r₀ ∧ 0 < κ ∧ |
| 77 | ∃ K : ℕ → ℝ, (∀ j, 0 ≤ K j) ∧ |
| 78 | ∃ φ : ℕ → ℕ, StrictMono φ ∧ ∀ k, |
| 79 | ENNReal.ofReal (κ * r₀ ^ n) ≤ (H.sequence.flow (φ k)).zeroBallVolume r₀ ∧ |
| 80 | ∀ j, j ≤ k → |
| 81 | let C := H.sequence.carrier (φ k) |
| 82 | let F := H.sequence.flow (φ k) |
| 83 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 84 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 85 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 86 | IsCompact (closure (F.zeroBall (j + 1))) ∧ |
| 87 | ∀ t₀ ∈ Set.Ioo T' T, ∀ t ∈ Set.Ioo T' T, |
| 88 | ∀ x ∈ F.ballAt t₀ (j + 1), |
| 89 | (F.flow.connection t).curvatureTensorNorm x ≤ K j := by |
| 90 | obtain ⟨r₀, κ, hr₀, hκ, hvolume⟩ := H.noncollapsing |
| 91 | choose K hK hbound using fun j : ℕ => |
| 92 | H.all_time_curvature_control (j + 1) (by positivity) |
| 93 | have hlocal (j : ℕ) := |
| 94 | (H.zero_time_ball_compact (j + 1) (by positivity)).and (hbound j) |
| 95 | obtain ⟨φ, hφ, hstage⟩ := |
| 96 | Poincare.exists_strictMono_forall_le_of_eventually |
| 97 | (fun j => hvolume.and (hlocal j)) |
| 98 | exact ⟨r₀, κ, hr₀, hκ, K, hK, φ, hφ, fun k => |
| 99 | ⟨(hstage k 0 (Nat.zero_le k)).1, fun j hj => (hstage k j hj).2⟩⟩ |
| 100 | |
| 101 | /-- The diagonal sequence has compact zero-time balls and controlled identity |
| 102 | cylinders on each compact time window. Both the volume scale and the curvature |
| 103 | constant for a radius are independent of the window. -/ |
| 104 | theorem exists_controlled_exhaustion_cylinders |
| 105 | {n : ℕ} {T' T : ℝ} |
| 106 | (H : PointedRicciFlowCompactnessHypotheses n T' T) : |
| 107 | ∃ r₀ κ : ℝ, 0 < r₀ ∧ 0 < κ ∧ |
| 108 | ∃ K : ℕ → ℝ, (∀ j, 0 ≤ K j) ∧ |
| 109 | ∃ φ : ℕ → ℕ, StrictMono φ ∧ ∀ k, |
| 110 | ENNReal.ofReal (κ * r₀ ^ n) ≤ (H.sequence.flow (φ k)).zeroBallVolume r₀ ∧ |
| 111 | ∀ j, j ≤ k → |
| 112 | (let C := H.sequence.carrier (φ k) |
| 113 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 114 | IsCompact (closure ((H.sequence.flow (φ k)).zeroBall (j + 1)))) ∧ |
| 115 | ∀ m : ℕ, |
| 116 | CurvatureBoundOn (H.sequence.flow (φ k)) (H.sequence.flow (φ k)) |
| 117 | (j + 1) (Poincare.TimeInterval.exhaustion T' T m) |
| 118 | (SmoothSpacetimeEmbedding.refl (H.sequence.flow (φ k)) |
| 119 | (Poincare.TimeInterval.exhaustion T' T m ×ˢ |
| 120 | (H.sequence.flow (φ k)).zeroBall (j + 1))) (K j) := by |
| 121 | obtain ⟨r₀, κ, hr₀, hκ, K, hK, φ, hφ, hstage⟩ := H.exists_uniform_local_control |
| 122 | refine ⟨r₀, κ, hr₀, hκ, K, hK, φ, hφ, fun k => ⟨(hstage k).1, ?_⟩⟩ |
| 123 | intro j hj |
| 124 | obtain ⟨hcompact, hbound⟩ := (hstage k).2 j hj |
| 125 | refine ⟨hcompact, fun m => ⟨hK j, ?_⟩⟩ |
| 126 | intro t ht x hx |
| 127 | exact hbound 0 ⟨H.time_bounds.1, H.time_bounds.2⟩ t |
| 128 | (Poincare.TimeInterval.exhaustion_subset_Ioo H.time_bounds.1 H.time_bounds.2 m ht) x hx |
| 129 | |
| 130 | end PointedRicciFlowCompactnessHypotheses |
| 131 | |
| 132 | end PoincareMT |
| 133 |