Phases of Muoncompanion
Section SD · Volatility: same-time and temporal
Proved in Lean
Theorem SD.1 (Same-time energies of rows and columns)
Assume Assumption S3, let \(I=[\ridge_-,\ridge_+]\), and put
\[ e_B\defeq\sup_{s\in I}\norm{\EE R(-s)-\Rbar(-s)},\qquad \tilde e_B\defeq\sup_{s\in I}\norm{\EE\widetilde R(-s)-\Rtbar(-s)}, \]
which tend to zero by Theorem SB.2.
  1. (i)
    The expected update Gram matrices satisfy
    \begin{equation}\tag{SD.23} \begin{gathered} \sup_{\ridge\in I}\Big\|\EE\big[{\mathsf S}_t(\ridge){\mathsf S}_t(\ridge)^\T\big]-\tilde s_1(-\ridge)\Sigmaout\big(\tilde s_1(-\ridge)\Sigmaout+\ridge\Id\big)^{-1}\Big\|\le\ridge_+\,e_B ,\\ \sup_{\ridge\in I}\Big\|\EE\big[{\mathsf S}_t(\ridge)^\T{\mathsf S}_t(\ridge)\big]-s_1(-\ridge)\Sigmain\big(s_1(-\ridge)\Sigmain+\ridge\Id\big)^{-1}\Big\|\le\ridge_+\,\tilde e_B . \end{gathered} \end{equation}
  2. (ii)
    The expected row and column energies satisfy
    \begin{equation}\tag{SD.24} \begin{gathered} \sup_{\ridge\in I}\max_{1\le i\le\Nout}\Big|\EE\norm{{\mathsf S}_t(\ridge)^\T u_i}^2-\volraw_i(\ridge)\Big|\le\ridge_+\,e_B ,\\ \sup_{\ridge\in I}\max_{1\le j\le\Nin}\Big|\EE\norm{{\mathsf S}_t(\ridge)v_j}^2-\widetilde{\mathfrak v}^{(0)}_j(\ridge)\Big|\le\ridge_+\,\tilde e_B , \end{gathered} \end{equation}
    \({\mathsf S}_t(\ridge)^\T u_i=0\) for every \(i\) with \(\mu_i=0\), and \({\mathsf S}_t(\ridge)v_j=0\) for every \(j\) with \(\lambda_j=0\).
  3. (iii)
    If \(\Sigmain=\Id_{\Nin}\), the raw and centered totals (SD.19) satisfy
    \begin{equation}\tag{SD.25} \EE\sup_{\ridge\in I}\abs{Z(\ridge)-\overline Z(\ridge)}^2\longrightarrow0,\qquad \EE\sup_{\ridge\in I}\abs{Z^{\mathrm c}(\ridge)-\overline Z(\ridge)}^2\longrightarrow0, \end{equation}
    and \(\sup_{\ridge\in I}\abs{\EE Z(\ridge)-\overline Z(\ridge)}\le\gamma_\star C_\Sigma\ridge_+e_B\).
  4. (iv)
    If \(\Sigmaout=\Id_{\Nout}\), (iii) holds with the candidate \(\overline Z\) replaced by \(B^{-1}\Tr\Sigmain-\ridge\,\tilde\sigma(-\ridge)\) and \(e_B\) by \(\tilde e_B\).
