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 | omit [CompleteSpace U] in |
| 94 | theorem frame_pair_operator_difference_le {T ε D : ℝ} |
| 95 | (A B : U →L[ℝ] C(Icc (0:ℝ) T, Space)) (ξ : U) (t : Icc (0:ℝ) T) |
| 96 | {p q : Space} (hp : ‖p‖ = 1) (hq : ‖q‖ = 1) |
| 97 | (hε : 0 < ε) (hε1 : ε ≤ 1) (hAB : ‖A-B‖ ≤ D) : |
| 98 | |⟪p,A ξ t⟫_ℝ/ε-⟪p,B ξ t⟫_ℝ/ε|+|⟪q,A ξ t⟫_ℝ-⟪q,B ξ t⟫_ℝ| ≤ |
| 99 | 2*D*‖ξ‖/ε := by |
| 100 | have hn : ‖A ξ t-B ξ t‖ ≤ D*‖ξ‖ := by |
| 101 | exact (((A-B) ξ).norm_coe_le_norm t).trans (((A-B).le_opNorm ξ).trans |
| 102 | (mul_le_mul_of_nonneg_right hAB (norm_nonneg ξ))) |
| 103 | simpa only [mul_assoc] using frame_pair_difference_le hp hq hε hε1 hn |
| 104 | |
| 105 | variable (T : ℝ) (hT : 0 ≤ T) |
| 106 | (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] Space)) |
| 107 | (H : C(Icc (0 : ℝ) T, Space →L[ℝ] Space)) |
| 108 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t ξ, c*‖ξ‖^2 ≤ ‖Q t ξ‖^2) |
| 109 | (hd : ∀ t : Icc (0:ℝ) T, HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0:ℝ) T) t) |
| 110 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t z, ⟪H t z,z⟫_ℝ ≤ K*‖z‖^2) |
| 111 | (hsmall : K*(T^2/2) ≤ 1/2) |
| 112 | (P P₁ : C(Icc (0:ℝ) T, U →L[ℝ] Space)) |
| 113 | (G : C(Icc (0:ℝ) T, Space →L[ℝ] Space)) |
| 114 | (hP : ∀ t ξ, c*‖ξ‖^2 ≤ ‖P t ξ‖^2) |
| 115 | (hp : ∀ t : Icc (0:ℝ) T, HasDerivWithinAt (extendPath T hT P) (P₁ t) (Icc (0:ℝ) T) t) |
| 116 | (hG : ∀ t z, ⟪G t z,z⟫_ℝ ≤ K*‖z‖^2) |
| 117 | |
| 118 | /-- The two actual stationary histories use the same terminal coordinate |
| 119 | `ξ`; physical coefficient differences give the scaled initial error. -/ |
| 120 | theorem history_scaled_pair_difference_le (hTpos : 0 < T) (q q₁ d a r : ℝ) |
| 121 | (hQn : ‖Q‖ ≤ q) (hPn : ‖P‖ ≤ q) (hQ₁n : ‖Q₁‖ ≤ q₁) (hP₁n : ‖P₁‖ ≤ q₁) |
| 122 | (hD : T*‖Q₁‖+‖Q‖ ≤ d) (hD' : T*‖P₁‖+‖P‖ ≤ d) |
| 123 | (hA : 1+T^2*‖H‖ ≤ a) (hA' : 1+T^2*‖G‖ ≤ a) |
| 124 | (hr : transportCost T Q Q₁ c ≤ r) (hr' : transportCost T P P₁ c ≤ r) |
| 125 | (L₀ L₁ LH s : ℝ) (h₀ : ‖Q-P‖ ≤ L₀*s) (h₁ : ‖Q₁-P₁‖ ≤ L₁*s) (hHdiff : ‖H-G‖ ≤ LH*s) |
| 126 | (ξ : U) (t : Icc (0:ℝ) T) {p₀ q₀ : Space} (hp₀ : ‖p₀‖ = 1) (hq₀ : ‖q₀‖ = 1) |
| 127 | {ε : ℝ} (hε : 0 < ε) (hε1 : ε ≤ 1) : |
| 128 | let u := historyVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall ξ t |
| 129 | let v := historyVelocity T hT P P₁ G c hc hP hp K hK hG hsmall ξ t |
| 130 | |⟪p₀,u⟫_ℝ/ε-⟪p₀,v⟫_ℝ/ε|+|⟪q₀,u⟫_ℝ-⟪q₀,v⟫_ℝ| ≤ |
| 131 | 2*historyDifferenceCost T c q q₁ d a r L₀ L₁ LH*s*‖ξ‖/ε := by |
| 132 | have hh := historyVelocity_sub_norm_le_of_coefficient_bounds T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 133 | P P₁ G hP hp hG hTpos q q₁ d a r hQn hPn hQ₁n hP₁n hD hD' hA hA' hr hr' |
| 134 | L₀ L₁ LH s h₀ h₁ hHdiff |
| 135 | have h := frame_pair_operator_difference_le |
| 136 | (historyVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall) |
| 137 | (historyVelocity T hT P P₁ G c hc hP hp K hK hG hsmall) ξ t hp₀ hq₀ hε hε1 hh |
| 138 | simpa only [mul_assoc] using h |
| 139 | |
| 140 | end EulerPacketMovingFrame |