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.HarmonicResidual |
| 2 | |
| 3 | /-! |
| 4 | # Grouping the actual residual with an independent axisymmetric alias |
| 5 | |
| 6 | The alias removed from the good residual may contain an arbitrary function |
| 7 | of the non-angular variables in addition to the finite harmonic label sums. |
| 8 | Subtracting that function changes the angular mean by the same amount and |
| 9 | leaves the nonconstant residual unchanged. The needed angular integrability |
| 10 | is derived from the represented finite harmonic fields, with no regularity |
| 11 | or support assumption on the independent alias. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.AxisymmetricResidualGrouping |
| 17 | |
| 18 | open Set Function Filter MeasureTheory CorrectionState |
| 19 | open scoped Topology ContDiff BigOperators |
| 20 | |
| 21 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 22 | |
| 23 | /-- Lift an arbitrary mean vector to a field constant in the angular variable. -/ |
| 24 | noncomputable def axisymmetricLift (a : MeanVector D) : Oscillation D := |
| 25 | fun n x => a n x.1 |
| 26 | |
| 27 | /-- Add an independent alias without changing any velocity or pressure field. -/ |
| 28 | noncomputable def addAxisymmetricAlias (s : State D) (a : MeanVector D) : State D := |
| 29 | { s with errors := { s.errors with aliasError := s.errors.aliasError + axisymmetricLift a } } |
| 30 | |
| 31 | /-- Remove precisely the specified independent alias from the stored errors. -/ |
| 32 | noncomputable def eraseAxisymmetricAlias (s : State D) (a : MeanVector D) : State D := |
| 33 | { s with errors := { s.errors with aliasError := s.errors.aliasError - axisymmetricLift a } } |
| 34 | |
| 35 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 36 | @[simp] theorem add_eraseAxisymmetricAlias (s : State D) (a : MeanVector D) : |
| 37 | addAxisymmetricAlias (eraseAxisymmetricAlias s a) a = s := by |
| 38 | simp [addAxisymmetricAlias, eraseAxisymmetricAlias] |
| 39 | |
| 40 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 41 | @[simp] theorem erase_addAxisymmetricAlias (s : State D) (a : MeanVector D) : |
| 42 | eraseAxisymmetricAlias (addAxisymmetricAlias s a) a = s := by |
| 43 | simp [addAxisymmetricAlias, eraseAxisymmetricAlias] |
| 44 | |
| 45 | @[simp] theorem stateFullResidual_addAxisymmetricAlias (c : Context D) (s : State D) |
| 46 | (a : MeanVector D) : |
| 47 | HarmonicResidual.stateFullResidual c (addAxisymmetricAlias s a) = |
| 48 | HarmonicResidual.stateFullResidual c s := rfl |
| 49 | |
| 50 | @[simp] theorem stateFullResidual_eraseAxisymmetricAlias (c : Context D) (s : State D) |
| 51 | (a : MeanVector D) : |
| 52 | HarmonicResidual.stateFullResidual c (eraseAxisymmetricAlias s a) = |
| 53 | HarmonicResidual.stateFullResidual c s := rfl |
| 54 | |
| 55 | theorem stateGoodResidual_addAxisymmetricAlias (c : Context D) (s : State D) |
| 56 | (a : MeanVector D) (n : ℕ) (x : D × ℝ) (i : Fin 3) : |
| 57 | HarmonicResidual.stateGoodResidual c (addAxisymmetricAlias s a) n x i = |
| 58 | HarmonicResidual.stateGoodResidual c s n x i - a n x.1 i := by |
| 59 | simp only [HarmonicResidual.stateGoodResidual, Pi.sub_apply] |
| 60 | rw [stateFullResidual_addAxisymmetricAlias] |
| 61 | simp only [ExcludedErrors.total, |
| 62 | addAxisymmetricAlias, axisymmetricLift, Pi.add_apply] |
| 63 | ring |
| 64 | |
| 65 | theorem stateGoodResidual_eraseAxisymmetricAlias (c : Context D) (s : State D) |
| 66 | (a : MeanVector D) (n : ℕ) (x : D × ℝ) (i : Fin 3) : |
| 67 | HarmonicResidual.stateGoodResidual c (eraseAxisymmetricAlias s a) n x i = |
| 68 | HarmonicResidual.stateGoodResidual c s n x i + a n x.1 i := by |
| 69 | simp only [HarmonicResidual.stateGoodResidual, Pi.sub_apply] |
| 70 | rw [stateFullResidual_eraseAxisymmetricAlias] |
| 71 | simp only [ExcludedErrors.total, |
| 72 | eraseAxisymmetricAlias, axisymmetricLift, Pi.add_apply, Pi.sub_apply] |
| 73 | ring |
| 74 | |
| 75 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 76 | /-- Angular integration needs integrability only on this one fiber. -/ |
| 77 | theorem angularAverage_sub_axisymmetric (f : OscillatoryScalar D) (a : ScalarField D) |
| 78 | (n : ℕ) (x : D) |
| 79 | (hf : IntervalIntegrable (fun θ => f n (x, θ)) volume 0 (2 * Real.pi)) : |
| 80 | angularAverage (fun m y => f m y - a m y.1) n x = |
| 81 | angularAverage f n x - a n x := by |
| 82 | simp only [angularAverage] |
| 83 | rw [intervalIntegral.integral_sub hf intervalIntegrable_const, |
| 84 | intervalIntegral.integral_const] |
| 85 | simp only [sub_zero, smul_eq_mul, sub_div] |
| 86 | field_simp [Real.pi_ne_zero] |
| 87 | |
| 88 | /-- Adding an arbitrary axisymmetric alias leaves the nonconstant residual |
| 89 | unchanged on every angular fiber on which the original residual is integrable. -/ |
| 90 | theorem stateGoodWaveResidual_addAxisymmetricAlias (c : Context D) (s : State D) |
| 91 | (a : MeanVector D) (n : ℕ) (x : D × ℝ) (i : Fin 3) |
| 92 | (hf : IntervalIntegrable |
| 93 | (fun θ => HarmonicResidual.stateGoodResidual c s n (x.1, θ) i) |
| 94 | volume 0 (2 * Real.pi)) : |
| 95 | HarmonicResidual.stateGoodWaveResidual c (addAxisymmetricAlias s a) n x i = |
| 96 | HarmonicResidual.stateGoodWaveResidual c s n x i := by |
| 97 | simp only [HarmonicResidual.stateGoodWaveResidual] |
| 98 | simp_rw [stateGoodResidual_addAxisymmetricAlias] |
| 99 | rw [angularAverage_sub_axisymmetric |
| 100 | (fun m y => HarmonicResidual.stateGoodResidual c s m y i) |
| 101 | (fun m y => a m y i) n x.1 hf] |
| 102 | ring |
| 103 | |
| 104 | /-- The finite label representation keeps the independent zero mode explicit. -/ |
| 105 | structure Representation {ι : Type*} (labels : ℕ → Finset ι) |
| 106 | (blocks : ι → HarmonicBlock D) |
| 107 | (gaussianCoeffs aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D) |
| 108 | (s : State D) (axis : MeanVector D) : Prop where |
| 109 | velocity : ∀ n x i, s.oscillation n x i = ∑ l ∈ labels n, (blocks l).oscillation n x i |
| 110 | pressure : ∀ n x, s.oscillatoryPressure n x = |
| 111 | ∑ l ∈ labels n, (blocks l).oscillatoryPressure n x |
| 112 | gaussian : ∀ n x i, s.errors.gaussian n x i = |
| 113 | ∑ l ∈ labels n, |
| 114 | ((HarmonicResidual.ofBlock (blocks l) (gaussianCoeffs l) (aliasCoeffs l) n).gaussianField x i).re |
| 115 | aliasError : ∀ n x i, s.errors.aliasError n x i = |
| 116 | (∑ l ∈ labels n, |
| 117 | ((HarmonicResidual.ofBlock (blocks l) (gaussianCoeffs l) (aliasCoeffs l) n).aliasField x i).re) + |
| 118 | axis n x.1 i |
| 119 | |
| 120 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 121 | theorem Representation.erase {ι : Type*} {labels : ℕ → Finset ι} |
| 122 | {blocks : ι → HarmonicBlock D} |
| 123 | {gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D} |
| 124 | {s : State D} {axis : MeanVector D} |
| 125 | (h : Representation labels blocks gaussian aliasCoeffs s axis) : |
| 126 | HarmonicResidual.BlockRepresentation labels blocks gaussian aliasCoeffs |
| 127 | (eraseAxisymmetricAlias s axis) where |
| 128 | velocity := h.velocity |
| 129 | pressure := h.pressure |
| 130 | gaussian := h.gaussian |
| 131 | aliasError := by |
| 132 | intro n x i |
| 133 | change s.errors.aliasError n x i - axis n x.1 i = _ |
| 134 | rw [h.aliasError] |
| 135 | exact add_sub_cancel_right _ _ |
| 136 | |
| 137 | theorem extractionRegular_erase {ι : Type*} {U : Set D} {c : Context D} {s : State D} |
| 138 | {labels : ℕ → Finset ι} {blocks : ι → HarmonicBlock D} |
| 139 | {gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D} {n : ℕ} |
| 140 | (h : HarmonicResidual.ExtractionRegular U c s labels blocks gaussian aliasCoeffs n) |
| 141 | (axis : MeanVector D) : |
| 142 | HarmonicResidual.ExtractionRegular U c (eraseAxisymmetricAlias s axis) |
| 143 | labels blocks gaussian aliasCoeffs n := |
| 144 | ⟨h.frame, h.base, h.mean, h.pressure, h.blocks, h.gaussian, h.aliasError, |
| 145 | h.disjoint, h.angular_nonzero⟩ |
| 146 | |
| 147 | @[simp] theorem residualBlock_erase (c : Context D) (s : State D) (axis : MeanVector D) |
| 148 | (b : HarmonicBlock D) (gaussian aliasCoeffs : HarmonicResidual.BlockCoefficients D) : |
| 149 | HarmonicResidual.residualBlock c (eraseAxisymmetricAlias s axis) b gaussian aliasCoeffs = |
| 150 | HarmonicResidual.residualBlock c s b gaussian aliasCoeffs := rfl |
| 151 | |
| 152 | @[simp] theorem stateMeanCoefficientValue_erase {ι : Type*} (labels : ℕ → Finset ι) |
| 153 | (blocks : ι → HarmonicBlock D) |
| 154 | (gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D) |
| 155 | (c : Context D) (s : State D) (axis : MeanVector D) : |
| 156 | HarmonicResidual.stateMeanCoefficientValue labels blocks gaussian aliasCoeffs c |
| 157 | (eraseAxisymmetricAlias s axis) = |
| 158 | HarmonicResidual.stateMeanCoefficientValue labels blocks gaussian aliasCoeffs c s := rfl |
| 159 | |
| 160 | /-- The existing finite harmonic representation implies continuity in the |
| 161 | angular variable even when the independent base error is not regular. -/ |
| 162 | theorem represented_goodResidual_angular_continuous {ι : Type*} {U : Set D} |
| 163 | (hU : IsOpen U) {c : Context D} {s : State D} {labels : ℕ → Finset ι} |
| 164 | {blocks : ι → HarmonicBlock D} |
| 165 | {gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D} |
| 166 | (hrep : HarmonicResidual.BlockRepresentation labels blocks gaussian aliasCoeffs s) {n : ℕ} |
| 167 | (h : HarmonicResidual.ExtractionRegular U c s labels blocks gaussian aliasCoeffs n) |
| 168 | {x : D} (hx : x ∈ U) (i : Fin 3) : |
| 169 | Continuous (fun θ => HarmonicResidual.stateGoodResidual c s n (x, θ) i) := by |
| 170 | let data := fun l => HarmonicResidual.ofBlock (blocks l) (gaussian l) (aliasCoeffs l) n |
| 171 | have he : (fun θ => HarmonicResidual.stateGoodResidual c s n (x, θ) i) = |
| 172 | fun θ => (HarmonicResidual.meanCoefficients (HarmonicResidual.contextFrame c n) |
| 173 | (HarmonicResidual.contextBase c n) (HarmonicResidual.stateMean s n) |
| 174 | (fun y => (s.pressure n y : ℂ)) i 0 x).re + |
| 175 | HarmonicResidual.contextVirtual c n x i + |
| 176 | ∑ l ∈ labels n, (HarmonicFields.field |
| 177 | ((data l).residualCoefficients (HarmonicResidual.contextFrame c n) |
| 178 | (HarmonicResidual.contextBase c n) (HarmonicResidual.stateMean s n) i) |
| 179 | (data l).frequency (data l).phase (data l).angularFrequency (x, θ)).re := by |
| 180 | funext θ |
| 181 | rw [hrep.goodResidual_eq c n (x, θ) i] |
| 182 | exact HarmonicResidual.goodResidual_grouped (labels n) data hU h.frame _ _ _ _ |
| 183 | h.base h.mean (Complex.ofRealCLM.contDiff.comp_contDiffOn h.pressure) |
| 184 | h.blocks h.dataDisjoint ⟨hx, mem_univ θ⟩ i |
| 185 | rw [he] |
| 186 | exact continuous_const.add (continuous_finsetSum (labels n) (fun l _ => |
| 187 | Complex.continuous_re.comp (HarmonicFields.field_angular_continuous _ _ _ _ _))) |
| 188 | |
| 189 | /-- An arbitrary independent alias does not disturb angular continuity. -/ |
| 190 | theorem Representation.goodResidual_angular_continuous {ι : Type*} {U : Set D} |
| 191 | (hU : IsOpen U) {c : Context D} {s : State D} {labels : ℕ → Finset ι} |
| 192 | {blocks : ι → HarmonicBlock D} |
| 193 | {gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D} |
| 194 | {axis : MeanVector D} |
| 195 | (hrep : Representation labels blocks gaussian aliasCoeffs s axis) {n : ℕ} |
| 196 | (h : HarmonicResidual.ExtractionRegular U c s labels blocks gaussian aliasCoeffs n) |
| 197 | {x : D} (hx : x ∈ U) (i : Fin 3) : |
| 198 | Continuous (fun θ => HarmonicResidual.stateGoodResidual c s n (x, θ) i) := by |
| 199 | have hc := represented_goodResidual_angular_continuous hU hrep.erase |
| 200 | (extractionRegular_erase h axis) hx i |
| 201 | have he : (fun θ => HarmonicResidual.stateGoodResidual c s n (x, θ) i) = |
| 202 | fun θ => HarmonicResidual.stateGoodResidual c (eraseAxisymmetricAlias s axis) |
| 203 | n (x, θ) i - axis n x i := by |
| 204 | funext θ |
| 205 | rw [stateGoodResidual_eraseAxisymmetricAlias] |
| 206 | exact (add_sub_cancel_right _ _).symm |
| 207 | rw [he] |
| 208 | exact hc.sub continuous_const |
| 209 | |
| 210 | /-- Actual nonconstant residual grouping, with no smoothness or support |
| 211 | assumption on the independent axisymmetric alias. -/ |
| 212 | theorem stateGoodWaveResidual_grouped {ι : Type*} {U : Set D} (hU : IsOpen U) |
| 213 | {c : Context D} {s : State D} {labels : ℕ → Finset ι} |
| 214 | {blocks : ι → HarmonicBlock D} |
| 215 | {gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D} |
| 216 | {axis : MeanVector D} |
| 217 | (hrep : Representation labels blocks gaussian aliasCoeffs s axis) {n : ℕ} |
| 218 | (h : HarmonicResidual.ExtractionRegular U c s labels blocks gaussian aliasCoeffs n) |
| 219 | {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : |
| 220 | HarmonicResidual.stateGoodWaveResidual c s n x i = |
| 221 | ∑ l ∈ labels n, |
| 222 | (HarmonicResidual.residualBlock c s (blocks l) (gaussian l) (aliasCoeffs l)).oscillation n x i := by |
| 223 | have hr := extractionRegular_erase h axis |
| 224 | have hc := represented_goodResidual_angular_continuous hU hrep.erase hr hx.1 i |
| 225 | have he := stateGoodWaveResidual_addAxisymmetricAlias c (eraseAxisymmetricAlias s axis) |
| 226 | axis n x i (hc.intervalIntegrable _ _) |
| 227 | rw [add_eraseAxisymmetricAlias] at he |
| 228 | rw [he, HarmonicResidual.stateGoodWaveResidual_grouped hU hrep.erase hr hx i] |
| 229 | rfl |
| 230 | |
| 231 | /-- The independent alias changes the actual zero mode by its negative. -/ |
| 232 | theorem stateGoodResidual_angularAverage {ι : Type*} {U : Set D} (hU : IsOpen U) |
| 233 | {c : Context D} {s : State D} {labels : ℕ → Finset ι} |
| 234 | {blocks : ι → HarmonicBlock D} |
| 235 | {gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D} |
| 236 | {axis : MeanVector D} |
| 237 | (hrep : Representation labels blocks gaussian aliasCoeffs s axis) {n : ℕ} |
| 238 | (h : HarmonicResidual.ExtractionRegular U c s labels blocks gaussian aliasCoeffs n) |
| 239 | {x : D} (hx : x ∈ U) (i : Fin 3) : |
| 240 | angularAverage (fun m y => HarmonicResidual.stateGoodResidual c s m y i) n x = |
| 241 | HarmonicResidual.stateMeanCoefficientValue labels blocks gaussian aliasCoeffs |
| 242 | c s n x i - axis n x i := by |
| 243 | have hr := extractionRegular_erase h axis |
| 244 | have hc := represented_goodResidual_angular_continuous hU hrep.erase hr hx i |
| 245 | have he := angularAverage_sub_axisymmetric |
| 246 | (fun m y => HarmonicResidual.stateGoodResidual c (eraseAxisymmetricAlias s axis) m y i) |
| 247 | (fun m y => axis m y i) n x (hc.intervalIntegrable _ _) |
| 248 | have hb : (fun m y => HarmonicResidual.stateGoodResidual c |
| 249 | (eraseAxisymmetricAlias s axis) m y i - axis m y.1 i) = |
| 250 | (fun m y => HarmonicResidual.stateGoodResidual c s m y i) := by |
| 251 | funext m y |
| 252 | rw [stateGoodResidual_eraseAxisymmetricAlias] |
| 253 | exact add_sub_cancel_right _ _ |
| 254 | rw [hb, ← HarmonicResidual.stateMeanCoefficientValue_eq_average hU hrep.erase hr hx i, |
| 255 | stateMeanCoefficientValue_erase] at he |
| 256 | exact he |
| 257 | |
| 258 | /-- The complete residual retains the actual excluded errors and the corrected |
| 259 | mean mode. In particular the independent alias is never silently discarded. -/ |
| 260 | theorem stateFullResidual_reconstructed {ι : Type*} {U : Set D} (hU : IsOpen U) |
| 261 | {c : Context D} {s : State D} {labels : ℕ → Finset ι} |
| 262 | {blocks : ι → HarmonicBlock D} |
| 263 | {gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D} |
| 264 | {axis : MeanVector D} |
| 265 | (hrep : Representation labels blocks gaussian aliasCoeffs s axis) {n : ℕ} |
| 266 | (h : HarmonicResidual.ExtractionRegular U c s labels blocks gaussian aliasCoeffs n) |
| 267 | {x : D × ℝ} (hx : x ∈ HarmonicResidual.liftDomain U) (i : Fin 3) : |
| 268 | HarmonicResidual.stateFullResidual c s n x i = |
| 269 | (∑ l ∈ labels n, |
| 270 | (HarmonicResidual.residualBlock c s (blocks l) (gaussian l) (aliasCoeffs l)).oscillation n x i) + |
| 271 | (HarmonicResidual.stateMeanCoefficientValue labels blocks gaussian aliasCoeffs |
| 272 | c s n x.1 i - axis n x.1 i) + s.errors.total n x i := by |
| 273 | have he := stateGoodWaveResidual_grouped hU hrep h hx i |
| 274 | simp only [HarmonicResidual.stateGoodWaveResidual] at he |
| 275 | rw [stateGoodResidual_angularAverage hU hrep h hx.1 i] at he |
| 276 | simp only [HarmonicResidual.stateGoodResidual, Pi.sub_apply] at he |
| 277 | linarith |
| 278 | |
| 279 | end NavierStokes.AxisymmetricResidualGrouping |