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.GaugeDebtIncrement |
| 2 | import NavierStokes.ParametricFlatFactor |
| 3 | |
| 4 | /-! |
| 5 | # Regularity of covariances of the actual harmonic state |
| 6 | |
| 7 | Finite harmonic fields are assembled before taking their actual angular |
| 8 | integral. Smoothness of that integral follows from local compact |
| 9 | domination of its genuine parameter derivatives. No covariance |
| 10 | regularity or covariance formula is an input. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.WaveStateRegularity |
| 16 | |
| 17 | open Set Function Filter MeasureTheory CorrectionState HarmonicFields |
| 18 | open scoped Topology ContDiff BigOperators Interval |
| 19 | |
| 20 | |
| 21 | variable {D : Type} {ι : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 22 | |
| 23 | noncomputable def AngularSmooth (Ω : Set D) (u : Oscillation D) : Prop := |
| 24 | ∀ n i, ContDiffOn ℝ ∞ (fun p => u n p i) (HarmonicResidual.liftDomain Ω) |
| 25 | |
| 26 | theorem AngularSmooth.add {Ω : Set D} {u v : Oscillation D} |
| 27 | (hu : AngularSmooth Ω u) (hv : AngularSmooth Ω v) : AngularSmooth Ω (u + v) := |
| 28 | fun n i => (hu n i).add (hv n i) |
| 29 | |
| 30 | /-- Joint local smoothness gives continuous actual parameter jets. |
| 31 | Compactness of the angular interval then supplies their local majorants. -/ |
| 32 | theorem compactIntegral_smooth [ProperSpace D] {Ω : Set D} (hΩ : IsOpen Ω) |
| 33 | {F : D × ℝ → ℝ} (hF : ContDiffOn ℝ ∞ F (HarmonicResidual.liftDomain Ω)) |
| 34 | (a b : ℝ) (hab : a ≤ b) : |
| 35 | ContDiffOn ℝ ∞ (fun x => ∫ θ in a..b, F (x, θ)) Ω := by |
| 36 | apply SmoothParameterIntegral.contDiffOn_intervalIntegral_of_continuous_jet hΩ hab |
| 37 | · intro θ _ |
| 38 | exact hF.comp (contDiffOn_id.prodMk contDiffOn_const) (fun x hx => ⟨hx, Set.mem_univ θ⟩) |
| 39 | · intro k |
| 40 | rintro ⟨x, θ⟩ hp |
| 41 | have hAt : ContDiffAt ℝ ∞ F (x, θ) := |
| 42 | hF.contDiffAt ((HarmonicResidual.liftDomain_open hΩ).mem_nhds ⟨hp.1, Set.mem_univ θ⟩) |
| 43 | have hSwap : ContDiffAt ℝ ∞ (Function.uncurry (fun θ x => F (x, θ))) (θ, x) := |
| 44 | hAt.comp (θ, x) (contDiffAt_snd.prodMk contDiffAt_fst) |
| 45 | have hj := ParametricFlatFactor.contDiffAt_partial_iteratedFDeriv |
| 46 | (fun θ x => F (x, θ)) k θ x hSwap |
| 47 | exact (hj.comp (x, θ) (contDiffAt_snd.prodMk contDiffAt_fst)).continuousAt.continuousWithinAt |
| 48 | |
| 49 | theorem angularAverage_smooth [ProperSpace D] {Ω : Set D} (hΩ : IsOpen Ω) |
| 50 | {f : OscillatoryScalar D} |
| 51 | (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (HarmonicResidual.liftDomain Ω)) : |
| 52 | MeanIncrementBounds.SmoothOn Ω (angularAverage f) := by |
| 53 | intro n |
| 54 | exact (compactIntegral_smooth hΩ (hf n) 0 (2 * Real.pi) (by positivity)).div_const (2 * Real.pi) |
| 55 | |
| 56 | theorem bilinearCovariance_smooth [ProperSpace D] {Ω : Set D} (hΩ : IsOpen Ω) |
| 57 | {u v : Oscillation D} (hu : AngularSmooth Ω u) (hv : AngularSmooth Ω v) (i j : Fin 3) : |
| 58 | MeanIncrementBounds.SmoothOn Ω (bilinearCovariance u v i j) := |
| 59 | angularAverage_smooth hΩ (fun n => (hu n i).mul (hv n j)) |
| 60 | |
| 61 | theorem covarianceIncrement_smooth [ProperSpace D] {Ω : Set D} (hΩ : IsOpen Ω) |
| 62 | {u w : Oscillation D} (hu : AngularSmooth Ω u) (hw : AngularSmooth Ω w) (i j : Fin 3) : |
| 63 | MeanIncrementBounds.SmoothOn Ω (SignedMeanGain.covarianceIncrement u w i j) := |
| 64 | (bilinearCovariance_smooth hΩ (hu.add hw) (hu.add hw) i j).sub |
| 65 | (bilinearCovariance_smooth hΩ hu hu i j) |
| 66 | |
| 67 | /-! ## Smoothness from the actual local harmonic coefficients -/ |
| 68 | |
| 69 | omit [NormedSpace ℝ D] in |
| 70 | theorem field_zero_germ {c : Coefficients D} (k : ℝ) (Φ : D → ℝ) (kp : ℤ) |
| 71 | {x : D} (θ : ℝ) (hz : ∀ j, c j =ᶠ[𝓝 x] fun _ => 0) : |
| 72 | field c k Φ kp =ᶠ[𝓝 (x, θ)] fun _ => 0 := by |
| 73 | have hbase : ∀ᶠ y in 𝓝 x, ∀ j ∈ c.support, c j y = 0 := |
| 74 | (Filter.eventually_all_finset c.support).2 (fun j _ => hz j) |
| 75 | have hlift := (continuous_fst.continuousAt : |
| 76 | Tendsto (Prod.fst : D × ℝ → D) (𝓝 (x, θ)) (𝓝 x)).eventually hbase |
| 77 | filter_upwards [hlift] with p hp |
| 78 | rw [show p = (p.1, p.2) from rfl, field_expansion] |
| 79 | exact Finset.sum_eq_zero (fun j hj => by rw [hp j hj]; simp) |
| 80 | |
| 81 | /-- Primitive local data for every active block. Harmonics are the |
| 82 | actual finite group-algebra coefficients, including harmonic zero. -/ |
| 83 | structure LocalData (Ω : Set D) (labels : ℕ → Finset ι) |
| 84 | (blocks : ι → HarmonicBlock D) (C : ℕ → ι → Set D) : Prop where |
| 85 | patch_open : ∀ n l, l ∈ labels n → IsOpen (C n l) |
| 86 | coefficient : ∀ n l, l ∈ labels n → ∀ i, |
| 87 | HarmonicResidual.SmoothCoefficients (Ω ∩ C n l) ((blocks l).velocity n i) |
| 88 | phase : ∀ n l, l ∈ labels n → ContDiffOn ℝ ∞ ((blocks l).phase n) (Ω ∩ C n l) |
| 89 | off_patch : ∀ n l, l ∈ labels n → ∀ x, x ∈ Ω → x ∉ C n l → |
| 90 | ∀ i j, (blocks l).velocity n i j =ᶠ[𝓝 x] fun _ => 0 |
| 91 | |
| 92 | namespace LocalData |
| 93 | |
| 94 | variable {Ω : Set D} {labels : ℕ → Finset ι} {blocks : ι → HarmonicBlock D} |
| 95 | {C : ℕ → ι → Set D} |
| 96 | |
| 97 | end LocalData |
| 98 | |
| 99 | /-! ## Actual support in the moving radial annulus -/ |
| 100 | |
| 101 | abbrev Plane := GaugeDebtIncrement.Plane |
| 102 | abbrev Point := GaugeDebtIncrement.Point |
| 103 | |
| 104 | noncomputable def WaveSupport {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 105 | (a b : ℝ) (u : Oscillation Point) : Prop := |
| 106 | ∀ n θ i, VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) |
| 107 | U.carrier (fun x => u n (x, θ) i) |
| 108 | |
| 109 | theorem WaveSupport.add {coord a b : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 110 | {u v : Oscillation Point} (hu : WaveSupport U a b u) (hv : WaveSupport U a b v) : |
| 111 | WaveSupport U a b (u + v) := by |
| 112 | intro n θ i x hx hn |
| 113 | by_cases hz : u n (x, θ) i = 0 |
| 114 | · exact hv n θ i x hx (fun hv0 => hn (by simp [hz, hv0])) |
| 115 | · exact hu n θ i x hx hz |
| 116 | |
| 117 | theorem angularAverage_supported {coord a b : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 118 | {f : OscillatoryScalar Point} |
| 119 | (hs : ∀ n θ, VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) |
| 120 | U.carrier (fun x => f n (x, θ))) : |
| 121 | ∀ n, VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) |
| 122 | U.carrier (angularAverage f n) := by |
| 123 | intro n x hx hn |
| 124 | by_contra hout |
| 125 | have hz (θ : ℝ) : f n (x, θ) = 0 := by |
| 126 | by_contra hne |
| 127 | exact hout (hs n θ x hx hne) |
| 128 | apply hn |
| 129 | simp only [angularAverage, hz, intervalIntegral.integral_zero, zero_div] |
| 130 | |
| 131 | theorem bilinearCovariance_regular {coord a b : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 132 | {u v : Oscillation Point} |
| 133 | (hu : AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) u) |
| 134 | (hv : AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) v) |
| 135 | (hs : WaveSupport U a b u) (i j : Fin 3) : |
| 136 | GaugeDebtIncrement.Regular U a b (bilinearCovariance u v i j) := by |
| 137 | refine ⟨bilinearCovariance_smooth (PhysicalMeanDomain.slowDomain_open U.isOpen) hu hv i j, ?_⟩ |
| 138 | apply angularAverage_supported |
| 139 | intro n θ x hx hn |
| 140 | exact hs n θ i x hx (left_ne_zero_of_mul hn) |
| 141 | |
| 142 | /-- Only the new wave needs annular support: outside it the old |
| 143 | covariance cancels in the literal difference of angular integrals. -/ |
| 144 | theorem covarianceIncrement_regular {coord a b : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 145 | {u w : Oscillation Point} |
| 146 | (hu : AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) u) |
| 147 | (hw : AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) w) |
| 148 | (hs : WaveSupport U a b w) (i j : Fin 3) : |
| 149 | GaugeDebtIncrement.Regular U a b (SignedMeanGain.covarianceIncrement u w i j) := by |
| 150 | refine ⟨covarianceIncrement_smooth (PhysicalMeanDomain.slowDomain_open U.isOpen) hu hw i j, ?_⟩ |
| 151 | intro n x hx hn |
| 152 | by_contra hout |
| 153 | have hz (θ : ℝ) (r : Fin 3) : w n (x, θ) r = 0 := by |
| 154 | by_contra hne |
| 155 | exact hout (hs n θ r x hx hne) |
| 156 | apply hn |
| 157 | simp only [SignedMeanGain.covarianceIncrement, bilinearCovariance, angularAverage, |
| 158 | Pi.sub_apply, Pi.add_apply, hz, add_zero, sub_self] |
| 159 | |
| 160 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 161 | theorem field_eq_zero_of_coefficients {c : Coefficients D} (k : ℝ) (Φ : D → ℝ) |
| 162 | (kp : ℤ) (x : D) (θ : ℝ) (hz : ∀ j, c j x = 0) : field c k Φ kp (x, θ) = 0 := by |
| 163 | rw [field_expansion] |
| 164 | exact Finset.sum_eq_zero (fun j _ => by rw [hz j]; simp) |
| 165 | |
| 166 | theorem fieldSum_support {coord a b : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 167 | {labels : ℕ → Finset ι} {u : ι → Oscillation Point} |
| 168 | (hs : ∀ n l, l ∈ labels n → ∀ θ i, |
| 169 | VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) |
| 170 | U.carrier (fun x => u l n (x, θ) i)) : |
| 171 | WaveSupport U a b (LabelSumBounds.fieldSum labels u) := by |
| 172 | intro n θ i x hx hn |
| 173 | by_contra hout |
| 174 | apply hn |
| 175 | apply Finset.sum_eq_zero |
| 176 | intro l hl |
| 177 | by_contra hne |
| 178 | exact hout (hs n l hl θ i x hx hne) |
| 179 | |
| 180 | /-! ## Concrete finite-active state adapters -/ |
| 181 | |
| 182 | section State |
| 183 | |
| 184 | variable {coord a b : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 185 | {labels₀ labels₁ : ℕ → Finset ι} {blocks₀ blocks₁ : ι → HarmonicBlock Point} |
| 186 | {C₀ C₁ : ℕ → ι → Set Point} |
| 187 | |
| 188 | end State |
| 189 | |
| 190 | end NavierStokes.WaveStateRegularity |