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.Vector.SpectralTranslation |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Vector.PeriodicH1Coefficients |
| 3 | import PoincareLib.Geometry.CurveShortening.Ramp.Analysis.Periodic.FourierCoordinates |
| 4 | |
| 5 | /-! |
| 6 | # Translation of the actual nonlinear coefficient maps |
| 7 | |
| 8 | Full complex decoder identities identify the translated product and the |
| 9 | local geometric coefficients. MT2007 Claim 19.1, p. 437; |
| 10 | `2026-09-21-nonlinear-spectral-translation.md`, statements 1-2. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set PoincareMT.SpectralHeatNative |
| 16 | |
| 17 | namespace PoincareMT.M63 |
| 18 | |
| 19 | variable {L : ℝ} [Fact (0 < L)] {ι : Type*} [Fintype ι] |
| 20 | |
| 21 | local notation "S" => State ((ℤ × Fin 2) × ι) |
| 22 | local notation "H" => lp (fun _ : ℤ => ℂ) 2 |
| 23 | |
| 24 | /-- The actual H1 product commutes with vector spectral translation. |
| 25 | MT2007 Claim 19.1, p. 437; nonlinear spectral translation, statement 1. |
| 26 | The full complex identity is retained, without a reality assumption. -/ |
| 27 | theorem vectorPeriodicH1_product_spectralTranslation |
| 28 | (M : H →L[ℝ] S →L[ℝ] S) |
| 29 | (hM : ∀ c u i, periodicSobolevJet (L := L) 0 0 (by omega) |
| 30 | (complexLpRealEquiv.symm (lpFinitePiEquiv ℝ (M c u) i)) = |
| 31 | periodicSobolevJet (L := L) 0 0 (by omega) c * |
| 32 | periodicSobolevJet (L := L) 0 0 (by omega) |
| 33 | (complexLpRealEquiv.symm (lpFinitePiEquiv ℝ u i))) |
| 34 | (s : ℝ) (c : H) (u : S) : |
| 35 | vectorPeriodicSpectralTranslation (L := L) s (M c u) = |
| 36 | M (periodicSpectralTranslation (L := L) s c) |
| 37 | (vectorPeriodicSpectralTranslation (L := L) s u) := by |
| 38 | apply (lpFinitePiEquiv (α := ℤ × Fin 2) (ι := ι) (E := ℝ) ℝ).injective |
| 39 | funext i |
| 40 | apply complexLpRealEquiv.symm.injective |
| 41 | apply periodicH1Decoder_injective (L := L) |
| 42 | rw [(vectorPeriodicSpectralTranslation_spec s (M c u)).1 i, |
| 43 | (realPeriodicSpectralTranslation_spec s _).1, |
| 44 | periodicSobolevJet_periodicSpectralTranslation, hM, hM, |
| 45 | periodicSobolevJet_periodicSpectralTranslation, |
| 46 | (vectorPeriodicSpectralTranslation_spec s u).1 i, |
| 47 | (realPeriodicSpectralTranslation_spec s _).1, |
| 48 | periodicSobolevJet_periodicSpectralTranslation] |
| 49 | rfl |
| 50 | |
| 51 | /-- Actual coefficients depending only on time and the two decoded jets |
| 52 | commute with translation wherever both states lie in their agreement |
| 53 | domain. MT2007 Claim 19.1, p. 437; nonlinear spectral translation, |
| 54 | statement 2. No invariance of an arbitrary extension outside O is used. -/ |
| 55 | theorem local_periodicH1_coefficients_spectralTranslation |
| 56 | (G : ℝ × S → H) (Q : ℝ × S → S) |
| 57 | (g : ℝ → ((Fin 2 × ι) → ℝ) → ℝ) |
| 58 | (q : ℝ → ((Fin 2 × ι) → ℝ) → ι → ℝ) |
| 59 | {O : Set (ℝ × S)} |
| 60 | (hdecode : ∀ t u, 0 ≤ t → (t, u) ∈ O → ∀ x : AddCircle L, |
| 61 | periodicSobolevJet (L := L) 0 0 (by omega) (G (t, u)) x = |
| 62 | (g t (fun j => vectorPeriodicJet (L := L) 1 j.1 (by omega) u x j.2) : ℂ) ∧ |
| 63 | ∀ i, periodicSobolevJet (L := L) 0 0 (by omega) |
| 64 | (complexLpRealEquiv.symm (lpFinitePiEquiv ℝ (Q (t, u)) i)) x = |
| 65 | (q t (fun j => vectorPeriodicJet (L := L) 1 j.1 (by omega) u x j.2) i : ℂ)) |
| 66 | (s : ℝ) {t : ℝ} {u : S} (ht : 0 ≤ t) (hu : (t, u) ∈ O) |
| 67 | (hsu : (t, vectorPeriodicSpectralTranslation (L := L) s u) ∈ O) : |
| 68 | G (t, vectorPeriodicSpectralTranslation (L := L) s u) = |
| 69 | periodicSpectralTranslation (L := L) s (G (t, u)) ∧ |
| 70 | Q (t, vectorPeriodicSpectralTranslation (L := L) s u) = |
| 71 | vectorPeriodicSpectralTranslation (L := L) s (Q (t, u)) := by |
| 72 | have hjet (x : AddCircle L) : |
| 73 | (fun j : Fin 2 × ι => vectorPeriodicJet (L := L) 1 j.1 (by omega) |
| 74 | (vectorPeriodicSpectralTranslation (L := L) s u) x j.2) = |
| 75 | fun j : Fin 2 × ι => vectorPeriodicJet (L := L) 1 j.1 (by omega) |
| 76 | u (x - (s : AddCircle L)) j.2 := by |
| 77 | funext j |
| 78 | rw [vectorPeriodicJet_spectralTranslation] |
| 79 | rfl |
| 80 | constructor |
| 81 | · apply periodicH1Decoder_injective (L := L) |
| 82 | rw [periodicSobolevJet_periodicSpectralTranslation] |
| 83 | apply ContinuousMap.ext |
| 84 | intro x |
| 85 | change periodicSobolevJet (L := L) 0 0 (by omega) |
| 86 | (G (t, vectorPeriodicSpectralTranslation (L := L) s u)) x = |
| 87 | periodicSobolevJet (L := L) 0 0 (by omega) |
| 88 | (G (t, u)) (x - (s : AddCircle L)) |
| 89 | rw [(hdecode t _ ht hsu x).1, (hdecode t u ht hu _).1, hjet] |
| 90 | · apply (lpFinitePiEquiv (α := ℤ × Fin 2) (ι := ι) (E := ℝ) ℝ).injective |
| 91 | funext i |
| 92 | apply complexLpRealEquiv.symm.injective |
| 93 | apply periodicH1Decoder_injective (L := L) |
| 94 | rw [(vectorPeriodicSpectralTranslation_spec s (Q (t, u))).1 i, |
| 95 | (realPeriodicSpectralTranslation_spec s _).1, |
| 96 | periodicSobolevJet_periodicSpectralTranslation] |
| 97 | apply ContinuousMap.ext |
| 98 | intro x |
| 99 | change periodicSobolevJet (L := L) 0 0 (by omega) |
| 100 | (complexLpRealEquiv.symm (lpFinitePiEquiv ℝ |
| 101 | (Q (t, vectorPeriodicSpectralTranslation (L := L) s u)) i)) x = |
| 102 | periodicSobolevJet (L := L) 0 0 (by omega) |
| 103 | (complexLpRealEquiv.symm (lpFinitePiEquiv ℝ (Q (t, u)) i)) |
| 104 | (x - (s : AddCircle L)) |
| 105 | rw [(hdecode t _ ht hsu x).2 i, (hdecode t u ht hu _).2 i, hjet] |
| 106 | |
| 107 | end PoincareMT.M63 |