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.LpMultilinearBundling |
| 2 | import Mathlib.LinearAlgebra.Multilinear.Basis |
| 3 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 4 | import Mathlib.Analysis.InnerProductSpace.PiL2 |
| 5 | import Mathlib.Analysis.Normed.Module.FiniteDimension |
| 6 | import Mathlib.MeasureTheory.SpecificCodomains.Pi |
| 7 | import Euler.EulerProof |
| 8 | |
| 9 | /-! |
| 10 | # Reconstructing actual L² tensors from finitely many coordinate fields |
| 11 | |
| 12 | This qualitative finite-dimensional construction supplies literal tensor-valued |
| 13 | L² derivatives. Quantitative Gevrey estimates continue to use the ordered-word |
| 14 | norms directly, and do not pass through these coordinate norm equivalences. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | namespace EulerLpFiniteTensor |
| 20 | |
| 21 | open MeasureTheory ContinuousLinearMap EulerSmoothLimit |
| 22 | |
| 23 | variable {X V : Type*} [MeasurableSpace X] |
| 24 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 25 | |
| 26 | section Tuple |
| 27 | |
| 28 | variable (μ : Measure X) {ι : Type*} [Fintype ι] |
| 29 | |
| 30 | /-- A finite tuple of L² classes gives its literal product-valued L² class. -/ |
| 31 | def tupleLp : (ι → Lp V 2 μ) →L[ℝ] Lp (ι → V) 2 μ := by |
| 32 | classical |
| 33 | exact ∑ i : ι, ((ContinuousLinearMap.single ℝ (fun _ : ι => V) i).compLpL 2 μ).comp |
| 34 | (ContinuousLinearMap.proj i) |
| 35 | |
| 36 | theorem tupleLp_ae (u : ι → Lp V 2 μ) : |
| 37 | (tupleLp (V := V) (ι := ι) μ u : X → (ι → V)) =ᵐ[μ] fun x i => u i x := by |
| 38 | classical |
| 39 | let L (i : ι) : V →L[ℝ] (ι → V) := ContinuousLinearMap.single ℝ (fun _ : ι => V) i |
| 40 | have hu : ∀ᵐ x ∂μ, ∀ i : ι, (L i).compLpL 2 μ (u i) x = L i (u i x) := |
| 41 | ae_all_iff.mpr (fun i => (L i).coeFn_compLpL (u i)) |
| 42 | have hs := Lp.coeFn_fun_finsetSum Finset.univ (fun i : ι => (L i).compLpL 2 μ (u i)) |
| 43 | have he : tupleLp (V := V) (ι := ι) μ u = ∑ i : ι, (L i).compLpL 2 μ (u i) := by |
| 44 | simp only [tupleLp, sum_apply, ContinuousLinearMap.comp_apply, |
| 45 | ContinuousLinearMap.proj_apply, L] |
| 46 | filter_upwards [hu, hs] with x hx hsum |
| 47 | rw [he, hsum] |
| 48 | simp only [hx] |
| 49 | ext j |
| 50 | simp [L] |
| 51 | |
| 52 | end Tuple |
| 53 | |
| 54 | /-- Coordinate directions in the ordinary spatial domain. -/ |
| 55 | def direction (i : Fin 3) : Space := EuclideanSpace.single i 1 |
| 56 | |
| 57 | def tensorCoordinates (n : ℕ) : |
| 58 | (Space [×n]→L[ℝ] V) →L[ℝ] ((Fin n → Fin 3) → V) := |
| 59 | ContinuousLinearMap.pi (fun w => |
| 60 | (ContinuousLinearMap.id ℝ (Space [×n]→L[ℝ] V)).flipMultilinear (fun i => direction (w i))) |
| 61 | |
| 62 | @[simp] theorem tensorCoordinates_apply (n : ℕ) (A : Space [×n]→L[ℝ] V) |
| 63 | (w : Fin n → Fin 3) : tensorCoordinates n A w = A (fun i => direction (w i)) := rfl |
| 64 | |
| 65 | theorem tensorCoordinates_injective (n : ℕ) : |
| 66 | Function.Injective (tensorCoordinates (V := V) n) := by |
| 67 | intro A B h |
| 68 | apply ContinuousMultilinearMap.toMultilinearMap_injective |
| 69 | apply Module.Basis.ext_multilinear (fun _ : Fin n => (EuclideanSpace.basisFun (Fin 3) ℝ).toBasis) |
| 70 | intro w |
| 71 | have hw := congrFun h w |
| 72 | simp only [OrthonormalBasis.coe_toBasis, EuclideanSpace.basisFun_apply] |
| 73 | change A (fun i => direction (w i)) = B (fun i => direction (w i)) |
| 74 | exact hw |
| 75 | |
| 76 | variable [FiniteDimensional ℝ V] |
| 77 | |
| 78 | /-- A fixed bounded left inverse of the finite coordinate evaluation map. -/ |
| 79 | def tensorReassembly (n : ℕ) : |
| 80 | ((Fin n → Fin 3) → V) →L[ℝ] (Space [×n]→L[ℝ] V) := |
| 81 | ((tensorCoordinates (V := V) n).toLinearMap.leftInverse).toContinuousLinearMap |
| 82 | |
| 83 | @[simp] theorem tensorReassembly_coordinates (n : ℕ) (A : Space [×n]→L[ℝ] V) : |
| 84 | tensorReassembly n (tensorCoordinates n A) = A := |
| 85 | LinearMap.leftInverse_apply_of_inj (LinearMap.ker_eq_bot.mpr (tensorCoordinates_injective n)) A |
| 86 | |
| 87 | /-- Reconstruction is a genuine bounded map on the finite tuple of L² classes. -/ |
| 88 | def tensorLpReassembly (μ : Measure X) (n : ℕ) : |
| 89 | ((Fin n → Fin 3) → Lp V 2 μ) →L[ℝ] Lp (Space [×n]→L[ℝ] V) 2 μ := |
| 90 | ((tensorReassembly (V := V) n).compLpL 2 μ).comp (tupleLp (V := V) (ι := Fin n → Fin 3) μ) |
| 91 | |
| 92 | theorem tensorLpReassembly_ae (μ : Measure X) (n : ℕ) |
| 93 | (u : (Fin n → Fin 3) → Lp V 2 μ) : |
| 94 | (tensorLpReassembly μ n u : X → (Space [×n]→L[ℝ] V)) =ᵐ[μ] |
| 95 | fun x => tensorReassembly n (fun w => u w x) := by |
| 96 | filter_upwards [(tensorReassembly (V := V) n).coeFn_compLpL (tupleLp (V := V) (ι := Fin n → Fin 3) μ u), |
| 97 | tupleLp_ae μ u] |
| 98 | with x h₁ h₂ |
| 99 | exact h₁.trans (congrArg (tensorReassembly n) h₂) |
| 100 | |
| 101 | /-- If the coordinate L² classes represent a literal tensor field, their |
| 102 | reconstruction represents that field, with no integrability assumption on it. -/ |
| 103 | theorem tensorLpReassembly_eq_ae (μ : Measure X) (n : ℕ) |
| 104 | (u : (Fin n → Fin 3) → Lp V 2 μ) (f : X → (Space [×n]→L[ℝ] V)) |
| 105 | (h : ∀ w, (u w : X → V) =ᵐ[μ] fun x => f x (fun i => direction (w i))) : |
| 106 | (tensorLpReassembly μ n u : X → (Space [×n]→L[ℝ] V)) =ᵐ[μ] f := by |
| 107 | have ha : ∀ᵐ x ∂μ, ∀ w, u w x = f x (fun i => direction (w i)) := ae_all_iff.mpr h |
| 108 | filter_upwards [tensorLpReassembly_ae μ n u, ha] with x hx hw |
| 109 | rw [hx] |
| 110 | have he : (fun w => u w x) = tensorCoordinates n (f x) := funext hw |
| 111 | rw [he, tensorReassembly_coordinates] |
| 112 | |
| 113 | end EulerLpFiniteTensor |