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.PacketKnownPieces |
| 2 | import Euler.PacketTimeProfiles |
| 3 | import Euler.PacketShiftArithmetic |
| 4 | |
| 5 | /-! Uniform shifts and actual time profiles for the three known pieces of every grade. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketCylinderField.KnownPiece |
| 10 | |
| 11 | open EulerPacketTimeProfile EulerPacketShiftArithmetic |
| 12 | |
| 13 | def shift (k : KnownPiece) (i : ℕ) : ℕ := |
| 14 | match k with |
| 15 | | .high => highShift i |
| 16 | | .mean => meanShift i |
| 17 | | .corrector => highShift (i-1) |
| 18 | |
| 19 | variable {K : Type*} [TopologicalSpace K] |
| 20 | |
| 21 | def profile (k : KnownPiece) (S : Scales K) (i : ℕ) : C(K,ℝ) := |
| 22 | match k with |
| 23 | | .high => S.high i |
| 24 | | .mean => S.mean i |
| 25 | | .corrector => S.high (i-1) |
| 26 | |
| 27 | def envelope (k : KnownPiece) (S : Scales K) (i : ℕ) : C(K,ℝ) := |
| 28 | match k with |
| 29 | | .high | .corrector => S.high i |
| 30 | | .mean => S.mean i |
| 31 | |
| 32 | theorem profile_pos (k : KnownPiece) (S : Scales K) (i : ℕ) (t : K) : |
| 33 | 0 < k.profile S i t := by |
| 34 | cases k <;> first | exact S.high_pos _ _ | exact S.mean_pos _ _ |
| 35 | |
| 36 | theorem envelope_pos (k : KnownPiece) (S : Scales K) (i : ℕ) (t : K) : |
| 37 | 0 < k.envelope S i t := by |
| 38 | cases k <;> first | exact S.high_pos _ _ | exact S.mean_pos _ _ |
| 39 | |
| 40 | theorem profile_le_envelope (k : KnownPiece) (S : Scales K) (i : ℕ) (t : K) : |
| 41 | k.profile S i t ≤ k.envelope S i t := by |
| 42 | cases k |
| 43 | · exact le_rfl |
| 44 | · exact le_rfl |
| 45 | · exact S.high_mono (Nat.sub_le i 1) t |
| 46 | |
| 47 | theorem profile_le_high (k : KnownPiece) (S : Scales K) (i : ℕ) (hk : k ≠ .mean) (t : K) : |
| 48 | k.profile S i t ≤ S.high i t := by |
| 49 | cases k |
| 50 | · exact le_rfl |
| 51 | · exact (hk rfl).elim |
| 52 | · exact S.high_mono (Nat.sub_le i 1) t |
| 53 | |
| 54 | theorem active_one_le (k : KnownPiece) (p i : ℕ) (hi : k.active p i) : 1 ≤ i := by |
| 55 | cases k <;> simp only [active] at hi <;> omega |
| 56 | |
| 57 | theorem shift_le_high (k : KnownPiece) (i : ℕ) : k.shift i ≤ highShift i := by |
| 58 | cases k <;> dsimp only [shift,highShift,meanShift] <;> omega |
| 59 | |
| 60 | theorem slow_shift_room (k l : KnownPiece) (i j p : ℕ) |
| 61 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hij : i+j=p) : |
| 62 | k.shift i+l.shift j+1 < meanForceShift p := by |
| 63 | have hk := k.shift_le_high i |
| 64 | have hl := l.shift_le_high j |
| 65 | have hs := slow_high_high_room i j p hi hj hij |
| 66 | omega |
| 67 | |
| 68 | theorem slow_shift_room_high (k l : KnownPiece) (i j p : ℕ) |
| 69 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hij : i+j=p) : |
| 70 | k.shift i+l.shift j+1 < highForceShift p := |
| 71 | lt_of_lt_of_le (slow_shift_room k l i j p hi hj hij) (mean_force_le_high_force p) |
| 72 | |
| 73 | theorem fast_mean_shift_room (l : KnownPiece) (i j p : ℕ) |
| 74 | (hi : 2 ≤ i) (hj : 1 ≤ j) (hij : i+j=p+1) : |
| 75 | KnownPiece.mean.shift i+l.shift j+1 < highForceShift p := by |
| 76 | have hl := l.shift_le_high j |
| 77 | have hs := fast_mean_high_room i j p hi hj hij |
| 78 | change meanShift i+_+1 < _ |
| 79 | omega |
| 80 | |
| 81 | theorem fast_corrector_shift_room (l : KnownPiece) (i j p : ℕ) |
| 82 | (hi : 2 ≤ i) (hj : 1 ≤ j) (hij : i+j=p+1) : |
| 83 | KnownPiece.corrector.shift i+l.shift j+1 < meanForceShift p := by |
| 84 | have hl := l.shift_le_high j |
| 85 | have hs := fast_corrector_high_room i j p hi hj hij |
| 86 | change highShift (i-1)+_+1 < _ |
| 87 | omega |
| 88 | |
| 89 | private theorem envelope_slow_mean (k l : KnownPiece) (S : Scales K) (i j p : ℕ) |
| 90 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hij : i+j=p) (t : K) : |
| 91 | k.envelope S i t*l.envelope S j t ≤ S.mean p t := by |
| 92 | cases k <;> cases l <;> dsimp only [envelope] |
| 93 | all_goals first |
| 94 | | exact S.slow_high_high_mean_bound i j p hi hj hij t |
| 95 | | exact S.slow_mean_high_mean_bound i j p hi hj hij t |
| 96 | | exact S.slow_mean_mean_bound i j p hi hj hij t |
| 97 | | simpa only [mul_comm] using S.slow_mean_high_mean_bound j i p hj hi (by omega) t |
| 98 | |
| 99 | private theorem envelope_slow_high (k l : KnownPiece) (S : Scales K) (i j p : ℕ) |
| 100 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hij : i+j=p) |
| 101 | (hhigh : ¬ (k = .mean ∧ l = .mean)) (t : K) : |
| 102 | k.envelope S i t*l.envelope S j t ≤ S.high p t := by |
| 103 | cases k <;> cases l <;> dsimp only [envelope] |
| 104 | all_goals first |
| 105 | | exact S.slow_high_high_high_bound i j p hi hj hij t |
| 106 | | exact S.slow_mean_high_high_bound i j p hi hj hij t |
| 107 | | simpa only [mul_comm] using S.slow_mean_high_high_bound j i p hj hi (by omega) t |
| 108 | | exact (hhigh ⟨rfl,rfl⟩).elim |
| 109 | |
| 110 | theorem slow_profile_mean (k l : KnownPiece) (S : Scales K) (i j p : ℕ) |
| 111 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hij : i+j=p) (t : K) : |
| 112 | k.profile S i t*l.profile S j t ≤ S.mean p t := |
| 113 | (mul_le_mul (k.profile_le_envelope S i t) (l.profile_le_envelope S j t) |
| 114 | (l.profile_pos S j t).le (k.envelope_pos S i t).le).trans |
| 115 | (envelope_slow_mean k l S i j p hi hj hij t) |
| 116 | |
| 117 | theorem slow_profile_high (k l : KnownPiece) (S : Scales K) (i j p : ℕ) |
| 118 | (hi : 1 ≤ i) (hj : 1 ≤ j) (hij : i+j=p) |
| 119 | (hhigh : ¬ (k = .mean ∧ l = .mean)) (t : K) : |
| 120 | k.profile S i t*l.profile S j t ≤ S.high p t := |
| 121 | (mul_le_mul (k.profile_le_envelope S i t) (l.profile_le_envelope S j t) |
| 122 | (l.profile_pos S j t).le (k.envelope_pos S i t).le).trans |
| 123 | (envelope_slow_high k l S i j p hi hj hij hhigh t) |
| 124 | |
| 125 | theorem fast_mean_profile_high (l : KnownPiece) (S : Scales K) (i j p : ℕ) |
| 126 | (hl : l ≠ .mean) (hi : 1 ≤ i) (hj : 1 ≤ j) (hij : i+j=p+1) (t : K) : |
| 127 | KnownPiece.mean.profile S i t*l.profile S j t ≤ S.high p t := |
| 128 | (mul_le_mul_of_nonneg_left (l.profile_le_high S j hl t) (S.mean_pos i t).le).trans_eq |
| 129 | (S.fast_mean_high_bound i j p hi hj hij t) |
| 130 | |
| 131 | theorem fast_corrector_profile_mean (l : KnownPiece) (S : Scales K) (i j p : ℕ) |
| 132 | (hl : l ≠ .mean) (hi : 2 ≤ i) (hj : 1 ≤ j) (hij : i+j=p+1) (t : K) : |
| 133 | KnownPiece.corrector.profile S i t*l.profile S j t ≤ S.mean p t := |
| 134 | (mul_le_mul_of_nonneg_left (l.profile_le_high S j hl t) (S.high_pos (i-1) t).le).trans |
| 135 | (S.fast_corrector_high_mean_bound i j p hi hj hij t) |
| 136 | |
| 137 | theorem fast_corrector_profile_high (l : KnownPiece) (S : Scales K) (i j p : ℕ) |
| 138 | (hl : l ≠ .mean) (hi : 2 ≤ i) (hj : 1 ≤ j) (hij : i+j=p+1) (t : K) : |
| 139 | KnownPiece.corrector.profile S i t*l.profile S j t ≤ S.high p t := |
| 140 | (mul_le_mul_of_nonneg_left (l.profile_le_high S j hl t) (S.high_pos (i-1) t).le).trans |
| 141 | (S.fast_corrector_high_high_bound i j p hi hj hij t) |
| 142 | |
| 143 | end EulerPacketCylinderField.KnownPiece |