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.VolumeSobolevComposition |
| 2 | import Euler.LpPointwiseMultiplier |
| 3 | |
| 4 | /-! Strong Sobolev continuity under genuine varying volume-preserving |
| 5 | maps. Faà di Bruno gives actual derivative tensors, and dominated |
| 6 | convergence handles the bounded, pointwise continuous coefficients. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerVolumeSobolevPath |
| 11 | |
| 12 | open MeasureTheory Filter EulerMetricTransport EulerLiftedGradientSpace |
| 13 | EulerLpPointwiseMultiplier |
| 14 | open scoped Topology ContDiff |
| 15 | |
| 16 | abbrev Tensor (n : ℕ) := Vector3 [×n]→L[ℝ] Vector3 |
| 17 | |
| 18 | private local instance (n : ℕ) : NormedAddCommGroup (Tensor n) := inferInstance |
| 19 | private local instance (n : ℕ) : NormedSpace ℝ (Tensor n) := inferInstance |
| 20 | private local instance (a b : ℕ) : NormedAddCommGroup (Tensor a →L[ℝ] Tensor b) := inferInstance |
| 21 | private local instance (a b : ℕ) : NormedSpace ℝ (Tensor a →L[ℝ] Tensor b) := inferInstance |
| 22 | private local instance (a b : ℕ) : SecondCountableTopologyEither Vector3 (Tensor a →L[ℝ] Tensor b) := |
| 23 | ⟨Or.inl inferInstance⟩ |
| 24 | |
| 25 | variable {K : Type*} [TopologicalSpace K] |
| 26 | (Y : C(K,C(Vector3,Vector3))) (hmp : ∀ t, MeasurePreserving (Y t) volume volume) |
| 27 | (u : ∀ i : ℕ, C(K,Lp (Tensor i) 2 (volume : Measure Vector3))) |
| 28 | |
| 29 | def pulledJetPath (i : ℕ) : C(K,Lp (Tensor i) 2 (volume : Measure Vector3)) where |
| 30 | toFun t := Lp.compMeasurePreserving (Y t) (hmp t) (u i t) |
| 31 | continuous_toFun := (u i).continuous.compMeasurePreservingLp Y.continuous hmp (by norm_num) |
| 32 | |
| 33 | theorem pulledJetPath_ae (g : K → Vector3 → Vector3) |
| 34 | (hu : ∀ i t, (u i t : Vector3 → Tensor i) =ᵐ[volume] iteratedFDeriv ℝ i (g t)) |
| 35 | (i : ℕ) (t : K) : |
| 36 | (pulledJetPath Y hmp u i t : Vector3 → Tensor i) =ᵐ[volume] |
| 37 | fun x => iteratedFDeriv ℝ i (g t) (Y t x) := |
| 38 | (Lp.coeFn_compMeasurePreserving (u i t) (hmp t)).trans |
| 39 | ((hmp t).quasiMeasurePreserving.ae_eq_comp (hu i t)) |
| 40 | |
| 41 | variable {n : ℕ} |
| 42 | |
| 43 | def partitionCoefficient (c : OrderedFinpartition n) (t : K) (x : Vector3) : |
| 44 | Tensor c.length →L[ℝ] Tensor n := |
| 45 | (c.compAlongOrderedFinpartitionL ℝ Vector3 Vector3 Vector3).flipMultilinear |
| 46 | (fun i => iteratedFDeriv ℝ (c.partSize i) (Y t) x) |
| 47 | |
| 48 | theorem partitionCoefficient_apply (c : OrderedFinpartition n) (t : K) (x : Vector3) |
| 49 | (v : Tensor c.length) : |
| 50 | partitionCoefficient Y c t x v = c.compAlongOrderedFinpartition v |
| 51 | (fun i => iteratedFDeriv ℝ (c.partSize i) (Y t) x) := rfl |
| 52 | |
| 53 | def partitionBound (D : ℝ) (c : OrderedFinpartition n) : ℝ := |
| 54 | ∏ i : Fin c.length, D^(c.partSize i) |
| 55 | |
| 56 | variable (D : ℝ) (hD : 0 ≤ D) |
| 57 | (hJ : ∀ i, 1 ≤ i → i ≤ n → |
| 58 | Continuous (fun z : K × Vector3 => iteratedFDeriv ℝ i (Y z.1) z.2)) |
| 59 | (hB : ∀ i, 1 ≤ i → i ≤ n → ∀ t x, ‖iteratedFDeriv ℝ i (Y t) x‖ ≤ D^i) |
| 60 | |
| 61 | include hJ in |
| 62 | theorem partitionCoefficient_continuous (c : OrderedFinpartition n) : |
| 63 | Continuous (Function.uncurry (partitionCoefficient Y c)) := by |
| 64 | exact (c.compAlongOrderedFinpartitionL ℝ Vector3 Vector3 Vector3).flipMultilinear.cont.comp |
| 65 | (continuous_pi (fun i => hJ (c.partSize i) (c.partSize_pos i) (c.partSize_le i))) |
| 66 | |
| 67 | include hD hB in |
| 68 | theorem partitionCoefficient_bound (c : OrderedFinpartition n) (t : K) (x : Vector3) : |
| 69 | ‖partitionCoefficient Y c t x‖ ≤ partitionBound D c := by |
| 70 | apply ContinuousLinearMap.opNorm_le_bound _ (Finset.prod_nonneg (fun i _ => pow_nonneg hD _)) |
| 71 | intro v |
| 72 | rw [partitionCoefficient_apply] |
| 73 | calc |
| 74 | _ ≤ ‖v‖ * ∏ i, ‖iteratedFDeriv ℝ (c.partSize i) (Y t) x‖ := |
| 75 | c.norm_compAlongOrderedFinpartition_le _ _ |
| 76 | _ ≤ ‖v‖ * partitionBound D c := mul_le_mul_of_nonneg_left |
| 77 | (Finset.prod_le_prod (fun _ _ => norm_nonneg _) |
| 78 | (fun i _ => hB (c.partSize i) (c.partSize_pos i) (c.partSize_le i) t x)) (norm_nonneg _) |
| 79 | _ = _ := mul_comm _ _ |
| 80 | |
| 81 | variable [FirstCountableTopology K] |
| 82 | |
| 83 | def partitionPath (c : OrderedFinpartition n) : |
| 84 | C(K,Lp (Tensor n) 2 (volume : Measure Vector3)) where |
| 85 | toFun t := operator volume (partitionCoefficient Y c t) |
| 86 | ((partitionCoefficient_continuous Y hJ c).uncurry_left t).aestronglyMeasurable |
| 87 | (partitionBound D c) (partitionCoefficient_bound Y D hD hB c t) (pulledJetPath Y hmp u c.length t) |
| 88 | continuous_toFun := operator_path_continuous volume (partitionBound D c) (partitionCoefficient Y c) |
| 89 | (fun t => ((partitionCoefficient_continuous Y hJ c).uncurry_left t).aestronglyMeasurable) |
| 90 | (fun _ => (partitionCoefficient_continuous Y hJ c).comp (continuous_id.prodMk continuous_const)) |
| 91 | (partitionCoefficient_bound Y D hD hB c) _ (pulledJetPath Y hmp u c.length).continuous |
| 92 | |
| 93 | theorem partitionPath_ae (g : K → Vector3 → Vector3) |
| 94 | (hu : ∀ i t, (u i t : Vector3 → Tensor i) =ᵐ[volume] iteratedFDeriv ℝ i (g t)) |
| 95 | (c : OrderedFinpartition n) (t : K) : |
| 96 | (partitionPath Y hmp u D hD hJ hB c t : Vector3 → Tensor n) =ᵐ[volume] |
| 97 | fun x => c.compAlongOrderedFinpartition (iteratedFDeriv ℝ c.length (g t) (Y t x)) |
| 98 | (fun i => iteratedFDeriv ℝ (c.partSize i) (Y t) x) := by |
| 99 | have h := operator_ae volume (partitionCoefficient Y c t) |
| 100 | ((partitionCoefficient_continuous Y hJ c).uncurry_left t).aestronglyMeasurable |
| 101 | (partitionBound D c) (partitionCoefficient_bound Y D hD hB c t) (pulledJetPath Y hmp u c.length t) |
| 102 | filter_upwards [h,pulledJetPath_ae Y hmp u g hu c.length t] with x hx hy |
| 103 | exact hx.trans (by rw [hy,partitionCoefficient_apply]) |
| 104 | |
| 105 | def tensorPath : C(K,Lp (Tensor n) 2 (volume : Measure Vector3)) := |
| 106 | ∑ c : OrderedFinpartition n, partitionPath Y hmp u D hD hJ hB c |
| 107 | |
| 108 | theorem tensorPath_ae (g : K → Vector3 → Vector3) |
| 109 | (hg : ∀ t, ContDiff ℝ ∞ (g t)) (hY : ∀ t, ContDiff ℝ ∞ (Y t)) |
| 110 | (hu : ∀ i t, (u i t : Vector3 → Tensor i) =ᵐ[volume] iteratedFDeriv ℝ i (g t)) (t : K) : |
| 111 | (tensorPath Y hmp u D hD hJ hB t : Vector3 → Tensor n) =ᵐ[volume] |
| 112 | iteratedFDeriv ℝ n (g t ∘ Y t) := by |
| 113 | have hterms : ∀ᵐ x ∂volume, ∀ c : OrderedFinpartition n, |
| 114 | (partitionPath Y hmp u D hD hJ hB c t) x = |
| 115 | c.compAlongOrderedFinpartition (iteratedFDeriv ℝ c.length (g t) (Y t x)) |
| 116 | (fun i => iteratedFDeriv ℝ (c.partSize i) (Y t) x) := |
| 117 | ae_all_iff.mpr (fun c => partitionPath_ae Y hmp u D hD hJ hB g hu c t) |
| 118 | have hsum := Lp.coeFn_finsetSum Finset.univ (fun c : OrderedFinpartition n => |
| 119 | partitionPath Y hmp u D hD hJ hB c t) |
| 120 | filter_upwards [hterms,hsum] with x hx hs |
| 121 | simp only [tensorPath,ContinuousMap.sum_apply] |
| 122 | rw [hs] |
| 123 | simp only [Finset.sum_apply] |
| 124 | rw [iteratedFDeriv_comp (i := n) ((hg t).contDiffAt.of_le (show (n : ℕ∞ω) ≤ ∞ by simp)) |
| 125 | ((hY t).contDiffAt.of_le (show (n : ℕ∞ω) ≤ ∞ by simp)) le_rfl] |
| 126 | simp only [FormalMultilinearSeries.taylorComp,FormalMultilinearSeries.compAlongOrderedFinpartition, |
| 127 | ftaylorSeries] |
| 128 | exact Finset.sum_congr rfl (fun c _ => hx c) |
| 129 | |
| 130 | end EulerVolumeSobolevPath |