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 | /-- Primitive local data for every active block. Harmonics are the |
| 70 | actual finite group-algebra coefficients, including harmonic zero. -/ |
| 71 | structure LocalData (Ω : Set D) (labels : ℕ → Finset ι) |
| 72 | (blocks : ι → HarmonicBlock D) (C : ℕ → ι → Set D) : Prop where |
| 73 | patch_open : ∀ n l, l ∈ labels n → IsOpen (C n l) |
| 74 | coefficient : ∀ n l, l ∈ labels n → ∀ i, |
| 75 | HarmonicResidual.SmoothCoefficients (Ω ∩ C n l) ((blocks l).velocity n i) |
| 76 | phase : ∀ n l, l ∈ labels n → ContDiffOn ℝ ∞ ((blocks l).phase n) (Ω ∩ C n l) |
| 77 | off_patch : ∀ n l, l ∈ labels n → ∀ x, x ∈ Ω → x ∉ C n l → |
| 78 | ∀ i j, (blocks l).velocity n i j =ᶠ[𝓝 x] fun _ => 0 |
| 79 | |
| 80 | namespace LocalData |
| 81 | |
| 82 | variable {Ω : Set D} {labels : ℕ → Finset ι} {blocks : ι → HarmonicBlock D} |
| 83 | {C : ℕ → ι → Set D} |
| 84 | |
| 85 | end LocalData |
| 86 | |
| 87 | /-! ## Actual support in the moving radial annulus -/ |
| 88 | |
| 89 | abbrev Plane := GaugeDebtIncrement.Plane |
| 90 | abbrev Point := GaugeDebtIncrement.Point |
| 91 | |
| 92 | noncomputable def WaveSupport {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 93 | (a b : ℝ) (u : Oscillation Point) : Prop := |
| 94 | ∀ n θ i, VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) |
| 95 | U.carrier (fun x => u n (x, θ) i) |
| 96 | |
| 97 | theorem WaveSupport.add {coord a b : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 98 | {u v : Oscillation Point} (hu : WaveSupport U a b u) (hv : WaveSupport U a b v) : |
| 99 | WaveSupport U a b (u + v) := by |
| 100 | intro n θ i x hx hn |
| 101 | by_cases hz : u n (x, θ) i = 0 |
| 102 | · exact hv n θ i x hx (fun hv0 => hn (by simp [hz, hv0])) |
| 103 | · exact hu n θ i x hx hz |
| 104 | |
| 105 | theorem angularAverage_supported {coord a b : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 106 | {f : OscillatoryScalar Point} |
| 107 | (hs : ∀ n θ, VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) |
| 108 | U.carrier (fun x => f n (x, θ))) : |
| 109 | ∀ n, VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) |
| 110 | U.carrier (angularAverage f n) := by |
| 111 | intro n x hx hn |
| 112 | by_contra hout |
| 113 | have hz (θ : ℝ) : f n (x, θ) = 0 := by |
| 114 | by_contra hne |
| 115 | exact hout (hs n θ x hx hne) |
| 116 | apply hn |
| 117 | simp only [angularAverage, hz, intervalIntegral.integral_zero, zero_div] |
| 118 | |
| 119 | theorem bilinearCovariance_regular {coord a b : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 120 | {u v : Oscillation Point} |
| 121 | (hu : AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) u) |
| 122 | (hv : AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) v) |
| 123 | (hs : WaveSupport U a b u) (i j : Fin 3) : |
| 124 | GaugeDebtIncrement.Regular U a b (bilinearCovariance u v i j) := by |
| 125 | refine ⟨bilinearCovariance_smooth (PhysicalMeanDomain.slowDomain_open U.isOpen) hu hv i j, ?_⟩ |
| 126 | apply angularAverage_supported |
| 127 | intro n θ x hx hn |
| 128 | exact hs n θ i x hx (left_ne_zero_of_mul hn) |
| 129 | |
| 130 | /-- Only the new wave needs annular support: outside it the old |
| 131 | covariance cancels in the literal difference of angular integrals. -/ |
| 132 | theorem covarianceIncrement_regular {coord a b : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 133 | {u w : Oscillation Point} |
| 134 | (hu : AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) u) |
| 135 | (hw : AngularSmooth (PhysicalMeanDomain.slowDomain U.carrier) w) |
| 136 | (hs : WaveSupport U a b w) (i j : Fin 3) : |
| 137 | GaugeDebtIncrement.Regular U a b (SignedMeanGain.covarianceIncrement u w i j) := by |
| 138 | refine ⟨covarianceIncrement_smooth (PhysicalMeanDomain.slowDomain_open U.isOpen) hu hw i j, ?_⟩ |
| 139 | intro n x hx hn |
| 140 | by_contra hout |
| 141 | have hz (θ : ℝ) (r : Fin 3) : w n (x, θ) r = 0 := by |
| 142 | by_contra hne |
| 143 | exact hout (hs n θ r x hx hne) |
| 144 | apply hn |
| 145 | simp only [SignedMeanGain.covarianceIncrement, bilinearCovariance, angularAverage, |
| 146 | Pi.sub_apply, Pi.add_apply, hz, add_zero, sub_self] |
| 147 | |
| 148 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 149 | theorem field_eq_zero_of_coefficients {c : Coefficients D} (k : ℝ) (Φ : D → ℝ) |
| 150 | (kp : ℤ) (x : D) (θ : ℝ) (hz : ∀ j, c j x = 0) : field c k Φ kp (x, θ) = 0 := by |
| 151 | rw [field_expansion] |
| 152 | exact Finset.sum_eq_zero (fun j _ => by rw [hz j]; simp) |
| 153 | |
| 154 | theorem fieldSum_support {coord a b : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 155 | {labels : ℕ → Finset ι} {u : ι → Oscillation Point} |
| 156 | (hs : ∀ n l, l ∈ labels n → ∀ θ i, |
| 157 | VariableGaugeMean.SupportedGauge a b (VariableGaugeMean.qLength coord) |
| 158 | U.carrier (fun x => u l n (x, θ) i)) : |
| 159 | WaveSupport U a b (LabelSumBounds.fieldSum labels u) := by |
| 160 | intro n θ i x hx hn |
| 161 | by_contra hout |
| 162 | apply hn |
| 163 | apply Finset.sum_eq_zero |
| 164 | intro l hl |
| 165 | by_contra hne |
| 166 | exact hout (hs n l hl θ i x hx hne) |
| 167 | |
| 168 | /-! ## Concrete finite-active state adapters -/ |
| 169 | |
| 170 | section State |
| 171 | |
| 172 | variable {coord a b : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 173 | {labels₀ labels₁ : ℕ → Finset ι} {blocks₀ blocks₁ : ι → HarmonicBlock Point} |
| 174 | {C₀ C₁ : ℕ → ι → Set Point} |
| 175 | |
| 176 | end State |
| 177 | |
| 178 | end NavierStokes.WaveStateRegularity |