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 NavierStokes.HarmonicFields |
| 2 | import NavierStokes.LinearWaveBounds |
| 3 | import NavierStokes.CorrectionState |
| 4 | import NavierStokes.AxisymmetricResidual |
| 5 | |
| 6 | /-! |
| 7 | # Explicit harmonic witnesses for the retained error fields |
| 8 | |
| 9 | Every representation in this file is constructed from its source field. |
| 10 | Gaussian errors retain the original carrier and its conjugate, while actual |
| 11 | mean aliases occupy the zero mode. No full-residual identity is assumed. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ErrorHarmonics |
| 17 | |
| 18 | open Set Filter Function MeasureTheory |
| 19 | open HarmonicFields CorrectionState |
| 20 | open scoped BigOperators ContDiff Topology ComplexConjugate |
| 21 | |
| 22 | noncomputable def conjugatePair {D : Type} (j : ℤ) (a : D → ℂ) : Coefficients D := by |
| 23 | let c : Coefficients D := AddMonoidAlgebra.single j (fun x => a x / 2) |
| 24 | exact c + conjugateReverse c |
| 25 | |
| 26 | theorem evaluate_conjugatePair {D : Type} (j : ℤ) (a : D → ℂ) (x : D) (φ : ℝ) : |
| 27 | evaluate (conjugatePair j a) x φ = ((a x * character j φ).re : ℂ) := by |
| 28 | rw [conjugatePair, evaluate_add, evaluate_conjugateReverse, evaluate_single, |
| 29 | Complex.re_eq_add_conj] |
| 30 | simp only [map_mul, map_div₀, map_ofNat] |
| 31 | ring |
| 32 | |
| 33 | theorem field_conjugatePair {D : Type} (j : ℤ) (a : D → ℂ) (k : ℝ) (Φ : D → ℝ) |
| 34 | (kp : ℤ) (p : D × ℝ) : |
| 35 | field (conjugatePair j a) k Φ kp p = |
| 36 | ((a p.1 * character j (k * Φ p.1 + (kp : ℝ) * p.2)).re : ℂ) := |
| 37 | evaluate_conjugatePair j a p.1 _ |
| 38 | |
| 39 | theorem conjugatePair_symmetric {D : Type} (j : ℤ) (a : D → ℂ) : |
| 40 | ConjugateSymmetric (conjugatePair j a) := by |
| 41 | classical |
| 42 | intro m x |
| 43 | let c : Coefficients D := AddMonoidAlgebra.single j (fun x => a x / 2) |
| 44 | change c (-m) x + conj (c (-(-m)) x) = conj (c m x + conj (c (-m) x)) |
| 45 | simp only [map_add, neg_neg, starRingEnd_self_apply] |
| 46 | exact add_comm _ _ |
| 47 | |
| 48 | theorem band_single {D : Type} (j : ℤ) (a : D → ℂ) : |
| 49 | HarmonicFields.BandLimited (AddMonoidAlgebra.single j a : Coefficients D) j.natAbs := by |
| 50 | intro m hm |
| 51 | have he := Finset.mem_singleton.mp (Finsupp.support_single_subset hm) |
| 52 | exact he ▸ le_rfl |
| 53 | |
| 54 | theorem band_conjugateReverse {D : Type} {c : Coefficients D} {N : ℕ} |
| 55 | (hc : HarmonicFields.BandLimited c N) : HarmonicFields.BandLimited (conjugateReverse c) N := by |
| 56 | intro j hj |
| 57 | have hm : -j ∈ c.support := by |
| 58 | by_contra hn |
| 59 | have hz := Finsupp.notMem_support_iff.mp hn |
| 60 | have hzero : conjugateReverse c j = 0 := by |
| 61 | funext x |
| 62 | simp only [conjugateReverse_apply, hz, Pi.zero_apply, map_zero] |
| 63 | exact (Finsupp.mem_support_iff.mp hj) hzero |
| 64 | simpa only [Int.natAbs_neg] using hc (-j) hm |
| 65 | |
| 66 | theorem band_conjugatePair {D : Type} (j : ℤ) (a : D → ℂ) : |
| 67 | HarmonicFields.BandLimited (conjugatePair j a) j.natAbs := |
| 68 | (band_single j (fun x => a x / 2)).add |
| 69 | (band_conjugateReverse (band_single j (fun x => a x / 2))) |
| 70 | |
| 71 | noncomputable def pairedBlock {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) |
| 72 | (kp : ℕ → ℤ) (a : ℕ → D → HarmonicCalculus.ComplexVector) : HarmonicBlock D where |
| 73 | velocity n i := conjugatePair j (fun x => a n x i) |
| 74 | pressure _ := 0 |
| 75 | frequency := k |
| 76 | phase := Φ |
| 77 | angularFrequency := kp |
| 78 | |
| 79 | theorem pairedBlock_band {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) |
| 80 | (kp : ℕ → ℤ) (a : ℕ → D → HarmonicCalculus.ComplexVector) : |
| 81 | HarmonicBlock.BandLimited (pairedBlock j k Φ kp a) j.natAbs := by |
| 82 | refine ⟨fun n i => band_conjugatePair j (fun x => a n x i), ?_⟩ |
| 83 | intro n l hl |
| 84 | simp [pairedBlock] at hl |
| 85 | |
| 86 | theorem pairedBlock_evaluation {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) |
| 87 | (kp : ℕ → ℤ) (a : ℕ → D → HarmonicCalculus.ComplexVector) (n : ℕ) (p : D × ℝ) (i : Fin 3) : |
| 88 | (pairedBlock j k Φ kp a).oscillation n p i = |
| 89 | (a n p.1 i * character j (k n * Φ n p.1 + (kp n : ℝ) * p.2)).re := by |
| 90 | have h := congrArg Complex.re (field_conjugatePair j (fun x => a n x i) (k n) (Φ n) (kp n) p) |
| 91 | simp only [Complex.ofReal_re] at h |
| 92 | exact h |
| 93 | |
| 94 | noncomputable def zeroBlock {D : Type} (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) |
| 95 | (a : MeanVector D) : HarmonicBlock D where |
| 96 | velocity n i := constantCoefficient (fun x => (a n x i : ℂ)) |
| 97 | pressure _ := 0 |
| 98 | frequency := k |
| 99 | phase := Φ |
| 100 | angularFrequency := kp |
| 101 | |
| 102 | theorem zeroBlock_evaluation {D : Type} (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) |
| 103 | (a : MeanVector D) (n : ℕ) (p : D × ℝ) (i : Fin 3) : |
| 104 | (zeroBlock k Φ kp a).oscillation n p i = a n p.1 i := by |
| 105 | change (field (constantCoefficient (fun x => (a n x i : ℂ))) (k n) (Φ n) (kp n) p).re = _ |
| 106 | unfold field constantCoefficient |
| 107 | rw [evaluate_single, character_zero, mul_one, Complex.ofReal_re] |
| 108 | |
| 109 | theorem zeroBlock_band {D : Type} (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) |
| 110 | (a : MeanVector D) : HarmonicBlock.BandLimited (zeroBlock k Φ kp a) 0 := by |
| 111 | refine ⟨fun n i => band_constantCoefficient _, ?_⟩ |
| 112 | intro n l hl |
| 113 | simp [zeroBlock] at hl |
| 114 | |
| 115 | theorem zeroBlock_symmetric {D : Type} (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) |
| 116 | (a : MeanVector D) (n : ℕ) (i : Fin 3) : |
| 117 | ConjugateSymmetric ((zeroBlock k Φ kp a).velocity n i) := by |
| 118 | intro j x |
| 119 | classical |
| 120 | by_cases hj : j = 0 |
| 121 | · simp [zeroBlock, constantCoefficient, hj] |
| 122 | · simp [zeroBlock, constantCoefficient, hj] |
| 123 | |
| 124 | section GaussianErrors |
| 125 | |
| 126 | variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 127 | |
| 128 | /-- Independence of the explicit angular coordinate. -/ |
| 129 | def AngleIndependent (f : ℕ → D × ℝ → E) : Prop := |
| 130 | ∀ n x θ, f n (x, θ) = f n (x, 0) |
| 131 | |
| 132 | theorem dfast_angleIndependent (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| 133 | {ψ : ℕ → D × ℝ → ℝ} (hψ : ∀ n, ContDiff ℝ ∞ (ψ n)) (hψa : AngleIndependent ψ) : |
| 134 | AngleIndependent (d.Dfast ψ) := by |
| 135 | intro n x θ |
| 136 | let q : D → ℝ := fun y => ψ n (y, 0) |
| 137 | let L : D × ℝ →L[ℝ] D := ContinuousLinearMap.fst ℝ D ℝ |
| 138 | have hq : ContDiff ℝ ∞ q := (hψ n).comp (contDiff_id.prodMk contDiff_const) |
| 139 | have he : ψ n = q ∘ L := funext (fun p => hψa n p.1 p.2) |
| 140 | have hd (t : ℝ) := (((hq.differentiable (by simp)) x).hasFDerivAt).comp (x, t) L.hasFDerivAt |
| 141 | simp only [LinearWaveBounds.GraphDirections.Dfast, LinearWaveBounds.GraphDirections.fastField, |
| 142 | HarmonicCalculus.along, he, (hd θ).fderiv, (hd 0).fderiv] |
| 143 | |
| 144 | theorem excludedSlotError_angleIndependent (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| 145 | {ψ : ℕ → D × ℝ → ℝ} {a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector} |
| 146 | (hψ : ∀ n, ContDiff ℝ ∞ (ψ n)) (hψa : AngleIndependent ψ) |
| 147 | (ha : AngleIndependent a) (hs : AngleIndependent source) : |
| 148 | AngleIndependent (LinearWaveBounds.excludedSlotError d ψ a source) := by |
| 149 | intro n x θ |
| 150 | simp only [LinearWaveBounds.excludedSlotError, dfast_angleIndependent d hψ hψa n x θ, |
| 151 | hψa n x θ, ha n x θ, hs n x θ] |
| 152 | |
| 153 | /-- The retained Gaussian term as a literal real carrier field. -/ |
| 154 | noncomputable def gaussianField (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| 155 | (ψ : ℕ → D × ℝ → ℝ) (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) |
| 156 | (j : ℤ) (k : ℕ → ℝ) (Ψ : ℕ → D × ℝ → ℝ) : Oscillation D := |
| 157 | fun n p i => (HarmonicCalculus.vectorMode (k n * (j : ℝ)) (Ψ n) |
| 158 | (LinearWaveBounds.excludedSlotError d ψ a source n) p i).re |
| 159 | |
| 160 | noncomputable def gaussianBlock (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| 161 | (ψ : ℕ → D × ℝ → ℝ) (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) |
| 162 | (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : HarmonicBlock D := |
| 163 | pairedBlock j k Φ kp (fun n x => LinearWaveBounds.excludedSlotError d ψ a source n (x, 0)) |
| 164 | |
| 165 | theorem gaussianBlock_band (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| 166 | (ψ : ℕ → D × ℝ → ℝ) (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) |
| 167 | (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : |
| 168 | HarmonicBlock.BandLimited (gaussianBlock d ψ a source j k Φ kp) j.natAbs := |
| 169 | pairedBlock_band j k Φ kp _ |
| 170 | |
| 171 | /-- The witness evaluates to the actual error, from primitive angular |
| 172 | independence and the actual phase identity. No error representation is assumed. -/ |
| 173 | theorem gaussianBlock_represents (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| 174 | {ψ : ℕ → D × ℝ → ℝ} {a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector} |
| 175 | (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (Ψ : ℕ → D × ℝ → ℝ) (kp : ℕ → ℤ) |
| 176 | (hψ : ∀ n, ContDiff ℝ ∞ (ψ n)) (hψa : AngleIndependent ψ) |
| 177 | (ha : AngleIndependent a) (hs : AngleIndependent source) |
| 178 | (hphase : ∀ n x θ, k n * Ψ n (x, θ) = k n * Φ n x + (kp n : ℝ) * θ) : |
| 179 | (gaussianBlock d ψ a source j k Φ kp).oscillation = gaussianField d ψ a source j k Ψ := by |
| 180 | funext n p i |
| 181 | change (pairedBlock j k Φ kp _).oscillation n p i = _ |
| 182 | rw [pairedBlock_evaluation] |
| 183 | change (LinearWaveBounds.excludedSlotError d ψ a source n (p.1, 0) i * |
| 184 | character j (k n * Φ n p.1 + (kp n : ℝ) * p.2)).re = |
| 185 | (LinearWaveBounds.excludedSlotError d ψ a source n p i * HarmonicCalculus.carrier |
| 186 | (k n * (j : ℝ)) (Ψ n) p).re |
| 187 | rw [← character_eq_carrier j (k n) (Ψ n) p, hphase n p.1 p.2] |
| 188 | rw [excludedSlotError_angleIndependent d hψ hψa ha hs n p.1 p.2] |
| 189 | |
| 190 | end GaussianErrors |
| 191 | |
| 192 | section AliasErrors |
| 193 | |
| 194 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 195 | |
| 196 | end AliasErrors |
| 197 | |
| 198 | /-- Conjugacy is kept for both velocity and pressure coefficients. -/ |
| 199 | def RealBlock {D : Type} (b : HarmonicBlock D) : Prop := |
| 200 | (∀ n i, ConjugateSymmetric (b.velocity n i)) ∧ ∀ n, ConjugateSymmetric (b.pressure n) |
| 201 | |
| 202 | theorem symmetric_add {D : Type} {a b : Coefficients D} |
| 203 | (ha : ConjugateSymmetric a) (hb : ConjugateSymmetric b) : |
| 204 | ConjugateSymmetric (a + b) := by |
| 205 | intro j x |
| 206 | change a (-j) x + b (-j) x = conj (a j x + b j x) |
| 207 | rw [map_add, ha j x, hb j x] |
| 208 | |
| 209 | theorem band_sum {D ι : Type} (s : Finset ι) (a : ι → Coefficients D) (N : ℕ) |
| 210 | (ha : ∀ l ∈ s, HarmonicFields.BandLimited (a l) N) : |
| 211 | HarmonicFields.BandLimited (∑ l ∈ s, a l) N := by |
| 212 | classical |
| 213 | induction s using Finset.induction_on with |
| 214 | | empty => simp [HarmonicFields.BandLimited] |
| 215 | | @insert l s hl ih => |
| 216 | rw [Finset.sum_insert hl] |
| 217 | exact (ha l (Finset.mem_insert_self _ _)).add |
| 218 | (ih (fun m hm => ha m (Finset.mem_insert_of_mem hm))) |
| 219 | |
| 220 | theorem symmetric_sum {D ι : Type} (s : Finset ι) (a : ι → Coefficients D) |
| 221 | (ha : ∀ l ∈ s, ConjugateSymmetric (a l)) : |
| 222 | ConjugateSymmetric (∑ l ∈ s, a l) := by |
| 223 | classical |
| 224 | induction s using Finset.induction_on with |
| 225 | | empty => intro j x; simp |
| 226 | | @insert l s hl ih => |
| 227 | rw [Finset.sum_insert hl] |
| 228 | exact symmetric_add (ha l (Finset.mem_insert_self _ _)) |
| 229 | (ih (fun m hm => ha m (Finset.mem_insert_of_mem hm))) |
| 230 | |
| 231 | /-- Accumulation is coefficient addition within one fixed label. Distinct |
| 232 | labels are left distinct even if their numerical carriers coincide. -/ |
| 233 | noncomputable def sumBlock {D ι : Type} (s : Finset ι) |
| 234 | (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) (b : ι → HarmonicBlock D) : |
| 235 | HarmonicBlock D where |
| 236 | velocity n i := ∑ l ∈ s, (b l).velocity n i |
| 237 | pressure n := ∑ l ∈ s, (b l).pressure n |
| 238 | frequency := k |
| 239 | phase := Φ |
| 240 | angularFrequency := kp |
| 241 | |
| 242 | theorem sumBlock_band {D ι : Type} (s : Finset ι) |
| 243 | (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) (b : ι → HarmonicBlock D) |
| 244 | (N : ℕ) (hb : ∀ l ∈ s, HarmonicBlock.BandLimited (b l) N) : |
| 245 | HarmonicBlock.BandLimited (sumBlock s k Φ kp b) N := |
| 246 | ⟨fun n i => band_sum s _ N (fun l hl => (hb l hl).1 n i), |
| 247 | fun n => band_sum s _ N (fun l hl => (hb l hl).2 n)⟩ |
| 248 | |
| 249 | theorem sumBlock_real {D ι : Type} (s : Finset ι) |
| 250 | (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) (b : ι → HarmonicBlock D) |
| 251 | (hb : ∀ l ∈ s, RealBlock (b l)) : RealBlock (sumBlock s k Φ kp b) := |
| 252 | ⟨fun n i => symmetric_sum s _ (fun l hl => (hb l hl).1 n i), |
| 253 | fun n => symmetric_sum s _ (fun l hl => (hb l hl).2 n)⟩ |
| 254 | |
| 255 | theorem sumBlock_represents {D ι : Type} (s : Finset ι) |
| 256 | (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) (b : ι → HarmonicBlock D) |
| 257 | (hk : ∀ l ∈ s, (b l).frequency = k) (hΦ : ∀ l ∈ s, (b l).phase = Φ) |
| 258 | (hkp : ∀ l ∈ s, (b l).angularFrequency = kp) : |
| 259 | (sumBlock s k Φ kp b).oscillation = ∑ l ∈ s, (b l).oscillation := by |
| 260 | classical |
| 261 | funext n p i |
| 262 | simp only [HarmonicBlock.oscillation, sumBlock, field, evaluate_eq_hom, map_sum, |
| 263 | Finset.sum_apply, Complex.re_sum] |
| 264 | apply Finset.sum_congr rfl |
| 265 | intro l hl |
| 266 | rw [hk l hl, hΦ l hl, hkp l hl] |
| 267 | |
| 268 | section FiniteStages |
| 269 | |
| 270 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 271 | |
| 272 | /-- Only primitive data are stored. The error field and its coefficients are |
| 273 | computed from the cutoff derivative, amplitudes, and carrier. -/ |
| 274 | structure GaussianData (D : Type) [NormedAddCommGroup D] [NormedSpace ℝ D] where |
| 275 | directions : LinearWaveBounds.GraphDirections (D × ℝ) |
| 276 | cutoff : ℕ → D × ℝ → ℝ |
| 277 | amplitude : ℕ → D × ℝ → HarmonicCalculus.ComplexVector |
| 278 | source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector |
| 279 | harmonic : ℤ |
| 280 | phase : ℕ → D × ℝ → ℝ |
| 281 | |
| 282 | noncomputable def GaussianData.error (g : GaussianData D) (k : ℕ → ℝ) : Oscillation D := |
| 283 | gaussianField g.directions g.cutoff g.amplitude g.source g.harmonic k g.phase |
| 284 | |
| 285 | noncomputable def GaussianData.block (g : GaussianData D) |
| 286 | (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : HarmonicBlock D := |
| 287 | gaussianBlock g.directions g.cutoff g.amplitude g.source g.harmonic k Φ kp |
| 288 | |
| 289 | def GaussianData.Compatible (g : GaussianData D) |
| 290 | (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : Prop := |
| 291 | (∀ n, ContDiff ℝ ∞ (g.cutoff n)) ∧ AngleIndependent g.cutoff ∧ |
| 292 | AngleIndependent g.amplitude ∧ AngleIndependent g.source ∧ |
| 293 | ∀ n x θ, k n * g.phase n (x, θ) = k n * Φ n x + (kp n : ℝ) * θ |
| 294 | |
| 295 | theorem GaussianData.block_represents (g : GaussianData D) |
| 296 | (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) (hg : g.Compatible k Φ kp) : |
| 297 | (g.block k Φ kp).oscillation = g.error k := |
| 298 | gaussianBlock_represents g.directions g.harmonic k Φ g.phase kp |
| 299 | hg.1 hg.2.1 hg.2.2.1 hg.2.2.2.1 hg.2.2.2.2 |
| 300 | |
| 301 | end FiniteStages |
| 302 | |
| 303 | section AliasStages |
| 304 | |
| 305 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 306 | |
| 307 | end AliasStages |
| 308 | |
| 309 | section AxisymmetricBase |
| 310 | |
| 311 | open ProblemStatement AxisymmetricFields |
| 312 | |
| 313 | end AxisymmetricBase |
| 314 | |
| 315 | end NavierStokes.ErrorHarmonics |