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.PacketSizeComparison |
| 2 | |
| 3 | /-! |
| 4 | The before-target part of the physical primary-size estimate. The input |
| 5 | is the actual ray and velocity error already obtained from the physical |
| 6 | equations, and the comparison function solves the scalar reference ODE. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | |
| 12 | namespace EulerPacketMovingFrame |
| 13 | |
| 14 | open Set EulerSmoothLimit EulerPacketGrowth EulerPacketFrameStability InnerProductSpace |
| 15 | |
| 16 | theorem physical_ideal_size_comparison_order40 (m v r w : ℝ → Space) |
| 17 | {s₀ t₀ a ε τ Θ K e σ : ℝ} {Z Z₁ : ℝ → ℝ} |
| 18 | (hs₀ : 0 < s₀) (hε : 0 < ε) (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) |
| 19 | (hm : m (physicalTime t₀ a ε τ) ≠ 0) (hv : v (physicalTime t₀ a ε τ) ≠ 0) |
| 20 | (hmv : ⟪m (physicalTime t₀ a ε τ), v (physicalTime t₀ a ε τ)⟫_ℝ = 0) |
| 21 | (hrw : ⟪r (physicalTime t₀ a ε τ), w (physicalTime t₀ a ε τ)⟫_ℝ = 0) |
| 22 | (hΘ : 1 ≤ Θ) (hK : 1 ≤ K) (he : 0 ≤ e) (hεe : ε ≤ e) |
| 23 | (hsmall : 1000000*K*e*Θ^40 ≤ 1) (hτ : 1 ≤ τ) (hτΘ : τ ≤ Θ) |
| 24 | (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) |
| 25 | (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 26 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) |
| 27 | (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) |
| 28 | (hP : |scaledRay m v r s₀ t₀ a ε τ 0-σ^2*τ^2| ≤ 800*e*Θ^5) |
| 29 | (hQ : |scaledRay m v r s₀ t₀ a ε τ 1-(-2*σ^2*τ)| ≤ 800*e*Θ^5) |
| 30 | (hN : |scaledRay m v r s₀ t₀ a ε τ 2-1| ≤ 800*e*Θ^5) |
| 31 | (hVrel : |scaledVelocity m v w t₀ a ε τ 1/Z τ-1| ≤ K*e*Θ^29) |
| 32 | (hratio : |scaledVelocity m v w t₀ a ε τ 0/scaledVelocity m v w t₀ a ε τ 1+Z₁ τ/Z τ| |
| 33 | ≤ 10*(K*e*Θ^29)) : |
| 34 | s₀*idealPrimarySize σ Z τ/4 ≤ ‖r (physicalTime t₀ a ε τ)‖*‖w (physicalTime t₀ a ε τ)‖ ∧ |
| 35 | ‖r (physicalTime t₀ a ε τ)‖*‖w (physicalTime t₀ a ε τ)‖ ≤ 8*s₀*idealPrimarySize σ Z τ := by |
| 36 | have hτ0 : 0 ≤ τ := by linarith only [hτ] |
| 37 | have hΘ0 : 0 ≤ Θ := by linarith only [hΘ] |
| 38 | have hσ2 : σ^2 ≤ 1 := by nlinarith only [hσ, hσsmall] |
| 39 | have hτ2 : τ^2 ≤ Θ^2 := (sq_le_sq₀ hτ0 hΘ0).mpr hτΘ |
| 40 | have hP₀ : |σ^2*τ^2| ≤ Θ^2 := by |
| 41 | rw [abs_of_nonneg (mul_nonneg (sq_nonneg σ) (sq_nonneg τ))] |
| 42 | exact (mul_le_mul_of_nonneg_right hσ2 (sq_nonneg τ)).trans (by simpa using hτ2) |
| 43 | have hQ₀ : |-2*σ^2*τ| ≤ 2*Θ^2 := by |
| 44 | rw [abs_mul, abs_mul, abs_of_nonneg (sq_nonneg σ), abs_of_nonneg hτ0] |
| 45 | norm_num only [abs_neg, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2)] |
| 46 | have hh := mul_le_mul_of_nonneg_right hσ2 hτ0 |
| 47 | nlinarith only [hh, hτΘ, sq_nonneg (Θ-1), hΘ] |
| 48 | have hzpos := equation30_global_positive hσ hσsmall hZ hfluxZ hZ0 hZ₁0 τ hτ0 |
| 49 | have hslope := equation30_primary_logderivative_bound hσ hσsmall hZ hfluxZ hZ0 hZ₁0 τ hτ |
| 50 | have hr₀ : |-Z₁ τ/Z τ| ≤ 4 := by simpa only [neg_div, abs_neg] using hslope |
| 51 | have hr' : |scaledVelocity m v w t₀ a ε τ 0/scaledVelocity m v w t₀ a ε τ 1-(-Z₁ τ/Z τ)| |
| 52 | ≤ 10*(K*e*Θ^29) := by simpa only [neg_div, sub_neg_eq_add] using hratio |
| 53 | obtain ⟨hl, hu⟩ := physical_size_comparison_order40 m v r w hs₀ hε hm hv hmv hrw |
| 54 | hΘ hK he hεe hsmall hP₀ hQ₀ hr₀ hzpos hP hQ hN hVrel hr' |
| 55 | constructor <;> dsimp only [idealPrimarySize] <;> nlinarith only [hl, hu] |
| 56 | |
| 57 | /-- Every controlled neighboring primary before target is bounded by a |
| 58 | fixed multiple of the center's actual target size. All comparisons use |
| 59 | the same genuine scalar ODE solution, including its initial slope. -/ |
| 60 | theorem physical_before_target_size_bound {α : Type*} (center : α) |
| 61 | (m v r w : α → ℝ → Space) {s₀ t₀ a ε T Θ K e σ : ℝ} {Z Z₁ : ℝ → ℝ} |
| 62 | (hs₀ : 0 < s₀) (hε : 0 < ε) (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) |
| 63 | (hT : 1 ≤ T) (hTΘ : T ≤ Θ) (hΘ : 1 ≤ Θ) (hK : 1 ≤ K) (he : 0 ≤ e) (hεe : ε ≤ e) |
| 64 | (hsmall : 1000000*K*e*Θ^40 ≤ 1) |
| 65 | (hm : ∀ ξ τ, τ ∈ Icc 1 T → m ξ (physicalTime t₀ a ε τ) ≠ 0) |
| 66 | (hv : ∀ ξ τ, τ ∈ Icc 1 T → v ξ (physicalTime t₀ a ε τ) ≠ 0) |
| 67 | (hmv : ∀ ξ τ, τ ∈ Icc 1 T → |
| 68 | ⟪m ξ (physicalTime t₀ a ε τ), v ξ (physicalTime t₀ a ε τ)⟫_ℝ = 0) |
| 69 | (hrw : ∀ ξ τ, τ ∈ Icc 1 T → |
| 70 | ⟪r ξ (physicalTime t₀ a ε τ), w ξ (physicalTime t₀ a ε τ)⟫_ℝ = 0) |
| 71 | (hZ : ∀ t, 0 ≤ t → HasDerivAt Z (Z₁ t) t) |
| 72 | (hfluxZ : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 73 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) |
| 74 | (hZ0 : Z 0 = 1) (hZ₁0 : 0 ≤ Z₁ 0) |
| 75 | (hP : ∀ ξ τ, τ ∈ Icc 1 T → |
| 76 | |scaledRay (m ξ) (v ξ) (r ξ) s₀ t₀ a ε τ 0-σ^2*τ^2| ≤ 800*e*Θ^5) |
| 77 | (hQ : ∀ ξ τ, τ ∈ Icc 1 T → |
| 78 | |scaledRay (m ξ) (v ξ) (r ξ) s₀ t₀ a ε τ 1-(-2*σ^2*τ)| ≤ 800*e*Θ^5) |
| 79 | (hN : ∀ ξ τ, τ ∈ Icc 1 T → |
| 80 | |scaledRay (m ξ) (v ξ) (r ξ) s₀ t₀ a ε τ 2-1| ≤ 800*e*Θ^5) |
| 81 | (hVrel : ∀ ξ τ, τ ∈ Icc 1 T → |
| 82 | |scaledVelocity (m ξ) (v ξ) (w ξ) t₀ a ε τ 1/Z τ-1| ≤ K*e*Θ^29) |
| 83 | (hratio : ∀ ξ τ, τ ∈ Icc 1 T → |
| 84 | |scaledVelocity (m ξ) (v ξ) (w ξ) t₀ a ε τ 0/scaledVelocity (m ξ) (v ξ) (w ξ) t₀ a ε τ 1+Z₁ τ/Z τ| |
| 85 | ≤ 10*(K*e*Θ^29)) : |
| 86 | ∀ ξ τ, τ ∈ Icc 1 T → |
| 87 | ‖r ξ (physicalTime t₀ a ε τ)‖*‖w ξ (physicalTime t₀ a ε τ)‖ ≤ |
| 88 | 64*(‖r center (physicalTime t₀ a ε T)‖*‖w center (physicalTime t₀ a ε T)‖) := by |
| 89 | have hcomparison (ξ : α) (τ : ℝ) (hτ : τ ∈ Icc 1 T) := |
| 90 | physical_ideal_size_comparison_order40 (m ξ) (v ξ) (r ξ) (w ξ) hs₀ hε hσ hσsmall |
| 91 | (hm ξ τ hτ) (hv ξ τ hτ) (hmv ξ τ hτ) (hrw ξ τ hτ) |
| 92 | hΘ hK he hεe hsmall hτ.1 (hτ.2.trans hTΘ) hZ hfluxZ hZ0 hZ₁0 |
| 93 | (hP ξ τ hτ) (hQ ξ τ hτ) (hN ξ τ hτ) (hVrel ξ τ hτ) (hratio ξ τ hτ) |
| 94 | have htarget := (hcomparison center T ⟨hT, le_rfl⟩).1 |
| 95 | intro ξ τ hτ |
| 96 | have hcurrent := (hcomparison ξ τ hτ).2 |
| 97 | have hideal := equation30_ideal_size_comparison hσ hσsmall hZ hfluxZ hZ0 hZ₁0 |
| 98 | (by linarith only [hτ.1] : 0 ≤ τ) hτ.2 |
| 99 | have hh := mul_le_mul_of_nonneg_left hideal hs₀.le |
| 100 | nlinarith only [htarget, hcurrent, hh] |
| 101 | |
| 102 | end EulerPacketMovingFrame |