Phases of Muoncompanion
Drift · cited in the main text
Proved in LeanTheorem numbering in the paper: Corollary I.1
With the solution \((\sigma,\tilde\sigma,\tilde s_1,s_1,q)\) of the weighted system for the EMA weights and \(\EE\Gt=\Sigmaout\Dt\Sigmain/\sqrt{2\cR(t)}\), the candidate update and the kernel function are ((SC.2), (SC.3) and (SC.4))
\[ \begin{gathered} \Gtildebar_\ridge=\frac2\pi\int_0^\infty T(\ridge+u^2)\,du,\qquad T(s)=s\,\Lw\big(q(-s)\big)\,\Rbar(-s)\,\EE\Gt\,\Rtbar(-s),\\ \mathfrak d(\mu,\lambda)=\frac{\sqrt2}{\pi}\int_0^\infty \frac{z\,\Lw(q(-z))\,\mu\lambda}{\big(z+\tilde s_1(-z)\mu\big)\big(z+s_1(-z)\lambda\big)}\,du, \qquad z=\ridge+u^2 . \end{gathered} \]
Here, as in (7), the letter \(z\) changes sign: it is the positive number \(\ridge+u^2\), and the solution of the system is evaluated at the negative spectral parameter \(-z\).
Corollary SC.1 (The drift kernel)
Under Assumption S3, let \(\Gtilde=\Qridge\ridge(\Mt)\) be the frozen-state update and put \((E_\ridge)_{ij}\defeq u_i^\T\big(\EE\Gtilde-\Gtildebar_\ridge\big)v_j\).
  1. (i)
    For every pair \((i,j)\) and every \(\ridge\in[\ridge_-,\ridge_+]\),
    \begin{equation}\tag{SC.11} \EE\big[u_i^\T\Gtilde v_j\big]=\frac{\sqrt2\,\mathfrak d(\mu_i,\lambda_j)}{\sqrt{2\cR(t)}}\,(u_i^\T\Dt v_j)+(E_\ridge)_{ij} =\frac{\mathfrak d(\mu_i,\lambda_j)}{\sqrt{\cR(t)}}\,(u_i^\T\Dt v_j)+(E_\ridge)_{ij}, \end{equation}
    and \(\sup_{\ridge\in[\ridge_-,\ridge_+]}\big(\sum_{i,j}(E_\ridge)_{ij}^2\big)^{1/2}=\varepsilon_B\to0\). Consequently the frozen-state drift (SA.19) of the update \(\Gtilde\) is
    \begin{equation}\tag{SC.12} \cD_{ij}(t)=\frac{\mathfrak d_{ij}}{\sqrt{\cR(t)}}\,\CMscr Q_{ij}(t)+(u_i^\T\Dt v_j)(E_\ridge)_{ij}, \qquad \mathfrak d_{ij}\defeq\mathfrak d(\mu_i,\lambda_j), \end{equation}
    and for every bounded function \(\phi\) on \([0,\infty)^2\),
    \begin{equation}\tag{SC.13} \Big|\sum_{i,j}\phi(\mu_i,\lambda_j)\,(u_i^\T\Dt v_j)\,(E_\ridge)_{ij}\Big|\le\norm\phi_\infty\,\norm{\Dt}_\F\,\varepsilon_B . \end{equation}
  2. (ii)
    In the frozen-state model with \(\max(\Nout,\Nin)\le\gamma_\star B\) and \(\norm{\Sigmaout},\norm{\Sigmain}\le C_\Sigma\), at every finite dimension and for every \(\ridge>0\), the function \(\mathfrak d\) is continuous on \([0,\infty)^2\), vanishes when \(\mu=0\) or \(\lambda=0\), and satisfies
    \begin{equation}\tag{SC.14} 0\le\mathfrak d(\mu,\lambda)\le\frac{\mu\lambda}{\sqrt{2\ridge}},\qquad \abs{\partial_\mu\mathfrak d(\mu,\lambda)}\le\frac{\lambda}{\sqrt{2\ridge}},\qquad \abs{\partial_\lambda\mathfrak d(\mu,\lambda)}\le\frac{\mu}{\sqrt{2\ridge}}, \end{equation}
    with one-sided derivatives at \(0\); in particular, for \(\ridge\in[\ridge_-,\ridge_+]\), \(\mathfrak d\) is Lipschitz on \([0,C_\Sigma]^2\) with constant \(C_\Sigma/\sqrt{2\ridge_-}\) in each variable.

