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.EndTranslationCalculus |
| 2 | |
| 3 | /-! |
| 4 | # Uniform derivatives for the fixed neighboring transitions |
| 5 | |
| 6 | The three axial shifts minus one, zero and one are smooth on the same |
| 7 | reference domain. Compactness bounds their actual derivatives, and the |
| 8 | proved inverse differential identity bounds the inverse on compact |
| 9 | overlaps. These constants precede every flow and translate index in |
| 10 | Morgan-Tian Section 12.5, pp. 309-319. |
| 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 | /-- One compact-reference constant bounds the actual differential and its |
| 22 | inverse for all three neighboring shifts (Section 12.5, pp. 309-319). -/ |
| 23 | theorem exists_endTransition_derivative_bound |
| 24 | {g : RiemannianMetric 3 StandardCapSpace} (e : StandardCylindricalEnd g) |
| 25 | {K : Set StandardCapSpace} (hK : IsCompact K) (hKU : K ⊆ endReferenceRegion e) : |
| 26 | ∃ M : ℝ, 1 ≤ M ∧ ∀ r : ℝ, (r = -1 ∨ r = 0 ∨ r = 1) → ∀ x ∈ K, |
| 27 | norm (E := StandardCapSpace →L[ℝ] StandardCapSpace) |
| 28 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e r) x) ≤ M ∧ |
| 29 | (endAxialTranslation e r x ∈ K → |
| 30 | norm (E := StandardCapSpace →L[ℝ] StandardCapSpace) |
| 31 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e r) x).inverse ≤ M) := by |
| 32 | have hb (r : ℝ) (hr : -3 < r) : |
| 33 | ∃ C : ℝ, ∀ x ∈ K, norm (E := StandardCapSpace →L[ℝ] StandardCapSpace) |
| 34 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e r) x) ≤ C := by |
| 35 | have hc := (endReferenceTranslation_contMDiffOn e hr).contDiffOn.continuousOn_fderiv_of_isOpen |
| 36 | (endReferenceRegion_isOpen e) (by decide) |
| 37 | obtain ⟨C, hC⟩ := hK.exists_bound_of_continuousOn (hc.mono hKU) |
| 38 | refine ⟨C, ?_⟩ |
| 39 | intro x hx |
| 40 | simpa only [mfderiv_eq_fderiv] using hC x hx |
| 41 | obtain ⟨Cn, hCn⟩ := hb (-1) (by norm_num) |
| 42 | obtain ⟨Cz, hCz⟩ := hb 0 (by norm_num) |
| 43 | obtain ⟨Cp, hCp⟩ := hb 1 (by norm_num) |
| 44 | let M := max 1 (max Cn (max Cz Cp)) |
| 45 | have hbound (r : ℝ) (hr : r = -1 ∨ r = 0 ∨ r = 1) (x : StandardCapSpace) (hx : x ∈ K) : |
| 46 | norm (E := StandardCapSpace →L[ℝ] StandardCapSpace) |
| 47 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e r) x) ≤ M := by |
| 48 | rcases hr with rfl | rfl | rfl |
| 49 | · exact (hCn x hx).trans ((le_max_left Cn (max Cz Cp)).trans (le_max_right _ _)) |
| 50 | · exact (hCz x hx).trans ((le_max_left Cz Cp).trans |
| 51 | ((le_max_right Cn _).trans (le_max_right _ _))) |
| 52 | · exact (hCp x hx).trans ((le_max_right Cz Cp).trans |
| 53 | ((le_max_right Cn _).trans (le_max_right _ _))) |
| 54 | refine ⟨M, le_max_left _ _, ?_⟩ |
| 55 | intro r hr x hx |
| 56 | refine ⟨hbound r hr x hx, ?_⟩ |
| 57 | intro hshift |
| 58 | have hrpos : -3 < r := by rcases hr with rfl | rfl | rfl <;> norm_num |
| 59 | have hrneg : -3 < -r := by rcases hr with rfl | rfl | rfl <;> norm_num |
| 60 | have hneg : -r = -1 ∨ -r = 0 ∨ -r = 1 := by |
| 61 | rcases hr with rfl | rfl | rfl <;> norm_num |
| 62 | rw [endAxialTranslation_inverse_mfderiv e r hrpos hrneg (hKU hx) (hKU hshift)] |
| 63 | exact hbound (-r) hneg _ hshift |
| 64 | |
| 65 | end PoincareMT.M34 |