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.Curvature.Calculus.Fields.FixedExtension |
| 2 | import Mathlib.Topology.Compactness.LocallyCompact |
| 3 | |
| 4 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M04/CompactTangentDirections.lean`, |
| 5 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. See the curvature import record under |
| 6 | `references/ricci-flow/mapher/curvature/`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # Compact local tangent carriers |
| 10 | |
| 11 | A finite collection of compact chart carriers covers the base manifold. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | open Set Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.RicciFlowAnalysis |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | |
| 26 | theorem exists_finite_compact_tangent_cover [CompactSpace M] : |
| 27 | ∃ (s : Finset M) (K : M → Set M), |
| 28 | (∀ c, IsCompact (K c)) ∧ |
| 29 | (∀ c, K c ⊆ (trivializationAt (EuclideanSpace ℝ (Fin n)) |
| 30 | (TangentSpace (𝓡 n) : M → Type _) c).baseSet) ∧ |
| 31 | (Set.univ : Set M) = ⋃ c ∈ s, K c := by |
| 32 | classical |
| 33 | letI : LocallyCompactSpace M := ChartedSpace.locallyCompactSpace (EuclideanSpace ℝ (Fin n)) M |
| 34 | let e := fun c : M ↦ trivializationAt (EuclideanSpace ℝ (Fin n)) |
| 35 | (TangentSpace (𝓡 n) : M → Type _) c |
| 36 | have hlocal (c : M) : ∃ K : Set M, |
| 37 | IsCompact K ∧ c ∈ interior K ∧ K ⊆ (e c).baseSet := |
| 38 | exists_compact_subset (e c).open_baseSet (FiberBundle.mem_baseSet_trivializationAt' c) |
| 39 | choose K hK hmem hsub using hlocal |
| 40 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover (fun c ↦ interior (K c)) |
| 41 | (fun _ ↦ isOpen_interior) |
| 42 | (show (univ : Set M) ⊆ ⋃ c, interior (K c) from |
| 43 | fun c _ ↦ mem_iUnion.mpr ⟨c, hmem c⟩) |
| 44 | refine ⟨s, K, hK, hsub, subset_antisymm ?_ (subset_univ _)⟩ |
| 45 | intro y hy |
| 46 | obtain ⟨c, hc, hyc⟩ := mem_iUnion₂.mp (hs hy) |
| 47 | exact mem_iUnion₂.mpr ⟨c, hc, interior_subset hyc⟩ |
| 48 | |
| 49 | end PoincareMT.RicciFlowAnalysis |