Phases of Muoncompanion
Section SE · From the algorithm to the deterministic dynamics
Proved in Lean
Lemma SE.17 (Stationary block sums and the startup cross term)
Let \(D\), \(m\) be deterministic with \(r_-\le\cR(D)\le r_+\), consider the chains at \((t,D,m)\), and put \(S\defeq\sum_{r<L}V_r\), \(A\defeq\sum_{r<L}(\widehat V_r-V_r)\) and \(a\defeq1+\norm m_\F/\sqrt B\). Then
  1. (i)
    \(\EE\norm{S-L\overline V(D)}_\F^2\le CBL\);
  2. (ii)
    for every linear map \(\mathcal W\) on \(\R^{\Nout\times\Nin}\) of Frobenius norm at most one, \(\abs{\EE\langle S,\mathcal WA\rangle}\le Ca\big(B+L\sqrt B\big)\).
Proof.
For (i), by Lemma SE.2(i) the lag covariances of \((V_r)\) are those of the volatility section at the state \(\widehat A(D)\). With the tests \(F=\Id\), \(G=\Id\) in Definition SD.1 and the envelopes of Theorem SD.2(ii),
\[ \EE\norm{S-L\overline V(D)}_\F^2=B\sum_{r,r'<L}C_{\abs{r-r'}}[\Id,\Id](\ridge,\ridge) \le BL\Big(\gamma_\star+\frac{2\mathsf K_\star\bmom}{1-\bmom}\Big). \]
For (ii), write \(A_r\defeq\widehat V_r-V_r\). By the proof of Lemma SE.16(ii), \(\norm{A_r}_{L^2(\F)}\le Ca\sqrt B\bmom^{r+1}\), where \(\norm X_{L^2(\F)}\defeq(\EE\norm X_\F^2)^{1/2}\). Expand \(\EE\langle S,\mathcal WA\rangle=\sum_{u,r<L}\EE\langle V_u,\mathcal WA_r\rangle\) and center \(V_u\) at \(\overline V\defeq\overline V(D)\). The mean part is at most \(\sum_{u,r}\norm{\overline V}_\F\norm{A_r}_{L^2(\F)}\le CLa\sqrt B\), by (SE.15). For \(u\le r\), the Cauchy–Schwarz inequality and \(\norm{V_u-\overline V}_\F\le2\sqrt{\gamma_\star B}\) give \(\abs{\EE\langle V_u-\overline V,\mathcal WA_r\rangle}\le CaB\bmom^{r+1}\), and \(\sum_r(r+1)\bmom^{r+1}\le C\). For \(u>r\), let \(V'_u\) be the update obtained by replacing the auxiliary batches and the batches of the steps up to \(t+r\) by independent copies. It has the law of \(V_u\), it is independent of \(A_r\), which depends only on \(m\), the auxiliary batches and the batches up to step \(t+r\), and by the lag decomposition (SA.33) its buffer differs from \(N_u\) by \(\bmom^{u-r}\) times the difference of two buffers with second moments at most \(CB\). Hence \(\EE\langle V_u-\overline V,\mathcal WA_r\rangle=\EE\langle V_u-V'_u,\mathcal WA_r\rangle\) is at most \(C\sqrt B\bmom^{u-r}\cdot Ca\sqrt B\bmom^{r+1}\), and summing over \(u>r\) and then over \(r\) gives \(CaB\).

Uses

Used by

Lean

Proved in Lean
Muon.Dynamics.lem_app_dyn_startup_i source
theorem lem_app_dyn_startup_i (p : DynParams) (rlo rhi : ℝ) (hrlo : 0 < rlo) (hle : rlo ≤ rhi) :
    ∃ K : ℝ, ∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
      (m n B : ℕ) (C : Covariances m n) (cs : ChainSamples P m n B) (t : ℕ) (D M0 : Mat m n),
      SizeFin C B p.γstar p.CSig → rlo ≤ riskSigma C D → riskSigma C D ≤ rhi →
      Integrable (fun ω => fro (∑ r ∈ Finset.range (blockLen B), stationaryV p C cs t D r ω -
        (blockLen B : ℝ) • mean P (fun ω' => stationaryV p C cs t D 0 ω')) ^ 2) P ∧
      ∫ ω, fro (∑ r ∈ Finset.range (blockLen B), stationaryV p C cs t D r ω -
        (blockLen B : ℝ) • mean P (fun ω' => stationaryV p C cs t D 0 ω')) ^ 2 ∂P ≤
          K * B * blockLen B := by
Muon.Dynamics.lem_app_dyn_startup_ii source
theorem lem_app_dyn_startup_ii (certOp : Muon.External.GaussianOpNormL6) (p : DynParams) (rlo rhi : ℝ) (hrlo : 0 < rlo) (hle : rlo ≤ rhi) :
    ∃ K : ℝ, ∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
      (m n B : ℕ) (C : Covariances m n) (cs : ChainSamples P m n B) (t : ℕ) (D M0 : Mat m n)
      (W : Mat m n →ₗ[ℝ] Mat m n),
      SizeFin C B p.γstar p.CSig → rlo ≤ riskSigma C D → riskSigma C D ≤ rhi →
      (∀ X : Mat m n, fro (W X) ≤ fro X) →
      Integrable (fun ω => frobIP (∑ r ∈ Finset.range (blockLen B), stationaryV p C cs t D r ω)
        (W (∑ r ∈ Finset.range (blockLen B),
          ((def_app_dyn_chains p C cs t D M0 ω).sameV (r + 1) -
            (def_app_dyn_chains p C cs t D M0 ω).statV (r + 1))))) P ∧
      |∫ ω, frobIP (∑ r ∈ Finset.range (blockLen B), stationaryV p C cs t D r ω)
        (W (∑ r ∈ Finset.range (blockLen B),
          ((def_app_dyn_chains p C cs t D M0 ω).sameV (r + 1) -
            (def_app_dyn_chains p C cs t D M0 ω).statV (r + 1)))) ∂P| ≤
          K * (1 + fro M0 / Real.sqrt B) * (B + (blockLen B : ℝ) * Real.sqrt B) := by