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.LocalMeanPhysicalBounds |
| 2 | import NavierStokes.InitializedPhysicalBackground |
| 3 | import NavierStokes.ActualIterationLedger |
| 4 | import NavierStokes.ActualMeanPhysicalData |
| 5 | |
| 6 | /-! |
| 7 | # Physical stage estimates from the actual native mean region |
| 8 | |
| 9 | Mean families are supplied on the original normalized region `(1/2,2)`. |
| 10 | Only native smoothness, support, and class estimates are input. The |
| 11 | physical stage bounds and the initialized velocity estimate are derived. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ActualPhysicalStageBounds |
| 17 | |
| 18 | open Set Function Filter ProblemStatement DiagonalResidual |
| 19 | open scoped Topology ContDiff BigOperators |
| 20 | |
| 21 | noncomputable def region (h : ℝ) : Set PhysicalGraphBounds.Plane := |
| 22 | PhysicalMeanDomain.normalizedSlowDomain (2 * h) (1 / 2) 2 |
| 23 | |
| 24 | theorem region_open {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : IsOpen (region h) := |
| 25 | PhysicalMeanDomain.normalizedSlowDomain_open (by linarith) (by linarith) _ _ |
| 26 | |
| 27 | /-- Native facts about an already constructed coherent mean family. |
| 28 | This record neither constructs a new physical field nor assumes physical |
| 29 | derivative bounds. -/ |
| 30 | structure MeanInput (h degree : ℝ) where |
| 31 | firstBand : ℕ |
| 32 | gapBound : ℕ |
| 33 | lowerRadius : ℝ |
| 34 | upperRadius : ℝ |
| 35 | alpha : ℝ |
| 36 | family : PhysicalMeanJetBounds.CoherentFamily h degree firstBand gapBound (region h) ℝ |
| 37 | band_four : 4 ≤ firstBand |
| 38 | lower_pos : 0 < lowerRadius |
| 39 | radii_lt : lowerRadius < upperRadius |
| 40 | smooth : ∀ n ≥ firstBand, ContDiffOn ℝ ∞ (family.native n) |
| 41 | (PhysicalMeanDomain.slowDomain (region h)) |
| 42 | support : PhysicalMeanJetBounds.NativeSupport h lowerRadius upperRadius firstBand (region h) family.native |
| 43 | jets : PhysicalMeanJetBounds.NativeJets firstBand (region h) (h * alpha) family.native |
| 44 | |
| 45 | /-- Package the existing moving-field and native-class theorems without |
| 46 | changing the supplied coherent physical field. -/ |
| 47 | noncomputable def MeanInput.ofMoving {h degree a b α : ℝ} {N Δ : ℕ} |
| 48 | (R : LocalSignedRequest.SlowRegion (2 * h)) (hR : R.carrier = region h) |
| 49 | (M : PhysicalMeanJetBounds.CoherentFamily h degree N Δ (region h) ℝ) |
| 50 | (hN : 4 ≤ N) (ha : 0 < a) (hab : a < b) |
| 51 | (hm : GaugeMomentBalances.MovingField R a b M.native) |
| 52 | (hj : PhysicalMeanJetBounds.NativeJets N R.carrier (h * α) M.native) : MeanInput h degree where |
| 53 | firstBand := N |
| 54 | gapBound := Δ |
| 55 | lowerRadius := a |
| 56 | upperRadius := b |
| 57 | alpha := α |
| 58 | family := M |
| 59 | band_four := hN |
| 60 | lower_pos := ha |
| 61 | radii_lt := hab |
| 62 | smooth n _ := by simpa only [hR] using hm.smooth n |
| 63 | support n _ := by |
| 64 | have hs := hm.supported n |
| 65 | simp only [hR] at hs |
| 66 | exact hs |
| 67 | jets := by simpa only [hR] using hj |
| 68 | |
| 69 | theorem MeanInput.field_smooth {h degree qbig : ℝ} (M : MeanInput h degree) |
| 70 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) : |
| 71 | ContDiffOn ℝ ∞ M.family.field (CutStageEstimates.physicalSublevel h qbig) := |
| 72 | LocalMeanPhysicalBounds.field_sublevel_smooth M.family hh hh1 M.lower_pos M.radii_lt |
| 73 | (region_open hh hh1) (fun _ hx => hx) M.smooth M.support hq |
| 74 | |
| 75 | theorem MeanInput.angular_smooth {h degree qbig : ℝ} (M : MeanInput h degree) |
| 76 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) : |
| 77 | ContDiffOn ℝ ∞ M.family.angularField (CutStageEstimates.physicalSublevel h qbig) := |
| 78 | LocalMeanPhysicalBounds.angularField_sublevel_smooth M.family hh hh1 M.lower_pos M.radii_lt |
| 79 | (region_open hh hh1) (fun _ hx => hx) M.smooth M.support hq |
| 80 | |
| 81 | theorem MeanInput.field_bound {h degree qbig : ℝ} (M : MeanInput h degree) |
| 82 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) (m : ℕ) : |
| 83 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 84 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 85 | ‖iteratedFDeriv ℝ m M.family.field w‖ ≤ |
| 86 | C * PhysicalWaveSum.physicalQ h w ^ (h * M.alpha - PhysicalMeanJetBounds.loss degree m) := |
| 87 | LocalMeanPhysicalBounds.field_sublevel_bound M.family hh hh1 M.lower_pos M.radii_lt M.band_four |
| 88 | (region_open hh hh1) (fun _ hx => hx) M.smooth M.support M.jets hq m |
| 89 | |
| 90 | theorem MeanInput.angular_bound {h degree qbig : ℝ} (M : MeanInput h degree) |
| 91 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) (m : ℕ) : |
| 92 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 93 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 94 | ‖iteratedFDeriv ℝ m M.family.angularField w‖ ≤ |
| 95 | C * PhysicalWaveSum.physicalQ h w ^ (h * M.alpha - PhysicalMeanJetBounds.loss degree m) := |
| 96 | LocalMeanPhysicalBounds.angularField_sublevel_bound M.family hh hh1 M.lower_pos M.radii_lt M.band_four |
| 97 | (region_open hh hh1) (fun _ hx => hx) M.smooth M.support M.jets hq m |
| 98 | |
| 99 | theorem MeanInput.field_bound_with_gain {h degree qbig g delta : ℝ} (M : MeanInput h degree) |
| 100 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) |
| 101 | (hg : g ≤ h * M.alpha + delta) (m : ℕ) : |
| 102 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 103 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 104 | ‖iteratedFDeriv ℝ m M.family.field w‖ ≤ |
| 105 | C * PhysicalWaveSum.physicalQ h w ^ (g - (PhysicalMeanJetBounds.loss degree m + delta)) := by |
| 106 | obtain ⟨C, hC, hb⟩ := M.field_bound hh hh1 hq m |
| 107 | refine ⟨C, hC, fun w hw hqw => (hb w hw hqw).trans ?_⟩ |
| 108 | exact mul_le_mul_of_nonneg_left |
| 109 | (Real.rpow_le_rpow_of_exponent_ge (PhysicalWaveSum.physicalQ_pos hh hh1 hw.1) hqw |
| 110 | (by linarith)) hC |
| 111 | |
| 112 | theorem MeanInput.angular_bound_with_gain {h degree qbig g delta : ℝ} (M : MeanInput h degree) |
| 113 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) |
| 114 | (hg : g ≤ h * M.alpha + delta) (m : ℕ) : |
| 115 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 116 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 117 | ‖iteratedFDeriv ℝ m M.family.angularField w‖ ≤ |
| 118 | C * PhysicalWaveSum.physicalQ h w ^ (g - (PhysicalMeanJetBounds.loss degree m + delta)) := by |
| 119 | obtain ⟨C, hC, hb⟩ := M.angular_bound hh hh1 hq m |
| 120 | refine ⟨C, hC, fun w hw hqw => (hb w hw hqw).trans ?_⟩ |
| 121 | exact mul_le_mul_of_nonneg_left |
| 122 | (Real.rpow_le_rpow_of_exponent_ge (PhysicalWaveSum.physicalQ_pos hh hh1 hw.1) hqw |
| 123 | (by linarith)) hC |
| 124 | |
| 125 | section JetAlgebra |
| 126 | |
| 127 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 128 | {h qbig : ℝ} {f g : SpaceTime → V} {m : ℕ} {r s : ℝ} |
| 129 | |
| 130 | theorem weaken_bound (hh : 0 < h) (hh1 : h < 1 / 2) (hsr : s ≤ r) |
| 131 | (hb : ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 132 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 133 | ‖iteratedFDeriv ℝ m f w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ r) : |
| 134 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 135 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 136 | ‖iteratedFDeriv ℝ m f w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ s := by |
| 137 | obtain ⟨C, hC, hb⟩ := hb |
| 138 | exact ⟨C, hC, fun w hw hqw => (hb w hw hqw).trans |
| 139 | (mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge |
| 140 | (PhysicalWaveSum.physicalQ_pos hh hh1 hw.1) hqw hsr) hC)⟩ |
| 141 | |
| 142 | theorem add_bounds (hh : 0 < h) (hh1 : h < 1 / 2) |
| 143 | (hf : ContDiffOn ℝ ∞ f (CutStageEstimates.physicalSublevel h qbig)) |
| 144 | (hg : ContDiffOn ℝ ∞ g (CutStageEstimates.physicalSublevel h qbig)) |
| 145 | (hfb : ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 146 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 147 | ‖iteratedFDeriv ℝ m f w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ r) |
| 148 | (hgb : ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 149 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 150 | ‖iteratedFDeriv ℝ m g w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ r) : |
| 151 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 152 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 153 | ‖iteratedFDeriv ℝ m (fun z => f z + g z) w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ r := by |
| 154 | obtain ⟨A, hA, hfa⟩ := hfb |
| 155 | obtain ⟨B, hB, hgb⟩ := hgb |
| 156 | refine ⟨A + B, add_nonneg hA hB, fun w hw hqw => ?_⟩ |
| 157 | exact (ResidualStability.norm_jet_add_le |
| 158 | (CutStageEstimates.physicalSublevel_open hh hh1 qbig) hf hg hw m).trans |
| 159 | ((add_le_add (hfa w hw hqw) (hgb w hw hqw)).trans_eq (by ring)) |
| 160 | |
| 161 | end JetAlgebra |
| 162 | |
| 163 | section Increments |
| 164 | |
| 165 | variable {h : ℝ} |
| 166 | {DP DS : Type} [NormedAddCommGroup DP] [NormedSpace ℝ DP] |
| 167 | [NormedAddCommGroup DS] [NormedSpace ℝ DS] {IP KP IS KS : Type*} |
| 168 | |
| 169 | /-- The four actual potential contributions of one cycle. -/ |
| 170 | noncomputable def potentialIncrement |
| 171 | (WP : PhysicalStageBounds.WaveData h DP IP KP (Fin 3)) |
| 172 | (WS : PhysicalStageBounds.WaveData h DS IS KS (Fin 3)) |
| 173 | (MT MR : MeanInput h (CoordinateAlgebra.A h - 1 / 2)) : VelocityField := |
| 174 | fun w => WP.vector w + WS.vector w + MT.family.angularField w + MR.family.angularField w |
| 175 | |
| 176 | noncomputable def pressureIncrement |
| 177 | (WP : PhysicalStageBounds.WaveData h DP IP KP Unit) |
| 178 | (WS : PhysicalStageBounds.WaveData h DS IS KS Unit) |
| 179 | (MP : MeanInput h (2 * CoordinateAlgebra.A h)) : PressureField := |
| 180 | fun w => WP.pressure w + WS.pressure w + MP.family.field w |
| 181 | |
| 182 | theorem potentialIncrement_smooth |
| 183 | (WP : PhysicalStageBounds.WaveData h DP IP KP (Fin 3)) |
| 184 | (WS : PhysicalStageBounds.WaveData h DS IS KS (Fin 3)) |
| 185 | (MT MR : MeanInput h (CoordinateAlgebra.A h - 1 / 2)) |
| 186 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} |
| 187 | (hqT : qbig ≤ ChartScales.Q MT.firstBand) (hqR : qbig ≤ ChartScales.Q MR.firstBand) : |
| 188 | ContDiffOn ℝ ∞ (potentialIncrement WP WS MT MR) (CutStageEstimates.physicalSublevel h qbig) := |
| 189 | ((((WP.vector_smooth hh hh1).mono inter_subset_left).add |
| 190 | ((WS.vector_smooth hh hh1).mono inter_subset_left)).add |
| 191 | (MT.angular_smooth hh hh1 hqT)).add (MR.angular_smooth hh hh1 hqR) |
| 192 | |
| 193 | theorem pressureIncrement_smooth |
| 194 | (WP : PhysicalStageBounds.WaveData h DP IP KP Unit) |
| 195 | (WS : PhysicalStageBounds.WaveData h DS IS KS Unit) |
| 196 | (MP : MeanInput h (2 * CoordinateAlgebra.A h)) |
| 197 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} (hq : qbig ≤ ChartScales.Q MP.firstBand) : |
| 198 | ContDiffOn ℝ ∞ (pressureIncrement WP WS MP) (CutStageEstimates.physicalSublevel h qbig) := |
| 199 | (((WP.pressure_smooth hh hh1).mono inter_subset_left).add |
| 200 | ((WS.pressure_smooth hh hh1).mono inter_subset_left)).add (MP.field_smooth hh hh1 hq) |
| 201 | |
| 202 | theorem potentialIncrement_bound |
| 203 | (WP : PhysicalStageBounds.WaveData h DP IP KP (Fin 3)) |
| 204 | (WS : PhysicalStageBounds.WaveData h DS IS KS (Fin 3)) |
| 205 | (MT MR : MeanInput h (CoordinateAlgebra.A h - 1 / 2)) |
| 206 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig g dw dm : ℝ} |
| 207 | (hqT : qbig ≤ ChartScales.Q MT.firstBand) (hqR : qbig ≤ ChartScales.Q MR.firstBand) |
| 208 | (hWP : g ≤ h * WP.alpha + WP.shift + dw) (hWS : g ≤ h * WS.alpha + WS.shift + dw) |
| 209 | (hMT : g ≤ h * MT.alpha + dm) (hMR : g ≤ h * MR.alpha + dm) (m : ℕ) : |
| 210 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 211 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 212 | ‖iteratedFDeriv ℝ m (potentialIncrement WP WS MT MR) w‖ ≤ |
| 213 | C * PhysicalWaveSum.physicalQ h w ^ (g - PhysicalStageBounds.potentialLoss h dw dm m) := by |
| 214 | have hp0 := WP.vector_bound_with_gain hh hh1 hWP m |
| 215 | have hs0 := WS.vector_bound_with_gain hh hh1 hWS m |
| 216 | have hp := weaken_bound (qbig := qbig) (s := g - PhysicalStageBounds.potentialLoss h dw dm m) hh hh1 |
| 217 | (sub_le_sub_left (le_max_left _ _) g) (by |
| 218 | obtain ⟨C, hC, hb⟩ := hp0 |
| 219 | exact ⟨C, hC, fun w hw hqw => hb w hw.1 hqw⟩) |
| 220 | have hs := weaken_bound (qbig := qbig) (s := g - PhysicalStageBounds.potentialLoss h dw dm m) hh hh1 |
| 221 | (sub_le_sub_left (le_max_left _ _) g) (by |
| 222 | obtain ⟨C, hC, hb⟩ := hs0 |
| 223 | exact ⟨C, hC, fun w hw hqw => hb w hw.1 hqw⟩) |
| 224 | have ht := weaken_bound (s := g - PhysicalStageBounds.potentialLoss h dw dm m) |
| 225 | hh hh1 (sub_le_sub_left (le_max_right _ _) g) |
| 226 | (MT.angular_bound_with_gain hh hh1 hqT hMT m) |
| 227 | have hr := weaken_bound (s := g - PhysicalStageBounds.potentialLoss h dw dm m) |
| 228 | hh hh1 (sub_le_sub_left (le_max_right _ _) g) |
| 229 | (MR.angular_bound_with_gain hh hh1 hqR hMR m) |
| 230 | have sp : ContDiffOn ℝ ∞ WP.vector (CutStageEstimates.physicalSublevel h qbig) := |
| 231 | (WP.vector_smooth hh hh1).mono inter_subset_left |
| 232 | have ss : ContDiffOn ℝ ∞ WS.vector (CutStageEstimates.physicalSublevel h qbig) := |
| 233 | (WS.vector_smooth hh hh1).mono inter_subset_left |
| 234 | have st := MT.angular_smooth hh hh1 hqT |
| 235 | exact add_bounds hh hh1 ((sp.add ss).add st) (MR.angular_smooth hh hh1 hqR) |
| 236 | (add_bounds hh hh1 (sp.add ss) st (add_bounds hh hh1 sp ss hp hs) ht) hr |
| 237 | |
| 238 | theorem pressureIncrement_bound |
| 239 | (WP : PhysicalStageBounds.WaveData h DP IP KP Unit) |
| 240 | (WS : PhysicalStageBounds.WaveData h DS IS KS Unit) |
| 241 | (MP : MeanInput h (2 * CoordinateAlgebra.A h)) |
| 242 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig g dw dm : ℝ} |
| 243 | (hq : qbig ≤ ChartScales.Q MP.firstBand) |
| 244 | (hWP : g ≤ h * WP.alpha + WP.shift + dw) (hWS : g ≤ h * WS.alpha + WS.shift + dw) |
| 245 | (hMP : g ≤ h * MP.alpha + dm) (m : ℕ) : |
| 246 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 247 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 248 | ‖iteratedFDeriv ℝ m (pressureIncrement WP WS MP) w‖ ≤ |
| 249 | C * PhysicalWaveSum.physicalQ h w ^ (g - PhysicalStageBounds.pressureLoss h dw dm m) := by |
| 250 | have hp0 := WP.pressure_bound_with_gain hh hh1 hWP m |
| 251 | have hs0 := WS.pressure_bound_with_gain hh hh1 hWS m |
| 252 | have hp := weaken_bound (qbig := qbig) (s := g - PhysicalStageBounds.pressureLoss h dw dm m) hh hh1 |
| 253 | (sub_le_sub_left (le_max_left _ _) g) (by |
| 254 | obtain ⟨C, hC, hb⟩ := hp0 |
| 255 | exact ⟨C, hC, fun w hw hqw => hb w hw.1 hqw⟩) |
| 256 | have hs := weaken_bound (qbig := qbig) (s := g - PhysicalStageBounds.pressureLoss h dw dm m) hh hh1 |
| 257 | (sub_le_sub_left (le_max_left _ _) g) (by |
| 258 | obtain ⟨C, hC, hb⟩ := hs0 |
| 259 | exact ⟨C, hC, fun w hw hqw => hb w hw.1 hqw⟩) |
| 260 | have hm := weaken_bound (s := g - PhysicalStageBounds.pressureLoss h dw dm m) |
| 261 | hh hh1 (sub_le_sub_left (le_max_right _ _) g) |
| 262 | (MP.field_bound_with_gain hh hh1 hq hMP m) |
| 263 | have sp : ContDiffOn ℝ ∞ WP.pressure (CutStageEstimates.physicalSublevel h qbig) := |
| 264 | (WP.pressure_smooth hh hh1).mono inter_subset_left |
| 265 | have ss : ContDiffOn ℝ ∞ WS.pressure (CutStageEstimates.physicalSublevel h qbig) := |
| 266 | (WS.pressure_smooth hh hh1).mono inter_subset_left |
| 267 | exact add_bounds hh hh1 (sp.add ss) (MP.field_smooth hh hh1 hq) |
| 268 | (add_bounds hh hh1 sp ss hp hs) hm |
| 269 | |
| 270 | end Increments |
| 271 | |
| 272 | /-! ## Positive correction stages and the exact ledger gain -/ |
| 273 | |
| 274 | structure CycleInputs (h : ℝ) (DP : Type) [NormedAddCommGroup DP] [NormedSpace ℝ DP] |
| 275 | (IP KP : Type*) (DS : Type) [NormedAddCommGroup DS] [NormedSpace ℝ DS] (IS KS : Type*) where |
| 276 | particularPotential : ℕ → PhysicalStageBounds.WaveData h DP IP KP (Fin 3) |
| 277 | signedPotential : ℕ → PhysicalStageBounds.WaveData h DS IS KS (Fin 3) |
| 278 | particularPressure : ℕ → PhysicalStageBounds.WaveData h DP IP KP Unit |
| 279 | signedPressure : ℕ → PhysicalStageBounds.WaveData h DS IS KS Unit |
| 280 | temporal : ℕ → MeanInput h (CoordinateAlgebra.A h - 1 / 2) |
| 281 | rank : ℕ → MeanInput h (CoordinateAlgebra.A h - 1 / 2) |
| 282 | angular : ℕ → MeanInput h (CoordinateAlgebra.A h) |
| 283 | pressure : ℕ → MeanInput h (2 * CoordinateAlgebra.A h) |
| 284 | |
| 285 | namespace CycleInputs |
| 286 | |
| 287 | variable {h : ℝ} |
| 288 | {DP DS : Type} [NormedAddCommGroup DP] [NormedSpace ℝ DP] |
| 289 | [NormedAddCommGroup DS] [NormedSpace ℝ DS] {IP KP IS KS : Type*} |
| 290 | (D : CycleInputs h DP IP KP DS IS KS) |
| 291 | |
| 292 | noncomputable def potential (k : ℕ) : VelocityField := |
| 293 | potentialIncrement (D.particularPotential k) (D.signedPotential k) (D.temporal k) (D.rank k) |
| 294 | |
| 295 | noncomputable def direct (k : ℕ) : VelocityField := (D.angular k).family.angularField |
| 296 | |
| 297 | noncomputable def pressureField (k : ℕ) : PressureField := |
| 298 | pressureIncrement (D.particularPressure k) (D.signedPressure k) (D.pressure k) |
| 299 | |
| 300 | /-- Cycle `k` contributes physical stage `k+1`. These are native exponent |
| 301 | and chart-degree comparisons, not physical estimates. -/ |
| 302 | structure Metadata (κ : ℝ) : Prop where |
| 303 | particularPotential : ∀ k, ActualIterationLedger.waveNative κ (k + 1) ≤ (D.particularPotential k).alpha |
| 304 | particularPotentialShift : ∀ k, -h ≤ (D.particularPotential k).shift |
| 305 | signedPotential : ∀ k, ActualIterationLedger.waveNative κ (k + 1) ≤ (D.signedPotential k).alpha |
| 306 | signedPotentialShift : ∀ k, -h ≤ (D.signedPotential k).shift |
| 307 | temporal : ∀ k, ActualIterationLedger.meanNative κ (k + 1) ≤ (D.temporal k).alpha |
| 308 | rank : ∀ k, ActualIterationLedger.meanNative κ (k + 1) ≤ (D.rank k).alpha |
| 309 | angular : ∀ k, ActualIterationLedger.meanNative κ (k + 1) ≤ (D.angular k).alpha |
| 310 | particularPressure : ∀ k, ActualIterationLedger.wavePressureNative κ (k + 1) ≤ (D.particularPressure k).alpha |
| 311 | particularPressureShift : ∀ k, -(2 * CoordinateAlgebra.A h) ≤ (D.particularPressure k).shift |
| 312 | signedPressure : ∀ k, ActualIterationLedger.wavePressureNative κ (k + 1) ≤ (D.signedPressure k).alpha |
| 313 | signedPressureShift : ∀ k, -(2 * CoordinateAlgebra.A h) ≤ (D.signedPressure k).shift |
| 314 | pressure : ∀ k, ActualIterationLedger.meanNative κ (k + 1) ≤ (D.pressure k).alpha |
| 315 | |
| 316 | structure ValidScale (qbig : ℝ) : Prop where |
| 317 | temporal : ∀ k, qbig ≤ ChartScales.Q (D.temporal k).firstBand |
| 318 | rank : ∀ k, qbig ≤ ChartScales.Q (D.rank k).firstBand |
| 319 | angular : ∀ k, qbig ≤ ChartScales.Q (D.angular k).firstBand |
| 320 | pressure : ∀ k, qbig ≤ ChartScales.Q (D.pressure k).firstBand |
| 321 | |
| 322 | end CycleInputs |
| 323 | |
| 324 | private theorem potential_gain {h κ α s : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) |
| 325 | (k : ℕ) (hα : ActualIterationLedger.waveNative κ (k + 1) ≤ α) (hs : -h ≤ s) : |
| 326 | ActualIterationLedger.gain h (k + 1) ≤ h * α + s + h := by |
| 327 | have hg := ActualIterationLedger.gain_le_wave hh hκ (Nat.succ_pos k) |
| 328 | have ha := mul_le_mul_of_nonneg_left hα hh |
| 329 | linarith |
| 330 | |
| 331 | private theorem pressure_gain {h κ α s : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) |
| 332 | (k : ℕ) (hα : ActualIterationLedger.wavePressureNative κ (k + 1) ≤ α) |
| 333 | (hs : -(2 * CoordinateAlgebra.A h) ≤ s) : |
| 334 | ActualIterationLedger.gain h (k + 1) ≤ h * α + s + 2 * CoordinateAlgebra.A h := by |
| 335 | have hg := ActualIterationLedger.gain_le_wavePressure hh hκ (Nat.succ_pos k) |
| 336 | have ha := mul_le_mul_of_nonneg_left hα hh |
| 337 | linarith |
| 338 | |
| 339 | private theorem mean_gain {h κ α : ℝ} (hh : 0 ≤ h) (hκ : κ ≤ 1 / 100000) |
| 340 | (k : ℕ) (hα : ActualIterationLedger.meanNative κ (k + 1) ≤ α) : |
| 341 | ActualIterationLedger.gain h (k + 1) ≤ h * α + 0 := by |
| 342 | simpa using (ActualIterationLedger.gain_le_mean hh hκ (Nat.succ_pos k)).trans |
| 343 | (mul_le_mul_of_nonneg_left hα hh) |
| 344 | |
| 345 | namespace CycleInputs |
| 346 | |
| 347 | variable {h κ qbig : ℝ} |
| 348 | {DP DS : Type} [NormedAddCommGroup DP] [NormedSpace ℝ DP] |
| 349 | [NormedAddCommGroup DS] [NormedSpace ℝ DS] {IP KP IS KS : Type*} |
| 350 | (D : CycleInputs h DP IP KP DS IS KS) |
| 351 | |
| 352 | theorem potential_bound (H : D.Metadata κ) (Q : D.ValidScale qbig) |
| 353 | (hh : 0 < h) (hh1 : h < 1 / 2) (hκ : κ ≤ 1 / 100000) (k m : ℕ) : |
| 354 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 355 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 356 | ‖iteratedFDeriv ℝ m (D.potential k) w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ |
| 357 | (ActualIterationLedger.gain h (k + 1) - PhysicalStageBounds.potentialLoss h h 0 m) := |
| 358 | potentialIncrement_bound (D.particularPotential k) (D.signedPotential k) (D.temporal k) (D.rank k) |
| 359 | hh hh1 (Q.temporal k) (Q.rank k) |
| 360 | (potential_gain hh.le hκ k (H.particularPotential k) (H.particularPotentialShift k)) |
| 361 | (potential_gain hh.le hκ k (H.signedPotential k) (H.signedPotentialShift k)) |
| 362 | (mean_gain hh.le hκ k (H.temporal k)) (mean_gain hh.le hκ k (H.rank k)) m |
| 363 | |
| 364 | theorem direct_bound (H : D.Metadata κ) (Q : D.ValidScale qbig) |
| 365 | (hh : 0 < h) (hh1 : h < 1 / 2) (hκ : κ ≤ 1 / 100000) (k m : ℕ) : |
| 366 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 367 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 368 | ‖iteratedFDeriv ℝ m (D.direct k) w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ |
| 369 | (ActualIterationLedger.gain h (k + 1) - PhysicalStageBounds.directLoss h 0 m) := |
| 370 | (D.angular k).angular_bound_with_gain hh hh1 (Q.angular k) (mean_gain hh.le hκ k (H.angular k)) m |
| 371 | |
| 372 | theorem pressure_bound (H : D.Metadata κ) (Q : D.ValidScale qbig) |
| 373 | (hh : 0 < h) (hh1 : h < 1 / 2) (hκ : κ ≤ 1 / 100000) (k m : ℕ) : |
| 374 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 375 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 376 | ‖iteratedFDeriv ℝ m (D.pressureField k) w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ |
| 377 | (ActualIterationLedger.gain h (k + 1) - PhysicalStageBounds.pressureLoss h (2 * CoordinateAlgebra.A h) 0 m) := |
| 378 | pressureIncrement_bound (D.particularPressure k) (D.signedPressure k) (D.pressure k) |
| 379 | hh hh1 (Q.pressure k) |
| 380 | (pressure_gain hh.le hκ k (H.particularPressure k) (H.particularPressureShift k)) |
| 381 | (pressure_gain hh.le hκ k (H.signedPressure k) (H.signedPressureShift k)) |
| 382 | (mean_gain hh.le hκ k (H.pressure k)) m |
| 383 | |
| 384 | theorem potential_smooth (Q : D.ValidScale qbig) (hh : 0 < h) (hh1 : h < 1 / 2) (k : ℕ) : |
| 385 | ContDiffOn ℝ ∞ (D.potential k) (CutStageEstimates.physicalSublevel h qbig) := |
| 386 | potentialIncrement_smooth _ _ _ _ hh hh1 (Q.temporal k) (Q.rank k) |
| 387 | |
| 388 | theorem direct_smooth (Q : D.ValidScale qbig) (hh : 0 < h) (hh1 : h < 1 / 2) (k : ℕ) : |
| 389 | ContDiffOn ℝ ∞ (D.direct k) (CutStageEstimates.physicalSublevel h qbig) := |
| 390 | (D.angular k).angular_smooth hh hh1 (Q.angular k) |
| 391 | |
| 392 | theorem pressure_smooth (Q : D.ValidScale qbig) (hh : 0 < h) (hh1 : h < 1 / 2) (k : ℕ) : |
| 393 | ContDiffOn ℝ ∞ (D.pressureField k) (CutStageEstimates.physicalSublevel h qbig) := |
| 394 | pressureIncrement_smooth _ _ _ hh hh1 (Q.pressure k) |
| 395 | |
| 396 | end CycleInputs |
| 397 | |
| 398 | section RawTransfer |
| 399 | |
| 400 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 401 | {h qbig : ℝ} {f g : SpaceTime → V} {m : ℕ} {r : ℝ} |
| 402 | |
| 403 | theorem bound_congr (hh : 0 < h) (hh1 : h < 1 / 2) |
| 404 | (he : EqOn f g (CutStageEstimates.physicalSublevel h qbig)) |
| 405 | (hb : ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 406 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 407 | ‖iteratedFDeriv ℝ m f w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ r) : |
| 408 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 409 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 410 | ‖iteratedFDeriv ℝ m g w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ r := by |
| 411 | obtain ⟨C, hC, hb⟩ := hb |
| 412 | refine ⟨C, hC, fun w hw hqw => ?_⟩ |
| 413 | rw [← ResidualStability.iteratedFDeriv_eqOn |
| 414 | (CutStageEstimates.physicalSublevel_open hh hh1 qbig) he m hw] |
| 415 | exact hb w hw hqw |
| 416 | |
| 417 | theorem raw_of_positive_bounds {F : ℕ → SpaceTime → V} {gain L : ℕ → ℝ} |
| 418 | (hb : ∀ k m, ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 419 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 420 | ‖iteratedFDeriv ℝ m (F (k + 1)) w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ (gain (k + 1) - L m)) : |
| 421 | ∃ C : ℕ → ℕ → ℝ, (∀ j m, 0 ≤ C j m) ∧ |
| 422 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) F gain L C (fun _ _ => 0) |
| 423 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) := by |
| 424 | classical |
| 425 | choose C hC hb using hb |
| 426 | refine ⟨fun j m => if j = 0 then 0 else C (j - 1) m, ?_, ?_⟩ |
| 427 | · intro j m |
| 428 | dsimp only |
| 429 | split_ifs |
| 430 | · exact le_rfl |
| 431 | · exact hC _ _ |
| 432 | · intro j hj m w hw hqw |
| 433 | cases j with |
| 434 | | zero => omega |
| 435 | | succ k => simpa only [Nat.succ_ne_zero, ite_false, Nat.succ_sub_one, |
| 436 | Real.rpow_zero, mul_one] using hb k m w hw.2 hqw |
| 437 | |
| 438 | end RawTransfer |
| 439 | |
| 440 | namespace CycleInputs |
| 441 | |
| 442 | variable {h κ qbig : ℝ} |
| 443 | {DP DS : Type} [NormedAddCommGroup DP] [NormedSpace ℝ DP] |
| 444 | [NormedAddCommGroup DS] [NormedSpace ℝ DS] {IP KP IS KS : Type*} |
| 445 | (D : CycleInputs h DP IP KP DS IS KS) |
| 446 | |
| 447 | /-- Literal sequence identities transfer the derived estimates to the |
| 448 | actual potential/direct/pressure stages. Index zero is deliberately absent. -/ |
| 449 | theorem represented_raw_bounds (H : D.Metadata κ) (Q : D.ValidScale qbig) |
| 450 | (hh : 0 < h) (hh1 : h < 1 / 2) (hκ : κ ≤ 1 / 100000) |
| 451 | (A B : ℕ → VelocityField) (P : ℕ → PressureField) |
| 452 | (hA : ∀ k, EqOn (D.potential k) (A (k + 1)) (CutStageEstimates.physicalSublevel h qbig)) |
| 453 | (hB : ∀ k, EqOn (D.direct k) (B (k + 1)) (CutStageEstimates.physicalSublevel h qbig)) |
| 454 | (hP : ∀ k, EqOn (D.pressureField k) (P (k + 1)) (CutStageEstimates.physicalSublevel h qbig)) : |
| 455 | ∃ CA CB CP : ℕ → ℕ → ℝ, |
| 456 | (∀ j m, 0 ≤ CA j m ∧ 0 ≤ CB j m ∧ 0 ≤ CP j m) ∧ |
| 457 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) A (ActualIterationLedger.gain h) |
| 458 | (PhysicalStageBounds.potentialLoss h h 0) CA (fun _ _ => 0) |
| 459 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) ∧ |
| 460 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) B (ActualIterationLedger.gain h) |
| 461 | (PhysicalStageBounds.directLoss h 0) CB (fun _ _ => 0) |
| 462 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) ∧ |
| 463 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) P (ActualIterationLedger.gain h) |
| 464 | (PhysicalStageBounds.pressureLoss h (2 * CoordinateAlgebra.A h) 0) CP (fun _ _ => 0) |
| 465 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) := by |
| 466 | obtain ⟨CA, hCA, ha⟩ := raw_of_positive_bounds |
| 467 | (fun k m => bound_congr hh hh1 (hA k) (D.potential_bound H Q hh hh1 hκ k m)) |
| 468 | obtain ⟨CB, hCB, hb⟩ := raw_of_positive_bounds |
| 469 | (fun k m => bound_congr hh hh1 (hB k) (D.direct_bound H Q hh hh1 hκ k m)) |
| 470 | obtain ⟨CP, hCP, hp⟩ := raw_of_positive_bounds |
| 471 | (fun k m => bound_congr hh hh1 (hP k) (D.pressure_bound H Q hh hh1 hκ k m)) |
| 472 | exact ⟨CA, CB, CP, fun j m => ⟨hCA j m, hCB j m, hCP j m⟩, ha, hb, hp⟩ |
| 473 | |
| 474 | end CycleInputs |
| 475 | |
| 476 | /-! ## Initialization on the true native mean domain -/ |
| 477 | |
| 478 | open InitializedPhysicalBackground (seedPotentialLoss seedDirectLoss initialLoss) |
| 479 | |
| 480 | section InitialIncrement |
| 481 | |
| 482 | variable {h : ℝ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {I K : Type*} |
| 483 | |
| 484 | noncomputable def initialIncrement (W : PhysicalStageBounds.WaveData h D I K (Fin 3)) |
| 485 | (MT MR : MeanInput h (CoordinateAlgebra.A h - 1 / 2)) : VelocityField := |
| 486 | fun w => W.vector w + MT.family.angularField w + MR.family.angularField w |
| 487 | |
| 488 | theorem initialIncrement_smooth (W : PhysicalStageBounds.WaveData h D I K (Fin 3)) |
| 489 | (MT MR : MeanInput h (CoordinateAlgebra.A h - 1 / 2)) |
| 490 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} |
| 491 | (hqT : qbig ≤ ChartScales.Q MT.firstBand) (hqR : qbig ≤ ChartScales.Q MR.firstBand) : |
| 492 | ContDiffOn ℝ ∞ (initialIncrement W MT MR) (CutStageEstimates.physicalSublevel h qbig) := |
| 493 | (((W.vector_smooth hh hh1).mono inter_subset_left).add |
| 494 | (MT.angular_smooth hh hh1 hqT)).add (MR.angular_smooth hh hh1 hqR) |
| 495 | |
| 496 | theorem initialIncrement_bound (W : PhysicalStageBounds.WaveData h D I K (Fin 3)) |
| 497 | (MT MR : MeanInput h (CoordinateAlgebra.A h - 1 / 2)) |
| 498 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} |
| 499 | (hqT : qbig ≤ ChartScales.Q MT.firstBand) (hqR : qbig ≤ ChartScales.Q MR.firstBand) (m : ℕ) : |
| 500 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 501 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 502 | ‖iteratedFDeriv ℝ m (initialIncrement W MT MR) w‖ ≤ |
| 503 | C * PhysicalWaveSum.physicalQ h w ^ |
| 504 | (-seedPotentialLoss h W.alpha W.shift (min MT.alpha MR.alpha) m) := by |
| 505 | have htGain : 0 ≤ h * MT.alpha + -(h * min MT.alpha MR.alpha) := by |
| 506 | have := mul_le_mul_of_nonneg_left (min_le_left MT.alpha MR.alpha) hh.le |
| 507 | linarith |
| 508 | have hrGain : 0 ≤ h * MR.alpha + -(h * min MT.alpha MR.alpha) := by |
| 509 | have := mul_le_mul_of_nonneg_left (min_le_right MT.alpha MR.alpha) hh.le |
| 510 | linarith |
| 511 | have hp0 := W.vector_bound_with_gain (g := 0) (delta := -(h * W.alpha + W.shift)) |
| 512 | hh hh1 (by linarith) m |
| 513 | have ht0 := MT.angular_bound_with_gain hh hh1 hqT htGain m |
| 514 | have hr0 := MR.angular_bound_with_gain hh hh1 hqR hrGain m |
| 515 | simp only [zero_sub] at hp0 ht0 hr0 |
| 516 | have hp := weaken_bound (qbig := qbig) |
| 517 | (s := -seedPotentialLoss h W.alpha W.shift (min MT.alpha MR.alpha) m) hh hh1 |
| 518 | (neg_le_neg (le_max_left _ _)) (by |
| 519 | obtain ⟨C, hC, hb⟩ := hp0 |
| 520 | exact ⟨C, hC, fun w hw hqw => hb w hw.1 hqw⟩) |
| 521 | have ht := weaken_bound (s := -seedPotentialLoss h W.alpha W.shift (min MT.alpha MR.alpha) m) |
| 522 | hh hh1 (neg_le_neg (le_max_right _ _)) ht0 |
| 523 | have hr := weaken_bound (s := -seedPotentialLoss h W.alpha W.shift (min MT.alpha MR.alpha) m) |
| 524 | hh hh1 (neg_le_neg (le_max_right _ _)) hr0 |
| 525 | have sp : ContDiffOn ℝ ∞ W.vector (CutStageEstimates.physicalSublevel h qbig) := |
| 526 | (W.vector_smooth hh hh1).mono inter_subset_left |
| 527 | have st := MT.angular_smooth hh hh1 hqT |
| 528 | exact add_bounds hh hh1 (sp.add st) (MR.angular_smooth hh hh1 hqR) |
| 529 | (add_bounds hh hh1 sp st hp ht) hr |
| 530 | |
| 531 | theorem initialIncrement_rate (W : PhysicalStageBounds.WaveData h D I K (Fin 3)) |
| 532 | (MT MR : MeanInput h (CoordinateAlgebra.A h - 1 / 2)) |
| 533 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} (hqbig : 0 < qbig) |
| 534 | (hqT : qbig ≤ ChartScales.Q MT.firstBand) (hqR : qbig ≤ ChartScales.Q MR.firstBand) (m : ℕ) : |
| 535 | JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ h) |
| 536 | (initialIncrement W MT MR) m |
| 537 | (-seedPotentialLoss h W.alpha W.shift (min MT.alpha MR.alpha) m) := by |
| 538 | obtain ⟨C, hC, hb⟩ := initialIncrement_bound W MT MR hh hh1 hqT hqR m |
| 539 | refine ⟨C, hC, ?_⟩ |
| 540 | filter_upwards [InitializedPhysicalBackground.endpoint_sublevel hh hh1 hqbig, |
| 541 | ActualBaseVelocityBounds.endpoint_q_small hh hh1] with w hw hqw |
| 542 | exact hb w hw hqw.2 |
| 543 | |
| 544 | /-- The finite pressure inserted at initialization, apart from the actual |
| 545 | base pressure. Both terms retain their original native class exponents. -/ |
| 546 | noncomputable def initialPressureIncrement (W : PhysicalStageBounds.WaveData h D I K Unit) |
| 547 | (M : MeanInput h (2 * CoordinateAlgebra.A h)) : PressureField := |
| 548 | fun w => W.pressure w + M.family.field w |
| 549 | |
| 550 | noncomputable def initialPressureLoss (h waveAlpha waveShift meanAlpha : ℝ) (m : ℕ) : ℝ := |
| 551 | PhysicalStageBounds.pressureLoss h (-(h * waveAlpha + waveShift)) (-(h * meanAlpha)) m |
| 552 | |
| 553 | theorem initialPressureIncrement_smooth (W : PhysicalStageBounds.WaveData h D I K Unit) |
| 554 | (M : MeanInput h (2 * CoordinateAlgebra.A h)) |
| 555 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} (hq : qbig ≤ ChartScales.Q M.firstBand) : |
| 556 | ContDiffOn ℝ ∞ (initialPressureIncrement W M) (CutStageEstimates.physicalSublevel h qbig) := |
| 557 | ((W.pressure_smooth hh hh1).mono inter_subset_left).add (M.field_smooth hh hh1 hq) |
| 558 | |
| 559 | theorem initialPressureIncrement_bound (W : PhysicalStageBounds.WaveData h D I K Unit) |
| 560 | (M : MeanInput h (2 * CoordinateAlgebra.A h)) |
| 561 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} (hq : qbig ≤ ChartScales.Q M.firstBand) (m : ℕ) : |
| 562 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| 563 | PhysicalWaveSum.physicalQ h w ≤ 1 → |
| 564 | ‖iteratedFDeriv ℝ m (initialPressureIncrement W M) w‖ ≤ |
| 565 | C * PhysicalWaveSum.physicalQ h w ^ (-initialPressureLoss h W.alpha W.shift M.alpha m) := by |
| 566 | have hw0 := W.pressure_bound_with_gain (g := 0) (delta := -(h * W.alpha + W.shift)) |
| 567 | hh hh1 (by linarith) m |
| 568 | have hm0 := M.field_bound_with_gain (g := 0) (delta := -(h * M.alpha)) |
| 569 | hh hh1 hq (by linarith) m |
| 570 | simp only [zero_sub] at hw0 hm0 |
| 571 | have hw := weaken_bound (qbig := qbig) |
| 572 | (s := -initialPressureLoss h W.alpha W.shift M.alpha m) hh hh1 |
| 573 | (neg_le_neg (le_max_left _ _)) (by |
| 574 | obtain ⟨C, hC, hb⟩ := hw0 |
| 575 | exact ⟨C, hC, fun w hw hqw => hb w hw.1 hqw⟩) |
| 576 | have hm := weaken_bound (s := -initialPressureLoss h W.alpha W.shift M.alpha m) |
| 577 | hh hh1 (neg_le_neg (le_max_right _ _)) hm0 |
| 578 | have sw : ContDiffOn ℝ ∞ W.pressure (CutStageEstimates.physicalSublevel h qbig) := |
| 579 | (W.pressure_smooth hh hh1).mono inter_subset_left |
| 580 | exact add_bounds hh hh1 sw (M.field_smooth hh hh1 hq) hw hm |
| 581 | |
| 582 | theorem initialPressureIncrement_rate (W : PhysicalStageBounds.WaveData h D I K Unit) |
| 583 | (M : MeanInput h (2 * CoordinateAlgebra.A h)) |
| 584 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} (hqbig : 0 < qbig) |
| 585 | (hq : qbig ≤ ChartScales.Q M.firstBand) (m : ℕ) : |
| 586 | JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ h) |
| 587 | (initialPressureIncrement W M) m (-initialPressureLoss h W.alpha W.shift M.alpha m) := by |
| 588 | obtain ⟨C, hC, hb⟩ := initialPressureIncrement_bound W M hh hh1 hq m |
| 589 | refine ⟨C, hC, ?_⟩ |
| 590 | filter_upwards [InitializedPhysicalBackground.endpoint_sublevel hh hh1 hqbig, |
| 591 | ActualBaseVelocityBounds.endpoint_q_small hh hh1] with w hw hqw |
| 592 | exact hb w hw hqw.2 |
| 593 | |
| 594 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 595 | theorem initialDirect_rate (MB : MeanInput h (CoordinateAlgebra.A h)) |
| 596 | (hh : 0 < h) (hh1 : h < 1 / 2) {qbig : ℝ} (hqbig : 0 < qbig) |
| 597 | (hq : qbig ≤ ChartScales.Q MB.firstBand) (m : ℕ) : |
| 598 | JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ h) |
| 599 | MB.family.angularField m (-seedDirectLoss h MB.alpha m) := by |
| 600 | obtain ⟨C, hC, hb⟩ := MB.angular_bound_with_gain (g := 0) (delta := -(h * MB.alpha)) |
| 601 | hh hh1 hq (by linarith) m |
| 602 | refine ⟨C, hC, ?_⟩ |
| 603 | filter_upwards [InitializedPhysicalBackground.endpoint_sublevel hh hh1 hqbig, |
| 604 | ActualBaseVelocityBounds.endpoint_q_small hh hh1] with w hw hqw |
| 605 | simpa only [seedDirectLoss, PhysicalStageBounds.directLoss, zero_sub] using hb w hw hqw.2 |
| 606 | |
| 607 | end InitialIncrement |
| 608 | |
| 609 | section ActualInitialBase |
| 610 | |
| 611 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 612 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 613 | (v : ModulatedProfileAssembly.Witness ld) |
| 614 | {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {I K : Type*} |
| 615 | |
| 616 | noncomputable def initialPotential (upper : ℝ) (B : ℕ) |
| 617 | (WA : PhysicalStageBounds.WaveData F.data.h D I K (Fin 3)) |
| 618 | (MT MR : MeanInput F.data.h (CoordinateAlgebra.A F.data.h - 1 / 2)) : VelocityField := |
| 619 | fun w => TailGaugePotential.finalPotential H v upper B w + initialIncrement WA MT MR w |
| 620 | |
| 621 | noncomputable def initialVelocity (upper : ℝ) (B : ℕ) |
| 622 | (WA : PhysicalStageBounds.WaveData F.data.h D I K (Fin 3)) |
| 623 | (MT MR : MeanInput F.data.h (CoordinateAlgebra.A F.data.h - 1 / 2)) |
| 624 | (MB : MeanInput F.data.h (CoordinateAlgebra.A F.data.h)) : VelocityField := |
| 625 | fun w => SpatialCurl.spatialCurl (initialPotential H v upper B WA MT MR) w + MB.family.angularField w |
| 626 | |
| 627 | theorem initialPotential_smooth (upper : ℝ) (B : ℕ) |
| 628 | (WA : PhysicalStageBounds.WaveData F.data.h D I K (Fin 3)) |
| 629 | (MT MR : MeanInput F.data.h (CoordinateAlgebra.A F.data.h - 1 / 2)) |
| 630 | {qbig : ℝ} (hqT : qbig ≤ ChartScales.Q MT.firstBand) (hqR : qbig ≤ ChartScales.Q MR.firstBand) : |
| 631 | ContDiffOn ℝ ∞ (initialPotential H v upper B WA MT MR) |
| 632 | (CutStageEstimates.physicalSublevel F.data.h qbig) := |
| 633 | ((TailGaugePotential.finalPotential_smooth H v upper B).mono |
| 634 | (fun _ hw => ⟨hw.1, mem_univ _⟩)).add |
| 635 | (initialIncrement_smooth WA MT MR F.data.h_pos F.data.h_lt_half hqT hqR) |
| 636 | |
| 637 | theorem initialVelocity_decomposition (upper : ℝ) (B : ℕ) |
| 638 | (WA : PhysicalStageBounds.WaveData F.data.h D I K (Fin 3)) |
| 639 | (MT MR : MeanInput F.data.h (CoordinateAlgebra.A F.data.h - 1 / 2)) |
| 640 | (MB : MeanInput F.data.h (CoordinateAlgebra.A F.data.h)) |
| 641 | {qbig : ℝ} (hqT : qbig ≤ ChartScales.Q MT.firstBand) (hqR : qbig ≤ ChartScales.Q MR.firstBand) : |
| 642 | EqOn (initialVelocity H v upper B WA MT MR MB) |
| 643 | (fun w => FinalSlowBase.velocity H v upper B w + |
| 644 | SpatialCurl.spatialCurl (initialIncrement WA MT MR) w + MB.family.angularField w) |
| 645 | (CutStageEstimates.physicalSublevel F.data.h qbig) := by |
| 646 | have hbase : ContDiffOn ℝ ∞ (TailGaugePotential.finalPotential H v upper B) |
| 647 | (CutStageEstimates.physicalSublevel F.data.h qbig) := |
| 648 | (TailGaugePotential.finalPotential_smooth H v upper B).mono |
| 649 | (fun _ hw => ⟨hw.1, mem_univ _⟩) |
| 650 | have hinc := initialIncrement_smooth WA MT MR F.data.h_pos F.data.h_lt_half hqT hqR |
| 651 | intro w hw |
| 652 | unfold initialVelocity initialPotential |
| 653 | rw [InitializedPhysicalBackground.spatialCurl_add_on |
| 654 | (CutStageEstimates.physicalSublevel_open F.data.h_pos F.data.h_lt_half qbig) hbase hinc hw] |
| 655 | dsimp only |
| 656 | rw [TailGaugePotential.finalPotential_sameCurl H v upper B hw.1] |
| 657 | |
| 658 | /-- The true-domain initialization has the same fixed loss as the prior |
| 659 | physical-background calculation, using the minimum of the two stream classes. -/ |
| 660 | theorem initialVelocity_rate (upper : ℝ) (B : ℕ) |
| 661 | (WA : PhysicalStageBounds.WaveData F.data.h D I K (Fin 3)) |
| 662 | (MT MR : MeanInput F.data.h (CoordinateAlgebra.A F.data.h - 1 / 2)) |
| 663 | (MB : MeanInput F.data.h (CoordinateAlgebra.A F.data.h)) (m : ℕ) : |
| 664 | JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ F.data.h) |
| 665 | (initialVelocity H v upper B WA MT MR MB) m |
| 666 | (-initialLoss F.data.h WA.alpha WA.shift (min MT.alpha MR.alpha) MB.alpha m) := by |
| 667 | let qbig := min (ChartScales.Q MT.firstBand) (min (ChartScales.Q MR.firstBand) (ChartScales.Q MB.firstBand)) |
| 668 | have hqbig : 0 < qbig := lt_min (ChartScales.Q_pos _) (lt_min (ChartScales.Q_pos _) (ChartScales.Q_pos _)) |
| 669 | have hqT : qbig ≤ ChartScales.Q MT.firstBand := min_le_left _ _ |
| 670 | have hqR : qbig ≤ ChartScales.Q MR.firstBand := (min_le_right _ _).trans (min_le_left _ _) |
| 671 | have hqB : qbig ≤ ChartScales.Q MB.firstBand := (min_le_right _ _).trans (min_le_right _ _) |
| 672 | let U := CutStageEstimates.physicalSublevel F.data.h qbig |
| 673 | have hU : IsOpen U := CutStageEstimates.physicalSublevel_open F.data.h_pos F.data.h_lt_half qbig |
| 674 | have hlU : ∀ᶠ w in ActualBaseVelocityBounds.endpoint, w ∈ U := |
| 675 | InitializedPhysicalBackground.endpoint_sublevel F.data.h_pos F.data.h_lt_half hqbig |
| 676 | have hq := ActualBaseVelocityBounds.endpoint_q_small F.data.h_pos F.data.h_lt_half |
| 677 | have hsBase : ContDiffOn ℝ ∞ (FinalSlowBase.velocity H v upper B) U := |
| 678 | (FinalSlowBase.velocity_smooth H v upper B).mono (fun _ hw => ⟨hw.1, mem_univ _⟩) |
| 679 | have hsInc : ContDiffOn ℝ ∞ (initialIncrement WA MT MR) U := |
| 680 | initialIncrement_smooth WA MT MR F.data.h_pos F.data.h_lt_half hqT hqR |
| 681 | have hsDirect : ContDiffOn ℝ ∞ MB.family.angularField U := |
| 682 | MB.angular_smooth F.data.h_pos F.data.h_lt_half hqB |
| 683 | have hsCurl := InitializedPhysicalBackground.spatialCurl_smoothOn hU hsInc |
| 684 | have hbase : JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ F.data.h) |
| 685 | (FinalSlowBase.velocity H v upper B) m |
| 686 | (-initialLoss F.data.h WA.alpha WA.shift (min MT.alpha MR.alpha) MB.alpha m) := |
| 687 | (ActualBaseVelocityBounds.velocity_rate H v upper B m).weaken hq (neg_le_neg (le_max_left _ _)) |
| 688 | have hinc : JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ F.data.h) |
| 689 | (SpatialCurl.spatialCurl (initialIncrement WA MT MR)) m |
| 690 | (-initialLoss F.data.h WA.alpha WA.shift (min MT.alpha MR.alpha) MB.alpha m) := by |
| 691 | apply ((initialIncrement_rate WA MT MR F.data.h_pos F.data.h_lt_half hqbig hqT hqR |
| 692 | (m + 1)).spatialCurl hU hlU hsInc).weaken hq |
| 693 | exact neg_le_neg ((le_max_left _ _).trans (le_max_right _ _)) |
| 694 | have hdirect : JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ F.data.h) |
| 695 | MB.family.angularField m |
| 696 | (-initialLoss F.data.h WA.alpha WA.shift (min MT.alpha MR.alpha) MB.alpha m) := by |
| 697 | apply (initialDirect_rate MB F.data.h_pos F.data.h_lt_half hqbig hqB m).weaken hq |
| 698 | exact neg_le_neg ((le_max_right _ _).trans (le_max_right _ _)) |
| 699 | exact ((hbase.add hinc hU hlU hsBase hsCurl).add hdirect hU hlU |
| 700 | (hsBase.add hsCurl) hsDirect).congr_on hU hlU |
| 701 | (initialVelocity_decomposition H v upper B WA MT MR MB hqT hqR).symm |
| 702 | |
| 703 | theorem represented_initial_rate (upper : ℝ) (B : ℕ) |
| 704 | (WA : PhysicalStageBounds.WaveData F.data.h D I K (Fin 3)) |
| 705 | (MT MR : MeanInput F.data.h (CoordinateAlgebra.A F.data.h - 1 / 2)) |
| 706 | (MB : MeanInput F.data.h (CoordinateAlgebra.A F.data.h)) |
| 707 | {A Bdirect : ℕ → VelocityField} {U : Set SpaceTime} |
| 708 | (hU : IsOpen U) (hlU : ∀ᶠ w in ActualBaseVelocityBounds.endpoint, w ∈ U) |
| 709 | (hA : EqOn (A 0) (initialPotential H v upper B WA MT MR) U) |
| 710 | (hB : EqOn (Bdirect 0) MB.family.angularField U) (m : ℕ) : |
| 711 | JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ F.data.h) |
| 712 | (MixedDiagonalResidual.uncutVelocity A Bdirect 0) m |
| 713 | (-initialLoss F.data.h WA.alpha WA.shift (min MT.alpha MR.alpha) MB.alpha m) := by |
| 714 | apply (initialVelocity_rate H v upper B WA MT MR MB m).congr_on hU hlU |
| 715 | intro w hw |
| 716 | have he : A 0 =ᶠ[𝓝 w] initialPotential H v upper B WA MT MR := by |
| 717 | filter_upwards [hU.mem_nhds hw] with y hy |
| 718 | exact hA hy |
| 719 | rw [MixedFiniteBackground.uncutVelocity_zero] |
| 720 | change SpatialCurl.spatialCurl (initialPotential H v upper B WA MT MR) w + |
| 721 | MB.family.angularField w = SpatialCurl.spatialCurl (A 0) w + Bdirect 0 w |
| 722 | rw [SolenoidalDiagonal.spatialCurl_eq_of_eventuallyEq he, hB hw] |
| 723 | |
| 724 | /-- The finite-background consumer now uses only native wave/mean data |
| 725 | on the true domain, plus exact initial and positive-stage identities. -/ |
| 726 | theorem background_from_representations |
| 727 | {DP DS : Type} [NormedAddCommGroup DP] [NormedSpace ℝ DP] |
| 728 | [NormedAddCommGroup DS] [NormedSpace ℝ DS] {IP KP IS KS : Type*} |
| 729 | (Cyc : CycleInputs F.data.h DP IP KP DS IS KS) {κ qbig : ℝ} |
| 730 | (HM : Cyc.Metadata κ) (HQ : Cyc.ValidScale qbig) (hκ : κ ≤ 1 / 100000) |
| 731 | (hqbig : 0 < qbig) (upper : ℝ) (bandFloor : ℕ) |
| 732 | (WA : PhysicalStageBounds.WaveData F.data.h D I K (Fin 3)) |
| 733 | (MT MR : MeanInput F.data.h (CoordinateAlgebra.A F.data.h - 1 / 2)) |
| 734 | (MB : MeanInput F.data.h (CoordinateAlgebra.A F.data.h)) |
| 735 | (hqT : qbig ≤ ChartScales.Q MT.firstBand) (hqR : qbig ≤ ChartScales.Q MR.firstBand) |
| 736 | (hqB : qbig ≤ ChartScales.Q MB.firstBand) |
| 737 | (A B : ℕ → VelocityField) |
| 738 | (hA0 : EqOn (A 0) (initialPotential H v upper bandFloor WA MT MR) |
| 739 | (CutStageEstimates.physicalSublevel F.data.h qbig)) |
| 740 | (hB0 : EqOn (B 0) MB.family.angularField (CutStageEstimates.physicalSublevel F.data.h qbig)) |
| 741 | (hA : ∀ k, EqOn (Cyc.potential k) (A (k + 1)) (CutStageEstimates.physicalSublevel F.data.h qbig)) |
| 742 | (hB : ∀ k, EqOn (Cyc.direct k) (B (k + 1)) (CutStageEstimates.physicalSublevel F.data.h qbig)) |
| 743 | (J m : ℕ) : |
| 744 | JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ F.data.h) |
| 745 | (MixedDiagonalResidual.uncutVelocity A B J) m |
| 746 | (-MixedFiniteBackground.initialBackgroundLoss |
| 747 | (initialLoss F.data.h WA.alpha WA.shift (min MT.alpha MR.alpha) MB.alpha) |
| 748 | (PhysicalStageBounds.potentialLoss F.data.h F.data.h 0) |
| 749 | (PhysicalStageBounds.directLoss F.data.h 0) m) := by |
| 750 | have hU := CutStageEstimates.physicalSublevel_open F.data.h_pos F.data.h_lt_half qbig |
| 751 | have hlU := InitializedPhysicalBackground.endpoint_sublevel F.data.h_pos F.data.h_lt_half hqbig |
| 752 | have hsa : ∀ j, ContDiffOn ℝ ∞ (A j) (CutStageEstimates.physicalSublevel F.data.h qbig) := by |
| 753 | intro j |
| 754 | cases j with |
| 755 | | zero => |
| 756 | exact (initialPotential_smooth H v upper bandFloor WA MT MR hqT hqR).congr |
| 757 | (fun _ hw => hA0 hw) |
| 758 | | succ k => |
| 759 | exact (Cyc.potential_smooth HQ F.data.h_pos F.data.h_lt_half k).congr |
| 760 | (fun _ hw => (hA k hw).symm) |
| 761 | have hsb : ∀ j, ContDiffOn ℝ ∞ (B j) (CutStageEstimates.physicalSublevel F.data.h qbig) := by |
| 762 | intro j |
| 763 | cases j with |
| 764 | | zero => |
| 765 | exact (MB.angular_smooth F.data.h_pos F.data.h_lt_half hqB).congr (fun _ hw => hB0 hw) |
| 766 | | succ k => |
| 767 | exact (Cyc.direct_smooth HQ F.data.h_pos F.data.h_lt_half k).congr |
| 768 | (fun _ hw => (hB k hw).symm) |
| 769 | obtain ⟨CA, _, hrawA⟩ := raw_of_positive_bounds (fun k m => |
| 770 | bound_congr F.data.h_pos F.data.h_lt_half (hA k) |
| 771 | (Cyc.potential_bound HM HQ F.data.h_pos F.data.h_lt_half hκ k m)) |
| 772 | obtain ⟨CB, _, hrawB⟩ := raw_of_positive_bounds (fun k m => |
| 773 | bound_congr F.data.h_pos F.data.h_lt_half (hB k) |
| 774 | (Cyc.direct_bound HM HQ F.data.h_pos F.data.h_lt_half hκ k m)) |
| 775 | exact MixedFiniteBackground.mixed_background_from_initial hU hlU |
| 776 | (ActualBaseVelocityBounds.endpoint_past.and hlU) |
| 777 | (ActualBaseVelocityBounds.endpoint_q_small F.data.h_pos F.data.h_lt_half) |
| 778 | hsa hsb hrawA hrawB (fun j _ => ActualIterationLedger.gain_nonneg F.data.h_pos.le j) |
| 779 | (represented_initial_rate H v upper bandFloor WA MT MR MB hU hlU hA0 hB0) J m |
| 780 | |
| 781 | end ActualInitialBase |
| 782 | |
| 783 | /-! ## Literal candidate sequence interface -/ |
| 784 | |
| 785 | universe u |
| 786 | |
| 787 | section CandidateSequences |
| 788 | |
| 789 | variable {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 790 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 791 | (v : ModulatedProfileAssembly.Witness ld) |
| 792 | {DP DS : Type} [NormedAddCommGroup DP] [NormedSpace ℝ DP] |
| 793 | [NormedAddCommGroup DS] [NormedSpace ℝ DS] {IP KP IS KS : Type*} |
| 794 | |
| 795 | /-- Quantitative bounds for the actual MCA/MAS indexing convention. |
| 796 | The remaining representations concern the literal component fields. -/ |
| 797 | theorem candidate_raw_bounds |
| 798 | (Cyc : CycleInputs F.data.h DP IP KP DS IS KS) {κ qbig : ℝ} |
| 799 | (HM : Cyc.Metadata κ) (HQ : Cyc.ValidScale qbig) (hκ : κ ≤ 1 / 100000) |
| 800 | (upper : ℝ) (bandFloor : ℕ) |
| 801 | (initial : MixedAxisPreservation.PotentialStage.{u} F.data.h |
| 802 | (MixedAxisPreservation.localDomain F.data.h qbig)) |
| 803 | (stages : ℕ → MixedAxisPreservation.PotentialStage.{u} F.data.h |
| 804 | (MixedAxisPreservation.localDomain F.data.h qbig)) |
| 805 | (angular : ℕ → DirectAngularDiagonal.AngularData (LocalAngularDiagonal.localSlowDomain F.data.h qbig)) |
| 806 | (pInitial : PressureField) (pStages : ℕ → PressureField) |
| 807 | (hA : ∀ k, EqOn (Cyc.potential k) (stages k).field (CutStageEstimates.physicalSublevel F.data.h qbig)) |
| 808 | (hB : ∀ k, EqOn (Cyc.direct k) (LocalAngularDiagonal.rawSeries angular (k + 1)) |
| 809 | (CutStageEstimates.physicalSublevel F.data.h qbig)) |
| 810 | (hP : ∀ k, EqOn (Cyc.pressureField k) (pStages k) (CutStageEstimates.physicalSublevel F.data.h qbig)) : |
| 811 | ∃ CA CB CP : ℕ → ℕ → ℝ, |
| 812 | (∀ j m, 0 ≤ CA j m ∧ 0 ≤ CB j m ∧ 0 ≤ CP j m) ∧ |
| 813 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ F.data.h) |
| 814 | (MixedCandidateAssembly.potentialStages H v upper bandFloor initial stages) |
| 815 | (ActualIterationLedger.gain F.data.h) (PhysicalStageBounds.potentialLoss F.data.h F.data.h 0) |
| 816 | CA (fun _ _ => 0) (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel F.data.h qbig) ∧ |
| 817 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ F.data.h) |
| 818 | (LocalAngularDiagonal.rawSeries angular) (ActualIterationLedger.gain F.data.h) |
| 819 | (PhysicalStageBounds.directLoss F.data.h 0) CB (fun _ _ => 0) |
| 820 | (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel F.data.h qbig) ∧ |
| 821 | CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ F.data.h) |
| 822 | (MixedCandidateAssembly.pressureStages H v upper bandFloor pInitial pStages) |
| 823 | (ActualIterationLedger.gain F.data.h) |
| 824 | (PhysicalStageBounds.pressureLoss F.data.h (2 * CoordinateAlgebra.A F.data.h) 0) |
| 825 | CP (fun _ _ => 0) (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel F.data.h qbig) := by |
| 826 | apply Cyc.represented_raw_bounds HM HQ F.data.h_pos F.data.h_lt_half hκ |
| 827 | · intro k |
| 828 | simpa only [MixedCandidateAssembly.potentialStages, MixedAxisPreservation.initializedSeries_succ] using hA k |
| 829 | · exact hB |
| 830 | · intro k |
| 831 | simpa only [MixedCandidateAssembly.pressureStages_succ] using hP k |
| 832 | |
| 833 | end CandidateSequences |
| 834 | |
| 835 | /-! ## Adapters for the constructed native mean families -/ |
| 836 | |
| 837 | section ConstructedMeans |
| 838 | |
| 839 | open CorrectionInitialization.ActualPrimary ActualMeanPhysicalData |
| 840 | open CorrectionStep CorrectionState |
| 841 | |
| 842 | /-- The constructed initialization families, with their proved native |
| 843 | classes and common band choice. No native estimate is left as an input. -/ |
| 844 | noncomputable def actualInitialTemporalInput (B N0 N : ℕ) (hN : 4 ≤ N) : |
| 845 | MeanInput h (CoordinateAlgebra.A h - 1 / 2) := |
| 846 | MeanInput.ofMoving standardRegion rfl (initialTemporalFamily B N0 N) hN |
| 847 | (PrimaryTargetBounds.leftRadius_pos nominal) (PrimaryTargetBounds.radii_ordered nominal) |
| 848 | (initialTemporal_moving B N0) (initialTemporal_nativeJets B N0 N (by omega)) |
| 849 | |
| 850 | noncomputable def actualInitialRankInput (B N0 N : ℕ) (hN : 4 ≤ N) : |
| 851 | MeanInput h (CoordinateAlgebra.A h - 1 / 2) := |
| 852 | MeanInput.ofMoving standardRegion rfl (initialRankFamily B N0 N) hN |
| 853 | (PrimaryTargetBounds.leftRadius_pos nominal) (PrimaryTargetBounds.radii_ordered nominal) |
| 854 | (initialRank_moving B N0) (initialRank_nativeJets B N0 N (by omega)) |
| 855 | |
| 856 | noncomputable def actualInitialAngularInput (B N0 N : ℕ) (hN : 4 ≤ N) : |
| 857 | MeanInput h (CoordinateAlgebra.A h) := |
| 858 | MeanInput.ofMoving standardRegion rfl (initialAngularFamily B N0 N) hN |
| 859 | (PrimaryTargetBounds.leftRadius_pos nominal) (PrimaryTargetBounds.radii_ordered nominal) |
| 860 | (initial_mean_moving B N0).angular (initialAngular_nativeJets B N0 N (by omega)) |
| 861 | |
| 862 | noncomputable def actualInitialPressureInput (B N0 N : ℕ) (hN : 4 ≤ N) : |
| 863 | MeanInput h (2 * CoordinateAlgebra.A h) := |
| 864 | MeanInput.ofMoving standardRegion rfl (initialPressureFamily B N0 N) hN |
| 865 | (PrimaryTargetBounds.leftRadius_pos nominal) (PrimaryTargetBounds.radii_ordered nominal) |
| 866 | (initial_pressure_moving B N0) (initialPressure_nativeJets B N0 N (by omega)) |
| 867 | |
| 868 | @[simp] theorem actualInitialTemporalInput_family (B N0 N : ℕ) (hN : 4 ≤ N) : |
| 869 | (actualInitialTemporalInput B N0 N hN).family = initialTemporalFamily B N0 N := rfl |
| 870 | |
| 871 | @[simp] theorem actualInitialRankInput_family (B N0 N : ℕ) (hN : 4 ≤ N) : |
| 872 | (actualInitialRankInput B N0 N hN).family = initialRankFamily B N0 N := rfl |
| 873 | |
| 874 | @[simp] theorem actualInitialAngularInput_family (B N0 N : ℕ) (hN : 4 ≤ N) : |
| 875 | (actualInitialAngularInput B N0 N hN).family = initialAngularFamily B N0 N := rfl |
| 876 | |
| 877 | @[simp] theorem actualInitialPressureInput_family (B N0 N : ℕ) (hN : 4 ≤ N) : |
| 878 | (actualInitialPressureInput B N0 N hN).family = initialPressureFamily B N0 N := rfl |
| 879 | |
| 880 | /-- The actual initialized velocity, with its actual initial temporal, |
| 881 | rank, and direct angular families. Only the primary wave representation |
| 882 | is supplied by the separate physical-copy construction. -/ |
| 883 | theorem actualInitialVelocity_rate |
| 884 | {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {I K : Type*} |
| 885 | (B N0 N : ℕ) (hN : 4 ≤ N) (WA : PhysicalStageBounds.WaveData h D I K (Fin 3)) (m : ℕ) : |
| 886 | JetRate ActualBaseVelocityBounds.endpoint (PhysicalWaveSum.physicalQ h) |
| 887 | (initialVelocity certificate modulation upper B WA |
| 888 | (actualInitialTemporalInput B N0 N hN) (actualInitialRankInput B N0 N hN) |
| 889 | (actualInitialAngularInput B N0 N hN)) m |
| 890 | (-initialLoss h WA.alpha WA.shift (1 - ChartScales.kappa) (9 / 10) m) := by |
| 891 | simpa only [actualInitialTemporalInput, actualInitialRankInput, actualInitialAngularInput, |
| 892 | MeanInput.ofMoving, min_self] using |
| 893 | initialVelocity_rate certificate modulation upper B WA |
| 894 | (actualInitialTemporalInput B N0 N hN) (actualInitialRankInput B N0 N hN) |
| 895 | (actualInitialAngularInput B N0 N hN) m |
| 896 | |
| 897 | variable {B N0 N : ℕ} {p : ℕ → CycleParameters (ActualInitialization.Index B N0)} |
| 898 | |
| 899 | /-- These four cycle adapters retain the literal families of the actual |
| 900 | iterate. Their quantitative hypotheses are native source, debt, or mean |
| 901 | classes; physical derivative bounds are conclusions of the earlier API. -/ |
| 902 | noncomputable def actualCycleTemporalInput (H : InitialCycleInput B N0 N p) |
| 903 | (j : ℕ) (hN : 4 ≤ N) {α : ℝ} |
| 904 | (HC : WeightedClasses.MeanClass ActualInitialMean.strip α |
| 905 | (((p j).afterSigned |
| 906 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 907 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state).axialResidual |
| 908 | (commonContext B))) : MeanInput h (CoordinateAlgebra.A h - 1 / 2) := |
| 909 | MeanInput.ofMoving standardRegion rfl ((initialCycleData H).temporalFamily j) hN |
| 910 | initialGeometry.inner_pos initialGeometry.inner_lt_outer |
| 911 | ((initialCycleData H).temporal_moving j) (cycleTemporal_nativeJets H j (by omega) HC) |
| 912 | |
| 913 | noncomputable def actualCycleRankInput (H : InitialCycleInput B N0 N p) |
| 914 | (j : ℕ) (hN : 4 ≤ N) {α : ℝ} |
| 915 | (HC : WeightedClasses.UnweightedClass ActualInitialMean.slowStrip α |
| 916 | (CorrectionState.debt (commonContext B) |
| 917 | ((p j).afterTemporal |
| 918 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 919 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state))) : |
| 920 | MeanInput h (CoordinateAlgebra.A h - 1 / 2) := |
| 921 | MeanInput.ofMoving standardRegion rfl ((initialCycleData H).rankFamily j) hN |
| 922 | initialGeometry.inner_pos initialGeometry.inner_lt_outer |
| 923 | ((initialCycleData H).rank_moving j) (cycleRank_nativeJets H j (by omega) HC) |
| 924 | |
| 925 | noncomputable def actualCycleAngularInput (H : InitialCycleInput B N0 N p) |
| 926 | (j : ℕ) (hN : 4 ≤ N) {α : ℝ} |
| 927 | (HT : MeanIncrementBounds.IncrementBounds ActualInitialMean.strip α |
| 928 | ((p j).temporalIncrement |
| 929 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 930 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state)) |
| 931 | (HR : MeanIncrementBounds.IncrementBounds ActualInitialMean.strip α |
| 932 | ((p j).rankIncrement |
| 933 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 934 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state)) : |
| 935 | MeanInput h (CoordinateAlgebra.A h) := |
| 936 | MeanInput.ofMoving standardRegion rfl ((initialCycleData H).angularIncrementFamily j) hN |
| 937 | initialGeometry.inner_pos initialGeometry.inner_lt_outer |
| 938 | ((initialCycleData H).angularIncrement_moving j) (angularIncrement_nativeJets H j (by omega) HT HR) |
| 939 | |
| 940 | noncomputable def actualCyclePressureInput (H : InitialCycleInput B N0 N p) |
| 941 | (j : ℕ) (hN : 4 ≤ N) {α : ℝ} |
| 942 | (HC : WeightedClasses.MeanClass ActualInitialMean.strip α |
| 943 | ((CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) (j+1)).state.pressure - |
| 944 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state.pressure)) : |
| 945 | MeanInput h (2 * CoordinateAlgebra.A h) := by |
| 946 | have hs : (VariableGaugeMean.reconstructState initialGeometry.gauge (commonContext B) |
| 947 | (ActualInitialization.initialCycleState B N0).state).pressure = |
| 948 | (ActualInitialization.initialCycleState B N0).state.pressure := by |
| 949 | rw [initialGeometry_gauge] |
| 950 | rfl |
| 951 | exact MeanInput.ofMoving standardRegion rfl ((initialCycleData H).pressureIncrementFamily j) hN |
| 952 | initialGeometry.inner_pos initialGeometry.inner_lt_outer |
| 953 | ((initialCycleData H).pressureIncrement_moving hs j) (pressureIncrement_nativeJets H j (by omega) HC) |
| 954 | |
| 955 | end ConstructedMeans |
| 956 | |
| 957 | end NavierStokes.ActualPhysicalStageBounds |