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.ActualInitialCoherence |
| 2 | import NavierStokes.ActualInitialMean |
| 3 | import NavierStokes.CycleStateCoherence |
| 4 | import NavierStokes.ActualMeanPotentialRealization |
| 5 | import NavierStokes.PhysicalStageBounds |
| 6 | import NavierStokes.LocalMeanPhysicalBounds |
| 7 | |
| 8 | /-! |
| 9 | # Physical mean fields glued from their actual valid bands |
| 10 | |
| 11 | Only overlapping valid slow strips are compared. The physical field is |
| 12 | defined by a valid-band choice, and its value is proved independent of that |
| 13 | choice. Native moving mean classes supply the physical derivative estimates. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace NavierStokes.ActualMeanPhysicalData |
| 19 | |
| 20 | open Set Function Filter ProblemStatement |
| 21 | open PhysicalResidualNaturality GaugeStateCoherence |
| 22 | open scoped Topology ContDiff BigOperators |
| 23 | |
| 24 | abbrev Plane := PressureStream.Plane |
| 25 | abbrev Point := PressureStream.Lift Plane |
| 26 | abbrev Scalar := ℕ → Point → ℝ |
| 27 | |
| 28 | /-- One common index and one band floor for every field in the construction. -/ |
| 29 | structure Atlas (h : ℝ) (N Δ : ℕ) where |
| 30 | index : ℕ → ℕ |
| 31 | index_le : ∀ n ≥ N, index n ≤ ChartScales.nativeIndex h n |
| 32 | gap_le : ∀ n ≥ N, ChartScales.nativeIndex h n - index n ≤ Δ |
| 33 | |
| 34 | noncomputable def Atlas.gap {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) (n : ℕ) : ℕ := |
| 35 | ChartScales.nativeIndex h n - A.index n |
| 36 | |
| 37 | theorem Atlas.index_eq {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) {n : ℕ} (hn : N ≤ n) : |
| 38 | ChartScales.nativeIndex h n - A.gap n = A.index n := |
| 39 | Nat.sub_sub_self (A.index_le n hn) |
| 40 | |
| 41 | noncomputable def commonAtlas (h : ℝ) (hh : 0 ≤ h) (N : ℕ) : |
| 42 | Atlas h N (CorrectionInitialization.CommonWindow.gap h) where |
| 43 | index := CorrectionInitialization.CommonWindow.index h |
| 44 | index_le n _ := CorrectionInitialization.CommonWindow.index_le_native h n |
| 45 | gap_le n _ := CorrectionInitialization.CommonWindow.gap_le h hh n |
| 46 | |
| 47 | noncomputable def Atlas.chart {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) (n : ℕ) : Point →L[ℝ] Point := |
| 48 | VariableGaugeMean.physicalToChartTZ h n (A.index n) |
| 49 | |
| 50 | noncomputable def overlap (h : ℝ) (U : Set Plane) (n m : ℕ) : Set Plane := |
| 51 | U ∩ (bandSlowEquiv h n m) ⁻¹' U |
| 52 | |
| 53 | theorem overlap_open (h : ℝ) {U : Set Plane} (hU : IsOpen U) (n m : ℕ) : |
| 54 | IsOpen (overlap h U n m) := |
| 55 | hU.inter (hU.preimage (bandSlowEquiv h n m).continuous) |
| 56 | |
| 57 | theorem power_scale_cancel (hdegree : ℝ) (n m : ℕ) : |
| 58 | ChartScales.Q n ^ (-hdegree) * (ChartScales.Q n / ChartScales.Q m) ^ hdegree = |
| 59 | ChartScales.Q m ^ (-hdegree) := by |
| 60 | rw [Real.div_rpow (ChartScales.Q_pos n).le (ChartScales.Q_pos m).le, |
| 61 | ← mul_div_assoc, ← Real.rpow_add (ChartScales.Q_pos n), neg_add_cancel, |
| 62 | Real.rpow_zero, one_div, Real.rpow_neg (ChartScales.Q_pos m).le] |
| 63 | |
| 64 | theorem coverMap_comp (i k : ℕ) (Y : Plane) : |
| 65 | TemporalMeanUpdate.coverMap k (TemporalMeanUpdate.coverMap i Y) = |
| 66 | TemporalMeanUpdate.coverMap (i + k) Y := by |
| 67 | simp only [MeanChartCompatibility.coverMap_eq_coverPower, CommonCoverSolve.coverPower_apply] |
| 68 | rw [add_comm i k, pow_add, _root_.mul_apply_eq_comp] |
| 69 | |
| 70 | theorem bandChart_chart {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 71 | (n m k : ℕ) (hi : A.index n + k = A.index m) (z : Point) : |
| 72 | bandChartEquiv h n m k (A.chart n z) = A.chart m z := by |
| 73 | simp only [Atlas.chart, bandChartEquiv_apply, PhysicalMeanJetBounds.physicalToChartTZ_apply, |
| 74 | bandSlowEquiv_apply, coverMap_comp, hi] |
| 75 | apply Prod.ext |
| 76 | · change (ChartScales.Q n / ChartScales.Q m) ^ (1 / 2 : ℝ) * |
| 77 | (ChartScales.Q n ^ (-(1 / 2 : ℝ)) * z.1) = _ |
| 78 | rw [mul_left_comm, ← mul_assoc, power_scale_cancel] |
| 79 | rfl |
| 80 | · apply Prod.ext |
| 81 | · apply Prod.ext |
| 82 | · simp only [Real.rpow_neg_one] |
| 83 | field_simp [(ChartScales.Q_pos n).ne', (ChartScales.Q_pos m).ne'] |
| 84 | · change (ChartScales.Q n / ChartScales.Q m) ^ CoordinateAlgebra.D h * |
| 85 | (ChartScales.Q n ^ (-CoordinateAlgebra.D h) * z.2.1.2) = _ |
| 86 | rw [mul_left_comm, ← mul_assoc, power_scale_cancel] |
| 87 | · rfl |
| 88 | |
| 89 | /-- This law is required only where both original band formulas are valid. -/ |
| 90 | def Atlas.OverlapLaw {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 91 | (U : Set Plane) (degree : ℝ) (f : Scalar) : Prop := |
| 92 | ∀ n ≥ N, ∀ m ≥ N, ∀ k, A.index n + k = A.index m → |
| 93 | ∀ x : Point, x.2.1 ∈ overlap h U n m → |
| 94 | f n x = (ChartScales.Q n / ChartScales.Q m) ^ degree * f m (bandChartEquiv h n m k x) |
| 95 | |
| 96 | def Atlas.Valid {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 97 | (U : Set Plane) (z : Point) (n : ℕ) : Prop := |
| 98 | N ≤ n ∧ 0 < z.2.1.1 ∧ (A.chart n z).2.1 ∈ U |
| 99 | |
| 100 | theorem Atlas.values_eq_ordered {h degree : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 101 | {U : Set Plane} {f : Scalar} (H : A.OverlapLaw U degree f) |
| 102 | {z : Point} {n m : ℕ} (hn : A.Valid U z n) (hm : A.Valid U z m) |
| 103 | (hi : A.index n ≤ A.index m) : |
| 104 | ChartScales.Q n ^ (-degree) * f n (A.chart n z) = |
| 105 | ChartScales.Q m ^ (-degree) * f m (A.chart m z) := by |
| 106 | let k := A.index m - A.index n |
| 107 | have hk : A.index n + k = A.index m := Nat.add_sub_of_le hi |
| 108 | have hc := bandChart_chart A n m k hk z |
| 109 | have hx : (A.chart n z).2.1 ∈ overlap h U n m := by |
| 110 | refine ⟨hn.2.2, ?_⟩ |
| 111 | change (bandChartEquiv h n m k (A.chart n z)).2.1 ∈ U |
| 112 | rw [hc] |
| 113 | exact hm.2.2 |
| 114 | rw [H n hn.1 m hm.1 k hk _ hx, hc, ← mul_assoc, power_scale_cancel] |
| 115 | |
| 116 | theorem Atlas.values_eq {h degree : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 117 | {U : Set Plane} {f : Scalar} (H : A.OverlapLaw U degree f) |
| 118 | {z : Point} {n m : ℕ} (hn : A.Valid U z n) (hm : A.Valid U z m) : |
| 119 | ChartScales.Q n ^ (-degree) * f n (A.chart n z) = |
| 120 | ChartScales.Q m ^ (-degree) * f m (A.chart m z) := by |
| 121 | rcases le_total (A.index n) (A.index m) with hi | hi |
| 122 | · exact A.values_eq_ordered H hn hm hi |
| 123 | · exact (A.values_eq_ordered H hm hn hi).symm |
| 124 | |
| 125 | noncomputable def Atlas.physical {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 126 | (U : Set Plane) (degree : ℝ) (f : Scalar) (z : Point) : ℝ := by |
| 127 | classical |
| 128 | exact if hz : ∃ n, A.Valid U z n then |
| 129 | ChartScales.Q (Classical.choose hz) ^ (-degree) * |
| 130 | f (Classical.choose hz) (A.chart (Classical.choose hz) z) |
| 131 | else 0 |
| 132 | |
| 133 | theorem Atlas.physical_eq {h degree : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 134 | {U : Set Plane} {f : Scalar} (H : A.OverlapLaw U degree f) |
| 135 | {z : Point} {n : ℕ} (hn : A.Valid U z n) : |
| 136 | A.physical U degree f z = ChartScales.Q n ^ (-degree) * f n (A.chart n z) := by |
| 137 | classical |
| 138 | have hz : ∃ n, A.Valid U z n := ⟨n, hn⟩ |
| 139 | rw [Atlas.physical, dite_eq_left hz] |
| 140 | exact A.values_eq H (Classical.choose_spec hz) hn |
| 141 | |
| 142 | /-- The physical field is constructed from overlapping valid bands. No |
| 143 | reference band is evaluated outside its original slow strip. -/ |
| 144 | noncomputable def Atlas.family {h degree : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 145 | {U : Set Plane} {f : Scalar} (H : A.OverlapLaw U degree f) : |
| 146 | PhysicalMeanJetBounds.CoherentFamily h degree N Δ U ℝ where |
| 147 | native := f |
| 148 | physical := A.physical U degree f |
| 149 | gap := A.gap |
| 150 | gap_le := A.gap_le |
| 151 | gap_native n _ := Nat.sub_le _ _ |
| 152 | coherent := by |
| 153 | intro n hn z ht hu |
| 154 | rw [A.index_eq hn] at hu ⊢ |
| 155 | exact A.physical_eq H ⟨hn, ht, hu⟩ |
| 156 | |
| 157 | /-! ## Extracting scalar families from actual state overlap -/ |
| 158 | |
| 159 | def Atlas.StateOverlap {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 160 | (U : Set Plane) (u : CorrectionState.State Point) : Prop := |
| 161 | ∀ n ≥ N, ∀ m ≥ N, ∀ k, A.index n + k = A.index m → |
| 162 | StateOn (PhysicalMeanDomain.slowDomain (overlap h U n m)) |
| 163 | (bandChartEquiv h n m k) (bandVelocityScale h n m) (bandScale n m) u u n m |
| 164 | |
| 165 | theorem Atlas.StateOverlap.radial {h : ℝ} {N Δ : ℕ} {A : Atlas h N Δ} |
| 166 | {U : Set Plane} {u : CorrectionState.State Point} (H : A.StateOverlap U u) : |
| 167 | A.OverlapLaw U (CoordinateAlgebra.A h) u.mean.radial := by |
| 168 | intro n hn m hm k hk x hx |
| 169 | exact (H n hn m hm k hk).mean.radial x hx |
| 170 | |
| 171 | theorem Atlas.StateOverlap.angular {h : ℝ} {N Δ : ℕ} {A : Atlas h N Δ} |
| 172 | {U : Set Plane} {u : CorrectionState.State Point} (H : A.StateOverlap U u) : |
| 173 | A.OverlapLaw U (CoordinateAlgebra.A h) u.mean.angular := by |
| 174 | intro n hn m hm k hk x hx |
| 175 | exact (H n hn m hm k hk).mean.angular x hx |
| 176 | |
| 177 | theorem Atlas.StateOverlap.axial {h : ℝ} {N Δ : ℕ} {A : Atlas h N Δ} |
| 178 | {U : Set Plane} {u : CorrectionState.State Point} (H : A.StateOverlap U u) : |
| 179 | A.OverlapLaw U (CoordinateAlgebra.A h) u.mean.axial := by |
| 180 | intro n hn m hm k hk x hx |
| 181 | exact (H n hn m hm k hk).mean.axial x hx |
| 182 | |
| 183 | theorem velocityScale_square (h : ℝ) (n m : ℕ) : |
| 184 | bandVelocityScale h n m * bandVelocityScale h n m = |
| 185 | (ChartScales.Q n / ChartScales.Q m) ^ (2 * CoordinateAlgebra.A h) := by |
| 186 | unfold bandVelocityScale |
| 187 | rw [← Real.rpow_add (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m)), two_mul] |
| 188 | |
| 189 | theorem Atlas.StateOverlap.pressure {h : ℝ} {N Δ : ℕ} {A : Atlas h N Δ} |
| 190 | {U : Set Plane} {u : CorrectionState.State Point} (H : A.StateOverlap U u) : |
| 191 | A.OverlapLaw U (2 * CoordinateAlgebra.A h) u.pressure := by |
| 192 | intro n hn m hm k hk x hx |
| 193 | simpa only [velocityScale_square] using (H n hn m hm k hk).pressure x hx |
| 194 | |
| 195 | noncomputable def Atlas.radialFamily {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 196 | {U : Set Plane} {u : CorrectionState.State Point} (H : A.StateOverlap U u) := A.family H.radial |
| 197 | |
| 198 | noncomputable def Atlas.angularFamily {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 199 | {U : Set Plane} {u : CorrectionState.State Point} (H : A.StateOverlap U u) := A.family H.angular |
| 200 | |
| 201 | noncomputable def Atlas.axialFamily {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 202 | {U : Set Plane} {u : CorrectionState.State Point} (H : A.StateOverlap U u) := A.family H.axial |
| 203 | |
| 204 | noncomputable def Atlas.pressureFamily {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 205 | {U : Set Plane} {u : CorrectionState.State Point} (H : A.StateOverlap U u) := A.family H.pressure |
| 206 | |
| 207 | /-! ## The literal initialized mean and pressure -/ |
| 208 | |
| 209 | open CorrectionInitialization.ActualPrimary |
| 210 | |
| 211 | noncomputable def initialAtlas (N : ℕ) := commonAtlas h outgoing.data.h_pos.le N |
| 212 | |
| 213 | theorem initialized_overlap (B N0 N : ℕ) : |
| 214 | (initialAtlas N).StateOverlap standardRegion.carrier (ActualInitialCoherence.initialized B N0) := by |
| 215 | intro n hn m hm k hk |
| 216 | exact ActualInitialCoherence.initialized_on_overlap B N0 n m k hk |
| 217 | |
| 218 | noncomputable def initialRadialFamily (B N0 N : ℕ) := |
| 219 | (initialAtlas N).radialFamily (initialized_overlap B N0 N) |
| 220 | |
| 221 | noncomputable def initialAngularFamily (B N0 N : ℕ) := |
| 222 | (initialAtlas N).angularFamily (initialized_overlap B N0 N) |
| 223 | |
| 224 | noncomputable def initialAxialFamily (B N0 N : ℕ) := |
| 225 | (initialAtlas N).axialFamily (initialized_overlap B N0 N) |
| 226 | |
| 227 | noncomputable def initialPressureFamily (B N0 N : ℕ) := |
| 228 | (initialAtlas N).pressureFamily (initialized_overlap B N0 N) |
| 229 | |
| 230 | theorem initial_mean_moving (B N0 : ℕ) : |
| 231 | MeanStateRegularity.MovingTriple standardRegion commonGauge.radial.inner commonGauge.radial.outer |
| 232 | (ActualInitialCoherence.initialized B N0).mean := |
| 233 | (ActualInitialCoherence.initialized_primitive B N0).mean |
| 234 | |
| 235 | theorem initial_pressure_moving (B N0 : ℕ) : |
| 236 | GaugeMomentBalances.MovingField standardRegion commonGauge.radial.inner commonGauge.radial.outer |
| 237 | (ActualInitialCoherence.initialized B N0).pressure := |
| 238 | (ActualInitialCoherence.initialized_primitive B N0).pressure |
| 239 | (PrimaryTargetBounds.leftRadius_pos nominal) |
| 240 | (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) commonGauge_length |
| 241 | (congrArg (fun s : CorrectionState.State Point => s.pressure) |
| 242 | (ActualInitialCoherence.initialized_reconstructed B N0)) |
| 243 | |
| 244 | /-! ## Native classes supply the jets; no physical estimate is an input -/ |
| 245 | |
| 246 | theorem slowScale_le_S {n : ℕ} (hn : 1 ≤ n) : |
| 247 | BaseContextAssembly.slowScale n ≤ ChartScales.S n := by |
| 248 | have hn' : (1 : ℝ) ≤ n := by exact_mod_cast hn |
| 249 | unfold BaseContextAssembly.slowScale |
| 250 | apply max_le |
| 251 | · dsimp [ChartScales.S] |
| 252 | nlinarith |
| 253 | · exact le_rfl |
| 254 | |
| 255 | theorem initial_nativeJets_of_class {α : ℝ} {f : Scalar} |
| 256 | (H : GaugeMomentBalances.MovingField standardRegion commonGauge.radial.inner commonGauge.radial.outer f) |
| 257 | (hc : WeightedClasses.MeanClass ActualInitialMean.strip α f) |
| 258 | (N : ℕ) (hN : 1 ≤ N) : |
| 259 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * α) f := by |
| 260 | apply PhysicalMeanJetBounds.NativeJets.of_movingMeanClass standardRegion |
| 261 | (PrimaryTargetBounds.leftRadius_pos nominal) |
| 262 | (div_pos (FinalSlowBase.edgeExponent_pos nominal) (by norm_num)) zero_lt_one |
| 263 | (ChartScales.epsilon h) BaseContextAssembly.slowScale (ChartScales.epsilon_pos h) |
| 264 | (ChartScales.epsilon_le_one h outgoing.data.h_pos.le) BaseContextAssembly.one_le_slowScale |
| 265 | H.smooth H.supported hc N (fun _ _ => rfl) (C := 1) (p := 1) le_rfl |
| 266 | intro n hn |
| 267 | simpa only [one_mul, pow_one] using slowScale_le_S (hN.trans hn) |
| 268 | |
| 269 | theorem initialRadial_nativeJets (B N0 N : ℕ) (hN : 1 ≤ N) : |
| 270 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (19 / 10)) |
| 271 | (initialRadialFamily B N0 N).native := |
| 272 | initial_nativeJets_of_class (initial_mean_moving B N0).radial |
| 273 | (ActualInitialMean.initial_cumulative_bounds B N0).velocity.radial N hN |
| 274 | |
| 275 | theorem initialAngular_nativeJets (B N0 N : ℕ) (hN : 1 ≤ N) : |
| 276 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (9 / 10)) |
| 277 | (initialAngularFamily B N0 N).native := |
| 278 | initial_nativeJets_of_class (initial_mean_moving B N0).angular |
| 279 | (ActualInitialMean.initial_cumulative_bounds B N0).velocity.angular N hN |
| 280 | |
| 281 | theorem initialAxial_nativeJets (B N0 N : ℕ) (hN : 1 ≤ N) : |
| 282 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (9 / 10)) |
| 283 | (initialAxialFamily B N0 N).native := |
| 284 | initial_nativeJets_of_class (initial_mean_moving B N0).axial |
| 285 | (ActualInitialMean.initial_cumulative_bounds B N0).velocity.axial N hN |
| 286 | |
| 287 | theorem initialPressure_nativeJets (B N0 N : ℕ) (hN : 1 ≤ N) : |
| 288 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (9 / 10)) |
| 289 | (initialPressureFamily B N0 N).native := |
| 290 | initial_nativeJets_of_class (initial_pressure_moving B N0) |
| 291 | (ActualInitialMean.initial_cumulative_bounds B N0).pressure N hN |
| 292 | |
| 293 | theorem initialAngular_field_eq (B N0 N n : ℕ) (hn : N ≤ n) {w : SpaceTime} |
| 294 | (ht : w ∈ PhysicalWaveSum.preterminal) |
| 295 | (hu : (PhysicalMeanJetBounds.graph h n ((initialAtlas N).gap n) w).2.1 ∈ standardRegion.carrier) : |
| 296 | (initialAngularFamily B N0 N).field w = ChartScales.Q n ^ (-CoordinateAlgebra.A h) * |
| 297 | (ActualInitialCoherence.initialized B N0).mean.angular n |
| 298 | (PhysicalMeanJetBounds.graph h n ((initialAtlas N).gap n) w) := |
| 299 | (initialAngularFamily B N0 N).field_eq n hn ht hu |
| 300 | |
| 301 | theorem initialPressure_field_eq (B N0 N n : ℕ) (hn : N ≤ n) {w : SpaceTime} |
| 302 | (ht : w ∈ PhysicalWaveSum.preterminal) |
| 303 | (hu : (PhysicalMeanJetBounds.graph h n ((initialAtlas N).gap n) w).2.1 ∈ standardRegion.carrier) : |
| 304 | (initialPressureFamily B N0 N).field w = ChartScales.Q n ^ (-(2 * CoordinateAlgebra.A h)) * |
| 305 | (ActualInitialCoherence.initialized B N0).pressure n |
| 306 | (PhysicalMeanJetBounds.graph h n ((initialAtlas N).gap n) w) := |
| 307 | (initialPressureFamily B N0 N).field_eq n hn ht hu |
| 308 | |
| 309 | /-! ## Scalar stream overlap from the actual primitive operators -/ |
| 310 | |
| 311 | def Atlas.ContextOverlap {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 312 | (U : Set Plane) (c : CorrectionState.Context Point) : Prop := |
| 313 | ∀ n ≥ N, ∀ m ≥ N, ∀ k, A.index n + k = A.index m → |
| 314 | ContextOn (PhysicalMeanDomain.slowDomain (overlap h U n m)) |
| 315 | (bandChartEquiv h n m k) (bandVelocityScale h n m) (bandScale n m) c c n m |
| 316 | |
| 317 | def Atlas.GaugeOverlap {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 318 | (U : Set Plane) (g : VariableGaugeMean.GaugeData Plane) : Prop := |
| 319 | ∀ n ≥ N, ∀ m ≥ N, ∀ k, A.index n + k = A.index m → |
| 320 | GaugeOn (overlap h U n m) (bandScale n m) (bandSlowEquiv h n m).toContinuousLinearMap k g g n m |
| 321 | |
| 322 | theorem streamScale (h : ℝ) (n m : ℕ) : |
| 323 | bandVelocityScale h n m / bandScale n m = |
| 324 | (ChartScales.Q n / ChartScales.Q m) ^ (CoordinateAlgebra.A h - 1 / 2) := by |
| 325 | rw [Real.rpow_sub (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m))] |
| 326 | rfl |
| 327 | |
| 328 | theorem temporalPotential_moving {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 329 | (g : VariableGaugeMean.GaugeData Plane) (c : CorrectionState.Context Point) |
| 330 | (u : CorrectionState.State Point) |
| 331 | (HP : MeanStateRegularity.PrimitiveData U g.radial.inner g.radial.outer c u) |
| 332 | (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 333 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 334 | (hfixed : (VariableGaugeMean.reconstructState g c u).pressure = u.pressure) |
| 335 | (h : ℝ) (index : ℕ → ℕ) : |
| 336 | GaugeMomentBalances.MovingField U g.radial.inner g.radial.outer |
| 337 | (VariableGaugeMean.temporalPotential g h index c u) := by |
| 338 | have Hz := MeanStageRegularity.MovingField.temporalAtIndex |
| 339 | (HP.axial_reconstructed ha hd hell hfixed) h index |
| 340 | convert! MeanStageRegularity.MovingField.streamPotential Hz ha g.radial.inner_lt_outer |
| 341 | hd g.radial.frequency g.radial.radialDirection using 1 |
| 342 | funext n x |
| 343 | simp only [VariableGaugeMean.temporalPotential, hell] |
| 344 | |
| 345 | theorem Atlas.temporal_overlap {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 346 | (U : LocalSignedRequest.SlowRegion (2 * h)) |
| 347 | (g : VariableGaugeMean.GaugeData Plane) (c : CorrectionState.Context Point) |
| 348 | (u : CorrectionState.State Point) |
| 349 | (HC : A.ContextOverlap U.carrier c) (HS : A.StateOverlap U.carrier u) |
| 350 | (HG : A.GaugeOverlap U.carrier g) |
| 351 | (HP : MeanStateRegularity.PrimitiveData U g.radial.inner g.radial.outer c u) |
| 352 | (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 353 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength (2 * h)) |
| 354 | (hfixed : (VariableGaugeMean.reconstructState g c u).pressure = u.pressure) : |
| 355 | A.OverlapLaw U.carrier (CoordinateAlgebra.A h - 1 / 2) |
| 356 | (VariableGaugeMean.temporalPotential g h A.index c u) := by |
| 357 | intro n hn m hm k hk x hx |
| 358 | have Hz := HP.axial_reconstructed ha hd hell hfixed |
| 359 | have Hs : VariableGaugeMean.SupportedGauge g.radial.inner g.radial.outer (g.length m) |
| 360 | U.carrier (u.axialResidual c m) := by |
| 361 | rw [hell] |
| 362 | exact Hz.supported m |
| 363 | have Ht := TemporalStateCoherence.temporalPotential_on (bandScale_pos n m) (bandSlowEquiv h n m) k |
| 364 | (overlap_open h U.isOpen n m) U.isOpen (fun _ hx => hx.2) g g c c u u h A.index A.index |
| 365 | n m ha hd (HG n hn m hm k hk) (HS n hn m hm k hk) (HC n hn m hm k hk) |
| 366 | (TemporalStateCoherence.clock_band_transport h n m _ _ k hk) |
| 367 | (Hz.smooth m) (Hz.periodic m) Hs |
| 368 | have he := Ht x hx |
| 369 | simp only [streamScale] at he ⊢ |
| 370 | exact he |
| 371 | |
| 372 | theorem rankPotential_moving {coord : ℝ} (U : LocalSignedRequest.SlowRegion coord) |
| 373 | (g : VariableGaugeMean.GaugeData Plane) (r : CorrectionState.RankData Plane) |
| 374 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 375 | (HG : LocalRankDefect.RankGeometry g r U.carrier c u) |
| 376 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength coord) : |
| 377 | GaugeMomentBalances.MovingField U g.radial.inner g.radial.outer |
| 378 | (VariableGaugeMean.rankPotential g r c u) := by |
| 379 | have HD := MeanStageRegularity.rankDesired_moving HG hell |
| 380 | convert! MeanStageRegularity.MovingField.streamPotential HD HG.primitive_inner_pos |
| 381 | g.radial.inner_lt_outer HG.exponent_pos g.radial.frequency g.radial.radialDirection using 1 |
| 382 | funext n x |
| 383 | simp only [VariableGaugeMean.rankPotential, hell] |
| 384 | |
| 385 | def Atlas.RankOverlap {h : ℝ} {N Δ : ℕ} (_A : Atlas h N Δ) |
| 386 | (U : Set Plane) (r : CorrectionState.RankData Plane) : Prop := |
| 387 | ∀ n ≥ N, ∀ m ≥ N, RankStateCoherence.RankOn (overlap h U n m) (bandSlowEquiv h n m) |
| 388 | (bandScale n m) (bandVelocityScale h n m) r r n m |
| 389 | |
| 390 | theorem Atlas.rank_overlap {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 391 | (U : LocalSignedRequest.SlowRegion (2 * h)) |
| 392 | (g : VariableGaugeMean.GaugeData Plane) (r : CorrectionState.RankData Plane) |
| 393 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 394 | (HC : A.ContextOverlap U.carrier c) (HS : A.StateOverlap U.carrier u) |
| 395 | (HG : A.GaugeOverlap U.carrier g) (HR : A.RankOverlap U.carrier r) |
| 396 | (HP : MeanStateRegularity.PrimitiveData U g.radial.inner g.radial.outer c u) |
| 397 | (HF : LocalRankDefect.RankGeometry g r U.carrier c u) : |
| 398 | A.OverlapLaw U.carrier (CoordinateAlgebra.A h - 1 / 2) |
| 399 | (VariableGaugeMean.rankPotential g r c u) := by |
| 400 | intro n hn m hm k hk x hx |
| 401 | have Hd := CycleStateCoherence.debtRegular_of_primitive HP HF.primitive_inner_pos g.radial.inner_lt_outer m |
| 402 | have Hp := RankStateCoherence.rankPotential_on (bandScale_pos n m) |
| 403 | (Real.rpow_pos_of_pos (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m)) _).ne' |
| 404 | (bandSlowEquiv h n m) k (overlap_open h U.isOpen n m) U.isOpen (fun _ hx => hx.2) |
| 405 | (HS n hn m hm k hk) (HC n hn m hm k hk) Hd (HR n hn m hm) (HG n hn m hm k hk) HF |
| 406 | have he := Hp x hx |
| 407 | simp only [ bandScale, |
| 408 | ← Real.rpow_sub (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m))] at he ⊢ |
| 409 | exact he |
| 410 | |
| 411 | /-! ## The actual initial temporal and rank streams -/ |
| 412 | |
| 413 | theorem initial_context_overlap (B N : ℕ) : |
| 414 | (initialAtlas N).ContextOverlap standardRegion.carrier (commonContext B) := by |
| 415 | intro n hn m hm k hk |
| 416 | exact ActualInitialCoherence.context_band B |
| 417 | (fun s hs => standardRegion.time_pos s hs.1) n m k hk |
| 418 | |
| 419 | theorem initial_gauge_overlap (N : ℕ) : |
| 420 | (initialAtlas N).GaugeOverlap standardRegion.carrier commonGauge := by |
| 421 | intro n hn m hm k hk |
| 422 | exact ActualInitialCoherence.commonGauge_on |
| 423 | (fun s hs => standardRegion.time_pos s hs.1) n m k hk |
| 424 | |
| 425 | theorem initial_rank_overlap (N : ℕ) : |
| 426 | (initialAtlas N).RankOverlap standardRegion.carrier rankData := by |
| 427 | intro n hn m hm |
| 428 | exact RankStateCoherence.normalized_rank_on outgoing.data.h_pos outgoing.data.h_lt_half |
| 429 | rankAmplitude outgoing.data.core.lam rankInner rankOuter n m |
| 430 | (fun s hs => standardRegion.time_pos s hs.1) |
| 431 | |
| 432 | theorem initial_primary_overlap (B N0 N : ℕ) : |
| 433 | (initialAtlas N).StateOverlap standardRegion.carrier (ActualInitialCoherence.primary B N0) := by |
| 434 | intro n hn m hm k hk |
| 435 | exact ActualInitialCoherence.primary_band_of_seed B N0 n m k hk |
| 436 | (overlap_open h standardRegion.isOpen n m) inter_subset_left (fun _ hx => hx.2) |
| 437 | (ActualInitialCoherence.seed_primitive B N0) |
| 438 | (ActualInitialCoherence.seed_band B N0 n m k hk inter_subset_left (fun _ hx => hx.2)) |
| 439 | |
| 440 | theorem initial_temporalState_overlap (B N0 N : ℕ) : |
| 441 | (initialAtlas N).StateOverlap standardRegion.carrier (ActualInitialCoherence.temporal B N0) := by |
| 442 | intro n hn m hm k hk |
| 443 | exact ActualInitialCoherence.temporal_band_of_seed B N0 n m k hk |
| 444 | (overlap_open h standardRegion.isOpen n m) inter_subset_left (fun _ hx => hx.2) |
| 445 | (ActualInitialCoherence.seed_primitive B N0) |
| 446 | (ActualInitialCoherence.seed_band B N0 n m k hk inter_subset_left (fun _ hx => hx.2)) |
| 447 | |
| 448 | noncomputable def initialTemporalScalar (B N0 : ℕ) : Scalar := |
| 449 | VariableGaugeMean.temporalPotential commonGauge h (CorrectionInitialization.CommonWindow.index h) |
| 450 | (commonContext B) (ActualInitialCoherence.primary B N0) |
| 451 | |
| 452 | noncomputable def initialRankScalar (B N0 : ℕ) : Scalar := |
| 453 | VariableGaugeMean.rankPotential commonGauge rankData (commonContext B) (ActualInitialCoherence.temporal B N0) |
| 454 | |
| 455 | theorem initialTemporal_overlap (B N0 N : ℕ) : |
| 456 | (initialAtlas N).OverlapLaw standardRegion.carrier (CoordinateAlgebra.A h - 1 / 2) |
| 457 | (initialTemporalScalar B N0) := |
| 458 | (initialAtlas N).temporal_overlap standardRegion commonGauge (commonContext B) |
| 459 | (ActualInitialCoherence.primary B N0) (initial_context_overlap B N) (initial_primary_overlap B N0 N) |
| 460 | (initial_gauge_overlap N) (ActualInitialCoherence.primary_primitive B N0) |
| 461 | (PrimaryTargetBounds.leftRadius_pos nominal) |
| 462 | (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) commonGauge_length rfl |
| 463 | |
| 464 | theorem initialRank_overlap (B N0 N : ℕ) : |
| 465 | (initialAtlas N).OverlapLaw standardRegion.carrier (CoordinateAlgebra.A h - 1 / 2) |
| 466 | (initialRankScalar B N0) := |
| 467 | (initialAtlas N).rank_overlap standardRegion commonGauge rankData (commonContext B) |
| 468 | (ActualInitialCoherence.temporal B N0) (initial_context_overlap B N) (initial_temporalState_overlap B N0 N) |
| 469 | (initial_gauge_overlap N) (initial_rank_overlap N) (ActualInitialCoherence.temporal_primitive B N0) |
| 470 | (ActualInitialCoherence.rank_geometry_of_primitive B _ (ActualInitialCoherence.temporal_primitive B N0)) |
| 471 | |
| 472 | noncomputable def initialTemporalFamily (B N0 N : ℕ) := |
| 473 | (initialAtlas N).family (initialTemporal_overlap B N0 N) |
| 474 | |
| 475 | noncomputable def initialRankFamily (B N0 N : ℕ) := |
| 476 | (initialAtlas N).family (initialRank_overlap B N0 N) |
| 477 | |
| 478 | theorem initialTemporal_moving (B N0 : ℕ) : |
| 479 | GaugeMomentBalances.MovingField standardRegion commonGauge.radial.inner commonGauge.radial.outer |
| 480 | (initialTemporalScalar B N0) := |
| 481 | temporalPotential_moving standardRegion commonGauge (commonContext B) (ActualInitialCoherence.primary B N0) |
| 482 | (ActualInitialCoherence.primary_primitive B N0) (PrimaryTargetBounds.leftRadius_pos nominal) |
| 483 | (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) commonGauge_length rfl h |
| 484 | (CorrectionInitialization.CommonWindow.index h) |
| 485 | |
| 486 | theorem initialRank_moving (B N0 : ℕ) : |
| 487 | GaugeMomentBalances.MovingField standardRegion commonGauge.radial.inner commonGauge.radial.outer |
| 488 | (initialRankScalar B N0) := |
| 489 | rankPotential_moving standardRegion commonGauge rankData (commonContext B) (ActualInitialCoherence.temporal B N0) |
| 490 | (ActualInitialCoherence.rank_geometry_of_primitive B _ (ActualInitialCoherence.temporal_primitive B N0)) |
| 491 | commonGauge_length |
| 492 | |
| 493 | /-! ## Stream classes derived from the actual sources -/ |
| 494 | |
| 495 | theorem rankPotential_class {coord A0 B0 α cL cR : ℝ} |
| 496 | (U : LocalSignedRequest.SlowRegion coord) |
| 497 | (g : VariableGaugeMean.GaugeData Plane) (r : CorrectionState.RankData Plane) |
| 498 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 499 | (ha : 0 < g.radial.inner) (hcL : 0 < cL) (hcR : 0 < cR) |
| 500 | (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) |
| 501 | (HG : LocalRankDefect.RankGeometry g r U.carrier c u) |
| 502 | (HP : RankStateBounds.NormalizedParameters coord A0 B0 r U.carrier) (hB : B0 ≠ 0) |
| 503 | (hleft : g.radial.inner < r.inner) (hright : r.outer < g.radial.outer) |
| 504 | (HD : WeightedClasses.UnweightedClass |
| 505 | (PhysicalMeanDomain.localSlowStripData U.carrier U.isOpen ε L hε hεone hL) |
| 506 | α (CorrectionState.debt c u)) : |
| 507 | WeightedClasses.MeanClass |
| 508 | (LocalSignedRequest.movingStripData U g.radial.inner g.radial.outer cL cR ha hcL hcR ε L hε hεone hL) |
| 509 | α (VariableGaugeMean.rankPotential g r c u) := by |
| 510 | obtain ⟨lo, hi, hlo, horder, hlo', hhi', hlow, hupp⟩ := |
| 511 | RankStateBounds.containingShell U HG.inner_pos HG.inner_lt_outer |
| 512 | have hlow' (n : ℕ) (x : Plane) (hx : x ∈ U.carrier) : lo ≤ r.length n x * r.inner := by |
| 513 | rw [HP.length n x hx] |
| 514 | exact hlow x hx |
| 515 | have hupp' (n : ℕ) (x : Plane) (hx : x ∈ U.carrier) : r.length n x * r.outer ≤ hi := by |
| 516 | rw [HP.length n x hx] |
| 517 | exact hupp x hx |
| 518 | have Hsource := (RankStateBounds.rankSources_fixedClass U HG HP hB hlo hcL hcR |
| 519 | hlo' hhi' ε L hε hεone hL HD).2 |
| 520 | have Hfixed := LocalRankDefect.RankGeometry.potential_class hlo horder hcL hcR |
| 521 | ε L hε hεone hL U.carrier U.isOpen HG hlow' hupp' Hsource |
| 522 | have Hlocal := HG.potential_localShell hlo horder U.isOpen hlow' hupp' |
| 523 | have Hsupport (n : ℕ) : VariableGaugeMean.SupportedGauge r.inner r.outer |
| 524 | (VariableGaugeMean.qLength coord) U.carrier (VariableGaugeMean.rankPotential g r c u n) := by |
| 525 | intro z hz hne |
| 526 | have Hs := HG.potential_supportedGauge n z hz hne |
| 527 | simpa only [HP.length n _ hz] using Hs |
| 528 | exact RankStateBounds.fixedClass_to_moving U ha hlo hcL hcR ε L hε hεone hL |
| 529 | hleft hright Hlocal Hsupport Hfixed |
| 530 | |
| 531 | theorem initialTemporal_class (B N0 : ℕ) : |
| 532 | WeightedClasses.MeanClass ActualInitialMean.strip (1 - ChartScales.kappa) (initialTemporalScalar B N0) := by |
| 533 | have Hz := (ActualInitialCoherence.primary_primitive B N0).axial_reconstructed |
| 534 | (PrimaryTargetBounds.leftRadius_pos nominal) |
| 535 | (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) commonGauge_length rfl |
| 536 | have Hc := (ActualInitialMean.primary_bounds B N0).2.2.2.1 |
| 537 | have Hp := VariableGaugeMean.meanClass_temporalStreamPotential standardRegion |
| 538 | (PrimaryTargetBounds.leftRadius_pos nominal) (PrimaryTargetBounds.radii_ordered nominal) |
| 539 | (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) |
| 540 | (div_pos (FinalSlowBase.edgeExponent_pos nominal) (by norm_num)) zero_lt_one |
| 541 | (ChartScales.epsilon h) BaseContextAssembly.slowScale (ChartScales.epsilon_pos h) |
| 542 | (ChartScales.epsilon_le_one h outgoing.data.h_pos.le) BaseContextAssembly.one_le_slowScale |
| 543 | outgoing.data.h_pos.le (fun n => le_max_right 1 (ChartScales.S n)) |
| 544 | (CorrectionInitialization.CommonWindow.index h) (CorrectionInitialization.CommonWindow.gap h) |
| 545 | (CorrectionInitialization.CommonWindow.native_le_index_add h outgoing.data.h_pos.le) |
| 546 | Hz.smooth Hz.periodic Hz.supported Hc commonGauge.radial.frequency |
| 547 | (fun _ => commonGauge.radial.radialDirection) |
| 548 | convert! Hp using 1 |
| 549 | |
| 550 | theorem initialRank_class (B N0 : ℕ) : |
| 551 | WeightedClasses.MeanClass ActualInitialMean.strip (1 - ChartScales.kappa) (initialRankScalar B N0) := by |
| 552 | have HD := (ActualInitialMean.primary_mean_data B N0).temporal_debt_bounds |
| 553 | (ActualInitialMean.temporal_bounds B N0) |
| 554 | exact rankPotential_class standardRegion commonGauge rankData (commonContext B) |
| 555 | (ActualInitialCoherence.temporal B N0) (PrimaryTargetBounds.leftRadius_pos nominal) |
| 556 | (div_pos (FinalSlowBase.edgeExponent_pos nominal) (by norm_num)) zero_lt_one |
| 557 | (ChartScales.epsilon h) BaseContextAssembly.slowScale (ChartScales.epsilon_pos h) |
| 558 | (ChartScales.epsilon_le_one h outgoing.data.h_pos.le) BaseContextAssembly.one_le_slowScale |
| 559 | (ActualInitialCoherence.rank_geometry_of_primitive B _ (ActualInitialCoherence.temporal_primitive B N0)) |
| 560 | (rankData_parameters standardRegion.carrier) rankAmplitude_pos.ne' |
| 561 | active_left_before_rank rank_before_active_right HD |
| 562 | |
| 563 | theorem initialTemporal_nativeJets (B N0 N : ℕ) (hN : 1 ≤ N) : |
| 564 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (1 - ChartScales.kappa)) |
| 565 | (initialTemporalFamily B N0 N).native := |
| 566 | initial_nativeJets_of_class (initialTemporal_moving B N0) (initialTemporal_class B N0) N hN |
| 567 | |
| 568 | theorem initialRank_nativeJets (B N0 N : ℕ) (hN : 1 ≤ N) : |
| 569 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (1 - ChartScales.kappa)) |
| 570 | (initialRankFamily B N0 N).native := |
| 571 | initial_nativeJets_of_class (initialRank_moving B N0) (initialRank_class B N0) N hN |
| 572 | |
| 573 | /-! ## One atlas for the literal correction recurrence -/ |
| 574 | |
| 575 | open CorrectionStep CorrectionState |
| 576 | |
| 577 | /-- The inputs are the seed and the two actual wave insertions per cycle. |
| 578 | Mean and pressure overlap at later states is proved from these data. -/ |
| 579 | structure CycleData {ι : Type} (G : CycleStateCoherence.Geometry) (N Δ : ℕ) |
| 580 | (p : ℕ → CycleParameters ι) (c : Context Point) (seed : CycleState ι) |
| 581 | (U : LocalSignedRequest.SlowRegion (2 * G.h)) where |
| 582 | atlas : Atlas G.h N Δ |
| 583 | index_eq : atlas.index = G.index |
| 584 | realizes : ∀ j, CycleStateCoherence.Realizes G (p j) c |
| 585 | context : atlas.ContextOverlap U.carrier c |
| 586 | seed_state : atlas.StateOverlap U.carrier seed.state |
| 587 | seed_axis : ∀ n ≥ N, ∀ m ≥ N, ∀ k, atlas.index n + k = atlas.index m → |
| 588 | CycleStateCoherence.AxisBand G (overlap G.h U.carrier n m) n m k seed.axisymmetricAlias |
| 589 | primitive : MeanStateRegularity.PrimitiveData U G.inner G.outer c seed.state |
| 590 | rank : LocalRankDefect.RankGeometry G.gauge G.rank U.carrier c seed.state |
| 591 | covariance_particular : ∀ j, let x := CycleState.iterate p c seed j |
| 592 | ∀ i l, GaugeMomentBalances.MovingField U G.inner G.outer |
| 593 | (SignedMeanGain.covarianceIncrement x.state.oscillation |
| 594 | ((p j).particularVelocity x.coefficients c x.state) i l) |
| 595 | covariance_signed : ∀ j, let x := CycleState.iterate p c seed j |
| 596 | ∀ i l, GaugeMomentBalances.MovingField U G.inner G.outer |
| 597 | (SignedMeanGain.covarianceIncrement ((p j).afterParticular x.coefficients c x.state).oscillation |
| 598 | ((p j).signedVelocity x.coefficients c x.state) i l) |
| 599 | waves : ∀ n ≥ N, ∀ m ≥ N, ∀ k, atlas.index n + k = atlas.index m → |
| 600 | ∀ j, let x := CycleState.iterate p c seed j |
| 601 | CycleStateCoherence.CycleWavesOn G (p j) x.coefficients c x.state |
| 602 | (overlap G.h U.carrier n m) n m k |
| 603 | |
| 604 | namespace CycleData |
| 605 | |
| 606 | variable {ι : Type} {G : CycleStateCoherence.Geometry} {N Δ : ℕ} |
| 607 | {p : ℕ → CycleParameters ι} {c : Context Point} {seed : CycleState ι} |
| 608 | {U : LocalSignedRequest.SlowRegion (2 * G.h)} (D : CycleData G N Δ p c seed U) |
| 609 | |
| 610 | include D |
| 611 | |
| 612 | theorem at_pair (n : ℕ) (hn : N ≤ n) (m : ℕ) (hm : N ≤ m) (k : ℕ) |
| 613 | (hk : D.atlas.index n + k = D.atlas.index m) (j : ℕ) : |
| 614 | CycleStateCoherence.StateBand G (overlap G.h U.carrier n m) n m k (CycleState.iterate p c seed j).state ∧ |
| 615 | CycleStateCoherence.AxisBand G (overlap G.h U.carrier n m) n m k (CycleState.iterate p c seed j).axisymmetricAlias ∧ |
| 616 | MeanStateRegularity.PrimitiveData U G.inner G.outer c (CycleState.iterate p c seed j).state := |
| 617 | CycleStateCoherence.iterate_state_axis G p c seed D.realizes |
| 618 | (overlap_open G.h U.isOpen n m) inter_subset_left n m k |
| 619 | (by simpa only [D.index_eq] using hk) (fun _ hx => hx.2) |
| 620 | (D.context n hn m hm k hk) (D.seed_state n hn m hm k hk) (D.seed_axis n hn m hm k hk) |
| 621 | D.primitive D.rank D.covariance_particular D.covariance_signed (D.waves n hn m hm k hk) j |
| 622 | |
| 623 | theorem state_overlap (j : ℕ) : |
| 624 | D.atlas.StateOverlap U.carrier (CycleState.iterate p c seed j).state := |
| 625 | fun n hn m hm k hk => (D.at_pair n hn m hm k hk j).1 |
| 626 | |
| 627 | theorem primitives (j : ℕ) : |
| 628 | MeanStateRegularity.PrimitiveData U G.inner G.outer c (CycleState.iterate p c seed j).state := |
| 629 | (D.at_pair N le_rfl N le_rfl 0 (by simp) j).2.2 |
| 630 | |
| 631 | theorem inner_eq (j : ℕ) : (p j).gauge.radial.inner = G.inner := by |
| 632 | rw [(D.realizes j).gauge] |
| 633 | rfl |
| 634 | |
| 635 | theorem outer_eq (j : ℕ) : (p j).gauge.radial.outer = G.outer := by |
| 636 | rw [(D.realizes j).gauge] |
| 637 | rfl |
| 638 | |
| 639 | theorem rank_geometry (j : ℕ) : |
| 640 | LocalRankDefect.RankGeometry (p j).gauge (p j).rank U.carrier c (CycleState.iterate p c seed j).state := by |
| 641 | rw [(D.realizes j).gauge, (D.realizes j).rank] |
| 642 | exact MeanStageRegularity.rankGeometry_for_state (D.primitives j) G.inner_pos G.inner_lt_outer D.rank |
| 643 | |
| 644 | theorem stage_primitives (j : ℕ) : |
| 645 | CycleStateCoherence.StagePrimitives G (p j) (CycleState.iterate p c seed j).coefficients c |
| 646 | (CycleState.iterate p c seed j).state U := by |
| 647 | apply CycleStateCoherence.stage_primitives (D.realizes j) |
| 648 | · simpa only [D.inner_eq, D.outer_eq] using D.primitives j |
| 649 | · simpa only [D.inner_eq, D.outer_eq] using D.covariance_particular j |
| 650 | · simpa only [D.inner_eq, D.outer_eq] using D.covariance_signed j |
| 651 | · exact D.rank_geometry j |
| 652 | |
| 653 | theorem stage_transport (j : ℕ) (n : ℕ) (hn : N ≤ n) (m : ℕ) (hm : N ≤ m) (k : ℕ) |
| 654 | (hk : D.atlas.index n + k = D.atlas.index m) : |
| 655 | CycleStateCoherence.CycleTransport G (p j) (CycleState.iterate p c seed j).coefficients c |
| 656 | (CycleState.iterate p c seed j).state (overlap G.h U.carrier n m) n m k := by |
| 657 | apply CycleStateCoherence.cycle_transport (D.realizes j) (overlap_open G.h U.isOpen n m) |
| 658 | inter_subset_left n m k (by simpa only [D.index_eq] using hk) (fun _ hx => hx.2) |
| 659 | (D.context n hn m hm k hk) (D.state_overlap j n hn m hm k hk) |
| 660 | · simpa only [D.inner_eq, D.outer_eq] using D.primitives j |
| 661 | · simpa only [D.inner_eq, D.outer_eq] using D.covariance_particular j |
| 662 | · simpa only [D.inner_eq, D.outer_eq] using D.covariance_signed j |
| 663 | · exact D.rank_geometry j |
| 664 | · exact D.waves n hn m hm k hk j |
| 665 | |
| 666 | noncomputable def radialFamily (j : ℕ) := D.atlas.radialFamily (D.state_overlap j) |
| 667 | noncomputable def angularFamily (j : ℕ) := D.atlas.angularFamily (D.state_overlap j) |
| 668 | noncomputable def axialFamily (j : ℕ) := D.atlas.axialFamily (D.state_overlap j) |
| 669 | noncomputable def pressureFamily (j : ℕ) := D.atlas.pressureFamily (D.state_overlap j) |
| 670 | |
| 671 | noncomputable def temporalScalar (_D : CycleData G N Δ p c seed U) (j : ℕ) : Scalar := |
| 672 | VariableGaugeMean.temporalPotential (p j).gauge (p j).timeExponent (p j).commonIndex c |
| 673 | ((p j).afterSigned (CycleState.iterate p c seed j).coefficients c (CycleState.iterate p c seed j).state) |
| 674 | |
| 675 | noncomputable def rankScalar (_D : CycleData G N Δ p c seed U) (j : ℕ) : Scalar := |
| 676 | VariableGaugeMean.rankPotential (p j).gauge (p j).rank c |
| 677 | ((p j).afterTemporal (CycleState.iterate p c seed j).coefficients c (CycleState.iterate p c seed j).state) |
| 678 | |
| 679 | theorem gauge_overlap (j : ℕ) : D.atlas.GaugeOverlap U.carrier (p j).gauge := by |
| 680 | intro n hn m hm k hk |
| 681 | exact (D.realizes j).gauge_on n m k (by simpa only [D.index_eq] using hk) |
| 682 | (fun s hs => U.time_pos s hs.1) |
| 683 | |
| 684 | theorem rank_overlap_data (j : ℕ) : D.atlas.RankOverlap U.carrier (p j).rank := |
| 685 | fun n _ m _ => (D.realizes j).rank_on n m (fun s hs => U.time_pos s hs.1) |
| 686 | |
| 687 | theorem signed_overlap (j : ℕ) : D.atlas.StateOverlap U.carrier |
| 688 | ((p j).afterSigned (CycleState.iterate p c seed j).coefficients c (CycleState.iterate p c seed j).state) := |
| 689 | fun n hn m hm k hk => (D.stage_transport j n hn m hm k hk).signed |
| 690 | |
| 691 | theorem temporalState_overlap (j : ℕ) : D.atlas.StateOverlap U.carrier |
| 692 | ((p j).afterTemporal (CycleState.iterate p c seed j).coefficients c (CycleState.iterate p c seed j).state) := |
| 693 | fun n hn m hm k hk => (D.stage_transport j n hn m hm k hk).temporal |
| 694 | |
| 695 | theorem temporalScalar_overlap (j : ℕ) : |
| 696 | D.atlas.OverlapLaw U.carrier (CoordinateAlgebra.A G.h - 1 / 2) (D.temporalScalar j) := by |
| 697 | have H := D.atlas.temporal_overlap U (p j).gauge c _ D.context (D.signed_overlap j) |
| 698 | (D.gauge_overlap j) (D.stage_primitives j).signed (D.realizes j).inner_pos |
| 699 | (D.realizes j).exponent_pos (D.realizes j).length rfl |
| 700 | simpa only [temporalScalar, (D.realizes j).timeExponent, (D.realizes j).index, D.index_eq] using H |
| 701 | |
| 702 | theorem rankScalar_overlap (j : ℕ) : |
| 703 | D.atlas.OverlapLaw U.carrier (CoordinateAlgebra.A G.h - 1 / 2) (D.rankScalar j) := |
| 704 | D.atlas.rank_overlap U (p j).gauge (p j).rank c _ D.context (D.temporalState_overlap j) |
| 705 | (D.gauge_overlap j) (D.rank_overlap_data j) (D.stage_primitives j).temporal |
| 706 | (D.stage_primitives j).rankGeometry |
| 707 | |
| 708 | noncomputable def temporalFamily (j : ℕ) := D.atlas.family (D.temporalScalar_overlap j) |
| 709 | noncomputable def rankFamily (j : ℕ) := D.atlas.family (D.rankScalar_overlap j) |
| 710 | |
| 711 | theorem temporal_moving (j : ℕ) : |
| 712 | GaugeMomentBalances.MovingField U G.inner G.outer (D.temporalScalar j) := by |
| 713 | have H := temporalPotential_moving U (p j).gauge c _ (D.stage_primitives j).signed |
| 714 | (D.realizes j).inner_pos (D.realizes j).exponent_pos (D.realizes j).length rfl |
| 715 | (p j).timeExponent (p j).commonIndex |
| 716 | simp only [D.inner_eq, D.outer_eq] at H |
| 717 | exact H |
| 718 | |
| 719 | theorem rank_moving (j : ℕ) : |
| 720 | GaugeMomentBalances.MovingField U G.inner G.outer (D.rankScalar j) := by |
| 721 | have H := rankPotential_moving U (p j).gauge (p j).rank c _ (D.stage_primitives j).rankGeometry |
| 722 | (D.realizes j).length |
| 723 | simp only [D.inner_eq, D.outer_eq] at H |
| 724 | exact H |
| 725 | |
| 726 | theorem reconstructed |
| 727 | (hseed : (VariableGaugeMean.reconstructState G.gauge c seed.state).pressure = seed.state.pressure) |
| 728 | (j : ℕ) : |
| 729 | (VariableGaugeMean.reconstructState G.gauge c (CycleState.iterate p c seed j).state).pressure = |
| 730 | (CycleState.iterate p c seed j).state.pressure := by |
| 731 | cases j with |
| 732 | | zero => exact hseed |
| 733 | | succ j => |
| 734 | have H := (p j).next_reconstructed (CycleState.iterate p c seed j).coefficients c |
| 735 | (CycleState.iterate p c seed j).state |
| 736 | simp only [(D.realizes j).gauge] at H |
| 737 | exact H |
| 738 | |
| 739 | theorem pressure_moving |
| 740 | (hseed : (VariableGaugeMean.reconstructState G.gauge c seed.state).pressure = seed.state.pressure) |
| 741 | (j : ℕ) : |
| 742 | GaugeMomentBalances.MovingField U G.inner G.outer (CycleState.iterate p c seed j).state.pressure := |
| 743 | (D.primitives j).pressure G.inner_pos (ChartScales.radialExponent_pos G.h G.h_pos.le) |
| 744 | (fun _ => rfl) (D.reconstructed hseed j) |
| 745 | |
| 746 | end CycleData |
| 747 | |
| 748 | /-! ## Concrete initialization of the overlap-preserving recurrence -/ |
| 749 | |
| 750 | noncomputable def initialGeometry : CycleStateCoherence.Geometry where |
| 751 | h := h |
| 752 | inner := PrimaryTargetBounds.leftRadius nominal |
| 753 | outer := PrimaryTargetBounds.rightRadius nominal |
| 754 | frequency := 1 |
| 755 | rankAmplitude := rankAmplitude |
| 756 | rankShape := outgoing.data.core.lam |
| 757 | rankInner := rankInner |
| 758 | rankOuter := rankOuter |
| 759 | operatorInner := PrimaryTargetBounds.leftRadius nominal |
| 760 | operatorOuter := PrimaryTargetBounds.rightRadius nominal |
| 761 | index := CorrectionInitialization.CommonWindow.index h |
| 762 | h_pos := outgoing.data.h_pos |
| 763 | h_lt_half := outgoing.data.h_lt_half |
| 764 | inner_pos := PrimaryTargetBounds.leftRadius_pos nominal |
| 765 | inner_lt_outer := PrimaryTargetBounds.radii_ordered nominal |
| 766 | operator_lt := PrimaryTargetBounds.radii_ordered nominal |
| 767 | |
| 768 | theorem initialGeometry_gauge : initialGeometry.gauge = commonGauge := |
| 769 | ActualInitialCoherence.commonGauge_eq_similarity.symm |
| 770 | |
| 771 | theorem initialGeometry_rank : initialGeometry.rank = rankData := rfl |
| 772 | |
| 773 | theorem initial_realizes {ι : Type} (B : ℕ) |
| 774 | (particular : ι → ParticularParameters CycleSlow) |
| 775 | (signed : ι → PeriodizedSignedParameters CyclePoint TorusInverse.Frequency) : |
| 776 | CycleStateCoherence.Realizes initialGeometry |
| 777 | (CycleParameters.ofGeometry ActualInitialization.geometry h |
| 778 | (CorrectionInitialization.CommonWindow.index h) ActualInitialization.axial particular signed rankData) |
| 779 | (commonContext B) := by |
| 780 | refine ⟨initialGeometry_gauge.symm, rfl, rfl, rfl, rfl, rfl⟩ |
| 781 | |
| 782 | /-- Only the actual wave insertions remain inputs. All seed overlap and |
| 783 | primitive regularity are supplied by the constructed initialization. -/ |
| 784 | structure InitialCycleInput (B N0 N : ℕ) |
| 785 | (p : ℕ → CycleParameters (ActualInitialization.Index B N0)) : Prop where |
| 786 | realizes : ∀ j, CycleStateCoherence.Realizes initialGeometry (p j) (commonContext B) |
| 787 | covariance_particular : ∀ j, let x := CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j |
| 788 | ∀ i l, GaugeMomentBalances.MovingField standardRegion commonGauge.radial.inner commonGauge.radial.outer |
| 789 | (SignedMeanGain.covarianceIncrement x.state.oscillation |
| 790 | ((p j).particularVelocity x.coefficients (commonContext B) x.state) i l) |
| 791 | covariance_signed : ∀ j, let x := CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j |
| 792 | ∀ i l, GaugeMomentBalances.MovingField standardRegion commonGauge.radial.inner commonGauge.radial.outer |
| 793 | (SignedMeanGain.covarianceIncrement ((p j).afterParticular x.coefficients (commonContext B) x.state).oscillation |
| 794 | ((p j).signedVelocity x.coefficients (commonContext B) x.state) i l) |
| 795 | waves : ∀ n ≥ N, ∀ m ≥ N, ∀ k, |
| 796 | CorrectionInitialization.CommonWindow.index h n + k = CorrectionInitialization.CommonWindow.index h m → |
| 797 | ∀ j, let x := CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j |
| 798 | CycleStateCoherence.CycleWavesOn initialGeometry (p j) x.coefficients (commonContext B) x.state |
| 799 | (overlap h standardRegion.carrier n m) n m k |
| 800 | |
| 801 | noncomputable def initialCycleData {B N0 N : ℕ} |
| 802 | {p : ℕ → CycleParameters (ActualInitialization.Index B N0)} (H : InitialCycleInput B N0 N p) : |
| 803 | CycleData initialGeometry N (CorrectionInitialization.CommonWindow.gap h) p (commonContext B) |
| 804 | (ActualInitialization.initialCycleState B N0) standardRegion where |
| 805 | atlas := initialAtlas N |
| 806 | index_eq := rfl |
| 807 | realizes := H.realizes |
| 808 | context := initial_context_overlap B N |
| 809 | seed_state := initialized_overlap B N0 N |
| 810 | seed_axis := by |
| 811 | intro n hn m hm k hk x hx i |
| 812 | have He := ActualInitialCoherence.initialized_alias_band B N0 n m k hk hx 0 i |
| 813 | rw [ActualInitialCoherence.initialized_aliases] at He |
| 814 | exact He |
| 815 | primitive := ActualInitialCoherence.initialized_primitive B N0 |
| 816 | rank := by |
| 817 | rw [initialGeometry_gauge, initialGeometry_rank] |
| 818 | exact ActualInitialCoherence.rank_geometry_of_primitive B _ (ActualInitialCoherence.initialized_primitive B N0) |
| 819 | covariance_particular := H.covariance_particular |
| 820 | covariance_signed := H.covariance_signed |
| 821 | waves := H.waves |
| 822 | |
| 823 | /-! ## The actual increments and their single physical representatives -/ |
| 824 | |
| 825 | theorem Atlas.OverlapLaw.add {h d : ℝ} {N Δ : ℕ} {A : Atlas h N Δ} |
| 826 | {U : Set Plane} {f g : Scalar} (Hf : A.OverlapLaw U d f) (Hg : A.OverlapLaw U d g) : |
| 827 | A.OverlapLaw U d (f + g) := by |
| 828 | intro n hn m hm k hk x hx |
| 829 | change f n x + g n x = _ |
| 830 | rw [Hf n hn m hm k hk x hx, Hg n hn m hm k hk x hx] |
| 831 | exact (mul_add _ _ _).symm |
| 832 | |
| 833 | theorem Atlas.OverlapLaw.sub {h d : ℝ} {N Δ : ℕ} {A : Atlas h N Δ} |
| 834 | {U : Set Plane} {f g : Scalar} (Hf : A.OverlapLaw U d f) (Hg : A.OverlapLaw U d g) : |
| 835 | A.OverlapLaw U d (f - g) := by |
| 836 | intro n hn m hm k hk x hx |
| 837 | change f n x - g n x = _ |
| 838 | rw [Hf n hn m hm k hk x hx, Hg n hn m hm k hk x hx] |
| 839 | exact (mul_sub _ _ _).symm |
| 840 | |
| 841 | theorem Atlas.physical_add {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 842 | (U : Set Plane) (d : ℝ) (f g : Scalar) : |
| 843 | A.physical U d (f + g) = A.physical U d f + A.physical U d g := by |
| 844 | classical |
| 845 | funext z |
| 846 | by_cases hz : ∃ n, A.Valid U z n |
| 847 | · simp only [Atlas.physical, dite_eq_left hz, Pi.add_apply, mul_add] |
| 848 | · simp only [Atlas.physical, dite_eq_right hz, Pi.add_apply, zero_add] |
| 849 | |
| 850 | theorem Atlas.physical_sub {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 851 | (U : Set Plane) (d : ℝ) (f g : Scalar) : |
| 852 | A.physical U d (f - g) = A.physical U d f - A.physical U d g := by |
| 853 | classical |
| 854 | funext z |
| 855 | by_cases hz : ∃ n, A.Valid U z n |
| 856 | · simp only [Atlas.physical, dite_eq_left hz, Pi.sub_apply, mul_sub] |
| 857 | · simp only [Atlas.physical, dite_eq_right hz, Pi.sub_apply, sub_self] |
| 858 | |
| 859 | noncomputable def initialStreamFamily (B N0 N : ℕ) := |
| 860 | (initialAtlas N).family ((initialTemporal_overlap B N0 N).add (initialRank_overlap B N0 N)) |
| 861 | |
| 862 | theorem initialStream_moving (B N0 : ℕ) : |
| 863 | GaugeMomentBalances.MovingField standardRegion commonGauge.radial.inner commonGauge.radial.outer |
| 864 | (initialTemporalScalar B N0 + initialRankScalar B N0) := |
| 865 | MeanStateRegularity.MovingField.add (initialTemporal_moving B N0) (initialRank_moving B N0) |
| 866 | |
| 867 | theorem initialStream_nativeJets (B N0 N : ℕ) (hN : 1 ≤ N) : |
| 868 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (1 - ChartScales.kappa)) |
| 869 | (initialStreamFamily B N0 N).native := |
| 870 | initial_nativeJets_of_class (initialStream_moving B N0) |
| 871 | ((initialTemporal_class B N0).add (initialRank_class B N0)) N hN |
| 872 | |
| 873 | namespace CycleData |
| 874 | |
| 875 | variable {ι : Type} {G : CycleStateCoherence.Geometry} {N Δ : ℕ} |
| 876 | {p : ℕ → CycleParameters ι} {c : Context Point} {seed : CycleState ι} |
| 877 | {U : LocalSignedRequest.SlowRegion (2 * G.h)} (D : CycleData G N Δ p c seed U) |
| 878 | |
| 879 | noncomputable def streamFamily (j : ℕ) := |
| 880 | D.atlas.family ((D.temporalScalar_overlap j).add (D.rankScalar_overlap j)) |
| 881 | |
| 882 | noncomputable def angularIncrementFamily (j : ℕ) := |
| 883 | D.atlas.family (((D.state_overlap (j+1)).angular).sub ((D.state_overlap j).angular)) |
| 884 | |
| 885 | noncomputable def pressureIncrementFamily (j : ℕ) := |
| 886 | D.atlas.family (((D.state_overlap (j+1)).pressure).sub ((D.state_overlap j).pressure)) |
| 887 | |
| 888 | theorem angularIncrement_native (j : ℕ) : |
| 889 | (D.angularIncrementFamily j).native = |
| 890 | ((p j).temporalIncrement (CycleState.iterate p c seed j).coefficients c |
| 891 | (CycleState.iterate p c seed j).state).angular + |
| 892 | ((p j).rankIncrement (CycleState.iterate p c seed j).coefficients c |
| 893 | (CycleState.iterate p c seed j).state).angular := by |
| 894 | change ((p j).next (CycleState.iterate p c seed j).coefficients c |
| 895 | (CycleState.iterate p c seed j).state).mean.angular - |
| 896 | (CycleState.iterate p c seed j).state.mean.angular = _ |
| 897 | rw [CycleParameters.next_mean] |
| 898 | change (_ + _) + _ - _ = _ |
| 899 | abel |
| 900 | |
| 901 | theorem pressureIncrement_native (j : ℕ) : |
| 902 | (D.pressureIncrementFamily j).native = (CycleState.iterate p c seed (j+1)).state.pressure - |
| 903 | (CycleState.iterate p c seed j).state.pressure := rfl |
| 904 | |
| 905 | theorem angularIncrement_moving (j : ℕ) : |
| 906 | GaugeMomentBalances.MovingField U G.inner G.outer (D.angularIncrementFamily j).native := |
| 907 | MeanStateRegularity.MovingField.sub (D.primitives (j+1)).mean.angular (D.primitives j).mean.angular |
| 908 | |
| 909 | theorem pressureIncrement_moving |
| 910 | (hseed : (VariableGaugeMean.reconstructState G.gauge c seed.state).pressure = seed.state.pressure) |
| 911 | (j : ℕ) : |
| 912 | GaugeMomentBalances.MovingField U G.inner G.outer (D.pressureIncrementFamily j).native := |
| 913 | MeanStateRegularity.MovingField.sub (D.pressure_moving hseed (j+1)) (D.pressure_moving hseed j) |
| 914 | |
| 915 | theorem stream_moving (j : ℕ) : |
| 916 | GaugeMomentBalances.MovingField U G.inner G.outer (D.streamFamily j).native := |
| 917 | MeanStateRegularity.MovingField.add (D.temporal_moving j) (D.rank_moving j) |
| 918 | |
| 919 | end CycleData |
| 920 | |
| 921 | /-! ## Native quantitative adapters for the actual run -/ |
| 922 | |
| 923 | section RunJets |
| 924 | |
| 925 | variable {B N0 N : ℕ} {p : ℕ → CycleParameters (ActualInitialization.Index B N0)} |
| 926 | (H : InitialCycleInput B N0 N p) |
| 927 | |
| 928 | theorem cycleAngular_nativeJets (j : ℕ) (hN : 1 ≤ N) |
| 929 | (HC : CorrectionState.CumulativeBounds ActualInitialMean.strip |
| 930 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state) : |
| 931 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (9 / 10)) |
| 932 | ((initialCycleData H).angularFamily j).native := |
| 933 | initial_nativeJets_of_class ((initialCycleData H).primitives j).mean.angular HC.velocity.angular N hN |
| 934 | |
| 935 | theorem cyclePressure_nativeJets (j : ℕ) (hN : 1 ≤ N) |
| 936 | (HC : CorrectionState.CumulativeBounds ActualInitialMean.strip |
| 937 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state) : |
| 938 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * (9 / 10)) |
| 939 | ((initialCycleData H).pressureFamily j).native := by |
| 940 | have hs : (VariableGaugeMean.reconstructState initialGeometry.gauge (commonContext B) |
| 941 | (ActualInitialization.initialCycleState B N0).state).pressure = |
| 942 | (ActualInitialization.initialCycleState B N0).state.pressure := by |
| 943 | rw [initialGeometry_gauge] |
| 944 | rfl |
| 945 | exact initial_nativeJets_of_class ((initialCycleData H).pressure_moving hs j) HC.pressure N hN |
| 946 | |
| 947 | theorem angularIncrement_nativeJets (j : ℕ) (hN : 1 ≤ N) {α : ℝ} |
| 948 | (HT : MeanIncrementBounds.IncrementBounds ActualInitialMean.strip α |
| 949 | ((p j).temporalIncrement |
| 950 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 951 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state)) |
| 952 | (HR : MeanIncrementBounds.IncrementBounds ActualInitialMean.strip α |
| 953 | ((p j).rankIncrement |
| 954 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 955 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state)) : |
| 956 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * α) |
| 957 | ((initialCycleData H).angularIncrementFamily j).native := by |
| 958 | apply initial_nativeJets_of_class ((initialCycleData H).angularIncrement_moving j) _ N hN |
| 959 | erw [CycleData.angularIncrement_native] |
| 960 | exact HT.angular.add HR.angular |
| 961 | |
| 962 | theorem pressureIncrement_nativeJets (j : ℕ) (hN : 1 ≤ N) {α : ℝ} |
| 963 | (HC : WeightedClasses.MeanClass ActualInitialMean.strip α |
| 964 | ((CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) (j+1)).state.pressure - |
| 965 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state.pressure)) : |
| 966 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * α) |
| 967 | ((initialCycleData H).pressureIncrementFamily j).native := by |
| 968 | have hs : (VariableGaugeMean.reconstructState initialGeometry.gauge (commonContext B) |
| 969 | (ActualInitialization.initialCycleState B N0).state).pressure = |
| 970 | (ActualInitialization.initialCycleState B N0).state.pressure := by |
| 971 | rw [initialGeometry_gauge] |
| 972 | rfl |
| 973 | exact initial_nativeJets_of_class ((initialCycleData H).pressureIncrement_moving hs j) HC N hN |
| 974 | |
| 975 | end RunJets |
| 976 | |
| 977 | /-! ## Actual Cartesian chart values and curls -/ |
| 978 | |
| 979 | theorem Atlas.field_on_chart {h d : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 980 | {U : Set Plane} {f : Scalar} (H : A.OverlapLaw U d f) |
| 981 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (n : ℕ) (hn : N ≤ n) |
| 982 | {w : SpaceTime} (ht : w ∈ PhysicalWaveSum.preterminal) |
| 983 | (hu : (PhysicalMeanJetBounds.graph h n (A.gap n) w).2.1 ∈ U) |
| 984 | (hw : w ∈ ActualMeanPotentialRealization.cartesianDomain a j) : |
| 985 | (A.family H).field w = ChartScales.Q n ^ (-d) * f n |
| 986 | (ActualMeanPotentialRealization.chartPoint |
| 987 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (A.index n)) |
| 988 | (PhysicalCurlCovariance.polarCoordinates a j w)) := by |
| 989 | have hc := ActualMeanPotentialRealization.chartPoint_eq_graph ha j h n (A.gap n) |
| 990 | (Nat.sub_le _ _) hw |
| 991 | rw [A.index_eq hn] at hc |
| 992 | rw [(A.family H).field_eq n hn ht hu] |
| 993 | change ChartScales.Q n ^ (-d) * f n (PhysicalMeanJetBounds.graph h n (A.gap n) w) = _ |
| 994 | rw [hc] |
| 995 | |
| 996 | theorem Atlas.stream_curl {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 997 | {U : Set Plane} (hU : IsOpen U) {f : Scalar} |
| 998 | (H : A.OverlapLaw U (CoordinateAlgebra.A h - 1 / 2) f) |
| 999 | (hf : ∀ n ≥ N, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U)) |
| 1000 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (n : ℕ) (hn : N ≤ n) |
| 1001 | {w : SpaceTime} (ht : w ∈ PhysicalWaveSum.preterminal) |
| 1002 | (hu : (PhysicalMeanJetBounds.graph h n (A.gap n) w).2.1 ∈ U) |
| 1003 | (hw : w ∈ ActualMeanPotentialRealization.cartesianDomain a j) : |
| 1004 | SpatialCurl.spatialCurl (A.family H).angularField w = |
| 1005 | let G := PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (A.index n) |
| 1006 | CyclePhysicalPrefixes.polarVelocityMap a j |
| 1007 | (CyclePhysicalPrefixes.velocityMap G (ActualMeanPotentialRealization.meridional G (f n))) w := by |
| 1008 | have hc := ActualMeanPotentialRealization.coherent_angularField_curl ha j (A.family H) |
| 1009 | hU n hn ht hu hw ((hf n hn).contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hu)) |
| 1010 | change SpatialCurl.spatialCurl (A.family H).angularField w = |
| 1011 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap |
| 1012 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - A.gap n)) |
| 1013 | (ActualMeanPotentialRealization.meridional |
| 1014 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - A.gap n)) |
| 1015 | (f n))) w at hc |
| 1016 | simpa only [A.index_eq hn] using hc |
| 1017 | |
| 1018 | theorem Atlas.angular_field {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 1019 | {U : Set Plane} {f : Scalar} (H : A.OverlapLaw U (CoordinateAlgebra.A h) f) |
| 1020 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (n : ℕ) (hn : N ≤ n) |
| 1021 | {w : SpaceTime} (ht : w ∈ PhysicalWaveSum.preterminal) |
| 1022 | (hu : (PhysicalMeanJetBounds.graph h n (A.gap n) w).2.1 ∈ U) |
| 1023 | (hw : w ∈ ActualMeanPotentialRealization.cartesianDomain a j) : |
| 1024 | (A.family H).angularField w = |
| 1025 | let G := PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (A.index n) |
| 1026 | CyclePhysicalPrefixes.polarVelocityMap a j |
| 1027 | (CyclePhysicalPrefixes.velocityMap G (fun x => ![0, f n x.1, 0])) w := by |
| 1028 | let z := PhysicalCurlCovariance.polarCoordinates a j w |
| 1029 | have hz := ActualMeanPotentialRealization.polarCoordinates_valid ha j hw |
| 1030 | have hb := ActualMeanPotentialRealization.polarCoordinates_back ha j hw |
| 1031 | have hf := A.field_on_chart H ha j n hn ht hu hw |
| 1032 | change (A.family H).field w • PhysicalMeanJetBounds.angularVector |
| 1033 | (PhysicalGraphBounds.radialProjection w) = _ |
| 1034 | rw [hf, ← hb, ActualMeanPotentialRealization.angularVector_forward hz.1, |
| 1035 | ActualMeanPotentialRealization.polar_forward ha j _ hz] |
| 1036 | simp only [CyclePhysicalPrefixes.velocityMap, LinearMap.coe_mk, AddHom.coe_mk, |
| 1037 | PhysicalResidualTZ.velocityTZ, PhysicalResidualBridge.ScaledGraph.velocity, |
| 1038 | PhysicalResidualBridge.commonGraph, ActualMeanPotentialRealization.chartPoint, |
| 1039 | PhysicalResidualTZ.graphMapTZ, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 1040 | Matrix.cons_val_two, mul_zero, AxisymmetricResidual.pack, zero_smul, zero_add] |
| 1041 | simp [PhysicalCurlCovariance.polarCoordinates_forward ha j hz] |
| 1042 | |
| 1043 | theorem Atlas.pressure_field {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 1044 | {U : Set Plane} {f : Scalar} (H : A.OverlapLaw U (2 * CoordinateAlgebra.A h) f) |
| 1045 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (n : ℕ) (hn : N ≤ n) |
| 1046 | {w : SpaceTime} (ht : w ∈ PhysicalWaveSum.preterminal) |
| 1047 | (hu : (PhysicalMeanJetBounds.graph h n (A.gap n) w).2.1 ∈ U) |
| 1048 | (hw : w ∈ ActualMeanPotentialRealization.cartesianDomain a j) : |
| 1049 | (A.family H).field w = |
| 1050 | let G := PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (A.index n) |
| 1051 | CyclePhysicalPrefixes.polarPressureMap a j |
| 1052 | (CyclePhysicalPrefixes.pressureMap G (fun x => f n x.1)) w := by |
| 1053 | rw [A.field_on_chart H ha j n hn ht hu hw] |
| 1054 | change ChartScales.Q n ^ (-(2 * CoordinateAlgebra.A h)) * _ = |
| 1055 | (ChartScales.Q n ^ (-CoordinateAlgebra.A h)) ^ 2 * _ |
| 1056 | congr 1 |
| 1057 | rw [pow_two, ← Real.rpow_add (ChartScales.Q_pos n)] |
| 1058 | congr 1 |
| 1059 | ring |
| 1060 | |
| 1061 | theorem Atlas.family_add_field {h d : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 1062 | {U : Set Plane} {f g : Scalar} (Hf : A.OverlapLaw U d f) (Hg : A.OverlapLaw U d g) : |
| 1063 | (A.family (Hf.add Hg)).field = (A.family Hf).field + (A.family Hg).field := by |
| 1064 | funext w |
| 1065 | exact congrFun (A.physical_add U d f g) (PhysicalMeanJetBounds.physicalPoint h w) |
| 1066 | |
| 1067 | theorem Atlas.family_add_angular {h d : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 1068 | {U : Set Plane} {f g : Scalar} (Hf : A.OverlapLaw U d f) (Hg : A.OverlapLaw U d g) : |
| 1069 | (A.family (Hf.add Hg)).angularField = (A.family Hf).angularField + (A.family Hg).angularField := by |
| 1070 | funext w |
| 1071 | simp only [PhysicalMeanJetBounds.CoherentFamily.angularField, A.family_add_field Hf Hg, |
| 1072 | Pi.add_apply, add_smul] |
| 1073 | |
| 1074 | theorem Atlas.family_sub_field {h d : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 1075 | {U : Set Plane} {f g : Scalar} (Hf : A.OverlapLaw U d f) (Hg : A.OverlapLaw U d g) : |
| 1076 | (A.family (Hf.sub Hg)).field = (A.family Hf).field - (A.family Hg).field := by |
| 1077 | funext w |
| 1078 | exact congrFun (A.physical_sub U d f g) (PhysicalMeanJetBounds.physicalPoint h w) |
| 1079 | |
| 1080 | theorem Atlas.family_sub_angular {h d : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 1081 | {U : Set Plane} {f g : Scalar} (Hf : A.OverlapLaw U d f) (Hg : A.OverlapLaw U d g) : |
| 1082 | (A.family (Hf.sub Hg)).angularField = (A.family Hf).angularField - (A.family Hg).angularField := by |
| 1083 | funext w |
| 1084 | simp only [PhysicalMeanJetBounds.CoherentFamily.angularField, A.family_sub_field Hf Hg, |
| 1085 | Pi.sub_apply, sub_smul] |
| 1086 | |
| 1087 | theorem initialStream_angularField (B N0 N : ℕ) : |
| 1088 | (initialStreamFamily B N0 N).angularField = |
| 1089 | (initialTemporalFamily B N0 N).angularField + (initialRankFamily B N0 N).angularField := |
| 1090 | (initialAtlas N).family_add_angular (initialTemporal_overlap B N0 N) (initialRank_overlap B N0 N) |
| 1091 | |
| 1092 | namespace CycleData |
| 1093 | |
| 1094 | variable {ι : Type} {G : CycleStateCoherence.Geometry} {N Δ : ℕ} |
| 1095 | {p : ℕ → CycleParameters ι} {c : Context Point} {seed : CycleState ι} |
| 1096 | {U : LocalSignedRequest.SlowRegion (2 * G.h)} (D : CycleData G N Δ p c seed U) |
| 1097 | |
| 1098 | theorem stream_angularField (j : ℕ) : |
| 1099 | (D.streamFamily j).angularField = (D.temporalFamily j).angularField + (D.rankFamily j).angularField := |
| 1100 | D.atlas.family_add_angular (D.temporalScalar_overlap j) (D.rankScalar_overlap j) |
| 1101 | |
| 1102 | theorem angularIncrement_angularField (j : ℕ) : |
| 1103 | (D.angularIncrementFamily j).angularField = |
| 1104 | (D.angularFamily (j+1)).angularField - (D.angularFamily j).angularField := |
| 1105 | D.atlas.family_sub_angular (D.state_overlap (j+1)).angular (D.state_overlap j).angular |
| 1106 | |
| 1107 | theorem pressureIncrement_field (j : ℕ) : |
| 1108 | (D.pressureIncrementFamily j).field = (D.pressureFamily (j+1)).field - (D.pressureFamily j).field := |
| 1109 | D.atlas.family_sub_field (D.state_overlap (j+1)).pressure (D.state_overlap j).pressure |
| 1110 | |
| 1111 | end CycleData |
| 1112 | |
| 1113 | /-! ## Actual temporal-source and measured-debt class inputs -/ |
| 1114 | |
| 1115 | section SourceClasses |
| 1116 | |
| 1117 | variable {B N0 N : ℕ} {p : ℕ → CycleParameters (ActualInitialization.Index B N0)} |
| 1118 | (H : InitialCycleInput B N0 N p) |
| 1119 | |
| 1120 | theorem cycleTemporal_class (j : ℕ) {α : ℝ} |
| 1121 | (HC : WeightedClasses.MeanClass ActualInitialMean.strip α |
| 1122 | (((p j).afterSigned |
| 1123 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 1124 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state).axialResidual |
| 1125 | (commonContext B))) : |
| 1126 | WeightedClasses.MeanClass ActualInitialMean.strip α ((initialCycleData H).temporalFamily j).native := by |
| 1127 | let D := initialCycleData H |
| 1128 | have hg : (p j).gauge = commonGauge := (H.realizes j).gauge.trans initialGeometry_gauge |
| 1129 | have ht : (p j).timeExponent = h := (H.realizes j).timeExponent |
| 1130 | have hi : (p j).commonIndex = CorrectionInitialization.CommonWindow.index h := (H.realizes j).index |
| 1131 | have HP := (D.stage_primitives j).signed |
| 1132 | rw [hg] at HP |
| 1133 | have Hz := HP.axial_reconstructed (PrimaryTargetBounds.leftRadius_pos nominal) |
| 1134 | (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) commonGauge_length |
| 1135 | (by rw [← hg]; rfl) |
| 1136 | have Hp := VariableGaugeMean.meanClass_temporalStreamPotential standardRegion |
| 1137 | (PrimaryTargetBounds.leftRadius_pos nominal) (PrimaryTargetBounds.radii_ordered nominal) |
| 1138 | (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) |
| 1139 | (div_pos (FinalSlowBase.edgeExponent_pos nominal) (by norm_num)) zero_lt_one |
| 1140 | (ChartScales.epsilon h) BaseContextAssembly.slowScale (ChartScales.epsilon_pos h) |
| 1141 | (ChartScales.epsilon_le_one h outgoing.data.h_pos.le) BaseContextAssembly.one_le_slowScale |
| 1142 | outgoing.data.h_pos.le (fun n => le_max_right 1 (ChartScales.S n)) |
| 1143 | (CorrectionInitialization.CommonWindow.index h) (CorrectionInitialization.CommonWindow.gap h) |
| 1144 | (CorrectionInitialization.CommonWindow.native_le_index_add h outgoing.data.h_pos.le) |
| 1145 | Hz.smooth Hz.periodic Hz.supported HC commonGauge.radial.frequency |
| 1146 | (fun _ => commonGauge.radial.radialDirection) |
| 1147 | change WeightedClasses.MeanClass ActualInitialMean.strip α |
| 1148 | (VariableGaugeMean.temporalPotential (p j).gauge (p j).timeExponent (p j).commonIndex _ _) |
| 1149 | rw [hg, ht, hi] |
| 1150 | exact Hp |
| 1151 | |
| 1152 | theorem cycleRank_class (j : ℕ) {α : ℝ} |
| 1153 | (HC : WeightedClasses.UnweightedClass ActualInitialMean.slowStrip α |
| 1154 | (CorrectionState.debt (commonContext B) |
| 1155 | ((p j).afterTemporal |
| 1156 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 1157 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state))) : |
| 1158 | WeightedClasses.MeanClass ActualInitialMean.strip α ((initialCycleData H).rankFamily j).native := by |
| 1159 | have hg : (p j).gauge = commonGauge := (H.realizes j).gauge.trans initialGeometry_gauge |
| 1160 | have hr : (p j).rank = rankData := (H.realizes j).rank.trans initialGeometry_rank |
| 1161 | have HG := ((initialCycleData H).stage_primitives j).rankGeometry |
| 1162 | rw [hg, hr] at HG |
| 1163 | have Hp := rankPotential_class (cL := FinalSlowBase.edgeExponent nominal / 4) (cR := 1) |
| 1164 | standardRegion commonGauge rankData (commonContext B) _ |
| 1165 | (PrimaryTargetBounds.leftRadius_pos nominal) |
| 1166 | (div_pos (FinalSlowBase.edgeExponent_pos nominal) (by norm_num)) zero_lt_one |
| 1167 | (ChartScales.epsilon h) BaseContextAssembly.slowScale (ChartScales.epsilon_pos h) |
| 1168 | (ChartScales.epsilon_le_one h outgoing.data.h_pos.le) BaseContextAssembly.one_le_slowScale |
| 1169 | HG (rankData_parameters standardRegion.carrier) rankAmplitude_pos.ne' |
| 1170 | active_left_before_rank rank_before_active_right HC |
| 1171 | change WeightedClasses.MeanClass ActualInitialMean.strip α (VariableGaugeMean.rankPotential (p j).gauge (p j).rank _ _) |
| 1172 | rw [hg, hr] |
| 1173 | exact Hp |
| 1174 | |
| 1175 | theorem cycleTemporal_nativeJets (j : ℕ) (hN : 1 ≤ N) {α : ℝ} |
| 1176 | (HC : WeightedClasses.MeanClass ActualInitialMean.strip α |
| 1177 | (((p j).afterSigned |
| 1178 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 1179 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state).axialResidual |
| 1180 | (commonContext B))) : |
| 1181 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * α) |
| 1182 | ((initialCycleData H).temporalFamily j).native := |
| 1183 | initial_nativeJets_of_class ((initialCycleData H).temporal_moving j) (cycleTemporal_class H j HC) N hN |
| 1184 | |
| 1185 | theorem cycleRank_nativeJets (j : ℕ) (hN : 1 ≤ N) {α : ℝ} |
| 1186 | (HC : WeightedClasses.UnweightedClass ActualInitialMean.slowStrip α |
| 1187 | (CorrectionState.debt (commonContext B) |
| 1188 | ((p j).afterTemporal |
| 1189 | (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).coefficients |
| 1190 | (commonContext B) (CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) j).state))) : |
| 1191 | PhysicalMeanJetBounds.NativeJets N standardRegion.carrier (h * α) |
| 1192 | ((initialCycleData H).rankFamily j).native := |
| 1193 | initial_nativeJets_of_class ((initialCycleData H).rank_moving j) (cycleRank_class H j HC) N hN |
| 1194 | |
| 1195 | end SourceClasses |
| 1196 | |
| 1197 | /-! ## The combined mean stream realizes the literal two mean increments -/ |
| 1198 | |
| 1199 | theorem Atlas.stream_add_curl {h : ℝ} {N Δ : ℕ} (A : Atlas h N Δ) |
| 1200 | {U : Set Plane} (hU : IsOpen U) {f g : Scalar} |
| 1201 | (Hf : A.OverlapLaw U (CoordinateAlgebra.A h - 1 / 2) f) |
| 1202 | (Hg : A.OverlapLaw U (CoordinateAlgebra.A h - 1 / 2) g) |
| 1203 | (hf : ∀ n ≥ N, ContDiffOn ℝ ∞ (f n) (PhysicalMeanDomain.slowDomain U)) |
| 1204 | (hg : ∀ n ≥ N, ContDiffOn ℝ ∞ (g n) (PhysicalMeanDomain.slowDomain U)) |
| 1205 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (n : ℕ) (hn : N ≤ n) |
| 1206 | {w : SpaceTime} (ht : w ∈ PhysicalWaveSum.preterminal) |
| 1207 | (hu : (PhysicalMeanJetBounds.graph h n (A.gap n) w).2.1 ∈ U) |
| 1208 | (hw : w ∈ ActualMeanPotentialRealization.cartesianDomain a j) : |
| 1209 | SpatialCurl.spatialCurl (A.family (Hf.add Hg)).angularField w = |
| 1210 | let G := PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (A.index n) |
| 1211 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap G |
| 1212 | (ActualMeanPotentialRealization.meridional G (f n) + ActualMeanPotentialRealization.meridional G (g n))) w := by |
| 1213 | have hfg := ActualMeanPotentialRealization.coherent_angularField_germ ha j (A.family Hf) hU n hn ht hu hw |
| 1214 | have hgg := ActualMeanPotentialRealization.coherent_angularField_germ ha j (A.family Hg) hU n hn ht hu hw |
| 1215 | change (A.family Hf).angularField =ᶠ[𝓝 w] ActualMeanPotentialRealization.cartesianPotential a j |
| 1216 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - A.gap n)) (f n) at hfg |
| 1217 | change (A.family Hg).angularField =ᶠ[𝓝 w] ActualMeanPotentialRealization.cartesianPotential a j |
| 1218 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - A.gap n)) (g n) at hgg |
| 1219 | rw [A.index_eq hn] at hfg hgg |
| 1220 | have hsum := hfg.add hgg |
| 1221 | change (A.family Hf).angularField + (A.family Hg).angularField =ᶠ[𝓝 w] |
| 1222 | ActualMeanPotentialRealization.cartesianPotential a j |
| 1223 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (A.index n)) (f n) + |
| 1224 | ActualMeanPotentialRealization.cartesianPotential a j |
| 1225 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (A.index n)) (g n) at hsum |
| 1226 | rw [← A.family_add_angular Hf Hg] at hsum |
| 1227 | rw [PhysicalCurlCovariance.spatialCurl_congr hsum] |
| 1228 | apply ActualMeanPotentialRealization.cartesianPotential_add_curl ha j _ |
| 1229 | (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _) _ _ hw |
| 1230 | · have hc := ActualMeanPotentialRealization.chartPoint_eq_graph ha j h n (A.gap n) (Nat.sub_le _ _) hw |
| 1231 | rw [A.index_eq hn] at hc |
| 1232 | rw [hc] |
| 1233 | exact (hf n hn).contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hu) |
| 1234 | · have hc := ActualMeanPotentialRealization.chartPoint_eq_graph ha j h n (A.gap n) (Nat.sub_le _ _) hw |
| 1235 | rw [A.index_eq hn] at hc |
| 1236 | rw [hc] |
| 1237 | exact (hg n hn).contDiffAt ((PhysicalMeanDomain.slowDomain_open hU).mem_nhds hu) |
| 1238 | |
| 1239 | theorem initialGauge_matches (B n : ℕ) : |
| 1240 | ActualMeanPotentialRealization.GaugeMatches commonGauge (commonContext B) |
| 1241 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CorrectionInitialization.CommonWindow.index h n)) n := by |
| 1242 | rw [ActualInitialCoherence.commonGauge_eq_similarity] |
| 1243 | exact ActualMeanPotentialRealization.similarityGauge_matches h _ _ _ _ (commonContext B) n rfl |
| 1244 | |
| 1245 | theorem initialStream_curl (B N0 N n : ℕ) (hn : N ≤ n) |
| 1246 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {w : SpaceTime} |
| 1247 | (ht : w ∈ PhysicalWaveSum.preterminal) |
| 1248 | (hu : (PhysicalMeanJetBounds.graph h n ((initialAtlas N).gap n) w).2.1 ∈ standardRegion.carrier) |
| 1249 | (hw : w ∈ ActualMeanPotentialRealization.cartesianDomain a j) : |
| 1250 | SpatialCurl.spatialCurl (initialStreamFamily B N0 N).angularField w = |
| 1251 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap |
| 1252 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CorrectionInitialization.CommonWindow.index h n)) |
| 1253 | (CyclePhysicalPrefixes.meridionalComponents (ActualInitialCoherence.initialized B N0).mean n)) w := by |
| 1254 | unfold initialStreamFamily |
| 1255 | rw [(initialAtlas N).stream_add_curl standardRegion.isOpen |
| 1256 | (initialTemporal_overlap B N0 N) (initialRank_overlap B N0 N) |
| 1257 | (fun n _ => (initialTemporal_moving B N0).smooth n) (fun n _ => (initialRank_moving B N0).smooth n) |
| 1258 | ha j n hn ht hu hw] |
| 1259 | dsimp only [initialAtlas, commonAtlas, initialTemporalScalar, initialRankScalar] |
| 1260 | change CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap |
| 1261 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CorrectionInitialization.CommonWindow.index h n)) |
| 1262 | (ActualMeanPotentialRealization.meridional |
| 1263 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CorrectionInitialization.CommonWindow.index h n)) |
| 1264 | (VariableGaugeMean.temporalPotential commonGauge h (CorrectionInitialization.CommonWindow.index h) |
| 1265 | (commonContext B) (ActualInitialCoherence.primary B N0) n) + |
| 1266 | ActualMeanPotentialRealization.meridional |
| 1267 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CorrectionInitialization.CommonWindow.index h n)) |
| 1268 | (VariableGaugeMean.rankPotential commonGauge rankData (commonContext B) |
| 1269 | (ActualInitialCoherence.temporal B N0) n))) w = _ |
| 1270 | rw [ActualMeanPotentialRealization.meridional_temporal commonGauge h |
| 1271 | (CorrectionInitialization.CommonWindow.index h) (commonContext B) (ActualInitialCoherence.primary B N0) |
| 1272 | _ n (initialGauge_matches B n), |
| 1273 | ActualMeanPotentialRealization.meridional_rank commonGauge rankData (commonContext B) |
| 1274 | (ActualInitialCoherence.temporal B N0) _ n (initialGauge_matches B n)] |
| 1275 | rw [← ActualMeanPotentialRealization.meridionalComponents_updated] |
| 1276 | have hi := ActualMeanPotentialRealization.initializedBands_mean commonGauge rankData h |
| 1277 | (CorrectionInitialization.CommonWindow.index h) (commonContext B) |
| 1278 | (activeLabels standardRegion B N0) (ActualInitialCoherence.pieces B N0) |
| 1279 | (ActualInitialCoherence.baseError B) |
| 1280 | change (ActualInitialCoherence.initialized B N0).mean = _ at hi |
| 1281 | rw [hi] |
| 1282 | rfl |
| 1283 | |
| 1284 | theorem cycleStream_curl {B N0 N : ℕ} {p : ℕ → CycleParameters (ActualInitialization.Index B N0)} |
| 1285 | (H : InitialCycleInput B N0 N p) (k n : ℕ) (hn : N ≤ n) |
| 1286 | {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {w : SpaceTime} |
| 1287 | (ht : w ∈ PhysicalWaveSum.preterminal) |
| 1288 | (hu : (PhysicalMeanJetBounds.graph h n ((initialAtlas N).gap n) w).2.1 ∈ standardRegion.carrier) |
| 1289 | (hw : w ∈ ActualMeanPotentialRealization.cartesianDomain a j) : |
| 1290 | SpatialCurl.spatialCurl ((initialCycleData H).streamFamily k).angularField w = |
| 1291 | let x := CycleState.iterate p (commonContext B) (ActualInitialization.initialCycleState B N0) k |
| 1292 | CyclePhysicalPrefixes.polarVelocityMap a j (CyclePhysicalPrefixes.velocityMap |
| 1293 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CorrectionInitialization.CommonWindow.index h n)) |
| 1294 | (CyclePhysicalPrefixes.meridionalComponents ((p k).temporalIncrement x.coefficients (commonContext B) x.state) n + |
| 1295 | CyclePhysicalPrefixes.meridionalComponents ((p k).rankIncrement x.coefficients (commonContext B) x.state) n)) w := by |
| 1296 | let D := initialCycleData H |
| 1297 | have hg : (p k).gauge = commonGauge := (H.realizes k).gauge.trans initialGeometry_gauge |
| 1298 | have hm : ActualMeanPotentialRealization.GaugeMatches (p k).gauge (commonContext B) |
| 1299 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CorrectionInitialization.CommonWindow.index h n)) n := by |
| 1300 | rw [hg] |
| 1301 | exact initialGauge_matches B n |
| 1302 | have he := D.atlas.stream_add_curl standardRegion.isOpen (D.temporalScalar_overlap k) (D.rankScalar_overlap k) |
| 1303 | (fun n _ => (D.temporal_moving k).smooth n) (fun n _ => (D.rank_moving k).smooth n) ha j n hn ht hu hw |
| 1304 | dsimp only [CycleData.temporalScalar, CycleData.rankScalar, D, initialCycleData, |
| 1305 | initialAtlas, commonAtlas, initialGeometry] at he |
| 1306 | rw [ActualMeanPotentialRealization.meridional_temporal (p k).gauge (p k).timeExponent |
| 1307 | (p k).commonIndex (commonContext B) _ _ n hm, |
| 1308 | ActualMeanPotentialRealization.meridional_rank (p k).gauge (p k).rank (commonContext B) _ _ n hm] at he |
| 1309 | simp only [CycleParameters.temporalIncrement, CycleParameters.rankIncrement, (H.realizes k).axial] at he ⊢ |
| 1310 | exact he |
| 1311 | |
| 1312 | end NavierStokes.ActualMeanPhysicalData |