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.Smooth.InitialForcing |
| 2 | |
| 3 | /-! |
| 4 | # Actual forcing agreement on the centered ball |
| 5 | |
| 6 | The jointly differentiable initial forcing agrees with the actual |
| 7 | centered residual on the entire closed forcing ball. MT2007 Claim 19.1, |
| 8 | p. 437; `2026-09-21-initial-forcing-parameter-branch.md`, statement 1. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set Filter MeasureTheory |
| 14 | |
| 15 | namespace PoincareMT.M63.CenteredSpectralResidual |
| 16 | |
| 17 | open SpectralHeatNative QuasilinearDeTurckNative |
| 18 | |
| 19 | /-- The smooth actual initial forcing realizes the centered residual |
| 20 | on its forcing ball, retaining the exact shifted correction. MT2007 |
| 21 | Claim 19.1, p. 437; initial forcing parameter derivation, statement 1. -/ |
| 22 | theorem exists_contDiff_forcingResidual |
| 23 | {iota E : Type*} [Countable iota] [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 24 | [MeasurableSpace (State iota)] [BorelSpace (State iota)] |
| 25 | {lambda : iota → NNReal} {w : State iota} {T r r0 : ℝ} {k : ℕ∞} |
| 26 | (N : CenteredSpectralResidual lambda w T) (hT : 0 ≤ T) (hT1 : T ≤ 1) |
| 27 | (_hr : 0 ≤ r) (hrr0 : 2 * r ≤ r0) |
| 28 | (M : E →L[ℝ] State iota →L[ℝ] State iota) |
| 29 | (G : ℝ × State iota → E) (Q : ℝ × State iota → State iota) |
| 30 | (hG : ContDiff ℝ k G) (hQ : ContDiff ℝ k Q) |
| 31 | (hsource : ∀ᵐ t ∂timeMeasure T, ∀ x, |
| 32 | ‖shiftedBaseMultiplier lambda x‖ ≤ r0 → |
| 33 | N.toFun t x = |
| 34 | M (G (t, heat lambda t.toNNReal w + shiftedBaseMultiplier lambda x)) |
| 35 | (initialHeatHigh lambda w t + x) + |
| 36 | Q (t, heat lambda t.toNNReal w + shiftedBaseMultiplier lambda x) - |
| 37 | M (G (t, heat lambda t.toNNReal w + shiftedBaseMultiplier lambda x)) |
| 38 | (shiftedBaseMultiplier lambda |
| 39 | (heat lambda t.toNNReal w + shiftedBaseMultiplier lambda x))) : |
| 40 | ∃ R : State iota × ForcingSpace iota T → ForcingSpace iota T, |
| 41 | ContDiff ℝ k R ∧ |
| 42 | (∀ w' F, ∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, |
| 43 | R (w', F) t = |
| 44 | M (G (t, initialResponseTrace lambda w' hT F ⟨t, ht⟩)) |
| 45 | (initialHeatHigh lambda w' t + shiftedHighOperator hT lambda F t - |
| 46 | shiftedBaseMultiplier lambda (initialResponseTrace lambda w' hT F ⟨t, ht⟩)) + |
| 47 | Q (t, initialResponseTrace lambda w' hT F ⟨t, ht⟩)) ∧ |
| 48 | ∀ F, ‖F‖ ≤ r → R (w, F) = N.forcingResidual hT F := by |
| 49 | obtain ⟨R, hR, hrep⟩ := exists_contDiff_initialForcing lambda hT M G Q hG hQ |
| 50 | refine ⟨R, hR, hrep, ?_⟩ |
| 51 | intro F hF |
| 52 | apply Lp.ext |
| 53 | filter_upwards [hrep w F, N.forcingResidual_coe hT F, hsource, |
| 54 | intermediate_high_eq_trace hT lambda F, intermediate_high_bound hT hT1 lambda F, |
| 55 | ae_restrict_mem measurableSet_Ioc] with t hRt hNt hsourceT htrace hbound hmem |
| 56 | have ht : t ∈ Icc (0 : ℝ) T := ⟨hmem.1.le, hmem.2⟩ |
| 57 | have hball : ‖shiftedBaseMultiplier lambda (shiftedHighOperator hT lambda F t)‖ ≤ r0 := |
| 58 | hbound.trans ((mul_le_mul_of_nonneg_left hF (by norm_num)).trans hrr0) |
| 59 | have hV : heat lambda t.toNNReal w + |
| 60 | shiftedBaseMultiplier lambda (shiftedHighOperator hT lambda F t) = |
| 61 | initialResponseTrace lambda w hT F ⟨t, ht⟩ := by |
| 62 | change heat lambda t.toNNReal w + |
| 63 | shiftedBaseMultiplier lambda (shiftedHighOperator hT lambda F t) = |
| 64 | heat lambda t.toNNReal w + shiftedTracePath hT lambda F ⟨t, ht⟩ |
| 65 | rw [htrace ht] |
| 66 | have hN := hsourceT (shiftedHighOperator hT lambda F t) hball |
| 67 | rw [hV] at hN |
| 68 | rw [hRt ht, hNt, hN, map_sub] |
| 69 | abel |
| 70 | |
| 71 | end PoincareMT.M63.CenteredSpectralResidual |