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 Mathlib.Topology.Instances.Real.Lemmas |
| 2 | import Mathlib.Topology.Order.MonotoneContinuity |
| 3 | |
| 4 | /-! |
| 5 | # Joint continuity of inverse real labels |
| 6 | |
| 7 | Increasing real bijections with continuous parameter evaluations have |
| 8 | jointly continuous inverse evaluations. MT2007 Claim 19.1, p. 437; |
| 9 | `2026-09-22-continuous-inverse-labels.md`. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | |
| 16 | namespace PoincareMT.M63 |
| 17 | |
| 18 | /-- Actual inverse labels vary jointly continuously for arbitrary |
| 19 | topological parameters. MT2007 Claim 19.1, p. 437; inverse-label |
| 20 | derivation. Only fixed-label evaluation continuity is required. -/ |
| 21 | theorem continuous_inverse_orderIso_family {Z : Type*} [TopologicalSpace Z] |
| 22 | (phi : Z → (ℝ ≃o ℝ)) (hphi : ∀ a, Continuous (fun z => phi z a)) : |
| 23 | Continuous (fun p : Z × ℝ => (phi p.1).symm p.2) := by |
| 24 | apply OrderTopology.continuous_iff.mpr |
| 25 | intro a |
| 26 | constructor |
| 27 | · change IsOpen {p : Z × ℝ | a < (phi p.1).symm p.2} |
| 28 | simpa only [OrderIso.lt_symm_apply, Function.comp_def] using |
| 29 | isOpen_lt ((hphi a).comp continuous_fst) continuous_snd |
| 30 | · change IsOpen {p : Z × ℝ | (phi p.1).symm p.2 < a} |
| 31 | simpa only [OrderIso.symm_apply_lt, Function.comp_def] using |
| 32 | isOpen_lt continuous_snd ((hphi a).comp continuous_fst) |
| 33 | |
| 34 | end PoincareMT.M63 |