Definitions and assumptions used

Assumption S3 (Spectrally diffuse proportional regime)
Assumption S3 (Spectrally diffuse proportional regime)
Assumption S1 and Assumption S2 hold, and we fix \(\gamma_\star<\infty\) and \(C_\Sigma\ge1\) with \(\max(\Nin,\Nout)\le\gamma_\star B\), \(\norm{\Sigmain}\le C_\Sigma\) and \(\norm{\Sigmaout}\le C_\Sigma\) along the whole sequence of dimensions; the covariances are deterministic. The momentum \(\bmom\in[0,1)\) is fixed, and the normalized ridge satisfies \(\ridge\in[\ridge_-,\ridge_+]\) for fixed \(0<\ridge_-\le\ridge_+<\infty\). The state is frozen as in Definition SA.3, with \(\cR(t)>0\), and the normalized state is spectrally diffuse: \(\norm{\Ahat}\to0\).
This corollary identifies the drift kernel of (6) and justifies (7) at a positive ridge. Under Assumption S3, that is, in the frozen-state model with a diffuse error, the expected update projected on the eigenpair \((u_i,v_j)\) is \(\mathfrak d_{ij}\,u_i^\T\Dt v_j/\sqrt{\cR(t)}\) up to an error \((E_\ridge)_{ij}\), so the drift of the mode is the projected risk times the kernel divided by the square root of the risk. The error matrix \(E_\ridge\) is small in Frobenius norm over all pairs together, not mode by mode; this is the form (SC.13) in which the dynamics uses it. Part (ii), valid at every dimension, gives the Lipschitz bound used by the deterministic equations. Nothing is claimed as \(\ridge\downarrow0\): the zero-ridge kernel of the main text is the formal specialization.
Proof sketch.
The expected update has the deterministic equivalent \(\Gtildebar_\ridge\) in Frobenius norm (Theorem SC.2, Section G.2). Writing the regularized polar map as the integral \(\frac2\pi\int_0^\infty(\Mt\Mt^\T+\ridge+u^2)^{-1}\Mt\,du\) of mixed resolvents, removing one sample at a time from the buffer and integrating it out by Stein’s identity gives a linear equation whose solution is \(T(s)\) up to \(o(1)\) in Frobenius norm (Theorem SC.1), and a bound of order \(1/s\) at large \(s\), valid at every dimension, controls the tail of the integral.
The candidate acts entrywise in the eigenbases, with the kernel as multiplier. Since \(\Rbar(-s)\) is a function of \(\Sigmaout\) and \(\Rtbar(-s)\) of \(\Sigmain\), and \(u_i^\T\Sigmaout\Dt\Sigmain v_j=\mu_i\lambda_j\,u_i^\T\Dt v_j\),
\[ u_i^\T T(s)v_j=\frac{s\,\Lw(q(-s))\,\mu_i\lambda_j}{\big(s+\tilde s_1(-s)\mu_i\big)\big(s+s_1(-s)\lambda_j\big)}\cdot\frac{u_i^\T\Dt v_j}{\sqrt{2\cR(t)}} . \]
Integrating at \(s=\ridge+u^2\) against \(\frac2\pi\,du=\sqrt2\cdot\frac{\sqrt2}{\pi}\,du\) gives exactly \(u_i^\T\Gtildebar_\ridge v_j=\mathfrak d_{ij}\,u_i^\T\Dt v_j/\sqrt{\cR(t)}\), which is (SC.11). Because the bases are orthonormal, \(\sum_{i,j}(E_\ridge)_{ij}^2=\norm{\EE\Gtilde-\Gtildebar_\ridge}_\F^2\le\varepsilon_B^2\). Multiplying by \(u_i^\T\Dt v_j\) gives (SC.12), and the Cauchy–Schwarz inequality over the pairs gives (SC.13).
The bounds of (ii) are read off the integrand. Since \(\tilde s_1,s_1\ge0\) and \(0\le\Lw\le1\), the integrand of (SC.4) lies between \(0\) and \(\mu\lambda/z\), and its \(\mu\)-derivative \(z^2\Lw\lambda/((z+\tilde s_1\mu)^2(z+s_1\lambda))\) lies between \(0\) and \(\lambda/z\). With
\[ \frac{\sqrt2}{\pi}\int_0^\infty\frac{du}{\ridge+u^2}=\frac{1}{\sqrt{2\ridge}}, \]
this gives (SC.14); the \(\lambda\)-derivative is symmetric.
Read the full proofOpens over this page; close it to come back here.

