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.PacketKnownDecomposition |
| 2 | import Euler.PacketKnownPieceScales |
| 3 | |
| 4 | /-! Every nonzero known summand fits strictly below its target forcing shift. -/ |
| 5 | |
| 6 | namespace EulerPacketCylinderField.KnownTerm |
| 7 | |
| 8 | open EulerPacketShiftArithmetic |
| 9 | |
| 10 | def budgetShift (k : KnownTerm) (p i j : ℕ) : ℕ := |
| 11 | match k with |
| 12 | | .previousLinear | .previousPressure => if i=0 ∧ j=0 then highShift (p-1) else 0 |
| 13 | | .slow l r => if i+j=p ∧ l.active p i ∧ r.active p j then l.shift i+r.shift j+1 else 0 |
| 14 | | .fastMeanHigh => |
| 15 | if i+j=p+1 ∧ KnownPiece.mean.active p i ∧ KnownPiece.high.active p j then |
| 16 | KnownPiece.mean.shift i+KnownPiece.high.shift j+1 else 0 |
| 17 | | .fastMeanCorrector => |
| 18 | if i+j=p+1 ∧ KnownPiece.mean.active p i ∧ KnownPiece.corrector.active p j then |
| 19 | KnownPiece.mean.shift i+KnownPiece.corrector.shift j+1 else 0 |
| 20 | | .fastCorrectorHigh => |
| 21 | if i+j=p+1 ∧ KnownPiece.corrector.active p i ∧ KnownPiece.high.active p j then |
| 22 | KnownPiece.corrector.shift i+KnownPiece.high.shift j+1 else 0 |
| 23 | | .fastCorrectorCorrector => |
| 24 | if i+j=p+1 ∧ KnownPiece.corrector.active p i ∧ KnownPiece.corrector.active p j then |
| 25 | KnownPiece.corrector.shift i+KnownPiece.corrector.shift j+1 else 0 |
| 26 | |
| 27 | private theorem previous_shift_lt (p : ℕ) (hp : 2 ≤ p) : highShift (p-1) < meanForceShift p := by |
| 28 | have h := previous_linear_room p hp |
| 29 | omega |
| 30 | |
| 31 | theorem budgetShift_lt_mean (k : KnownTerm) (p i j : ℕ) (hp : 2 ≤ p) |
| 32 | (hk : k.zeroMean = false) : k.budgetShift p i j < meanForceShift p := by |
| 33 | have hpos : 0 < meanForceShift p := by have h := force_shift_dominates_grade p hp; omega |
| 34 | cases k with |
| 35 | | previousLinear => |
| 36 | simp only [budgetShift] |
| 37 | split_ifs <;> first | exact previous_shift_lt p hp | exact hpos |
| 38 | | previousPressure => |
| 39 | simp only [budgetShift] |
| 40 | split_ifs <;> first | exact previous_shift_lt p hp | exact hpos |
| 41 | | slow l r => |
| 42 | simp only [budgetShift] |
| 43 | split_ifs with h |
| 44 | · exact KnownPiece.slow_shift_room l r i j p (l.active_one_le p i h.2.1) |
| 45 | (r.active_one_le p j h.2.2) h.1 |
| 46 | · exact hpos |
| 47 | | fastMeanHigh => simp [zeroMean] at hk |
| 48 | | fastMeanCorrector => simp [zeroMean] at hk |
| 49 | | fastCorrectorHigh => |
| 50 | simp only [budgetShift] |
| 51 | split_ifs with h |
| 52 | · exact KnownPiece.fast_corrector_shift_room .high i j p h.2.1.1 h.2.2.1 h.1 |
| 53 | · exact hpos |
| 54 | | fastCorrectorCorrector => |
| 55 | simp only [budgetShift] |
| 56 | split_ifs with h |
| 57 | · exact KnownPiece.fast_corrector_shift_room .corrector i j p h.2.1.1 |
| 58 | (KnownPiece.active_one_le .corrector p j h.2.2) h.1 |
| 59 | · exact hpos |
| 60 | |
| 61 | theorem budgetShift_lt_high (k : KnownTerm) (p i j : ℕ) (hp : 2 ≤ p) : |
| 62 | k.budgetShift p i j < highForceShift p := by |
| 63 | by_cases hk : k.zeroMean = false |
| 64 | · exact lt_of_lt_of_le (k.budgetShift_lt_mean p i j hp hk) (mean_force_le_high_force p) |
| 65 | have hpos : 0 < highForceShift p := by have h := force_shift_dominates_grade p hp; omega |
| 66 | cases k <;> simp only [zeroMean, not_true_eq_false] at hk |
| 67 | all_goals simp only [budgetShift] |
| 68 | all_goals split_ifs with h |
| 69 | · exact KnownPiece.fast_mean_shift_room .high i j p h.2.1.1 h.2.2.1 h.1 |
| 70 | · exact hpos |
| 71 | · exact KnownPiece.fast_mean_shift_room .corrector i j p h.2.1.1 |
| 72 | (KnownPiece.active_one_le .corrector p j h.2.2) h.1 |
| 73 | · exact hpos |
| 74 | |
| 75 | end EulerPacketCylinderField.KnownTerm |