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.SmoothTimeFieldLinear |
| 2 | import Euler.BoundedFieldCalculus |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.Bounds |
| 4 | |
| 5 | /-! Constants and bounded bilinear operations on actual smooth bounded |
| 6 | coefficient paths, with the spatial product rule at every order. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | |
| 11 | open scoped ContDiff BoundedContinuousFunction |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | namespace SmoothTimeField |
| 16 | |
| 17 | open EulerBoundedFieldCalculus |
| 18 | |
| 19 | variable {K E : Type u} [TopologicalSpace K] [CompactSpace K] |
| 20 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | |
| 22 | omit [CompactSpace K] [NormedSpace ℝ E] in |
| 23 | @[simp] theorem mapPath_apply {V W : Type u} |
| 24 | [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 25 | (L : V →L[ℝ] W) (A : C(K,E →ᵇ V)) (t : K) (x : E) : |
| 26 | mapPath L A t x = L (A t x) := rfl |
| 27 | |
| 28 | section Constant |
| 29 | |
| 30 | variable {V : Type u} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 31 | |
| 32 | def constant (v : V) : SmoothTimeField K E V where |
| 33 | field := ContinuousMap.const K (BoundedContinuousFunction.const E v) |
| 34 | smooth _ := contDiff_const |
| 35 | jet n := ContinuousMap.const K (BoundedContinuousFunction.const E |
| 36 | (iteratedFDeriv ℝ n (fun _ : E => v) 0)) |
| 37 | jet_eq n _ x := by |
| 38 | change iteratedFDeriv ℝ n (fun _ : E => v) 0 = iteratedFDeriv ℝ n (fun _ : E => v) x |
| 39 | cases n with |
| 40 | | zero => rfl |
| 41 | | succ n => simp only [iteratedFDeriv_succ_const, Pi.zero_apply] |
| 42 | |
| 43 | @[simp] theorem constant_apply (v : V) (t : K) (x : E) : |
| 44 | (constant (K := K) (E := E) v).field t x = v := rfl |
| 45 | |
| 46 | end Constant |
| 47 | |
| 48 | variable {V W Z : Type u} |
| 49 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 50 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 51 | [NormedAddCommGroup Z] [NormedSpace ℝ Z] |
| 52 | |
| 53 | private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] Z) := inferInstance |
| 54 | private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] Z) := inferInstance |
| 55 | private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] Z)) := inferInstance |
| 56 | private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] Z)) := inferInstance |
| 57 | private local instance : NormedAddCommGroup (E →L[ℝ] Z) := inferInstance |
| 58 | private local instance : NormedSpace ℝ (E →L[ℝ] Z) := inferInstance |
| 59 | private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] (E →L[ℝ] Z)) := inferInstance |
| 60 | private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] (E →L[ℝ] Z)) := inferInstance |
| 61 | private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] (E →L[ℝ] Z))) := inferInstance |
| 62 | private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] (E →L[ℝ] Z))) := inferInstance |
| 63 | |
| 64 | def bilinearPath (B : V →L[ℝ] W →L[ℝ] Z) |
| 65 | (A : SmoothTimeField K E V) (C : SmoothTimeField K E W) : C(K,E →ᵇ Z) := |
| 66 | ⟨fun t => bilinearMap B (A.field t) (C.field t), |
| 67 | ((bilinearMap (α := E) B).continuous.comp A.field.continuous).clm_apply C.field.continuous⟩ |
| 68 | |
| 69 | @[simp] theorem bilinearPath_apply (B : V →L[ℝ] W →L[ℝ] Z) |
| 70 | (A : SmoothTimeField K E V) (C : SmoothTimeField K E W) (t : K) (x : E) : |
| 71 | bilinearPath B A C t x = B (A.field t x) (C.field t x) := rfl |
| 72 | |
| 73 | def uncurryRightPath (n : ℕ) (J : C(K,E →ᵇ (E [×n]→L[ℝ] (E →L[ℝ] Z)))) : |
| 74 | C(K,E →ᵇ (E [×(n+1)]→L[ℝ] Z)) := |
| 75 | mapPath (continuousMultilinearCurryRightEquiv' ℝ n E Z).symm.toContinuousLinearEquiv.toContinuousLinearMap J |
| 76 | |
| 77 | omit [CompactSpace K] in |
| 78 | @[simp] theorem uncurryRightPath_apply (n : ℕ) |
| 79 | (J : C(K,E →ᵇ (E [×n]→L[ℝ] (E →L[ℝ] Z)))) (t : K) (x : E) : |
| 80 | uncurryRightPath n J t x = (continuousMultilinearCurryRightEquiv' ℝ n E Z).symm (J t x) := rfl |
| 81 | |
| 82 | theorem exists_bilinear_jet (B : V →L[ℝ] W →L[ℝ] Z) |
| 83 | (A : SmoothTimeField K E V) (C : SmoothTimeField K E W) (n : ℕ) : |
| 84 | ∃ J : C(K,E →ᵇ (E [×n]→L[ℝ] Z)), ∀ t x, |
| 85 | J t x = iteratedFDeriv ℝ n (fun y => B (A.field t y) (C.field t y)) x := by |
| 86 | induction n generalizing V W Z with |
| 87 | | zero => |
| 88 | refine ⟨mapPath (continuousMultilinearCurryFin0 ℝ E Z).symm.toContinuousLinearEquiv.toContinuousLinearMap |
| 89 | (bilinearPath B A C), ?_⟩ |
| 90 | intro t x |
| 91 | rfl |
| 92 | | succ n ih => |
| 93 | obtain ⟨J₁,hJ₁⟩ := ih (V := V) (W := E →L[ℝ] W) (Z := E →L[ℝ] Z) |
| 94 | (B.precompR E) A C.derivative |
| 95 | obtain ⟨J₂,hJ₂⟩ := ih (V := E →L[ℝ] V) (W := W) (Z := E →L[ℝ] Z) |
| 96 | (B.precompL E) A.derivative C |
| 97 | refine ⟨uncurryRightPath n (J₁+J₂), ?_⟩ |
| 98 | intro t x |
| 99 | rw [uncurryRightPath_apply, ContinuousMap.add_apply, BoundedContinuousFunction.add_apply] |
| 100 | rw [hJ₁, hJ₂, iteratedFDeriv_succ_eq_comp_right] |
| 101 | apply congrArg (continuousMultilinearCurryRightEquiv' ℝ n E Z).symm |
| 102 | have hd : fderiv ℝ (fun y => B (A.field t y) (C.field t y)) = |
| 103 | fun y => B.precompR E (A.field t y) (C.derivative.field t y)+ |
| 104 | B.precompL E (A.derivative.field t y) (C.field t y) := by |
| 105 | funext y |
| 106 | rw [B.fderiv_of_bilinear ((A.smooth t).differentiable (by simp) y) |
| 107 | ((C.smooth t).differentiable (by simp) y)] |
| 108 | simp only [derivative, derivativeField_eq] |
| 109 | rw [hd] |
| 110 | exact (fun_iteratedFDeriv_add_apply |
| 111 | ((((B.precompR E).contDiff.comp (A.smooth t)).clm_apply (C.derivative.smooth t)).contDiffAt.of_le (by simp)) |
| 112 | ((((B.precompL E).contDiff.comp (A.derivative.smooth t)).clm_apply (C.smooth t)).contDiffAt.of_le (by simp))).symm |
| 113 | |
| 114 | def bilinear (B : V →L[ℝ] W →L[ℝ] Z) |
| 115 | (A : SmoothTimeField K E V) (C : SmoothTimeField K E W) : SmoothTimeField K E Z where |
| 116 | field := bilinearPath B A C |
| 117 | smooth t := (B.contDiff.comp (A.smooth t)).clm_apply (C.smooth t) |
| 118 | jet n := (exists_bilinear_jet B A C n).choose |
| 119 | jet_eq n := (exists_bilinear_jet B A C n).choose_spec |
| 120 | |
| 121 | @[simp] theorem bilinear_apply (B : V →L[ℝ] W →L[ℝ] Z) |
| 122 | (A : SmoothTimeField K E V) (C : SmoothTimeField K E W) (t : K) (x : E) : |
| 123 | (bilinear B A C).field t x = B (A.field t x) (C.field t x) := rfl |
| 124 | |
| 125 | end SmoothTimeField |