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 Euler.MeanHarmonicLaplacian |
| 2 | |
| 3 | /-! Harmonicity of actual coordinate derivatives on an open subset of R³. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerMeanHarmonic |
| 8 | |
| 9 | open InnerProductSpace Laplacian EulerSmoothLimit EulerVectorCalculus |
| 10 | open scoped ContDiff Topology |
| 11 | |
| 12 | theorem partialDerivative_sum (f : Fin 3 → Space → ℝ) |
| 13 | (hf : ∀ i, ContDiff ℝ ∞ (f i)) (j : Fin 3) (x : Space) : |
| 14 | partialDerivative (fun y => ∑ i : Fin 3, f i y) j x = |
| 15 | ∑ i : Fin 3, partialDerivative (f i) j x := by |
| 16 | unfold partialDerivative |
| 17 | rw [(HasFDerivAt.fun_sum (fun i (_ : i ∈ (Finset.univ : Finset (Fin 3))) => |
| 18 | (((hf i).differentiable (by simp)).differentiableAt).hasFDerivAt)).fderiv] |
| 19 | simp |
| 20 | |
| 21 | theorem laplacian_partialDerivative (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 22 | (i : Fin 3) (x : Space) : |
| 23 | Δ (partialDerivative f i) x = partialDerivative (Δ f) i x := by |
| 24 | have hsum : Δ f = fun y => ∑ j : Fin 3, partialDerivative (partialDerivative f j) j y := |
| 25 | funext fun y => laplacian_eq_coordinate_sum f hf y |
| 26 | rw [laplacian_eq_coordinate_sum _ (contDiff_partialDerivative f hf i) x, hsum, |
| 27 | partialDerivative_sum _ (fun j => contDiff_partialDerivative _ |
| 28 | (contDiff_partialDerivative f hf j) j)] |
| 29 | apply Finset.sum_congr rfl |
| 30 | intro j _ |
| 31 | have heq : partialDerivative (partialDerivative f i) j = |
| 32 | partialDerivative (partialDerivative f j) i := |
| 33 | funext fun y => partialDerivative_comm f (hf.of_le (by simp)) i j y |
| 34 | rw [heq] |
| 35 | exact partialDerivative_comm (partialDerivative f j) |
| 36 | ((contDiff_partialDerivative f hf j).of_le (by simp)) i j x |
| 37 | |
| 38 | /-- Differentiating a harmonic function preserves harmonicity on the same open set. -/ |
| 39 | theorem partialDerivative_harmonic_on (f : Space → ℝ) (hf : ContDiff ℝ ∞ f) |
| 40 | (U : Set Space) (hU : IsOpen U) (hh : ∀ x ∈ U, Δ f x = 0) (i : Fin 3) : |
| 41 | ∀ x ∈ U, Δ (partialDerivative f i) x = 0 := by |
| 42 | intro x hx |
| 43 | rw [laplacian_partialDerivative f hf i x] |
| 44 | have heq : Δ f =ᶠ[nhds x] (fun _ => (0 : ℝ)) := by |
| 45 | filter_upwards [hU.mem_nhds hx] with y hy |
| 46 | exact hh y hy |
| 47 | unfold partialDerivative |
| 48 | rw [heq.fderiv_eq] |
| 49 | simp |
| 50 | |
| 51 | def wordDerivative : List (Fin 3) → (Space → ℝ) → Space → ℝ |
| 52 | | [], f => f |
| 53 | | i :: word, f => partialDerivative (wordDerivative word f) i |
| 54 | |
| 55 | theorem wordDerivative_smooth (word : List (Fin 3)) (f : Space → ℝ) |
| 56 | (hf : ContDiff ℝ ∞ f) : ContDiff ℝ ∞ (wordDerivative word f) := by |
| 57 | induction word with |
| 58 | | nil => exact hf |
| 59 | | cons i word ih => exact contDiff_partialDerivative _ ih i |
| 60 | |
| 61 | theorem wordDerivative_harmonic_on (word : List (Fin 3)) (f : Space → ℝ) |
| 62 | (hf : ContDiff ℝ ∞ f) (U : Set Space) (hU : IsOpen U) |
| 63 | (hh : ∀ x ∈ U, Δ f x = 0) : ∀ x ∈ U, Δ (wordDerivative word f) x = 0 := by |
| 64 | induction word with |
| 65 | | nil => exact hh |
| 66 | | cons i word ih => |
| 67 | exact partialDerivative_harmonic_on _ (wordDerivative_smooth word f hf) U hU ih i |
| 68 | |
| 69 | end EulerMeanHarmonic |