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.PacketInitialGeometry |
| 2 | import Euler.TransverseHistoryLipschitz |
| 3 | |
| 4 | /-! |
| 5 | The actual fixed-terminal history estimate controls the scaled neighbor |
| 6 | initial velocity. The loss `ε⁻¹` comes from the specified coordinate |
| 7 | rescaling and is independent of the oscillation frequency. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | |
| 13 | namespace EulerPacketMovingFrame |
| 14 | |
| 15 | open Set EulerSmoothLimit EulerPacketNormalizedPrimary EulerPacketRay |
| 16 | InnerProductSpace ContinuousLinearMap |
| 17 | EulerTimeLp EulerVolterraConvolution EulerTimeH1FrameTransport |
| 18 | EulerTransverseEndpointCoordinates EulerTransverseHistoryBounds |
| 19 | |
| 20 | theorem frame_pair_difference_le {p q x y : Space} {ε D : ℝ} |
| 21 | (hp : ‖p‖ = 1) (hq : ‖q‖ = 1) (hε : 0 < ε) (hε1 : ε ≤ 1) (hxy : ‖x-y‖ ≤ D) : |
| 22 | |⟪p,x⟫_ℝ/ε-⟪p,y⟫_ℝ/ε|+|⟪q,x⟫_ℝ-⟪q,y⟫_ℝ| ≤ 2*D/ε := by |
| 23 | have hp' : |⟪p,x-y⟫_ℝ| ≤ ‖x-y‖ := by |
| 24 | simpa only [hp, one_mul] using abs_real_inner_le_norm p (x-y) |
| 25 | have hq' : |⟪q,x-y⟫_ℝ| ≤ ‖x-y‖ := by |
| 26 | simpa only [hq, one_mul] using abs_real_inner_le_norm q (x-y) |
| 27 | have hU : |⟪p,x⟫_ℝ/ε-⟪p,y⟫_ℝ/ε| ≤ ‖x-y‖/ε := by |
| 28 | rw [← sub_div, ← inner_sub_right, abs_div, abs_of_pos hε] |
| 29 | exact div_le_div_of_nonneg_right hp' hε.le |
| 30 | have hV : |⟪q,x⟫_ℝ-⟪q,y⟫_ℝ| ≤ ‖x-y‖/ε := by |
| 31 | rw [← inner_sub_right] |
| 32 | apply hq'.trans |
| 33 | apply (le_div_iff₀ hε).mpr |
| 34 | exact mul_le_of_le_one_right (norm_nonneg _) hε1 |
| 35 | have hD := div_le_div_of_nonneg_right hxy hε.le |
| 36 | calc |
| 37 | _ ≤ D/ε+D/ε := add_le_add (hU.trans hD) (hV.trans hD) |
| 38 | _ = 2*D/ε := by ring |
| 39 | |
| 40 | theorem scaledVelocity_initial_difference_le {m v x y : ℝ → Space} |
| 41 | {t₀ a ε D : ℝ} (hm0 : m t₀ ≠ 0) (hv0 : v t₀ ≠ 0) |
| 42 | (hε : 0 < ε) (hε1 : ε ≤ 1) (hxy : ‖x t₀-y t₀‖ ≤ D) : |
| 43 | |scaledVelocity m v x t₀ a ε 0 0-scaledVelocity m v y t₀ a ε 0 0|+ |
| 44 | |scaledVelocity m v x t₀ a ε 0 1-scaledVelocity m v y t₀ a ε 0 1| ≤ 2*D/ε := by |
| 45 | simpa [scaledVelocity, movingVelocity, physicalTime, normalizedFrame, frame, |
| 46 | velocityScale, Fin.ext_iff] using |
| 47 | frame_pair_difference_le (unit_norm hm0) (unit_norm hv0) hε hε1 hxy |
| 48 | |
| 49 | theorem scaled_inner_difference_le {p x y : Space} {b D : ℝ} |
| 50 | (hp : ‖p‖ = 1) (hb : 0 < b) (hxy : ‖x-y‖ ≤ D) : |
| 51 | |⟪p,x⟫_ℝ/b-⟪p,y⟫_ℝ/b| ≤ D/b := by |
| 52 | rw [← sub_div, ← inner_sub_right, abs_div, abs_of_pos hb] |
| 53 | apply div_le_div_of_nonneg_right _ hb.le |
| 54 | exact ((abs_real_inner_le_norm p (x-y)).trans_eq (by rw [hp, one_mul])).trans hxy |
| 55 | |
| 56 | theorem scaledRay_initial_difference_le {m v x y : ℝ → Space} {s₀ t₀ a ε D : ℝ} |
| 57 | (hs₀ : 0 < s₀) (hm0 : m t₀ ≠ 0) (hv0 : v t₀ ≠ 0) (hmv : ⟪m t₀,v t₀⟫_ℝ = 0) |
| 58 | (hε : 0 < ε) (hε1 : ε ≤ 1) (hxy : ‖x t₀-y t₀‖ ≤ D) : |
| 59 | norm3 (scaledRay m v x s₀ t₀ a ε 0 0-scaledRay m v y s₀ t₀ a ε 0 0) |
| 60 | (scaledRay m v x s₀ t₀ a ε 0 1-scaledRay m v y s₀ t₀ a ε 0 1) |
| 61 | (scaledRay m v x s₀ t₀ a ε 0 2-scaledRay m v y s₀ t₀ a ε 0 2) ≤ |
| 62 | 3*D/(s₀*ε) := by |
| 63 | have hn := (frame_orthonormal (unit (m t₀)) (unit (v t₀)) |
| 64 | (unit_inner_self hm0) (unit_inner_self hv0) (unit_inner_zero hmv)).norm_eq_one 2 |
| 65 | have hpn := scaled_inner_difference_le (unit_norm hm0) hs₀ hxy |
| 66 | have hqn := scaled_inner_difference_le (unit_norm hv0) (mul_pos hs₀ hε) hxy |
| 67 | have hnn := scaled_inner_difference_le hn hs₀ hxy |
| 68 | have hD0 : 0 ≤ D := (norm_nonneg _).trans hxy |
| 69 | have hden : D/s₀ ≤ D/(s₀*ε) := div_le_div_of_nonneg_left hD0 (mul_pos hs₀ hε) |
| 70 | (mul_le_of_le_one_right hs₀.le hε1) |
| 71 | have hall := add_le_add (add_le_add (hpn.trans hden) hqn) (hnn.trans hden) |
| 72 | have hthree : D/(s₀*ε)+D/(s₀*ε)+D/(s₀*ε) = 3*D/(s₀*ε) := by ring |
| 73 | rw [hthree] at hall |
| 74 | simpa [norm3, scaledRay, movingRay, physicalTime, normalizedFrame, frame, rayScale, |
| 75 | Fin.ext_iff] using hall |
| 76 | |
| 77 | /-- A physical initial-ray error around the chosen normal becomes the |
| 78 | source's scaled ray error with the fixed factor `(s₀ ε)⁻¹`. -/ |
| 79 | theorem scaledRay_initial_error {m v r : ℝ → Space} {s₀ t₀ a ε D : ℝ} |
| 80 | (hs₀ : 0 < s₀) (hm0 : m t₀ ≠ 0) (hv0 : v t₀ ≠ 0) (hmv : ⟪m t₀,v t₀⟫_ℝ = 0) |
| 81 | (hε : 0 < ε) (hε1 : ε ≤ 1) |
| 82 | (hr : ‖r t₀-s₀ • EulerPacketCrossProduct.cross (unit (m t₀)) (unit (v t₀))‖ ≤ D) : |
| 83 | norm3 (scaledRay m v r s₀ t₀ a ε 0 0) (scaledRay m v r s₀ t₀ a ε 0 1) |
| 84 | (scaledRay m v r s₀ t₀ a ε 0 2-1) ≤ 3*D/(s₀*ε) := by |
| 85 | let r₀ : ℝ → Space := fun _ => s₀ • EulerPacketCrossProduct.cross (unit (m t₀)) (unit (v t₀)) |
| 86 | have hi : scaledRay m v r₀ s₀ t₀ a ε 0 = ![0,0,1] := |
| 87 | scaledRay_initial (ne_of_gt hs₀) hm0 hv0 hmv rfl |
| 88 | have h := scaledRay_initial_difference_le (a := a) hs₀ hm0 hv0 hmv hε hε1 (y := r₀) hr |
| 89 | simpa [hi] using h |
| 90 | |
| 91 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 92 | |
| 93 | variable (T : ℝ) (hT : 0 ≤ T) |
| 94 | (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] Space)) |
| 95 | (H : C(Icc (0 : ℝ) T, Space →L[ℝ] Space)) |
| 96 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t ξ, c*‖ξ‖^2 ≤ ‖Q t ξ‖^2) |
| 97 | (hd : ∀ t : Icc (0:ℝ) T, HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0:ℝ) T) t) |
| 98 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t z, ⟪H t z,z⟫_ℝ ≤ K*‖z‖^2) |
| 99 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 100 | (P P₁ : C(Icc (0:ℝ) T, U →L[ℝ] Space)) |
| 101 | (G : C(Icc (0:ℝ) T, Space →L[ℝ] Space)) |
| 102 | (hP : ∀ t ξ, c*‖ξ‖^2 ≤ ‖P t ξ‖^2) |
| 103 | (hp : ∀ t : Icc (0:ℝ) T, HasDerivWithinAt (extendPath T hT P) (P₁ t) (Icc (0:ℝ) T) t) |
| 104 | (hG : ∀ t z, ⟪G t z,z⟫_ℝ ≤ K*‖z‖^2) |
| 105 | |
| 106 | end EulerPacketMovingFrame |