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.ContinuousBoundedTensor |
| 2 | import Euler.SmoothTimeField |
| 3 | |
| 4 | /-! Continuous bounded coordinate fields reconstruct the actual tensor |
| 5 | field. This is a qualitative finite-dimensional construction; subsequent |
| 6 | norm estimates can use the actual tensor equality without a coordinate |
| 7 | reassembly constant. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | |
| 12 | open scoped ContDiff BoundedContinuousFunction |
| 13 | |
| 14 | namespace EulerBoundedTensorCoordinates |
| 15 | |
| 16 | variable {K X E V ι : Type*} [TopologicalSpace K] [CompactSpace K] |
| 17 | [TopologicalSpace X] [Fintype ι] |
| 18 | [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 19 | [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] |
| 20 | |
| 21 | private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] V) := inferInstance |
| 22 | private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] V) := inferInstance |
| 23 | private local instance (n : ℕ) : NormedAddCommGroup (X →ᵇ (E [×n]→L[ℝ] V)) := inferInstance |
| 24 | private local instance (n : ℕ) : NormedSpace ℝ (X →ᵇ (E [×n]→L[ℝ] V)) := inferInstance |
| 25 | |
| 26 | def coordinates (b : Module.Basis ι ℝ E) (n : ℕ) : |
| 27 | (E [×n]→L[ℝ] V) →L[ℝ] ((Fin n → ι) → V) := |
| 28 | ContinuousLinearMap.pi (fun w => |
| 29 | (ContinuousLinearMap.id ℝ (E [×n]→L[ℝ] V)).flipMultilinear (fun i => b (w i))) |
| 30 | |
| 31 | omit [FiniteDimensional ℝ E] [FiniteDimensional ℝ V] [Fintype ι] in |
| 32 | theorem coordinates_injective (b : Module.Basis ι ℝ E) (n : ℕ) : |
| 33 | Function.Injective (coordinates (V := V) b n) := by |
| 34 | intro A B h |
| 35 | apply ContinuousMultilinearMap.toMultilinearMap_injective |
| 36 | apply Module.Basis.ext_multilinear (fun _ : Fin n => b) |
| 37 | intro w |
| 38 | exact congrFun h w |
| 39 | |
| 40 | def reassembly (b : Module.Basis ι ℝ E) (n : ℕ) : |
| 41 | ((Fin n → ι) → V) →L[ℝ] (E [×n]→L[ℝ] V) := |
| 42 | ((coordinates (V := V) b n).toLinearMap.leftInverse).toContinuousLinearMap |
| 43 | |
| 44 | omit [FiniteDimensional ℝ E] in |
| 45 | theorem reassembly_coordinates (b : Module.Basis ι ℝ E) (n : ℕ) (A : E [×n]→L[ℝ] V) : |
| 46 | reassembly b n (coordinates b n A) = A := |
| 47 | LinearMap.leftInverse_apply_of_inj |
| 48 | (LinearMap.ker_eq_bot.mpr (coordinates_injective b n)) A |
| 49 | |
| 50 | def tupleBounded {j : Type*} [Fintype j] : |
| 51 | (j → (X →ᵇ V)) →L[ℝ] (X →ᵇ (j → V)) := by |
| 52 | classical |
| 53 | exact ∑ i : j, |
| 54 | ((ContinuousLinearMap.single ℝ (fun _ : j => V) i).compLeftContinuousBounded X).comp |
| 55 | (ContinuousLinearMap.proj i) |
| 56 | |
| 57 | omit [FiniteDimensional ℝ V] in |
| 58 | theorem tupleBounded_apply {j : Type*} [Fintype j] |
| 59 | (u : j → (X →ᵇ V)) (x : X) (i : j) : |
| 60 | tupleBounded u x i = u i x := by |
| 61 | classical |
| 62 | simp [tupleBounded] |
| 63 | |
| 64 | def coordinatePath (b : Module.Basis ι ℝ E) (n : ℕ) |
| 65 | (u : (Fin n → ι) → C(K, X →ᵇ V)) : C(K, X →ᵇ (E [×n]→L[ℝ] V)) where |
| 66 | toFun t := (reassembly (V := V) b n).compLeftContinuousBounded X |
| 67 | (tupleBounded (fun w => u w t)) |
| 68 | continuous_toFun := |
| 69 | ((reassembly (V := V) b n).compLeftContinuousBounded X).continuous.comp |
| 70 | ((tupleBounded (X := X) (V := V)).continuous.comp |
| 71 | (continuous_pi (fun w => (u w).continuous))) |
| 72 | |
| 73 | omit [CompactSpace K] [FiniteDimensional ℝ E] in |
| 74 | theorem coordinatePath_eq (b : Module.Basis ι ℝ E) (n : ℕ) |
| 75 | (u : (Fin n → ι) → C(K, X →ᵇ V)) (t : K) (x : X) |
| 76 | (A : E [×n]→L[ℝ] V) (hu : ∀ w, u w t x = A (fun i => b (w i))) : |
| 77 | coordinatePath b n u t x = A := by |
| 78 | change reassembly b n (tupleBounded _ x) = A |
| 79 | have he : tupleBounded (fun w => u w t) x = coordinates b n A := by |
| 80 | funext w |
| 81 | rw [tupleBounded_apply] |
| 82 | exact hu w |
| 83 | rw [he, reassembly_coordinates] |
| 84 | |
| 85 | end EulerBoundedTensorCoordinates |
| 86 | |
| 87 | universe u |
| 88 | |
| 89 | namespace SmoothTimeField |
| 90 | |
| 91 | open EulerBoundedTensorCoordinates |
| 92 | |
| 93 | variable {K E V ι : Type u} [TopologicalSpace K] [CompactSpace K] [Fintype ι] |
| 94 | [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 95 | [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] |
| 96 | |
| 97 | def ofCoordinateJets (b : Module.Basis ι ℝ E) (f : C(K, E →ᵇ V)) |
| 98 | (hf : ∀ t, ContDiff ℝ ∞ (f t : E → V)) |
| 99 | (u : (n : ℕ) → (Fin n → ι) → C(K, E →ᵇ V)) |
| 100 | (hu : ∀ n w t x, u n w t x = iteratedFDeriv ℝ n (f t : E → V) x (fun i => b (w i))) : |
| 101 | SmoothTimeField K E V where |
| 102 | field := f |
| 103 | smooth := hf |
| 104 | jet n := coordinatePath b n (u n) |
| 105 | jet_eq n t x := coordinatePath_eq b n (u n) t x _ (fun w => hu n w t x) |
| 106 | |
| 107 | end SmoothTimeField |