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.ForcingAgreement |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Strict.CenteredInterval |
| 3 | |
| 4 | /-! |
| 5 | # Initial-state dependence of the actual spectral response |
| 6 | |
| 7 | The strict centered forcing margin permits direct use of M03's |
| 8 | parameter fixed-point theorem. MT2007 Claim 19.1, p. 437; |
| 9 | `2026-09-21-initial-forcing-parameter-branch.md`, statement 2. |
| 10 | The resulting closed trace has H2 regularity, not an initial C2 claim. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped Topology ContDiff |
| 17 | |
| 18 | namespace PoincareMT.M63.CenteredSpectralResidual |
| 19 | |
| 20 | open SpectralHeatNative QuasilinearDeTurckNative DeTurckMetricProducerNative |
| 21 | |
| 22 | /-- The actual centered response has a finite-order local initial-state |
| 23 | branch and closed trace dependence, with the literal forcing equation. |
| 24 | MT2007 Claim 19.1, p. 437; initial forcing parameter derivation, statement 2. -/ |
| 25 | theorem exists_initial_parameter_branch |
| 26 | {iota E : Type*} [Countable iota] [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 27 | [MeasurableSpace (State iota)] [BorelSpace (State iota)] |
| 28 | {lambda : iota → NNReal} {w : State iota} {T0 r0 : ℝ} {k : ℕ∞} |
| 29 | (N : CenteredSpectralResidual lambda w T0) (hT0 : 0 < T0) (hr0 : 0 < r0) |
| 30 | (heps : (N.perturbationConstant : ℝ) < 1 / 2) (hk : k ≠ 0) |
| 31 | (M : E →L[ℝ] State iota →L[ℝ] State iota) |
| 32 | (G : ℝ × State iota → E) (Q : ℝ × State iota → State iota) |
| 33 | (hG : ContDiff ℝ k G) (hQ : ContDiff ℝ k Q) |
| 34 | (hsource : ∀ᵐ t ∂timeMeasure T0, ∀ x, |
| 35 | ‖shiftedBaseMultiplier lambda x‖ ≤ r0 → |
| 36 | N.toFun t x = |
| 37 | M (G (t, heat lambda t.toNNReal w + shiftedBaseMultiplier lambda x)) |
| 38 | (initialHeatHigh lambda w t + x) + |
| 39 | Q (t, heat lambda t.toNNReal w + shiftedBaseMultiplier lambda x) - |
| 40 | M (G (t, heat lambda t.toNNReal w + shiftedBaseMultiplier lambda x)) |
| 41 | (shiftedBaseMultiplier lambda |
| 42 | (heat lambda t.toNNReal w + shiftedBaseMultiplier lambda x))) : |
| 43 | ∃ T : ℝ, ∃ hT : 0 < T, T ≤ T0 ∧ T ≤ 1 ∧ |
| 44 | ∃ (F : ForcingSpace iota T) (u : State iota → ForcingSpace iota T), |
| 45 | ‖F‖ < r0 / 2 ∧ u w = F ∧ ContDiffAt ℝ k u w ∧ |
| 46 | ContDiffAt ℝ k (fun w' => initialResponseTrace lambda w' hT.le (u w')) w ∧ |
| 47 | (∀ᶠ w' in 𝓝 w, ∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, |
| 48 | u w' t = |
| 49 | M (G (t, initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) |
| 50 | (initialHeatHigh lambda w' t + shiftedHighOperator hT.le lambda (u w') t - |
| 51 | shiftedBaseMultiplier lambda |
| 52 | (initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) + |
| 53 | Q (t, initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) ∧ |
| 54 | ∀ t : Icc (0 : ℝ) T, |
| 55 | ‖initialResponseTrace lambda w hT.le F t - heat lambda (t : ℝ).toNNReal w‖ < r0 := by |
| 56 | obtain ⟨r, hr, hrr0, T, hT, hTT0, hT1, hkappa, hzero⟩ := |
| 57 | N.exists_strict_positive_interval hT0 heps (show 0 < r0 / 2 by positivity) |
| 58 | let Nt := N.restrict hTT0 |
| 59 | let kappa : ℝ := 2 * Nt.perturbationConstant + 8 * Nt.principalConstant * r + |
| 60 | 2 * Nt.principalConstant * |
| 61 | ‖(initialHeatHigh_memLp_energy lambda w hT.le).1.toLp (initialHeatHigh lambda w)‖ + |
| 62 | 2 * Nt.lowerConstant * Real.sqrt T |
| 63 | have hkappa0 : 0 ≤ kappa := by dsimp [kappa]; positivity |
| 64 | have hkappa1 : kappa < 1 := hkappa |
| 65 | have hz : ‖Nt.zero_memLp.toLp (fun t => Nt.toFun t 0)‖ < (1 - kappa) * r / 2 := hzero |
| 66 | have hweak : ‖Nt.zero_memLp.toLp (fun t => Nt.toFun t 0)‖ ≤ (1 - kappa) * r := by |
| 67 | have hpos := mul_pos (sub_pos.mpr hkappa1) hr |
| 68 | linarith only [hz, hpos] |
| 69 | obtain ⟨F, _U, _D, _E, hF, _hU, _hD, _hE, hfix, _hrest⟩ := |
| 70 | Nt.exists_initial_spectral_response hT.le hT1 hr.le hkappa1 hweak |
| 71 | have hFhalf := Nt.norm_fixedPoint_lt_half hT.le hT1 hr hkappa1 hz F hF hfix |
| 72 | have hFcap : ‖F‖ < r0 / 2 := by linarith only [hFhalf, hrr0, hr] |
| 73 | have hsourceT := ae_mono |
| 74 | (Measure.restrict_mono (Ioc_subset_Ioc le_rfl hTT0) le_rfl) hsource |
| 75 | obtain ⟨R, hR, hrep, hagree⟩ := Nt.exists_contDiff_forcingResidual hT.le hT1 hr.le |
| 76 | (show 2 * r ≤ r0 by linarith only [hrr0]) M G Q hG hQ hsourceT |
| 77 | have hRfix : R (w, F) = F := (hagree F hF).trans hfix |
| 78 | have hFinterior : ‖F‖ < r := by linarith only [hFhalf, hr] |
| 79 | have hLip (A B : ForcingSpace iota T) (hA : ‖A‖ ≤ r) (hB : ‖B‖ ≤ r) : |
| 80 | ‖R (w, A) - R (w, B)‖ ≤ kappa * ‖A - B‖ := by |
| 81 | rw [hagree A hA, hagree B hB] |
| 82 | exact Nt.norm_forcingResidual_sub_le hT.le hT1 hr.le A B hA hB |
| 83 | have hk' : (k : ℕ∞ω) ≠ 0 := by exact_mod_cast hk |
| 84 | obtain ⟨u, huw, hu, hueq, _hunique⟩ := |
| 85 | exists_contDiffAt_fixedPoint_of_contraction R hk' hR.contDiffAt hRfix |
| 86 | hFinterior hkappa0 hkappa1 hLip |
| 87 | refine ⟨T, hT, hTT0, hT1, F, u, hFcap, huw, hu, ?_, ?_, ?_⟩ |
| 88 | · obtain ⟨V0, _, hV0⟩ := exists_initialHeatPath_operator lambda hT.le |
| 89 | have hpath : (fun w' => initialResponseTrace lambda w' hT.le (u w')) = |
| 90 | fun w' => V0 w' + shiftedTraceOperator hT.le lambda (u w') := by |
| 91 | funext w' |
| 92 | apply ContinuousMap.ext |
| 93 | intro t |
| 94 | change heat lambda (t : ℝ).toNNReal w' + shiftedTracePath hT.le lambda (u w') t = _ |
| 95 | rw [ContinuousMap.add_apply, hV0] |
| 96 | rfl |
| 97 | rw [hpath] |
| 98 | exact V0.contDiff.contDiffAt.add |
| 99 | ((shiftedTraceOperator hT.le lambda).contDiff.contDiffAt.comp w hu) |
| 100 | · filter_upwards [hueq] with w' hw' |
| 101 | have h := hrep w' (u w') |
| 102 | rw [hw'] at h |
| 103 | exact h |
| 104 | · intro t |
| 105 | have hsqrt : Real.sqrt T ≤ 1 := by |
| 106 | simpa only [Real.sqrt_one] using Real.sqrt_le_sqrt hT1 |
| 107 | apply ((initialResponseTrace_spec lambda w hT.le F).2.2.1 t).trans_lt |
| 108 | calc |
| 109 | (Real.sqrt T + 1) * ‖F‖ ≤ 2 * ‖F‖ := by gcongr; linarith only [hsqrt] |
| 110 | _ < r0 := by linarith only [hFcap] |
| 111 | |
| 112 | end PoincareMT.M63.CenteredSpectralResidual |