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.FlowL2Transport |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Bounds |
| 3 | |
| 4 | /-! Actual Sobolev integrability under a smooth volume-preserving change |
| 5 | of variables, with an explicit finite-order composition constant. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerVolumeSobolevComposition |
| 10 | |
| 11 | open Set MeasureTheory EulerMetricTransport EulerLiftedGradientSpace |
| 12 | open scoped ContDiff NNReal ENNReal |
| 13 | |
| 14 | variable (f g : Vector3 → Vector3) (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 15 | (n : ℕ) (D : ℝ) (hD : 0 ≤ D) |
| 16 | (hjet : ∀ i, 1 ≤ i → i ≤ n → ∀ x, ‖iteratedFDeriv ℝ i f x‖ ≤ D^i) |
| 17 | |
| 18 | include hf hg hjet in |
| 19 | theorem compositionTensor_pointwise (x : Vector3) : |
| 20 | ‖iteratedFDeriv ℝ n (g ∘ f) x‖ ≤ |
| 21 | ((n.factorial : ℝ)*D^n) * ∑ i : Fin (n+1), ‖iteratedFDeriv ℝ i.val g (f x)‖ := by |
| 22 | have h := norm_iteratedFDeriv_comp_le hg hf (by simp : (n : ℕ∞ω) ≤ (∞ : ℕ∞ω)) x |
| 23 | (C := ∑ i : Fin (n+1), ‖iteratedFDeriv ℝ i.val g (f x)‖) (D := D) |
| 24 | (fun i hi => Finset.single_le_sum |
| 25 | (f := fun j : Fin (n+1) => ‖iteratedFDeriv ℝ j.val g (f x)‖) |
| 26 | (fun _ _ => norm_nonneg _) |
| 27 | (Finset.mem_univ (⟨i,by omega⟩ : Fin (n+1)))) |
| 28 | (fun i h1 hi => hjet i h1 hi x) |
| 29 | exact h.trans_eq (by ring) |
| 30 | |
| 31 | variable (hmp : MeasurePreserving f volume volume) |
| 32 | (hLp : ∀ i, i ≤ n → MemLp (iteratedFDeriv ℝ i g) 2 volume) |
| 33 | |
| 34 | include hmp hLp in |
| 35 | theorem composedJetNorm_memLp (i : Fin (n+1)) : |
| 36 | MemLp (fun x => ‖iteratedFDeriv ℝ i.val g (f x)‖) 2 volume := |
| 37 | ((hLp i (by omega)).norm).comp_measurePreserving hmp |
| 38 | |
| 39 | include hf hg hD hjet hmp hLp in |
| 40 | theorem compositionTensor_memLp : |
| 41 | MemLp (iteratedFDeriv ℝ n (g ∘ f)) 2 volume := by |
| 42 | have hs : MemLp (fun x => ∑ i : Fin (n+1), ‖iteratedFDeriv ℝ i.val g (f x)‖) 2 volume := |
| 43 | memLp_finsetSum _ (fun i _ => composedJetNorm_memLp f g n hmp hLp i) |
| 44 | have hc : Continuous (iteratedFDeriv ℝ n (g ∘ f)) := |
| 45 | (hg.comp hf).continuous_iteratedFDeriv (by simp) |
| 46 | apply (hs.const_mul ((n.factorial : ℝ)*D^n)).of_le hc.aestronglyMeasurable |
| 47 | filter_upwards [] with x |
| 48 | rw [Real.norm_of_nonneg (mul_nonneg (by positivity) |
| 49 | (Finset.sum_nonneg (fun _ _ => norm_nonneg _)))] |
| 50 | exact compositionTensor_pointwise f g hf hg n D hjet x |
| 51 | |
| 52 | def compositionTensorLp : |
| 53 | Lp (Vector3 [×n]→L[ℝ] Vector3) 2 (volume : Measure Vector3) := |
| 54 | (compositionTensor_memLp f g hf hg n D hD hjet hmp hLp).toLp (iteratedFDeriv ℝ n (g ∘ f)) |
| 55 | |
| 56 | theorem compositionTensorLp_norm_le : |
| 57 | ‖compositionTensorLp f g hf hg n D hD hjet hmp hLp‖ ≤ |
| 58 | ((n.factorial : ℝ)*D^n) * ∑ i : Fin (n+1), |
| 59 | (eLpNorm (iteratedFDeriv ℝ i.val g) 2 volume).toReal := by |
| 60 | let β : ℝ≥0 := ⟨(n.factorial : ℝ)*D^n,by positivity⟩ |
| 61 | have hA : eLpNorm (iteratedFDeriv ℝ n (g ∘ f)) 2 volume ≤ |
| 62 | (β : ℝ≥0∞)*eLpNorm (fun x => ∑ i : Fin (n+1), ‖iteratedFDeriv ℝ i.val g (f x)‖) 2 volume := by |
| 63 | apply eLpNorm_le_nnreal_smul_eLpNorm_of_ae_le_mul |
| 64 | filter_upwards [] with x |
| 65 | apply NNReal.coe_le_coe.mp |
| 66 | change ‖iteratedFDeriv ℝ n (g ∘ f) x‖ ≤ ((n.factorial : ℝ)*D^n)* |
| 67 | ‖∑ i : Fin (n+1), ‖iteratedFDeriv ℝ i.val g (f x)‖‖ |
| 68 | rw [Real.norm_of_nonneg (Finset.sum_nonneg (fun _ _ => norm_nonneg _))] |
| 69 | exact compositionTensor_pointwise f g hf hg n D hjet x |
| 70 | have he : (fun x => ∑ i : Fin (n+1), ‖iteratedFDeriv ℝ i.val g (f x)‖) = |
| 71 | ∑ i : Fin (n+1), (fun x => ‖iteratedFDeriv ℝ i.val g (f x)‖) := by |
| 72 | funext x |
| 73 | simp only [Finset.sum_apply] |
| 74 | rw [he] at hA |
| 75 | have hB := eLpNorm_sum_le (fun i (_ : i ∈ (Finset.univ : Finset (Fin (n+1)))) => |
| 76 | (composedJetNorm_memLp f g n hmp hLp i).aestronglyMeasurable) |
| 77 | (by norm_num : (1 : ℝ≥0∞) ≤ 2) |
| 78 | have hc (i : Fin (n+1)) : eLpNorm (fun x => ‖iteratedFDeriv ℝ i.val g (f x)‖) 2 volume = |
| 79 | eLpNorm (iteratedFDeriv ℝ i.val g) 2 volume := by |
| 80 | change eLpNorm ((fun y => ‖iteratedFDeriv ℝ i.val g y‖) ∘ f) 2 volume = _ |
| 81 | rw [eLpNorm_comp_measurePreserving (hLp i (by omega)).aestronglyMeasurable.norm hmp,eLpNorm_norm] |
| 82 | simp_rw [hc] at hB |
| 83 | have hAB : eLpNorm (iteratedFDeriv ℝ n (g ∘ f)) 2 volume ≤ |
| 84 | (β : ℝ≥0∞)*∑ i : Fin (n+1), eLpNorm (iteratedFDeriv ℝ i.val g) 2 volume := by |
| 85 | exact hA.trans (mul_le_mul le_rfl hB (by positivity) (by positivity)) |
| 86 | have hfin : (β : ℝ≥0∞)*∑ i : Fin (n+1), |
| 87 | eLpNorm (iteratedFDeriv ℝ i.val g) 2 volume ≠ ⊤ := |
| 88 | ENNReal.mul_ne_top ENNReal.coe_ne_top |
| 89 | (ENNReal.sum_ne_top.2 (fun i _ => (hLp i (by omega)).eLpNorm_ne_top)) |
| 90 | have hR := ENNReal.toReal_mono hfin hAB |
| 91 | rw [ENNReal.toReal_mul,ENNReal.coe_toReal, |
| 92 | ENNReal.toReal_sum (fun (i : Fin (n+1)) _ => (hLp i.val (by omega)).eLpNorm_ne_top)] at hR |
| 93 | have hβ : (β : ℝ) = (n.factorial : ℝ)*D^n := rfl |
| 94 | rw [hβ] at hR |
| 95 | simpa only [compositionTensorLp,Lp.norm_toLp] using hR |
| 96 | |
| 97 | end EulerVolumeSobolevComposition |