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 | @[simp] theorem residualBlock_erase (c : Context D) (s : State D) (axis : MeanVector D) |
| 138 | (b : HarmonicBlock D) (gaussian aliasCoeffs : HarmonicResidual.BlockCoefficients D) : |
| 139 | HarmonicResidual.residualBlock c (eraseAxisymmetricAlias s axis) b gaussian aliasCoeffs = |
| 140 | HarmonicResidual.residualBlock c s b gaussian aliasCoeffs := rfl |
| 141 | |
| 142 | @[simp] theorem stateMeanCoefficientValue_erase {ι : Type*} (labels : ℕ → Finset ι) |
| 143 | (blocks : ι → HarmonicBlock D) |
| 144 | (gaussian aliasCoeffs : ι → HarmonicResidual.BlockCoefficients D) |
| 145 | (c : Context D) (s : State D) (axis : MeanVector D) : |
| 146 | HarmonicResidual.stateMeanCoefficientValue labels blocks gaussian aliasCoeffs c |
| 147 | (eraseAxisymmetricAlias s axis) = |
| 148 | HarmonicResidual.stateMeanCoefficientValue labels blocks gaussian aliasCoeffs c s := rfl |
| 149 | |
| 150 | end NavierStokes.AxisymmetricResidualGrouping |