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.SmoothTimeFieldComposition |
| 2 | import Euler.SmoothTimeFieldBilinear |
| 3 | import Euler.SmoothTimeFieldAlgebra |
| 4 | import Euler.SmoothTimeFieldTimeJets |
| 5 | import Euler.SeparatingTimeDerivative |
| 6 | |
| 7 | /-! Genuine time product and chain rules for the constructed smooth |
| 8 | bounded coefficient paths. The closed-interval statements include both |
| 9 | one-sided endpoints, obtained from the actual Bochner integral identity. -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open scoped ContDiff BoundedContinuousFunction |
| 14 | |
| 15 | namespace SmoothTimeField |
| 16 | |
| 17 | open Set EulerVolterraConvolution |
| 18 | |
| 19 | section Application |
| 20 | |
| 21 | variable {K E V W : Type} [TopologicalSpace K] [CompactSpace K] |
| 22 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 24 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 25 | |
| 26 | def applyField (A : SmoothTimeField K E (V →L[ℝ] W)) (B : SmoothTimeField K E V) : |
| 27 | SmoothTimeField K E W := |
| 28 | bilinear (ContinuousLinearMap.id ℝ (V →L[ℝ] W)) A B |
| 29 | |
| 30 | @[simp] theorem applyField_apply (A : SmoothTimeField K E (V →L[ℝ] W)) |
| 31 | (B : SmoothTimeField K E V) (t : K) (x : E) : |
| 32 | (applyField A B).field t x = A.field t x (B.field t x) := rfl |
| 33 | |
| 34 | end Application |
| 35 | |
| 36 | variable {E V W Z : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 37 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 38 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 39 | [NormedAddCommGroup Z] [NormedSpace ℝ Z] |
| 40 | {T : ℝ} {hT : 0 ≤ T} |
| 41 | |
| 42 | theorem TimeDerivative.congr_fields |
| 43 | {A A₁ B B₁ : SmoothTimeField (Icc (0 : ℝ) T) E V} |
| 44 | (hA : TimeDerivative T hT A A₁) |
| 45 | (he : ∀ t x, A.field t x=B.field t x) |
| 46 | (he₁ : ∀ t x, A₁.field t x=B₁.field t x) : |
| 47 | TimeDerivative T hT B B₁ := by |
| 48 | intro t x |
| 49 | have hf : (fun s => B.realField T hT s x) = (fun s => A.realField T hT s x) := by |
| 50 | funext s |
| 51 | exact (he (projIcc 0 T hT s) x).symm |
| 52 | rw [hf,← he₁] |
| 53 | exact hA t x |
| 54 | |
| 55 | theorem TimeDerivative.bilinear (L : V →L[ℝ] W →L[ℝ] Z) |
| 56 | {A A₁ : SmoothTimeField (Icc (0 : ℝ) T) E V} |
| 57 | {B B₁ : SmoothTimeField (Icc (0 : ℝ) T) E W} |
| 58 | (hA : TimeDerivative T hT A A₁) (hB : TimeDerivative T hT B B₁) : |
| 59 | TimeDerivative T hT (bilinear L A B) ((bilinear L A₁ B).add (bilinear L A B₁)) := by |
| 60 | intro t x |
| 61 | have hL := L.hasFDerivAt.comp_hasDerivWithinAt (t : ℝ) (hA t x) |
| 62 | have h := hL.clm_apply (hB t x) |
| 63 | change HasDerivWithinAt (fun s => L (A.realField T hT s x) (B.realField T hT s x)) |
| 64 | (L (A₁.field t x) (B.field t x)+L (A.field t x) (B₁.field t x)) (Icc (0 : ℝ) T) t |
| 65 | simpa only [Function.comp_def,realField_apply] using h |
| 66 | |
| 67 | theorem TimeDerivative.applyField |
| 68 | {A A₁ : SmoothTimeField (Icc (0 : ℝ) T) E (V →L[ℝ] W)} |
| 69 | {B B₁ : SmoothTimeField (Icc (0 : ℝ) T) E V} |
| 70 | (hA : TimeDerivative T hT A A₁) (hB : TimeDerivative T hT B B₁) : |
| 71 | TimeDerivative T hT (applyField A B) ((applyField A₁ B).add (applyField A B₁)) := |
| 72 | hA.bilinear (ContinuousLinearMap.id ℝ (V →L[ℝ] W)) hB |
| 73 | |
| 74 | theorem compDisplacement_time_interior |
| 75 | (A A₁ : SmoothTimeField (Icc (0 : ℝ) T) E V) |
| 76 | (D D₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 77 | (hA : TimeDerivative T hT A A₁) (hD : TimeDerivative T hT D D₁) |
| 78 | (t : Icc (0 : ℝ) T) (ht : (t : ℝ) ∈ Ioo 0 T) (x : E) : |
| 79 | HasDerivAt (fun s => (A.compDisplacement D).realField T hT s x) |
| 80 | (A₁.field t (x+D.field t x)+A.derivative.field t (x+D.field t x) (D₁.field t x)) t := by |
| 81 | have hi := (hasDerivAt_id (t : ℝ)).prodMk |
| 82 | (((hD t x).hasDerivAt (Icc_mem_nhds ht.1 ht.2)).const_add x) |
| 83 | have ho := realField_hasFDerivAt T hT A A₁ hA (t : ℝ) ht (x+D.realField T hT t x) |
| 84 | have h := ho.comp_hasDerivAt (t : ℝ) hi |
| 85 | change HasDerivAt (fun s => A.realField T hT s (x+D.realField T hT s x)) _ _ |
| 86 | simpa only [Function.comp_def,Function.uncurry_def,id_eq,jointDerivative,ContinuousLinearMap.coprod_apply, |
| 87 | ContinuousLinearMap.toSpanSingleton_apply,one_smul,realField_apply] using h |
| 88 | |
| 89 | variable [CompleteSpace V] |
| 90 | |
| 91 | theorem TimeDerivative.compDisplacement |
| 92 | {A A₁ : SmoothTimeField (Icc (0 : ℝ) T) E V} |
| 93 | {D D₁ : SmoothTimeField (Icc (0 : ℝ) T) E E} |
| 94 | (hA : TimeDerivative T hT A A₁) (hD : TimeDerivative T hT D D₁) : |
| 95 | TimeDerivative T hT (A.compDisplacement D) |
| 96 | ((A₁.compDisplacement D).add (SmoothTimeField.applyField (A.derivative.compDisplacement D) D₁)) := by |
| 97 | intro t x |
| 98 | let C := A.compDisplacement D |
| 99 | let C₁ := (A₁.compDisplacement D).add (SmoothTimeField.applyField (A.derivative.compDisplacement D) D₁) |
| 100 | have hh := EulerSeparatingTimeDerivative.hasDerivWithinAt T hT |
| 101 | (sliceFamily T C x) (sliceFamily T C₁ x) |
| 102 | (fun _ : Unit => ContinuousLinearMap.id ℝ V) |
| 103 | (by intro u v huv; exact congrFun huv ()) |
| 104 | (by |
| 105 | intro _ s hs |
| 106 | exact compDisplacement_time_interior A A₁ D D₁ hA hD ⟨s,hs.1.le,hs.2.le⟩ hs x) |
| 107 | t |
| 108 | exact hh |
| 109 | |
| 110 | end SmoothTimeField |