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.Curvature.Integral.Concentration.CenterSelection |
| 2 | open Set Filter Topology Poincare.CurvatureIntegral |
| 3 | open scoped Manifold ContDiff |
| 4 | set_option autoImplicit false |
| 5 | set_option backward.isDefEq.respectTransparency false |
| 6 | |
| 7 | namespace PoincareMT.RiemannianMetric |
| 8 | theorem exists_near_min_badAscentRadius_subset_centers_of_tendsto_zero |
| 9 | {n : ℕ} {M : ℕ → Type*} [∀ j, TopologicalSpace (M j)] |
| 10 | [∀ j, T3Space (M j)] [∀ j, PreconnectedSpace (M j)] |
| 11 | [∀ j, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M j)] |
| 12 | [∀ j, IsManifold (𝓡 n) ∞ (M j)] |
| 13 | (g : ∀ j, RiemannianMetric n (M j)) |
| 14 | (hc : ∀ j, MetricComplete (g j)) |
| 15 | (E : ∀ j, Set (M j)) (hE : ∀ j, IsCompact (E j)) |
| 16 | {c b ρ : ℝ} (hc1 : c < 1) (hb : 0 < b) (hρ : 0 < ρ) |
| 17 | (p : ∀ j, M j) (hp : ∀ j, p j ∈ E j) |
| 18 | (href : Tendsto (fun j => letI := (g j).toMetricSpace; |
| 19 | badAscentRadius c b (p j)) atTop (𝓝 0)) : |
| 20 | ∃ q : ∀ j, M j, |
| 21 | (∀ j, letI := (g j).toMetricSpace |
| 22 | q j ∈ E j ∧ dist (p j) (q j) ≤ ρ ∧ |
| 23 | badAscentRadius c b (q j) ≤ badAscentRadius c b (p j) ∧ |
| 24 | ∀ z ∈ E j, dist (p j) z ≤ ρ → |
| 25 | badAscentRadius c b (q j) ≤ 2 * badAscentRadius c b z) ∧ |
| 26 | Tendsto (fun j => letI := (g j).toMetricSpace; |
| 27 | badAscentRadius c b (q j)) atTop (𝓝 0) := by |
| 28 | classical |
| 29 | let (j : ℕ) : MetricSpace (M j) := (g j).toMetricSpace |
| 30 | have hselect (j : ℕ) : ∃ q : M j, q ∈ E j ∧ |
| 31 | dist (p j) q ≤ ρ ∧ badAscentRadius c b q ≤ badAscentRadius c b (p j) ∧ |
| 32 | ∀ z ∈ E j, dist (p j) z ≤ ρ → |
| 33 | badAscentRadius c b q ≤ 2 * badAscentRadius c b z := by |
| 34 | have hcompact : IsCompact (E j ∩ Metric.closedBall (p j) ρ) := |
| 35 | (hE j).inter_right Metric.isClosed_closedBall |
| 36 | obtain ⟨q, hq, hqref, hqmin⟩ := |
| 37 | (g j).exists_near_min_badAscentRadius_on_isCompact (hc j) hc1 hb hcompact |
| 38 | ⟨hp j, Metric.mem_closedBall_self hρ.le⟩ |
| 39 | refine ⟨q, hq.1, ?_, hqref, ?_⟩ |
| 40 | · simpa only [Metric.mem_closedBall, dist_comm] using hq.2 |
| 41 | · intro z hz hzρ |
| 42 | exact hqmin z ⟨hz, by simpa only [Metric.mem_closedBall, dist_comm] using hzρ⟩ |
| 43 | choose q hqE hqball hqref hqmin using hselect |
| 44 | exact ⟨q, fun j => ⟨hqE j, hqball j, hqref j, hqmin j⟩, |
| 45 | squeeze_zero (fun j => badAscentRadius_nonneg c b (q j)) hqref href⟩ |
| 46 | end PoincareMT.RiemannianMetric |
| 47 | |
| 48 |