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.CorrectionStep |
| 2 | import NavierStokes.GaugeStateCoherence |
| 3 | import NavierStokes.TemporalStateCoherence |
| 4 | import NavierStokes.RankStateCoherence |
| 5 | import NavierStokes.MeanStageRegularity |
| 6 | |
| 7 | /-! |
| 8 | # Full-fiber coherence through the actual correction recurrence |
| 9 | |
| 10 | All comparisons below retain every radial, free auxiliary and angular |
| 11 | variable. Pressure reconstruction, the temporal inverse and the rank repair |
| 12 | are the literal operations in `CorrectionStep.CycleState.step`. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.CycleStateCoherence |
| 18 | |
| 19 | open Set Function Filter CorrectionState CorrectionStep MeanIncrementBounds |
| 20 | open PhysicalResidualNaturality GaugeStateCoherence |
| 21 | open scoped Topology ContDiff BigOperators |
| 22 | |
| 23 | abbrev Plane := PressureStream.Plane |
| 24 | abbrev Point := CorrectionStep.CyclePoint |
| 25 | |
| 26 | /-- Fixed physical geometry of the recurrence. The radial exponent, gauge |
| 27 | and normalized rank coefficients are constructed from these parameters. -/ |
| 28 | structure Geometry where |
| 29 | h : ℝ |
| 30 | inner : ℝ |
| 31 | outer : ℝ |
| 32 | frequency : ℝ |
| 33 | rankAmplitude : ℝ |
| 34 | rankShape : ℝ |
| 35 | rankInner : ℝ |
| 36 | rankOuter : ℝ |
| 37 | operatorInner : ℝ |
| 38 | operatorOuter : ℝ |
| 39 | index : ℕ → ℕ |
| 40 | h_pos : 0 < h |
| 41 | h_lt_half : h < 1 / 2 |
| 42 | inner_pos : 0 < inner |
| 43 | inner_lt_outer : inner < outer |
| 44 | operator_lt : operatorInner < operatorOuter |
| 45 | |
| 46 | noncomputable def Geometry.gauge (G : Geometry) : VariableGaugeMean.GaugeData Plane := |
| 47 | VariableGaugeMean.similarityGauge G.h (ChartScales.radialExponent G.h) |
| 48 | G.inner G.outer G.frequency G.inner_lt_outer G.index |
| 49 | |
| 50 | noncomputable def Geometry.rank (G : Geometry) : CorrectionState.RankData Plane := |
| 51 | RankStateBounds.normalizedData (2 * G.h) (CoordinateAlgebra.A G.h) |
| 52 | G.rankAmplitude G.rankShape G.rankInner G.rankOuter |
| 53 | |
| 54 | noncomputable def Geometry.operators (G : Geometry) : MeanIncrementBounds.Operators Point := |
| 55 | CommonBaseContext.operators G.h G.index G.operatorInner G.operatorOuter G.operator_lt |
| 56 | |
| 57 | /-- Identifications of primitive data, not conclusions about a state. -/ |
| 58 | structure Realizes {ι : Type} (G : Geometry) (p : CycleParameters ι) (c : Context Point) : Prop where |
| 59 | gauge : p.gauge = G.gauge |
| 60 | rank : p.rank = G.rank |
| 61 | timeExponent : p.timeExponent = G.h |
| 62 | index : p.commonIndex = G.index |
| 63 | axial : p.axial = ((0, 1), 0) |
| 64 | operators : c.operators = G.operators |
| 65 | |
| 66 | def StateBand (G : Geometry) (V : Set Plane) (n m k : ℕ) (u : State Point) : Prop := |
| 67 | StateOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 68 | (bandVelocityScale G.h n m) (bandScale n m) u u n m |
| 69 | |
| 70 | def ContextBand (G : Geometry) (V : Set Plane) (n m k : ℕ) (c : Context Point) : Prop := |
| 71 | ContextOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 72 | (bandVelocityScale G.h n m) (bandScale n m) c c n m |
| 73 | |
| 74 | def AxisBand (G : Geometry) (V : Set Plane) (n m k : ℕ) (a : AxisymmetricAlias) : Prop := |
| 75 | ∀ x ∈ PhysicalMeanDomain.slowDomain V, ∀ i, |
| 76 | a n x i = (bandVelocityScale G.h n m * bandVelocityScale G.h n m * bandScale n m) * |
| 77 | a m (bandChartEquiv G.h n m k x) i |
| 78 | |
| 79 | /-! ## Finite label sums without equality of the two active sets -/ |
| 80 | |
| 81 | theorem sum_eq_mul_sum_of_support {ι : Type*} (s t : Finset ι) (a : ℝ) |
| 82 | (f g : ι → ℝ) (hf : ∀ i, i ∉ s → f i = 0) (hg : ∀ i, i ∉ t → g i = 0) |
| 83 | (he : ∀ i, f i = a * g i) : (∑ i ∈ s, f i) = a * ∑ i ∈ t, g i := by |
| 84 | classical |
| 85 | have hs : (∑ i ∈ s, f i) = ∑ i ∈ s ∪ t, f i := by |
| 86 | exact Finset.sum_subset (Finset.subset_union_left) (fun i _ hi => hf i hi) |
| 87 | have ht : (∑ i ∈ t, g i) = ∑ i ∈ s ∪ t, g i := by |
| 88 | exact Finset.sum_subset (Finset.subset_union_right) (fun i _ hi => hg i hi) |
| 89 | rw [hs, ht, Finset.mul_sum] |
| 90 | exact Finset.sum_congr rfl (fun i _ => he i) |
| 91 | |
| 92 | /-- Primitive wave transport with the velocity, pressure and excluded |
| 93 | Gaussian terms in their respective physical units. -/ |
| 94 | structure WaveOn {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 95 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 96 | (U : Set D) (e : D ≃L[ℝ] E) (c l : ℝ) |
| 97 | (w : Oscillation D) (p : OscillatoryScalar D) (g : Oscillation D) |
| 98 | (wr : Oscillation E) (pr : OscillatoryScalar E) (gr : Oscillation E) (n m : ℕ) : Prop where |
| 99 | velocity : ∀ x ∈ U, ∀ theta i, w n (x, theta) i = c * wr m (e x, theta) i |
| 100 | pressure : ∀ x ∈ U, ∀ theta, p n (x, theta) = (c*c) * pr m (e x, theta) |
| 101 | gaussian : ∀ x ∈ U, ∀ theta i, g n (x, theta) i = (c*c*l) * gr m (e x, theta) i |
| 102 | |
| 103 | /-- The support hypotheses concern each omitted label, so different active |
| 104 | sets in neighboring bands are permitted. -/ |
| 105 | structure LabelWavesOn {ι : Type} (U : Set Point) (e : Point ≃L[ℝ] Point) (c l : ℝ) |
| 106 | (labels : ℕ → Finset ι) (b g : ι → HarmonicBlock Point) (n m : ℕ) : Prop where |
| 107 | wave : ∀ i, WaveOn U e c l (b i).oscillation (b i).oscillatoryPressure (g i).oscillation |
| 108 | (b i).oscillation (b i).oscillatoryPressure (g i).oscillation n m |
| 109 | left_zero : ∀ i, i ∉ labels n → ∀ x ∈ U, ∀ theta, |
| 110 | (b i).oscillation n (x,theta) = 0 ∧ (b i).oscillatoryPressure n (x,theta) = 0 ∧ |
| 111 | (g i).oscillation n (x,theta) = 0 |
| 112 | right_zero : ∀ i, i ∉ labels m → ∀ x ∈ U, ∀ theta, |
| 113 | (b i).oscillation m (e x,theta) = 0 ∧ (b i).oscillatoryPressure m (e x,theta) = 0 ∧ |
| 114 | (g i).oscillation m (e x,theta) = 0 |
| 115 | |
| 116 | theorem LabelWavesOn.sum {ι : Type} {U : Set Point} {e : Point ≃L[ℝ] Point} {c l : ℝ} |
| 117 | {labels : ℕ → Finset ι} {b g : ι → HarmonicBlock Point} {n m : ℕ} |
| 118 | (H : LabelWavesOn U e c l labels b g n m) : |
| 119 | WaveOn U e c l |
| 120 | (LabelSumBounds.fieldSum labels (fun i => (b i).oscillation)) |
| 121 | (fun j x => ∑ i ∈ labels j, (b i).oscillatoryPressure j x) |
| 122 | (LabelSumBounds.fieldSum labels (fun i => (g i).oscillation)) |
| 123 | (LabelSumBounds.fieldSum labels (fun i => (b i).oscillation)) |
| 124 | (fun j x => ∑ i ∈ labels j, (b i).oscillatoryPressure j x) |
| 125 | (LabelSumBounds.fieldSum labels (fun i => (g i).oscillation)) n m := by |
| 126 | constructor |
| 127 | · intro x hx theta j |
| 128 | apply sum_eq_mul_sum_of_support |
| 129 | · intro i hi |
| 130 | exact congrFun (H.left_zero i hi x hx theta).1 j |
| 131 | · intro i hi |
| 132 | exact congrFun (H.right_zero i hi x hx theta).1 j |
| 133 | · intro i |
| 134 | exact (H.wave i).velocity x hx theta j |
| 135 | · intro x hx theta |
| 136 | apply sum_eq_mul_sum_of_support |
| 137 | · intro i hi |
| 138 | exact (H.left_zero i hi x hx theta).2.1 |
| 139 | · intro i hi |
| 140 | exact (H.right_zero i hi x hx theta).2.1 |
| 141 | · intro i |
| 142 | exact (H.wave i).pressure x hx theta |
| 143 | · intro x hx theta j |
| 144 | apply sum_eq_mul_sum_of_support |
| 145 | · intro i hi |
| 146 | exact congrFun (H.left_zero i hi x hx theta).2.2 j |
| 147 | · intro i hi |
| 148 | exact congrFun (H.right_zero i hi x hx theta).2.2 j |
| 149 | · intro i |
| 150 | exact (H.wave i).gaussian x hx theta j |
| 151 | |
| 152 | /-! ## Algebraic state operations retain all old errors -/ |
| 153 | |
| 154 | theorem add_wave_on {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 155 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 156 | {U : Set D} {e : D ≃L[ℝ] E} {c l : ℝ} {u : State D} {ur : State E} {n m : ℕ} |
| 157 | {w g : Oscillation D} {p : OscillatoryScalar D} |
| 158 | {wr gr : Oscillation E} {pr : OscillatoryScalar E} |
| 159 | (H : StateOn U e c l u ur n m) (W : WaveOn U e c l w p g wr pr gr n m) : |
| 160 | StateOn U e c l |
| 161 | (u.addIncrement zeroTriple 0 w p ⟨0,g,0⟩) |
| 162 | (ur.addIncrement zeroTriple 0 wr pr ⟨0,gr,0⟩) n m := by |
| 163 | refine ⟨?_, ?_, ?_, ?_, ?_, ?_, ?_⟩ |
| 164 | · simpa only [State.addIncrement, updated_zeroTriple] using H.mean |
| 165 | · simpa only [State.addIncrement, add_zero] using H.pressure |
| 166 | · intro x hx theta i |
| 167 | change u.oscillation n (x,theta) i + w n (x,theta) i = _ |
| 168 | rw [H.oscillation x hx theta i, W.velocity x hx theta i] |
| 169 | exact (mul_add _ _ _).symm |
| 170 | · intro x hx theta |
| 171 | change u.oscillatoryPressure n (x,theta) + p n (x,theta) = _ |
| 172 | rw [H.oscillatoryPressure x hx theta, W.pressure x hx theta] |
| 173 | exact (mul_add _ _ _).symm |
| 174 | · simpa only [State.addIncrement, ExcludedErrors.add, add_zero] using H.baseError |
| 175 | · intro x hx theta i |
| 176 | change u.errors.gaussian n (x,theta) i + g n (x,theta) i = _ |
| 177 | rw [H.gaussian x hx theta i, W.gaussian x hx theta i] |
| 178 | exact (mul_add _ _ _).symm |
| 179 | · simpa only [State.addIncrement, ExcludedErrors.add, add_zero] using H.aliasError |
| 180 | |
| 181 | theorem refresh_pressure_alias_on {S T : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 182 | [NormedAddCommGroup T] [NormedSpace ℝ T] |
| 183 | {U : Set (PressureStream.Lift S)} {e : PressureStream.Lift S ≃L[ℝ] PressureStream.Lift T} |
| 184 | {c l : ℝ} {g : VariableGaugeMean.GaugeData S} {gr : VariableGaugeMean.GaugeData T} |
| 185 | {C : Context (PressureStream.Lift S)} {Cr : Context (PressureStream.Lift T)} |
| 186 | {old current : State (PressureStream.Lift S)} {oldr currentr : State (PressureStream.Lift T)} |
| 187 | {n m : ℕ} (H : StateOn U e c l current currentr n m) |
| 188 | (hnew : ∀ x ∈ U, ∀ theta i, |
| 189 | VariableGaugeMean.pressureAliasState g C current n (x,theta) i = |
| 190 | (c*c*l) * VariableGaugeMean.pressureAliasState gr Cr currentr m (e x,theta) i) |
| 191 | (hold : ∀ x ∈ U, ∀ theta i, |
| 192 | VariableGaugeMean.pressureAliasState g C old n (x,theta) i = |
| 193 | (c*c*l) * VariableGaugeMean.pressureAliasState gr Cr oldr m (e x,theta) i) : |
| 194 | StateOn U e c l (gaugeRefreshPressureAlias g C old current) |
| 195 | (gaugeRefreshPressureAlias gr Cr oldr currentr) n m := by |
| 196 | refine ⟨H.mean, H.pressure, H.oscillation, H.oscillatoryPressure, H.baseError, H.gaussian, ?_⟩ |
| 197 | intro x hx theta i |
| 198 | change current.errors.aliasError n (x,theta) i + |
| 199 | (VariableGaugeMean.pressureAliasState g C current n (x,theta) i - |
| 200 | VariableGaugeMean.pressureAliasState g C old n (x,theta) i) = |
| 201 | (c*c*l) * (currentr.errors.aliasError m (e x,theta) i + |
| 202 | (VariableGaugeMean.pressureAliasState gr Cr currentr m (e x,theta) i - |
| 203 | VariableGaugeMean.pressureAliasState gr Cr oldr m (e x,theta) i)) |
| 204 | rw [H.aliasError x hx theta i, hnew x hx theta i, hold x hx theta i] |
| 205 | ring |
| 206 | |
| 207 | /-! ## All analytic source data come from the incoming primitive fields -/ |
| 208 | |
| 209 | theorem debtRegular_of_primitive {coord a b : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 210 | {c : Context Point} {u : State Point} |
| 211 | (H : MeanStateRegularity.PrimitiveData U a b c u) (ha : 0 < a) (hab : a < b) (n : ℕ) : |
| 212 | RankStateCoherence.DebtRegular U.carrier c u n := by |
| 213 | have hR := H.source ha hab |
| 214 | have hT := (H.angular_flux ha hab).axial |
| 215 | have hZ := (H.axial_flux ha hab).axial |
| 216 | exact ⟨hR.smooth n, hT.smooth n, hZ.smooth n, hR.periodic n, hT.periodic n, hZ.periodic n⟩ |
| 217 | |
| 218 | namespace Realizes |
| 219 | |
| 220 | variable {ι : Type} {G : Geometry} {p : CycleParameters ι} {c : Context Point} |
| 221 | |
| 222 | theorem inner_pos (R : Realizes G p c) : 0 < p.gauge.radial.inner := by |
| 223 | rw [R.gauge] |
| 224 | exact G.inner_pos |
| 225 | |
| 226 | theorem exponent_pos (R : Realizes G p c) : 0 < p.gauge.radial.exponent := by |
| 227 | rw [R.gauge] |
| 228 | exact ChartScales.radialExponent_pos G.h G.h_pos.le |
| 229 | |
| 230 | theorem length (R : Realizes G p c) (n : ℕ) : |
| 231 | p.gauge.length n = VariableGaugeMean.qLength (2 * G.h) := by |
| 232 | rw [R.gauge] |
| 233 | rfl |
| 234 | |
| 235 | theorem gauge_on (R : Realizes G p c) {V : Set Plane} (n m k : ℕ) |
| 236 | (hi : G.index n + k = G.index m) (htime : ∀ s ∈ V, 0 < s.1) : |
| 237 | GaugeOn V (bandScale n m) (bandSlowEquiv G.h n m).toContinuousLinearMap k |
| 238 | p.gauge p.gauge n m := by |
| 239 | rw [R.gauge] |
| 240 | exact similarityGaugeOn G.h_pos G.h_lt_half (ChartScales.radialExponent G.h) |
| 241 | G.inner G.outer G.frequency G.inner_lt_outer G.index n m k hi htime |
| 242 | |
| 243 | theorem axial_on (R : Realizes G p c) (n m k : ℕ) : |
| 244 | ((bandSlowEquiv G.h n m).toContinuousLinearMap.prodMap (TemporalMeanUpdate.coverMap k)) |
| 245 | (c.operators.epsilon n • p.axial) = |
| 246 | bandScale n m • (c.operators.epsilon m • p.axial) := by |
| 247 | rw [R.operators, R.axial] |
| 248 | exact TemporalStateCoherence.band_axial_transport G.h n m k |
| 249 | |
| 250 | theorem clock_on (R : Realizes G p c) (n m k : ℕ) |
| 251 | (hi : G.index n + k = G.index m) : |
| 252 | TemporalStateCoherence.clock p.timeExponent n (p.commonIndex n) * ChartScales.Tg ^ k = |
| 253 | (bandVelocityScale G.h n m * bandScale n m) * |
| 254 | TemporalStateCoherence.clock p.timeExponent m (p.commonIndex m) := by |
| 255 | rw [R.timeExponent, R.index] |
| 256 | exact TemporalStateCoherence.clock_band_transport G.h n m (G.index n) (G.index m) k hi |
| 257 | |
| 258 | theorem fast_on (R : Realizes G p c) (n m k : ℕ) |
| 259 | (hi : G.index n + k = G.index m) : |
| 260 | bandChartEquiv G.h n m k (c.operators.fastCoefficient n • c.operators.vT) = |
| 261 | (bandVelocityScale G.h n m * bandScale n m) • |
| 262 | (c.operators.fastCoefficient m • c.operators.vT) := by |
| 263 | rw [R.operators] |
| 264 | exact TemporalStateCoherence.common_fast_transport G.h G.index |
| 265 | G.operatorInner G.operatorOuter G.operator_lt n m k hi |
| 266 | |
| 267 | theorem rank_on (R : Realizes G p c) {V : Set Plane} (n m : ℕ) |
| 268 | (htime : ∀ s ∈ V, 0 < s.1) : |
| 269 | RankStateCoherence.RankOn V (bandSlowEquiv G.h n m) (bandScale n m) |
| 270 | (bandVelocityScale G.h n m) p.rank p.rank n m := by |
| 271 | rw [R.rank] |
| 272 | exact RankStateCoherence.normalized_rank_on G.h_pos G.h_lt_half |
| 273 | G.rankAmplitude G.rankShape G.rankInner G.rankOuter n m htime |
| 274 | |
| 275 | end Realizes |
| 276 | |
| 277 | /-- Intermediate regularity is a proved consequence of the incoming |
| 278 | primitive fields and the two actual covariance changes. -/ |
| 279 | structure StagePrimitives {ι : Type} (G : Geometry) (p : CycleParameters ι) |
| 280 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) |
| 281 | (U : LocalSignedRequest.SlowRegion (2 * G.h)) : Prop where |
| 282 | particular : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c |
| 283 | (p.afterParticular v c u) |
| 284 | signed : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c |
| 285 | (p.afterSigned v c u) |
| 286 | temporal : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c |
| 287 | (p.afterTemporal v c u) |
| 288 | ranked : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c |
| 289 | (p.afterRank v c u) |
| 290 | rankGeometry : LocalRankDefect.RankGeometry p.gauge p.rank U.carrier c (p.afterTemporal v c u) |
| 291 | |
| 292 | theorem stage_primitives {ι : Type} {G : Geometry} {p : CycleParameters ι} |
| 293 | {v : CycleCoefficients ι} {c : Context Point} {u : State Point} |
| 294 | {U : LocalSignedRequest.SlowRegion (2 * G.h)} (R : Realizes G p c) |
| 295 | (H : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c u) |
| 296 | (hX₁ : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer |
| 297 | (SignedMeanGain.covarianceIncrement u.oscillation (p.particularVelocity v c u) i j)) |
| 298 | (hX₂ : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer |
| 299 | (SignedMeanGain.covarianceIncrement (p.afterParticular v c u).oscillation (p.signedVelocity v c u) i j)) |
| 300 | (hg : LocalRankDefect.RankGeometry p.gauge p.rank U.carrier c u) : |
| 301 | StagePrimitives G p v c u U := by |
| 302 | have H₁ := H.waveStage p.gauge (p.particularVelocity v c u) (p.particularPressure v c u) |
| 303 | (p.particularGaussian v c u) hX₁ |
| 304 | have H₂ := H₁.waveStage p.gauge (p.signedVelocity v c u) (p.signedPressure v c u) |
| 305 | (p.signedGaussian v c u) hX₂ |
| 306 | have H₃ := MeanStageRegularity.temporalStage_primitive H₂ R.inner_pos R.exponent_pos R.length rfl |
| 307 | p.timeExponent p.commonIndex p.axial |
| 308 | have Hgeom := MeanStageRegularity.rankGeometry_for_state H₃ R.inner_pos p.gauge.radial.inner_lt_outer hg |
| 309 | have H₄ := MeanStageRegularity.rankStage_primitive H₃ Hgeom R.length p.axial |
| 310 | exact ⟨H₁, H₂, H₃, H₄, Hgeom⟩ |
| 311 | |
| 312 | section OnePair |
| 313 | |
| 314 | variable {ι : Type} {G : Geometry} {p : CycleParameters ι} {v : CycleCoefficients ι} |
| 315 | {c : Context Point} {u : State Point} (R : Realizes G p c) |
| 316 | {U : LocalSignedRequest.SlowRegion (2 * G.h)} {V : Set Plane} |
| 317 | (hV : IsOpen V) (hsub : V ⊆ U.carrier) (n m k : ℕ) |
| 318 | (hi : G.index n + k = G.index m) (hmap : MapsTo (bandSlowEquiv G.h n m) V U.carrier) |
| 319 | (HC : ContextBand G V n m k c) |
| 320 | |
| 321 | include R hV hsub hi hmap HC |
| 322 | |
| 323 | theorem reconstruction_and_alias_band |
| 324 | (H : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c u) |
| 325 | (HS : StateBand G V n m k u) : |
| 326 | StateBand G V n m k (VariableGaugeMean.reconstructState p.gauge c u) ∧ |
| 327 | ∀ x ∈ PhysicalMeanDomain.slowDomain V, ∀ theta i, |
| 328 | VariableGaugeMean.pressureAliasState p.gauge c u n (x,theta) i = |
| 329 | (bandVelocityScale G.h n m * bandVelocityScale G.h n m * bandScale n m) * |
| 330 | VariableGaugeMean.pressureAliasState p.gauge c u m (bandChartEquiv G.h n m k x,theta) i := by |
| 331 | have hg := R.gauge_on n m k hi (fun s hs => U.time_pos s (hsub hs)) |
| 332 | have hr := H.source R.inner_pos p.gauge.radial.inner_lt_outer |
| 333 | have hs : VariableGaugeMean.SupportedGauge p.gauge.radial.inner p.gauge.radial.outer |
| 334 | (p.gauge.length m) U.carrier (u.gr c m) := by |
| 335 | rw [R.length] |
| 336 | exact hr.supported m |
| 337 | exact ⟨GaugeStateCoherence.reconstructState_on (bandScale_pos n m) (bandSlowEquiv G.h n m) k |
| 338 | hV U.isOpen hmap p.gauge p.gauge c c u u n m R.inner_pos R.exponent_pos hg HS HC |
| 339 | (hr.smooth m) (hr.periodic m) hs, |
| 340 | GaugeStateCoherence.pressureAliasState_on (bandScale_pos n m) (bandSlowEquiv G.h n m) k |
| 341 | hV U.isOpen hmap p.gauge p.gauge c c u u n m R.inner_pos R.exponent_pos hg HS HC |
| 342 | (hr.smooth m) (hr.periodic m) hs⟩ |
| 343 | |
| 344 | theorem wave_stage_band {w g : Oscillation Point} {q : OscillatoryScalar Point} |
| 345 | (H : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c u) |
| 346 | (HS : StateBand G V n m k u) |
| 347 | (hX : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer |
| 348 | (SignedMeanGain.covarianceIncrement u.oscillation w i j)) |
| 349 | (HW : WaveOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 350 | (bandVelocityScale G.h n m) (bandScale n m) w q g w q g n m) : |
| 351 | StateBand G V n m k (gaugeWaveStage p.gauge c u w q ⟨0,g,0⟩) := by |
| 352 | have HP := H.waveStage p.gauge w q g hX |
| 353 | have Hbefore : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c |
| 354 | (u.addIncrement zeroTriple 0 w q ⟨0,g,0⟩) := |
| 355 | ⟨HP.operators, HP.base, HP.mean, HP.covariance, HP.virtualTheta, HP.virtualAxial⟩ |
| 356 | exact (reconstruction_and_alias_band R hV hsub n m k hi hmap HC Hbefore (add_wave_on HS HW)).1 |
| 357 | |
| 358 | end OnePair |
| 359 | |
| 360 | def ErrorBand (G : Geometry) (V : Set Plane) (n m k : ℕ) (a : Oscillation Point) : Prop := |
| 361 | ∀ x ∈ PhysicalMeanDomain.slowDomain V, ∀ theta i, |
| 362 | a n (x,theta) i = (bandVelocityScale G.h n m * bandVelocityScale G.h n m * bandScale n m) * |
| 363 | a m (bandChartEquiv G.h n m k x,theta) i |
| 364 | |
| 365 | /-- Only the two actual per-label wave insertions occur in this input. |
| 366 | The state, reconstructed pressures and mean increments are not inputs. -/ |
| 367 | structure CycleWavesOn {ι : Type} (G : Geometry) (p : CycleParameters ι) |
| 368 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) |
| 369 | (V : Set Plane) (n m k : ℕ) : Prop where |
| 370 | particular : LabelWavesOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 371 | (bandVelocityScale G.h n m) (bandScale n m) v.labels |
| 372 | (p.particularBlock v c u) (p.particularGaussianBlock v c u) n m |
| 373 | signed : LabelWavesOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 374 | (bandVelocityScale G.h n m) (bandScale n m) v.labels |
| 375 | (p.signedBlock v c u) (p.signedGaussianBlock v c u) n m |
| 376 | |
| 377 | /-- A derived transport certificate for all four literal stages and the |
| 378 | three aliases needed by the final pressure-alias replacement. -/ |
| 379 | structure CycleTransport {ι : Type} (G : Geometry) (p : CycleParameters ι) |
| 380 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) |
| 381 | (V : Set Plane) (n m k : ℕ) : Prop where |
| 382 | particular : StateBand G V n m k (p.afterParticular v c u) |
| 383 | signed : StateBand G V n m k (p.afterSigned v c u) |
| 384 | temporal : StateBand G V n m k (p.afterTemporal v c u) |
| 385 | ranked : StateBand G V n m k (p.afterRank v c u) |
| 386 | next : StateBand G V n m k (p.next v c u) |
| 387 | temporalAlias : ErrorBand G V n m k |
| 388 | (VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u)) |
| 389 | oldPressureAlias : ErrorBand G V n m k (VariableGaugeMean.pressureAliasState p.gauge c u) |
| 390 | currentPressureAlias : ErrorBand G V n m k |
| 391 | (VariableGaugeMean.pressureAliasState p.gauge c (p.afterRank v c u)) |
| 392 | |
| 393 | theorem cycle_transport {ι : Type} {G : Geometry} {p : CycleParameters ι} |
| 394 | {v : CycleCoefficients ι} {c : Context Point} {u : State Point} |
| 395 | {U : LocalSignedRequest.SlowRegion (2 * G.h)} {V : Set Plane} |
| 396 | (R : Realizes G p c) (hV : IsOpen V) (hsub : V ⊆ U.carrier) (n m k : ℕ) |
| 397 | (hi : G.index n + k = G.index m) (hmap : MapsTo (bandSlowEquiv G.h n m) V U.carrier) |
| 398 | (HC : ContextBand G V n m k c) (HS : StateBand G V n m k u) |
| 399 | (H : MeanStateRegularity.PrimitiveData U p.gauge.radial.inner p.gauge.radial.outer c u) |
| 400 | (hX₁ : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer |
| 401 | (SignedMeanGain.covarianceIncrement u.oscillation (p.particularVelocity v c u) i j)) |
| 402 | (hX₂ : ∀ i j, GaugeMomentBalances.MovingField U p.gauge.radial.inner p.gauge.radial.outer |
| 403 | (SignedMeanGain.covarianceIncrement (p.afterParticular v c u).oscillation (p.signedVelocity v c u) i j)) |
| 404 | (hg : LocalRankDefect.RankGeometry p.gauge p.rank U.carrier c u) |
| 405 | (HW : CycleWavesOn G p v c u V n m k) : CycleTransport G p v c u V n m k := by |
| 406 | have HP := stage_primitives R H hX₁ hX₂ hg |
| 407 | have H₁ : StateBand G V n m k (p.afterParticular v c u) := |
| 408 | wave_stage_band R hV hsub n m k hi hmap HC H HS hX₁ HW.particular.sum |
| 409 | have H₂ : StateBand G V n m k (p.afterSigned v c u) := |
| 410 | wave_stage_band R hV hsub n m k hi hmap HC HP.particular H₁ hX₂ HW.signed.sum |
| 411 | have htime : ∀ s ∈ V, 0 < s.1 := fun s hs => U.time_pos s (hsub hs) |
| 412 | have hGauge := R.gauge_on n m k hi htime |
| 413 | have hTheta := HP.signed.theta R.inner_pos p.gauge.radial.inner_lt_outer |
| 414 | have hAxial := HP.signed.axial_reconstructed R.inner_pos R.exponent_pos R.length rfl |
| 415 | have hTemporalSource := HP.temporal.source R.inner_pos p.gauge.radial.inner_lt_outer |
| 416 | have hAxialSupport : VariableGaugeMean.SupportedGauge p.gauge.radial.inner p.gauge.radial.outer |
| 417 | (p.gauge.length m) U.carrier ((p.afterSigned v c u).axialResidual c m) := by |
| 418 | rw [R.length] |
| 419 | exact hAxial.supported m |
| 420 | have hTemporalSupport : VariableGaugeMean.SupportedGauge p.gauge.radial.inner p.gauge.radial.outer |
| 421 | (p.gauge.length m) U.carrier ((p.afterTemporal v c u).gr c m) := by |
| 422 | rw [R.length] |
| 423 | exact hTemporalSource.supported m |
| 424 | have H₃ : StateBand G V n m k (p.afterTemporal v c u) := |
| 425 | TemporalStateCoherence.temporalStage_on (bandScale_pos n m) (bandSlowEquiv G.h n m) k |
| 426 | hV U.isOpen hmap p.gauge p.gauge c c (p.afterSigned v c u) (p.afterSigned v c u) |
| 427 | p.timeExponent p.commonIndex p.commonIndex n m R.inner_pos R.exponent_pos hGauge H₂ HC |
| 428 | (R.clock_on n m k hi) (hAxial.smooth m) (hAxial.periodic m) hAxialSupport |
| 429 | p.axial p.axial (R.axial_on n m k) (hTheta.smooth m) (hTheta.periodic m) (R.fast_on n m k hi) |
| 430 | (hTemporalSource.smooth m) (hTemporalSource.periodic m) hTemporalSupport |
| 431 | have hAlias : ErrorBand G V n m k |
| 432 | (VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u)) := |
| 433 | TemporalStateCoherence.temporalAliasState_on (bandScale_pos n m) (bandSlowEquiv G.h n m) k |
| 434 | hV U.isOpen hmap p.gauge p.gauge c c (p.afterSigned v c u) (p.afterSigned v c u) |
| 435 | p.timeExponent p.commonIndex p.commonIndex n m R.inner_pos R.exponent_pos hGauge H₂ HC |
| 436 | (R.clock_on n m k hi) (hAxial.smooth m) (hAxial.periodic m) hAxialSupport |
| 437 | p.axial p.axial (R.axial_on n m k) (hTheta.smooth m) (hTheta.periodic m) (R.fast_on n m k hi) |
| 438 | have hRankSource := HP.ranked.source R.inner_pos p.gauge.radial.inner_lt_outer |
| 439 | have hRankSupport : VariableGaugeMean.SupportedGauge p.gauge.radial.inner p.gauge.radial.outer |
| 440 | (p.gauge.length m) U.carrier ((p.afterRank v c u).gr c m) := by |
| 441 | rw [R.length] |
| 442 | exact hRankSource.supported m |
| 443 | have H₄ : StateBand G V n m k (p.afterRank v c u) := |
| 444 | RankStateCoherence.rankStageState_on (bandScale_pos n m) |
| 445 | (Real.rpow_pos_of_pos (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m)) _).ne' |
| 446 | (bandSlowEquiv G.h n m) k hV U.isOpen hmap H₃ HC |
| 447 | (debtRegular_of_primitive HP.temporal R.inner_pos p.gauge.radial.inner_lt_outer m) |
| 448 | (R.rank_on n m htime) hGauge HP.rankGeometry p.axial p.axial (R.axial_on n m k) |
| 449 | (hRankSource.smooth m) (hRankSource.periodic m) hRankSupport |
| 450 | have hOld := (reconstruction_and_alias_band R hV hsub n m k hi hmap HC H HS).2 |
| 451 | have hNew := (reconstruction_and_alias_band R hV hsub n m k hi hmap HC HP.ranked H₄).2 |
| 452 | exact ⟨H₁, H₂, H₃, H₄, refresh_pressure_alias_on H₄ hNew hOld, hAlias, hOld, hNew⟩ |
| 453 | |
| 454 | theorem CycleTransport.axis {ι : Type} {G : Geometry} {p : CycleParameters ι} |
| 455 | {v : CycleCoefficients ι} {c : Context Point} {u : State Point} |
| 456 | {V : Set Plane} {n m k : ℕ} (H : CycleTransport G p v c u V n m k) |
| 457 | {a : AxisymmetricAlias} (HA : AxisBand G V n m k a) : |
| 458 | AxisBand G V n m k (p.nextAxisymmetricAlias v c u a) := by |
| 459 | intro x hx i |
| 460 | change a n x i + |
| 461 | VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) n (x,0) i + |
| 462 | (VariableGaugeMean.pressureAliasState p.gauge c (p.afterRank v c u) n (x,0) i - |
| 463 | VariableGaugeMean.pressureAliasState p.gauge c u n (x,0) i) = _ |
| 464 | rw [HA x hx i, H.temporalAlias x hx 0 i, H.currentPressureAlias x hx 0 i, H.oldPressureAlias x hx 0 i] |
| 465 | change _ = (bandVelocityScale G.h n m * bandVelocityScale G.h n m * bandScale n m) * |
| 466 | (a m (bandChartEquiv G.h n m k x) i + |
| 467 | VariableGaugeMean.temporalAliasState p.gauge p.timeExponent p.commonIndex c (p.afterSigned v c u) m |
| 468 | (bandChartEquiv G.h n m k x,0) i + |
| 469 | (VariableGaugeMean.pressureAliasState p.gauge c (p.afterRank v c u) m (bandChartEquiv G.h n m k x,0) i - |
| 470 | VariableGaugeMean.pressureAliasState p.gauge c u m (bandChartEquiv G.h n m k x,0) i)) |
| 471 | ring |
| 472 | |
| 473 | theorem CycleTransport.step {ι : Type} {G : Geometry} {p : CycleParameters ι} |
| 474 | {x : CycleState ι} {c : Context Point} {V : Set Plane} {n m k : ℕ} |
| 475 | (H : CycleTransport G p x.coefficients c x.state V n m k) |
| 476 | (HA : AxisBand G V n m k x.axisymmetricAlias) : |
| 477 | StateBand G V n m k (x.step p c).state ∧ |
| 478 | AxisBand G V n m k (x.step p c).axisymmetricAlias := ⟨H.next, H.axis HA⟩ |
| 479 | |
| 480 | /-- Stored labels and harmonic aliases are never reselected by a cycle. -/ |
| 481 | theorem step_labels {ι : Type} (p : CycleParameters ι) (c : Context Point) (x : CycleState ι) : |
| 482 | (x.step p c).coefficients.labels = x.coefficients.labels := rfl |
| 483 | |
| 484 | theorem step_aliasCoefficients {ι : Type} (p : CycleParameters ι) (c : Context Point) |
| 485 | (x : CycleState ι) : |
| 486 | (x.step p c).coefficients.aliasCoefficients = x.coefficients.aliasCoefficients := rfl |
| 487 | |
| 488 | theorem iterate_labels {ι : Type} (p : ℕ → CycleParameters ι) (c : Context Point) |
| 489 | (seed : CycleState ι) (j : ℕ) : |
| 490 | (CycleState.iterate p c seed j).coefficients.labels = seed.coefficients.labels := by |
| 491 | induction j with |
| 492 | | zero => rfl |
| 493 | | succ j ih => exact ih |
| 494 | |
| 495 | theorem iterate_aliasCoefficients {ι : Type} (p : ℕ → CycleParameters ι) (c : Context Point) |
| 496 | (seed : CycleState ι) (j : ℕ) : |
| 497 | (CycleState.iterate p c seed j).coefficients.aliasCoefficients = seed.coefficients.aliasCoefficients := by |
| 498 | induction j with |
| 499 | | zero => rfl |
| 500 | | succ j ih => exact ih |
| 501 | |
| 502 | /-- The primitive wave laws also propagate the complete individual |
| 503 | harmonic blocks, so they remain available to the next reference solve. -/ |
| 504 | theorem block_fields_next {ι : Type} {G : Geometry} {p : CycleParameters ι} |
| 505 | {v : CycleCoefficients ι} {c : Context Point} {u : State Point} |
| 506 | {V : Set Plane} {n m k : ℕ} (HW : CycleWavesOn G p v c u V n m k) |
| 507 | (hc : ∀ l, SameCarrier (v.blocks l) (p.signedBlock v c u l)) (l : ι) |
| 508 | (H : BlockFieldsOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 509 | (bandVelocityScale G.h n m) (bandScale n m) (v.blocks l) (v.blocks l) |
| 510 | (v.gaussian l) (v.aliasCoefficients l) (v.gaussian l) (v.aliasCoefficients l) n m) : |
| 511 | BlockFieldsOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 512 | (bandVelocityScale G.h n m) (bandScale n m) |
| 513 | ((p.nextCoefficients v c u).blocks l) ((p.nextCoefficients v c u).blocks l) |
| 514 | ((p.nextCoefficients v c u).gaussian l) ((p.nextCoefficients v c u).aliasCoefficients l) |
| 515 | ((p.nextCoefficients v c u).gaussian l) ((p.nextCoefficients v c u).aliasCoefficients l) n m := by |
| 516 | refine ⟨H.phase, H.angular, H.angular_ne, ?_, ?_, ?_, H.aliasError⟩ |
| 517 | · intro x hx theta i |
| 518 | change (p.finalBlock v c u l).oscillation n (x,theta) i = |
| 519 | bandVelocityScale G.h n m * (p.finalBlock v c u l).oscillation m (bandChartEquiv G.h n m k x,theta) i |
| 520 | rw [p.finalBlock_oscillation v c u hc l] |
| 521 | simp only [Pi.add_apply] |
| 522 | rw [H.velocity x hx theta i, (HW.particular.wave l).velocity x hx theta i, |
| 523 | (HW.signed.wave l).velocity x hx theta i] |
| 524 | ring |
| 525 | · intro x hx theta |
| 526 | change (p.finalBlock v c u l).oscillatoryPressure n (x,theta) = |
| 527 | (bandVelocityScale G.h n m * bandVelocityScale G.h n m) * |
| 528 | (p.finalBlock v c u l).oscillatoryPressure m (bandChartEquiv G.h n m k x,theta) |
| 529 | rw [p.finalBlock_pressure v c u hc l] |
| 530 | simp only [Pi.add_apply] |
| 531 | rw [H.pressure x hx theta, (HW.particular.wave l).pressure x hx theta, |
| 532 | (HW.signed.wave l).pressure x hx theta] |
| 533 | ring |
| 534 | · intro x hx theta i |
| 535 | change coefficientField ((p.nextCoefficients v c u).blocks l) ((p.nextCoefficients v c u).gaussian l) n (x,theta) i = |
| 536 | (bandVelocityScale G.h n m * bandVelocityScale G.h n m * bandScale n m) * |
| 537 | coefficientField ((p.nextCoefficients v c u).blocks l) ((p.nextCoefficients v c u).gaussian l) m |
| 538 | (bandChartEquiv G.h n m k x,theta) i |
| 539 | rw [p.nextCoefficients_gaussian_field v c u hc l n (x,theta) i, |
| 540 | p.nextCoefficients_gaussian_field v c u hc l m (bandChartEquiv G.h n m k x,theta) i] |
| 541 | have he := H.gaussian x hx theta i |
| 542 | change coefficientField (v.blocks l) (v.gaussian l) n (x,theta) i = _ at he |
| 543 | rw [he, (HW.particular.wave l).gaussian x hx theta i, (HW.signed.wave l).gaussian x hx theta i] |
| 544 | simp only [coefficientField] |
| 545 | ring |
| 546 | |
| 547 | /-- One fixed geometry and one fixed slow domain suffice for the entire |
| 548 | actual recurrence. Only each stage's two native wave laws and covariance |
| 549 | changes are supplied; next-state coherence is proved by induction. -/ |
| 550 | theorem iterate_state_axis {ι : Type} (G : Geometry) (p : ℕ → CycleParameters ι) |
| 551 | (c : Context Point) (seed : CycleState ι) |
| 552 | (R : ∀ j, Realizes G (p j) c) |
| 553 | {U : LocalSignedRequest.SlowRegion (2 * G.h)} {V : Set Plane} |
| 554 | (hV : IsOpen V) (hsub : V ⊆ U.carrier) (n m k : ℕ) |
| 555 | (hi : G.index n + k = G.index m) (hmap : MapsTo (bandSlowEquiv G.h n m) V U.carrier) |
| 556 | (HC : ContextBand G V n m k c) |
| 557 | (HS : StateBand G V n m k seed.state) (HA : AxisBand G V n m k seed.axisymmetricAlias) |
| 558 | (HP : MeanStateRegularity.PrimitiveData U G.inner G.outer c seed.state) |
| 559 | (HG : LocalRankDefect.RankGeometry G.gauge G.rank U.carrier c seed.state) |
| 560 | (hX₁ : ∀ j, let x := CycleState.iterate p c seed j |
| 561 | ∀ i l, GaugeMomentBalances.MovingField U G.inner G.outer |
| 562 | (SignedMeanGain.covarianceIncrement x.state.oscillation |
| 563 | ((p j).particularVelocity x.coefficients c x.state) i l)) |
| 564 | (hX₂ : ∀ j, let x := CycleState.iterate p c seed j |
| 565 | ∀ i l, GaugeMomentBalances.MovingField U G.inner G.outer |
| 566 | (SignedMeanGain.covarianceIncrement ((p j).afterParticular x.coefficients c x.state).oscillation |
| 567 | ((p j).signedVelocity x.coefficients c x.state) i l)) |
| 568 | (HW : ∀ j, let x := CycleState.iterate p c seed j |
| 569 | CycleWavesOn G (p j) x.coefficients c x.state V n m k) : |
| 570 | ∀ j, StateBand G V n m k (CycleState.iterate p c seed j).state ∧ |
| 571 | AxisBand G V n m k (CycleState.iterate p c seed j).axisymmetricAlias ∧ |
| 572 | MeanStateRegularity.PrimitiveData U G.inner G.outer c (CycleState.iterate p c seed j).state := by |
| 573 | intro j |
| 574 | induction j with |
| 575 | | zero => exact ⟨HS, HA, HP⟩ |
| 576 | | succ j ih => |
| 577 | let x := CycleState.iterate p c seed j |
| 578 | have hinner : (p j).gauge.radial.inner = G.inner := by rw [(R j).gauge]; rfl |
| 579 | have houter : (p j).gauge.radial.outer = G.outer := by rw [(R j).gauge]; rfl |
| 580 | have Hp : MeanStateRegularity.PrimitiveData U (p j).gauge.radial.inner (p j).gauge.radial.outer c x.state := by |
| 581 | rw [hinner, houter] |
| 582 | exact ih.2.2 |
| 583 | have Hrank : LocalRankDefect.RankGeometry (p j).gauge (p j).rank U.carrier c x.state := by |
| 584 | rw [(R j).gauge, (R j).rank] |
| 585 | exact MeanStageRegularity.rankGeometry_for_state ih.2.2 G.inner_pos G.inner_lt_outer HG |
| 586 | have HX₁ : ∀ i l, GaugeMomentBalances.MovingField U (p j).gauge.radial.inner (p j).gauge.radial.outer |
| 587 | (SignedMeanGain.covarianceIncrement x.state.oscillation ((p j).particularVelocity x.coefficients c x.state) i l) := by |
| 588 | rw [hinner, houter] |
| 589 | exact hX₁ j |
| 590 | have HX₂ : ∀ i l, GaugeMomentBalances.MovingField U (p j).gauge.radial.inner (p j).gauge.radial.outer |
| 591 | (SignedMeanGain.covarianceIncrement ((p j).afterParticular x.coefficients c x.state).oscillation |
| 592 | ((p j).signedVelocity x.coefficients c x.state) i l) := by |
| 593 | rw [hinner, houter] |
| 594 | exact hX₂ j |
| 595 | have Hnext := cycle_transport (R j) hV hsub n m k hi hmap HC ih.1 Hp HX₁ HX₂ Hrank (HW j) |
| 596 | have Hprimitive := ((p j).next_primitive x.coefficients c x.state U |
| 597 | (R j).inner_pos (R j).exponent_pos (R j).length Hp HX₁ HX₂ Hrank).1 |
| 598 | rw [hinner, houter] at Hprimitive |
| 599 | exact ⟨Hnext.next, Hnext.axis ih.2.1, Hprimitive⟩ |
| 600 | |
| 601 | theorem iterate_block_fields {ι : Type} (G : Geometry) (p : ℕ → CycleParameters ι) |
| 602 | (c : Context Point) (seed : CycleState ι) (V : Set Plane) (n m k : ℕ) |
| 603 | (Hseed : ∀ l, BlockFieldsOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 604 | (bandVelocityScale G.h n m) (bandScale n m) (seed.coefficients.blocks l) (seed.coefficients.blocks l) |
| 605 | (seed.coefficients.gaussian l) (seed.coefficients.aliasCoefficients l) |
| 606 | (seed.coefficients.gaussian l) (seed.coefficients.aliasCoefficients l) n m) |
| 607 | (HW : ∀ j, let x := CycleState.iterate p c seed j |
| 608 | CycleWavesOn G (p j) x.coefficients c x.state V n m k) |
| 609 | (hc : ∀ j l, let x := CycleState.iterate p c seed j |
| 610 | SameCarrier (x.coefficients.blocks l) ((p j).signedBlock x.coefficients c x.state l)) : |
| 611 | ∀ j l, let x := CycleState.iterate p c seed j |
| 612 | BlockFieldsOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv G.h n m k) |
| 613 | (bandVelocityScale G.h n m) (bandScale n m) (x.coefficients.blocks l) (x.coefficients.blocks l) |
| 614 | (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l) |
| 615 | (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l) n m := by |
| 616 | intro j |
| 617 | induction j with |
| 618 | | zero => exact Hseed |
| 619 | | succ j ih => exact fun l => block_fields_next (HW j) (hc j) l (ih l) |
| 620 | |
| 621 | /-! ## Explicit retention of the current pressure and all temporal aliases -/ |
| 622 | |
| 623 | noncomputable def temporalAliasAt {ι : Type} (p : ℕ → CycleParameters ι) |
| 624 | (c : Context Point) (seed : CycleState ι) (j : ℕ) : Oscillation Point := |
| 625 | let x := CycleState.iterate p c seed j |
| 626 | VariableGaugeMean.temporalAliasState (p j).gauge (p j).timeExponent (p j).commonIndex c |
| 627 | ((p j).afterSigned x.coefficients c x.state) |
| 628 | |
| 629 | /-- The obsolete pressure alias cancels at every step. The initial alias, |
| 630 | every earlier temporal alias, and exactly one current pressure alias are |
| 631 | retained with their actual signs. This is an identity of full fields. -/ |
| 632 | theorem iterate_alias_error {ι : Type} (p : ℕ → CycleParameters ι) (c : Context Point) |
| 633 | (seed : CycleState ι) (g : VariableGaugeMean.GaugeData Plane) |
| 634 | (hg : ∀ j, (p j).gauge = g) (J : ℕ) : |
| 635 | (CycleState.iterate p c seed J).state.errors.aliasError = |
| 636 | seed.state.errors.aliasError + (∑ j ∈ Finset.range J, temporalAliasAt p c seed j) + |
| 637 | (VariableGaugeMean.pressureAliasState g c (CycleState.iterate p c seed J).state - |
| 638 | VariableGaugeMean.pressureAliasState g c seed.state) := by |
| 639 | induction J with |
| 640 | | zero => simp only [CycleState.iterate_zero, Finset.sum_range_zero, add_zero, sub_self] |
| 641 | | succ J ih => |
| 642 | let x := CycleState.iterate p c seed J |
| 643 | have hstep : (x.step (p J) c).state.errors.aliasError = |
| 644 | x.state.errors.aliasError + temporalAliasAt p c seed J + |
| 645 | (VariableGaugeMean.pressureAliasState g c (x.step (p J) c).state - |
| 646 | VariableGaugeMean.pressureAliasState g c x.state) := by |
| 647 | rw [show (x.step (p J) c).state = (p J).next x.coefficients c x.state from rfl, |
| 648 | (p J).next_alias_error x.coefficients c x.state] |
| 649 | simp only [temporalAliasAt, hg J] |
| 650 | rfl |
| 651 | rw [CycleState.iterate_succ, hstep, Finset.sum_range_succ] |
| 652 | change x.state.errors.aliasError + _ + _ = _ |
| 653 | rw [show x.state.errors.aliasError = _ from ih] |
| 654 | abel |
| 655 | |
| 656 | theorem iterate_alias_separated {ι : Type} (p : ℕ → CycleParameters ι) (c : Context Point) |
| 657 | (seed : CycleState ι) (g : VariableGaugeMean.GaugeData Plane) |
| 658 | (hg : ∀ j, (p j).gauge = g) (other : Oscillation Point) |
| 659 | (hseed : seed.state.errors.aliasError = other + VariableGaugeMean.pressureAliasState g c seed.state) |
| 660 | (J : ℕ) : |
| 661 | (CycleState.iterate p c seed J).state.errors.aliasError = |
| 662 | other + (∑ j ∈ Finset.range J, temporalAliasAt p c seed j) + |
| 663 | VariableGaugeMean.pressureAliasState g c (CycleState.iterate p c seed J).state := by |
| 664 | rw [iterate_alias_error p c seed g hg J, hseed] |
| 665 | abel |
| 666 | |
| 667 | /-- Reference transport on positive radii extends to the entire required |
| 668 | fiber when the actual supported wave fields vanish at nonpositive radii. |
| 669 | No assertion is inferred from physical-graph equality. -/ |
| 670 | theorem waveOn_of_positive_fibers (h : ℝ) (n m k : ℕ) {V U : Set Plane} |
| 671 | (hmap : MapsTo (bandSlowEquiv h n m) V U) |
| 672 | (w g : Oscillation Point) (q : OscillatoryScalar Point) |
| 673 | (H : WaveOn (PhysicalMeanDomain.slowDomain V ∩ {x | 0 < x.1}) (bandChartEquiv h n m k) |
| 674 | (bandVelocityScale h n m) (bandScale n m) w q g w q g n m) |
| 675 | (hzleft : ∀ x ∈ PhysicalMeanDomain.slowDomain V, x.1 ≤ 0 → ∀ theta, |
| 676 | w n (x,theta) = 0 ∧ q n (x,theta) = 0 ∧ g n (x,theta) = 0) |
| 677 | (hzright : ∀ x ∈ PhysicalMeanDomain.slowDomain U, x.1 ≤ 0 → ∀ theta, |
| 678 | w m (x,theta) = 0 ∧ q m (x,theta) = 0 ∧ g m (x,theta) = 0) : |
| 679 | WaveOn (PhysicalMeanDomain.slowDomain V) (bandChartEquiv h n m k) |
| 680 | (bandVelocityScale h n m) (bandScale n m) w q g w q g n m := by |
| 681 | have he (x : Point) (hx : x ∈ PhysicalMeanDomain.slowDomain V) (theta : ℝ) : |
| 682 | (∀ i, w n (x,theta) i = bandVelocityScale h n m * w m (bandChartEquiv h n m k x,theta) i) ∧ |
| 683 | (q n (x,theta) = (bandVelocityScale h n m * bandVelocityScale h n m) * |
| 684 | q m (bandChartEquiv h n m k x,theta)) ∧ |
| 685 | (∀ i, g n (x,theta) i = (bandVelocityScale h n m * bandVelocityScale h n m * bandScale n m) * |
| 686 | g m (bandChartEquiv h n m k x,theta) i) := by |
| 687 | by_cases hr : 0 < x.1 |
| 688 | · exact ⟨H.velocity x ⟨hx,hr⟩ theta, H.pressure x ⟨hx,hr⟩ theta, H.gaussian x ⟨hx,hr⟩ theta⟩ |
| 689 | · have hx' : bandChartEquiv h n m k x ∈ PhysicalMeanDomain.slowDomain U := hmap hx |
| 690 | have hr' : (bandChartEquiv h n m k x).1 ≤ 0 := |
| 691 | mul_nonpos_of_nonneg_of_nonpos (bandScale_pos n m).le (le_of_not_gt hr) |
| 692 | have hleft := hzleft x hx (le_of_not_gt hr) theta |
| 693 | have hright := hzright _ hx' hr' theta |
| 694 | simp only [hleft.1, hright.1, hleft.2.1, hright.2.1, hleft.2.2, hright.2.2, |
| 695 | Pi.zero_apply, mul_zero, implies_true, and_self] |
| 696 | exact ⟨fun x hx theta => (he x hx theta).1, fun x hx theta => (he x hx theta).2.1, |
| 697 | fun x hx theta => (he x hx theta).2.2⟩ |
| 698 | |
| 699 | end NavierStokes.CycleStateCoherence |