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.Nonlinear.SpectralTranslation |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Vector.SpectralResponse |
| 3 | |
| 4 | /-! |
| 5 | # Translation of the literal nonlinear forcing equation |
| 6 | |
| 7 | The actual spectral response commutators transport a solution whenever |
| 8 | both closed traces stay in the coefficient agreement domain. MT2007 |
| 9 | Claim 19.1, p. 437; `2026-09-21-nonlinear-spectral-translation.md`, |
| 10 | statement 3. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | |
| 17 | namespace PoincareMT.M63 |
| 18 | |
| 19 | open SpectralHeatNative |
| 20 | |
| 21 | variable {L : ℝ} {ι : Type*} [Fintype ι] |
| 22 | |
| 23 | local notation "S" => State ((ℤ × Fin 2) × ι) |
| 24 | local notation "H" => lp (fun _ : ℤ => ℂ) 2 |
| 25 | local notation "lambda" => (fun p : (ℤ × Fin 2) × ι => periodicSpectrum L (Prod.fst p)) |
| 26 | |
| 27 | /-- Translation preserves the actual AE forcing equation on its local |
| 28 | physical domain. MT2007 Claim 19.1, p. 437; nonlinear spectral |
| 29 | translation, statement 3. Positive time is obtained from the restricted |
| 30 | Ioc measure; no high-state identity at time zero is required. -/ |
| 31 | theorem initial_forcing_equation_spectralTranslation |
| 32 | (M : H →L[ℝ] S →L[ℝ] S) (G : ℝ × S → H) (Q : ℝ × S → S) |
| 33 | (hM : ∀ s c u, vectorPeriodicSpectralTranslation (L := L) s (M c u) = |
| 34 | M (periodicSpectralTranslation (L := L) s c) |
| 35 | (vectorPeriodicSpectralTranslation (L := L) s u)) |
| 36 | {O : Set (ℝ × S)} |
| 37 | (hcoeff : ∀ s t u, 0 ≤ t → (t, u) ∈ O → |
| 38 | (t, vectorPeriodicSpectralTranslation (L := L) s u) ∈ O → |
| 39 | G (t, vectorPeriodicSpectralTranslation (L := L) s u) = |
| 40 | periodicSpectralTranslation (L := L) s (G (t, u)) ∧ |
| 41 | Q (t, vectorPeriodicSpectralTranslation (L := L) s u) = |
| 42 | vectorPeriodicSpectralTranslation (L := L) s (Q (t, u))) |
| 43 | {T : ℝ} (hT : 0 ≤ T) (w : S) (F : ForcingSpace ((ℤ × Fin 2) × ι) T) |
| 44 | (heq : ∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, |
| 45 | F t = M (G (t, initialResponseTrace lambda w hT F ⟨t, ht⟩)) |
| 46 | (initialHeatHigh lambda w t + shiftedHighOperator hT lambda F t - |
| 47 | shiftedBaseMultiplier lambda (initialResponseTrace lambda w hT F ⟨t, ht⟩)) + |
| 48 | Q (t, initialResponseTrace lambda w hT F ⟨t, ht⟩)) |
| 49 | (s : ℝ) |
| 50 | (hinside : ∀ t : Icc (0 : ℝ) T, |
| 51 | ((t : ℝ), initialResponseTrace lambda w hT F t) ∈ O) |
| 52 | (htranslated : ∀ t : Icc (0 : ℝ) T, |
| 53 | ((t : ℝ), vectorPeriodicSpectralTranslation (L := L) s |
| 54 | (initialResponseTrace lambda w hT F t)) ∈ O) : |
| 55 | ∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, |
| 56 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) t = |
| 57 | M (G (t, initialResponseTrace lambda |
| 58 | (vectorPeriodicSpectralTranslation (L := L) s w) hT |
| 59 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) |
| 60 | ⟨t, ht⟩)) |
| 61 | (initialHeatHigh lambda (vectorPeriodicSpectralTranslation (L := L) s w) t + |
| 62 | shiftedHighOperator hT lambda |
| 63 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) t - |
| 64 | shiftedBaseMultiplier lambda (initialResponseTrace lambda |
| 65 | (vectorPeriodicSpectralTranslation (L := L) s w) hT |
| 66 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) |
| 67 | ⟨t, ht⟩)) + |
| 68 | Q (t, initialResponseTrace lambda (vectorPeriodicSpectralTranslation (L := L) s w) hT |
| 69 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) |
| 70 | ⟨t, ht⟩) := by |
| 71 | filter_upwards [heq, |
| 72 | (vectorPeriodicSpectralTranslation (L := L) s).coeFn_compLpL F, |
| 73 | vectorPeriodicSpectralTranslation_shiftedHigh (L := L) hT F s, |
| 74 | ae_restrict_mem measurableSet_Ioc] with t heqt hact hhigh htime |
| 75 | intro ht |
| 76 | have hc := hcoeff s t (initialResponseTrace lambda w hT F ⟨t, ht⟩) |
| 77 | ht.1 (hinside ⟨t, ht⟩) (htranslated ⟨t, ht⟩) |
| 78 | have htrace : initialResponseTrace lambda (vectorPeriodicSpectralTranslation (L := L) s w) |
| 79 | hT ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) |
| 80 | ⟨t, ht⟩ = |
| 81 | vectorPeriodicSpectralTranslation (L := L) s |
| 82 | (initialResponseTrace lambda w hT F ⟨t, ht⟩) := |
| 83 | vectorPeriodicSpectralTranslation_initialResponseTrace (L := L) hT w F s ⟨t, ht⟩ |
| 84 | have hheat : initialHeatHigh lambda (vectorPeriodicSpectralTranslation (L := L) s w) t = |
| 85 | vectorPeriodicSpectralTranslation (L := L) s (initialHeatHigh lambda w t) := |
| 86 | vectorPeriodicSpectralTranslation_initialHeatHigh (L := L) w s htime.1 |
| 87 | have hJ (v : S) : vectorPeriodicSpectralTranslation (L := L) s |
| 88 | (shiftedBaseMultiplier lambda v) = |
| 89 | shiftedBaseMultiplier lambda (vectorPeriodicSpectralTranslation (L := L) s v) := |
| 90 | vectorPeriodicSpectralTranslation_shiftedBaseMultiplier (L := L) v s |
| 91 | change shiftedHighOperator hT lambda |
| 92 | ((vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F) t = |
| 93 | vectorPeriodicSpectralTranslation (L := L) s (shiftedHighOperator hT lambda F t) |
| 94 | at hhigh |
| 95 | rw [hact, heqt ht, map_add, hM, htrace, hc.1, hc.2, hheat, hhigh, |
| 96 | ← hJ, ← map_add, ← map_sub] |
| 97 | |
| 98 | end PoincareMT.M63 |