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.TransverseHistoryBounds |
| 2 | |
| 3 | /-! The explicit history perturbation estimate yields actual coefficient Lipschitz control. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | |
| 8 | namespace EulerTransverseHistoryBounds |
| 9 | |
| 10 | open Set ContinuousLinearMap InnerProductSpace |
| 11 | EulerTimeLp EulerVolterraConvolution EulerTimeH1FrameTransport |
| 12 | EulerTransverseEndpointCoordinates EulerTransverseEndpointDifference |
| 13 | EulerTransverseEndpointBounds EulerTransverseGeneratorDifference EulerTimeH1GeneratorBounds |
| 14 | |
| 15 | theorem historyDifferenceCost_linear (T c q q₁ d a r x y z : ℝ) : |
| 16 | historyDifferenceCost T c q q₁ d a r x y z = |
| 17 | historyDifferenceCost T c q q₁ d a r 1 0 0 * x + |
| 18 | historyDifferenceCost T c q q₁ d a r 0 1 0 * y + |
| 19 | historyDifferenceCost T c q q₁ d a r 0 0 1 * z := by |
| 20 | unfold historyDifferenceCost slopeDifferenceCost slopeCost endpointDifferenceCost |
| 21 | generatorDifferenceCost traceCost |
| 22 | ring |
| 23 | |
| 24 | theorem historyDifferenceCost_nonneg (T c q q₁ d a r x y z : ℝ) |
| 25 | (hT : 0 ≤ T) (hc : 0 ≤ c) (hq : 0 ≤ q) (hq₁ : 0 ≤ q₁) |
| 26 | (hd : 0 ≤ d) (ha : 0 ≤ a) (hr : 0 ≤ r) |
| 27 | (hx : 0 ≤ x) (hy : 0 ≤ y) (hz : 0 ≤ z) : |
| 28 | 0 ≤ historyDifferenceCost T c q q₁ d a r x y z := by |
| 29 | unfold historyDifferenceCost slopeDifferenceCost slopeCost endpointDifferenceCost |
| 30 | generatorDifferenceCost traceCost affineCost |
| 31 | positivity |
| 32 | |
| 33 | theorem historyDifferenceCost_le_scale (T c q q₁ d a r x y z L₀ L₁ LH s : ℝ) |
| 34 | (hT : 0 ≤ T) (hc : 0 ≤ c) (hq : 0 ≤ q) (hq₁ : 0 ≤ q₁) |
| 35 | (hd : 0 ≤ d) (ha : 0 ≤ a) (hr : 0 ≤ r) |
| 36 | (hx : x ≤ L₀*s) (hy : y ≤ L₁*s) (hz : z ≤ LH*s) : |
| 37 | historyDifferenceCost T c q q₁ d a r x y z ≤ |
| 38 | historyDifferenceCost T c q q₁ d a r L₀ L₁ LH * s := by |
| 39 | have h₀ := historyDifferenceCost_nonneg T c q q₁ d a r 1 0 0 hT hc hq hq₁ hd ha hr |
| 40 | zero_le_one le_rfl le_rfl |
| 41 | have h₁ := historyDifferenceCost_nonneg T c q q₁ d a r 0 1 0 hT hc hq hq₁ hd ha hr |
| 42 | le_rfl zero_le_one le_rfl |
| 43 | have hH := historyDifferenceCost_nonneg T c q q₁ d a r 0 0 1 hT hc hq hq₁ hd ha hr |
| 44 | le_rfl le_rfl zero_le_one |
| 45 | rw [historyDifferenceCost_linear T c q q₁ d a r x y z] |
| 46 | exact (add_le_add (add_le_add (mul_le_mul_of_nonneg_left hx h₀) |
| 47 | (mul_le_mul_of_nonneg_left hy h₁)) (mul_le_mul_of_nonneg_left hz hH)).trans_eq |
| 48 | (by rw [historyDifferenceCost_linear T c q q₁ d a r L₀ L₁ LH]; ring) |
| 49 | |
| 50 | variable {U E : Type*} |
| 51 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 52 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 53 | |
| 54 | variable (T : ℝ) (hT : 0 ≤ T) |
| 55 | (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 56 | (H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 57 | (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c * ‖v‖ ^ 2 ≤ ‖Q t v‖ ^ 2) |
| 58 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 59 | HasDerivWithinAt (extendPath T hT Q) (Q₁ t) (Icc (0 : ℝ) T) t) |
| 60 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t v, ⟪H t v, v⟫_ℝ ≤ K * ‖v‖ ^ 2) |
| 61 | (hsmall : K * (T ^ 2 / 2) ≤ 1 / 2) |
| 62 | (P P₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 63 | (G : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 64 | (hP : ∀ t v, c * ‖v‖ ^ 2 ≤ ‖P t v‖ ^ 2) |
| 65 | (hp : ∀ t : Icc (0 : ℝ) T, |
| 66 | HasDerivWithinAt (extendPath T hT P) (P₁ t) (Icc (0 : ℝ) T) t) |
| 67 | (hG : ∀ t v, ⟪G t v, v⟫_ℝ ≤ K * ‖v‖ ^ 2) |
| 68 | |
| 69 | /-- The actual history operator inherits a Lipschitz estimate from the given |
| 70 | coefficient paths, with an explicit polynomial coefficient. -/ |
| 71 | theorem historyVelocity_sub_norm_le_of_coefficient_bounds (hTpos : 0 < T) (q q₁ d a r : ℝ) |
| 72 | (hQn : ‖Q‖ ≤ q) (hPn : ‖P‖ ≤ q) (hQ₁n : ‖Q₁‖ ≤ q₁) (hP₁n : ‖P₁‖ ≤ q₁) |
| 73 | (hD : T * ‖Q₁‖ + ‖Q‖ ≤ d) (hD' : T * ‖P₁‖ + ‖P‖ ≤ d) |
| 74 | (hA : 1 + T ^ 2 * ‖H‖ ≤ a) (hA' : 1 + T ^ 2 * ‖G‖ ≤ a) |
| 75 | (hr : transportCost T Q Q₁ c ≤ r) (hr' : transportCost T P P₁ c ≤ r) |
| 76 | (L₀ L₁ LH s : ℝ) (h₀ : ‖Q-P‖ ≤ L₀*s) (h₁ : ‖Q₁-P₁‖ ≤ L₁*s) (hHdiff : ‖H-G‖ ≤ LH*s) : |
| 77 | ‖historyVelocity T hT Q Q₁ H c hc hQ hd K hK hH hsmall - |
| 78 | historyVelocity T hT P P₁ G c hc hP hp K hK hG hsmall‖ ≤ |
| 79 | historyDifferenceCost T c q q₁ d a r L₀ L₁ LH * s := by |
| 80 | apply (historyVelocity_sub_norm_le T hT Q Q₁ H c hc hQ hd K hK hH hsmall |
| 81 | P P₁ G hP hp hG hTpos q q₁ d a r hQn hPn hQ₁n hP₁n hD hD' hA hA' hr hr').trans |
| 82 | exact historyDifferenceCost_le_scale T c q q₁ d a r ‖Q-P‖ ‖Q₁-P₁‖ ‖H-G‖ L₀ L₁ LH s |
| 83 | hT hc.le ((show 0 ≤ ‖Q‖ by positivity).trans hQn) ((show 0 ≤ ‖Q₁‖ by positivity).trans hQ₁n) |
| 84 | ((show 0 ≤ T*‖Q₁‖+‖Q‖ by positivity).trans hD) |
| 85 | ((show 0 ≤ 1+T^2*‖H‖ by positivity).trans hA) |
| 86 | ((transportCost_pos T hT Q Q₁ c hc).le.trans hr) h₀ h₁ hHdiff |
| 87 | |
| 88 | end EulerTransverseHistoryBounds |