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.ExponentLedger |
| 2 | import NavierStokes.PhysicalStageBounds |
| 3 | |
| 4 | /-! |
| 5 | # The arithmetic ledger for actual correction stages |
| 6 | |
| 7 | The input of cycle `n` has accuracy `sigma n`. Its physical increment has |
| 8 | index `n+1`, while a finite prefix after `J` cycles has accuracy `sigma J`. |
| 9 | The gain and all physical offsets below are fixed before the stage index. |
| 10 | This module does not assert the existence of correction cycles or their |
| 11 | native class estimates. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Topology ContDiff |
| 18 | |
| 19 | namespace NavierStokes.ActualIterationLedger |
| 20 | |
| 21 | /-- Accuracy of the state after this many correction cycles. -/ |
| 22 | noncomputable def sigma (J : ℕ) : ℝ := ExponentLedger.stageParameter J |
| 23 | |
| 24 | /-- The input accuracy used to construct a positive physical increment. |
| 25 | The value at zero is unused by the positive-stage estimates. -/ |
| 26 | noncomputable def inputSigma (j : ℕ) : ℝ := sigma (j - 1) |
| 27 | |
| 28 | /-- One common physical gain for all increment types and finite residuals. -/ |
| 29 | noncomputable def gain (h : ℝ) (j : ℕ) : ℝ := h * (j : ℝ) / 10 |
| 30 | |
| 31 | /-- The same admissible loss is used at every cycle. -/ |
| 32 | noncomputable def kappa : ℝ := 1 / 100000 |
| 33 | |
| 34 | @[simp] theorem sigma_zero : sigma 0 = 1 / 5 := ExponentLedger.stage_parameter_zero |
| 35 | |
| 36 | theorem sigma_formula (J : ℕ) : sigma J = 1 / 5 + (J : ℝ) / 10 := rfl |
| 37 | |
| 38 | theorem sigma_succ (J : ℕ) : sigma (J + 1) = sigma J + 1 / 10 := |
| 39 | ExponentLedger.stage_parameter_succ J |
| 40 | |
| 41 | theorem sigma_admissible (J : ℕ) : 1 / 5 ≤ sigma J := |
| 42 | ExponentLedger.stage_parameter_admissible J |
| 43 | |
| 44 | theorem sigma_strictMono : StrictMono sigma := by |
| 45 | intro j k hjk |
| 46 | have hk : (j : ℝ) < k := by exact_mod_cast hjk |
| 47 | simp only [sigma_formula] |
| 48 | linarith |
| 49 | |
| 50 | @[simp] theorem inputSigma_succ (j : ℕ) : inputSigma (j + 1) = sigma j := by |
| 51 | simp [inputSigma] |
| 52 | |
| 53 | theorem inputSigma_formula {j : ℕ} (hj : 1 ≤ j) : |
| 54 | inputSigma j = 1 / 10 + (j : ℝ) / 10 := by |
| 55 | simp only [inputSigma, sigma_formula, Nat.cast_sub hj, Nat.cast_one] |
| 56 | ring |
| 57 | |
| 58 | theorem inputSigma_index {j : ℕ} (hj : 1 ≤ j) : inputSigma j + 1 / 10 = sigma j := by |
| 59 | rw [inputSigma_formula hj, sigma_formula] |
| 60 | ring |
| 61 | |
| 62 | theorem inputSigma_admissible (j : ℕ) : 1 / 5 ≤ inputSigma j := sigma_admissible _ |
| 63 | |
| 64 | @[simp] theorem gain_zero (h : ℝ) : gain h 0 = 0 := by simp [gain] |
| 65 | |
| 66 | theorem gain_succ (h : ℝ) (j : ℕ) : gain h (j + 1) = gain h j + h / 10 := by |
| 67 | simp only [gain, Nat.cast_add, Nat.cast_one] |
| 68 | ring |
| 69 | |
| 70 | theorem gain_eq_accuracy (h : ℝ) (J : ℕ) : gain h J = h * (sigma J - 1 / 5) := by |
| 71 | rw [sigma_formula] |
| 72 | unfold gain |
| 73 | ring |
| 74 | |
| 75 | theorem gain_nonneg {h : ℝ} (hh : 0 ≤ h) (j : ℕ) : 0 ≤ gain h j := by |
| 76 | unfold gain |
| 77 | positivity |
| 78 | |
| 79 | theorem gain_pos {h : ℝ} (hh : 0 < h) {j : ℕ} (hj : 1 ≤ j) : 0 < gain h j := by |
| 80 | have hn : (0 : ℝ) < j := by exact_mod_cast (lt_of_lt_of_le Nat.zero_lt_one hj) |
| 81 | unfold gain |
| 82 | positivity |
| 83 | |
| 84 | theorem gain_monotone {h : ℝ} (hh : 0 ≤ h) : Monotone (gain h) := by |
| 85 | intro j k hjk |
| 86 | have hk : (j : ℝ) ≤ k := by exact_mod_cast hjk |
| 87 | exact div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left hk hh) (by norm_num) |
| 88 | |
| 89 | theorem gain_strictMono {h : ℝ} (hh : 0 < h) : StrictMono (gain h) := by |
| 90 | intro j k hjk |
| 91 | have hk : (j : ℝ) < k := by exact_mod_cast hjk |
| 92 | exact (div_lt_div_iff_of_pos_right (by norm_num : (0 : ℝ) < 10)).mpr |
| 93 | (mul_lt_mul_of_pos_left hk hh) |
| 94 | |
| 95 | theorem gain_add_tendsto_atTop {h : ℝ} (hh : 0 < h) (a : ℝ) : |
| 96 | Tendsto (fun j => gain h j + a) atTop atTop := by |
| 97 | apply Filter.tendsto_atTop.mpr |
| 98 | intro b |
| 99 | obtain ⟨N, hN⟩ := exists_nat_gt (10 * (b - a) / h) |
| 100 | filter_upwards [eventually_ge_atTop N] with j hj |
| 101 | have hn : (N : ℝ) ≤ j := by exact_mod_cast hj |
| 102 | have hp := (div_lt_iff₀ hh).mp hN |
| 103 | have hm := mul_le_mul_of_nonneg_left hn hh.le |
| 104 | unfold gain |
| 105 | nlinarith |
| 106 | |
| 107 | theorem gain_tendsto_atTop {h : ℝ} (hh : 0 < h) : Tendsto (gain h) atTop atTop := by |
| 108 | simpa only [add_zero] using gain_add_tendsto_atTop hh 0 |
| 109 | |
| 110 | theorem sigma_tendsto_atTop : Tendsto sigma atTop atTop := by |
| 111 | have hs := gain_add_tendsto_atTop (by norm_num : (0 : ℝ) < 1) (1 / 5) |
| 112 | simp only [gain, one_mul, add_comm] at hs ⊢ |
| 113 | exact hs |
| 114 | |
| 115 | theorem kappa_admissible : 0 ≤ kappa ∧ kappa ≤ 1 / 100000 := by norm_num [kappa] |
| 116 | |
| 117 | theorem kappa_pos : 0 < kappa := by norm_num [kappa] |
| 118 | |
| 119 | theorem all_cycle_margins (n : ℕ) {κ : ℝ} (hκ : κ ≤ 1 / 100000) : |
| 120 | ExponentLedger.waveExponent (sigma (n + 1)) < |
| 121 | ExponentLedger.waveExponent (sigma n) + ExponentLedger.particularGain (sigma n) κ ∧ |
| 122 | ExponentLedger.waveExponent (sigma (n + 1)) < |
| 123 | ExponentLedger.waveExponent (sigma n) + ExponentLedger.signedGain (sigma n) κ ∧ |
| 124 | ExponentLedger.waveExponent (sigma (n + 1)) < ExponentLedger.meanUpdateExponent (sigma n) κ ∧ |
| 125 | ExponentLedger.meanExponent (sigma (n + 1)) < |
| 126 | ExponentLedger.meanExponent (sigma n) + min (17 / 100) (1 - 4 * κ) ∧ |
| 127 | ExponentLedger.meanExponent (sigma (n + 1)) < |
| 128 | ExponentLedger.meanExponent (sigma n) + 9 / 10 - 4 * κ := |
| 129 | ExponentLedger.all_stage_arithmetic n hκ |
| 130 | |
| 131 | /-! ## The native increment exponents and their physical comparison -/ |
| 132 | |
| 133 | /-- Conservative class for the actual wave potential. The local inverse |
| 134 | frequency can give an additional half power, which is not needed here. -/ |
| 135 | noncomputable def waveNative (κ : ℝ) (j : ℕ) : ℝ := |
| 136 | ExponentLedger.waveExponent (inputSigma j) - κ |
| 137 | |
| 138 | noncomputable def wavePressureNative (κ : ℝ) (j : ℕ) : ℝ := waveNative κ j + 1 / 2 |
| 139 | |
| 140 | noncomputable def meanNative (κ : ℝ) (j : ℕ) : ℝ := |
| 141 | ExponentLedger.meanUpdateExponent (inputSigma j) κ |
| 142 | |
| 143 | noncomputable def radialNative (κ : ℝ) (j : ℕ) : ℝ := meanNative κ j + 1 |
| 144 | |
| 145 | theorem waveNative_formula (κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 146 | waveNative κ j = (j : ℝ) / 10 + (3 / 5 - κ) := by |
| 147 | rw [waveNative, ExponentLedger.waveExponent, inputSigma_formula hj] |
| 148 | ring |
| 149 | |
| 150 | theorem wavePressureNative_formula (κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 151 | wavePressureNative κ j = (j : ℝ) / 10 + (11 / 10 - κ) := by |
| 152 | rw [wavePressureNative, waveNative_formula κ hj] |
| 153 | ring |
| 154 | |
| 155 | theorem meanNative_formula (κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 156 | meanNative κ j = (j : ℝ) / 10 + (11 / 10 - 2 * κ) := by |
| 157 | rw [meanNative, ExponentLedger.meanUpdateExponent, ExponentLedger.meanExponent, inputSigma_formula hj] |
| 158 | ring |
| 159 | |
| 160 | theorem radialNative_formula (κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 161 | radialNative κ j = (j : ℝ) / 10 + (21 / 10 - 2 * κ) := by |
| 162 | rw [radialNative, meanNative_formula κ hj] |
| 163 | ring |
| 164 | |
| 165 | theorem wave_physical_gap (h κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 166 | h * waveNative κ j = gain h j + h * (3 / 5 - κ) := by |
| 167 | rw [waveNative_formula κ hj] |
| 168 | unfold gain |
| 169 | ring |
| 170 | |
| 171 | theorem pressure_physical_gap (h κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 172 | h * wavePressureNative κ j = gain h j + h * (11 / 10 - κ) := by |
| 173 | rw [wavePressureNative_formula κ hj] |
| 174 | unfold gain |
| 175 | ring |
| 176 | |
| 177 | theorem mean_physical_gap (h κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 178 | h * meanNative κ j = gain h j + h * (11 / 10 - 2 * κ) := by |
| 179 | rw [meanNative_formula κ hj] |
| 180 | unfold gain |
| 181 | ring |
| 182 | |
| 183 | theorem gain_le_wave {h κ : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) {j : ℕ} (hj : 1 ≤ j) : |
| 184 | gain h j ≤ h * waveNative κ j := by |
| 185 | rw [wave_physical_gap h κ hj] |
| 186 | exact le_add_of_nonneg_right (mul_nonneg hh (by linarith)) |
| 187 | |
| 188 | theorem gain_le_wavePressure {h κ : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) {j : ℕ} (hj : 1 ≤ j) : |
| 189 | gain h j ≤ h * wavePressureNative κ j := by |
| 190 | rw [pressure_physical_gap h κ hj] |
| 191 | exact le_add_of_nonneg_right (mul_nonneg hh (by linarith)) |
| 192 | |
| 193 | theorem gain_le_mean {h κ : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) {j : ℕ} (hj : 1 ≤ j) : |
| 194 | gain h j ≤ h * meanNative κ j := by |
| 195 | rw [mean_physical_gap h κ hj] |
| 196 | exact le_add_of_nonneg_right (mul_nonneg hh (by linarith)) |
| 197 | |
| 198 | theorem gain_le_radial {h κ : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) {j : ℕ} (hj : 1 ≤ j) : |
| 199 | gain h j ≤ h * radialNative κ j := by |
| 200 | have he := gain_le_mean hh hκ hj |
| 201 | unfold radialNative |
| 202 | nlinarith |
| 203 | |
| 204 | structure Offsets where |
| 205 | wavePotential : ℝ |
| 206 | meanStream : ℝ |
| 207 | directAngular : ℝ |
| 208 | wavePressure : ℝ |
| 209 | meanPressure : ℝ |
| 210 | |
| 211 | /-- These five constants do not depend on an increment or derivative index. -/ |
| 212 | noncomputable def offsets (h : ℝ) : Offsets := |
| 213 | ⟨h, 0, 0, 2 * CoordinateAlgebra.A h, 0⟩ |
| 214 | |
| 215 | theorem fixed_offset_inequalities {h κ : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) |
| 216 | {j : ℕ} (hj : 1 ≤ j) : |
| 217 | gain h j ≤ h * waveNative κ j + (-h) + (offsets h).wavePotential ∧ |
| 218 | gain h j ≤ h * meanNative κ j + (offsets h).meanStream ∧ |
| 219 | gain h j ≤ h * meanNative κ j + (offsets h).directAngular ∧ |
| 220 | gain h j ≤ h * wavePressureNative κ j + (-(2 * CoordinateAlgebra.A h)) + (offsets h).wavePressure ∧ |
| 221 | gain h j ≤ h * meanNative κ j + (offsets h).meanPressure := by |
| 222 | simpa only [offsets, add_assoc, neg_add_cancel, add_zero] using |
| 223 | And.intro (gain_le_wave hh hκ hj) (And.intro (gain_le_mean hh hκ hj) |
| 224 | (And.intro (gain_le_mean hh hκ hj) (And.intro (gain_le_wavePressure hh hκ hj) (gain_le_mean hh hκ hj)))) |
| 225 | |
| 226 | /-! ## Residual indexing after a finite number of cycles -/ |
| 227 | |
| 228 | noncomputable def residualWave (J : ℕ) : ℝ := ExponentLedger.waveExponent (sigma J) |
| 229 | noncomputable def residualMean (J : ℕ) : ℝ := ExponentLedger.meanExponent (sigma J) |
| 230 | |
| 231 | theorem residualWave_formula (J : ℕ) : residualWave J = (J : ℝ) / 10 + 7 / 10 := by |
| 232 | rw [residualWave, ExponentLedger.waveExponent, sigma_formula] |
| 233 | ring |
| 234 | |
| 235 | theorem residualMean_formula (J : ℕ) : residualMean J = (J : ℝ) / 10 + 6 / 5 := by |
| 236 | rw [residualMean, ExponentLedger.meanExponent, sigma_formula] |
| 237 | ring |
| 238 | |
| 239 | theorem cycle_wave_output (n : ℕ) : |
| 240 | ExponentLedger.waveExponent (sigma n) + 1 / 10 = residualWave (n + 1) := by |
| 241 | rw [residualWave, sigma_succ, ExponentLedger.wave_increment] |
| 242 | |
| 243 | theorem cycle_mean_output (n : ℕ) : |
| 244 | ExponentLedger.meanExponent (sigma n) + 1 / 10 = residualMean (n + 1) := by |
| 245 | rw [residualMean, sigma_succ, ExponentLedger.mean_increment] |
| 246 | |
| 247 | theorem residual_minimum (J : ℕ) : min (residualWave J) (residualMean J) = residualWave J := by |
| 248 | apply min_eq_left |
| 249 | rw [residualWave_formula, residualMean_formula] |
| 250 | linarith |
| 251 | |
| 252 | theorem residual_physical_gap (h : ℝ) (J : ℕ) : |
| 253 | h * residualWave J = gain h J + 7 * h / 10 := by |
| 254 | rw [residualWave_formula] |
| 255 | unfold gain |
| 256 | ring |
| 257 | |
| 258 | theorem residual_mean_physical_gap (h : ℝ) (J : ℕ) : |
| 259 | h * residualMean J = gain h J + 6 * h / 5 := by |
| 260 | rw [residualMean_formula] |
| 261 | unfold gain |
| 262 | ring |
| 263 | |
| 264 | theorem gain_le_residualWave {h : ℝ} (hh : 0 ≤ h) (J : ℕ) : |
| 265 | gain h J ≤ h * residualWave J := by |
| 266 | rw [residual_physical_gap] |
| 267 | linarith |
| 268 | |
| 269 | theorem gain_le_residualMean {h : ℝ} (hh : 0 ≤ h) (J : ℕ) : |
| 270 | gain h J ≤ h * residualMean J := by |
| 271 | rw [residual_mean_physical_gap] |
| 272 | linarith |
| 273 | |
| 274 | theorem gain_le_residualMinimum {h : ℝ} (hh : 0 ≤ h) (J : ℕ) : |
| 275 | gain h J ≤ h * min (residualWave J) (residualMean J) := by |
| 276 | rw [residual_minimum] |
| 277 | exact gain_le_residualWave hh J |
| 278 | |
| 279 | theorem gain_after_cycle {h : ℝ} (hh : 0 ≤ h) (n : ℕ) : |
| 280 | gain h (n + 1) ≤ h * (ExponentLedger.waveExponent (sigma n) + 1 / 10) := by |
| 281 | rw [cycle_wave_output] |
| 282 | exact gain_le_residualWave hh (n + 1) |
| 283 | |
| 284 | /-- The full-phase derivative cost is a fixed parameter `beta`, not a |
| 285 | stage-dependent loss. -/ |
| 286 | noncomputable def residualLoss (h beta : ℝ) (m : ℕ) : ℝ := |
| 287 | PhysicalGraphBounds.graphLoss m + 1 + (2 * CoordinateAlgebra.A h + 1 / 2) + beta * m |
| 288 | |
| 289 | noncomputable def residualRate (h beta : ℝ) (J m : ℕ) : ℝ := |
| 290 | h * residualWave J - residualLoss h beta m |
| 291 | |
| 292 | theorem residualRate_eq (h beta : ℝ) (J m : ℕ) : |
| 293 | residualRate h beta J m = gain h J + (7 * h / 10 - residualLoss h beta m) := by |
| 294 | rw [residualRate, residual_physical_gap] |
| 295 | ring |
| 296 | |
| 297 | theorem gain_le_residual_rate {h : ℝ} (hh : 0 ≤ h) (beta : ℝ) (J m : ℕ) : |
| 298 | gain h J - residualLoss h beta m ≤ residualRate h beta J m := by |
| 299 | rw [residualRate_eq] |
| 300 | linarith |
| 301 | |
| 302 | theorem residualRate_tendsto_atTop {h : ℝ} (hh : 0 < h) (beta : ℝ) (m : ℕ) : |
| 303 | Tendsto (fun J => residualRate h beta J m) atTop atTop := by |
| 304 | simpa only [residualRate_eq] using gain_add_tendsto_atTop hh (7 * h / 10 - residualLoss h beta m) |
| 305 | |
| 306 | theorem eventually_residualRate_ge {h : ℝ} (hh : 0 < h) (beta : ℝ) (m : ℕ) (a : ℝ) : |
| 307 | ∀ᶠ J in atTop, a ≤ residualRate h beta J m := |
| 308 | (residualRate_tendsto_atTop hh beta m).eventually (eventually_ge_atTop a) |
| 309 | |
| 310 | theorem residual_bound_with_gain {V : Type*} [NormedAddCommGroup V] |
| 311 | {h beta C q : ℝ} (hh : 0 ≤ h) (hC : 0 ≤ C) (hq : 0 < q) (hq1 : q ≤ 1) |
| 312 | (J m : ℕ) {v : V} (hv : ‖v‖ ≤ C * q ^ residualRate h beta J m) : |
| 313 | ‖v‖ ≤ C * q ^ (gain h J - residualLoss h beta m) := |
| 314 | hv.trans (mul_le_mul_of_nonneg_left |
| 315 | (Real.rpow_le_rpow_of_exponent_ge hq hq1 (gain_le_residual_rate hh beta J m)) hC) |
| 316 | |
| 317 | /-! ## Binding the ledger to the actual physical-stage interface -/ |
| 318 | |
| 319 | section StageInputs |
| 320 | |
| 321 | open PhysicalStageBounds ProblemStatement |
| 322 | |
| 323 | variable {h κ qbig : ℝ} |
| 324 | {DA DP : Type} [NormedAddCommGroup DA] [NormedSpace ℝ DA] |
| 325 | [NormedAddCommGroup DP] [NormedSpace ℝ DP] {IA KA IP KP : Type*} |
| 326 | |
| 327 | /-- Only native exponent metadata occur here. The physical fields, charts, |
| 328 | regularity and local class estimates are those in the supplied `WaveData` |
| 329 | and `MeanData`. The sharper potential class may be weakened to `B−κ`. -/ |
| 330 | structure StageMetadata |
| 331 | (WA : ℕ → WaveData h DA IA KA (Fin 3)) |
| 332 | (MA : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)) |
| 333 | (MB : ℕ → MeanData h (CoordinateAlgebra.A h)) |
| 334 | (WP : ℕ → WaveData h DP IP KP Unit) |
| 335 | (MP : ℕ → MeanData h (2 * CoordinateAlgebra.A h)) (κ : ℝ) : Prop where |
| 336 | wavePotential : ∀ j, 1 ≤ j → waveNative κ j ≤ (WA j).alpha |
| 337 | wavePotentialShift : ∀ j, 1 ≤ j → -h ≤ (WA j).shift |
| 338 | meanStream : ∀ j, 1 ≤ j → meanNative κ j ≤ (MA j).alpha |
| 339 | directAngular : ∀ j, 1 ≤ j → meanNative κ j ≤ (MB j).alpha |
| 340 | wavePressure : ∀ j, 1 ≤ j → wavePressureNative κ j ≤ (WP j).alpha |
| 341 | wavePressureShift : ∀ j, 1 ≤ j → -(2 * CoordinateAlgebra.A h) ≤ (WP j).shift |
| 342 | meanPressure : ∀ j, 1 ≤ j → meanNative κ j ≤ (MP j).alpha |
| 343 | |
| 344 | variable {WA : ℕ → WaveData h DA IA KA (Fin 3)} |
| 345 | {MA : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)} |
| 346 | {MB : ℕ → MeanData h (CoordinateAlgebra.A h)} |
| 347 | {WP : ℕ → WaveData h DP IP KP Unit} |
| 348 | {MP : ℕ → MeanData h (2 * CoordinateAlgebra.A h)} |
| 349 | |
| 350 | theorem StageMetadata.gain_inequalities (H : StageMetadata WA MA MB WP MP κ) |
| 351 | (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) : |
| 352 | (∀ j, 1 ≤ j → gain h j ≤ h * (WA j).alpha + (WA j).shift + (offsets h).wavePotential) ∧ |
| 353 | (∀ j, 1 ≤ j → gain h j ≤ h * (MA j).alpha + (offsets h).meanStream) ∧ |
| 354 | (∀ j, 1 ≤ j → gain h j ≤ h * (MB j).alpha + (offsets h).directAngular) ∧ |
| 355 | (∀ j, 1 ≤ j → gain h j ≤ h * (WP j).alpha + (WP j).shift + (offsets h).wavePressure) ∧ |
| 356 | (∀ j, 1 ≤ j → gain h j ≤ h * (MP j).alpha + (offsets h).meanPressure) := by |
| 357 | refine ⟨?_, ?_, ?_, ?_, ?_⟩ |
| 358 | · intro j hj |
| 359 | have ha := mul_le_mul_of_nonneg_left (H.wavePotential j hj) hh |
| 360 | have hs := H.wavePotentialShift j hj |
| 361 | have hg := gain_le_wave hh hκ hj |
| 362 | dsimp only [offsets] |
| 363 | linarith |
| 364 | · intro j hj |
| 365 | have ha := mul_le_mul_of_nonneg_left (H.meanStream j hj) hh |
| 366 | simpa only [offsets, add_zero] using (gain_le_mean hh hκ hj).trans ha |
| 367 | · intro j hj |
| 368 | have ha := mul_le_mul_of_nonneg_left (H.directAngular j hj) hh |
| 369 | simpa only [offsets, add_zero] using (gain_le_mean hh hκ hj).trans ha |
| 370 | · intro j hj |
| 371 | have ha := mul_le_mul_of_nonneg_left (H.wavePressure j hj) hh |
| 372 | have hs := H.wavePressureShift j hj |
| 373 | have hg := gain_le_wavePressure hh hκ hj |
| 374 | dsimp only [offsets] |
| 375 | linarith |
| 376 | · intro j hj |
| 377 | have ha := mul_le_mul_of_nonneg_left (H.meanPressure j hj) hh |
| 378 | simpa only [offsets, add_zero] using (gain_le_mean hh hκ hj).trans ha |
| 379 | |
| 380 | /-- All five arithmetic premises of `derived_stage_inputs` are discharged |
| 381 | for the one explicit gain sequence. Analytic input data remain explicit. -/ |
| 382 | theorem StageMetadata.derived_stage_inputs (H : StageMetadata WA MA MB WP MP κ) |
| 383 | (hh : 0 < h) (hh1 : h < 1 / 2) (hκ : 0 ≤ κ ∧ κ ≤ 1 / 100000) |
| 384 | (baseA : VelocityField) (baseP : PressureField) |
| 385 | (hbaseA : ContDiffOn ℝ ∞ baseA (CutStageEstimates.physicalSublevel h qbig)) |
| 386 | (hbaseP : ContDiffOn ℝ ∞ baseP (CutStageEstimates.physicalSublevel h qbig)) |
| 387 | (hqA : ∀ j, qbig ≤ ChartScales.Q (MA j).firstBand) |
| 388 | (hqB : ∀ j, qbig ≤ ChartScales.Q (MB j).firstBand) |
| 389 | (hqP : ∀ j, qbig ≤ ChartScales.Q (MP j).firstBand) : |
| 390 | ∃ CA CB CP : ℕ → ℕ → ℝ, |
| 391 | (∀ j, ContDiffOn ℝ ∞ (potentialStages baseA WA MA j) |
| 392 | (CutStageEstimates.physicalSublevel h qbig)) ∧ |
| 393 | (∀ j, ContDiffOn ℝ ∞ (directStages MB j) |
| 394 | (CutStageEstimates.physicalSublevel h qbig)) ∧ |
| 395 | (∀ j, ContDiffOn ℝ ∞ (pressureStages baseP WP MP j) |
| 396 | (CutStageEstimates.physicalSublevel h qbig)) ∧ |
| 397 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) |
| 398 | (potentialStages baseA WA MA) (gain h) |
| 399 | (potentialLoss h (offsets h).wavePotential (offsets h).meanStream) CA (fun _ _ => 0) |
| 400 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) ∧ |
| 401 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) |
| 402 | (directStages MB) (gain h) (directLoss h (offsets h).directAngular) CB (fun _ _ => 0) |
| 403 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) ∧ |
| 404 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) |
| 405 | (pressureStages baseP WP MP) (gain h) |
| 406 | (pressureLoss h (offsets h).wavePressure (offsets h).meanPressure) CP (fun _ _ => 0) |
| 407 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) := by |
| 408 | obtain ⟨hWA, hMA, hMB, hWP, hMP⟩ := H.gain_inequalities hh.le hκ.2 |
| 409 | exact PhysicalStageBounds.derived_stage_inputs baseA baseP WA MA MB WP MP hh hh1 |
| 410 | hbaseA hbaseP hqA hqB hqP (gain h) (offsets h).wavePotential (offsets h).meanStream |
| 411 | (offsets h).directAngular (offsets h).wavePressure (offsets h).meanPressure |
| 412 | hWA hMA hMB hWP hMP |
| 413 | |
| 414 | end StageInputs |
| 415 | |
| 416 | /-- A single fixed κ, the explicit accuracy sequence, and the explicit |
| 417 | gain work simultaneously at every stage. No iteration is asserted here. -/ |
| 418 | theorem fixed_ledger {h : ℝ} (hh : 0 < h) : |
| 419 | (0 ≤ kappa ∧ kappa ≤ 1 / 100000) ∧ sigma 0 = 1 / 5 ∧ |
| 420 | (∀ n, sigma (n + 1) = sigma n + 1 / 10) ∧ gain h 0 = 0 ∧ |
| 421 | (∀ j, 1 ≤ j → 0 < gain h j) ∧ Monotone (gain h) ∧ Tendsto (gain h) atTop atTop ∧ |
| 422 | (∀ j, 1 ≤ j → |
| 423 | gain h j ≤ h * waveNative kappa j + (-h) + (offsets h).wavePotential ∧ |
| 424 | gain h j ≤ h * meanNative kappa j + (offsets h).meanStream ∧ |
| 425 | gain h j ≤ h * meanNative kappa j + (offsets h).directAngular ∧ |
| 426 | gain h j ≤ h * wavePressureNative kappa j + (-(2 * CoordinateAlgebra.A h)) + (offsets h).wavePressure ∧ |
| 427 | gain h j ≤ h * meanNative kappa j + (offsets h).meanPressure) := |
| 428 | ⟨kappa_admissible, sigma_zero, sigma_succ, gain_zero h, fun _ hj => gain_pos hh hj, |
| 429 | gain_monotone hh.le, gain_tendsto_atTop hh, |
| 430 | fun _ hj => fixed_offset_inequalities hh.le kappa_admissible.2 hj⟩ |
| 431 | |
| 432 | end NavierStokes.ActualIterationLedger |