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.Manifold.RegularFiber.UniversalProperty |
| 2 | import Mathlib.Geometry.Manifold.MFDeriv.SpecificFunctions |
| 3 | /-! # Regularity under nonzero scaling of the actual joint defining function -/ |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | open Set Function TopologicalSpace |
| 7 | open scoped Manifold ContDiff Topology |
| 8 | namespace Poincare.Geometry.Manifold.RegularFiber |
| 9 | /-- A nonzero scalar preserves surjectivity of the actual joint differential. -/ |
| 10 | theorem surjective_mfderiv_const_smul |
| 11 | {k : ℕ} {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 12 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 13 | {f : M → Fin k → ℝ} {x : M} |
| 14 | (hf : MDifferentiableAt 𝓘(ℝ,E) 𝓘(ℝ,Fin k → ℝ) f x) |
| 15 | (hreg : Surjective (mfderiv 𝓘(ℝ,E) 𝓘(ℝ,Fin k → ℝ) f x)) |
| 16 | {a : ℝ} (ha : a ≠ 0) : |
| 17 | Surjective (mfderiv 𝓘(ℝ,E) 𝓘(ℝ,Fin k → ℝ) (fun y => a • f y) x) := by |
| 18 | change Surjective (mfderiv 𝓘(ℝ,E) 𝓘(ℝ,Fin k → ℝ) (a • f) x) |
| 19 | rw [const_smul_mfderiv hf a] |
| 20 | intro z |
| 21 | obtain ⟨v,hv⟩ := hreg (a⁻¹ • z) |
| 22 | refine ⟨v, ?_⟩ |
| 23 | change a • mfderiv 𝓘(ℝ,E) 𝓘(ℝ,Fin k → ℝ) f x v = z |
| 24 | rw [hv] |
| 25 | change a • (a⁻¹ • (z : Fin k → ℝ)) = z |
| 26 | rw [smul_smul, mul_inv_cancel₀ ha, one_smul] |
| 27 | end Poincare.Geometry.Manifold.RegularFiber |
| 28 |