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.Analysis.Calculus.SmoothCompactness.Diagonal |
| 2 | import PoincareLib.Analysis.Calculus.SmoothCompactness.DomainChange |
| 3 | |
| 4 | /-! |
| 5 | # Simultaneous smooth extraction on finite-dimensional domains |
| 6 | |
| 7 | Continuous linear equivalences reduce countably many finite-dimensional real |
| 8 | normed domains to Euclidean domains. Their operator norms transport the local |
| 9 | eventual derivative bounds, and the exact jet transformation transports the |
| 10 | extracted smooth limits back to the original norms. The result retains one |
| 11 | strict subsequence for all families, including spacetime product domains. |
| 12 | |
| 13 | This is the analytic extraction used in Morgan--Tian, Proposition 5.14, |
| 14 | pp. 90--91. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | open Set Filter |
| 19 | open scoped ContDiff Topology |
| 20 | |
| 21 | namespace Poincare.Analysis.Calculus |
| 22 | |
| 23 | /-- Countably many smooth families on arbitrary finite-dimensional real |
| 24 | normed domains admit one common smooth subsequence from local eventual jet |
| 25 | bounds. The limiting jets and their norms use the original domain spaces. -/ |
| 26 | theorem exists_common_smoothSubsequenceExtraction_finiteDimensional |
| 27 | {E F : ℕ → Type*} |
| 28 | [∀ i, NormedAddCommGroup (E i)] [∀ i, NormedSpace ℝ (E i)] |
| 29 | [∀ i, FiniteDimensional ℝ (E i)] |
| 30 | [∀ i, NormedAddCommGroup (F i)] [∀ i, NormedSpace ℝ (F i)] |
| 31 | [∀ i, FiniteDimensional ℝ (F i)] |
| 32 | {Ω : ∀ i, Set (E i)} (hΩ : ∀ i, IsOpen (Ω i)) |
| 33 | (f : ∀ i, ℕ → E i → F i) |
| 34 | (hf : ∀ i k, ContDiffOn ℝ ∞ (f i k) (Ω i)) |
| 35 | (hbound : ∀ i K, IsCompact K → K ⊆ Ω i → |
| 36 | ∀ m : ℕ, ∃ B : ℝ, ∀ᶠ k in atTop, ∀ x ∈ K, |
| 37 | ‖iteratedFDeriv ℝ m (f i k) x‖ ≤ B) : |
| 38 | ∃ σ : ℕ → ℕ, StrictMono σ ∧ ∃ f₀ : ∀ i, E i → F i, |
| 39 | (∀ i, ContDiffOn ℝ ∞ (f₀ i) (Ω i)) ∧ |
| 40 | ∀ i m K, IsCompact K → K ⊆ Ω i → TendstoUniformlyOn |
| 41 | (fun k => iteratedFDeriv ℝ m (f i (σ k))) |
| 42 | (iteratedFDeriv ℝ m (f₀ i)) atTop K := by |
| 43 | let e : ∀ i, EuclideanSpace ℝ (Fin (Module.finrank ℝ (E i))) ≃L[ℝ] E i := |
| 44 | fun i => (toEuclidean (E := E i)).symm |
| 45 | have hbound' (i : ℕ) : LocallyEventuallyBoundedDerivatives |
| 46 | ((e i) ⁻¹' Ω i) (fun k => f i k ∘ e i) := by |
| 47 | intro K hK hKΩ m |
| 48 | obtain ⟨B, hB⟩ := hbound i (e i '' K) (hK.image (e i).continuous) |
| 49 | (image_subset_iff.mpr hKΩ) m |
| 50 | refine ⟨B * ‖(e i).toContinuousLinearMap‖ ^ m, ?_⟩ |
| 51 | filter_upwards [hB] with k hk x hx |
| 52 | exact (norm_iteratedFDeriv_comp_continuousLinearEquiv_le (e i) (f i k) m x).trans |
| 53 | (mul_le_mul_of_nonneg_right (hk (e i x) (mem_image_of_mem (e i) hx)) (by positivity)) |
| 54 | obtain ⟨σ, hσ, G, hG, hjet⟩ := exists_common_smoothSubsequenceExtraction |
| 55 | (fun i => (hΩ i).preimage (e i).continuous) (fun i k => f i k ∘ e i) |
| 56 | (fun i k => (hf i k).comp_continuousLinearMap (e i).toContinuousLinearMap) hbound' |
| 57 | refine ⟨σ, hσ, (fun i => G i ∘ (e i).symm), ?_, ?_⟩ |
| 58 | · intro i |
| 59 | have h := (hG i).comp_continuousLinearMap (e i).symm.toContinuousLinearMap |
| 60 | simpa [Function.comp_def, ContinuousLinearEquiv.coe_coe] using h |
| 61 | · intro i |
| 62 | have h := compact_jet_convergence_comp_continuousLinearEquiv (e i).symm (hjet i) |
| 63 | simpa [Function.comp_def] using h |
| 64 | |
| 65 | end Poincare.Analysis.Calculus |