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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Topology.Manifold.NeckCap.Chain.Extension.Connected |
| 3 | import PoincareLib.Topology.Manifold.NeckCap.Chain.Union |
| 4 | import PoincareLib.Topology.Manifold.NeckCap.Isotopy.Composition |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Local.Geometry.LocalPairIsotopy |
| 6 | /-! |
| 7 | # Isotopy of the selected spheres of a balanced chain |
| 8 | |
| 9 | Adjacent central spheres are isotopic through their actual two-neck union. |
| 10 | Smooth isotopy composition connects any two active spheres, independently |
| 11 | of whether the chain is finite or has infinite ends. |
| 12 | |
| 13 | Reference: Morgan--Tian, Lemma A.13 and Corollary A.14, p. 505. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set TopologicalSpace |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.BalancedNeckChain |
| 24 | |
| 25 | /-- At a universal small-neck threshold all selected central spheres are |
| 26 | smoothly isotopic inside the exact union of any balanced chain. -/ |
| 27 | theorem exists_central_spheres_isotopic_threshold_m28 : |
| 28 | ∃ ε₀ : ℝ, 0 < ε₀ ∧ ε₀ ≤ 1 / 200 ∧ |
| 29 | ∀ {M : Type u} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 31 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 32 | {g : RiemannianMetric 3 M} {ε : ℝ} (C : BalancedNeckChain g ε), |
| 33 | ε ≤ ε₀ → ∀ i ∈ C.shape.active, ∀ j ∈ C.shape.active, |
| 34 | SmoothSphereIsotopicIn (C.unionOpen : Set M) |
| 35 | (C.neck i).central_sphere (C.neck j).central_sphere := by |
| 36 | obtain ⟨ε₀, hε₀, hsmall, hpair⟩ := EpsilonNeck.exists_two_neck_openCylinderModel_m28.{u} |
| 37 | refine ⟨ε₀, hε₀, hsmall, ?_⟩ |
| 38 | intro M _ _ _ _ _ _ _ g ε C hε |
| 39 | have hsub (i : ℤ) (hi : i ∈ C.shape.active) : |
| 40 | (C.neck i).carrier ⊆ (C.unionOpen : Set M) := |
| 41 | fun x hx => mem_iUnion.mpr ⟨⟨i, hi⟩, hx⟩ |
| 42 | have hadj (i : ℤ) (hi : i ∈ C.shape.active) (hi' : i + 1 ∈ C.shape.active) : |
| 43 | SmoothSphereIsotopicIn (C.unionOpen : Set M) |
| 44 | (C.neck i).central_sphere (C.neck (i + 1)).central_sphere := by |
| 45 | have he := C.epsilon_eq i hi |
| 46 | have he' := C.epsilon_eq (i + 1) hi' |
| 47 | obtain ⟨_, hleft, hright⟩ := hpair (C.neck i) (C.neck (i + 1)) |
| 48 | (he.symm ▸ hε) (he'.symm ▸ hε) |
| 49 | (by simpa only [he'] using (C.overlap_contains_quarters i hi hi').2) |
| 50 | (by simpa only [he, he'] using C.overlap_within_three_quarters i hi hi') |
| 51 | exact (hleft.trans hright.symm).mono_m28 (union_subset (hsub i hi) (hsub (i + 1) hi')) |
| 52 | have hle (i j : ℤ) (hi : i ∈ C.shape.active) (hj : j ∈ C.shape.active) (hij : i ≤ j) : |
| 53 | SmoothSphereIsotopicIn (C.unionOpen : Set M) |
| 54 | (C.neck i).central_sphere (C.neck j).central_sphere := by |
| 55 | have hn : ∀ n : ℕ, i + (n : ℤ) ∈ C.shape.active → |
| 56 | SmoothSphereIsotopicIn (C.unionOpen : Set M) |
| 57 | (C.neck i).central_sphere (C.neck (i + (n : ℤ))).central_sphere := by |
| 58 | intro n |
| 59 | induction n with |
| 60 | | zero => |
| 61 | intro _ |
| 62 | simpa using ((C.neck i).central_sphere_isotopic_self).mono_m28 (hsub i hi) |
| 63 | | succ n ih => |
| 64 | intro hn |
| 65 | have hmid : i + (n : ℤ) ∈ C.shape.active := |
| 66 | C.shape.ordConnected_active.out hi hn ⟨by omega, by omega⟩ |
| 67 | have hnext : i + (n : ℤ) + 1 ∈ C.shape.active := by simpa [add_assoc] using hn |
| 68 | simpa only [Nat.cast_add, Nat.cast_one, add_assoc] using |
| 69 | (ih hmid).trans (hadj (i + (n : ℤ)) hmid hnext) |
| 70 | have heq : i + ((j - i).toNat : ℤ) = j := by omega |
| 71 | simpa only [heq] using hn (j - i).toNat (heq.symm ▸ hj) |
| 72 | intro i hi j hj |
| 73 | obtain hij | hji := le_total i j |
| 74 | · exact hle i j hi hj hij |
| 75 | · exact (hle j i hj hi hji).symm |
| 76 | |
| 77 | end PoincareMT.BalancedNeckChain |