Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.NilpotentVolterra |
| 2 | |
| 3 | noncomputable section |
| 4 | |
| 5 | namespace NavierStokes.NilpotentVolterra |
| 6 | |
| 7 | open Set MeasureTheory |
| 8 | |
| 9 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 10 | |
| 11 | /-- The integrating factor cancels the singular zeroth-order coefficient. -/ |
| 12 | theorem integratingFactor_hasDerivAt (c : ℕ) {W g : ℝ → E} {r : ℝ} |
| 13 | (hr : r ≠ 0) (hW : HasDerivAt W (g r - ((c : ℝ) / r) • W r) r) : |
| 14 | HasDerivAt (fun s => s ^ c • W s) (r ^ c • g r) r := by |
| 15 | have hfactor : (c : ℝ) * r ^ (c - 1) = r ^ c * ((c : ℝ) / r) := by |
| 16 | cases c with |
| 17 | | zero => simp |
| 18 | | succ n => |
| 19 | simp only [Nat.add_sub_cancel, pow_succ] |
| 20 | field_simp |
| 21 | convert (hasDerivAt_pow c r).fun_smul hW using 1 |
| 22 | rw [smul_sub, smul_smul, hfactor] |
| 23 | exact (sub_add_cancel _ _).symm |
| 24 | |
| 25 | /-- Every continuous zero-axis solution of the regular singular equation is |
| 26 | the actual Volterra integral, including at both ends of the radial interval. -/ |
| 27 | theorem eq_regularPrimitive_of_hasDerivAt [CompleteSpace E] (c : ℕ) |
| 28 | {R : ℝ} {W g : ℝ → E} |
| 29 | (hW : ContinuousOn W (Icc (0 : ℝ) R)) |
| 30 | (hg : ContinuousOn g (Icc (0 : ℝ) R)) (hW0 : W 0 = 0) |
| 31 | (hderiv : ∀ r ∈ Ioo (0 : ℝ) R, |
| 32 | HasDerivAt W (g r - ((c : ℝ) / r) • W r) r) |
| 33 | {r : ℝ} (hr : r ∈ Icc (0 : ℝ) R) : |
| 34 | W r = regularPrimitive c g r := by |
| 35 | by_cases hr0 : r = 0 |
| 36 | · simpa only [hr0, regularPrimitive_zero] using hW0 |
| 37 | have hsub : Icc (0 : ℝ) r ⊆ Icc (0 : ℝ) R := Icc_subset_Icc le_rfl hr.2 |
| 38 | have hcont : ContinuousOn (fun s => s ^ c • W s) (Icc (0 : ℝ) r) := |
| 39 | (continuous_id.pow c).continuousOn.smul (hW.mono hsub) |
| 40 | have hint : IntervalIntegrable (fun s => s ^ c • g s) volume 0 r := |
| 41 | ((continuous_id.pow c).continuousOn.smul (hg.mono hsub)).intervalIntegrable_of_Icc hr.1 |
| 42 | have heq : (∫ s in (0 : ℝ)..r, s ^ c • g s) = r ^ c • W r := by |
| 43 | have hftc := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le hr.1 hcont |
| 44 | (fun s hs => integratingFactor_hasDerivAt c hs.1.ne' |
| 45 | (hderiv s ⟨hs.1, hs.2.trans_le hr.2⟩)) hint |
| 46 | simpa only [hW0, smul_zero, sub_zero] using hftc |
| 47 | rw [regularPrimitive_eq_div c g hr0, heq, inv_smul_smul₀ (pow_ne_zero c hr0)] |
| 48 | |
| 49 | end NavierStokes.NilpotentVolterra |