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 | @[simp] theorem inputSigma_succ (j : ℕ) : inputSigma (j + 1) = sigma j := by |
| 45 | simp [inputSigma] |
| 46 | |
| 47 | theorem inputSigma_formula {j : ℕ} (hj : 1 ≤ j) : |
| 48 | inputSigma j = 1 / 10 + (j : ℝ) / 10 := by |
| 49 | simp only [inputSigma, sigma_formula, Nat.cast_sub hj, Nat.cast_one] |
| 50 | ring |
| 51 | |
| 52 | @[simp] theorem gain_zero (h : ℝ) : gain h 0 = 0 := by simp [gain] |
| 53 | |
| 54 | theorem gain_nonneg {h : ℝ} (hh : 0 ≤ h) (j : ℕ) : 0 ≤ gain h j := by |
| 55 | unfold gain |
| 56 | positivity |
| 57 | |
| 58 | theorem gain_pos {h : ℝ} (hh : 0 < h) {j : ℕ} (hj : 1 ≤ j) : 0 < gain h j := by |
| 59 | have hn : (0 : ℝ) < j := by exact_mod_cast (lt_of_lt_of_le Nat.zero_lt_one hj) |
| 60 | unfold gain |
| 61 | positivity |
| 62 | |
| 63 | theorem gain_monotone {h : ℝ} (hh : 0 ≤ h) : Monotone (gain h) := by |
| 64 | intro j k hjk |
| 65 | have hk : (j : ℝ) ≤ k := by exact_mod_cast hjk |
| 66 | exact div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left hk hh) (by norm_num) |
| 67 | |
| 68 | theorem gain_add_tendsto_atTop {h : ℝ} (hh : 0 < h) (a : ℝ) : |
| 69 | Tendsto (fun j => gain h j + a) atTop atTop := by |
| 70 | apply Filter.tendsto_atTop.mpr |
| 71 | intro b |
| 72 | obtain ⟨N, hN⟩ := exists_nat_gt (10 * (b - a) / h) |
| 73 | filter_upwards [eventually_ge_atTop N] with j hj |
| 74 | have hn : (N : ℝ) ≤ j := by exact_mod_cast hj |
| 75 | have hp := (div_lt_iff₀ hh).mp hN |
| 76 | have hm := mul_le_mul_of_nonneg_left hn hh.le |
| 77 | unfold gain |
| 78 | nlinarith |
| 79 | |
| 80 | theorem gain_tendsto_atTop {h : ℝ} (hh : 0 < h) : Tendsto (gain h) atTop atTop := by |
| 81 | simpa only [add_zero] using gain_add_tendsto_atTop hh 0 |
| 82 | |
| 83 | /-! ## The native increment exponents and their physical comparison -/ |
| 84 | |
| 85 | /-- Conservative class for the actual wave potential. The local inverse |
| 86 | frequency can give an additional half power, which is not needed here. -/ |
| 87 | noncomputable def waveNative (κ : ℝ) (j : ℕ) : ℝ := |
| 88 | ExponentLedger.waveExponent (inputSigma j) - κ |
| 89 | |
| 90 | noncomputable def wavePressureNative (κ : ℝ) (j : ℕ) : ℝ := waveNative κ j + 1 / 2 |
| 91 | |
| 92 | noncomputable def meanNative (κ : ℝ) (j : ℕ) : ℝ := |
| 93 | ExponentLedger.meanUpdateExponent (inputSigma j) κ |
| 94 | |
| 95 | theorem waveNative_formula (κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 96 | waveNative κ j = (j : ℝ) / 10 + (3 / 5 - κ) := by |
| 97 | rw [waveNative, ExponentLedger.waveExponent, inputSigma_formula hj] |
| 98 | ring |
| 99 | |
| 100 | theorem wavePressureNative_formula (κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 101 | wavePressureNative κ j = (j : ℝ) / 10 + (11 / 10 - κ) := by |
| 102 | rw [wavePressureNative, waveNative_formula κ hj] |
| 103 | ring |
| 104 | |
| 105 | theorem meanNative_formula (κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 106 | meanNative κ j = (j : ℝ) / 10 + (11 / 10 - 2 * κ) := by |
| 107 | rw [meanNative, ExponentLedger.meanUpdateExponent, ExponentLedger.meanExponent, inputSigma_formula hj] |
| 108 | ring |
| 109 | |
| 110 | theorem wave_physical_gap (h κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 111 | h * waveNative κ j = gain h j + h * (3 / 5 - κ) := by |
| 112 | rw [waveNative_formula κ hj] |
| 113 | unfold gain |
| 114 | ring |
| 115 | |
| 116 | theorem pressure_physical_gap (h κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 117 | h * wavePressureNative κ j = gain h j + h * (11 / 10 - κ) := by |
| 118 | rw [wavePressureNative_formula κ hj] |
| 119 | unfold gain |
| 120 | ring |
| 121 | |
| 122 | theorem mean_physical_gap (h κ : ℝ) {j : ℕ} (hj : 1 ≤ j) : |
| 123 | h * meanNative κ j = gain h j + h * (11 / 10 - 2 * κ) := by |
| 124 | rw [meanNative_formula κ hj] |
| 125 | unfold gain |
| 126 | ring |
| 127 | |
| 128 | theorem gain_le_wave {h κ : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) {j : ℕ} (hj : 1 ≤ j) : |
| 129 | gain h j ≤ h * waveNative κ j := by |
| 130 | rw [wave_physical_gap h κ hj] |
| 131 | exact le_add_of_nonneg_right (mul_nonneg hh (by linarith)) |
| 132 | |
| 133 | theorem gain_le_wavePressure {h κ : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) {j : ℕ} (hj : 1 ≤ j) : |
| 134 | gain h j ≤ h * wavePressureNative κ j := by |
| 135 | rw [pressure_physical_gap h κ hj] |
| 136 | exact le_add_of_nonneg_right (mul_nonneg hh (by linarith)) |
| 137 | |
| 138 | theorem gain_le_mean {h κ : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) {j : ℕ} (hj : 1 ≤ j) : |
| 139 | gain h j ≤ h * meanNative κ j := by |
| 140 | rw [mean_physical_gap h κ hj] |
| 141 | exact le_add_of_nonneg_right (mul_nonneg hh (by linarith)) |
| 142 | |
| 143 | structure Offsets where |
| 144 | wavePotential : ℝ |
| 145 | meanStream : ℝ |
| 146 | directAngular : ℝ |
| 147 | wavePressure : ℝ |
| 148 | meanPressure : ℝ |
| 149 | |
| 150 | /-! ## Residual indexing after a finite number of cycles -/ |
| 151 | |
| 152 | noncomputable def residualWave (J : ℕ) : ℝ := ExponentLedger.waveExponent (sigma J) |
| 153 | |
| 154 | theorem residualWave_formula (J : ℕ) : residualWave J = (J : ℝ) / 10 + 7 / 10 := by |
| 155 | rw [residualWave, ExponentLedger.waveExponent, sigma_formula] |
| 156 | ring |
| 157 | |
| 158 | theorem residual_physical_gap (h : ℝ) (J : ℕ) : |
| 159 | h * residualWave J = gain h J + 7 * h / 10 := by |
| 160 | rw [residualWave_formula] |
| 161 | unfold gain |
| 162 | ring |
| 163 | |
| 164 | theorem gain_le_residualWave {h : ℝ} (hh : 0 ≤ h) (J : ℕ) : |
| 165 | gain h J ≤ h * residualWave J := by |
| 166 | rw [residual_physical_gap] |
| 167 | linarith |
| 168 | |
| 169 | /-! ## Binding the ledger to the actual physical-stage interface -/ |
| 170 | |
| 171 | section StageInputs |
| 172 | |
| 173 | open PhysicalStageBounds ProblemStatement |
| 174 | |
| 175 | variable {h κ qbig : ℝ} |
| 176 | {DA DP : Type} [NormedAddCommGroup DA] [NormedSpace ℝ DA] |
| 177 | [NormedAddCommGroup DP] [NormedSpace ℝ DP] {IA KA IP KP : Type*} |
| 178 | |
| 179 | /-- Only native exponent metadata occur here. The physical fields, charts, |
| 180 | regularity and local class estimates are those in the supplied `WaveData` |
| 181 | and `MeanData`. The sharper potential class may be weakened to `B−κ`. -/ |
| 182 | structure StageMetadata |
| 183 | (WA : ℕ → WaveData h DA IA KA (Fin 3)) |
| 184 | (MA : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)) |
| 185 | (MB : ℕ → MeanData h (CoordinateAlgebra.A h)) |
| 186 | (WP : ℕ → WaveData h DP IP KP Unit) |
| 187 | (MP : ℕ → MeanData h (2 * CoordinateAlgebra.A h)) (κ : ℝ) : Prop where |
| 188 | wavePotential : ∀ j, 1 ≤ j → waveNative κ j ≤ (WA j).alpha |
| 189 | wavePotentialShift : ∀ j, 1 ≤ j → -h ≤ (WA j).shift |
| 190 | meanStream : ∀ j, 1 ≤ j → meanNative κ j ≤ (MA j).alpha |
| 191 | directAngular : ∀ j, 1 ≤ j → meanNative κ j ≤ (MB j).alpha |
| 192 | wavePressure : ∀ j, 1 ≤ j → wavePressureNative κ j ≤ (WP j).alpha |
| 193 | wavePressureShift : ∀ j, 1 ≤ j → -(2 * CoordinateAlgebra.A h) ≤ (WP j).shift |
| 194 | meanPressure : ∀ j, 1 ≤ j → meanNative κ j ≤ (MP j).alpha |
| 195 | |
| 196 | variable {WA : ℕ → WaveData h DA IA KA (Fin 3)} |
| 197 | {MA : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)} |
| 198 | {MB : ℕ → MeanData h (CoordinateAlgebra.A h)} |
| 199 | {WP : ℕ → WaveData h DP IP KP Unit} |
| 200 | {MP : ℕ → MeanData h (2 * CoordinateAlgebra.A h)} |
| 201 | |
| 202 | end StageInputs |
| 203 | |
| 204 | end NavierStokes.ActualIterationLedger |