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.DivCurlRecovery |
| 2 | import Euler.LpFiniteTensorReconstruction |
| 3 | import Euler.LpSmoothField |
| 4 | import Mathlib.MeasureTheory.SpecificCodomains.WithLp |
| 5 | import Euler.TensorCoordinateEnergyBound |
| 6 | import Euler.LpBochnerRealization |
| 7 | |
| 8 | /-! Recover the actual all-order L² Fréchet tensors from scalar coordinate |
| 9 | derivatives. The derivative hypotheses used here are consequences of compact |
| 10 | vorticity, ordinary smoothness, and finite velocity energy. -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | |
| 15 | namespace EulerComparatorRecovery |
| 16 | |
| 17 | open MeasureTheory EulerSmoothLimit EulerVectorCalculus EulerMeanHarmonic |
| 18 | EulerLpTranslation EulerLpFiniteTensor EulerMeanCutoffCurl |
| 19 | open scoped ContDiff Topology |
| 20 | |
| 21 | /-- List coordinate derivatives agree with the ordinary Fréchet tensor |
| 22 | evaluated on the corresponding sequence of coordinate directions. -/ |
| 23 | theorem iteratedFDeriv_coordinate_word (n : ℕ) (w : Fin n → Fin 3) |
| 24 | (h : Space → ℝ) (hh : ContDiff ℝ ∞ h) (x : Space) : |
| 25 | iteratedFDeriv ℝ n h x (fun i => direction (w i)) = |
| 26 | wordDerivative (List.ofFn w) h x := by |
| 27 | induction n generalizing x with |
| 28 | | zero => simp [wordDerivative] |
| 29 | | succ n ih => |
| 30 | have hd : DifferentiableAt ℝ (iteratedFDeriv ℝ n h) x := |
| 31 | ((hh.iteratedFDeriv_right (m := ∞) (by simp)).differentiable (by simp)).differentiableAt |
| 32 | rw [hd.iteratedFDeriv_succ_apply_left'] |
| 33 | have he : (fun y => iteratedFDeriv ℝ n h y |
| 34 | (Fin.tail (fun i => direction (w i)))) = wordDerivative (List.ofFn (Fin.tail w)) h := by |
| 35 | funext y |
| 36 | exact ih (Fin.tail w) y |
| 37 | rw [he, List.ofFn_succ] |
| 38 | rfl |
| 39 | |
| 40 | /-- Coordinate projection commutes with the actual iterated Fréchet derivative. -/ |
| 41 | theorem iteratedFDeriv_component (n : ℕ) (u : Space → Space) |
| 42 | (hu : ContDiff ℝ ∞ u) (x : Space) (m : Fin n → Space) (j : Fin 3) : |
| 43 | iteratedFDeriv ℝ n (fun y => u y j) x m = (iteratedFDeriv ℝ n u x m) j := by |
| 44 | have he := (EuclideanSpace.proj j : Space →L[ℝ] ℝ).iteratedFDeriv_comp_left |
| 45 | (hu.contDiffAt (x := x)) (i := n) (by simp) |
| 46 | exact congrArg (fun A : Space [×n]→L[ℝ] ℝ => A m) he |
| 47 | |
| 48 | /-- Every coordinate evaluation of the Fréchet tensor is in L². -/ |
| 49 | theorem iteratedFDeriv_coordinate_memLp (u : Space → Space) |
| 50 | (hu : ContDiff ℝ ∞ u) (hL2 : MemLp u 2 volume) |
| 51 | (hdiv : ∀ x, divergence u x = 0) (hc : HasCompactSupport (vectorCurl u)) |
| 52 | (n : ℕ) (w : Fin n → Fin 3) : |
| 53 | MemLp (fun x => iteratedFDeriv ℝ n u x (fun i => direction (w i))) 2 volume := by |
| 54 | apply MemLp.of_eval_piLp |
| 55 | intro j |
| 56 | have he : (fun x => (iteratedFDeriv ℝ n u x (fun i => direction (w i))) j) = |
| 57 | wordDerivative (List.ofFn w) (fun x => u x j) := by |
| 58 | funext x |
| 59 | rw [← iteratedFDeriv_component n u hu x _ j] |
| 60 | exact iteratedFDeriv_coordinate_word n w _ ((contDiff_piLp 2).mp hu j) x |
| 61 | rw [he] |
| 62 | exact component_wordDerivative_memLp u hu hL2 hdiv hc j (List.ofFn w) |
| 63 | |
| 64 | /-- Smooth finite-energy divergence-free velocity with compact vorticity |
| 65 | has all its actual Fréchet derivatives in L². -/ |
| 66 | theorem iteratedFDeriv_memLp_of_curl_compact (u : Space → Space) |
| 67 | (hu : ContDiff ℝ ∞ u) (hL2 : MemLp u 2 volume) |
| 68 | (hdiv : ∀ x, divergence u x = 0) (hc : HasCompactSupport (vectorCurl u)) |
| 69 | (n : ℕ) : MemLp (iteratedFDeriv ℝ n u) 2 volume := by |
| 70 | have ht : MemLp (fun x => tensorCoordinates n (iteratedFDeriv ℝ n u x)) 2 volume := by |
| 71 | apply MemLp.of_eval |
| 72 | intro w |
| 73 | exact iteratedFDeriv_coordinate_memLp u hu hL2 hdiv hc n w |
| 74 | have hr := (tensorReassembly (V := Space) n).comp_memLp' ht |
| 75 | simpa only [Function.comp_def, tensorReassembly_coordinates] using hr |
| 76 | |
| 77 | /-- The derivative class used by the development follows from ordinary |
| 78 | smoothness, finite energy, solenoidality, and compact vorticity. -/ |
| 79 | def smoothL2Field_of_curl_compact (u : Space → Space) |
| 80 | (hu : ContDiff ℝ ∞ u) (hL2 : MemLp u 2 volume) |
| 81 | (hdiv : ∀ x, divergence u x = 0) (hc : HasCompactSupport (vectorCurl u)) : |
| 82 | SmoothL2Field Space where |
| 83 | field := u |
| 84 | smooth := hu |
| 85 | integrable := iteratedFDeriv_memLp_of_curl_compact u hu hL2 hdiv hc |
| 86 | |
| 87 | /-- The literal tensor energy is controlled by finitely many scalar coordinate |
| 88 | energies. The constant is fixed by the derivative order alone. -/ |
| 89 | theorem tensor_integral_norm_sq_le_coordinate_energy (n : ℕ) |
| 90 | (F : Space → (Space [×n]→L[ℝ] Space)) (hF : MemLp F 2 volume) : |
| 91 | (∫ x, ‖F x‖ ^ 2) ≤ ‖tensorReassembly (V := Space) n‖ ^ 2 * |
| 92 | ∑ w : Fin n → Fin 3, ∑ j : Fin 3, |
| 93 | ∫ x, (F x (fun i => direction (w i)) j) ^ 2 := by |
| 94 | have hcoord (w : Fin n → Fin 3) (j : Fin 3) : |
| 95 | Integrable (fun x => (F x (fun i => direction (w i)) j) ^ 2) := by |
| 96 | have ht := ((tensorCoordinates (V := Space) n).comp_memLp' hF).eval w |
| 97 | exact (ht.eval_piLp j).integrable_sq |
| 98 | have hsum (w : Fin n → Fin 3) : Integrable |
| 99 | (fun x => ∑ j : Fin 3, (F x (fun i => direction (w i)) j) ^ 2) := |
| 100 | integrable_finsetSum Finset.univ (fun j _ => hcoord w j) |
| 101 | calc |
| 102 | (∫ x, ‖F x‖ ^ 2) ≤ ∫ x, ‖tensorReassembly (V := Space) n‖ ^ 2 * |
| 103 | ∑ w : Fin n → Fin 3, ∑ j : Fin 3, |
| 104 | (F x (fun i => direction (w i)) j) ^ 2 := |
| 105 | integral_mono ((memLp_two_iff_integrable_sq_norm hF.aestronglyMeasurable).mp hF) |
| 106 | ((integrable_finsetSum Finset.univ (fun w _ => hsum w)).const_mul _) |
| 107 | (fun x => tensor_norm_sq_le_coordinate_energy n (F x)) |
| 108 | _ = _ := by |
| 109 | rw [integral_const_mul, integral_finsetSum Finset.univ (fun w _ => hsum w)] |
| 110 | congr 1 |
| 111 | apply Finset.sum_congr rfl |
| 112 | intro w _ |
| 113 | exact integral_finsetSum Finset.univ (fun j _ => hcoord w j) |
| 114 | |
| 115 | /-- The L² class of a smooth field's tensor has exactly its ordinary integral |
| 116 | energy, so quantitative recovery applies to the development's norm. -/ |
| 117 | theorem jetLp_norm_sq_eq_integral (A : SmoothL2Field Space) (n : ℕ) : |
| 118 | ‖A.jetLp n‖ ^ 2 = ∫ x, ‖iteratedFDeriv ℝ n A.field x‖ ^ 2 := by |
| 119 | rw [EulerLpBochnerRealization.norm_sq_eq_integral] |
| 120 | apply integral_congr_ae |
| 121 | filter_upwards [(A.integrable n).coeFn_toLp] with x hx |
| 122 | exact congrArg (fun v : Space [×n]→L[ℝ] Space => ‖v‖ ^ 2) hx |
| 123 | |
| 124 | /-- Uniform bounds for scalar coordinate-word energies yield uniform L² |
| 125 | norms of the actual Fréchet tensors over an arbitrary parameter set. -/ |
| 126 | theorem jetLp_norm_uniform_of_coordinate_energy {ι : Type*} |
| 127 | (A : ι → SmoothL2Field Space) |
| 128 | (henergy : ∀ (j : Fin 3) (word : List (Fin 3)), ∃ B : ℝ, |
| 129 | ∀ t, (∫ x, wordDerivative word (fun y => (A t).field y j) x ^ 2) ≤ B) |
| 130 | (n : ℕ) : ∃ M : ℝ, ∀ t, ‖(A t).jetLp n‖ ≤ M := by |
| 131 | classical |
| 132 | choose B hB using fun (w : Fin n → Fin 3) (j : Fin 3) => henergy j (List.ofFn w) |
| 133 | let C : ℝ := ‖tensorReassembly (V := Space) n‖ ^ 2 * |
| 134 | ∑ w : Fin n → Fin 3, ∑ j : Fin 3, B w j |
| 135 | refine ⟨Real.sqrt (max C 0), fun t => ?_⟩ |
| 136 | apply (Real.le_sqrt (norm_nonneg _) (le_max_right C 0)).mpr |
| 137 | apply le_trans _ (le_max_left C 0) |
| 138 | rw [jetLp_norm_sq_eq_integral] |
| 139 | apply (tensor_integral_norm_sq_le_coordinate_energy n _ ((A t).integrable n)).trans |
| 140 | apply mul_le_mul_of_nonneg_left _ (sq_nonneg _) |
| 141 | apply Finset.sum_le_sum |
| 142 | intro w _ |
| 143 | apply Finset.sum_le_sum |
| 144 | intro j _ |
| 145 | have he : (fun x => (iteratedFDeriv ℝ n (A t).field x |
| 146 | (fun i => direction (w i)) j) ^ 2) = |
| 147 | (fun x => wordDerivative (List.ofFn w) (fun y => (A t).field y j) x ^ 2) := by |
| 148 | funext x |
| 149 | rw [← iteratedFDeriv_component n (A t).field (A t).smooth x _ j, |
| 150 | iteratedFDeriv_coordinate_word n w _ ((contDiff_piLp 2).mp (A t).smooth j) x] |
| 151 | rw [he] |
| 152 | exact hB w j t |
| 153 | |
| 154 | end EulerComparatorRecovery |