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 | |
| 3 | /-! |
| 4 | Exact finite A/B/C decomposition of the known force. The only fast products |
| 5 | retained are BA, BC, CA and CC. This is raw algebra on the actual sliced jets. |
| 6 | -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketCylinderField |
| 11 | |
| 12 | open Set Finset EulerSmoothLimit EulerPacketPointJets EulerPacketProfileRecursion EulerFiniteGrades |
| 13 | |
| 14 | theorem sum_knownPiece {E : Type*} [AddCommMonoid E] (f : KnownPiece → E) : |
| 15 | ∑ k, f k = f .high + f .mean + f .corrector := by |
| 16 | have hu : (univ : Finset KnownPiece) = {.high, .mean, .corrector} := by decide |
| 17 | rw [hu] |
| 18 | simp [add_assoc] |
| 19 | |
| 20 | /-- Fifteen named summand kinds before the final new-mean/primary interaction. -/ |
| 21 | inductive KnownTerm where |
| 22 | | previousLinear |
| 23 | | previousPressure |
| 24 | | slow (left right : KnownPiece) |
| 25 | | fastMeanHigh |
| 26 | | fastMeanCorrector |
| 27 | | fastCorrectorHigh |
| 28 | | fastCorrectorCorrector |
| 29 | deriving DecidableEq, Fintype |
| 30 | |
| 31 | theorem card_knownTerm : Fintype.card KnownTerm = 15 := by decide |
| 32 | |
| 33 | theorem sum_knownTerm {E : Type*} [AddCommMonoid E] (f : KnownTerm → E) : |
| 34 | ∑ k, f k = f .previousLinear + f .previousPressure + |
| 35 | (∑ l : KnownPiece, ∑ r : KnownPiece, f (.slow l r)) + |
| 36 | f .fastMeanHigh + f .fastMeanCorrector + f .fastCorrectorHigh + f .fastCorrectorCorrector := by |
| 37 | have hu : (univ : Finset KnownTerm) = |
| 38 | {.previousLinear, .previousPressure, .slow .high .high, .slow .high .mean, |
| 39 | .slow .high .corrector, .slow .mean .high, .slow .mean .mean, .slow .mean .corrector, |
| 40 | .slow .corrector .high, .slow .corrector .mean, .slow .corrector .corrector, |
| 41 | .fastMeanHigh, .fastMeanCorrector, .fastCorrectorHigh, .fastCorrectorCorrector} := by decide |
| 42 | rw [hu] |
| 43 | simp [sum_knownPiece, add_assoc] |
| 44 | |
| 45 | namespace KnownTerm |
| 46 | |
| 47 | def raw (k : KnownTerm) (O : Operators) (p : ℕ) (a : ℕ → Profile) |
| 48 | (i j : ℕ) : VectorField := fun z => |
| 49 | match k with |
| 50 | | .previousLinear => if i=0 ∧ j=0 then |
| 51 | linearPart (O.strain z) (slicedJet O.interval (a (p-1)).corrector z) else 0 |
| 52 | | .previousPressure => if i=0 ∧ j=0 then |
| 53 | slowPressure (O.inverseFrame z) (pressureJet (a (p-1)).highPressure z) else 0 |
| 54 | | .slow l r => if i+j=p then |
| 55 | slowAdvection (O.inverseFrame z) (l.jet O p a z i) (r.jet O p a z j) else 0 |
| 56 | | .fastMeanHigh => if i+j=p+1 then |
| 57 | fastAdvection (O.normal z) (KnownPiece.mean.jet O p a z i) (KnownPiece.high.jet O p a z j) else 0 |
| 58 | | .fastMeanCorrector => if i+j=p+1 then |
| 59 | fastAdvection (O.normal z) (KnownPiece.mean.jet O p a z i) (KnownPiece.corrector.jet O p a z j) else 0 |
| 60 | | .fastCorrectorHigh => if i+j=p+1 then |
| 61 | fastAdvection (O.normal z) (KnownPiece.corrector.jet O p a z i) (KnownPiece.high.jet O p a z j) else 0 |
| 62 | | .fastCorrectorCorrector => if i+j=p+1 then |
| 63 | fastAdvection (O.normal z) (KnownPiece.corrector.jet O p a z i) (KnownPiece.corrector.jet O p a z j) else 0 |
| 64 | |
| 65 | /-- These two families have zero angular mean by periodicity. -/ |
| 66 | def zeroMean (k : KnownTerm) : Bool := |
| 67 | match k with |
| 68 | | .fastMeanHigh | .fastMeanCorrector => true |
| 69 | | _ => false |
| 70 | |
| 71 | /-- The pure mean slow product is constant in angle. -/ |
| 72 | def meanOnly (k : KnownTerm) : Bool := |
| 73 | match k with |
| 74 | | .slow .mean .mean => true |
| 75 | | _ => false |
| 76 | |
| 77 | end KnownTerm |
| 78 | |
| 79 | abbrev KnownTermIndex := KnownTerm × (ℕ × ℕ) |
| 80 | |
| 81 | def knownTermIndices (p : ℕ) : Finset KnownTermIndex := |
| 82 | Finset.univ.product ((Finset.range (p+2)).product (Finset.range (p+2))) |
| 83 | |
| 84 | theorem knownTermIndices_card (p : ℕ) : |
| 85 | (knownTermIndices p).card = 15*(p+2)^2 := by |
| 86 | have h₁ := Finset.card_product (Finset.univ : Finset KnownTerm) |
| 87 | ((Finset.range (p+2)).product (Finset.range (p+2))) |
| 88 | have h₂ := Finset.card_product (Finset.range (p+2)) (Finset.range (p+2)) |
| 89 | change (knownTermIndices p).card = _ at h₁ |
| 90 | change ((Finset.range (p+2)).product (Finset.range (p+2))).card = _ at h₂ |
| 91 | rw [h₁, h₂, Finset.card_univ, card_knownTerm, Finset.card_range] |
| 92 | ring |
| 93 | |
| 94 | theorem knownTermIndices_card_room (p : ℕ) : |
| 95 | (knownTermIndices p).card+1 ≤ 100*(p+2)^2 := by |
| 96 | rw [knownTermIndices_card] |
| 97 | have hs : 0 < (p+2)^2 := by positivity |
| 98 | omega |
| 99 | |
| 100 | theorem sum_knownTerm_raw (O : Operators) (p : ℕ) (a : ℕ → Profile) (z : Domain) : |
| 101 | (∑ q ∈ knownTermIndices p, q.1.raw O p a q.2.1 q.2.2 z) = |
| 102 | linearPart (O.strain z) (slicedJet O.interval (a (p-1)).corrector z) + |
| 103 | slowPressure (O.inverseFrame z) (pressureJet (a (p-1)).highPressure z) + |
| 104 | (∑ l : KnownPiece, ∑ r : KnownPiece, |
| 105 | convolution (p+1) (slowAdvection (O.inverseFrame z)) |
| 106 | (l.jet O p a z) (r.jet O p a z) p) + |
| 107 | convolution (p+1) (fastAdvection (O.normal z)) |
| 108 | (KnownPiece.mean.jet O p a z) (KnownPiece.high.jet O p a z) (p+1) + |
| 109 | convolution (p+1) (fastAdvection (O.normal z)) |
| 110 | (KnownPiece.mean.jet O p a z) (KnownPiece.corrector.jet O p a z) (p+1) + |
| 111 | convolution (p+1) (fastAdvection (O.normal z)) |
| 112 | (KnownPiece.corrector.jet O p a z) (KnownPiece.high.jet O p a z) (p+1) + |
| 113 | convolution (p+1) (fastAdvection (O.normal z)) |
| 114 | (KnownPiece.corrector.jet O p a z) (KnownPiece.corrector.jet O p a z) (p+1) := by |
| 115 | simp [knownTermIndices, sum_product, sum_knownTerm, KnownTerm.raw, ite_and, convolution] |
| 116 | |
| 117 | private theorem convolution_sum_pieces (M n : ℕ) |
| 118 | (B : VectorJet →ₗ[ℝ] VectorJet →ₗ[ℝ] Space) (u : KnownPiece → ℕ → VectorJet) : |
| 119 | convolution M B (fun i => ∑ k, u k i) (fun i => ∑ k, u k i) n = |
| 120 | ∑ l : KnownPiece, ∑ r : KnownPiece, convolution M B (u l) (u r) n := by |
| 121 | simp only [sum_knownPiece] |
| 122 | unfold convolution |
| 123 | simp only [← sum_add_distrib] |
| 124 | apply sum_congr rfl |
| 125 | intro i _ |
| 126 | apply sum_congr rfl |
| 127 | intro j _ |
| 128 | split_ifs <;> simp only [map_add, LinearMap.add_apply, add_zero] |
| 129 | abel |
| 130 | |
| 131 | private theorem fast_pieces_reduced (M n : ℕ) (m : Space) |
| 132 | (u : KnownPiece → ℕ → VectorJet) |
| 133 | (ha : ∀ i, inner ℝ m (u .high i).1 = 0) |
| 134 | (hb : ∀ i, (u .mean i).2 angleDirection = 0) : |
| 135 | (∑ l : KnownPiece, ∑ r : KnownPiece, convolution M (fastAdvection m) (u l) (u r) n) = |
| 136 | convolution M (fastAdvection m) (u .mean) (u .high) n + |
| 137 | convolution M (fastAdvection m) (u .mean) (u .corrector) n + |
| 138 | convolution M (fastAdvection m) (u .corrector) (u .high) n + |
| 139 | convolution M (fastAdvection m) (u .corrector) (u .corrector) n := by |
| 140 | have hl (r : KnownPiece) : convolution M (fastAdvection m) (u .high) (u r) n = 0 := by |
| 141 | unfold convolution |
| 142 | apply sum_eq_zero |
| 143 | intro i _ |
| 144 | apply sum_eq_zero |
| 145 | intro j _ |
| 146 | simp only [fastAdvection_tangent_left m _ _ (ha i), ite_self] |
| 147 | have hr (l : KnownPiece) : convolution M (fastAdvection m) (u l) (u .mean) n = 0 := by |
| 148 | unfold convolution |
| 149 | apply sum_eq_zero |
| 150 | intro i _ |
| 151 | apply sum_eq_zero |
| 152 | intro j _ |
| 153 | simp only [fastAdvection_angleConstant_right m _ _ (hb j), ite_self] |
| 154 | simp only [sum_knownPiece, hl, hr, zero_add, add_zero] |
| 155 | abel |
| 156 | |
| 157 | /-- Exact raw known force, with all identically zero fast interactions removed. -/ |
| 158 | theorem knownForce_eq_term_sum (O : Operators) (p : ℕ) (hp : 2 ≤ p) |
| 159 | (a : ℕ → Profile) (hc : (a 0).corrector = 0) (hB₁ : (a 1).mean = 0) |
| 160 | (z : Domain) |
| 161 | (ha : ∀ i, inner ℝ (O.normal z) (KnownPiece.high.jet O p a z i).1 = 0) |
| 162 | (hb : ∀ i, (KnownPiece.mean.jet O p a z i).2 angleDirection = 0) : |
| 163 | knownForce O p a z = -(∑ q ∈ knownTermIndices p, q.1.raw O p a q.2.1 q.2.2 z) := by |
| 164 | have hu : knownJets O p a z = fun i => ∑ k : KnownPiece, k.jet O p a z i := by |
| 165 | funext i |
| 166 | rw [sum_knownPiece] |
| 167 | exact knownJets_eq_pieces O p hp a hc hB₁ z i |
| 168 | rw [sum_knownTerm_raw] |
| 169 | unfold knownForce nonlinearGrade |
| 170 | rw [hu, convolution_sum_pieces, convolution_sum_pieces, |
| 171 | fast_pieces_reduced _ _ _ _ ha hb] |
| 172 | abel |
| 173 | |
| 174 | end EulerPacketCylinderField |