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.ParameterBranch |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Centered.RealCoefficientSource |
| 3 | |
| 4 | /-! |
| 5 | # Actual parameter response from coefficient data |
| 6 | |
| 7 | Initial vanishing and uniform local Lipschitz bounds construct the |
| 8 | centered residual needed by the initial-parameter branch. MT2007 |
| 9 | Claim 19.1, p. 437; `2026-09-21-coefficient-parameter-response.md`. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter MeasureTheory |
| 15 | open scoped Topology |
| 16 | |
| 17 | namespace PoincareMT.M63 |
| 18 | |
| 19 | open SpectralHeatNative QuasilinearDeTurckNative |
| 20 | |
| 21 | /-- Actual coefficient data gives a positive-time parameter response |
| 22 | and closed H2 trace dependence, with the exact nonlinear forcing |
| 23 | equation. MT2007 Claim 19.1, p. 437; coefficient parameter derivation. |
| 24 | No centered residual or pre-existing solution is assumed. -/ |
| 25 | theorem exists_coefficient_parameter_response |
| 26 | {iota E : Type*} [Countable iota] |
| 27 | [NormedAddCommGroup E] [NormedSpace ℝ E] [SecondCountableTopology E] |
| 28 | [MeasurableSpace (State iota)] [BorelSpace (State iota)] |
| 29 | (lambda : iota → NNReal) (w : State iota) {Tcap r0 : ℝ} {k : ℕ∞} |
| 30 | (hTcap : 0 < Tcap) (hr0 : 0 < r0) (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) (hzero : G (0, w) = 0) |
| 34 | (hLip : ∀ R : ℝ, 0 ≤ R → ∃ KG KQ : NNReal, ∀ t u v, |
| 35 | ‖u‖ ≤ R → ‖v‖ ≤ R → |
| 36 | ‖G (t, u) - G (t, v)‖ ≤ KG * ‖u - v‖ ∧ |
| 37 | ‖Q (t, u) - Q (t, v)‖ ≤ KQ * ‖u - v‖) : |
| 38 | ∃ T : ℝ, ∃ hT : 0 < T, T ≤ Tcap ∧ T ≤ 1 ∧ |
| 39 | ∃ (F : ForcingSpace iota T) (u : State iota → ForcingSpace iota T), |
| 40 | ‖F‖ < r0 / 2 ∧ u w = F ∧ ContDiffAt ℝ k u w ∧ |
| 41 | ContDiffAt ℝ k (fun w' => initialResponseTrace lambda w' hT.le (u w')) w ∧ |
| 42 | (∀ᶠ w' in 𝓝 w, ∀ᵐ t ∂timeMeasure T, ∀ ht : t ∈ Icc (0 : ℝ) T, |
| 43 | u w' t = |
| 44 | M (G (t, initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) |
| 45 | (initialHeatHigh lambda w' t + shiftedHighOperator hT.le lambda (u w') t - |
| 46 | shiftedBaseMultiplier lambda |
| 47 | (initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) + |
| 48 | Q (t, initialResponseTrace lambda w' hT.le (u w') ⟨t, ht⟩)) ∧ |
| 49 | ∀ t : Icc (0 : ℝ) T, |
| 50 | ‖initialResponseTrace lambda w hT.le F t - heat lambda (t : ℝ).toNNReal w‖ < r0 := by |
| 51 | obtain ⟨KG, KQ, hcoeff⟩ := hLip (‖w‖ + r0) (by positivity) |
| 52 | obtain ⟨T1, hT1, hT1cap, N, _hepsEq, _hprincipal, _hlower, heps, hsource⟩ := |
| 53 | exists_centeredRealCoefficientSource lambda w hTcap hr0 M |
| 54 | (fun t u => G (t, u)) (fun t u => Q (t, u)) hG.continuous hQ.continuous KG KQ |
| 55 | (fun t _ u v hu hv => (hcoeff t u v hu hv).1) |
| 56 | (fun t _ u v hu hv => (hcoeff t u v hu hv).2) hzero |
| 57 | have huncut := hsource.mono (fun _ ht x hx => (ht x).2 hx) |
| 58 | obtain ⟨T, hT, hTT1, hrest⟩ := |
| 59 | N.exists_initial_parameter_branch hT1 hr0 heps hk M G Q hG hQ huncut |
| 60 | exact ⟨T, hT, hTT1.trans hT1cap, hrest⟩ |
| 61 | |
| 62 | end PoincareMT.M63 |