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.CurveShortening.Comparison.Compatibility.SourceNames |
| 2 | import PoincareLib.Analysis.Parabolic.Quasilinear.FixedPoint.ContinuousPathComposition |
| 3 | import Mathlib.Analysis.Normed.Operator.LinearIsometry |
| 4 | |
| 5 | /-! |
| 6 | # Compact-path composition in independent universes |
| 7 | |
| 8 | Canonical continuous linear lifts transport M03's finite-order path |
| 9 | composition theorem without identifying source and target universes. |
| 10 | MT2007 Claim 19.1, p. 437; |
| 11 | `2026-09-21-path-composition-universes.md`. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | universe u v w |
| 17 | |
| 18 | namespace PoincareMT.M63 |
| 19 | |
| 20 | /-- Finite-order or smooth postcomposition on compact continuous maps, |
| 21 | with independent source, target and path-domain universes. MT2007 |
| 22 | Claim 19.1, p. 437; path-composition universe derivation. -/ |
| 23 | theorem contDiff_postcomp_independent_universes |
| 24 | (K : Type w) [TopologicalSpace K] [CompactSpace K] |
| 25 | {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 26 | {F : Type v} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 27 | {k : ℕ∞} (f : C(E, F)) (hf : ContDiff ℝ k (f : E → F)) : |
| 28 | ContDiff ℝ k (fun g : C(K, E) => f.comp g) := by |
| 29 | let e : ULift.{v} E ≃L[ℝ] E := ContinuousLinearEquiv.ulift |
| 30 | let d : ULift.{u} F ≃L[ℝ] F := ContinuousLinearEquiv.ulift |
| 31 | let f' : C(ULift.{v} E, ULift.{u} F) := |
| 32 | ⟨fun x => d.symm (f (e x)), d.symm.continuous.comp (f.continuous.comp e.continuous)⟩ |
| 33 | have hf' : ContDiff ℝ k (f' : ULift.{v} E → ULift.{u} F) := |
| 34 | d.symm.contDiff.comp (hf.comp e.contDiff) |
| 35 | let up : C(K, E) →L[ℝ] C(K, ULift.{v} E) := |
| 36 | e.symm.toContinuousLinearMap.compLeftContinuous ℝ K |
| 37 | let down : C(K, ULift.{u} F) →L[ℝ] C(K, F) := |
| 38 | d.toContinuousLinearMap.compLeftContinuous ℝ K |
| 39 | have h := down.contDiff.comp |
| 40 | ((ContinuousPathCompositionNative.contDiff_postcomp_of_order K f' hf').comp up.contDiff) |
| 41 | convert h using 1 |
| 42 | funext g |
| 43 | apply ContinuousMap.ext |
| 44 | intro x |
| 45 | change f (g x) = d (d.symm (f (e (e.symm (g x))))) |
| 46 | rw [e.apply_symm_apply, d.apply_symm_apply] |
| 47 | |
| 48 | end PoincareMT.M63 |