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.PacketInductionStage |
| 2 | |
| 3 | /-! The actual physical gradient at a stage's activation diverges with |
| 4 | the stage index. This uses the invariant's true frame decomposition. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketInductionScales |
| 9 | |
| 10 | open Real EulerPacketLowConstants EulerTransverseActivationSelection |
| 11 | |
| 12 | theorem activationMargin_le_half : activationMargin ≤ 1/2 := by |
| 13 | have hH := hessian_nonneg |
| 14 | have hA : 0 ≤ activationConstant gradientConstant hessianConstant := by |
| 15 | unfold activationConstant |
| 16 | positivity |
| 17 | unfold activationMargin |
| 18 | apply (div_le_iff₀ (show 0 < 32*(activationConstant gradientConstant hessianConstant+1) by positivity)).mpr |
| 19 | linarith only [hA] |
| 20 | |
| 21 | namespace Scales |
| 22 | |
| 23 | open EulerPacketSourceScaleSequence |
| 24 | |
| 25 | theorem previousShear_ge_index {c B : ℝ} (S : Scales c B) (n : ℕ) : |
| 26 | (n : ℝ)+1 ≤ previousShear S.J S.X n := by |
| 27 | induction n with |
| 28 | | zero => simpa only [Nat.cast_zero,zero_add] using S.previousShear_one 0 |
| 29 | | succ n ih => |
| 30 | have h := S.shear_separation n |
| 31 | have hp := S.previousShear_one n |
| 32 | change ((n+1 : ℕ) : ℝ)+1 ≤ shear S.J S.X n |
| 33 | push_cast |
| 34 | nlinarith only [ih,h,hp,sq_nonneg (previousShear S.J S.X n-1)] |
| 35 | |
| 36 | end Scales |
| 37 | end EulerPacketInductionScales |
| 38 | |
| 39 | namespace EulerPacketInduction.Stage |
| 40 | |
| 41 | open Set Real Filter InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 42 | EulerPacketInductionScales EulerPacketSourceGeometry EulerPacketNormalizedPrimary |
| 43 | EulerPacketSourceScaleSequence EulerPacketSourceScaleActual EulerPacketLowConstants |
| 44 | EulerTransversePacketProvider |
| 45 | open scoped Topology |
| 46 | |
| 47 | variable {c B : ℝ} {S : Scales c B} {n : ℕ} (P : Stage S n) |
| 48 | |
| 49 | def activationGradient : ℝ := |
| 50 | ‖fderiv ℝ (fun x => P.state.evolution.velocity (P.time,x)) 0‖ |
| 51 | |
| 52 | theorem gradient_lower (hn : n ≠ 0) : previousShear S.J S.X n/2 ≤ P.activationGradient := by |
| 53 | let t : Icc (0 : ℝ) P.parent.T := ⟨P.time,P.time_nonneg,P.time_lt.le⟩ |
| 54 | let M := P.parent.strain.field t 0 |
| 55 | let Q := P.frame.shear • rankOne ℝ (unit (P.frame.v P.time)) (unit (P.frame.m P.time)) |
| 56 | have hs := (S.previousShear_one n) |
| 57 | have hnorm : ‖Q‖=previousShear S.J S.X n := by |
| 58 | simp only [Q,norm_smul,Real.norm_eq_abs,P.frame_shear, |
| 59 | abs_of_nonneg (zero_le_one.trans hs),norm_rankOne, |
| 60 | unit_norm (P.frame.velocity_nonzero P.time ⟨le_rfl,P.time_lt.le⟩), |
| 61 | unit_norm (P.frame.ray_nonzero P.time ⟨le_rfl,P.time_lt.le⟩),mul_one] |
| 62 | have hr : ‖M-P.frame.B P.time-Q‖ ≤ P.frame.error := by |
| 63 | have h := P.frame.remainder_bound P.time ⟨le_rfl,P.time_lt.le⟩ |
| 64 | rw [Data.clamp_coe (frameData P.parent) t] at h |
| 65 | exact h |
| 66 | have hB := P.frame.B_bound P.time ⟨le_rfl,P.time_lt.le⟩ |
| 67 | have hM : previousShear S.J S.X n ≤ ‖M‖+P.frame.G+P.frame.error := by |
| 68 | calc |
| 69 | _ = ‖Q‖ := hnorm.symm |
| 70 | _ = ‖(M-P.frame.B P.time)-(M-P.frame.B P.time-Q)‖ := by congr 1; module |
| 71 | _ ≤ ‖M-P.frame.B P.time‖+‖M-P.frame.B P.time-Q‖ := norm_sub_le _ _ |
| 72 | _ ≤ (‖M‖+‖P.frame.B P.time‖)+P.frame.error := add_le_add (norm_sub_le _ _) hr |
| 73 | _ ≤ _ := add_le_add (add_le_add le_rfl hB) le_rfl |
| 74 | have he : P.frame.G+P.frame.error ≤ previousShear S.J S.X n/2 := by |
| 75 | have hc := (add_le_add P.frame_bound P.frame_error).trans (S.activation_small hn) |
| 76 | have hh := mul_le_mul_of_nonneg_right activationMargin_le_half (zero_le_one.trans hs) |
| 77 | nlinarith only [hc,hh] |
| 78 | have heq : ‖M‖=P.activationGradient := by |
| 79 | exact congrArg norm (P.state.evolution.strain_origin P.state.odd t) |
| 80 | rw [heq] at hM |
| 81 | linarith only [hM,he] |
| 82 | |
| 83 | theorem gradient_atTop (P : ∀ n, Stage S n) : |
| 84 | Tendsto (fun n => (P n).activationGradient) atTop atTop := by |
| 85 | apply tendsto_atTop.2 |
| 86 | intro b |
| 87 | obtain ⟨N,hN⟩ := exists_nat_gt (2*b) |
| 88 | filter_upwards [eventually_ge_atTop (N+1)] with n hn |
| 89 | have hn0 : n ≠ 0 := by omega |
| 90 | have hi : (N : ℝ)+1 ≤ (n : ℝ) := by exact_mod_cast hn |
| 91 | have hs := S.previousShear_ge_index n |
| 92 | have hg := (P n).gradient_lower hn0 |
| 93 | linarith only [hN,hi,hs,hg] |
| 94 | |
| 95 | end EulerPacketInduction.Stage |