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.PhysicalMeanJetBounds |
| 2 | import NavierStokes.MixedDiagonalSchedule |
| 3 | import NavierStokes.TailGaugePotential |
| 4 | |
| 5 | /-! |
| 6 | # Raw physical stage estimates from native wave and mean data |
| 7 | |
| 8 | The data below describe the actual copy families and coherent native mean |
| 9 | fields. Physical derivative estimates are consequences of their native |
| 10 | classes, support and chart identities. No `RawStageBounds` is an input. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.PhysicalStageBounds |
| 16 | |
| 17 | open Set Function Filter ProblemStatement |
| 18 | open scoped Topology ContDiff BigOperators |
| 19 | |
| 20 | private theorem nat_le_infty (m : ℕ) : (m : WithTop ℕ∞) ≤ ∞ := |
| 21 | ENat.natCast_le_of_coe_top_le_withTop le_rfl m |
| 22 | |
| 23 | /-- Small physical q automatically restricts time to the interval on which |
| 24 | the existing physical-copy estimates are uniform. -/ |
| 25 | theorem abs_time_le_one {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 26 | {w : SpaceTime} (hw : w ∈ PhysicalWaveSum.preterminal) |
| 27 | (hq : PhysicalWaveSum.physicalQ h w ≤ 1) : |w.1| ≤ 1 := by |
| 28 | have ha : 0 < 2 * h := by positivity |
| 29 | have ha1 : 2 * h < 1 := by linarith |
| 30 | have he := SimilarityCoordinates.coordinateQ_spec ha ha1 |
| 31 | (p := (1 - w.1, w.2 2)) (sub_pos.mpr hw) |
| 32 | have hn : 0 ≤ (w.2 2) ^ 2 * |
| 33 | SimilarityCoordinates.coordinateQ (2 * h) (1 - w.1, w.2 2) ^ (2 * h) := |
| 34 | mul_nonneg (sq_nonneg _) (Real.rpow_nonneg he.1.le _) |
| 35 | change SimilarityCoordinates.coordinateQ (2 * h) (1 - w.1, w.2 2) ≤ 1 at hq |
| 36 | have heq : SimilarityCoordinates.coordinateQ (2 * h) (1 - w.1, w.2 2) - |
| 37 | (w.2 2) ^ 2 * SimilarityCoordinates.coordinateQ (2 * h) (1 - w.1, w.2 2) ^ (2 * h) = |
| 38 | 1 - w.1 := he.2 |
| 39 | change w.1 < 1 at hw |
| 40 | apply abs_le.mpr |
| 41 | constructor <;> linarith |
| 42 | |
| 43 | section Waves |
| 44 | |
| 45 | variable (h : ℝ) (D : Type) [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 46 | (I K J : Type*) |
| 47 | |
| 48 | /-- A native source and its actual physical copy representation. All |
| 49 | regularity is confined to the valid native patches. The number of |
| 50 | harmonics and the cover gap may vary between stages. -/ |
| 51 | structure WaveData where |
| 52 | lowerRadius : ℝ |
| 53 | upperRadius : ℝ |
| 54 | nativeWidth : ℝ |
| 55 | slowBound : ℝ |
| 56 | frequencyBound : ℝ |
| 57 | alpha : ℝ |
| 58 | shift : ℝ |
| 59 | harmonics : ℕ |
| 60 | gapBound : ℕ |
| 61 | lower_pos : 0 < lowerRadius |
| 62 | width_nonneg : 0 ≤ nativeWidth |
| 63 | slow_nonneg : 0 ≤ slowBound |
| 64 | frequency_one_le : 1 ≤ frequencyBound |
| 65 | strip : WeightedClasses.StripData D |
| 66 | weight : I → ℕ → D → ℝ |
| 67 | source : I → ℕ → D → ℂ |
| 68 | source_bounds : LocalPhysicalCopyBounds.LocalSourceBounds strip h alpha weight source |
| 69 | copies : J → PhysicalCopyBounds.CopyFamily harmonics K |
| 70 | cells : ∀ i, PhysicalCopyBounds.SupportCells (copies i) |
| 71 | chart : ∀ i, LocalPhysicalCopyBounds.CommonChart (copies i) (cells i) |
| 72 | lowerRadius upperRadius h nativeWidth shift source |
| 73 | chart_maps : ∀ i k L, MapsTo ((chart i).map k L) ((chart i).domain k L) strip.domain |
| 74 | carrier : ∀ i, PhysicalCopyBounds.CarrierBounds (copies i) (cells i) |
| 75 | lowerRadius upperRadius h nativeWidth |
| 76 | support : ∀ i, LocalPhysicalCopyBounds.SupportData (copies i) |
| 77 | lowerRadius upperRadius h nativeWidth slowBound gapBound |
| 78 | smooth : ∀ i, LocalPhysicalCopyBounds.SmoothData (copies i) lowerRadius h nativeWidth |
| 79 | frequencies : ∀ i k L, |((copies i).carrier k L).angular| ≤ frequencyBound ∧ |
| 80 | |((copies i).carrier k L).axial| ≤ frequencyBound ∧ |
| 81 | |((copies i).carrier k L).radial| ≤ frequencyBound |
| 82 | |
| 83 | variable {h D I K J} |
| 84 | |
| 85 | noncomputable def WaveData.scalar (W : WaveData h D I K J) (i : J) : SpaceTime → ℂ := |
| 86 | (W.copies i).sum W.lowerRadius h W.nativeWidth |
| 87 | |
| 88 | theorem WaveData.scalar_smooth (W : WaveData h D I K J) |
| 89 | (hh : 0 < h) (hh1 : h < 1 / 2) (i : J) : |
| 90 | ContDiffOn ℝ ∞ (W.scalar i) PhysicalWaveSum.preterminal := |
| 91 | (W.support i).sum_smooth (W.smooth i) (W.cells i) W.lower_pos hh hh1 |
| 92 | |
| 93 | /-- The physical exponent and loss are obtained from the native weighted |
| 94 | source and actual chart map, not from a physical-bound hypothesis. -/ |
| 95 | theorem WaveData.scalar_bound (W : WaveData h D I K J) |
| 96 | (hh : 0 < h) (hh1 : h < 1 / 2) (i : J) (m : ℕ) : |
| 97 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ PhysicalWaveSum.preterminal, |
| 98 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 99 | ‖iteratedFDeriv ℝ m (W.scalar i) w‖ ≤ |
| 100 | C * PhysicalWaveSum.physicalQ h w ^ |
| 101 | (h * W.alpha - PhysicalClassBounds.physicalLoss h W.shift m) := by |
| 102 | obtain ⟨C, hC, hb⟩ := LocalPhysicalCopyBounds.physical_sum_jet_bound_of_weighted |
| 103 | W.source_bounds (W.chart i) (W.chart_maps i) (W.carrier i) (W.support i) (W.smooth i) |
| 104 | hh hh1 W.lower_pos W.slow_nonneg W.width_nonneg W.frequency_one_le (W.frequencies i) m |
| 105 | exact ⟨C, hC, fun w hw hq => hb w hw (abs_time_le_one hh hh1 hw hq)⟩ |
| 106 | |
| 107 | noncomputable def WaveData.vector (W : WaveData h D I K (Fin 3)) : VelocityField := |
| 108 | PhysicalCopyBounds.vectorSum W.copies W.lowerRadius h W.nativeWidth |
| 109 | |
| 110 | theorem WaveData.vector_smooth (W : WaveData h D I K (Fin 3)) |
| 111 | (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 112 | ContDiffOn ℝ ∞ W.vector PhysicalWaveSum.preterminal := |
| 113 | LocalPhysicalCopyBounds.vectorSum_smooth W.support W.smooth W.cells W.lower_pos hh hh1 |
| 114 | |
| 115 | theorem WaveData.vector_bound (W : WaveData h D I K (Fin 3)) |
| 116 | (hh : 0 < h) (hh1 : h < 1 / 2) (m : ℕ) : |
| 117 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ PhysicalWaveSum.preterminal, |
| 118 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 119 | ‖iteratedFDeriv ℝ m W.vector w‖ ≤ |
| 120 | C * PhysicalWaveSum.physicalQ h w ^ |
| 121 | (h * W.alpha - PhysicalClassBounds.physicalLoss h W.shift m) := by |
| 122 | obtain ⟨C, hC, hb⟩ := LocalPhysicalCopyBounds.physical_vector_sum_jet_bound_of_weighted |
| 123 | W.source_bounds W.cells W.chart W.chart_maps W.carrier W.support W.smooth |
| 124 | hh hh1 W.lower_pos W.slow_nonneg W.width_nonneg W.frequency_one_le W.frequencies m |
| 125 | exact ⟨C, hC, fun w hw hq => hb w hw (abs_time_le_one hh hh1 hw hq)⟩ |
| 126 | |
| 127 | noncomputable def WaveData.pressure (W : WaveData h D I K Unit) : PressureField := |
| 128 | fun w => (W.scalar () w).re |
| 129 | |
| 130 | theorem WaveData.pressure_smooth (W : WaveData h D I K Unit) |
| 131 | (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 132 | ContDiffOn ℝ ∞ W.pressure PhysicalWaveSum.preterminal := |
| 133 | Complex.reCLM.contDiff.comp_contDiffOn (W.scalar_smooth hh hh1 ()) |
| 134 | |
| 135 | theorem WaveData.pressure_bound (W : WaveData h D I K Unit) |
| 136 | (hh : 0 < h) (hh1 : h < 1 / 2) (m : ℕ) : |
| 137 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ PhysicalWaveSum.preterminal, |
| 138 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 139 | ‖iteratedFDeriv ℝ m W.pressure w‖ ≤ |
| 140 | C * PhysicalWaveSum.physicalQ h w ^ |
| 141 | (h * W.alpha - PhysicalClassBounds.physicalLoss h W.shift m) := by |
| 142 | obtain ⟨C, hC, hb⟩ := W.scalar_bound hh hh1 () m |
| 143 | refine ⟨‖Complex.reCLM‖ * C, mul_nonneg (norm_nonneg _) hC, ?_⟩ |
| 144 | intro w hw hq |
| 145 | have hs := ((W.scalar_smooth hh hh1 ()).contDiffAt |
| 146 | (PhysicalWaveSum.preterminal_open.mem_nhds hw)).of_le (nat_le_infty m) |
| 147 | have hc := PhysicalWaveSum.norm_jet_linear_comp_at hs Complex.reCLM |
| 148 | exact hc.trans ((mul_le_mul_of_nonneg_left (hb w hw hq) (norm_nonneg _)).trans_eq (by ring)) |
| 149 | |
| 150 | end Waves |
| 151 | |
| 152 | /-- Actual coherent mean fields with native local-band classes. The |
| 153 | construction keeps a single physical field represented by all valid bands. -/ |
| 154 | structure MeanData (h degree : ℝ) where |
| 155 | firstBand : ℕ |
| 156 | gapBound : ℕ |
| 157 | region : Set PhysicalGraphBounds.Plane |
| 158 | lowerRadius : ℝ |
| 159 | upperRadius : ℝ |
| 160 | alpha : ℝ |
| 161 | slow : ℕ → ℝ |
| 162 | family : PhysicalMeanJetBounds.CoherentFamily h degree firstBand gapBound region ℝ |
| 163 | band_four : 4 ≤ firstBand |
| 164 | lower_pos : 0 < lowerRadius |
| 165 | radii_lt : lowerRadius < upperRadius |
| 166 | region_open : IsOpen region |
| 167 | region_covers : PhysicalMeanDomain.normalizedSlowDomain (2 * h) (1 / 4) 4 ⊆ region |
| 168 | smooth : ∀ n ≥ firstBand, ContDiffOn ℝ ∞ (family.native n) (PhysicalMeanDomain.slowDomain region) |
| 169 | support : PhysicalMeanJetBounds.NativeSupport h lowerRadius upperRadius firstBand region family.native |
| 170 | slow_nonneg : ∀ n ≥ firstBand, 0 ≤ slow n |
| 171 | slow_growth : ∃ C : ℝ, 1 ≤ C ∧ ∃ p : ℕ, ∀ n ≥ firstBand, slow n ≤ C * ChartScales.S n ^ p |
| 172 | native_class : PhysicalMeanDomain.LocalBandJets region (ChartScales.epsilon h) slow alpha family.native |
| 173 | |
| 174 | theorem MeanData.nativeJets {h degree : ℝ} (M : MeanData h degree) : |
| 175 | PhysicalMeanJetBounds.NativeJets M.firstBand M.region (h * M.alpha) M.family.native := by |
| 176 | obtain ⟨C, hC, p, hp⟩ := M.slow_growth |
| 177 | exact PhysicalMeanJetBounds.NativeJets.of_localBandJets M.native_class |
| 178 | (fun _ _ => rfl) M.slow_nonneg hC hp |
| 179 | |
| 180 | theorem MeanData.field_smooth {h degree qbig : ℝ} (M : MeanData h degree) |
| 181 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) : |
| 182 | ContDiffOn ℝ ∞ M.family.field (CutStageEstimates.physicalSublevel h qbig) := by |
| 183 | apply (M.family.field_smooth hh hh1 M.lower_pos M.radii_lt M.region_open |
| 184 | M.region_covers M.smooth M.support).mono |
| 185 | intro w hw |
| 186 | exact ⟨hw.1, hw.2.trans_le hq⟩ |
| 187 | |
| 188 | theorem MeanData.angular_smooth {h degree qbig : ℝ} (M : MeanData h degree) |
| 189 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) : |
| 190 | ContDiffOn ℝ ∞ M.family.angularField (CutStageEstimates.physicalSublevel h qbig) := by |
| 191 | apply (M.family.angularField_smooth hh hh1 M.lower_pos M.radii_lt M.region_open |
| 192 | M.region_covers M.smooth M.support).mono |
| 193 | intro w hw |
| 194 | exact ⟨hw.1, hw.2.trans_le hq⟩ |
| 195 | |
| 196 | theorem MeanData.angular_bound {h degree qbig : ℝ} (M : MeanData h degree) |
| 197 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) (m : ℕ) : |
| 198 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 199 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 200 | ‖iteratedFDeriv ℝ m M.family.angularField w‖ ≤ |
| 201 | C * PhysicalWaveSum.physicalQ h w ^ (h * M.alpha - PhysicalMeanJetBounds.loss degree m) := by |
| 202 | obtain ⟨C, hC, hb⟩ := M.family.angularField_jet_bound hh hh1 M.lower_pos M.radii_lt M.band_four |
| 203 | M.region_open M.region_covers M.smooth M.support M.nativeJets m |
| 204 | exact ⟨C, hC, fun w hw hq1 => hb w hw.1 (abs_time_le_one hh hh1 hw.1 hq1) (hw.2.le.trans hq)⟩ |
| 205 | |
| 206 | section GainComparison |
| 207 | |
| 208 | private theorem norm_bound_mono_loss {E : Type*} [NormedAddCommGroup E] {v : E} |
| 209 | {C q g l₁ l₂ : ℝ} (hC : 0 ≤ C) (hq : 0 < q) (hq1 : q ≤ 1) |
| 210 | (hl : l₁ ≤ l₂) (hv : ‖v‖ ≤ C * q ^ (g - l₁)) : |
| 211 | ‖v‖ ≤ C * q ^ (g - l₂) := |
| 212 | hv.trans (mul_le_mul_of_nonneg_left |
| 213 | (Real.rpow_le_rpow_of_exponent_ge hq hq1 (sub_le_sub_left hl g)) hC) |
| 214 | |
| 215 | variable {h g delta : ℝ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 216 | {I K : Type*} |
| 217 | |
| 218 | theorem WaveData.vector_bound_with_gain (W : WaveData h D I K (Fin 3)) |
| 219 | (hh : 0 < h) (hh1 : h < 1 / 2) (hg : g ≤ h * W.alpha + W.shift + delta) (m : ℕ) : |
| 220 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ PhysicalWaveSum.preterminal, |
| 221 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 222 | ‖iteratedFDeriv ℝ m W.vector w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ |
| 223 | (g - (PhysicalGraphBounds.waveLoss h m + delta)) := by |
| 224 | obtain ⟨C, hC, hb⟩ := W.vector_bound hh hh1 m |
| 225 | refine ⟨C, hC, fun w hw hq => (hb w hw hq).trans ?_⟩ |
| 226 | apply mul_le_mul_of_nonneg_left _ hC |
| 227 | apply Real.rpow_le_rpow_of_exponent_ge (PhysicalWaveSum.physicalQ_pos hh hh1 hw) hq |
| 228 | unfold PhysicalClassBounds.physicalLoss |
| 229 | linarith |
| 230 | |
| 231 | theorem WaveData.pressure_bound_with_gain (W : WaveData h D I K Unit) |
| 232 | (hh : 0 < h) (hh1 : h < 1 / 2) (hg : g ≤ h * W.alpha + W.shift + delta) (m : ℕ) : |
| 233 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ PhysicalWaveSum.preterminal, |
| 234 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 235 | ‖iteratedFDeriv ℝ m W.pressure w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ |
| 236 | (g - (PhysicalGraphBounds.waveLoss h m + delta)) := by |
| 237 | obtain ⟨C, hC, hb⟩ := W.pressure_bound hh hh1 m |
| 238 | refine ⟨C, hC, fun w hw hq => (hb w hw hq).trans ?_⟩ |
| 239 | apply mul_le_mul_of_nonneg_left _ hC |
| 240 | apply Real.rpow_le_rpow_of_exponent_ge (PhysicalWaveSum.physicalQ_pos hh hh1 hw) hq |
| 241 | unfold PhysicalClassBounds.physicalLoss |
| 242 | linarith |
| 243 | |
| 244 | theorem MeanData.angular_bound_with_gain {degree qbig : ℝ} (M : MeanData h degree) |
| 245 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) |
| 246 | (hg : g ≤ h * M.alpha + delta) (m : ℕ) : |
| 247 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 248 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 249 | ‖iteratedFDeriv ℝ m M.family.angularField w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ |
| 250 | (g - (PhysicalMeanJetBounds.loss degree m + delta)) := by |
| 251 | obtain ⟨C, hC, hb⟩ := M.angular_bound hh hh1 hq m |
| 252 | refine ⟨C, hC, fun w hw hq1 => (hb w hw hq1).trans ?_⟩ |
| 253 | exact mul_le_mul_of_nonneg_left |
| 254 | (Real.rpow_le_rpow_of_exponent_ge (PhysicalWaveSum.physicalQ_pos hh hh1 hw.1) hq1 |
| 255 | (by linarith)) hC |
| 256 | |
| 257 | end GainComparison |
| 258 | |
| 259 | section Assembly |
| 260 | |
| 261 | variable {h : ℝ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {I K : Type*} |
| 262 | |
| 263 | noncomputable def potentialIncrement (W : WaveData h D I K (Fin 3)) |
| 264 | (M : MeanData h (CoordinateAlgebra.A h - 1 / 2)) : VelocityField := |
| 265 | fun w => W.vector w + M.family.angularField w |
| 266 | |
| 267 | noncomputable def pressureIncrement (W : WaveData h D I K Unit) |
| 268 | (M : MeanData h (2 * CoordinateAlgebra.A h)) : PressureField := |
| 269 | fun w => W.pressure w + M.family.field w |
| 270 | |
| 271 | /-- These losses depend only on fixed physical parameters and jet order. |
| 272 | The five offsets are fixed once for the whole stage sequence. -/ |
| 273 | noncomputable def potentialLoss (h waveOffset meanOffset : ℝ) (m : ℕ) : ℝ := |
| 274 | max (PhysicalGraphBounds.waveLoss h m + waveOffset) |
| 275 | (PhysicalMeanJetBounds.loss (CoordinateAlgebra.A h - 1 / 2) m + meanOffset) |
| 276 | |
| 277 | noncomputable def directLoss (h meanOffset : ℝ) (m : ℕ) : ℝ := |
| 278 | PhysicalMeanJetBounds.loss (CoordinateAlgebra.A h) m + meanOffset |
| 279 | |
| 280 | noncomputable def pressureLoss (h waveOffset meanOffset : ℝ) (m : ℕ) : ℝ := |
| 281 | max (PhysicalGraphBounds.waveLoss h m + waveOffset) |
| 282 | (PhysicalMeanJetBounds.loss (2 * CoordinateAlgebra.A h) m + meanOffset) |
| 283 | |
| 284 | private theorem norm_add_jet_le {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 285 | [NormedAddCommGroup V] [NormedSpace ℝ V] {f g : E → V} {x : E} |
| 286 | (hf : ContDiffAt ℝ ∞ f x) (hg : ContDiffAt ℝ ∞ g x) (m : ℕ) : |
| 287 | ‖iteratedFDeriv ℝ m (fun y => f y + g y) x‖ ≤ |
| 288 | ‖iteratedFDeriv ℝ m f x‖ + ‖iteratedFDeriv ℝ m g x‖ := by |
| 289 | rw [fun_iteratedFDeriv_add_apply (hf.of_le (nat_le_infty m)) (hg.of_le (nat_le_infty m))] |
| 290 | exact norm_add_le _ _ |
| 291 | |
| 292 | theorem potentialIncrement_smooth {qbig : ℝ} (W : WaveData h D I K (Fin 3)) |
| 293 | (M : MeanData h (CoordinateAlgebra.A h - 1 / 2)) (hh : 0 < h) (hh1 : h < 1 / 2) |
| 294 | (hq : qbig ≤ ChartScales.Q M.firstBand) : |
| 295 | ContDiffOn ℝ ∞ (potentialIncrement W M) (CutStageEstimates.physicalSublevel h qbig) := |
| 296 | ((W.vector_smooth hh hh1).mono inter_subset_left).add (M.angular_smooth hh hh1 hq) |
| 297 | |
| 298 | theorem pressureIncrement_smooth {qbig : ℝ} (W : WaveData h D I K Unit) |
| 299 | (M : MeanData h (2 * CoordinateAlgebra.A h)) (hh : 0 < h) (hh1 : h < 1 / 2) |
| 300 | (hq : qbig ≤ ChartScales.Q M.firstBand) : |
| 301 | ContDiffOn ℝ ∞ (pressureIncrement W M) (CutStageEstimates.physicalSublevel h qbig) := |
| 302 | ((W.pressure_smooth hh hh1).mono inter_subset_left).add (M.field_smooth hh hh1 hq) |
| 303 | |
| 304 | end Assembly |
| 305 | |
| 306 | section InitializedStages |
| 307 | |
| 308 | variable {X V : Type*} [Add V] |
| 309 | |
| 310 | /-- The zeroth increment is the base plus finite initialization. Positive |
| 311 | indices keep the supplied correction increments exactly. -/ |
| 312 | noncomputable def addBaseAtZero (base : X → V) (increments : ℕ → X → V) (j : ℕ) (x : X) : V := |
| 313 | if j = 0 then base x + increments 0 x else increments j x |
| 314 | |
| 315 | @[simp] theorem addBaseAtZero_zero (base : X → V) (increments : ℕ → X → V) : |
| 316 | addBaseAtZero base increments 0 = fun x => base x + increments 0 x := by |
| 317 | funext x |
| 318 | simp [addBaseAtZero] |
| 319 | |
| 320 | end InitializedStages |
| 321 | |
| 322 | section Sequences |
| 323 | |
| 324 | variable {h qbig : ℝ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {I K : Type*} |
| 325 | |
| 326 | noncomputable def potentialStages (base : VelocityField) |
| 327 | (W : ℕ → WaveData h D I K (Fin 3)) |
| 328 | (M : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)) : ℕ → VelocityField := |
| 329 | addBaseAtZero base (fun j => potentialIncrement (W j) (M j)) |
| 330 | |
| 331 | noncomputable def directStages (M : ℕ → MeanData h (CoordinateAlgebra.A h)) : ℕ → VelocityField := |
| 332 | fun j => (M j).family.angularField |
| 333 | |
| 334 | noncomputable def pressureStages (base : PressureField) |
| 335 | (W : ℕ → WaveData h D I K Unit) |
| 336 | (M : ℕ → MeanData h (2 * CoordinateAlgebra.A h)) : ℕ → PressureField := |
| 337 | addBaseAtZero base (fun j => pressureIncrement (W j) (M j)) |
| 338 | |
| 339 | private theorem exists_raw_constants {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 340 | {F : ℕ → SpaceTime → V} {g L : ℕ → ℝ} |
| 341 | (hb : ∀ j, 1 ≤ j → ∀ m, ∃ C : ℝ, 0 ≤ C ∧ |
| 342 | ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 343 | ‖iteratedFDeriv ℝ m (F j) w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ (g j - L m)) : |
| 344 | ∃ C : ℕ → ℕ → ℝ, (∀ j m, 0 ≤ C j m) ∧ |
| 345 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) F g L C (fun _ _ => 0) |
| 346 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) := by |
| 347 | have he : ∀ j m, ∃ C : ℝ, 0 ≤ C ∧ (1 ≤ j → |
| 348 | ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 349 | ‖iteratedFDeriv ℝ m (F j) w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ (g j - L m)) := by |
| 350 | intro j m |
| 351 | by_cases hj : 1 ≤ j |
| 352 | · obtain ⟨C, hC, hc⟩ := hb j hj m |
| 353 | exact ⟨C, hC, fun _ => hc⟩ |
| 354 | · exact ⟨0, le_rfl, fun hj' => False.elim (hj hj')⟩ |
| 355 | choose C hC hb using he |
| 356 | refine ⟨C, hC, fun j hj m w hw hq => ?_⟩ |
| 357 | simpa only [Real.rpow_zero, mul_one] using hb j m hj w hw.2 hq |
| 358 | |
| 359 | end Sequences |
| 360 | |
| 361 | section JointInputs |
| 362 | |
| 363 | variable {h qbig : ℝ} |
| 364 | {DA DP : Type} [NormedAddCommGroup DA] [NormedSpace ℝ DA] |
| 365 | [NormedAddCommGroup DP] [NormedSpace ℝ DP] {IA KA IP KP : Type*} |
| 366 | |
| 367 | end JointInputs |
| 368 | |
| 369 | section RepresentationTransfer |
| 370 | |
| 371 | variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 372 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 373 | |
| 374 | end RepresentationTransfer |
| 375 | |
| 376 | section ActualBase |
| 377 | |
| 378 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 379 | (H : NominalConeAssembly.Certificate W) {d : ModulatedProfileAssembly.LoopData W} |
| 380 | (v : ModulatedProfileAssembly.Witness d) |
| 381 | |
| 382 | end ActualBase |
| 383 | |
| 384 | end NavierStokes.PhysicalStageBounds |