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.Initial.ForcingTranslation |
| 2 | import Mathlib.Topology.CompactOpen |
| 3 | |
| 4 | /-! |
| 5 | # Translation of the local initial-state branch |
| 6 | |
| 7 | The literal forcing equation, strong continuity and local uniqueness |
| 8 | identify the nearby translation orbit of the actual branch. MT2007 |
| 9 | Claim 19.1, p. 437; `2026-09-21-nonlinear-spectral-translation.md`, |
| 10 | statement 4. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped Topology |
| 17 | |
| 18 | namespace PoincareMT.M63 |
| 19 | |
| 20 | open SpectralHeatNative |
| 21 | |
| 22 | variable {L : ℝ} {ι : Type*} [Fintype ι] |
| 23 | |
| 24 | local notation "S" => State ((ℤ × Fin 2) × ι) |
| 25 | local notation "H" => lp (fun _ : ℤ => ℂ) 2 |
| 26 | local notation "lambda" => (fun p : (ℤ × Fin 2) × ι => periodicSpectrum L (Prod.fst p)) |
| 27 | |
| 28 | /-- The actual locally unique branch agrees with translated forcing |
| 29 | for all sufficiently small spatial shifts. MT2007 Claim 19.1, p. 437; |
| 30 | nonlinear spectral translation, statement 4. Compact time-domain control |
| 31 | is used only for the open physical coefficient agreement set. -/ |
| 32 | theorem eventually_initialBranch_spectralTranslation |
| 33 | (M : H →L[ℝ] S →L[ℝ] S) (G : ℝ × S → H) (Q : ℝ × S → S) |
| 34 | (hM : ∀ s c v, vectorPeriodicSpectralTranslation (L := L) s (M c v) = |
| 35 | M (periodicSpectralTranslation (L := L) s c) |
| 36 | (vectorPeriodicSpectralTranslation (L := L) s v)) |
| 37 | {O : Set (ℝ × S)} (hO : IsOpen O) |
| 38 | (hcoeff : ∀ s t v, 0 ≤ t → (t, v) ∈ O → |
| 39 | (t, vectorPeriodicSpectralTranslation (L := L) s v) ∈ O → |
| 40 | G (t, vectorPeriodicSpectralTranslation (L := L) s v) = |
| 41 | periodicSpectralTranslation (L := L) s (G (t, v)) ∧ |
| 42 | Q (t, vectorPeriodicSpectralTranslation (L := L) s v) = |
| 43 | vectorPeriodicSpectralTranslation (L := L) s (Q (t, v))) |
| 44 | {T : ℝ} (hT : 0 ≤ T) (w : S) (F : ForcingSpace ((ℤ × Fin 2) × ι) T) |
| 45 | (u : S → ForcingSpace ((ℤ × Fin 2) × ι) T) |
| 46 | (heq : ∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, |
| 47 | F t = M (G (t, initialResponseTrace lambda w hT F ⟨t, ht⟩)) |
| 48 | (initialHeatHigh lambda w t + shiftedHighOperator hT lambda F t - |
| 49 | shiftedBaseMultiplier lambda (initialResponseTrace lambda w hT F ⟨t, ht⟩)) + |
| 50 | Q (t, initialResponseTrace lambda w hT F ⟨t, ht⟩)) |
| 51 | (hunique : ∀ᶠ z : S × ForcingSpace ((ℤ × Fin 2) × ι) T in 𝓝 (w, F), |
| 52 | (∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, |
| 53 | z.2 t = M (G (t, initialResponseTrace lambda z.1 hT z.2 ⟨t, ht⟩)) |
| 54 | (initialHeatHigh lambda z.1 t + shiftedHighOperator hT lambda z.2 t - |
| 55 | shiftedBaseMultiplier lambda (initialResponseTrace lambda z.1 hT z.2 ⟨t, ht⟩)) + |
| 56 | Q (t, initialResponseTrace lambda z.1 hT z.2 ⟨t, ht⟩)) ↔ u z.1 = z.2) |
| 57 | (hinside : ∀ t : Icc (0 : ℝ) T, |
| 58 | ((t : ℝ), initialResponseTrace lambda w hT F t) ∈ O) : |
| 59 | ∀ᶠ s : ℝ in 𝓝 0, |
| 60 | u (vectorPeriodicSpectralTranslation (L := L) s w) = |
| 61 | (vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F := by |
| 62 | let V := initialResponseTrace lambda w hT F |
| 63 | let K : ℝ → C(Icc (0 : ℝ) T, ℝ × S) := fun s => |
| 64 | ⟨fun t => ((t : ℝ), vectorPeriodicSpectralTranslation (L := L) s (V t)), |
| 65 | continuous_subtype_val.prodMk |
| 66 | ((vectorPeriodicSpectralTranslation (L := L) s).continuous.comp V.continuous)⟩ |
| 67 | have hK : Continuous K := by |
| 68 | apply ContinuousMap.continuous_of_continuous_uncurry |
| 69 | have harg : Continuous (fun z : ℝ × Icc (0 : ℝ) T => (z.1, V z.2)) := |
| 70 | continuous_fst.prodMk (V.continuous.comp continuous_snd) |
| 71 | have hshift := (continuous_vectorPeriodicSpectralTranslation (L := L) (ι := ι)).comp harg |
| 72 | exact (continuous_subtype_val.comp continuous_snd).prodMk |
| 73 | hshift |
| 74 | have hdomain : ∀ᶠ s : ℝ in 𝓝 0, ∀ t : Icc (0 : ℝ) T, |
| 75 | ((t : ℝ), vectorPeriodicSpectralTranslation (L := L) s (V t)) ∈ O := by |
| 76 | have hN : K ⁻¹' {f : C(Icc (0 : ℝ) T, ℝ × S) | MapsTo f univ O} ∈ 𝓝 0 := |
| 77 | ((ContinuousMap.isOpen_setOfPred_mapsTo isCompact_univ hO).preimage hK).mem_nhds |
| 78 | (by |
| 79 | intro t _ |
| 80 | change ((t : ℝ), vectorPeriodicSpectralTranslation (L := L) 0 (V t)) ∈ O |
| 81 | simpa only [vectorPeriodicSpectralTranslation_zero, |
| 82 | ContinuousLinearMap.id_apply] using hinside t) |
| 83 | filter_upwards [hN] with s hs |
| 84 | exact fun t => hs (mem_univ t) |
| 85 | have hwarg : Continuous (fun s : ℝ => (s, w)) := |
| 86 | continuous_id.prodMk continuous_const |
| 87 | have hFarg : Continuous (fun s : ℝ => (s, F)) := |
| 88 | continuous_id.prodMk continuous_const |
| 89 | have hwcont := |
| 90 | (continuous_vectorPeriodicSpectralTranslation (L := L) (ι := ι)).comp hwarg |
| 91 | have hFcont := (continuous_vectorPeriodicSpectralTranslation_compLpL |
| 92 | (L := L) (ι := ι) (timeMeasure T)).comp hFarg |
| 93 | have hpair := hwcont.prodMk hFcont |
| 94 | have hlim : Tendsto (fun s : ℝ => |
| 95 | (vectorPeriodicSpectralTranslation (L := L) s w, |
| 96 | (vectorPeriodicSpectralTranslation (L := L) s).compLpL 2 (timeMeasure T) F)) |
| 97 | (𝓝 0) (𝓝 (w, F)) := by |
| 98 | have h := hpair.continuousAt.tendsto (x := 0) |
| 99 | simp only [Function.comp_def] at h |
| 100 | rw [vectorPeriodicSpectralTranslation_compLpL_zero, |
| 101 | vectorPeriodicSpectralTranslation_zero, ContinuousLinearMap.id_apply] at h |
| 102 | exact h |
| 103 | filter_upwards [hdomain, hlim.eventually hunique] with s hs hu |
| 104 | exact hu.mp (initial_forcing_equation_spectralTranslation M G Q hM hcoeff hT w F heq s |
| 105 | hinside hs) |
| 106 | |
| 107 | end PoincareMT.M63 |