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.HarmonicWaveInteraction |
| 2 | import NavierStokes.SignedWaveUpdate |
| 3 | |
| 4 | /-! |
| 5 | # Initial primary residual classes |
| 6 | |
| 7 | The primary coefficient and its Gaussian error are the actual cutoff/curl |
| 8 | construction. The improved nonlinear bound uses the exact divergence of that |
| 9 | curl, before projecting the literal residual into its finite harmonics. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.PrimaryResidualClass |
| 15 | |
| 16 | open Set Function Filter HarmonicCalculus HarmonicFields WeightedClasses |
| 17 | open CopyAngularInvariance |
| 18 | open scoped Topology ContDiff BigOperators ComplexConjugate |
| 19 | |
| 20 | |
| 21 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 22 | |
| 23 | /-- The context's literal graph directions lifted to the explicit angle. -/ |
| 24 | noncomputable def directions (c : CorrectionState.Context D) : |
| 25 | LinearWaveBounds.GraphDirections (D × ℝ) where |
| 26 | radial := (c.operators.eR, 0) |
| 27 | auxiliary := (c.operators.vR, 0) |
| 28 | axial := (c.operators.eZ, 0) |
| 29 | angular := (0, 1) |
| 30 | slow := (c.operators.eT, 0) |
| 31 | fast := (c.operators.vT, 0) |
| 32 | radialScale := c.operators.radialFrequency |
| 33 | fastScale := c.operators.fastCoefficient |
| 34 | radialProfile := fun p => c.operators.radialProfile p.1 |
| 35 | |
| 36 | theorem directions_radial (c : CorrectionState.Context D) (n : ℕ) : |
| 37 | (directions c).radialField n = |
| 38 | HarmonicResidual.liftDirection (HarmonicResidual.contextFrame c n).radial := by |
| 39 | funext p |
| 40 | simp [directions, LinearWaveBounds.GraphDirections.radialField, |
| 41 | HarmonicResidual.liftDirection, HarmonicResidual.contextFrame, smul_smul] |
| 42 | |
| 43 | theorem directions_axial (s : StripData D) (c : CorrectionState.Context D) |
| 44 | (hε : s.epsilon = c.operators.epsilon) (n : ℕ) : |
| 45 | (directions c).axialField (HarmonicWaveInteraction.productStrip s) n = |
| 46 | HarmonicResidual.liftDirection (HarmonicResidual.contextFrame c n).axial := by |
| 47 | funext p |
| 48 | simp [directions, LinearWaveBounds.GraphDirections.axialField, |
| 49 | HarmonicResidual.liftDirection, HarmonicResidual.contextFrame, |
| 50 | HarmonicWaveInteraction.productStrip, HarmonicWaveInteraction.pullbackStrip, hε] |
| 51 | |
| 52 | theorem directions_time (s : StripData D) (c : CorrectionState.Context D) |
| 53 | (hε : s.epsilon = c.operators.epsilon) (n : ℕ) : |
| 54 | LinearWaveResidual.timeDirection ((HarmonicWaveInteraction.productStrip s).epsilon n) |
| 55 | ((directions c).fastField n) (fun _ => (directions c).slow) = |
| 56 | HarmonicResidual.liftDirection (HarmonicResidual.contextFrame c n).time := by |
| 57 | funext p |
| 58 | simp [directions, LinearWaveBounds.GraphDirections.fastField, LinearWaveResidual.timeDirection, |
| 59 | HarmonicResidual.liftDirection, HarmonicResidual.contextFrame, |
| 60 | HarmonicWaveInteraction.productStrip, HarmonicWaveInteraction.pullbackStrip, hε] |
| 61 | |
| 62 | /-- Matching concerns primitive fields, never a residual or a residual bound. -/ |
| 63 | structure Matches (s : StripData D) (c : CorrectionState.Context D) |
| 64 | (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) : Prop where |
| 65 | epsilon : s.epsilon = c.operators.epsilon |
| 66 | radius : a.radius = fun _ p => c.operators.radius p.1 |
| 67 | base : ∀ n, LinearWaveResidual.complexBase (a.radius n) (a.radialBase n) |
| 68 | (a.frequencyBase n) (a.axialBase n) = fun p => HarmonicResidual.contextBase c n p.1 |
| 69 | |
| 70 | /-- Primitive angular translation data for one primary field. -/ |
| 71 | structure AngularData (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) |
| 72 | (ψ : ℕ → D × ℝ → ℝ) : Prop where |
| 73 | radius : ∀ n, Invariant ((0 : D), 1) (a.radius n) |
| 74 | radialBase : ∀ n, Invariant ((0 : D), 1) (a.radialBase n) |
| 75 | frequencyBase : ∀ n, Invariant ((0 : D), 1) (a.frequencyBase n) |
| 76 | axialBase : ∀ n, Invariant ((0 : D), 1) (a.axialBase n) |
| 77 | phase : ∀ n, ∃ m, AffinePhase ((0 : D), 1) m (a.phase n) |
| 78 | amplitude : ∀ n, Invariant ((0 : D), 1) (a.amplitude n) |
| 79 | pressure : ∀ n, Invariant ((0 : D), 1) (a.pressure n) |
| 80 | cutoff : ∀ n, Invariant ((0 : D), 1) (ψ n) |
| 81 | |
| 82 | theorem invariant_fst {E : Type} (f : D → E) : |
| 83 | Invariant ((0 : D), 1) (fun p : D × ℝ => f p.1) := by |
| 84 | intro p t |
| 85 | simp |
| 86 | |
| 87 | theorem directions_radial_invariant (c : CorrectionState.Context D) (n : ℕ) : |
| 88 | Invariant ((0 : D), 1) ((directions c).radialField n) := by |
| 89 | rw [directions_radial] |
| 90 | exact invariant_fst (fun x => ((HarmonicResidual.contextFrame c n).radial x, (0 : ℝ))) |
| 91 | |
| 92 | theorem AngularData.corrected_amplitude {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} |
| 93 | {ψ : ℕ → D × ℝ → ℝ} (ha : AngularData a ψ) (s : StripData D) |
| 94 | (c : CorrectionState.Context D) (n : ℕ) : |
| 95 | Invariant ((0 : D), 1) |
| 96 | ((a.corrected (HarmonicWaveInteraction.productStrip s) (directions c) ψ).amplitude n) := |
| 97 | corrected_amplitude_invariant ψ ha.radius (directions_radial_invariant c) |
| 98 | (fun _ => Invariant.const _) ha.phase ha.amplitude ha.cutoff n |
| 99 | |
| 100 | theorem AngularData.corrected_pressure {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} |
| 101 | {ψ : ℕ → D × ℝ → ℝ} (ha : AngularData a ψ) (s : StripData D) |
| 102 | (c : CorrectionState.Context D) (n : ℕ) : |
| 103 | Invariant ((0 : D), 1) |
| 104 | ((a.corrected (HarmonicWaveInteraction.productStrip s) (directions c) ψ).pressure n) := |
| 105 | corrected_pressure_invariant ψ ha.pressure ha.cutoff n |
| 106 | |
| 107 | section InvariantOperators |
| 108 | |
| 109 | variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 110 | {θ : X} {R b F G : X → ℝ} {Vr Vθ Vz Vf Vs : X → X} |
| 111 | {Φ : X → ℝ} {m : ℝ} {a : X → ComplexVector} {p : X → ℂ} |
| 112 | |
| 113 | theorem principal_invariant (hR : Invariant θ R) (hF : Invariant θ F) |
| 114 | (hG : Invariant θ G) (hr : Invariant θ Vr) (hθ : Invariant θ Vθ) |
| 115 | (hz : Invariant θ Vz) (hf : Invariant θ Vf) |
| 116 | (hΦ : AffinePhase θ m Φ) (ha : Invariant θ a) (hp : Invariant θ p) |
| 117 | (ε k : ℝ) : Invariant θ (LinearWaveResidual.principal ε k R F G Vr Vθ Vz Vf Φ a p) := by |
| 118 | have hN := phaseNormal_invariant hR hr hθ hz hΦ |
| 119 | intro x t |
| 120 | funext i |
| 121 | simp only [LinearWaveResidual.principal, LinearWaveResidual.shear, |
| 122 | (ha.component i).along hf x t, hF.along hr x t, hG.along hr x t, |
| 123 | hN x t, hR x t, hF x t, ha x t, hp x t] |
| 124 | |
| 125 | theorem remainder_invariant (hR : Invariant θ R) (hb : Invariant θ b) |
| 126 | (hF : Invariant θ F) (hG : Invariant θ G) (hr : Invariant θ Vr) |
| 127 | (hθ : Invariant θ Vθ) (hz : Invariant θ Vz) (hf : Invariant θ Vf) |
| 128 | (hs : Invariant θ Vs) (hΦ : AffinePhase θ m Φ) (ha : Invariant θ a) |
| 129 | (hp : Invariant θ p) (ε k : ℝ) : |
| 130 | Invariant θ (LinearWaveResidual.remainder ε k R b F G Vr Vθ Vz Vf Vs Φ a p) := by |
| 131 | have hN := phaseNormal_invariant hR hr hθ hz hΦ |
| 132 | have hB := base_invariant hR hb hF hG |
| 133 | have ht : Invariant θ (LinearWaveResidual.timeDirection ε Vf Vs) := |
| 134 | hf.map₂ hs (fun v w => v - ε • w) |
| 135 | intro x t |
| 136 | funext i |
| 137 | simp only [LinearWaveResidual.remainder, LinearWaveResidual.slowTransport, |
| 138 | LinearWaveResidual.materialPhaseDefect, LinearWaveResidual.baseDerivativeRemainder, |
| 139 | LinearWaveResidual.strippedPressureGradient, LinearWaveResidual.viscousRemainder, |
| 140 | (ha.component i).along hs x t, (ha.component i).along hr x t, |
| 141 | (ha.component i).along hz x t, ((ha.component i).along hr).along hr x t, |
| 142 | ((ha.component i).along hz).along hz x t, hΦ.along_invariant ht x t, |
| 143 | hΦ.along_invariant hr x t, hΦ.along_invariant hθ x t, hΦ.along_invariant hz x t, |
| 144 | hb.along hr x t, (hB.component i).along hz x t, hp.along hr x t, hp.along hz x t, |
| 145 | (hN.map (fun N => N 0)).along hr x t, (hN.map (fun N => N 2)).along hz x t, |
| 146 | hR x t, hb x t, hF x t, hG x t, hN x t, ha x t] |
| 147 | |
| 148 | end InvariantOperators |
| 149 | |
| 150 | theorem AngularData.constructedGood {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} |
| 151 | {ψ : ℕ → D × ℝ → ℝ} (ha : AngularData a ψ) (s : StripData D) |
| 152 | (c : CorrectionState.Context D) (n : ℕ) : |
| 153 | Invariant ((0 : D), 1) |
| 154 | (a.constructedGood (HarmonicWaveInteraction.productStrip s) (directions c) ψ n) := by |
| 155 | obtain ⟨m, hm⟩ := ha.phase n |
| 156 | have hc : Invariant ((0 : D), 1) |
| 157 | (((a.withCutoff ψ).curlCorrection (HarmonicWaveInteraction.productStrip s) (directions c)) n) := |
| 158 | curlRemainder_invariant (ha.radius n) (directions_radial_invariant c n) |
| 159 | (Invariant.const _) (Invariant.const _) |
| 160 | (coefficient_invariant (ha.radius n) (directions_radial_invariant c n) |
| 161 | (Invariant.const _) (Invariant.const _) hm |
| 162 | ((ha.cutoff n).map₂ (ha.amplitude n) (fun r v => r • v))) (a.frequency n) |
| 163 | exact (principal_invariant (ha.radius n) (ha.frequencyBase n) (ha.axialBase n) |
| 164 | (directions_radial_invariant c n) (Invariant.const _) (Invariant.const _) |
| 165 | (Invariant.const _) hm hc (Invariant.const _) _ _).map₂ |
| 166 | (remainder_invariant (ha.radius n) (ha.radialBase n) (ha.frequencyBase n) (ha.axialBase n) |
| 167 | (directions_radial_invariant c n) (Invariant.const _) (Invariant.const _) |
| 168 | (Invariant.const _) (Invariant.const _) hm (ha.corrected_amplitude s c n) |
| 169 | (ha.corrected_pressure s c n) _ _) (· + ·) |
| 170 | |
| 171 | /-- Quantitative and geometric inputs concern the primitive primary wave. |
| 172 | In particular neither a good-residual class nor a residual identity is a field. -/ |
| 173 | structure Inputs (s : StripData D) (P : ℕ → D → ℝ) (κ : ℝ) |
| 174 | (c : CorrectionState.Context D) (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) |
| 175 | (ψ : ℕ → D × ℝ → ℝ) (kp : ℕ → ℤ) : Prop where |
| 176 | matching : Matches s c a |
| 177 | operators : MeanIncrementBounds.OperatorBounds s c.operators κ |
| 178 | loss_le : κ ≤ 1 / 10 |
| 179 | coefficients : LinearWaveBounds.InputBounds (HarmonicWaveInteraction.productStrip s) |
| 180 | (fun n p => P n p.1) (1 / 2) κ (directions c) a |
| 181 | cutoff : UnweightedClass (HarmonicWaveInteraction.productStrip s) 0 ψ |
| 182 | angular : AngularData a ψ |
| 183 | phase_smooth : ∀ n, ContDiffOn ℝ ∞ (a.phase n) (HarmonicWaveInteraction.productStrip s).domain |
| 184 | phase_split : ∀ n x θ, a.frequency n * a.phase n (x, θ) = |
| 185 | a.frequency n * a.phase n (x, 0) + (kp n : ℝ) * θ |
| 186 | frequency_ne : ∀ n, a.frequency n ≠ 0 |
| 187 | angular_ne : ∀ n, kp n ≠ 0 |
| 188 | normal_jets : PhaseJetBounds.PolynomialJets |
| 189 | (CurlClassBounds.phaseDomain (HarmonicWaveInteraction.productStrip s)) |
| 190 | (a.normal (HarmonicWaveInteraction.productStrip s) (directions c)) |
| 191 | normal_bounds : ∃ b M : ℝ, 0 < b ∧ |
| 192 | (∀ n p, p.1 ∈ s.domain → b ≤ ‖a.normal (HarmonicWaveInteraction.productStrip s) (directions c) n p‖) ∧ |
| 193 | (∀ n p, p.1 ∈ s.domain → ‖a.normal (HarmonicWaveInteraction.productStrip s) (directions c) n p‖ ≤ M) |
| 194 | inverse_frequency : BandBound (HarmonicWaveInteraction.productStrip s) (1 / 2) |
| 195 | (fun n => 1 / a.frequency n) |
| 196 | geometry : ∀ n, CurlClassBounds.CylindricalGeometry (HarmonicWaveInteraction.productStrip s).domain |
| 197 | (a.radius n) ((directions c).radialField n) (fun _ => (directions c).angular) |
| 198 | ((directions c).axialField (HarmonicWaveInteraction.productStrip s) n) |
| 199 | tangent : ∀ n p, p.1 ∈ s.domain → |
| 200 | normalDot (a.normal (HarmonicWaveInteraction.productStrip s) (directions c) n p) (a.amplitude n p) = 0 |
| 201 | principal_zero : ∀ n p, p.1 ∈ s.domain → ψ n p ≠ 0 → |
| 202 | a.principal (HarmonicWaveInteraction.productStrip s) (directions c) n p = 0 |
| 203 | profile_nonneg : ∀ n x, x ∈ s.domain → 0 ≤ P n x |
| 204 | profile_le_one : ∀ n x, x ∈ s.domain → P n x ≤ 1 |
| 205 | radius_pos : ∀ x ∈ s.domain, 0 < c.operators.radius x |
| 206 | |
| 207 | noncomputable def corrected (s : StripData D) (c : CorrectionState.Context D) |
| 208 | (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) (ψ : ℕ → D × ℝ → ℝ) := |
| 209 | a.corrected (HarmonicWaveInteraction.productStrip s) (directions c) ψ |
| 210 | |
| 211 | noncomputable def primaryBlock (s : StripData D) (c : CorrectionState.Context D) |
| 212 | (a : LinearWaveBounds.WaveCoefficients (D × ℝ)) (ψ : ℕ → D × ℝ → ℝ) (kp : ℕ → ℤ) := |
| 213 | SignedWaveUpdate.blockOfCoefficients (corrected s c a ψ) kp |
| 214 | |
| 215 | theorem wave_slice {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 216 | {s : StripData D} {P : ℕ → D → ℝ} {α : ℝ} {f : ℕ → D × ℝ → E} |
| 217 | (hf : WaveClass (HarmonicWaveInteraction.productStrip s) (fun n p => P n p.1) α f) : |
| 218 | WaveClass s P α (fun n x => f n (x, 0)) := |
| 219 | HarmonicWaveInteraction.class_slice (s := s) (w := fun n x => Real.sqrt (s.zeta x) * P n x) hf |
| 220 | |
| 221 | namespace Inputs |
| 222 | |
| 223 | variable {s : StripData D} {P : ℕ → D → ℝ} {κ : ℝ} {c : CorrectionState.Context D} |
| 224 | {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} {ψ : ℕ → D × ℝ → ℝ} {kp : ℕ → ℤ} |
| 225 | (h : Inputs s P κ c a ψ kp) |
| 226 | |
| 227 | include h |
| 228 | |
| 229 | theorem corrected_bounds : LinearWaveBounds.InputBounds (HarmonicWaveInteraction.productStrip s) |
| 230 | (fun n p => P n p.1) (1 / 2) κ (directions c) (corrected s c a ψ) := by |
| 231 | obtain ⟨b, M, hb, hlo, hhi⟩ := h.normal_bounds |
| 232 | have hc := (h.coefficients.with_cutoff h.cutoff).curlCorrection_class h.matching.radius |
| 233 | h.normal_jets hb hlo hhi h.inverse_frequency |
| 234 | exact (h.coefficients.with_cutoff h.cutoff).add_curl_amplitude (by linarith [h.loss_le]) |
| 235 | (fun i => CurlClassBounds.class_component hc i) |
| 236 | |
| 237 | end Inputs |
| 238 | |
| 239 | noncomputable def realProjection : ℂ →L[ℝ] ℂ := Complex.ofRealCLM.comp Complex.reCLM |
| 240 | |
| 241 | @[simp] theorem realProjection_apply (z : ℂ) : realProjection z = (z.re : ℂ) := rfl |
| 242 | |
| 243 | theorem divergence_map {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 244 | (L : ℂ →L[ℝ] ℂ) (R : X → ℝ) (Vr Vθ Vz : X → X) |
| 245 | {v : X → ComplexVector} {x : X} |
| 246 | (hv : ∀ i, DifferentiableAt ℝ (fun y => v y i) x) : |
| 247 | cylindricalDivergence R Vr Vθ Vz (fun y i => L (v y i)) x = |
| 248 | L (cylindricalDivergence R Vr Vθ Vz v x) := by |
| 249 | simp only [cylindricalDivergence, LinearWaveResidual.along_map L _ (hv _), map_add, map_smul] |
| 250 | |
| 251 | theorem pair_field_of_invariant {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 252 | {f : X × ℝ → ℂ} {Φ : X × ℝ → ℝ} (k : ℝ) (kp : ℤ) |
| 253 | (hf : Invariant ((0 : X), 1) f) |
| 254 | (hΦ : ∀ x θ, k * Φ (x, θ) = k * Φ (x, 0) + (kp : ℝ) * θ) (p : X × ℝ) : |
| 255 | field (ErrorHarmonics.conjugatePair 1 (fun x => f (x, 0))) k |
| 256 | (fun x => Φ (x, 0)) kp p = realProjection (mode k Φ f p) := by |
| 257 | rw [ErrorHarmonics.field_conjugatePair, ← hΦ p.1 p.2] |
| 258 | have hc := character_eq_carrier 1 k Φ p |
| 259 | simp only [Int.cast_one, mul_one] at hc |
| 260 | rw [hc] |
| 261 | change ((f (p.1, 0) * carrier k Φ p).re : ℂ) = ((f p * carrier k Φ p).re : ℂ) |
| 262 | rw [invariant_eq_zeroSlice hf p.1 p.2] |
| 263 | |
| 264 | namespace Inputs |
| 265 | |
| 266 | variable {s : StripData D} {P : ℕ → D → ℝ} {κ : ℝ} {c : CorrectionState.Context D} |
| 267 | {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} {ψ : ℕ → D × ℝ → ℝ} {kp : ℕ → ℤ} |
| 268 | (h : Inputs s P κ c a ψ kp) |
| 269 | |
| 270 | include h |
| 271 | |
| 272 | theorem pressure_smooth (n : ℕ) : |
| 273 | HarmonicResidual.SmoothCoefficients s.domain ((primaryBlock s c a ψ kp).pressure n) := by |
| 274 | intro j |
| 275 | exact (SignedWaveUpdate.conjugatePair_class |
| 276 | (wave_slice h.corrected_bounds.pressure) j).smooth n |
| 277 | |
| 278 | end Inputs |
| 279 | |
| 280 | namespace Inputs |
| 281 | |
| 282 | variable {s : StripData D} {P : ℕ → D → ℝ} {κ : ℝ} {c : CorrectionState.Context D} |
| 283 | {a : LinearWaveBounds.WaveCoefficients (D × ℝ)} {ψ : ℕ → D × ℝ → ℝ} {kp : ℕ → ℤ} |
| 284 | (h : Inputs s P κ c a ψ kp) |
| 285 | |
| 286 | include h |
| 287 | |
| 288 | end Inputs |
| 289 | |
| 290 | end NavierStokes.PrimaryResidualClass |