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.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.PositiveEnds.PositiveEndRecut |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderComponentModel |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.NeckGeometry.NeckGraphIsotopy |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Local.Geometry.LocalPairIsotopy |
| 6 | import PoincareLib.Topology.Manifold.NeckCap.Isotopy.Composition |
| 7 | |
| 8 | /-! |
| 9 | # The smooth model on the literal positive recut |
| 10 | |
| 11 | Morgan--Tian Claim 10.8, p. 254; M28 derivation 94. The negative neck |
| 12 | cross-section has its actual graph isotopy in the original tube. Smooth |
| 13 | adaptation and the full component identity therefore give a smooth model |
| 14 | on exactly the constructed recut, with explicit affine inverse height. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28 |
| 25 | |
| 26 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | {g : RiemannianMetric 3 M} {U : TopologicalSpace.Opens M} |
| 29 | |
| 30 | /-- The recut is a literal positive tail of an adapted smooth model and |
| 31 | has its own smooth cylinder model with the exact rescaled height. Source: |
| 32 | MT Claim 10.8, p. 254; M28 derivation 94. -/ |
| 33 | theorem exists_positive_recut_model |
| 34 | (N : EpsilonNeck g) (T : OpenCylinderModel (U : Set M)) |
| 35 | (hNU : N.carrier ⊆ U) |
| 36 | (hisotopy : SmoothSphereIsotopicIn (U : Set M) N.central_sphere T.middleSphere) |
| 37 | {P : Set M} (hPU : P ⊆ U) (hPo : IsOpen P) (hPc : IsConnected P) |
| 38 | (hPcl : closure P = P ∪ N.central_sphere) |
| 39 | (habove : N.aboveGraph_m28 (fun _ => 0) ⊆ P) |
| 40 | (hbelow : Disjoint (N.belowGraph_m28 (fun _ => 0)) P) |
| 41 | {a b : ℝ} (ha : -N.epsilon⁻¹ < a) (ha0 : a < 0) |
| 42 | (hb0 : 0 < b) (hb : b < N.epsilon⁻¹) : |
| 43 | let W := P ∪ N.region a b |
| 44 | ∃ A : OpenCylinderModel (U : Set M), |
| 45 | A.middleSphere = N.coordinate_map '' (univ ×ˢ ({a} : Set ℝ)) ∧ |
| 46 | W = A.tail true (1 / 2) ∧ |
| 47 | ∃ R : OpenCylinderModel W, |
| 48 | R.coordinate = (fun z => A.coordinate (z.1, 1 / 2 + (1 - 1 / 2) * z.2)) ∧ |
| 49 | R.inverse = |
| 50 | (fun x => ((A.inverse x).1, ((A.inverse x).2 - 1 / 2) / (1 - 1 / 2))) := by |
| 51 | let W := P ∪ N.region a b |
| 52 | let S := N.coordinate_map '' (univ ×ˢ ({a} : Set ℝ)) |
| 53 | obtain ⟨hWo, hWc, _hSW, hfront, _hclosure, hcomponent, _hslab⟩ := |
| 54 | N.recut_positive_component hPo hPc hPcl habove hbelow ha ha0 hb0 hb |
| 55 | have hWU : W ⊆ (U : Set M) := union_subset hPU (fun _ hx => hNU hx.1) |
| 56 | have hWS : W ⊆ Sᶜ := by |
| 57 | intro x hx hxS |
| 58 | have hf : x ∈ frontier W := hfront.symm ▸ hxS |
| 59 | exact (hWo.frontier_eq ▸ hf).2 hx |
| 60 | have hSrange : S = range (fun q : UnitTwoSphere => N.coordinate_map (q, a)) := by |
| 61 | ext x |
| 62 | constructor |
| 63 | · rintro ⟨⟨q, s⟩, ⟨_, hs⟩, rfl⟩ |
| 64 | have hs' : s = a := hs |
| 65 | exact ⟨q, by rw [hs']⟩ |
| 66 | · rintro ⟨q, rfl⟩ |
| 67 | exact ⟨(q, a), ⟨mem_univ _, rfl⟩, rfl⟩ |
| 68 | have hS : SmoothSphereIsotopicIn (U : Set M) S T.middleSphere := by |
| 69 | rw [hSrange] |
| 70 | exact ((neck_graph_isotopic_central N (fun _ => a) contMDiff_const |
| 71 | (fun _ => ⟨ha, ha0.trans (hb0.trans hb)⟩)).mono_m28 hNU).trans hisotopy |
| 72 | obtain ⟨A, hAS, hWA⟩ := T.exists_oriented_model_of_component hS hWc |
| 73 | (fun _ hx => ⟨hWU hx, hWS hx⟩) hcomponent |
| 74 | refine ⟨A, hAS, hWA, ?_⟩ |
| 75 | have hR := A.exists_positive_tail_model (by norm_num : (0 : ℝ) < 1 / 2) |
| 76 | (by norm_num : (1 / 2 : ℝ) < 1) |
| 77 | rwa [← hWA] at hR |
| 78 | |
| 79 | end PoincareMT.M28 |