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.Ramp.LocalFlow.Initial.BranchTranslation |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Smooth spatial action on the closed spectral trace |
| 6 | |
| 7 | The smooth initial-state branch and its actual translation identity give |
| 8 | a smooth continuous-path-valued orbit. MT2007 Claim 19.1, p. 437; |
| 9 | `2026-09-21-smooth-spectral-trace-orbit.md`, statement 3. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Topology ContDiff |
| 16 | |
| 17 | namespace PoincareMT.M63 |
| 18 | |
| 19 | open SpectralHeatNative |
| 20 | |
| 21 | /-- Smoothness of the initial phase orbit transfers through the actual |
| 22 | locally unique branch to its closed trace. MT2007 Claim 19.1, p. 437; |
| 23 | smooth spectral trace orbit, statement 3. This is a spatial-action germ, |
| 24 | not a claim of temporal differentiability. -/ |
| 25 | theorem contDiffAt_initialResponseTrace_spectral_orbit |
| 26 | {L : ℝ} {ι : Type*} [Fintype ι] {T : ℝ} (hT : 0 ≤ T) |
| 27 | (w : State ((ℤ × Fin 2) × ι)) (F : ForcingSpace ((ℤ × Fin 2) × ι) T) |
| 28 | (u : State ((ℤ × Fin 2) × ι) → ForcingSpace ((ℤ × Fin 2) × ι) T) |
| 29 | (htrace : ContDiffAt ℝ ∞ (fun w' => initialResponseTrace |
| 30 | (fun p : (ℤ × Fin 2) × ι => periodicSpectrum L p.1) w' hT (u w')) w) |
| 31 | (hw : ContDiffAt ℝ ∞ (fun s : ℝ => vectorPeriodicSpectralTranslation (L := L) s w) 0) |
| 32 | (hbranch : ∀ᶠ s : ℝ in 𝓝 0, |
| 33 | u (vectorPeriodicSpectralTranslation (L := L) s w) = |
| 34 | (vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) : |
| 35 | ContDiffAt ℝ ∞ (fun s : ℝ => initialResponseTrace |
| 36 | (fun p : (ℤ × Fin 2) × ι => periodicSpectrum L p.1) |
| 37 | (vectorPeriodicSpectralTranslation (L := L) s w) hT |
| 38 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F)) 0 := by |
| 39 | have hw0 : vectorPeriodicSpectralTranslation (L := L) 0 w = w := by |
| 40 | rw [vectorPeriodicSpectralTranslation_zero, ContinuousLinearMap.id_apply] |
| 41 | rw [← hw0] at htrace |
| 42 | have hcomp := htrace.comp 0 hw |
| 43 | apply hcomp.congr_of_eventuallyEq |
| 44 | filter_upwards [hbranch] with s hs |
| 45 | dsimp only [Function.comp_def] |
| 46 | rw [hs] |
| 47 | |
| 48 | end PoincareMT.M63 |