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.PacketRecursiveCancellation |
| 2 | |
| 3 | /-! |
| 4 | Exact residual-tail grades. Fast pressure is absent beyond degree N, and |
| 5 | only degree N+1 retains the linear terminal corrector and slow pressure. |
| 6 | -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerFiniteGrades |
| 11 | |
| 12 | variable {V W : Type*} [AddCommGroup V] [Module ℝ V] [AddCommGroup W] [Module ℝ W] |
| 13 | |
| 14 | theorem shiftDown_convolution_eq (M n : ℕ) (B : V →ₗ[ℝ] V →ₗ[ℝ] W) (u v : ℕ → V) : |
| 15 | shiftDown (2*M) (convolution M B u v) n = convolution M B u v (n+1) := by |
| 16 | unfold shiftDown |
| 17 | by_cases h : n+1 ≤ 2*M |
| 18 | · exact truncate_of_le _ _ _ h |
| 19 | · rw [truncate_of_gt _ _ _ (by omega),convolution_above M (n+1) (by omega)] |
| 20 | |
| 21 | end EulerFiniteGrades |
| 22 | |
| 23 | namespace EulerPacketResidual |
| 24 | |
| 25 | open EulerFiniteGrades |
| 26 | |
| 27 | variable {V Q W : Type*} [AddCommGroup V] [Module ℝ V] |
| 28 | [AddCommGroup Q] [Module ℝ Q] [AddCommGroup W] [Module ℝ W] |
| 29 | |
| 30 | theorem coefficient_assembled_tail (N n : ℕ) (hn : N+1 ≤ n) |
| 31 | (L : V →ₗ[ℝ] W) (G H : Q →ₗ[ℝ] W) (B C : V →ₗ[ℝ] V →ₗ[ℝ] W) |
| 32 | (u c : ℕ → V) (q π : ℕ → Q) : |
| 33 | coefficient (N+1) L G H B C (assemble N u c) (assemble N q π) n = |
| 34 | (if n=N+1 then L (c N)+G (π N) else 0) + |
| 35 | convolution (N+1) B (assemble N u c) (assemble N u c) n + |
| 36 | convolution (N+1) C (assemble N u c) (assemble N u c) (n+1) := by |
| 37 | have hL : truncate (N+1) (fun i => L (assemble N u c i)) n = |
| 38 | if n=N+1 then L (c N) else 0 := by |
| 39 | by_cases h : n=N+1 |
| 40 | · subst n |
| 41 | rw [truncate_of_le _ _ _ le_rfl,assemble_last,ite_eq_left rfl] |
| 42 | · rw [truncate_of_gt _ _ _ (by omega),ite_eq_right h] |
| 43 | have hG : truncate (N+1) (fun i => G (assemble N q π i)) n = |
| 44 | if n=N+1 then G (π N) else 0 := by |
| 45 | by_cases h : n=N+1 |
| 46 | · subst n |
| 47 | rw [truncate_of_le _ _ _ le_rfl,assemble_last,ite_eq_left rfl] |
| 48 | · rw [truncate_of_gt _ _ _ (by omega),ite_eq_right h] |
| 49 | unfold coefficient |
| 50 | rw [hL,hG,shiftDown_above (N+1) n _ hn,shiftDown_convolution_eq] |
| 51 | by_cases h : n=N+1 |
| 52 | · simp only [h,ite_true,add_zero] |
| 53 | · simp only [h,ite_false,zero_add] |
| 54 | |
| 55 | end EulerPacketResidual |
| 56 | |
| 57 | namespace EulerPacketProfileRecursion |
| 58 | |
| 59 | open EulerSmoothLimit EulerPacketPointJets EulerFiniteGrades EulerPacketResidual |
| 60 | |
| 61 | /-- The existing known-jet constructor is exactly the complete finite velocity family. -/ |
| 62 | theorem assembledJets_eq_known (O : Operators) (N : ℕ) (a : ℕ → Profile) |
| 63 | (ha : a 0=0) (z : Domain) : |
| 64 | assembledJets O N a z = knownJets O (N+1) a z := by |
| 65 | funext i |
| 66 | by_cases hi : i ≤ N |
| 67 | · rw [assembledJets_eq_velocityJet O N a ha z i hi] |
| 68 | simp only [knownJets,history,show i < N+1 by omega,ite_true] |
| 69 | by_cases he : i=N+1 |
| 70 | · subst i |
| 71 | simp only [assembledJets,assemble_last,knownJets,history,lt_irrefl,ite_false, |
| 72 | ite_true,Nat.add_sub_cancel] |
| 73 | · have hz : assembledJets O N a z i = 0 := assemble_above N i (by omega) _ _ |
| 74 | rw [hz] |
| 75 | simp only [knownJets,history,show ¬ i < N+1 by omega,ite_false,he] |
| 76 | |
| 77 | theorem recursiveGrade_tail (O : Operators) (N n : ℕ) (hn : N+1 ≤ n) |
| 78 | (a : ℕ → Profile) (ha : a 0=0) (z : Domain) : |
| 79 | recursiveGrade O N a z n = |
| 80 | (if n=N+1 then |
| 81 | linearPart (O.strain z) (slicedJet O.interval (a N).corrector z)+ |
| 82 | slowPressure (O.inverseFrame z) (pressureJet (a N).highPressure z) else 0) + |
| 83 | nonlinearGrade (N+1) n (O.inverseFrame z) (O.normal z) (knownJets O (N+1) a z) := by |
| 84 | have h := coefficient_assembled_tail N n hn |
| 85 | (linearPart (O.strain z)) (slowPressure (O.inverseFrame z)) (fastPressure (O.normal z)) |
| 86 | (slowAdvection (O.inverseFrame z)) (fastAdvection (O.normal z)) |
| 87 | (fun i => slicedJet O.interval (a i).high z+slicedJet O.interval (a i).mean z) |
| 88 | (fun i => slicedJet O.interval (a i).corrector z) |
| 89 | (fun i => pressureJet (a i).meanPressure z) (fun i => pressureJet (a i).highPressure z) |
| 90 | change recursiveGrade O N a z n = _ at h |
| 91 | rw [h] |
| 92 | change (if n=N+1 then |
| 93 | linearPart (O.strain z) (slicedJet O.interval (a N).corrector z)+ |
| 94 | slowPressure (O.inverseFrame z) (pressureJet (a N).highPressure z) else 0) + |
| 95 | convolution (N+1) (slowAdvection (O.inverseFrame z)) (assembledJets O N a z) (assembledJets O N a z) n + |
| 96 | convolution (N+1) (fastAdvection (O.normal z)) (assembledJets O N a z) (assembledJets O N a z) (n+1) = _ |
| 97 | rw [assembledJets_eq_known O N a ha z] |
| 98 | simp only [nonlinearGrade,add_assoc] |
| 99 | |
| 100 | end EulerPacketProfileRecursion |