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.Analysis.Calculus.ContDiff.Basic |
| 2 | import Mathlib.Topology.UniformSpace.UniformConvergence |
| 3 | |
| 4 | /-! |
| 5 | # Explicit supplier for spatial slices of within-jet convergence |
| 6 | |
| 7 | This is the exact proposition of the unpublished M28 theorem |
| 8 | `TendstoUniformlyOn.iteratedFDeriv_spatial_slice`. It retains the source |
| 9 | filter, full derivative domain, smoothness and tested set. No inhabitant |
| 10 | or new analytic slicing theorem is supplied. |
| 11 | |
| 12 | Reference: Morgan--Tian Proposition 5.14, pp. 90--91, and |
| 13 | Proposition 9.79(4), pp. 233--234. The donor pin and publication obligation |
| 14 | are recorded in |
| 15 | `proof-work/tasks/M30/derivations/spatial-slice-jet-service.md`. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped ContDiff Topology |
| 22 | |
| 23 | universe uField uTime uSpace uValue uIndex |
| 24 | |
| 25 | namespace PoincareMT.M30 |
| 26 | |
| 27 | /-- The unfilled lower supplier taking uniform within-jet convergence on |
| 28 | a time-space product to uniform ordinary spatial-jet convergence on the |
| 29 | same tested set, including included time endpoints |
| 30 | (Morgan--Tian Proposition 5.14, pp. 90--91; |
| 31 | Proposition 9.79(4), pp. 233--234). -/ |
| 32 | def SpatialSliceJetConvergenceService : Prop := |
| 33 | ∀ {𝕜 : Type uField} {T : Type uTime} {E : Type uSpace} {F : Type uValue} |
| 34 | [NontriviallyNormedField 𝕜] |
| 35 | [NormedAddCommGroup T] [NormedSpace 𝕜 T] |
| 36 | [NormedAddCommGroup E] [NormedSpace 𝕜 E] |
| 37 | [NormedAddCommGroup F] [NormedSpace 𝕜 F] |
| 38 | {α : Type uIndex} {l : Filter α} |
| 39 | {J : Set T} {U : Set E} {K : Set (T × E)} |
| 40 | {f : α → T × E → F} {g : T × E → F} {n : ℕ∞ω} {r : ℕ}, |
| 41 | TendstoUniformlyOn |
| 42 | (fun k => iteratedFDerivWithin 𝕜 r (f k) (J ×ˢ U)) |
| 43 | (iteratedFDerivWithin 𝕜 r g (J ×ˢ U)) l K → |
| 44 | UniqueDiffOn 𝕜 J → IsOpen U → K ⊆ J ×ˢ U → |
| 45 | (∀ᶠ k in l, ContDiffOn 𝕜 n (f k) (J ×ˢ U)) → |
| 46 | ContDiffOn 𝕜 n g (J ×ˢ U) → r ≤ n → |
| 47 | TendstoUniformlyOn |
| 48 | (fun k p => iteratedFDeriv 𝕜 r (fun y => f k (p.1, y)) p.2) |
| 49 | (fun p => iteratedFDeriv 𝕜 r (fun y => g (p.1, y)) p.2) l K |
| 50 | |
| 51 | end PoincareMT.M30 |