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.Time.DependentSpectralResidual |
| 2 | |
| 3 | /-! |
| 4 | # Actual spectral response for a time-dependent residual |
| 5 | |
| 6 | The explicit mixed estimate and smallness hypotheses feed M03's proved |
| 7 | forcing fixed point. Its actual spectral response retains the derivative, |
| 8 | generator, high-coordinate identities and energy bound. Uniqueness here |
| 9 | concerns the stated forcing ball. MT2007 Claim 19.1, p. 437; contract |
| 10 | review block 8; see `2026-09-21-time-dependent-spectral-residual.md`. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped Topology ENNReal |
| 17 | |
| 18 | namespace PoincareMT.M63.TimeDependentSpectralResidual |
| 19 | |
| 20 | open SpectralHeatNative |
| 21 | |
| 22 | variable {iota : Type*} [Countable iota] |
| 23 | [MeasurableSpace (State iota)] [BorelSpace (State iota)] |
| 24 | {lambda : iota → NNReal} {T r : ℝ} |
| 25 | (N : TimeDependentSpectralResidual lambda T) |
| 26 | |
| 27 | /-- Explicit smallness of the actual residual constructs an L2 forcing |
| 28 | fixed point and the actual zero-initial spectral response, with its |
| 29 | coefficient equations and maximal energy bound. This does not identify |
| 30 | the residual with a curve operator. MT2007 Claim 19.1, p. 437; contract |
| 31 | block 8 and the supporting time-dependent residual derivation. -/ |
| 32 | theorem exists_spectral_response (hT : 0 ≤ T) (hT1 : T ≤ 1) (hr : 0 ≤ r) |
| 33 | (hsmall : 2 * N.perturbationConstant + 8 * N.principalConstant * r + |
| 34 | 2 * N.lowerConstant * Real.sqrt T < 1) |
| 35 | (hzero : ‖N.zero_memLp.toLp (fun t => N.toFun t 0)‖ ≤ |
| 36 | (1 - (2 * N.perturbationConstant + 8 * N.principalConstant * r + |
| 37 | 2 * N.lowerConstant * Real.sqrt T)) * r) : |
| 38 | ∃ (F : ForcingSpace iota T) (U D G : ℝ → State iota), |
| 39 | ‖F‖ ≤ r ∧ U = responseState lambda F ∧ N.forcingResidual hT F = F ∧ |
| 40 | U 0 = 0 ∧ ContinuousOn U (Icc (0 : ℝ) T) ∧ |
| 41 | MemLp D 2 (timeMeasure T) ∧ MemLp G 2 (timeMeasure T) ∧ |
| 42 | (∀ᵐ t ∂timeMeasure T, HasDerivAt U (D t) t) ∧ |
| 43 | (∀ᵐ t ∂timeMeasure T, |
| 44 | D t + G t = N.toFun t (shiftedHighOperator hT lambda F t)) ∧ |
| 45 | (∀ᵐ t ∂timeMeasure T, ∀ i, G t i = (lambda i : ℝ) * U t i) ∧ |
| 46 | (∀ᵐ t ∂timeMeasure T, ∀ i, |
| 47 | shiftedHighOperator hT lambda F t i = (1 + (lambda i : ℝ)) * U t i) ∧ |
| 48 | (∫ t, ‖D t‖ ^ 2 ∂timeMeasure T) + (∫ t, ‖G t‖ ^ 2 ∂timeMeasure T) ≤ r ^ 2 ∧ |
| 49 | Tendsto (fun m : ℕ => (N.forcingResidual hT)^[m] 0) atTop (𝓝 F) := by |
| 50 | let kappa : NNReal := |
| 51 | ⟨2 * N.perturbationConstant + 8 * N.principalConstant * r + |
| 52 | 2 * N.lowerConstant * Real.sqrt T, by positivity⟩ |
| 53 | have hzeroR : ‖N.forcingResidual hT 0‖ ≤ (1 - (kappa : ℝ)) * r := by |
| 54 | rw [N.forcingResidual_zero] |
| 55 | exact hzero |
| 56 | obtain ⟨F, hF, hfix, hiter, _⟩ := exists_forcing_fixedPoint (N.forcingResidual hT) |
| 57 | hr (show kappa < 1 from hsmall) hzeroR |
| 58 | (fun V W hV hW => N.norm_forcingResidual_sub_le hT hT1 hr V W hV hW) |
| 59 | have hsource := N.forcingResidual_coe hT F |
| 60 | rw [hfix] at hsource |
| 61 | refine ⟨F, responseState lambda F, derivativeState lambda F, generatorState lambda F, |
| 62 | hF, rfl, hfix, responseState_zero lambda F, |
| 63 | continuousOn_responseState_of_memLp hT (Lp.memLp F) lambda, |
| 64 | memLp_derivativeState_of_memLp hT (Lp.memLp F) lambda, |
| 65 | memLp_generatorState_of_memLp hT (Lp.memLp F) lambda, |
| 66 | ae_hasDerivAt_responseState_of_memLp hT (Lp.memLp F) lambda, ?_, |
| 67 | ae_generatorState_apply_of_memLp hT (Lp.memLp F) lambda, |
| 68 | shiftedHighOperator_coeff hT lambda F, ?_, hiter⟩ |
| 69 | · filter_upwards [derivativeState_add_generatorState_of_memLp hT (Lp.memLp F) lambda, |
| 70 | hsource] with t ht hN |
| 71 | exact ht.trans hN |
| 72 | · calc |
| 73 | _ ≤ ∫ t, ‖F t‖ ^ 2 ∂timeMeasure T := |
| 74 | integral_response_energy_le_of_memLp hT (Lp.memLp F) lambda |
| 75 | _ = ‖F‖ ^ 2 := (forcing_norm_sq F).symm |
| 76 | _ ≤ r ^ 2 := (sq_le_sq₀ (norm_nonneg F) hr).mpr hF |
| 77 | |
| 78 | /-- The explicit contraction condition makes the actual forcing fixed |
| 79 | point unique in its stated radius ball. No geometric or larger-time |
| 80 | uniqueness is asserted. MT2007 Claim 19.1, p. 437; supporting residual |
| 81 | construction in contract review block 8. -/ |
| 82 | theorem forcing_fixedPoint_unique (hT : 0 ≤ T) (hT1 : T ≤ 1) (hr : 0 ≤ r) |
| 83 | (hsmall : 2 * N.perturbationConstant + 8 * N.principalConstant * r + |
| 84 | 2 * N.lowerConstant * Real.sqrt T < 1) |
| 85 | {F G : ForcingSpace iota T} (hF : ‖F‖ ≤ r) (hG : ‖G‖ ≤ r) |
| 86 | (hfixF : N.forcingResidual hT F = F) (hfixG : N.forcingResidual hT G = G) : F = G := by |
| 87 | have h := N.norm_forcingResidual_sub_le hT hT1 hr F G hF hG |
| 88 | rw [hfixF, hfixG] at h |
| 89 | have hnorm : ‖F - G‖ = 0 := by nlinarith [norm_nonneg (F - G)] |
| 90 | exact sub_eq_zero.mp (norm_eq_zero.mp hnorm) |
| 91 | |
| 92 | end PoincareMT.M63.TimeDependentSpectralResidual |