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.Topology.VectorBundle.Basic |
| 2 | |
| 3 | /-! |
| 4 | # Continuous fiberwise scalar multiplication |
| 5 | |
| 6 | This local trivialization calculation supports the radial first-jet |
| 7 | regularization in MT Definition 18.17, printed p. 430. It is stated for an |
| 8 | arbitrary topological vector bundle and arbitrary parameter space. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Bundle Set Topology |
| 14 | |
| 15 | variable {R B F X : Type*} {E : B → Type*} |
| 16 | [NontriviallyNormedField R] [NormedAddCommGroup F] [NormedSpace R F] |
| 17 | [TopologicalSpace B] [TopologicalSpace X] |
| 18 | [∀ x, AddCommMonoid (E x)] [∀ x, Module R (E x)] [∀ x, TopologicalSpace (E x)] |
| 19 | [TopologicalSpace (TotalSpace F E)] [FiberBundle F E] [VectorBundle R F E] |
| 20 | |
| 21 | /-- Scalar multiplication of a continuously varying vector in a vector bundle |
| 22 | is continuous. Source: the radial first-jet derivation for MT Definition 18.17, |
| 23 | p. 430, applied in a local linear trivialization. -/ |
| 24 | theorem Continuous.totalSpace_smul {f : X → TotalSpace F E} {c : X → R} |
| 25 | (hf : Continuous f) (hc : Continuous c) : |
| 26 | Continuous (fun x => (⟨(f x).proj, c x • (f x).2⟩ : TotalSpace F E)) := by |
| 27 | apply continuous_iff_continuousAt.mpr |
| 28 | intro x |
| 29 | have h := (FiberBundle.continuousAt_totalSpace F f).mp (hf.continuousAt (x := x)) |
| 30 | apply (FiberBundle.continuousAt_totalSpace F _).mpr |
| 31 | refine ⟨h.1, ?_⟩ |
| 32 | let e := trivializationAt F E (f x).proj |
| 33 | apply (hc.continuousAt.smul h.2).congr_of_eventuallyEq |
| 34 | filter_upwards [h.1 (e.open_baseSet.mem_nhds (mem_baseSet_trivializationAt F E (f x).proj))] |
| 35 | with y hy |
| 36 | exact (e.linear R hy).map_smul (c y) (f y).2 |