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.Periodic.SpectralTranslation |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Real.PeriodicJets |
| 3 | |
| 4 | /-! |
| 5 | # Translation of the actual real spectral state |
| 6 | |
| 7 | Realification conjugates the complex phase action without losing |
| 8 | either coordinate. MT2007 Claim 19.1, p. 437; |
| 9 | `2026-09-21-real-vector-spectral-translation.md`, statements 1-5. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open PoincareMT.SpectralHeatNative |
| 15 | |
| 16 | namespace PoincareMT.M63 |
| 17 | |
| 18 | variable {L : ℝ} |
| 19 | |
| 20 | /-- The literal realification of the complex phase action. MT2007 |
| 21 | Claim 19.1, p. 437; real/vector spectral-translation derivation, |
| 22 | statement 1. No positive-period premise is needed for the action. -/ |
| 23 | noncomputable def realPeriodicSpectralTranslation (a : ℝ) : |
| 24 | State (ℤ × Fin 2) →L[ℝ] State (ℤ × Fin 2) := |
| 25 | complexLpRealEquiv.toContinuousLinearEquiv.toContinuousLinearMap.comp |
| 26 | (((periodicSpectralTranslation (L := L) a).restrictScalars ℝ).comp |
| 27 | complexLpRealEquiv.symm.toContinuousLinearEquiv.toContinuousLinearMap) |
| 28 | |
| 29 | /-- Inverse realification recovers the exact complex phase action, |
| 30 | and the full real state norm is preserved. MT2007 Claim 19.1, |
| 31 | p. 437; real/vector spectral-translation derivation, statement 2. -/ |
| 32 | theorem realPeriodicSpectralTranslation_spec (a : ℝ) (u : State (ℤ × Fin 2)) : |
| 33 | complexLpRealEquiv.symm (realPeriodicSpectralTranslation (L := L) a u) = |
| 34 | periodicSpectralTranslation (L := L) a (complexLpRealEquiv.symm u) ∧ |
| 35 | ‖realPeriodicSpectralTranslation (L := L) a u‖ = ‖u‖ := by |
| 36 | constructor |
| 37 | · exact complexLpRealEquiv.symm_apply_apply _ |
| 38 | · change ‖complexLpRealEquiv |
| 39 | (periodicSpectralTranslation (L := L) a (complexLpRealEquiv.symm u))‖ = ‖u‖ |
| 40 | rw [complexLpRealEquiv.norm_map, (periodicSpectralTranslation_spec a _).2, |
| 41 | complexLpRealEquiv.symm.norm_map] |
| 42 | |
| 43 | /-- Real spectral translation is jointly strongly continuous in its |
| 44 | parameter and state. MT2007 Claim 19.1, p. 437; |
| 45 | real/vector spectral-translation derivation, statement 3. -/ |
| 46 | theorem continuous_realPeriodicSpectralTranslation : |
| 47 | Continuous (fun p : ℝ × State (ℤ × Fin 2) => |
| 48 | realPeriodicSpectralTranslation (L := L) p.1 p.2) := by |
| 49 | let e := complexLpRealEquiv (ι := ℤ) |
| 50 | have harg : Continuous (fun p : ℝ × State (ℤ × Fin 2) => (p.1, e.symm p.2)) := |
| 51 | continuous_fst.prodMk (e.symm.continuous.comp continuous_snd) |
| 52 | have hc := (continuous_periodicSpectralTranslation (L := L)).comp harg |
| 53 | exact e.continuous.comp hc |
| 54 | |
| 55 | /-- Real weights common to each real/imaginary pair commute with |
| 56 | translation when both weighted states exist. No boundedness of the |
| 57 | weight is inferred. MT2007 Claim 19.1, p. 437; real/vector |
| 58 | spectral-translation derivation, statement 4. -/ |
| 59 | theorem realPeriodicSpectralTranslation_real_weight (m : ℤ → ℝ) |
| 60 | (u v : State (ℤ × Fin 2)) (h : ∀ p, v p = m p.1 * u p) (a : ℝ) : |
| 61 | ∀ p, realPeriodicSpectralTranslation (L := L) a v p = |
| 62 | m p.1 * realPeriodicSpectralTranslation (L := L) a u p := by |
| 63 | have hc : ∀ n, complexLpRealEquiv.symm v n = |
| 64 | (m n : ℂ) * complexLpRealEquiv.symm u n := by |
| 65 | apply (complexLpRealEquiv_real_weight_iff m (complexLpRealEquiv.symm u) |
| 66 | (complexLpRealEquiv.symm v)).mpr |
| 67 | simpa only [complexLpRealEquiv.apply_symm_apply] using h |
| 68 | change ∀ p, complexLpRealEquiv |
| 69 | (periodicSpectralTranslation (L := L) a (complexLpRealEquiv.symm v)) p = |
| 70 | m p.1 * complexLpRealEquiv |
| 71 | (periodicSpectralTranslation (L := L) a (complexLpRealEquiv.symm u)) p |
| 72 | apply (complexLpRealEquiv_real_weight_iff m _ _).mp |
| 73 | intro n |
| 74 | change fourier n (-(a : AddCircle L)) * complexLpRealEquiv.symm v n = |
| 75 | (m n : ℂ) * (fourier n (-(a : AddCircle L)) * complexLpRealEquiv.symm u n) |
| 76 | rw [hc n] |
| 77 | ring |
| 78 | |
| 79 | /-- Every permitted actual real periodic jet is translated by the |
| 80 | real spectral action. MT2007 Claim 19.1, p. 437; |
| 81 | real/vector spectral-translation derivation, statement 5. -/ |
| 82 | theorem realPeriodicJet_spectralTranslation [Fact (0 < L)] |
| 83 | (k j : ℕ) (hj : j ≤ k) (u : State (ℤ × Fin 2)) (a : ℝ) : |
| 84 | realPeriodicJet (L := L) k j hj (realPeriodicSpectralTranslation (L := L) a u) = |
| 85 | periodicTranslation a (realPeriodicJet (L := L) k j hj u) := by |
| 86 | ext x |
| 87 | change (periodicSobolevJet (L := L) k j hj |
| 88 | (complexLpRealEquiv.symm (realPeriodicSpectralTranslation (L := L) a u)) x).re = |
| 89 | (periodicSobolevJet (L := L) k j hj |
| 90 | (complexLpRealEquiv.symm u) (x - (a : AddCircle L))).re |
| 91 | rw [(realPeriodicSpectralTranslation_spec a u).1, |
| 92 | periodicSobolevJet_periodicSpectralTranslation] |
| 93 | rfl |
| 94 | |
| 95 | end PoincareMT.M63 |