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.Cylinders.CylinderIntervalModel |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Analysis.Geometry.UnitIntervalReparametrization |
| 4 | |
| 5 | /-! |
| 6 | # Place the terminal-neck threshold at the middle height |
| 7 | |
| 8 | Morgan--Tian Claim 10.8, p. 254; M28 derivation 94. A smooth fractional |
| 9 | linear change retains the same cylinder carrier and gives the exact |
| 10 | old-height criterion for the new positive half. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.OpenCylinderModel |
| 21 | |
| 22 | variable {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] {U : Set M} |
| 24 | |
| 25 | /-- A chosen strict height cutoff becomes the positive-half threshold |
| 26 | of a smooth model on the same cylinder (MT Claim 10.8, p. 254). -/ |
| 27 | theorem exists_midlevel_model (T : OpenCylinderModel U) {a : ℝ} |
| 28 | (ha : a ∈ Ioo (0 : ℝ) 1) : |
| 29 | ∃ T' : OpenCylinderModel U, |
| 30 | T'.coordinate = (fun z => T.coordinate (z.1, Poincare.unitIntervalReparam a z.2)) ∧ |
| 31 | T'.inverse = (fun x => ((T.inverse x).1, |
| 32 | Poincare.unitIntervalReparam (1 - a) (T.inverse x).2)) ∧ |
| 33 | ∀ x ∈ U, (1 / 2 : ℝ) < (T'.inverse x).2 ↔ a < (T.inverse x).2 := by |
| 34 | obtain ⟨hf, hfI, hgf, _hmid, hhalf⟩ := Poincare.unitIntervalReparam_properties ha |
| 35 | have hb : 1 - a ∈ Ioo (0 : ℝ) 1 := ⟨sub_pos.mpr ha.2, by linarith [ha.1]⟩ |
| 36 | obtain ⟨hg, hgI, hfg, _hmid', _hhalf'⟩ := Poincare.unitIntervalReparam_properties hb |
| 37 | have heq : 1 - (1 - a) = a := by ring |
| 38 | rw [heq] at hfg |
| 39 | obtain ⟨T', hc, hv⟩ := T.exists_model_of_interval_reparametrization subset_rfl |
| 40 | (V := U) (fun x => ⟨fun hx => ⟨hx, (T.inverse_mem x hx).2⟩, fun hx => hx.1⟩) |
| 41 | (Poincare.unitIntervalReparam a) (Poincare.unitIntervalReparam (1 - a)) |
| 42 | hf hg hfI hgI hgf hfg |
| 43 | refine ⟨T', hc, hv, ?_⟩ |
| 44 | intro x hx |
| 45 | rw [hv] |
| 46 | exact hhalf _ (T.inverse_mem x hx).2 |
| 47 | |
| 48 | end PoincareMT.OpenCylinderModel |