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.SourceGeometry.InitialGeometry.SourceInitialGraphSide |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Ends.SourceTubeVolume |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.NeckGeometry.NeckGraphIsotopy |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Local.Geometry.LocalPairIsotopy |
| 6 | |
| 7 | /-! |
| 8 | # Essentiality of the actual retained initial graph |
| 9 | |
| 10 | The literal narrow graph contracts within the same zero node. Compose |
| 11 | with that node's stored tube isotopy, retaining the actual source carrier. |
| 12 | Source: Morgan--Tian Claim 10.8, p. 254; M28 derivation 124. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28.SourceTubeData |
| 24 | |
| 25 | variable {epsilon C A D0 D : ℝ} |
| 26 | {E : SameTimeCounterexample.{u} epsilon C A D0 D} |
| 27 | {S : CounterexampleNeckSegment E} |
| 28 | |
| 29 | /-- A retained smooth initial graph is isotopic to the actual cylinder |
| 30 | middle sphere inside the original source tube. Its graph bounds suffice; |
| 31 | no new orientation, coordinate choice or separation is assumed. |
| 32 | Source: Claim 10.8, p. 254; M28 derivation 124. -/ |
| 33 | theorem initial_graph_isotopic_middle (T : SourceTubeData S) |
| 34 | (f : UnitTwoSphere → ℝ) (hf : ContMDiff (𝓡 2) 𝓘(ℝ, ℝ) ∞ f) |
| 35 | (hbound : ∀ q, |f q| < epsilon⁻¹ / 32) : |
| 36 | SmoothSphereIsotopicIn (T.carrierOpen : Set _) |
| 37 | (range (fun q => (T.list.node 0).2.coordinate_map (q, f q))) |
| 38 | T.tube.cylinder.middleSphere := by |
| 39 | have hlen : 0 < T.list.nodes.length := List.length_pos_iff.mpr T.list.nonempty |
| 40 | have hactive : (0 : ℤ) ∈ T.list.active := by |
| 41 | change 0 ≤ (0 : ℤ) ∧ (0 : ℤ) ≤ (T.list.nodes.length : ℤ) - 1 |
| 42 | constructor <;> omega |
| 43 | have heps : (T.list.node 0).2.epsilon = epsilon := T.list.node_epsilon hactive |
| 44 | have hA : 0 < epsilon⁻¹ := inv_pos.mpr (heps ▸ (T.list.node 0).2.epsilon_pos) |
| 45 | have hdom (q : UnitTwoSphere) : f q ∈ |
| 46 | Ioo (-(T.list.node 0).2.epsilon⁻¹) (T.list.node 0).2.epsilon⁻¹ := by |
| 47 | rw [heps] |
| 48 | have h := abs_lt.mp (hbound q) |
| 49 | constructor <;> linarith [h.1, h.2] |
| 50 | have hNT : (T.list.node 0).2.carrier ⊆ (T.carrierOpen : Set _) := by |
| 51 | intro x hx |
| 52 | rw [T.carrier_eq_iUnion_nodes] |
| 53 | exact mem_iUnion₂.mpr ⟨0, Finset.mem_range.mpr hlen, hx⟩ |
| 54 | have hmiddle : SmoothSphereIsotopicIn (T.carrierOpen : Set _) |
| 55 | (T.list.node 0).2.central_sphere T.tube.cylinder.middleSphere := by |
| 56 | change SmoothSphereIsotopicIn T.tube.carrier |
| 57 | (T.list.node 0).2.central_sphere T.tube.cylinder.middleSphere |
| 58 | have h := T.tube.central_sphere_isotopy 0 T.isLeast_tube_chain_zero.1 |
| 59 | simpa only [T.tube_chain_readout.2] using h |
| 60 | exact ((neck_graph_isotopic_central (T.list.node 0).2 f hf hdom).mono_m28 hNT).trans hmiddle |
| 61 | |
| 62 | end PoincareMT.M28.SourceTubeData |