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.PacketMovingFrame |
| 2 | |
| 3 | /-! The physical ray ODE in the actual normalized moving frame. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | |
| 8 | namespace EulerPacketMovingFrame |
| 9 | |
| 10 | open EulerSmoothLimit EulerPacketNormalizedPrimary InnerProductSpace ContinuousLinearMap |
| 11 | |
| 12 | theorem frame_inner_expand (p q : Space) |
| 13 | (hp : ⟪p,p⟫_ℝ = 1) (hq : ⟪q,q⟫_ℝ = 1) (hpq : ⟪p,q⟫_ℝ = 0) (x y : Space) : |
| 14 | (∑ j : Fin 3, ⟪frame p q j,x⟫_ℝ * ⟪frame p q j,y⟫_ℝ) = ⟪x,y⟫_ℝ := by |
| 15 | have hb := (frameBasis p q hp hq hpq).sum_inner_mul_inner x y |
| 16 | simp only [frameBasis_apply] at hb |
| 17 | calc |
| 18 | (∑ j : Fin 3, ⟪frame p q j,x⟫_ℝ * ⟪frame p q j,y⟫_ℝ) = |
| 19 | ∑ j : Fin 3, ⟪x,frame p q j⟫_ℝ * ⟪frame p q j,y⟫_ℝ := by |
| 20 | apply Finset.sum_congr rfl |
| 21 | intro j _ |
| 22 | rw [real_inner_comm x (frame p q j)] |
| 23 | _ = _ := hb |
| 24 | |
| 25 | theorem movingRayRate_identity (B M : Space →L[ℝ] Space) (p q x : Space) |
| 26 | (hp : ⟪p,p⟫_ℝ = 1) (hq : ⟪q,q⟫_ℝ = 1) (hpq : ⟪p,q⟫_ℝ = 0) (i : Fin 3) : |
| 27 | -⟪M (frame p q i),x⟫_ℝ + ⟪frameRate B p q i,x⟫_ℝ = |
| 28 | -(∑ j : Fin 3, (frameMatrix M p q j i - |
| 29 | EulerPacketRay.frameSkew (frameMatrix B p q) j i) * ⟪frame p q j,x⟫_ℝ) := by |
| 30 | have hsk (j : Fin 3) : EulerPacketRay.frameSkew (frameMatrix B p q) j i = |
| 31 | ⟪frame p q j,frameRate B p q i⟫_ℝ := (frameRate_skew B p q hp hq hpq j i).symm |
| 32 | simp_rw [hsk, frameMatrix, sub_mul, Finset.sum_sub_distrib] |
| 33 | rw [frame_inner_expand p q hp hq hpq, frame_inner_expand p q hp hq hpq] |
| 34 | ring |
| 35 | |
| 36 | def movingRay (m v r : ℝ → Space) (t : ℝ) (i : Fin 3) : ℝ := |
| 37 | ⟪normalizedFrame m v t i,r t⟫_ℝ |
| 38 | |
| 39 | /-- The actual moving-coordinate ray obeys `-(M-S)ᵀ`, with the skew |
| 40 | matrix already derived from the older primary ODE. -/ |
| 41 | theorem movingRay_hasDerivAt (B M : Space →L[ℝ] Space) |
| 42 | {m v r : ℝ → Space} {t : ℝ} |
| 43 | (hm : HasDerivAt m (-B.adjoint (m t)) t) |
| 44 | (hv : HasDerivAt v (-B (v t) + (2*⟪m t,B (v t)⟫_ℝ / ‖m t‖^2) • m t) t) |
| 45 | (hr : HasDerivAt r (-M.adjoint (r t)) t) |
| 46 | (hm0 : m t ≠ 0) (hv0 : v t ≠ 0) (hmv : ⟪m t,v t⟫_ℝ = 0) (i : Fin 3) : |
| 47 | HasDerivAt (fun s => movingRay m v r s i) |
| 48 | (-(∑ j : Fin 3, (frameMatrix M (unit (m t)) (unit (v t)) j i - |
| 49 | EulerPacketRay.frameSkew (frameMatrix B (unit (m t)) (unit (v t))) j i) * |
| 50 | movingRay m v r t j)) t := by |
| 51 | have h := (normalizedFrame_hasDerivAt B hm hv hm0 hv0 hmv i).inner ℝ hr |
| 52 | have he := movingRayRate_identity B M (unit (m t)) (unit (v t)) (r t) |
| 53 | (unit_inner_self hm0) (unit_inner_self hv0) (unit_inner_zero hmv) i |
| 54 | simpa only [movingRay, normalizedFrame, inner_neg_right, adjoint_inner_right, he] using h |
| 55 | |
| 56 | /-- The same physical coordinate equation holds with one-sided endpoint derivatives. -/ |
| 57 | theorem movingRay_hasDerivWithinAt (B M : Space →L[ℝ] Space) |
| 58 | {m v r : ℝ → Space} {t : ℝ} {S : Set ℝ} |
| 59 | (hm : HasDerivWithinAt m (-B.adjoint (m t)) S t) |
| 60 | (hv : HasDerivWithinAt v (-B (v t) + (2*⟪m t,B (v t)⟫_ℝ / ‖m t‖^2) • m t) S t) |
| 61 | (hr : HasDerivWithinAt r (-M.adjoint (r t)) S t) |
| 62 | (hm0 : m t ≠ 0) (hv0 : v t ≠ 0) (hmv : ⟪m t,v t⟫_ℝ = 0) (i : Fin 3) : |
| 63 | HasDerivWithinAt (fun s => movingRay m v r s i) |
| 64 | (-(∑ j : Fin 3, (frameMatrix M (unit (m t)) (unit (v t)) j i - |
| 65 | EulerPacketRay.frameSkew (frameMatrix B (unit (m t)) (unit (v t))) j i) * |
| 66 | movingRay m v r t j)) S t := by |
| 67 | have h := (normalizedFrame_hasDerivWithinAt B hm hv hm0 hv0 hmv i).inner ℝ hr |
| 68 | have he := movingRayRate_identity B M (unit (m t)) (unit (v t)) (r t) |
| 69 | (unit_inner_self hm0) (unit_inner_self hv0) (unit_inner_zero hmv) i |
| 70 | simpa only [movingRay, normalizedFrame, inner_neg_right, adjoint_inner_right, he] using h |
| 71 | |
| 72 | end EulerPacketMovingFrame |