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.Analysis.Translation.OrbitJets |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.Analysis.Compact.PathComposition |
| 3 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Smooth.SpectralTraceOrbit |
| 4 | |
| 5 | /-! |
| 6 | # Continuous spatial jets of the actual closed spectral trace |
| 7 | |
| 8 | The smooth trace orbit gives genuine derivatives of the decoded curve, |
| 9 | uniformly through every closed time. MT2007 Claim 19.1, p. 437; |
| 10 | `2026-09-22-spatial-jets-from-translation-orbit.md`, statement 3. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | namespace PoincareMT.M63 |
| 19 | |
| 20 | open SpectralHeatNative |
| 21 | |
| 22 | /-- A smooth actual response orbit supplies smooth decoded spatial |
| 23 | slices and continuous closed-time representatives of all spatial jets. |
| 24 | MT2007 Claim 19.1, p. 437; spatial jets from translation orbit, |
| 25 | statement 3. The spectrum is the literal periodic vector spectrum. -/ |
| 26 | theorem initialResponseTrace_spatial_jets |
| 27 | {L : ℝ} [Fact (0 < L)] {ι : Type*} [Fintype ι] {T : ℝ} (hT : 0 ≤ T) |
| 28 | (w : State ((ℤ × Fin 2) × ι)) (F : ForcingSpace ((ℤ × Fin 2) × ι) T) : |
| 29 | let lambda := fun p : (ℤ × Fin 2) × ι => periodicSpectrum L p.1 |
| 30 | let V := initialResponseTrace lambda w hT F |
| 31 | ContDiffAt ℝ ∞ (fun s : ℝ => initialResponseTrace lambda |
| 32 | (vectorPeriodicSpectralTranslation (L := L) s w) hT |
| 33 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F)) 0 → |
| 34 | (∀ t : Icc (0 : ℝ) T, ContDiff ℝ ∞ (fun x : ℝ => |
| 35 | vectorPeriodicJet (L := L) 1 0 (by omega) (V t) (x : AddCircle L))) ∧ |
| 36 | ∀ k : ℕ, ∃ J : C(Icc (0 : ℝ) T, C(AddCircle L, ι → ℝ)), |
| 37 | ∀ (t : Icc (0 : ℝ) T) (x : ℝ), |
| 38 | iteratedDeriv k (fun y : ℝ => |
| 39 | vectorPeriodicJet (L := L) 1 0 (by omega) (V t) (y : AddCircle L)) x = |
| 40 | J t (x : AddCircle L) := by |
| 41 | dsimp only |
| 42 | intro horbit |
| 43 | let lambda := fun p : (ℤ × Fin 2) × ι => periodicSpectrum L p.1 |
| 44 | let V := initialResponseTrace lambda w hT F |
| 45 | let U := fun s : ℝ => initialResponseTrace lambda |
| 46 | (vectorPeriodicSpectralTranslation (L := L) s w) hT |
| 47 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) |
| 48 | let D := vectorPeriodicJet (L := L) (ι := ι) 1 0 (by omega) |
| 49 | let P : C(Icc (0 : ℝ) T, State ((ℤ × Fin 2) × ι)) →L[ℝ] |
| 50 | C(Icc (0 : ℝ) T, C(AddCircle L, ι → ℝ)) := |
| 51 | D.compLeftContinuous ℝ (Icc (0 : ℝ) T) |
| 52 | have hP : ContDiff ℝ ∞ |
| 53 | (fun v : C(Icc (0 : ℝ) T, State ((ℤ × Fin 2) × ι)) => P v) := by |
| 54 | exact contDiff_postcomp_independent_universes (Icc (0 : ℝ) T) |
| 55 | ⟨D, D.continuous⟩ D.contDiff |
| 56 | have horbit' : ContDiffAt ℝ ∞ U 0 := horbit |
| 57 | have hcomp := hP.contDiffAt.comp 0 horbit' |
| 58 | have hU : ContDiffAt ℝ ∞ (fun s : ℝ => P (U s)) 0 := hcomp |
| 59 | apply spatial_jets_of_smooth_translation_orbit (P V) (fun s => P (U s)) hU |
| 60 | intro s t x |
| 61 | have htrace : U s t = vectorPeriodicSpectralTranslation (L := L) s (V t) := |
| 62 | vectorPeriodicSpectralTranslation_initialResponseTrace (L := L) hT w F s t |
| 63 | change D (U s t) x = D (V t) (x - (s : AddCircle L)) |
| 64 | rw [htrace] |
| 65 | change vectorPeriodicJet (L := L) 1 0 (by omega) |
| 66 | (vectorPeriodicSpectralTranslation (L := L) s (V t)) x = _ |
| 67 | rw [vectorPeriodicJet_spectralTranslation] |
| 68 | rfl |
| 69 | |
| 70 | end PoincareMT.M63 |