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.Riemannian.Comparison.Covering |
| 2 | import PoincareLib.Geometry.Riemannian.Curvature.Bounds.Ricci |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.SectionalBounds |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence |
| 5 | |
| 6 | /-! |
| 7 | # Uniform covers of controlled source balls |
| 8 | |
| 9 | The frozen M07 hypotheses supply eventual precompactness and curvature bounds |
| 10 | on enlarged zero-time balls. Local comparison then gives a uniform number of |
| 11 | centers at each positive covering radius, without source completeness. |
| 12 | |
| 13 | Reference: Morgan--Tian, Proposition 5.14, pp. 90--91, using Theorem 5.6, |
| 14 | pp. 86--87. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | namespace PoincareMT.PointedRicciFlowCompactnessHypotheses |
| 24 | |
| 25 | /-- The source zero-time balls eventually admit internal covers of uniformly |
| 26 | bounded cardinality, for every fixed pair of positive radii. -/ |
| 27 | theorem eventually_exists_uniform_finset_cover |
| 28 | {n : ℕ} {T' T : ℝ} |
| 29 | (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 30 | {A δ : ℝ} (hA : 0 < A) (hδ : 0 < δ) : |
| 31 | ∃ N : ℕ, ∀ᶠ k in atTop, |
| 32 | ∃ S : Finset (H.sequence.carrier k).carrier, |
| 33 | (↑S : Set (H.sequence.carrier k).carrier) ⊆ (H.sequence.flow k).zeroBall A ∧ |
| 34 | S.card ≤ N ∧ |
| 35 | (H.sequence.flow k).zeroBall A ⊆ |
| 36 | ⋃ x ∈ S, (H.sequence.carrier k).metricBall |
| 37 | ((H.sequence.flow k).metricAt 0) x δ := by |
| 38 | classical |
| 39 | by_cases hn : n = 0 |
| 40 | · subst n |
| 41 | refine ⟨1, Eventually.of_forall fun k => ?_⟩ |
| 42 | let C := H.sequence.carrier k |
| 43 | let F := H.sequence.flow k |
| 44 | let : TopologicalSpace C.carrier := C.topologicalSpace |
| 45 | let : ChartedSpace (EuclideanSpace ℝ (Fin 0)) C.carrier := C.chartedSpace |
| 46 | let : IsManifold (𝓡 0) ∞ C.carrier := C.isManifold |
| 47 | let : Subsingleton C.carrier := C.subsingleton_zero |
| 48 | refine ⟨{F.base}, ?_, by simp, ?_⟩ |
| 49 | · intro x hx |
| 50 | have hxbase : x = F.base := by simpa only [Finset.mem_coe, Finset.mem_singleton] using hx |
| 51 | subst x |
| 52 | change (F.metricAt 0).edist F.base F.base < ENNReal.ofReal A |
| 53 | simpa only [RiemannianMetric.edist, Manifold.riemannianEDist_self] using |
| 54 | ENNReal.ofReal_pos.mpr hA |
| 55 | · intro x _ |
| 56 | refine mem_iUnion₂.mpr ⟨F.base, by simp, ?_⟩ |
| 57 | have hx : x = F.base := Subsingleton.elim _ _ |
| 58 | subst x |
| 59 | change (F.metricAt 0).edist F.base F.base < ENNReal.ofReal δ |
| 60 | simpa only [RiemannianMetric.edist, Manifold.riemannianEDist_self] using |
| 61 | ENNReal.ofReal_pos.mpr hδ |
| 62 | by_cases hδA : δ ≤ A |
| 63 | · obtain ⟨K, hK, hcurv⟩ := H.all_time_curvature_control_on_zero_ball (5 * A) (by positivity) |
| 64 | refine ⟨⌈RiemannianMetric.modelVolume n K (3 * A) / |
| 65 | RiemannianMetric.modelVolume n K (δ / 2)⌉₊, ?_⟩ |
| 66 | filter_upwards [hcurv, H.zero_time_ball_compact (5 * A) (by positivity)] with k hk hcompact |
| 67 | let C := H.sequence.carrier k |
| 68 | let F := H.sequence.flow k |
| 69 | let : TopologicalSpace C.carrier := C.topologicalSpace |
| 70 | let : MeasurableSpace C.carrier := C.measurableSpace |
| 71 | let : BorelSpace C.carrier := C.borelSpace |
| 72 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 73 | let : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 74 | let : T3Space C.carrier := C.t3Space |
| 75 | let : T2Space C.carrier := C.t2Space |
| 76 | let : SecondCountableTopology C.carrier := C.secondCountable |
| 77 | have hRic : ∀ x ∈ (F.metricAt 0).ball F.base (5 * A), |
| 78 | ∀ v : TangentSpace (𝓡 n) x, |
| 79 | -(((n : ℝ) - 1) * K) * (F.metricAt 0).inner x v v ≤ |
| 80 | (F.flow.connection 0).ricci x v v := by |
| 81 | intro x hx v |
| 82 | have hsec := fun u w => |
| 83 | ((F.flow.connection 0).abs_sectionalCurvature_le_curvatureTensorNorm x u w).trans |
| 84 | (hk 0 H.time_bounds x hx) |
| 85 | simpa only [BasedFlow.metricAt, neg_mul] using |
| 86 | (F.flow.connection 0).ricci_quadratic_lower_bound_of_abs_sectionalCurvature_le |
| 87 | x K hsec v |
| 88 | obtain ⟨S, hS, hcard, _, hcover⟩ := |
| 89 | (F.metricAt 0).exists_finset_cover_of_precompact_ball F.base (by omega) |
| 90 | hA hδ hδA hK hcompact (F.flow.connection 0) hRic |
| 91 | exact ⟨S, hS, hcard, hcover⟩ |
| 92 | · refine ⟨1, Eventually.of_forall fun k => ?_⟩ |
| 93 | let C := H.sequence.carrier k |
| 94 | let F := H.sequence.flow k |
| 95 | let : TopologicalSpace C.carrier := C.topologicalSpace |
| 96 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 97 | let : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 98 | refine ⟨{F.base}, ?_, by simp, ?_⟩ |
| 99 | · intro x hx |
| 100 | have hxbase : x = F.base := by simpa only [Finset.mem_coe, Finset.mem_singleton] using hx |
| 101 | subst x |
| 102 | change (F.metricAt 0).edist F.base F.base < ENNReal.ofReal A |
| 103 | simpa only [RiemannianMetric.edist, Manifold.riemannianEDist_self] using |
| 104 | ENNReal.ofReal_pos.mpr hA |
| 105 | · intro x hx |
| 106 | refine mem_iUnion₂.mpr ⟨F.base, by simp, ?_⟩ |
| 107 | exact hx.trans_le (ENNReal.ofReal_le_ofReal (le_of_lt (lt_of_not_ge hδA))) |
| 108 | |
| 109 | end PoincareMT.PointedRicciFlowCompactnessHypotheses |