Proof engines

Depth

12 levels, 41 statements below it.

Lean

Proved in Lean
Muon.Drift.Erho source
noncomputable def Erho (w : ℕ → ℝ) (F : FrozenParams m n B) (SD : SpectralData F.C) (S : FrozenSamples P m n B)
    (t : ℤ) (ν ν' : FiniteMeasure ℝ) (ϱ : ℝ) : Matrix (Fin m) (Fin n) ℝ :=
Muon.Drift.dIdx source
noncomputable def dIdx (w : ℕ → ℝ) (F : FrozenParams m n B) (ν ν' : FiniteMeasure ℝ) (SD : SpectralData F.C) (ϱ : ℝ) (i : Fin m) :
    ℝ :=
Muon.Drift.kernel_diag_gbar source
theorem kernel_diag_gbar {CS γ : ℝ} (hC : 0 < CS) (hγ : 0 < γ)
    {w : ℕ → ℝ} (hw : WeightClass w) (F : FrozenParams m n B) (h : DriftBound F CS γ)
    (SD : SpectralData F.C) {ϱ : ℝ} (hϱ : 0 < ϱ) (i : Fin m) (j : Fin n) :
    Real.sqrt (SD.μ i * SD.lam j) *
        dotProduct (SD.u i) (Gbar w F (specOutFM F) (specInFM F) ϱ *ᵥ SD.v j) =
      Real.sqrt 2 * kernel w (specOutFM F) (specInFM F) ϱ (SD.μ i) (SD.lam j) *
        dotProduct (SD.u i) (F.A *ᵥ SD.v j) := by
Muon.Drift.cor_app_drift_kernel_ii source
theorem cor_app_drift_kernel_ii {CS γ : ℝ} (hC : 0 < CS) (hγ : 0 < γ)
    {w : ℕ → ℝ} (hw : WeightClass w) (F : FrozenParams m n B) (h : DriftBound F CS γ)
    {ϱ : ℝ} (hϱ : 0 < ϱ) :
    ContinuousOn (fun p : ℝ × ℝ => kernel w (specOutFM F) (specInFM F) ϱ p.1 p.2)
        (Ici 0 ×ˢ Ici 0) ∧
    (∀ lam : ℝ, kernel w (specOutFM F) (specInFM F) ϱ 0 lam = 0) ∧
    (∀ μ : ℝ, kernel w (specOutFM F) (specInFM F) ϱ μ 0 = 0) ∧
    (∀ μ lam : ℝ, 0 ≤ μ → 0 ≤ lam →
      0 ≤ kernel w (specOutFM F) (specInFM F) ϱ μ lam ∧
        kernel w (specOutFM F) (specInFM F) ϱ μ lam ≤ μ * lam / Real.sqrt (2 * ϱ)) ∧
    (∀ μ lam : ℝ, 0 ≤ μ → 0 ≤ lam →
      ∃ d : ℝ, HasDerivWithinAt (fun x => kernel w (specOutFM F) (specInFM F) ϱ x lam) d
          (Ici 0) μ ∧ |d| ≤ lam / Real.sqrt (2 * ϱ)) ∧
    (∀ μ lam : ℝ, 0 ≤ μ → 0 ≤ lam →
      ∃ d : ℝ, HasDerivWithinAt (fun y => kernel w (specOutFM F) (specInFM F) ϱ μ y) d
          (Ici 0) lam ∧ |d| ≤ μ / Real.sqrt (2 * ϱ)) := by
Muon.Drift.cor_app_drift_kernel_ii_lip source
theorem cor_app_drift_kernel_ii_lip {CS γ ϱlo ϱhi : ℝ} (hC : 0 < CS) (hγ : 0 < γ)
    (hlo : 0 < ϱlo) (hle : ϱlo ≤ ϱhi)
    {w : ℕ → ℝ} (hw : WeightClass w) (F : FrozenParams m n B) (h : DriftBound F CS γ)
    {ϱ : ℝ} (hϱ : ϱ ∈ Icc ϱlo ϱhi) :
    (∀ μ μ' lam : ℝ, μ ∈ Icc 0 CS → μ' ∈ Icc 0 CS → lam ∈ Icc 0 CS →
      |kernel w (specOutFM F) (specInFM F) ϱ μ lam - kernel w (specOutFM F) (specInFM F) ϱ μ' lam|
        ≤ CS / Real.sqrt (2 * ϱlo) * |μ - μ'|) ∧
    (∀ μ lam lam' : ℝ, μ ∈ Icc 0 CS → lam ∈ Icc 0 CS → lam' ∈ Icc 0 CS →
      |kernel w (specOutFM F) (specInFM F) ϱ μ lam - kernel w (specOutFM F) (specInFM F) ϱ μ lam'|
        ≤ CS / Real.sqrt (2 * ϱlo) * |lam - lam'|) := by
Muon.Drift.cor_app_drift_kernel_i_weights source
theorem cor_app_drift_kernel_i_weights (R : Muon.Setup.SetupRegime) {Ω : ℕ → Type} [∀ k, MeasurableSpace (Ω k)]
    (P : ∀ k, Measure (Ω k)) [∀ k, IsProbabilityMeasure (P k)]
    (S : ∀ k, FrozenSamples (P k) (R.m k) (R.n k) (R.B k)) (t : ℤ)
    (w : ℕ → ℝ) (hw : WeightClass w)
    (SD : ∀ k, SpectralData (R.F k).C) (Dt : ∀ k, Mat (R.m k) (R.n k))
    (hDt : ∀ k, (R.F k).A = Ahat (R.F k).C (Dt k)) (hRt : ∀ k, 0 < riskSigma (R.F k).C (Dt k)) :
    (∀ k, ∀ (i : Fin (R.m k)) (j : Fin (R.n k)), ∀ ϱ ∈ Icc R.ϱlo R.ϱhi,
      ∫ ω, dotProduct ((SD k).u i) (Q ϱ (WeightedBuf w (R.F k) (S k) t ω) *ᵥ (SD k).v j) ∂(P k) =
        (Real.sqrt 2 * kernel w (specOutFM (R.F k)) (specInFM (R.F k)) ϱ ((SD k).μ i) ((SD k).lam j)) / Real.sqrt (2 * riskSigma (R.F k).C (Dt k)) * dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) + Erho w (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j ∧
      ∫ ω, dotProduct ((SD k).u i) (Q ϱ (WeightedBuf w (R.F k) (S k) t ω) *ᵥ (SD k).v j) ∂(P k) =
        kernel w (specOutFM (R.F k)) (specInFM (R.F k)) ϱ ((SD k).μ i) ((SD k).lam j) / Real.sqrt (riskSigma (R.F k).C (Dt k)) * dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) + Erho w (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j) ∧
    (∀ k, BddAbove ((fun ϱ => Real.sqrt (∑ i : Fin (R.m k), ∑ j : Fin (R.n k),
        Erho w (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j ^ 2)) '' Icc R.ϱlo R.ϱhi) ∧
      (⨆ ϱ ∈ Icc R.ϱlo R.ϱhi, Real.sqrt (∑ i : Fin (R.m k), ∑ j : Fin (R.n k),
        Erho w (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j ^ 2)) =
        epsB w (R.F k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) R.ϱlo R.ϱhi) ∧
    Tendsto (fun k => epsB w (R.F k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) R.ϱlo R.ϱhi) atTop (𝓝 0) ∧
    (∀ k, ∀ (i : Fin (R.m k)) (j : Fin (R.n k)), ∀ ϱ ∈ Icc R.ϱlo R.ϱhi,
      dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) * ∫ ω, dotProduct ((SD k).u i) (Q ϱ (WeightedBuf w (R.F k) (S k) t ω) *ᵥ (SD k).v j) ∂(P k) =
        kernel w (specOutFM (R.F k)) (specInFM (R.F k)) ϱ ((SD k).μ i) ((SD k).lam j) / Real.sqrt (riskSigma (R.F k).C (Dt k)) * modeQ (SD k) (Dt k) i j +
          dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) * Erho w (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j) ∧
    (∀ k, ∀ ϱ ∈ Icc R.ϱlo R.ϱhi, ∀ (φ : ℝ → ℝ → ℝ) (C : ℝ),
      (∀ x y : ℝ, 0 ≤ x → 0 ≤ y → |φ x y| ≤ C) →
      |∑ i : Fin (R.m k), ∑ j : Fin (R.n k), φ ((SD k).μ i) ((SD k).lam j) *
          dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) * Erho w (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j| ≤
        C * fro (Dt k) * epsB w (R.F k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) R.ϱlo R.ϱhi) := by
Muon.Drift.cor_app_drift_kernel_i source
theorem cor_app_drift_kernel_i (R : Muon.Setup.SetupRegime) {Ω : ℕ → Type} [∀ k, MeasurableSpace (Ω k)]
    (P : ∀ k, Measure (Ω k)) [∀ k, IsProbabilityMeasure (P k)]
    (S : ∀ k, FrozenSamples (P k) (R.m k) (R.n k) (R.B k)) (t : ℤ)
    (SD : ∀ k, SpectralData (R.F k).C) (Dt : ∀ k, Mat (R.m k) (R.n k))
    (hDt : ∀ k, (R.F k).A = Ahat (R.F k).C (Dt k)) (hRt : ∀ k, 0 < riskSigma (R.F k).C (Dt k)) :
    (∀ k, ∀ (i : Fin (R.m k)) (j : Fin (R.n k)), ∀ ϱ ∈ Icc R.ϱlo R.ϱhi,
      ∫ ω, dotProduct ((SD k).u i) (Q ϱ (WeightedBuf (emaW R.β) (R.F k) (S k) t ω) *ᵥ (SD k).v j) ∂(P k) =
        (Real.sqrt 2 * kernel (emaW R.β) (specOutFM (R.F k)) (specInFM (R.F k)) ϱ ((SD k).μ i) ((SD k).lam j)) / Real.sqrt (2 * riskSigma (R.F k).C (Dt k)) * dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) + Erho (emaW R.β) (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j ∧
      ∫ ω, dotProduct ((SD k).u i) (Q ϱ (WeightedBuf (emaW R.β) (R.F k) (S k) t ω) *ᵥ (SD k).v j) ∂(P k) =
        kernel (emaW R.β) (specOutFM (R.F k)) (specInFM (R.F k)) ϱ ((SD k).μ i) ((SD k).lam j) / Real.sqrt (riskSigma (R.F k).C (Dt k)) * dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) + Erho (emaW R.β) (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j) ∧
    (∀ k, BddAbove ((fun ϱ => Real.sqrt (∑ i : Fin (R.m k), ∑ j : Fin (R.n k),
        Erho (emaW R.β) (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j ^ 2)) '' Icc R.ϱlo R.ϱhi) ∧
      (⨆ ϱ ∈ Icc R.ϱlo R.ϱhi, Real.sqrt (∑ i : Fin (R.m k), ∑ j : Fin (R.n k),
        Erho (emaW R.β) (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j ^ 2)) =
        epsB (emaW R.β) (R.F k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) R.ϱlo R.ϱhi) ∧
    Tendsto (fun k => epsB (emaW R.β) (R.F k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) R.ϱlo R.ϱhi) atTop (𝓝 0) ∧
    (∀ k, ∀ (i : Fin (R.m k)) (j : Fin (R.n k)), ∀ ϱ ∈ Icc R.ϱlo R.ϱhi,
      dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) * ∫ ω, dotProduct ((SD k).u i) (Q ϱ (WeightedBuf (emaW R.β) (R.F k) (S k) t ω) *ᵥ (SD k).v j) ∂(P k) =
        kernel (emaW R.β) (specOutFM (R.F k)) (specInFM (R.F k)) ϱ ((SD k).μ i) ((SD k).lam j) / Real.sqrt (riskSigma (R.F k).C (Dt k)) * modeQ (SD k) (Dt k) i j +
          dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) * Erho (emaW R.β) (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j) ∧
    (∀ k, ∀ ϱ ∈ Icc R.ϱlo R.ϱhi, ∀ (φ : ℝ → ℝ → ℝ) (C : ℝ),
      (∀ x y : ℝ, 0 ≤ x → 0 ≤ y → |φ x y| ≤ C) →
      |∑ i : Fin (R.m k), ∑ j : Fin (R.n k), φ ((SD k).μ i) ((SD k).lam j) *
          dotProduct ((SD k).u i) ((Dt k) *ᵥ (SD k).v j) * Erho (emaW R.β) (R.F k) (SD k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) ϱ i j| ≤
        C * fro (Dt k) * epsB (emaW R.β) (R.F k) (S k) t (specOutFM (R.F k)) (specInFM (R.F k)) R.ϱlo R.ϱhi) :=