Proof.
The proof rests on two exact identities. For \(K\in\R^{\Nout\times\Nin}\) and \(\ridge>0\),
\begin{equation}\tag{SD.27} \begin{gathered} \Qridge\ridge(K)\Qridge\ridge(K)^\T=KK^\T\big(KK^\T+\ridge\Id\big)^{-1}=\Id-\ridge\,R_\ridge(K),\\ \Qridge\ridge(K)^\T\Qridge\ridge(K)=\Id-\ridge\,\widetilde R_\ridge(K). \end{gathered} \end{equation}
Indeed, in a singular value decomposition the first left side has the eigenvalue \(s_k^2/(s_k^2+\ridge)=1-\ridge/(s_k^2+\ridge)\) on the left singular vector \(p_k\) and vanishes on the left null space of \(K\), where the right side is \(1-\ridge/\ridge=0\). The second identity is the same computation on the right singular vectors.
Part (i) is the expectation of (SD.27). With \(K=\Mt\) and \(R_\ridge(\Mt)=R(-\ridge)\),
\[ \EE\big[{\mathsf S}_t(\ridge){\mathsf S}_t(\ridge)^\T\big]-\big(\Id-\ridge\Rbar(-\ridge)\big)=-\ridge\big(\EE R(-\ridge)-\Rbar(-\ridge)\big), \]
whose norm is at most \(\ridge_+e_B\), and \(\Id-\ridge\Rbar(-\ridge)=\tilde s_1\Sigmaout(\tilde s_1\Sigmaout+\ridge\Id)^{-1}\) by (SB.3). The second bound is the same argument with \(\widetilde R(-\ridge)\), \(\Rtbar(-\ridge)=(\ridge+s_1\Sigmain)^{-1}\) and \(\tilde e_B\).
Part (ii) tests (i) with unit vectors. Since \(\norm{{\mathsf S}_t^\T u_i}^2=u_i^\T {\mathsf S}_t{\mathsf S}_t^\T u_i\) and \(u_i^\T(\Id-\ridge\Rbar(-\ridge))u_i=1-\ridge/(\ridge+\tilde s_1\mu_i)=\volraw_i(\ridge)\), the bound \(\abs{u^\T Xu}\le\norm X\) for unit \(u\) gives the row bound. The column bound is the same with \(\norm{{\mathsf S}_tv_j}^2=v_j^\T{\mathsf S}_t^\T{\mathsf S}_tv_j\) and \(v_j^\T(\Id-\ridge\Rtbar(-\ridge))v_j=\widetilde{\mathfrak v}^{(0)}_j(\ridge)\). If \(\mu_i=0\) then \(\Sigmaout^{1/2}u_i=0\), so \(u_i^\T G_{t'}=0\) for every batch and \(u_i^\T\Mt=0\); then Lemma SA.2(ii), with the projection \(\Id-u_i\tensor u_i\) on the output side, gives \(u_i^\T {\mathsf S}_t=0\). If \(\lambda_j=0\) then \(\Sigmain^{1/2}v_j=0\), so \(\Mt v_j=0\), and the projection \(\Id-v_j\tensor v_j\) on the input side gives \({\mathsf S}_tv_j=0\).
Part (iii) is the covariance-weighted trace of (SD.27). Since \(\Sigmain=\Id\), \(\norm {\mathsf S}_\Sigma^2=\Tr(\Sigmaout {\mathsf S}{\mathsf S}^\T)\), and therefore
\[ Z(\ridge)-\overline Z(\ridge)=-\ridge\Big(\frac1B\Tr\big(\Sigmaout R(-\ridge)\big)-\sigma(-\ridge)\Big). \]
The last claim of Corollary SB.1 gives \(\EE\sup_{s\in I}\abs{B^{-1}\Tr(\Sigmaout R(-s))-\sigma(-s)}^2\to0\), and the first statement of (SD.25) follows with the factor \(\ridge_+^2\). Taking expectations instead,
\[ \abs{\EE Z(\ridge)-\overline Z(\ridge)}=\ridge\,\Big|\frac1B\Tr\big(\Sigmaout(\EE R(-\ridge)-\Rbar(-\ridge))\big)\Big| \le\ridge_+\frac{\Nout}{B}C_\Sigma e_B\le\gamma_\star C_\Sigma\ridge_+e_B . \]
The centered statement follows from the raw one and (SD.21), by \((x+y)^2\le2x^2+2y^2\).
Part (iv) is the same computation on the input side. Since \(\Sigmaout=\Id\), \(\norm{\mathsf S}_\Sigma^2=\Tr(\Sigmain{\mathsf S}^\T{\mathsf S})\), so the second identity of (SD.27) gives \(Z(\ridge)-B^{-1}\Tr\Sigmain+\ridge\tilde\sigma(-\ridge)=-\ridge\big(B^{-1}\Tr(\Sigmain\widetilde R(-\ridge))-\tilde\sigma(-\ridge)\big)\), and the second statement of Corollary SB.1 replaces the first.

Uses

Used by

Lean

Proved in Lean
Muon.Volatility.thm_app_vol_half_same_i_out source
theorem thm_app_vol_half_same_i_out (F : FrozenParams m n B) (S : FrozenSamples P m n B)
    (t : ℤ) (ϱlo ϱhi eB : ℝ) (hϱ : 0 < ϱlo)
    (heB : ∀ s ∈ Icc ϱlo ϱhi,
      opNorm (expRes (emaW F.β) F S t s -
        Rbar (Fw (emaW F.β)) (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) F.C s) ≤ eB) :
    ∀ ϱ ∈ Icc ϱlo ϱhi,
      opNorm (Muon.mean P (fun ω => frozenUpd F S ϱ t ω * (frozenUpd F S ϱ t ω)ᵀ) -
        halfGramOut F ϱ) ≤ ϱhi * eB := by
Muon.Volatility.thm_app_vol_half_same_i_in source
theorem thm_app_vol_half_same_i_in (F : FrozenParams m n B) (S : FrozenSamples P m n B)
    (t : ℤ) (ϱlo ϱhi eBt : ℝ) (hϱ : 0 < ϱlo)
    (heBt : ∀ s ∈ Icc ϱlo ϱhi,
      opNorm (expResT (emaW F.β) F S t s -
        Rtbar (Fw (emaW F.β)) (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) F.C s) ≤ eBt) :
    ∀ ϱ ∈ Icc ϱlo ϱhi,
      opNorm (Muon.mean P (fun ω => (frozenUpd F S ϱ t ω)ᵀ * frozenUpd F S ϱ t ω) -
        halfGramIn F ϱ) ≤ ϱhi * eBt := by
Muon.Volatility.thm_app_vol_half_same_ii_rows source
theorem thm_app_vol_half_same_ii_rows (F : FrozenParams m n B) (S : FrozenSamples P m n B)
    (t : ℤ) (Sp : SpectralData F.C) (ϱlo ϱhi eB : ℝ) (hϱ : 0 < ϱlo)
    (heB : ∀ s ∈ Icc ϱlo ϱhi,
      opNorm (expRes (emaW F.β) F S t s -
        Rbar (Fw (emaW F.β)) (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) F.C s) ≤ eB) :
    ∀ ϱ ∈ Icc ϱlo ϱhi, ∀ i : Fin m,
      |(∫ ω, dotProduct ((frozenUpd F S ϱ t ω)ᵀ *ᵥ Sp.u i) ((frozenUpd F S ϱ t ω)ᵀ *ᵥ Sp.u i) ∂P) -
        volraw F.β (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) (Sp.μ i) ϱ| ≤ ϱhi * eB := by
Muon.Volatility.thm_app_vol_half_same_ii_cols source
theorem thm_app_vol_half_same_ii_cols (F : FrozenParams m n B) (S : FrozenSamples P m n B)
    (t : ℤ) (Sp : SpectralData F.C) (ϱlo ϱhi eBt : ℝ) (hϱ : 0 < ϱlo)
    (heBt : ∀ s ∈ Icc ϱlo ϱhi,
      opNorm (expResT (emaW F.β) F S t s -
        Rtbar (Fw (emaW F.β)) (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) F.C s) ≤ eBt) :
    ∀ ϱ ∈ Icc ϱlo ϱhi, ∀ j : Fin n,
      |(∫ ω, dotProduct (frozenUpd F S ϱ t ω *ᵥ Sp.v j) (frozenUpd F S ϱ t ω *ᵥ Sp.v j) ∂P) -
        volTildeZero F.β (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) (Sp.lam j) ϱ|
        ≤ ϱhi * eBt := by
Muon.Volatility.thm_app_vol_half_same_ii_zero_rows source
theorem thm_app_vol_half_same_ii_zero_rows (F : FrozenParams m n B) (S : FrozenSamples P m n B)
    (t : ℤ) (Sp : SpectralData F.C) (ϱlo ϱhi : ℝ) (hϱ : 0 < ϱlo) :
    ∀ ϱ ∈ Icc ϱlo ϱhi, ∀ ω : Ω, ∀ i : Fin m, Sp.μ i = 0 →
      (frozenUpd F S ϱ t ω)ᵀ *ᵥ Sp.u i = 0 := by
Muon.Volatility.thm_app_vol_half_same_ii_zero_cols source
theorem thm_app_vol_half_same_ii_zero_cols (F : FrozenParams m n B) (S : FrozenSamples P m n B)
    (t : ℤ) (Sp : SpectralData F.C) (ϱlo ϱhi : ℝ) (hϱ : 0 < ϱlo) :
    ∀ ϱ ∈ Icc ϱlo ϱhi, ∀ ω : Ω, ∀ j : Fin n, Sp.lam j = 0 →
      frozenUpd F S ϱ t ω *ᵥ Sp.v j = 0 := by
Muon.Volatility.thm_app_vol_half_same_iii_mean source
theorem thm_app_vol_half_same_iii_mean (F : FrozenParams m n B) (S : FrozenSamples P m n B)
    (t : ℤ) (Sp : SpectralData F.C) (γstar CSig ϱlo ϱhi eB : ℝ)
    (hSize : SizeFin F.C B γstar CSig) (hIn : F.C.Sin = 1) (hϱ : 0 < ϱlo)
    (heB : ∀ s ∈ Icc ϱlo ϱhi,
      opNorm (expRes (emaW F.β) F S t s -
        Rbar (Fw (emaW F.β)) (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) F.C s) ≤ eB) :
    ∀ ϱ ∈ Icc ϱlo ϱhi,
      |(∫ ω, sameTimeZ F S ϱ t ω ∂P) -
        zbarRaw F.β B (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) Sp.μ ϱ| ≤
          γstar * CSig * ϱhi * eB := by
Muon.Volatility.thm_app_vol_half_same_iii_raw source
theorem thm_app_vol_half_same_iii_raw {Ω : ℕ → Type} [∀ k, MeasurableSpace (Ω k)]
    (R : SetupRegime) (P : ∀ k, Measure (Ω k)) [∀ k, IsProbabilityMeasure (P k)]
    (S : ∀ k, FrozenSamples (P k) (R.m k) (R.n k) (R.B k)) (t : ℤ)
    (Sp : ∀ k, SpectralData (R.F k).C) (hIn : ∀ k, (R.F k).C.Sin = 1) :
    Tendsto (fun k => ∫⁻ ω, ⨆ ϱ ∈ Icc R.ϱlo R.ϱhi,
        ENNReal.ofReal ((sameTimeZ (R.F k) (S k) ϱ t ω -
          zbarRaw (R.F k).β (R.B k) (Muon.Drift.specOutFM (R.F k))
            (Muon.Drift.specInFM (R.F k)) (Sp k).μ ϱ) ^ 2) ∂(P k))
      atTop (𝓝 0) := by
Muon.Volatility.thm_app_vol_half_same_iii_centered source
theorem thm_app_vol_half_same_iii_centered {Ω : ℕ → Type} [∀ k, MeasurableSpace (Ω k)]
    (R : SetupRegime) (P : ∀ k, Measure (Ω k)) [∀ k, IsProbabilityMeasure (P k)]
    (S : ∀ k, FrozenSamples (P k) (R.m k) (R.n k) (R.B k)) (t : ℤ)
    (Sp : ∀ k, SpectralData (R.F k).C) (hIn : ∀ k, (R.F k).C.Sin = 1) :
    Tendsto (fun k => ∫⁻ ω, ⨆ ϱ ∈ Icc R.ϱlo R.ϱhi,
        ENNReal.ofReal ((sameTimeZc (R.F k) (S k) ϱ t ω -
          zbarRaw (R.F k).β (R.B k) (Muon.Drift.specOutFM (R.F k))
            (Muon.Drift.specInFM (R.F k)) (Sp k).μ ϱ) ^ 2) ∂(P k))
      atTop (𝓝 0) := by
Muon.Volatility.thm_app_vol_half_same_iv_mean source
theorem thm_app_vol_half_same_iv_mean (F : FrozenParams m n B) (S : FrozenSamples P m n B)
    (t : ℤ) (γstar CSig ϱlo ϱhi eBt : ℝ)
    (hSize : SizeFin F.C B γstar CSig) (hOut : F.C.Sout = 1) (hϱ : 0 < ϱlo)
    (heBt : ∀ s ∈ Icc ϱlo ϱhi,
      opNorm (expResT (emaW F.β) F S t s -
        Rtbar (Fw (emaW F.β)) (Muon.Drift.specOutFM F) (Muon.Drift.specInFM F) F.C s) ≤ eBt) :
    ∀ ϱ ∈ Icc ϱlo ϱhi,
      |(∫ ω, sameTimeZ F S ϱ t ω ∂P) - halfZTotIn F ϱ| ≤ γstar * CSig * ϱhi * eBt := by
Muon.Volatility.thm_app_vol_half_same_iv_raw source
theorem thm_app_vol_half_same_iv_raw {Ω : ℕ → Type} [∀ k, MeasurableSpace (Ω k)]
    (R : SetupRegime) (P : ∀ k, Measure (Ω k)) [∀ k, IsProbabilityMeasure (P k)]
    (S : ∀ k, FrozenSamples (P k) (R.m k) (R.n k) (R.B k)) (t : ℤ)
    (hOut : ∀ k, (R.F k).C.Sout = 1) :
    Tendsto (fun k => ∫⁻ ω, ⨆ ϱ ∈ Icc R.ϱlo R.ϱhi,
        ENNReal.ofReal ((sameTimeZ (R.F k) (S k) ϱ t ω - halfZTotIn (R.F k) ϱ) ^ 2) ∂(P k))
      atTop (𝓝 0) := by
Muon.Volatility.thm_app_vol_half_same_iv_centered source
theorem thm_app_vol_half_same_iv_centered {Ω : ℕ → Type} [∀ k, MeasurableSpace (Ω k)]
    (R : SetupRegime) (P : ∀ k, Measure (Ω k)) [∀ k, IsProbabilityMeasure (P k)]
    (S : ∀ k, FrozenSamples (P k) (R.m k) (R.n k) (R.B k)) (t : ℤ)
    (hOut : ∀ k, (R.F k).C.Sout = 1) :
    Tendsto (fun k => ∫⁻ ω, ⨆ ϱ ∈ Icc R.ϱlo R.ϱhi,
        ENNReal.ofReal ((sameTimeZc (R.F k) (S k) ϱ t ω - halfZTotIn (R.F k) ϱ) ^ 2) ∂(P k))
      atTop (𝓝 0) := by