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.ActualReferenceRebase |
| 2 | import NavierStokes.ActualParticularRealization |
| 3 | import NavierStokes.GaussianErrorNaturality |
| 4 | import NavierStokes.CycleStateCoherence |
| 5 | import NavierStokes.IntervalCopyTransport |
| 6 | import NavierStokes.ActualCopySliceRegularity |
| 7 | |
| 8 | /-! |
| 9 | # Coherence of the actual particular increment |
| 10 | |
| 11 | The source is the residual of the current state. Its reference value is |
| 12 | rebased to the native cover before solving. The identities below retain the |
| 13 | full auxiliary fibers and the differentiated copy cutoffs. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace NavierStokes.ActualParticularCoherence |
| 19 | |
| 20 | open Set Function Filter WeightedClasses CorrectionState HarmonicCalculus |
| 21 | open CommonCoverSolve TorusInverse PhysicalParticularWave |
| 22 | open CorrectionInitialization CorrectionInitialization.ActualPrimary |
| 23 | open scoped ContDiff Topology BigOperators |
| 24 | |
| 25 | |
| 26 | variable {B N0 : ℕ} |
| 27 | |
| 28 | abbrev Label := ActualParticularStageControls.Label |
| 29 | |
| 30 | /-- The unchanged current-state copy construction. -/ |
| 31 | noncomputable def copyData (x : CorrectionStep.CycleState (Label B N0)) |
| 32 | (l : Label B N0) (j : ℤ) : PeriodizedWaveBounds.CopyData WaveSpace Frequency := |
| 33 | (ActualParticularStageControls.parameters x l).copyData |
| 34 | (ActualParticularStageControls.assembly x l).context |
| 35 | (ActualParticularStageControls.assembly x l).state |
| 36 | (ActualParticularStageControls.assembly x l).carrierBlock |
| 37 | (ActualParticularStageControls.assembly x l).gaussianInput |
| 38 | (ActualParticularStageControls.assembly x l).aliasInput j |
| 39 | |
| 40 | noncomputable def corrected (x : CorrectionStep.CycleState (Label B N0)) |
| 41 | (l : Label B N0) (j : ℤ) : LinearWaveBounds.WaveCoefficients WaveSpace := |
| 42 | ActualParticularRealization.corrected (ActualParticularStageControls.assembly x l) |
| 43 | ActualParticularStageControls.associatedStrip h (ActualParticularStageControls.gap l) j |
| 44 | |
| 45 | noncomputable def cylinderParameter (z : Cylinder) : Parameter := (waveEquiv z).1.1 |
| 46 | |
| 47 | noncomputable def cylinderDomain (V : Set Plane) : Set Cylinder := |
| 48 | {z | (cylinderParameter z).2 ∈ V} |
| 49 | |
| 50 | theorem cylinderDomain_open {V : Set Plane} (hV : IsOpen V) : IsOpen (cylinderDomain V) := |
| 51 | hV.preimage waveEquiv.continuous.fst.fst.snd |
| 52 | |
| 53 | /-- The target operator is the literal common-cover graph at the target |
| 54 | band. This identification is independent of the current source. -/ |
| 55 | theorem targetChart (x : CorrectionStep.CycleState (Label B N0)) |
| 56 | (l : Label B N0) (n : ℕ) : |
| 57 | ActualParticularRealization.TargetChart (ActualParticularStageControls.assembly x l) |
| 58 | ActualParticularStageControls.associatedStrip h n (CommonWindow.index h n) := by |
| 59 | constructor |
| 60 | · rfl |
| 61 | · funext z |
| 62 | apply waveEquiv.injective |
| 63 | change (ActualParticularStageControls.directions (B := B)).radialField n (waveEquiv z) = _ |
| 64 | rw [ActualReferenceRebase.associatedDirections_radial, |
| 65 | ActualReferenceRebase.associatedContext_frame] |
| 66 | rfl |
| 67 | · rfl |
| 68 | · funext z |
| 69 | apply waveEquiv.injective |
| 70 | change (ActualParticularStageControls.directions (B := B)).axialField |
| 71 | (CorrectionStep.ParticularParameters.nativeStrip ActualParticularStageControls.associatedStrip) |
| 72 | n (waveEquiv z) = _ |
| 73 | rw [ActualReferenceRebase.associatedDirections_axial, |
| 74 | ActualReferenceRebase.associatedContext_frame] |
| 75 | rfl |
| 76 | |
| 77 | theorem corrected_amplitude_chart (x : CorrectionStep.CycleState (Label B N0)) |
| 78 | (l : Label B N0) (j : ℤ) (n : ℕ) : |
| 79 | (fun z => (corrected x l j).amplitude n (waveEquiv z)) = |
| 80 | CurlClassBounds.realizedCoefficient ((j : ℝ) * (x.coefficients.blocks l).frequency n) |
| 81 | PhysicalResidualBridge.ScaledGraph.radius |
| 82 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 83 | PhysicalResidualBridge.ScaledGraph.angular |
| 84 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 85 | (fun z => (ActualReferenceRebase.actualCoefficients x l j).phase n (waveEquiv z)) |
| 86 | (fun z => (ActualReferenceRebase.actualCoefficients x l j).amplitude n (waveEquiv z)) := by |
| 87 | have hp := ActualParticularRealization.realizedCoefficient_pull waveEquiv |
| 88 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) |
| 89 | ((ActualParticularStageControls.assembly x l).background.radius n) |
| 90 | ((ActualReferenceRebase.actualCoefficients x l j).phase n) |
| 91 | ((ActualParticularStageControls.assembly x l).directions.radialField n) |
| 92 | (fun _ => (ActualParticularStageControls.assembly x l).directions.angular) |
| 93 | ((ActualParticularStageControls.assembly x l).directions.axialField |
| 94 | (CorrectionStep.ParticularParameters.nativeStrip ActualParticularStageControls.associatedStrip) n) |
| 95 | ((ActualReferenceRebase.actualCoefficients x l j).amplitude n) |
| 96 | rw [(targetChart x l n).radius, (targetChart x l n).radial, |
| 97 | (targetChart x l n).angular, (targetChart x l n).axial] at hp |
| 98 | exact hp.symm |
| 99 | |
| 100 | /-- Local agreement of the two primitive inputs propagates through the |
| 101 | entire curl correction, including all cutoff derivatives. -/ |
| 102 | theorem corrected_eq_band_of_germs (x : CorrectionStep.CycleState (Label B N0)) |
| 103 | (l : Label B N0) (j : ℤ) (n : ℕ) (z : Cylinder) |
| 104 | (ha : (fun y => (ActualReferenceRebase.actualCoefficients x l j).amplitude n (waveEquiv y)) |
| 105 | =ᶠ[𝓝 z] bandRaw (ActualReferenceRebase.nativeAssembly x l) h (ChartScales.Q_pos n) |
| 106 | (ChartScales.Q_pos (BaseChartJets.cellBand l.2)) (ActualParticularStageControls.gap l n) |
| 107 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) j) |
| 108 | (hphi : (fun y => (ActualReferenceRebase.actualCoefficients x l j).phase n (waveEquiv y)) |
| 109 | =ᶠ[𝓝 z] bandPhase (ActualReferenceRebase.nativeAssembly x l) h (ChartScales.Q n) |
| 110 | (ChartScales.Q (BaseChartJets.cellBand l.2)) (ActualParticularStageControls.gap l n) |
| 111 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) j) : |
| 112 | vectorMode ((corrected x l j).frequency n) ((corrected x l j).phase n) |
| 113 | ((corrected x l j).amplitude n) (waveEquiv z) = |
| 114 | bandVelocity (ActualReferenceRebase.nativeAssembly x l) h (ChartScales.Q_pos n) |
| 115 | (ChartScales.Q_pos (BaseChartJets.cellBand l.2)) (CommonWindow.index h n) |
| 116 | (ActualParticularStageControls.gap l n) |
| 117 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) j z := by |
| 118 | have hg := ParticularWaveAssembly.realizedCoefficient_germ ha |
| 119 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) |
| 120 | PhysicalResidualBridge.ScaledGraph.radius |
| 121 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 122 | PhysicalResidualBridge.ScaledGraph.angular |
| 123 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 124 | (fun y => (ActualReferenceRebase.actualCoefficients x l j).phase n (waveEquiv y)) |
| 125 | have hq := ActualParticularRealization.realizedCoefficient_phase_germ hphi |
| 126 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) |
| 127 | PhysicalResidualBridge.ScaledGraph.radius |
| 128 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 129 | PhysicalResidualBridge.ScaledGraph.angular |
| 130 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 131 | (bandRaw (ActualReferenceRebase.nativeAssembly x l) h (ChartScales.Q_pos n) |
| 132 | (ChartScales.Q_pos (BaseChartJets.cellBand l.2)) (ActualParticularStageControls.gap l n) |
| 133 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) j) |
| 134 | have hv := congrFun (corrected_amplitude_chart x l j n) z |
| 135 | rw [(hg.trans hq).eq_of_nhds] at hv |
| 136 | funext i |
| 137 | change (corrected x l j).amplitude n (waveEquiv z) i * |
| 138 | carrier ((j : ℝ) * (x.coefficients.blocks l).frequency n) |
| 139 | ((ActualReferenceRebase.actualCoefficients x l j).phase n) (waveEquiv z) = _ |
| 140 | rw [hv] |
| 141 | exact congrArg₂ (· * ·) rfl (PhysicalCurlCovariance.carrier_eq_of_products |
| 142 | (congrArg (((j : ℝ) * (x.coefficients.blocks l).frequency n) * ·) hphi.eq_of_nhds)) |
| 143 | |
| 144 | /-- Forward cover order: the germ inputs are consequences of the current |
| 145 | state and coefficient identities, not assumptions about the solved wave. -/ |
| 146 | theorem corrected_forward (x : CorrectionStep.CycleState (Label B N0)) |
| 147 | (l : Label B N0) {V : Set Plane} (hV : IsOpen V) (htime : ∀ s ∈ V, 0 < s.1) |
| 148 | (n k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h (BaseChartJets.cellBand l.2)) |
| 149 | (HS : ActualReferenceRebase.StateComparison x V n (BaseChartJets.cellBand l.2) k) |
| 150 | (HB : ActualReferenceRebase.BlockComparison x l V n (BaseChartJets.cellBand l.2) k) |
| 151 | (j : ℤ) (hj : j ≠ 0) |
| 152 | (hn : (x.coefficients.blocks l).frequency n ≠ 0) |
| 153 | (hm : (x.coefficients.blocks l).frequency (BaseChartJets.cellBand l.2) ≠ 0) |
| 154 | (z : Cylinder) (hz : z ∈ cylinderDomain V) : |
| 155 | vectorMode ((corrected x l j).frequency n) ((corrected x l j).phase n) |
| 156 | ((corrected x l j).amplitude n) (waveEquiv z) = |
| 157 | bandVelocity (ActualReferenceRebase.nativeAssembly x l) h (ChartScales.Q_pos n) |
| 158 | (ChartScales.Q_pos (BaseChartJets.cellBand l.2)) (CommonWindow.index h n) |
| 159 | (ActualParticularStageControls.gap l n) |
| 160 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) j z := by |
| 161 | apply corrected_eq_band_of_germs |
| 162 | · filter_upwards [(cylinderDomain_open hV).mem_nhds hz] with y hy |
| 163 | exact ActualReferenceRebase.actualAmplitude_forward x l hV htime n k hi HS HB j |
| 164 | (cylinderParameter y) hy (waveEquiv y).1.2 (waveEquiv y).2 |
| 165 | · filter_upwards [(cylinderDomain_open hV).mem_nhds hz] with y hy |
| 166 | exact (ActualReferenceRebase.actualPhase_forward x l V n k hi HB j hj hn hm |
| 167 | (cylinderParameter y) hy (waveEquiv y).1.2 (waveEquiv y).2).symm |
| 168 | |
| 169 | /-! ## Composition of the actual primitive copy data |
| 170 | |
| 171 | These identities allow two current bands to be compared directly. In |
| 172 | particular, they do not require extending a current reference-band state |
| 173 | outside the slow overlap on which state coherence was proved. |
| 174 | -/ |
| 175 | |
| 176 | theorem ratioPower_comp {Q Qm Qr : ℝ} (hQm : 0 < Qm) (a : ℝ) : |
| 177 | ratioPower Q Qm a * ratioPower Qm Qr a = ratioPower Q Qr a := by |
| 178 | unfold ratioPower |
| 179 | exact div_mul_div_cancel₀ (Real.rpow_pos_of_pos hQm a).ne' |
| 180 | |
| 181 | theorem parameterChange_comp (h Q Qm Qr : ℝ) (hQm : 0 < Qm) (p : Parameter) : |
| 182 | parameterChange h Qm Qr (parameterChange h Q Qm p) = parameterChange h Q Qr p := by |
| 183 | ext <;> simp only [parameterChange, ← mul_assoc] |
| 184 | all_goals rw [mul_comm (ratioPower Qm Qr _), ratioPower_comp hQm] |
| 185 | |
| 186 | theorem normalWeight_comp {Q Qm Qr K Km Kr : ℝ} (hQm : 0 < Qm) (hKm : Km ≠ 0) : |
| 187 | normalWeight Q Qm K Km * normalWeight Qm Qr Km Kr = normalWeight Q Qr K Kr := by |
| 188 | by_cases hK : K = 0 |
| 189 | · simp [normalWeight, hK] |
| 190 | unfold normalWeight |
| 191 | calc |
| 192 | _ = ((Km / K) * (Kr / Km)) * |
| 193 | (ratioPower Q Qm (1/2) * ratioPower Qm Qr (1/2)) := by ring |
| 194 | _ = _ := by rw [ratioPower_comp hQm]; field_simp [hKm, hK] |
| 195 | |
| 196 | theorem nativeTimeMap_comp (r s : ℝ) (z : Plane) : |
| 197 | CopySolveCompatibility.nativeTimeMap 0 r (CopySolveCompatibility.nativeTimeMap 0 s z) = |
| 198 | CopySolveCompatibility.nativeTimeMap 0 (r*s) z := by |
| 199 | ext <;> simp [CopySolveCompatibility.nativeTimeMap, mul_assoc] |
| 200 | |
| 201 | theorem scaledBasis_comp (e : Plane ≃L[ℝ] Plane) (r s : ℝ) |
| 202 | (hr : r ≠ 0) (hs : s ≠ 0) : |
| 203 | CommonCoverClass.scaledBasis (CommonCoverClass.scaledBasis e r hr) s hs = |
| 204 | CommonCoverClass.scaledBasis e (r*s) (mul_ne_zero hr hs) := by |
| 205 | apply ContinuousLinearEquiv.ext |
| 206 | funext z |
| 207 | simp only [CommonCoverClass.scaledBasis_apply, mul_assoc] |
| 208 | |
| 209 | theorem transportGeometry_comp (g : Geometry) (k d : ℕ) (r s : ℝ) |
| 210 | (hr : r ≠ 0) (hs : s ≠ 0) : |
| 211 | CopySolveCompatibility.transportGeometry |
| 212 | (CopySolveCompatibility.transportGeometry g k 0 r hr) d 0 s hs = |
| 213 | CopySolveCompatibility.transportGeometry g (k+d) 0 (r*s) (mul_ne_zero hr hs) := by |
| 214 | simp only [CopySolveCompatibility.transportGeometry, CopySolveCompatibility.refineGeometry, |
| 215 | CopySolveCompatibility.timeGeometry, scaledBasis_comp, Nat.add_assoc] |
| 216 | simp |
| 217 | |
| 218 | theorem transportTangent_comp (t : TangentData Parameter ProblemStatement.Space) |
| 219 | (f g : Parameter → Parameter) (k d : ℕ) (r s a b v w : ℝ) : |
| 220 | ScaledTangentTransport.transportTangent |
| 221 | (ScaledTangentTransport.transportTangent t f k 0 r a v) g d 0 s b w = |
| 222 | ScaledTangentTransport.transportTangent t (fun p => f (g p)) (k+d) 0 |
| 223 | (r*s) (a*b) (v*w) := by |
| 224 | unfold ScaledTangentTransport.transportTangent |
| 225 | congr 1 <;> funext z <;> |
| 226 | simp [nativeTimeMap_comp, CopySolveCompatibility.coverPower_add, |
| 227 | smul_smul, mul_assoc, mul_left_comm, mul_comm] |
| 228 | |
| 229 | theorem gap_comp (l : Label B N0) (n m k : ℕ) |
| 230 | (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 231 | (hm : CommonWindow.index h m ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2)) : |
| 232 | ActualParticularStageControls.gap l m + k = ActualParticularStageControls.gap l n := by |
| 233 | unfold ActualParticularStageControls.gap |
| 234 | omega |
| 235 | |
| 236 | theorem parameters_geometry (x : CorrectionStep.CycleState (Label B N0)) |
| 237 | (l : Label B N0) (n m k : ℕ) |
| 238 | (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 239 | (hm : CommonWindow.index h m ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2)) : |
| 240 | CopySolveCompatibility.transportGeometry ((ActualParticularStageControls.parameters x l).geometry m) |
| 241 | k 0 (clockWeight h (ChartScales.Q n) (ChartScales.Q m)) |
| 242 | (ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) _).ne' = |
| 243 | (ActualParticularStageControls.parameters x l).geometry n := by |
| 244 | change CopySolveCompatibility.transportGeometry |
| 245 | (CopySolveCompatibility.transportGeometry (ActualParticularStageControls.reference l).geometry |
| 246 | (ActualParticularStageControls.gap l m) 0 |
| 247 | (clockWeight h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2))) _) |
| 248 | k 0 (clockWeight h (ChartScales.Q n) (ChartScales.Q m)) _ = _ |
| 249 | erw [transportGeometry_comp, gap_comp l n m k hi hm] |
| 250 | have hr : clockWeight h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2)) * |
| 251 | clockWeight h (ChartScales.Q n) (ChartScales.Q m) = |
| 252 | clockWeight h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) := by |
| 253 | rw [mul_comm] |
| 254 | exact ratioPower_comp (ChartScales.Q_pos m) _ |
| 255 | simp only [hr] |
| 256 | rfl |
| 257 | |
| 258 | theorem parameters_length (x : CorrectionStep.CycleState (Label B N0)) |
| 259 | (l : Label B N0) (n m : ℕ) : |
| 260 | (ActualParticularStageControls.parameters x l).length m / |
| 261 | clockWeight h (ChartScales.Q n) (ChartScales.Q m) = |
| 262 | (ActualParticularStageControls.parameters x l).length n := by |
| 263 | change (_ / clockWeight h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2))) / |
| 264 | clockWeight h (ChartScales.Q n) (ChartScales.Q m) = _ |
| 265 | rw [div_div, mul_comm] |
| 266 | change _ / (ratioPower _ _ _ * ratioPower _ _ _) = _ |
| 267 | rw [ratioPower_comp (ChartScales.Q_pos m)] |
| 268 | rfl |
| 269 | |
| 270 | theorem parameters_cutoff (x : CorrectionStep.CycleState (Label B N0)) |
| 271 | (l : Label B N0) (n m : ℕ) : |
| 272 | (ActualParticularStageControls.parameters x l).cutoff m ∘ |
| 273 | CopySolveCompatibility.nativeTimeMap 0 (clockWeight h (ChartScales.Q n) (ChartScales.Q m)) = |
| 274 | (ActualParticularStageControls.parameters x l).cutoff n := by |
| 275 | funext z |
| 276 | change (ActualParticularStageControls.reference l).cutoff |
| 277 | (CopySolveCompatibility.nativeTimeMap 0 |
| 278 | (clockWeight h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 279 | (CopySolveCompatibility.nativeTimeMap 0 (clockWeight h (ChartScales.Q n) (ChartScales.Q m)) z)) = _ |
| 280 | rw [nativeTimeMap_comp, mul_comm] |
| 281 | change (ActualParticularStageControls.reference l).cutoff |
| 282 | (CopySolveCompatibility.nativeTimeMap 0 (ratioPower _ _ _ * ratioPower _ _ _) z) = _ |
| 283 | rw [ratioPower_comp (ChartScales.Q_pos m)] |
| 284 | rfl |
| 285 | |
| 286 | theorem parameters_tangent (x : CorrectionStep.CycleState (Label B N0)) |
| 287 | (l : Label B N0) (j : ℤ) (n m k : ℕ) |
| 288 | (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 289 | (hm : CommonWindow.index h m ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2)) |
| 290 | (hKm : (j : ℝ) * (x.coefficients.blocks l).frequency m ≠ 0) : |
| 291 | ScaledTangentTransport.transportTangent ((ActualParticularStageControls.parameters x l).tangent j m) |
| 292 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m)) k 0 |
| 293 | (clockWeight h (ChartScales.Q n) (ChartScales.Q m)) |
| 294 | (velocityWeight h (ChartScales.Q n) (ChartScales.Q m)) |
| 295 | (normalWeight (ChartScales.Q n) (ChartScales.Q m) |
| 296 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) |
| 297 | ((j : ℝ) * (x.coefficients.blocks l).frequency m)) = |
| 298 | (ActualParticularStageControls.parameters x l).tangent j n := by |
| 299 | change ScaledTangentTransport.transportTangent |
| 300 | (ScaledTangentTransport.transportTangent (ActualParticularStageControls.reference l |>.tangent j) |
| 301 | (parameterChange h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 302 | (ActualParticularStageControls.gap l m) 0 |
| 303 | (clockWeight h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 304 | (velocityWeight h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 305 | (normalWeight (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2)) |
| 306 | ((j : ℝ) * (x.coefficients.blocks l).frequency m) |
| 307 | ((j : ℝ) * (x.coefficients.blocks l).frequency (BaseChartJets.cellBand l.2)))) _ _ _ _ _ _ = _ |
| 308 | rw [transportTangent_comp, gap_comp l n m k hi hm] |
| 309 | have hp := funext (parameterChange_comp h (ChartScales.Q n) (ChartScales.Q m) |
| 310 | (ChartScales.Q (BaseChartJets.cellBand l.2)) (ChartScales.Q_pos m)) |
| 311 | rw [hp] |
| 312 | have hr : clockWeight h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2)) * |
| 313 | clockWeight h (ChartScales.Q n) (ChartScales.Q m) = |
| 314 | clockWeight h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) := by |
| 315 | rw [mul_comm]; exact ratioPower_comp (ChartScales.Q_pos m) _ |
| 316 | have ha : velocityWeight h (ChartScales.Q m) (ChartScales.Q (BaseChartJets.cellBand l.2)) * |
| 317 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m) = |
| 318 | velocityWeight h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) := by |
| 319 | rw [mul_comm]; exact ratioPower_comp (ChartScales.Q_pos m) _ |
| 320 | rw [hr, ha, mul_comm (normalWeight _ _ _ _), normalWeight_comp (ChartScales.Q_pos m) hKm] |
| 321 | rfl |
| 322 | |
| 323 | /-- Actual source transport on the two-band overlap. All fast variables |
| 324 | remain free, and all excluded residual terms are retained. -/ |
| 325 | theorem source_band (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 326 | {V : Set Plane} (hV : IsOpen V) (htime : ∀ s ∈ V, 0 < s.1) |
| 327 | (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 328 | (HS : ActualReferenceRebase.StateComparison x V n m k) |
| 329 | (HB : ActualReferenceRebase.BlockComparison x l V n m k) |
| 330 | (j : ℤ) (p : Parameter) (hp : p.2 ∈ V) (Y : Plane) : |
| 331 | ParticularWaveAssembly.residualSource (ActualParticularStageControls.assembly x l).context |
| 332 | (ActualParticularStageControls.assembly x l).state (ActualParticularStageControls.assembly x l).carrierBlock |
| 333 | (ActualParticularStageControls.assembly x l).gaussianInput |
| 334 | (ActualParticularStageControls.assembly x l).aliasInput j n (p,Y) = |
| 335 | ScaledTangentTransport.transportSource |
| 336 | (ParticularWaveAssembly.residualSource (ActualParticularStageControls.assembly x l).context |
| 337 | (ActualParticularStageControls.assembly x l).state (ActualParticularStageControls.assembly x l).carrierBlock |
| 338 | (ActualParticularStageControls.assembly x l).gaussianInput |
| 339 | (ActualParticularStageControls.assembly x l).aliasInput j m) |
| 340 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m)) k |
| 341 | (clockWeight h (ChartScales.Q n) (ChartScales.Q m)) |
| 342 | (velocityWeight h (ChartScales.Q n) (ChartScales.Q m)) (p,Y) := by |
| 343 | have he := HS.source (ActualInitialCoherence.context_band B htime n m k hi) |
| 344 | (PhysicalMeanDomain.slowDomain_open hV) (GaugeStateCoherence.bandScale_pos n m).ne' |
| 345 | HB j (x := CorrectionStep.cycleAssoc.symm (p,Y)) hp |
| 346 | rw [ActualReferenceRebase.state_sourceWeight] at he |
| 347 | rw [ActualReferenceRebase.assembly_source] |
| 348 | change _ = (clockWeight _ _ _ * velocityWeight _ _ _) • _ |
| 349 | rw [clock_mul_velocity (ChartScales.Q_pos n) (ChartScales.Q_pos m), |
| 350 | ActualReferenceRebase.assembly_source] |
| 351 | simpa only [← ActualReferenceRebase.associatedChart_stateChart, |
| 352 | PhysicalResidualNaturality.associatedChart_apply] using he |
| 353 | |
| 354 | /-! ## The global linear map and its actual spatial directions -/ |
| 355 | |
| 356 | noncomputable def absoluteMap (n : ℕ) : WaveSpace ≃L[ℝ] ActualPrimaryCoherence.Absolute := |
| 357 | ActualParticularStageControls.nativeToFull.toContinuousLinearEquiv.trans |
| 358 | (ActualPrimaryCoherence.absoluteChart n) |
| 359 | |
| 360 | noncomputable def bandMap (n m : ℕ) : WaveSpace ≃L[ℝ] WaveSpace := |
| 361 | (absoluteMap n).trans (absoluteMap m).symm |
| 362 | |
| 363 | theorem absoluteMap_band (n m : ℕ) (z : WaveSpace) : |
| 364 | absoluteMap m (bandMap n m z) = absoluteMap n z := |
| 365 | (absoluteMap m).apply_symm_apply _ |
| 366 | |
| 367 | theorem bandMap_apply (n m k : ℕ) |
| 368 | (hi : CommonWindow.index h n + k = CommonWindow.index h m) (z : WaveSpace) : |
| 369 | bandMap n m z = ((parameterChange h (ChartScales.Q n) (ChartScales.Q m) z.1.1,z.1.2), |
| 370 | coverPower k z.2) := by |
| 371 | apply (absoluteMap m).injective |
| 372 | rw [absoluteMap_band] |
| 373 | change (ActualPrimaryCoherence.absoluteChart n) (ActualParticularStageControls.nativeToFull z) = |
| 374 | (ActualPrimaryCoherence.absoluteChart m) _ |
| 375 | rw [ActualPrimaryCoherence.absoluteChart_apply, ActualPrimaryCoherence.absoluteChart_apply] |
| 376 | apply Prod.ext |
| 377 | · symm |
| 378 | change toAbsolute m (CorrectionStep.cycleAssoc.symm |
| 379 | (PhysicalResidualNaturality.associatedChart h (ChartScales.Q_pos n) (ChartScales.Q_pos m) |
| 380 | k (z.1.1,z.2))) = _ |
| 381 | rw [ActualReferenceRebase.associatedChart_stateChart] |
| 382 | exact ActualPrimaryCoherence.toAbsolute_bandChart n m k hi _ |
| 383 | · rfl |
| 384 | |
| 385 | theorem absoluteMap_radius (n : ℕ) (z : WaveSpace) : |
| 386 | ActualPrimaryCoherence.absoluteRadius (absoluteMap n z) = |
| 387 | Real.sqrt (ChartScales.Q n) * z.1.1.1 := |
| 388 | ActualPrimaryCoherence.absoluteChart_radius n (ActualParticularStageControls.nativeToFull z) |
| 389 | |
| 390 | theorem absoluteMap_radial (B n : ℕ) (z : WaveSpace) : |
| 391 | absoluteMap n ((ActualParticularStageControls.directions (B := B)).radialField n z) = |
| 392 | Real.sqrt (ChartScales.Q n) • ActualPrimaryCoherence.absoluteRadial (absoluteMap n z) := by |
| 393 | simp only [absoluteMap, ActualParticularStageControls.directions, |
| 394 | ParticularWaveBounds.reindex_radialField, ParticularWaveBounds.reindexVector, |
| 395 | ContinuousLinearEquiv.trans_apply, LinearIsometryEquiv.coe_toContinuousLinearEquiv, |
| 396 | LinearIsometryEquiv.apply_symm_apply] |
| 397 | exact ActualPrimaryCoherence.absoluteChart_radial B n _ |
| 398 | |
| 399 | theorem absoluteMap_fast (B n : ℕ) (z : WaveSpace) : |
| 400 | absoluteMap n ((ActualParticularStageControls.directions (B := B)).fastField n z) = |
| 401 | ChartScales.Q n ^ (1+h) • ActualPrimaryCoherence.absoluteFast (absoluteMap n z) := by |
| 402 | simp only [absoluteMap, ActualParticularStageControls.directions, |
| 403 | ParticularWaveBounds.reindex_fastField, ParticularWaveBounds.reindexVector, |
| 404 | ContinuousLinearEquiv.trans_apply, LinearIsometryEquiv.coe_toContinuousLinearEquiv, |
| 405 | LinearIsometryEquiv.apply_symm_apply] |
| 406 | exact ActualPrimaryCoherence.absoluteChart_fast B n _ |
| 407 | |
| 408 | theorem between_direction {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 409 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 410 | (e f : E ≃L[ℝ] F) (a b : ℝ) (hb : b ≠ 0) (U V : E → E) (W : F → F) |
| 411 | (he : ∀ z, e (U z) = a • W (e z)) (hf : ∀ z, f (V z) = b • W (f z)) (z : E) : |
| 412 | (e.trans f.symm) (U z) = (a/b) • V ((e.trans f.symm) z) := by |
| 413 | apply f.injective |
| 414 | simp only [ContinuousLinearEquiv.trans_apply, ContinuousLinearEquiv.apply_symm_apply, |
| 415 | map_smul, hf, he, smul_smul, div_mul_cancel₀ _ hb] |
| 416 | |
| 417 | theorem bandMap_fast (B n m : ℕ) (z : WaveSpace) : |
| 418 | bandMap n m ((ActualParticularStageControls.directions (B := B)).fastField n z) = |
| 419 | clockWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 420 | (ActualParticularStageControls.directions (B := B)).fastField m (bandMap n m z) := by |
| 421 | have he := between_direction (absoluteMap n) (absoluteMap m) _ _ |
| 422 | (Real.rpow_pos_of_pos (ChartScales.Q_pos m) (1+h)).ne' _ _ _ |
| 423 | (absoluteMap_fast B n) (absoluteMap_fast B m) z |
| 424 | change _ = (ChartScales.Q n ^ (1+h) / ChartScales.Q m ^ (1+h)) • _ at he |
| 425 | simp only [clockWeight, ratioPower, CoordinateAlgebra.A, |
| 426 | show (1/2 : ℝ) + h + 1/2 = 1+h by ring] at he ⊢ |
| 427 | exact he |
| 428 | |
| 429 | theorem absoluteMap_axial (B n : ℕ) (z : WaveSpace) : |
| 430 | absoluteMap n ((ActualParticularStageControls.directions (B := B)).axialField |
| 431 | (CorrectionStep.ParticularParameters.nativeStrip ActualParticularStageControls.associatedStrip) n z) = |
| 432 | Real.sqrt (ChartScales.Q n) • ActualPrimaryCoherence.absoluteAxial (absoluteMap n z) := by |
| 433 | change (ActualPrimaryCoherence.absoluteChart n) |
| 434 | (ActualParticularStageControls.nativeToFull |
| 435 | (ActualParticularStageControls.nativeToFull.symm |
| 436 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 437 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal standardRegion)) n |
| 438 | (ActualParticularStageControls.nativeToFull z)))) = _ |
| 439 | rw [LinearIsometryEquiv.apply_symm_apply] |
| 440 | exact ActualPrimaryCoherence.absoluteChart_axial B n standardRegion _ |
| 441 | |
| 442 | theorem absoluteMap_angular (B n : ℕ) (z : WaveSpace) : |
| 443 | absoluteMap n (ActualParticularStageControls.directions (B := B)).angular = |
| 444 | ActualPrimaryCoherence.absoluteAngular (absoluteMap n z) := by |
| 445 | change (ActualPrimaryCoherence.absoluteChart n) |
| 446 | (ActualParticularStageControls.nativeToFull |
| 447 | (ActualParticularStageControls.nativeToFull.symm |
| 448 | (PrimaryResidualClass.directions (commonContext B)).angular)) = _ |
| 449 | rw [LinearIsometryEquiv.apply_symm_apply] |
| 450 | exact ActualPrimaryCoherence.absoluteChart_angular B n _ |
| 451 | |
| 452 | theorem bandMap_radial (B n m : ℕ) (z : WaveSpace) : |
| 453 | bandMap n m ((ActualParticularStageControls.directions (B := B)).radialField n z) = |
| 454 | ratioPower (ChartScales.Q n) (ChartScales.Q m) (1/2) • |
| 455 | (ActualParticularStageControls.directions (B := B)).radialField m (bandMap n m z) := by |
| 456 | have he := between_direction (absoluteMap n) (absoluteMap m) _ _ |
| 457 | (Real.sqrt_pos.mpr (ChartScales.Q_pos m)).ne' _ _ _ |
| 458 | (absoluteMap_radial B n) (absoluteMap_radial B m) z |
| 459 | simp only [Real.sqrt_eq_rpow, ratioPower] at he ⊢ |
| 460 | exact he |
| 461 | |
| 462 | theorem bandMap_axial (B n m : ℕ) (z : WaveSpace) : |
| 463 | bandMap n m ((ActualParticularStageControls.directions (B := B)).axialField |
| 464 | (CorrectionStep.ParticularParameters.nativeStrip ActualParticularStageControls.associatedStrip) n z) = |
| 465 | ratioPower (ChartScales.Q n) (ChartScales.Q m) (1/2) • |
| 466 | (ActualParticularStageControls.directions (B := B)).axialField |
| 467 | (CorrectionStep.ParticularParameters.nativeStrip ActualParticularStageControls.associatedStrip) |
| 468 | m (bandMap n m z) := by |
| 469 | have he := between_direction (absoluteMap n) (absoluteMap m) _ _ |
| 470 | (Real.sqrt_pos.mpr (ChartScales.Q_pos m)).ne' _ _ _ |
| 471 | (absoluteMap_axial B n) (absoluteMap_axial B m) z |
| 472 | simp only [Real.sqrt_eq_rpow, ratioPower] at he ⊢ |
| 473 | exact he |
| 474 | |
| 475 | theorem bandMap_angular (B n m : ℕ) (z : WaveSpace) : |
| 476 | bandMap n m (ActualParticularStageControls.directions (B := B)).angular = |
| 477 | (ActualParticularStageControls.directions (B := B)).angular := by |
| 478 | have he := between_direction (absoluteMap n) (absoluteMap m) 1 1 one_ne_zero |
| 479 | (fun _ => (ActualParticularStageControls.directions (B := B)).angular) |
| 480 | (fun _ => (ActualParticularStageControls.directions (B := B)).angular) |
| 481 | ActualPrimaryCoherence.absoluteAngular |
| 482 | (by simpa only [one_smul] using absoluteMap_angular B n) |
| 483 | (by simpa only [one_smul] using absoluteMap_angular B m) z |
| 484 | simp only [div_self one_ne_zero, one_smul] at he |
| 485 | exact he |
| 486 | |
| 487 | theorem bandMap_radius (n m : ℕ) (z : WaveSpace) : |
| 488 | (bandMap n m z).1.1.1 = |
| 489 | ratioPower (ChartScales.Q n) (ChartScales.Q m) (1/2) * z.1.1.1 := by |
| 490 | have he := absoluteMap_radius m (bandMap n m z) |
| 491 | rw [absoluteMap_band, absoluteMap_radius] at he |
| 492 | have hm := (Real.sqrt_pos.mpr (ChartScales.Q_pos m)).ne' |
| 493 | calc |
| 494 | _ = (Real.sqrt (ChartScales.Q n) * z.1.1.1) / Real.sqrt (ChartScales.Q m) := |
| 495 | (eq_div_iff hm).2 (by simpa only [mul_comm] using he.symm) |
| 496 | _ = _ := by |
| 497 | unfold ratioPower |
| 498 | rw [← Real.sqrt_eq_rpow, ← Real.sqrt_eq_rpow] |
| 499 | ring |
| 500 | |
| 501 | theorem reference_cutoff_smooth (l : Label B N0) : |
| 502 | ContDiff ℝ ∞ (ActualParticularStageControls.reference l).cutoff := by |
| 503 | change ContDiff ℝ ∞ (fun z : Plane => |
| 504 | (clockWindow l.2).cutoff z * GaussianTailFlat.slotCutoff _ z.2) |
| 505 | exact (clockWindow l.2).cutoff_contDiff.mul |
| 506 | ((GaussianTailFlat.slotCutoff_contDiff _).comp contDiff_snd) |
| 507 | |
| 508 | theorem reference_cutoff_support (l : Label B N0) : |
| 509 | support (ActualParticularStageControls.reference l).cutoff ⊆ |
| 510 | univ ×ˢ Icc 0 (ActualParticularStageControls.reference l).length := by |
| 511 | classical |
| 512 | intro z hz |
| 513 | refine ⟨mem_univ _, ?_⟩ |
| 514 | have hL := (ActualParticularStageControls.reference l).length_pos |
| 515 | have hs : GaussianTailFlat.slotCutoff (ActualParticularStageControls.reference l).length z.2 ≠ 0 := by |
| 516 | intro he |
| 517 | apply hz |
| 518 | change (clockWindow l.2).cutoff z * GaussianTailFlat.slotCutoff _ z.2 = 0 |
| 519 | exact (congrArg ((clockWindow l.2).cutoff z * ·) he).trans (mul_zero _) |
| 520 | constructor |
| 521 | · by_contra hlt |
| 522 | apply hs |
| 523 | apply GaussianTailFlat.slotCutoff_zero hL |
| 524 | rw [abs_of_neg (by linarith : z.2 - (ActualParticularStageControls.reference l).length/2 < 0)] |
| 525 | linarith |
| 526 | · by_contra hgt |
| 527 | apply hs |
| 528 | apply GaussianTailFlat.slotCutoff_zero hL |
| 529 | rw [abs_of_pos (by linarith : 0 < z.2 - (ActualParticularStageControls.reference l).length/2)] |
| 530 | linarith |
| 531 | |
| 532 | theorem parameter_cutoff_smooth (x : CorrectionStep.CycleState (Label B N0)) |
| 533 | (l : Label B N0) (n : ℕ) : |
| 534 | ContDiff ℝ ∞ ((ActualParticularStageControls.parameters x l).cutoff n) := by |
| 535 | apply (reference_cutoff_smooth l).comp |
| 536 | exact contDiff_fst.prodMk (contDiff_const.add (contDiff_const.mul contDiff_snd)) |
| 537 | |
| 538 | theorem parameter_cutoff_support (x : CorrectionStep.CycleState (Label B N0)) |
| 539 | (l : Label B N0) (n : ℕ) : |
| 540 | support ((ActualParticularStageControls.parameters x l).cutoff n) ⊆ |
| 541 | univ ×ˢ Icc 0 ((ActualParticularStageControls.parameters x l).length n) := by |
| 542 | intro z hz |
| 543 | have hb := (reference_cutoff_support l hz).2 |
| 544 | have hr : 0 < clockWeight h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) := |
| 545 | ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos (BaseChartJets.cellBand l.2)) _ |
| 546 | change 0 ≤ 0 + clockWeight h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) * z.2 ∧ |
| 547 | 0 + clockWeight h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) * z.2 ≤ _ at hb |
| 548 | refine ⟨mem_univ _, ?_, ?_⟩ |
| 549 | · exact nonneg_of_mul_nonneg_right (by simpa using hb.1) hr |
| 550 | · apply (le_div_iff₀ hr).2 |
| 551 | have hh := hb.2 |
| 552 | simp only [zero_add, mul_comm] at hh ⊢ |
| 553 | exact hh |
| 554 | |
| 555 | noncomputable def source (x : CorrectionStep.CycleState (Label B N0)) |
| 556 | (l : Label B N0) (j : ℤ) (n : ℕ) : Parameter × Plane → ComplexVector := |
| 557 | ParticularWaveAssembly.residualSource (ActualParticularStageControls.assembly x l).context |
| 558 | (ActualParticularStageControls.assembly x l).state (ActualParticularStageControls.assembly x l).carrierBlock |
| 559 | (ActualParticularStageControls.assembly x l).gaussianInput |
| 560 | (ActualParticularStageControls.assembly x l).aliasInput j n |
| 561 | |
| 562 | /-- Only finite path continuity of the actual input equation is required. |
| 563 | There is no continuation in the clock variable in this record. -/ |
| 564 | structure PathRegular (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 565 | (j : ℤ) (n : ℕ) (p : Parameter) (Y : Plane) (copy : Frequency) : Prop where |
| 566 | coefficient : Continuous (fun s : Icc 0 ((ActualParticularStageControls.parameters x l).length n) => |
| 567 | ((ActualParticularStageControls.parameters x l).tangent j n).linearData.coefficientAlong |
| 568 | ((ActualParticularStageControls.parameters x l).geometry n) copy ((p,Y),s)) |
| 569 | realForcing : Continuous (fun s : Icc 0 ((ActualParticularStageControls.parameters x l).length n) => |
| 570 | (ParticularWaveBounds.realData ((ActualParticularStageControls.parameters x l).tangent j n) |
| 571 | (source x l j n)).linearData.forcingAlong |
| 572 | ((ActualParticularStageControls.parameters x l).geometry n) copy ((p,Y),s)) |
| 573 | imagForcing : Continuous (fun s : Icc 0 ((ActualParticularStageControls.parameters x l).length n) => |
| 574 | (ParticularWaveBounds.imagData ((ActualParticularStageControls.parameters x l).tangent j n) |
| 575 | (source x l j n)).linearData.forcingAlong |
| 576 | ((ActualParticularStageControls.parameters x l).geometry n) copy ((p,Y),s)) |
| 577 | |
| 578 | section CopyComparison |
| 579 | |
| 580 | variable (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 581 | {V : Set Plane} (hV : IsOpen V) (htime : ∀ s ∈ V, 0 < s.1) |
| 582 | (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 583 | (hm : CommonWindow.index h m ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2)) |
| 584 | (HS : ActualReferenceRebase.StateComparison x V n m k) |
| 585 | (HB : ActualReferenceRebase.BlockComparison x l V n m k) |
| 586 | (j : ℤ) (hKn : (j : ℝ) * (x.coefficients.blocks l).frequency n ≠ 0) |
| 587 | (hKm : (j : ℝ) * (x.coefficients.blocks l).frequency m ≠ 0) |
| 588 | (p : Parameter) (hp : p.2 ∈ V) (Y : Plane) |
| 589 | |
| 590 | include hV htime hi hm HS HB hKn hKm hp in |
| 591 | theorem copy_amplitude_band (copy : Frequency) |
| 592 | (H : PathRegular x l j m (parameterChange h (ChartScales.Q n) (ChartScales.Q m) p) |
| 593 | (coverPower k Y) copy) |
| 594 | (hslot : (((ActualParticularStageControls.parameters x l).geometry n).coordinates copy Y).2 ∈ |
| 595 | Icc 0 ((ActualParticularStageControls.parameters x l).length n)) : |
| 596 | ParticularWaveBounds.complexCopyVelocity ((ActualParticularStageControls.parameters x l).tangent j n) |
| 597 | (source x l j n) ((ActualParticularStageControls.parameters x l).geometry n) |
| 598 | ((ActualParticularStageControls.parameters x l).length_pos n).le copy (p,Y) = |
| 599 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 600 | ParticularWaveBounds.complexCopyVelocity ((ActualParticularStageControls.parameters x l).tangent j m) |
| 601 | (source x l j m) ((ActualParticularStageControls.parameters x l).geometry m) |
| 602 | ((ActualParticularStageControls.parameters x l).length_pos m).le copy |
| 603 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) p,coverPower k Y) := by |
| 604 | let r := clockWeight h (ChartScales.Q n) (ChartScales.Q m) |
| 605 | let c := velocityWeight h (ChartScales.Q n) (ChartScales.Q m) |
| 606 | let s := normalWeight (ChartScales.Q n) (ChartScales.Q m) |
| 607 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) ((j : ℝ) * (x.coefficients.blocks l).frequency m) |
| 608 | have hr : 0 < r := ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) _ |
| 609 | have hsn : s ≠ 0 := normalWeight_ne (ChartScales.Q_pos n) (ChartScales.Q_pos m) hKn hKm |
| 610 | have hz : ((CopySolveCompatibility.transportGeometry |
| 611 | ((ActualParticularStageControls.parameters x l).geometry m) k 0 r hr.ne').coordinates copy Y).2 ∈ |
| 612 | Icc 0 ((ActualParticularStageControls.parameters x l).length m / r) := by |
| 613 | simpa only [r, parameters_geometry x l n m k hi hm, parameters_length x l n m] using hslot |
| 614 | have he := IntervalCopyTransport.complexCopyVelocity_zeroEntry |
| 615 | ((ActualParticularStageControls.parameters x l).tangent j m) (source x l j m) |
| 616 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m)) |
| 617 | ((ActualParticularStageControls.parameters x l).geometry m) k |
| 618 | ((ActualParticularStageControls.parameters x l).length m) r c s |
| 619 | ((ActualParticularStageControls.parameters x l).length_pos m) hr hsn p copy Y |
| 620 | H.coefficient H.realForcing H.imagForcing hz |
| 621 | have hs := ActualReferenceRebase.copyVelocity_source_congr |
| 622 | ((ActualParticularStageControls.parameters x l).tangent j n) (source x l j n) |
| 623 | (ScaledTangentTransport.transportSource (source x l j m) |
| 624 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m)) k r c) |
| 625 | ((ActualParticularStageControls.parameters x l).geometry n) |
| 626 | ((ActualParticularStageControls.parameters x l).length_pos n).le p |
| 627 | (source_band x l hV htime n m k hi HS HB j p hp) copy Y |
| 628 | apply hs.trans |
| 629 | dsimp only [r, c, s] at he |
| 630 | simp only [parameters_tangent x l j n m k hi hm hKm, |
| 631 | parameters_geometry x l n m k hi hm] at he |
| 632 | refine Eq.trans ?_ he |
| 633 | exact GaussianErrorNaturality.interval_congr |
| 634 | (fun a b hab => ParticularWaveBounds.complexCopyVelocity _ _ _ hab copy (p,Y)) |
| 635 | _ _ rfl (parameters_length x l n m).symm |
| 636 | |
| 637 | include hV htime hi hm HS HB hKn hKm hp in |
| 638 | theorem common_amplitude_band |
| 639 | (H : ∀ copy, PathRegular x l j m (parameterChange h (ChartScales.Q n) (ChartScales.Q m) p) |
| 640 | (coverPower k Y) copy) : |
| 641 | ParticularWaveBounds.commonVelocity ((ActualParticularStageControls.parameters x l).tangent j n) |
| 642 | (source x l j n) ((ActualParticularStageControls.parameters x l).geometry n) |
| 643 | ((ActualParticularStageControls.parameters x l).length_pos n).le |
| 644 | ((ActualParticularStageControls.parameters x l).cutoff n) (p,Y) = |
| 645 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 646 | ParticularWaveBounds.commonVelocity ((ActualParticularStageControls.parameters x l).tangent j m) |
| 647 | (source x l j m) ((ActualParticularStageControls.parameters x l).geometry m) |
| 648 | ((ActualParticularStageControls.parameters x l).length_pos m).le |
| 649 | ((ActualParticularStageControls.parameters x l).cutoff m) |
| 650 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) p,coverPower k Y) := by |
| 651 | let r := clockWeight h (ChartScales.Q n) (ChartScales.Q m) |
| 652 | let c := velocityWeight h (ChartScales.Q n) (ChartScales.Q m) |
| 653 | let s := normalWeight (ChartScales.Q n) (ChartScales.Q m) |
| 654 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) ((j : ℝ) * (x.coefficients.blocks l).frequency m) |
| 655 | have hr : 0 < r := ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) _ |
| 656 | have hsn : s ≠ 0 := normalWeight_ne (ChartScales.Q_pos n) (ChartScales.Q_pos m) hKn hKm |
| 657 | have he := IntervalCopyTransport.commonVelocity_zeroEntry |
| 658 | ((ActualParticularStageControls.parameters x l).tangent j m) (source x l j m) |
| 659 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m)) |
| 660 | ((ActualParticularStageControls.parameters x l).geometry m) k |
| 661 | ((ActualParticularStageControls.parameters x l).length m) r c s |
| 662 | ((ActualParticularStageControls.parameters x l).length_pos m) hr hsn |
| 663 | ((ActualParticularStageControls.parameters x l).cutoff m) (parameter_cutoff_support x l m) p Y |
| 664 | (fun copy _ => (H copy).coefficient) (fun copy _ => (H copy).realForcing) |
| 665 | (fun copy _ => (H copy).imagForcing) |
| 666 | have hs := ActualReferenceRebase.commonVelocity_source_congr |
| 667 | ((ActualParticularStageControls.parameters x l).tangent j n) (source x l j n) |
| 668 | (ScaledTangentTransport.transportSource (source x l j m) |
| 669 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m)) k r c) |
| 670 | ((ActualParticularStageControls.parameters x l).geometry n) |
| 671 | ((ActualParticularStageControls.parameters x l).length_pos n).le |
| 672 | ((ActualParticularStageControls.parameters x l).cutoff n) p |
| 673 | (source_band x l hV htime n m k hi HS HB j p hp) Y |
| 674 | apply hs.trans |
| 675 | dsimp only [r, c, s] at he |
| 676 | simp only [parameters_tangent x l j n m k hi hm hKm, |
| 677 | parameters_geometry x l n m k hi hm, parameters_cutoff x l n m] at he |
| 678 | refine Eq.trans ?_ he |
| 679 | exact GaussianErrorNaturality.interval_congr |
| 680 | (fun a b hab => ParticularWaveBounds.commonVelocity _ _ _ hab _ (p,Y)) |
| 681 | _ _ rfl (parameters_length x l n m).symm |
| 682 | |
| 683 | include hV htime hi hm HS HB hKn hKm hp in |
| 684 | theorem common_pressure_band |
| 685 | (H : ∀ copy, PathRegular x l j m (parameterChange h (ChartScales.Q n) (ChartScales.Q m) p) |
| 686 | (coverPower k Y) copy) : |
| 687 | ParticularWaveBounds.commonPressure ((ActualParticularStageControls.parameters x l).tangent j n) |
| 688 | (source x l j n) ((ActualParticularStageControls.parameters x l).geometry n) |
| 689 | ((ActualParticularStageControls.parameters x l).length_pos n).le |
| 690 | ((ActualParticularStageControls.parameters x l).cutoff n) |
| 691 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) (p,Y) = |
| 692 | pressureWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 693 | ParticularWaveBounds.commonPressure ((ActualParticularStageControls.parameters x l).tangent j m) |
| 694 | (source x l j m) ((ActualParticularStageControls.parameters x l).geometry m) |
| 695 | ((ActualParticularStageControls.parameters x l).length_pos m).le |
| 696 | ((ActualParticularStageControls.parameters x l).cutoff m) |
| 697 | ((j : ℝ) * (x.coefficients.blocks l).frequency m) |
| 698 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) p,coverPower k Y) := by |
| 699 | let r := clockWeight h (ChartScales.Q n) (ChartScales.Q m) |
| 700 | let c := velocityWeight h (ChartScales.Q n) (ChartScales.Q m) |
| 701 | let s := normalWeight (ChartScales.Q n) (ChartScales.Q m) |
| 702 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) ((j : ℝ) * (x.coefficients.blocks l).frequency m) |
| 703 | have hr : 0 < r := ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) _ |
| 704 | have hsn : s ≠ 0 := normalWeight_ne (ChartScales.Q_pos n) (ChartScales.Q_pos m) hKn hKm |
| 705 | have he := IntervalCopyTransport.commonPressure_zeroEntry |
| 706 | ((ActualParticularStageControls.parameters x l).tangent j m) (source x l j m) |
| 707 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m)) |
| 708 | ((ActualParticularStageControls.parameters x l).geometry m) k |
| 709 | ((ActualParticularStageControls.parameters x l).length m) r c s |
| 710 | ((j : ℝ) * (x.coefficients.blocks l).frequency m) ((j : ℝ) * (x.coefficients.blocks l).frequency n) |
| 711 | ((ActualParticularStageControls.parameters x l).length_pos m) hr hsn hKm hKn |
| 712 | ((ActualParticularStageControls.parameters x l).cutoff m) (parameter_cutoff_support x l m) p Y |
| 713 | (fun copy _ => (H copy).coefficient) (fun copy _ => (H copy).realForcing) |
| 714 | (fun copy _ => (H copy).imagForcing) |
| 715 | dsimp only [r, c, s] at he |
| 716 | rw [pressure_scaling (ChartScales.Q_pos n) (ChartScales.Q_pos m) hKn hKm] at he |
| 717 | have hs := ActualReferenceRebase.commonPressure_source_congr |
| 718 | ((ActualParticularStageControls.parameters x l).tangent j n) (source x l j n) |
| 719 | (ScaledTangentTransport.transportSource (source x l j m) |
| 720 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m)) k r c) |
| 721 | ((ActualParticularStageControls.parameters x l).geometry n) |
| 722 | ((ActualParticularStageControls.parameters x l).length_pos n).le |
| 723 | ((ActualParticularStageControls.parameters x l).cutoff n) |
| 724 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) p |
| 725 | (source_band x l hV htime n m k hi HS HB j p hp) Y |
| 726 | exact hs.trans (by simpa only [r, c, parameters_tangent x l j n m k hi hm hKm, |
| 727 | parameters_geometry x l n m k hi hm, parameters_length x l n m, parameters_cutoff x l n m] using he) |
| 728 | |
| 729 | end CopyComparison |
| 730 | |
| 731 | theorem copy_cutoff_band (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 732 | (j : ℤ) (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 733 | (hm : CommonWindow.index h m ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2)) |
| 734 | (copy : Frequency) : |
| 735 | (copyData x l j).cutoff n copy = fun z => (copyData x l j).cutoff m copy (bandMap n m z) := by |
| 736 | funext z |
| 737 | rw [bandMap_apply n m k hi] |
| 738 | change (ActualParticularStageControls.parameters x l).cutoff n |
| 739 | (((ActualParticularStageControls.parameters x l).geometry n).coordinates copy z.2) = |
| 740 | (ActualParticularStageControls.parameters x l).cutoff m |
| 741 | (((ActualParticularStageControls.parameters x l).geometry m).coordinates copy (coverPower k z.2)) |
| 742 | rw [← parameters_geometry x l n m k hi hm, ← parameters_cutoff x l n m] |
| 743 | exact congrArg ((ActualParticularStageControls.parameters x l).cutoff m) |
| 744 | (ScaledTangentTransport.coordinates_transport _ k 0 _ _ copy z.2) |
| 745 | |
| 746 | theorem copy_cutoff_smooth (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 747 | (j : ℤ) (n : ℕ) (copy : Frequency) : |
| 748 | ContDiff ℝ ∞ ((copyData x l j).cutoff n copy) := |
| 749 | ((parameter_cutoff_smooth x l n).comp |
| 750 | (((ActualParticularStageControls.parameters x l).geometry n).coordinates_contDiff copy)).comp contDiff_snd |
| 751 | |
| 752 | theorem copy_derivative_slot (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 753 | (j : ℤ) (n : ℕ) (copy : Frequency) {z : WaveSpace} |
| 754 | (hz : (ActualParticularStageControls.directions (B := B)).Dfast |
| 755 | (fun n => (copyData x l j).cutoff n copy) n z ≠ 0) : |
| 756 | (((ActualParticularStageControls.parameters x l).geometry n).coordinates copy z.2).2 ∈ |
| 757 | Icc 0 ((ActualParticularStageControls.parameters x l).length n) := by |
| 758 | apply GaussianErrorNaturality.along_ne_zero_mem_closed |
| 759 | (isClosed_Icc.preimage |
| 760 | ((((ActualParticularStageControls.parameters x l).geometry n).coordinates_contDiff copy).continuous.comp |
| 761 | continuous_snd).snd) _ |
| 762 | ((ActualParticularStageControls.directions (B := B)).fastField n) hz |
| 763 | intro y hy |
| 764 | exact (parameter_cutoff_support x l n hy).2 |
| 765 | |
| 766 | theorem gaussian_band (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 767 | {V : Set Plane} (hV : IsOpen V) (htime : ∀ s ∈ V, 0 < s.1) |
| 768 | (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 769 | (hm : CommonWindow.index h m ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2)) |
| 770 | (HS : ActualReferenceRebase.StateComparison x V n m k) |
| 771 | (HB : ActualReferenceRebase.BlockComparison x l V n m k) |
| 772 | (j : ℤ) (hKn : (j : ℝ) * (x.coefficients.blocks l).frequency n ≠ 0) |
| 773 | (hKm : (j : ℝ) * (x.coefficients.blocks l).frequency m ≠ 0) |
| 774 | (z : WaveSpace) (hz : z.1.1.2 ∈ V) |
| 775 | (H : ∀ copy, PathRegular x l j m |
| 776 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) z.1.1) (coverPower k z.2) copy) : |
| 777 | (copyData x l j).globalGaussian (ActualParticularStageControls.directions (B := B)) n z = |
| 778 | sourceWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 779 | (copyData x l j).globalGaussian (ActualParticularStageControls.directions (B := B)) |
| 780 | m (bandMap n m z) := by |
| 781 | rw [← clock_mul_velocity (ChartScales.Q_pos n) (ChartScales.Q_pos m)] |
| 782 | apply GaussianErrorNaturality.globalGaussian_transport (bandMap n m).toContinuousLinearMap |
| 783 | (ActualParticularStageControls.directions (B := B)) (ActualParticularStageControls.directions (B := B)) |
| 784 | (copyData x l j) (copyData x l j) n m |
| 785 | · exact copy_cutoff_band x l j n m k hi hm |
| 786 | · exact bandMap_fast B n m z |
| 787 | · intro copy |
| 788 | exact (copy_cutoff_smooth x l j m copy).contDiffAt.differentiableAt (by simp) |
| 789 | · intro copy hne |
| 790 | have hd := GaussianErrorNaturality.fast_cutoff_transport (bandMap n m).toContinuousLinearMap |
| 791 | (ActualParticularStageControls.directions (B := B)) (ActualParticularStageControls.directions (B := B)) |
| 792 | (copyData x l j) (copyData x l j) n m |
| 793 | (clockWeight h (ChartScales.Q n) (ChartScales.Q m)) copy z |
| 794 | (copy_cutoff_band x l j n m k hi hm copy) (bandMap_fast B n m z) |
| 795 | ((copy_cutoff_smooth x l j m copy).contDiffAt.differentiableAt (by simp)) |
| 796 | have hdn : (ActualParticularStageControls.directions (B := B)).Dfast |
| 797 | (fun n => (copyData x l j).cutoff n copy) n z ≠ 0 := by |
| 798 | rw [hd] |
| 799 | exact mul_ne_zero (ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) _).ne' hne |
| 800 | have hs := copy_derivative_slot x l j n copy hdn |
| 801 | change (copyData x l j).amplitude n copy z = |
| 802 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 803 | (copyData x l j).amplitude m copy (bandMap n m z) |
| 804 | rw [bandMap_apply n m k hi] |
| 805 | simp only [copyData, GaussianErrorNaturality.copyData_amplitude] |
| 806 | exact copy_amplitude_band x l hV htime n m k hi hm HS HB j hKn hKm z.1.1 hz z.2 copy (H copy) hs |
| 807 | · change (copyData x l j).source n z = |
| 808 | (clockWeight h (ChartScales.Q n) (ChartScales.Q m) * |
| 809 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m)) • |
| 810 | (copyData x l j).source m (bandMap n m z) |
| 811 | rw [bandMap_apply n m k hi] |
| 812 | exact source_band x l hV htime n m k hi HS HB j z.1.1 hz z.2 |
| 813 | |
| 814 | /-! ## Actual finite-path inputs and zero source fibers -/ |
| 815 | |
| 816 | structure SourceInputs (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) : Prop where |
| 817 | continuous : ∀ j n p, p.2 ∈ standardRegion.carrier → |
| 818 | Continuous (fun Y : Plane => source x l j n (p,Y)) |
| 819 | supported : ∀ j n p, p.2 ∈ standardRegion.carrier → ∀ Y, |
| 820 | source x l j n (p,Y) ≠ 0 → |
| 821 | (p.1,(p.2,Y)) ∈ ActualCoreSupport.refinedCarrier (l.2,l.1) n |
| 822 | ordered : ∀ j n p, p.2 ∈ standardRegion.carrier → ∀ Y, |
| 823 | source x l j n (p,Y) ≠ 0 → |
| 824 | CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2) |
| 825 | |
| 826 | theorem SourceInputs.pathRegular {x : CorrectionStep.CycleState (Label B N0)} {l : Label B N0} |
| 827 | (I : SourceInputs x l) |
| 828 | (hfrequency : ∀ n, (x.coefficients.blocks l).frequency n = ChartScales.carrier h n) |
| 829 | (j : ℤ) (hj : j ≠ 0) (n : ℕ) (p : Parameter) (hp : p.2 ∈ standardRegion.carrier) |
| 830 | (hne : ∃ Y, source x l j n (p,Y) ≠ 0) (Y : Plane) (copy : Frequency) : |
| 831 | PathRegular x l j n p Y copy := by |
| 832 | have hs : ∃ Z : Plane, (p.1,(p.2,Z)) ∈ ActualCoreSupport.refinedCarrier (l.2,l.1) n := by |
| 833 | obtain ⟨Z,hZ⟩ := hne |
| 834 | exact ⟨Z,I.supported j n p hp Z hZ⟩ |
| 835 | have ha := ActualCopySliceRegularity.actual_copy_slices_of_refinedFiber x l hfrequency j hj n p |
| 836 | (standardRegion.time_pos p.2 hp) hs Y copy |
| 837 | let G : Geometry := (ActualParticularStageControls.parameters x l).geometry n |
| 838 | let L : ℝ := (ActualParticularStageControls.parameters x l).length n |
| 839 | have ht : Continuous (fun s : Icc (0 : ℝ) L => (Y,(s : ℝ))) := |
| 840 | continuous_const.prodMk continuous_subtype_val |
| 841 | have hpath := (G.path_contDiff copy).continuous.comp ht |
| 842 | have hf := (I.continuous j n p hp).comp hpath |
| 843 | dsimp only [Function.comp_def] at hf |
| 844 | exact ⟨ha.1, IntervalCopyTransport.real_forcingAlong_continuous _ _ _ _ _ _ ha.2 hf, |
| 845 | IntervalCopyTransport.imag_forcingAlong_continuous _ _ _ _ _ _ ha.2 hf⟩ |
| 846 | |
| 847 | theorem copy_amplitude_zero (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 848 | (j : ℤ) (n : ℕ) (p : Parameter) (hz : ∀ Y, source x l j n (p,Y) = 0) |
| 849 | (theta : ℝ) (Y : Plane) (copy : Frequency) : |
| 850 | (copyData x l j).amplitude n copy ((p,theta),Y) = 0 := by |
| 851 | rw [copyData, GaussianErrorNaturality.copyData_amplitude] |
| 852 | exact ParticularWaveBounds.complexCopyVelocity_zero_of_path _ _ _ _ copy p Y (fun _ _ => hz _) |
| 853 | |
| 854 | theorem raw_amplitude_zero (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 855 | (j : ℤ) (n : ℕ) (p : Parameter) (hz : ∀ Y, source x l j n (p,Y) = 0) |
| 856 | (theta : ℝ) (Y : Plane) : |
| 857 | (ActualReferenceRebase.actualCoefficients x l j).amplitude n ((p,theta),Y) = 0 := by |
| 858 | change (∑' copy, (copyData x l j).cutoff n copy ((p,theta),Y) • |
| 859 | (copyData x l j).amplitude n copy ((p,theta),Y)) = 0 |
| 860 | simp only [copy_amplitude_zero x l j n p hz, smul_zero, tsum_zero] |
| 861 | |
| 862 | theorem raw_pressure_zero (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 863 | (j : ℤ) (n : ℕ) (hKn : (j : ℝ) * (x.coefficients.blocks l).frequency n ≠ 0) |
| 864 | (p : Parameter) (hz : ∀ Y, source x l j n (p,Y) = 0) (theta : ℝ) (Y : Plane) : |
| 865 | (ActualReferenceRebase.actualCoefficients x l j).pressure n ((p,theta),Y) = 0 := by |
| 866 | rw [ActualReferenceRebase.actualCoefficients, CorrectionStep.ParticularParameters.common_pressure |
| 867 | _ _ _ _ _ _ _ _ hKn] |
| 868 | change (∑' copy, ((ActualParticularStageControls.parameters x l).cutoff n |
| 869 | (((ActualParticularStageControls.parameters x l).geometry n).coordinates copy Y) : ℂ) * |
| 870 | ParticularWaveBounds.complexCopyPressure _ _ _ _ copy _ (p,Y)) = 0 |
| 871 | trans ∑' _ : Frequency, (0 : ℂ) |
| 872 | · apply tsum_congr |
| 873 | intro copy |
| 874 | by_cases hc : (ActualParticularStageControls.parameters x l).cutoff n |
| 875 | (((ActualParticularStageControls.parameters x l).geometry n).coordinates copy Y) = 0 |
| 876 | · simp only [hc, Complex.ofReal_zero, zero_mul] |
| 877 | · change (_ : ℂ) * ParticularWaveBounds.complexCopyPressure |
| 878 | ((ActualParticularStageControls.parameters x l).tangent j n) (source x l j n) |
| 879 | ((ActualParticularStageControls.parameters x l).geometry n) |
| 880 | ((ActualParticularStageControls.parameters x l).length_pos n).le copy |
| 881 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) (p,Y) = 0 |
| 882 | rw [ParticularWaveBounds.complexCopyPressure_zero_of_path _ _ _ _ copy _ p Y |
| 883 | (fun _ _ => hz _) (parameter_cutoff_support x l n hc).2, mul_zero] |
| 884 | · exact tsum_zero |
| 885 | |
| 886 | theorem gaussian_zero (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 887 | (j : ℤ) (n : ℕ) (p : Parameter) (hz : ∀ Y, source x l j n (p,Y) = 0) |
| 888 | (theta : ℝ) (Y : Plane) : |
| 889 | (copyData x l j).globalGaussian (ActualParticularStageControls.directions (B := B)) |
| 890 | n ((p,theta),Y) = 0 := by |
| 891 | have hs : (copyData x l j).source n ((p,theta),Y) = 0 := hz Y |
| 892 | simp only [PeriodizedWaveBounds.CopyData.globalGaussian, PeriodizedWaveBounds.CopyData.globalTail, |
| 893 | PeriodizedWaveBounds.copySum, PeriodizedWaveBounds.CopyData.localTail, copy_amplitude_zero x l j n p hz, |
| 894 | smul_zero, tsum_zero, hs, add_zero] |
| 895 | |
| 896 | theorem raw_amplitude_band (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 897 | {V : Set Plane} (hV : IsOpen V) (htime : ∀ s ∈ V, 0 < s.1) |
| 898 | (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 899 | (hm : CommonWindow.index h m ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2)) |
| 900 | (HS : ActualReferenceRebase.StateComparison x V n m k) |
| 901 | (HB : ActualReferenceRebase.BlockComparison x l V n m k) |
| 902 | (j : ℤ) (hKn : (j : ℝ) * (x.coefficients.blocks l).frequency n ≠ 0) |
| 903 | (hKm : (j : ℝ) * (x.coefficients.blocks l).frequency m ≠ 0) |
| 904 | (z : WaveSpace) (hz : z.1.1.2 ∈ V) |
| 905 | (H : ∀ copy, PathRegular x l j m |
| 906 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) z.1.1) (coverPower k z.2) copy) : |
| 907 | (ActualReferenceRebase.actualCoefficients x l j).amplitude n z = |
| 908 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 909 | (ActualReferenceRebase.actualCoefficients x l j).amplitude m (bandMap n m z) := by |
| 910 | rw [bandMap_apply n m k hi, ActualReferenceRebase.actualCoefficients, |
| 911 | CorrectionStep.ParticularParameters.common_amplitude, |
| 912 | CorrectionStep.ParticularParameters.common_amplitude] |
| 913 | exact common_amplitude_band x l hV htime n m k hi hm HS HB j hKn hKm z.1.1 hz z.2 H |
| 914 | |
| 915 | theorem raw_pressure_band (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 916 | {V : Set Plane} (hV : IsOpen V) (htime : ∀ s ∈ V, 0 < s.1) |
| 917 | (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 918 | (hm : CommonWindow.index h m ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand l.2)) |
| 919 | (HS : ActualReferenceRebase.StateComparison x V n m k) |
| 920 | (HB : ActualReferenceRebase.BlockComparison x l V n m k) |
| 921 | (j : ℤ) (hKn : (j : ℝ) * (x.coefficients.blocks l).frequency n ≠ 0) |
| 922 | (hKm : (j : ℝ) * (x.coefficients.blocks l).frequency m ≠ 0) |
| 923 | (z : WaveSpace) (hz : z.1.1.2 ∈ V) |
| 924 | (H : ∀ copy, PathRegular x l j m |
| 925 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) z.1.1) (coverPower k z.2) copy) : |
| 926 | (ActualReferenceRebase.actualCoefficients x l j).pressure n z = |
| 927 | pressureWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 928 | (ActualReferenceRebase.actualCoefficients x l j).pressure m (bandMap n m z) := by |
| 929 | rw [bandMap_apply n m k hi, ActualReferenceRebase.actualCoefficients, |
| 930 | CorrectionStep.ParticularParameters.common_pressure _ _ _ _ _ _ _ _ hKn, |
| 931 | CorrectionStep.ParticularParameters.common_pressure _ _ _ _ _ _ _ _ hKm] |
| 932 | exact common_pressure_band x l hV htime n m k hi hm HS HB j hKn hKm z.1.1 hz z.2 H |
| 933 | |
| 934 | /-- All three raw output identities are derived from the current source. |
| 935 | A zero source fiber needs no ODE regularity or ordering premise. -/ |
| 936 | theorem raw_outputs (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 937 | (I : SourceInputs x l) |
| 938 | (hfrequency : ∀ n, (x.coefficients.blocks l).frequency n = ChartScales.carrier h n) |
| 939 | {V : Set Plane} (hV : IsOpen V) (htime : ∀ s ∈ V, 0 < s.1) |
| 940 | (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 941 | (HS : ActualReferenceRebase.StateComparison x V n m k) |
| 942 | (HB : ActualReferenceRebase.BlockComparison x l V n m k) |
| 943 | (j : ℤ) (hj : j ≠ 0) (z : WaveSpace) (hz : z.1.1.2 ∈ V) |
| 944 | (hmap : (parameterChange h (ChartScales.Q n) (ChartScales.Q m) z.1.1).2 ∈ standardRegion.carrier) : |
| 945 | (ActualReferenceRebase.actualCoefficients x l j).amplitude n z = |
| 946 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 947 | (ActualReferenceRebase.actualCoefficients x l j).amplitude m (bandMap n m z) ∧ |
| 948 | (ActualReferenceRebase.actualCoefficients x l j).pressure n z = |
| 949 | pressureWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 950 | (ActualReferenceRebase.actualCoefficients x l j).pressure m (bandMap n m z) ∧ |
| 951 | (copyData x l j).globalGaussian (ActualParticularStageControls.directions (B := B)) n z = |
| 952 | sourceWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 953 | (copyData x l j).globalGaussian (ActualParticularStageControls.directions (B := B)) m (bandMap n m z) := by |
| 954 | classical |
| 955 | have hk (a : ℕ) : (j : ℝ) * (x.coefficients.blocks l).frequency a ≠ 0 := by |
| 956 | rw [hfrequency] |
| 957 | exact mul_ne_zero (by exact_mod_cast hj) (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h a)).ne' |
| 958 | by_cases hne : ∃ Y, source x l j m |
| 959 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) z.1.1,Y) ≠ 0 |
| 960 | · have hm := let ⟨Y,hY⟩ := hne; I.ordered j m _ hmap Y hY |
| 961 | have H := I.pathRegular hfrequency j hj m _ hmap hne |
| 962 | exact ⟨raw_amplitude_band x l hV htime n m k hi hm HS HB j (hk n) (hk m) z hz (H _), |
| 963 | raw_pressure_band x l hV htime n m k hi hm HS HB j (hk n) (hk m) z hz (H _), |
| 964 | gaussian_band x l hV htime n m k hi hm HS HB j (hk n) (hk m) z hz (H _)⟩ |
| 965 | · have hm : ∀ Y, source x l j m |
| 966 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) z.1.1,Y) = 0 := by |
| 967 | simpa only [not_exists, not_not] using hne |
| 968 | have hn : ∀ Y, source x l j n (z.1.1,Y) = 0 := by |
| 969 | intro Y |
| 970 | rw [show source x l j n (z.1.1,Y) = _ from source_band x l hV htime n m k hi HS HB j _ hz Y] |
| 971 | change (_ : ℝ) • source x l j m (_,_) = 0 |
| 972 | rw [hm, smul_zero] |
| 973 | rw [bandMap_apply n m k hi] |
| 974 | simp only [raw_amplitude_zero x l j n z.1.1 hn, raw_amplitude_zero x l j m _ hm, |
| 975 | raw_pressure_zero x l j n (hk n) z.1.1 hn, raw_pressure_zero x l j m (hk m) _ hm, |
| 976 | gaussian_zero x l j n z.1.1 hn, gaussian_zero x l j m _ hm, smul_zero, and_self] |
| 977 | |
| 978 | noncomputable def waveDomain (V : Set Plane) : Set WaveSpace := {z | z.1.1.2 ∈ V} |
| 979 | |
| 980 | theorem waveDomain_open {V : Set Plane} (hV : IsOpen V) : IsOpen (waveDomain V) := |
| 981 | hV.preimage continuous_fst.fst.snd |
| 982 | |
| 983 | theorem parameterChange_slow (n m : ℕ) (p : Parameter) : |
| 984 | (parameterChange h (ChartScales.Q n) (ChartScales.Q m) p).2 = |
| 985 | GaugeStateCoherence.bandSlowEquiv h n m p.2 := |
| 986 | congrArg (fun z : CorrectionStep.CyclePoint => z.2.1) |
| 987 | (ActualReferenceRebase.associatedChart_stateChart n m 0 (p,0)) |
| 988 | |
| 989 | theorem phase_band (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 990 | {V : Set Plane} (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 991 | (HB : ActualReferenceRebase.BlockComparison x l V n m k) (j : ℤ) (hj : j ≠ 0) |
| 992 | (hn : (x.coefficients.blocks l).frequency n ≠ 0) (hm : (x.coefficients.blocks l).frequency m ≠ 0) |
| 993 | (z : WaveSpace) (hz : z ∈ waveDomain V) : |
| 994 | (ActualReferenceRebase.actualCoefficients x l j).phase n z = |
| 995 | (((j : ℝ) * (x.coefficients.blocks l).frequency m) / |
| 996 | ((j : ℝ) * (x.coefficients.blocks l).frequency n)) * |
| 997 | (ActualReferenceRebase.actualCoefficients x l j).phase m (bandMap n m z) := by |
| 998 | have hp := HB.phase (x := CorrectionStep.cycleAssoc.symm (z.1.1,z.2)) hz |
| 999 | dsimp only at hp |
| 1000 | rw [← ActualReferenceRebase.associatedChart_stateChart, |
| 1001 | PhysicalResidualNaturality.associatedChart_apply] at hp |
| 1002 | rw [bandMap_apply n m k hi] |
| 1003 | change (x.coefficients.blocks l).phase n (CorrectionStep.cycleAssoc.symm (z.1.1,z.2)) + |
| 1004 | ((x.coefficients.blocks l).angularFrequency n : ℝ) / |
| 1005 | (x.coefficients.blocks l).frequency n * z.1.2 = _ |
| 1006 | rw [HB.angular] |
| 1007 | exact (ActualReferenceRebase.carrier_phase_rebase hn hm (by exact_mod_cast hj) hp).symm |
| 1008 | |
| 1009 | theorem corrected_amplitude_of_germs (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 1010 | (j : ℤ) (n m : ℕ) (hKn : (j : ℝ) * (x.coefficients.blocks l).frequency n ≠ 0) |
| 1011 | (hKm : (j : ℝ) * (x.coefficients.blocks l).frequency m ≠ 0) (z : WaveSpace) |
| 1012 | (ha : (ActualReferenceRebase.actualCoefficients x l j).amplitude n =ᶠ[𝓝 z] |
| 1013 | fun y => velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 1014 | (ActualReferenceRebase.actualCoefficients x l j).amplitude m (bandMap n m y)) |
| 1015 | (hp : (ActualReferenceRebase.actualCoefficients x l j).phase n =ᶠ[𝓝 z] |
| 1016 | fun y => (((j : ℝ) * (x.coefficients.blocks l).frequency m) / |
| 1017 | ((j : ℝ) * (x.coefficients.blocks l).frequency n)) * |
| 1018 | (ActualReferenceRebase.actualCoefficients x l j).phase m (bandMap n m y)) : |
| 1019 | (corrected x l j).amplitude n z = |
| 1020 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 1021 | (corrected x l j).amplitude m (bandMap n m z) := by |
| 1022 | let d := ActualParticularStageControls.directions (B := B) |
| 1023 | let s := CorrectionStep.ParticularParameters.nativeStrip ActualParticularStageControls.associatedStrip |
| 1024 | have h1 := ParticularWaveAssembly.realizedCoefficient_germ ha |
| 1025 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) (fun y : WaveSpace => y.1.1.1) |
| 1026 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1027 | ((ActualReferenceRebase.actualCoefficients x l j).phase n) |
| 1028 | have h2 := ActualParticularRealization.realizedCoefficient_phase_germ hp |
| 1029 | ((j : ℝ) * (x.coefficients.blocks l).frequency n) (fun y : WaveSpace => y.1.1.1) |
| 1030 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1031 | (fun y => velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 1032 | (ActualReferenceRebase.actualCoefficients x l j).amplitude m (bandMap n m y)) |
| 1033 | change CurlClassBounds.realizedCoefficient ((j : ℝ) * (x.coefficients.blocks l).frequency n) |
| 1034 | (fun y : WaveSpace => y.1.1.1) (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1035 | ((ActualReferenceRebase.actualCoefficients x l j).phase n) |
| 1036 | ((ActualReferenceRebase.actualCoefficients x l j).amplitude n) z = _ |
| 1037 | rw [(h1.trans h2).eq_of_nhds] |
| 1038 | exact ActualPrimaryCoherence.realizedCoefficient_equiv (bandMap n m) |
| 1039 | (L := (j : ℝ) * (x.coefficients.blocks l).frequency m) |
| 1040 | (ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m) _).ne' |
| 1041 | (div_ne_zero hKm hKn) hKn (by field_simp [hKn, (mul_ne_zero_iff.mp hKn).2]) |
| 1042 | (fun y => y.1.1.1) (fun y => y.1.1.1) |
| 1043 | (d.radialField n) (fun _ => d.angular) (d.axialField s n) |
| 1044 | (d.radialField m) (fun _ => d.angular) (d.axialField s m) |
| 1045 | (bandMap_radius n m) (bandMap_radial B n m) (bandMap_angular B n m) (bandMap_axial B n m) |
| 1046 | (velocityWeight h (ChartScales.Q n) (ChartScales.Q m)) |
| 1047 | ((ActualReferenceRebase.actualCoefficients x l j).phase m) |
| 1048 | ((ActualReferenceRebase.actualCoefficients x l j).amplitude m) z |
| 1049 | |
| 1050 | theorem corrected_amplitude_on (x : CorrectionStep.CycleState (Label B N0)) (l : Label B N0) |
| 1051 | (I : SourceInputs x l) |
| 1052 | (hfrequency : ∀ n, (x.coefficients.blocks l).frequency n = ChartScales.carrier h n) |
| 1053 | {V : Set Plane} (hV : IsOpen V) (htime : ∀ s ∈ V, 0 < s.1) |
| 1054 | (n m k : ℕ) (hi : CommonWindow.index h n + k = CommonWindow.index h m) |
| 1055 | (hmap : MapsTo (GaugeStateCoherence.bandSlowEquiv h n m) V standardRegion.carrier) |
| 1056 | (HS : ActualReferenceRebase.StateComparison x V n m k) |
| 1057 | (HB : ActualReferenceRebase.BlockComparison x l V n m k) |
| 1058 | (j : ℤ) (hj : j ≠ 0) (z : WaveSpace) (hz : z ∈ waveDomain V) : |
| 1059 | (corrected x l j).amplitude n z = |
| 1060 | velocityWeight h (ChartScales.Q n) (ChartScales.Q m) • |
| 1061 | (corrected x l j).amplitude m (bandMap n m z) := by |
| 1062 | have hf (a : ℕ) : (x.coefficients.blocks l).frequency a ≠ 0 := by |
| 1063 | rw [hfrequency] |
| 1064 | exact (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h a)).ne' |
| 1065 | apply corrected_amplitude_of_germs x l j n m |
| 1066 | (mul_ne_zero (by exact_mod_cast hj) (hf n)) (mul_ne_zero (by exact_mod_cast hj) (hf m)) z |
| 1067 | · filter_upwards [(waveDomain_open hV).mem_nhds hz] with y hy |
| 1068 | exact (raw_outputs x l I hfrequency hV htime n m k hi HS HB j hj y hy |
| 1069 | (by rw [parameterChange_slow]; exact hmap hy)).1 |
| 1070 | · filter_upwards [(waveDomain_open hV).mem_nhds hz] with y hy |
| 1071 | exact phase_band x l n m k hi HB j hj (hf n) (hf m) y hy |
| 1072 | |
| 1073 | end NavierStokes.ActualParticularCoherence |