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.PartitionedCovariance |
| 2 | import NavierStokes.FlatCovariance |
| 3 | import NavierStokes.WeightedQuotients |
| 4 | import NavierStokes.WeightedClasses |
| 5 | |
| 6 | /-! |
| 7 | # Signed covariance updates with the constructed primary waves |
| 8 | |
| 9 | The signed solve uses the existing primary square roots, pulse columns, |
| 10 | physical masks, covering powers, and angular phases. Distinct labels are |
| 11 | separated by the constructed padded slots. A signed square is retained as |
| 12 | a separate term; it is not included in the linear covariance identity. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.SignedCovariance |
| 18 | |
| 19 | open Set Function Filter MeasureTheory Matrix |
| 20 | open PartitionedCovariance |
| 21 | open scoped BigOperators Topology ContDiff |
| 22 | |
| 23 | abbrev Vec2 := Fin 2 → ℝ |
| 24 | abbrev Mat2 := Matrix (Fin 2) (Fin 2) ℝ |
| 25 | abbrev Plane := TorusInverse.Plane |
| 26 | |
| 27 | /-- The numerator is the actual inverse-matrix solve. -/ |
| 28 | noncomputable def increment (H : Mat2) (T R : Vec2) (j : Fin 2) : ℝ := |
| 29 | (H⁻¹.mulVec R) j / (2 * SmoothCovariance.amplitudes H T j) |
| 30 | |
| 31 | theorem increment_eq_inverse (H : Mat2) (T R : Vec2) |
| 32 | (hcone : SmoothCovariance.StrictCone H T) (j : Fin 2) : |
| 33 | increment H T R j = (H⁻¹.mulVec R) j / (2 * Real.sqrt ((H⁻¹.mulVec T) j)) := by |
| 34 | rw [increment, (amplitudes_are_inverse_weights hcone j).2] |
| 35 | |
| 36 | private theorem edge_zero_one : FlatCutoff.edge 0 1 = 1 := by |
| 37 | rw [FlatCutoff.edge_of_pos 0 (by norm_num : (0 : ℝ) < 1)] |
| 38 | norm_num |
| 39 | |
| 40 | private theorem edge_matrix_zero (H : Mat2) : |
| 41 | FlatCovariance.edgeMatrix 0 (fun _ => H) 1 = H := by |
| 42 | ext i j |
| 43 | simp [FlatCovariance.edgeMatrix, FlatCovariance.columns, edge_zero_one] |
| 44 | |
| 45 | private theorem edge_target_zero (R : Vec2) : |
| 46 | FlatCovariance.edgeTarget 0 (fun _ => R) 1 = R := by |
| 47 | ext i |
| 48 | simp [FlatCovariance.edgeTarget, FlatCovariance.scaledTarget, edge_zero_one] |
| 49 | |
| 50 | /-- The scalar solve is the already proved flat-edge solve at unit edge weight. -/ |
| 51 | theorem increment_eq_flat (H : Mat2) (T R : Vec2) |
| 52 | (hcone : SmoothCovariance.StrictCone H T) : |
| 53 | increment H T R = FlatCovariance.signedAmplitude 0 0 0 |
| 54 | (fun _ => H) (fun _ => T) (fun _ => R) 1 := by |
| 55 | funext j |
| 56 | simp only [increment, FlatCovariance.signedAmplitude, FlatCovariance.primaryAmplitude, |
| 57 | FlatCovariance.inverseCoefficients, edge_matrix_zero, edge_target_zero] |
| 58 | rw [SmoothCovariance.inverse_formula H T hcone.det_ne_zero] |
| 59 | rfl |
| 60 | |
| 61 | /-- Exact two-sided covariance, reusing `FlatCovariance.signed_cross_reconstruct`. -/ |
| 62 | theorem cross_reconstruct (H : Mat2) (T R : Vec2) |
| 63 | (hcone : SmoothCovariance.StrictCone H T) : |
| 64 | H.mulVec (fun j => 2 * SmoothCovariance.amplitudes H T j * increment H T R j) = R := by |
| 65 | have he := FlatCovariance.signed_cross_reconstruct |
| 66 | (σ := 0) (τ := 0) (κ := 0) (G := fun _ => H) (T := fun _ => T) |
| 67 | (R := fun _ => R) (x := 1) hcone |
| 68 | rw [← increment_eq_flat H T R hcone] at he |
| 69 | simp only [FlatCovariance.primaryAmplitude, FlatCovariance.inverseCoefficients, |
| 70 | edge_matrix_zero, edge_target_zero] at he |
| 71 | rw [SmoothCovariance.inverse_formula H T hcone.det_ne_zero] at he |
| 72 | exact he |
| 73 | |
| 74 | /-! ## A bilinear average of the actual waves -/ |
| 75 | |
| 76 | /-! ## The same physical masks, slots, and phases for arbitrary coefficients -/ |
| 77 | |
| 78 | theorem cross_reconstruct_component (H : Mat2) (T R : Vec2) |
| 79 | (hcone : SmoothCovariance.StrictCone H T) (i : Fin 2) : |
| 80 | 2 * (H.mulVec (fun j => SmoothCovariance.amplitudes H T j * increment H T R j)) i = R i := by |
| 81 | have hc := congrFun (cross_reconstruct H T R hcone) i |
| 82 | simp only [Matrix.mulVec, dotProduct, Fin.sum_univ_two] at hc ⊢ |
| 83 | calc |
| 84 | _ = H i 0 * (2 * SmoothCovariance.amplitudes H T 0 * increment H T R 0) + |
| 85 | H i 1 * (2 * SmoothCovariance.amplitudes H T 1 * increment H T R 1) := by ring |
| 86 | _ = _ := hc |
| 87 | |
| 88 | /-! ## The physical signed target -/ |
| 89 | |
| 90 | /-- Section 10.2's chart stress `Q^(2 A) σ / ε`. -/ |
| 91 | noncomputable def chartStress (h : ℝ) (N : ℕ) (σ : Vec2) (U : UnsignedLabel) : Vec2 := |
| 92 | fun i => ChartScales.Q (U.1 + N) ^ (2 * velocityExponent h) * σ i / |
| 93 | physicalViscosity h N U |
| 94 | |
| 95 | /-! ## Uniform weighted jets from input classes and a primary lower bound -/ |
| 96 | |
| 97 | open WeightedClasses |
| 98 | |
| 99 | section Weighted |
| 100 | |
| 101 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 102 | |
| 103 | /-- A polynomial reciprocal bound, imposed only on the positive primary |
| 104 | weight. No regularity of a quotient by the envelope is assumed. -/ |
| 105 | noncomputable def InverseControl (s : StripData E) (w g : ℕ → E → ℝ) : Prop := |
| 106 | ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ n x, x ∈ s.domain → |
| 107 | w n x / g n x ≤ C * s.growth n x ^ p |
| 108 | |
| 109 | theorem inverseControl_of_lower {s : StripData E} {w g : ℕ → E → ℝ} |
| 110 | (hg : ∀ n x, x ∈ s.domain → 0 < g n x) {c : ℝ} (hc : 0 < c) (p : ℕ) |
| 111 | (hlower : ∀ n x, x ∈ s.domain → c * w n x / s.growth n x ^ p ≤ g n x) : |
| 112 | InverseControl s w g := by |
| 113 | refine ⟨c⁻¹, (inv_pos.mpr hc).le, p, ?_⟩ |
| 114 | intro n x hx |
| 115 | have hG : 0 < s.growth n x ^ p := pow_pos (zero_lt_one.trans_le (s.one_le_growth n x)) _ |
| 116 | have hl := (div_le_iff₀ hG).mp (hlower n x hx) |
| 117 | apply (div_le_iff₀ (hg n x hx)).mpr |
| 118 | calc |
| 119 | w n x = c⁻¹ * (c * w n x) := by rw [← mul_assoc, inv_mul_cancel₀ hc.ne', one_mul] |
| 120 | _ ≤ c⁻¹ * (g n x * s.growth n x ^ p) := mul_le_mul_of_nonneg_left hl (inv_pos.mpr hc).le |
| 121 | _ = _ := by ring |
| 122 | |
| 123 | /-- A common finite envelope for input jets and the positive lower bound, |
| 124 | uniform in the discrete band and every point of the strip. -/ |
| 125 | theorem class_input_envelope {s : StripData E} {w g r : ℕ → E → ℝ} |
| 126 | (hw : ∀ n x, x ∈ s.domain → 0 < w n x) |
| 127 | (hp : ∀ n x, x ∈ s.domain → 0 < g n x) |
| 128 | (hg : MemClass s w 0 g) (hr : MemClass s w 0 r) |
| 129 | (hlower : InverseControl s w g) (m : ℕ) : |
| 130 | ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ n x, x ∈ s.domain → |
| 131 | 1 ≤ C * s.growth n x ^ p ∧ |
| 132 | w n x / (C * s.growth n x ^ p) ≤ g n x ∧ |
| 133 | (∀ j ≤ m, ‖iteratedFDeriv ℝ j (g n) x‖ ≤ w n x * (C * s.growth n x ^ p)) ∧ |
| 134 | (∀ j ≤ m, ‖iteratedFDeriv ℝ j (r n) x‖ ≤ w n x * (C * s.growth n x ^ p)) := by |
| 135 | obtain ⟨Cg, hCg, pg, hgj⟩ := hg.bounds m |
| 136 | obtain ⟨Cr, hCr, pr, hrj⟩ := hr.bounds m |
| 137 | obtain ⟨C0, hC0, p0, hl⟩ := hlower |
| 138 | let C := Cg + Cr + C0 + 1 |
| 139 | let p := pg + pr + p0 |
| 140 | have hC : 1 ≤ C := by dsimp [C]; linarith |
| 141 | refine ⟨C, hC, p, ?_⟩ |
| 142 | intro n x hx |
| 143 | have hm (A : ℝ) (hA : 0 ≤ A) (hAC : A ≤ C) (k : ℕ) (hkp : k ≤ p) : |
| 144 | A * s.growth n x ^ k ≤ C * s.growth n x ^ p := by |
| 145 | exact mul_le_mul hAC (pow_le_pow_right₀ (s.one_le_growth n x) hkp) |
| 146 | (pow_nonneg (s.growth_nonneg n x) k) (zero_le_one.trans hC) |
| 147 | have hB : 1 ≤ C * s.growth n x ^ p := |
| 148 | one_le_mul_of_one_le_of_one_le hC (one_le_pow₀ (s.one_le_growth n x)) |
| 149 | refine ⟨hB, ?_, ?_, ?_⟩ |
| 150 | · apply (div_le_iff₀ (zero_lt_one.trans_le hB)).mpr |
| 151 | have hl' : w n x / g n x ≤ C * s.growth n x ^ p := |
| 152 | (hl n x hx).trans (hm C0 hC0 (by dsimp [C]; linarith) p0 (by dsimp [p]; omega)) |
| 153 | simpa only [mul_comm] using (div_le_iff₀ (hp n x hx)).mp hl' |
| 154 | · intro j hj |
| 155 | calc |
| 156 | _ ≤ Cg * s.growth n x ^ pg * w n x := by |
| 157 | simpa only [majorant, Real.rpow_zero, mul_one] using hgj n x hx j hj |
| 158 | _ ≤ (C * s.growth n x ^ p) * w n x := mul_le_mul_of_nonneg_right |
| 159 | (hm Cg hCg (by dsimp [C]; linarith) pg (by dsimp [p]; omega)) (hw n x hx).le |
| 160 | _ = _ := by ring |
| 161 | · intro j hj |
| 162 | calc |
| 163 | _ ≤ Cr * s.growth n x ^ pr * w n x := by |
| 164 | simpa only [majorant, Real.rpow_zero, mul_one] using hrj n x hx j hj |
| 165 | _ ≤ (C * s.growth n x ^ p) * w n x := mul_le_mul_of_nonneg_right |
| 166 | (hm Cr hCr (by dsimp [C]; linarith) pr (by dsimp [p]; omega)) (hw n x hx).le |
| 167 | _ = _ := by ring |
| 168 | |
| 169 | noncomputable def signedJetCost (j : ℕ) : ℝ := |
| 170 | WeightedQuotients.chooseSum j * WeightedQuotients.orderBound (-(1 / 2 : ℝ)) j / 2 |
| 171 | |
| 172 | noncomputable def prefixJetCost (m : ℕ) : ℝ := |
| 173 | 1 + ∑ j ∈ Finset.range (m + 1), |signedJetCost j| |
| 174 | |
| 175 | theorem prefixJetCost_pos (m : ℕ) : 0 < prefixJetCost m := by |
| 176 | have hs := Finset.sum_nonneg (s := Finset.range (m + 1)) (fun j _ => abs_nonneg (signedJetCost j)) |
| 177 | dsimp [prefixJetCost] |
| 178 | linarith |
| 179 | |
| 180 | theorem signedJetCost_le {j m : ℕ} (hj : j ≤ m) : signedJetCost j ≤ prefixJetCost m := by |
| 181 | have hs := Finset.single_le_sum (f := fun j => |signedJetCost j|) |
| 182 | (fun k _ => abs_nonneg (signedJetCost k)) (Finset.mem_range.mpr (Nat.lt_succ_of_le hj)) |
| 183 | exact (le_abs_self _).trans (hs.trans (by dsimp [prefixJetCost]; linarith)) |
| 184 | |
| 185 | /-- Derive the all-order signed quotient class from weighted input jets. |
| 186 | The weight is never differentiated or divided out as a variable function. -/ |
| 187 | theorem signed_quotient_class_zero {s : StripData E} {w g r : ℕ → E → ℝ} |
| 188 | (hw : ∀ n x, x ∈ s.domain → 0 < w n x) |
| 189 | (hp : ∀ n x, x ∈ s.domain → 0 < g n x) |
| 190 | (hg : MemClass s w 0 g) (hr : MemClass s w 0 r) |
| 191 | (hlower : InverseControl s w g) : |
| 192 | MemClass s (fun n x => Real.sqrt (w n x)) 0 |
| 193 | (fun n x => r n x / (2 * Real.sqrt (g n x))) := by |
| 194 | have hsmooth (n : ℕ) : ContDiffOn ℝ ∞ |
| 195 | (fun x => r n x / (2 * Real.sqrt (g n x))) s.domain := |
| 196 | (hr.smooth n).div (contDiffOn_const.mul ((hg.smooth n).sqrt (fun x hx => (hp n x hx).ne'))) |
| 197 | (fun x hx => mul_ne_zero (by norm_num) (Real.sqrt_pos.mpr (hp n x hx)).ne') |
| 198 | refine ⟨fun n x hx => Real.sqrt_nonneg _, hsmooth, ?_⟩ |
| 199 | intro m |
| 200 | obtain ⟨C, hC, p, henv⟩ := class_input_envelope hw hp hg hr hlower m |
| 201 | refine ⟨prefixJetCost m * C ^ (2 * m + 2), |
| 202 | mul_nonneg (prefixJetCost_pos m).le (pow_nonneg (zero_le_one.trans hC) _), p * (2 * m + 2), ?_⟩ |
| 203 | intro n x hx j hj |
| 204 | obtain ⟨hB, hlo, hgj, hrj⟩ := henv n x hx |
| 205 | have hb := WeightedQuotients.signed_jet_bound s.isOpen_domain (hg.smooth n) (hr.smooth n) |
| 206 | (hp n) hx (hw n x hx) hB j hlo (fun k hk => hgj k (hk.trans hj)) (fun k hk => hrj k (hk.trans hj)) |
| 207 | calc |
| 208 | _ ≤ Real.sqrt (w n x) * signedJetCost j * (C * s.growth n x ^ p) ^ (2 * j + 2) := hb |
| 209 | _ ≤ Real.sqrt (w n x) * prefixJetCost m * (C * s.growth n x ^ p) ^ (2 * m + 2) := by |
| 210 | apply mul_le_mul |
| 211 | · exact mul_le_mul_of_nonneg_left (signedJetCost_le hj) (Real.sqrt_nonneg _) |
| 212 | · exact pow_le_pow_right₀ hB (by omega) |
| 213 | · exact pow_nonneg (zero_le_one.trans hB) _ |
| 214 | · exact mul_nonneg (Real.sqrt_nonneg _) (prefixJetCost_pos m).le |
| 215 | _ = majorant s (fun n x => Real.sqrt (w n x)) 0 |
| 216 | (prefixJetCost m * C ^ (2 * m + 2)) (p * (2 * m + 2)) n x := by |
| 217 | simp only [majorant, Real.rpow_zero, mul_one, mul_pow, pow_mul] |
| 218 | ring |
| 219 | |
| 220 | /-- Discrete powers of epsilon pass through the quotient without a jet loss. -/ |
| 221 | theorem signed_quotient_class {s : StripData E} {w g r : ℕ → E → ℝ} {β : ℝ} |
| 222 | (hw : ∀ n x, x ∈ s.domain → 0 < w n x) |
| 223 | (hp : ∀ n x, x ∈ s.domain → 0 < g n x) |
| 224 | (hg : MemClass s w 0 g) (hr : MemClass s w β r) |
| 225 | (hlower : InverseControl s w g) : |
| 226 | MemClass s (fun n x => Real.sqrt (w n x)) β |
| 227 | (fun n x => r n x / (2 * Real.sqrt (g n x))) := by |
| 228 | have hr0 : MemClass s w 0 (fun n x => s.epsilon n ^ (-β) * r n x) := by |
| 229 | simpa only [smul_eq_mul, add_neg_cancel] using hr.band_smul (bandBound_rpow s (-β)) |
| 230 | have hq0 := signed_quotient_class_zero hw hp hg hr0 hlower |
| 231 | have hq := hq0.band_smul (bandBound_rpow s β) |
| 232 | have heq : (fun n x => s.epsilon n ^ β • (s.epsilon n ^ (-β) * r n x / (2 * Real.sqrt (g n x)))) = |
| 233 | (fun n x => r n x / (2 * Real.sqrt (g n x))) := by |
| 234 | funext n x |
| 235 | simp only [smul_eq_mul, ← mul_div_assoc, ← mul_assoc, |
| 236 | ← Real.rpow_add (s.epsilon_pos n), add_neg_cancel, Real.rpow_zero, one_mul] |
| 237 | simpa only [zero_add, heq] using hq |
| 238 | |
| 239 | theorem memClass_congrOn {s : StripData E} {w f g : ℕ → E → ℝ} {β : ℝ} |
| 240 | (hf : MemClass s w β f) (heq : ∀ n x, x ∈ s.domain → f n x = g n x) : |
| 241 | MemClass s w β g := by |
| 242 | refine ⟨hf.weight_nonneg, fun n => (hf.smooth n).congr (fun x hx => (heq n x hx).symm), ?_⟩ |
| 243 | intro m |
| 244 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 245 | refine ⟨C, hC, p, ?_⟩ |
| 246 | intro n x hx j hj |
| 247 | have he : g n =ᶠ[𝓝 x] f n := by |
| 248 | filter_upwards [s.isOpen_domain.mem_nhds hx] with y hy |
| 249 | exact (heq n y hy).symm |
| 250 | rw [WeightedQuotients.jet_congr he j] |
| 251 | exact hb n x hx j hj |
| 252 | |
| 253 | /-- The actual matrix-inverse signed coefficient has the half-weight class, |
| 254 | derived from the inverse numerator jets and positive primary inverse jets. -/ |
| 255 | theorem increment_wave_class {s : StripData E} {H : ℕ → E → Mat2} |
| 256 | {T R : ℕ → E → Vec2} {β : ℝ} (j : Fin 2) |
| 257 | (hζ : ∀ x ∈ s.domain, 0 < s.zeta x) |
| 258 | (hcone : ∀ n x, x ∈ s.domain → SmoothCovariance.StrictCone (H n x) (T n x)) |
| 259 | (hY : MeanClass s 0 (fun n x => ((H n x)⁻¹.mulVec (T n x)) j)) |
| 260 | (hR : MeanClass s β (fun n x => ((H n x)⁻¹.mulVec (R n x)) j)) |
| 261 | (hlower : InverseControl s (fun _ x => s.zeta x) |
| 262 | (fun n x => ((H n x)⁻¹.mulVec (T n x)) j)) : |
| 263 | WaveClass s (fun _ _ => 1) β (fun n x => increment (H n x) (T n x) (R n x) j) := by |
| 264 | have hq := signed_quotient_class (fun n x hx => hζ x hx) |
| 265 | (fun n x hx => (amplitudes_are_inverse_weights (hcone n x hx) j).1) hY hR hlower |
| 266 | have he := memClass_congrOn hq |
| 267 | (fun n x hx => (increment_eq_inverse (H n x) (T n x) (R n x) (hcone n x hx) j).symm) |
| 268 | simpa only [WaveClass, mul_one] using he |
| 269 | |
| 270 | end Weighted |
| 271 | |
| 272 | /-! ## A quantitative bound for the complete assembled signed square -/ |
| 273 | |
| 274 | /-! ## Smooth edge extension of the actual inverse amplitudes -/ |
| 275 | |
| 276 | section Edge |
| 277 | |
| 278 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 279 | |
| 280 | end Edge |
| 281 | |
| 282 | end NavierStokes.SignedCovariance |