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.Surgery.StandardCap.Existence.RotationInvariance.EndPullbackFlow |
| 2 | |
| 3 | /-! |
| 4 | # Derivative and inverse bounds for a fixed end translation |
| 5 | |
| 6 | Invertibility and continuity on the compact source bound the inverse |
| 7 | derivative directly. The translated image need not remain in the open |
| 8 | reference region, so the core comparison includes its height-five |
| 9 | endpoint. This is Morgan-Tian Section 12.5, pp. 309-319 and |
| 10 | core-overlap-and-energy-majorants.md. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | /-- Each fixed admissible translation has bounded derivative and inverse |
| 22 | on a compact reference subset, even if its image leaves that subset |
| 23 | (Section 12.5, pp. 309-319). -/ |
| 24 | theorem exists_endFixed_derivative_inverse_bound |
| 25 | {g : RiemannianMetric 3 StandardCapSpace} (e : StandardCylindricalEnd g) |
| 26 | (s : ℝ) (hs : -3 < s) {K : Set StandardCapSpace} (hK : IsCompact K) |
| 27 | (hKU : K ⊆ endReferenceRegion e) : |
| 28 | ∃ M : ℝ, 1 ≤ M ∧ ∀ x ∈ K, |
| 29 | norm (E := StandardCapSpace →L[ℝ] StandardCapSpace) |
| 30 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e s) x) ≤ M ∧ |
| 31 | norm (E := StandardCapSpace →L[ℝ] StandardCapSpace) |
| 32 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e s) x).inverse ≤ M := by |
| 33 | let L : StandardCapSpace → StandardCapSpace →L[ℝ] StandardCapSpace := |
| 34 | fun x => fderiv ℝ (endAxialTranslation e s) x |
| 35 | have hc : ContinuousOn L (endReferenceRegion e) := |
| 36 | (endReferenceTranslation_contMDiffOn e hs).contDiffOn.continuousOn_fderiv_of_isOpen |
| 37 | (endReferenceRegion_isOpen e) (by decide) |
| 38 | have hi (x : StandardCapSpace) (hx : x ∈ endReferenceRegion e) : (L x).IsInvertible := by |
| 39 | simpa only [L, mfderiv_eq_fderiv] using endReferenceTranslation_mfderiv_isInvertible e hs hx |
| 40 | have hci : ContinuousOn (fun x => (L x).inverse) (endReferenceRegion e) := by |
| 41 | intro x hx |
| 42 | exact ((hi x hx).contDiffAt_map_inverse (n := 1)).continuousAt.comp_continuousWithinAt (hc x hx) |
| 43 | obtain ⟨B, hB⟩ := hK.exists_bound_of_continuousOn (hc.mono hKU) |
| 44 | obtain ⟨D, hD⟩ := hK.exists_bound_of_continuousOn (hci.mono hKU) |
| 45 | refine ⟨max 1 (max B D), le_max_left _ _, ?_⟩ |
| 46 | intro x hx |
| 47 | constructor |
| 48 | · simpa only [L, mfderiv_eq_fderiv] using |
| 49 | (hB x hx).trans ((le_max_left B D).trans (le_max_right 1 _)) |
| 50 | · simpa only [L, mfderiv_eq_fderiv] using |
| 51 | (hD x hx).trans ((le_max_right B D).trans (le_max_right 1 _)) |
| 52 | |
| 53 | end PoincareMT.M34 |