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.Smooth.VectorInitialCoordinateOrbit |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Vector.SpectralTranslation |
| 3 | import PoincareLib.Geometry.CurveShortening.Ramp.Analysis.Periodic.FourierTranslation |
| 4 | |
| 5 | /-! |
| 6 | # The actual smooth phase orbit of the initial state |
| 7 | |
| 8 | The full Fourier coefficients identify the previously constructed smooth |
| 9 | coordinate orbit with the actual spectral action. MT2007 Claim 19.1, |
| 10 | p. 437; `2026-09-21-smooth-spectral-trace-orbit.md`, statement 2. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open AddCircle PoincareMT.SpectralHeatNative |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | namespace PoincareMT.M63 |
| 19 | |
| 20 | /-- Smooth vector data has an exact initial state whose actual spectral |
| 21 | translation orbit is smooth. MT2007 Claim 19.1, p. 437; smooth spectral |
| 22 | trace orbit, statement 2. Identification uses full complex coefficients. -/ |
| 23 | theorem exists_smooth_vectorPeriodic_spectral_initial_state |
| 24 | {L : ℝ} [Fact (0 < L)] {ι : Type*} [Fintype ι] |
| 25 | (f : C(AddCircle L, ι → ℝ)) |
| 26 | (hf : ContDiff ℝ ∞ (fun x : ℝ => f (x : AddCircle L))) : |
| 27 | let fi : ι → C(AddCircle L, ℝ) := fun i => |
| 28 | (ContinuousLinearMap.proj i : (ι → ℝ) →L[ℝ] ℝ).compLeftContinuous ℝ (AddCircle L) f |
| 29 | ∃ w : State ((ℤ × Fin 2) × ι), |
| 30 | (∀ i (n : ℤ), complexLpRealEquiv.symm (lpFinitePiEquiv ℝ w i) n = |
| 31 | ((1 + (2 * Real.pi * (n : ℝ) / L) ^ 2 : ℝ) : ℂ) * |
| 32 | fourierCoeff (Complex.ofRealCLM.compLeftContinuous ℝ (AddCircle L) (fi i)) n) ∧ |
| 33 | vectorPeriodicJet (L := L) 1 0 (by omega) w = f ∧ |
| 34 | vectorPeriodicJet (L := L) 0 0 (by omega) |
| 35 | (shiftedBaseMultiplier (fun p : (ℤ × Fin 2) × ι => periodicSpectrum L p.1) w) = f ∧ |
| 36 | ContDiff ℝ ∞ (fun s : ℝ => vectorPeriodicSpectralTranslation (L := L) s w) := by |
| 37 | classical |
| 38 | dsimp only |
| 39 | let fi : ι → C(AddCircle L, ℝ) := fun i => |
| 40 | (ContinuousLinearMap.proj i : (ι → ℝ) →L[ℝ] ℝ).compLeftContinuous ℝ (AddCircle L) f |
| 41 | let A := Complex.ofRealCLM.compLeftContinuous ℝ (AddCircle L) |
| 42 | obtain ⟨W, hW, hrec⟩ := exists_smooth_vectorPeriodic_initialCoordinate_orbit f hf |
| 43 | have hz (g : C(AddCircle L, ℝ)) : periodicTranslation 0 g = g := by |
| 44 | ext x |
| 45 | change g (x - (0 : AddCircle L)) = g x |
| 46 | rw [sub_zero] |
| 47 | have hzv : periodicTranslation 0 f = f := by |
| 48 | apply ContinuousMap.ext |
| 49 | intro x |
| 50 | change f (x - (0 : AddCircle L)) = f x |
| 51 | rw [sub_zero] |
| 52 | have hcoeff (i : ι) (n : ℤ) : |
| 53 | complexLpRealEquiv.symm (lpFinitePiEquiv ℝ (W 0) i) n = |
| 54 | ((1 + (2 * Real.pi * (n : ℝ) / L) ^ 2 : ℝ) : ℂ) * fourierCoeff (A (fi i)) n := by |
| 55 | simpa only [hz] using (hrec 0).1 i n |
| 56 | have horbit (s : ℝ) : W s = vectorPeriodicSpectralTranslation (L := L) s (W 0) := by |
| 57 | apply (lpFinitePiEquiv (α := ℤ × Fin 2) (ι := ι) (E := ℝ) ℝ).injective |
| 58 | funext i |
| 59 | apply complexLpRealEquiv.symm.injective |
| 60 | rw [(vectorPeriodicSpectralTranslation_spec s (W 0)).1 i, |
| 61 | (realPeriodicSpectralTranslation_spec s _).1] |
| 62 | apply lp.ext |
| 63 | funext n |
| 64 | rw [(hrec s).1 i n, (periodicSpectralTranslation_spec s _).1 n, hcoeff] |
| 65 | have hshift : fourierCoeff (A (periodicTranslation s (fi i))) n = |
| 66 | fourier n (-(s : AddCircle L)) * fourierCoeff (A (fi i)) n := by |
| 67 | change fourierCoeff (fun x => A (fi i) (x - (s : AddCircle L))) n = _ |
| 68 | simpa only [smul_eq_mul] using fourierCoeff_sub_const (A (fi i)) s n |
| 69 | change ((1 + (2 * Real.pi * (n : ℝ) / L) ^ 2 : ℝ) : ℂ) * |
| 70 | fourierCoeff (A (periodicTranslation s (fi i))) n = _ |
| 71 | rw [hshift] |
| 72 | ring |
| 73 | refine ⟨W 0, hcoeff, ?_, ?_, ?_⟩ |
| 74 | · simpa only [hzv] using (hrec 0).2.1 |
| 75 | · simpa only [hzv] using (hrec 0).2.2 |
| 76 | · have heq : (fun s : ℝ => vectorPeriodicSpectralTranslation (L := L) s (W 0)) = W := |
| 77 | funext (fun s => (horbit s).symm) |
| 78 | rw [heq] |
| 79 | exact hW |
| 80 | |
| 81 | end PoincareMT.M63 |