Section SE · From the algorithm to the deterministic dynamics
Proved in Lean
Lemma SE.21 (Delayed projections and prefixes)
Let \(\mathcal W\) be a linear map on \(\R^{\Nout\times\Nin}\) with \(\norm{\mathcal W}_{\F\to\F}\le c_W\).
- (i)For every \(u\ge\mathsf q\), \(\EE\big[\mathbf 1_{u-\mathsf q<\tau^+}\abs{\langle\mathcal W\Delta_u,{\mathsf S}_u\rangle}\big]\le C\mathsf q\).
- (ii)For every \(t\ge\mathsf q\), \(\EE\big[\mathbf 1_{t<\tau^+}\big|\sum_{r<\mathsf q}\langle\mathcal W\Dt,{\mathsf S}_{t+r}\rangle\big|\big]\le C\mathsf q^2\).
- (iii)For every \(t\ge\mathsf q\), with the chains at time \(t\) and \(0\le r\le\mathsf q\), \(\EE\big[\mathbf 1_{t<\tau^+}\abs{\langle\Sigmaout\Dt\Sigmain,\widehat V_r-V_r\rangle}\big]\le\min\big(C\mathsf q,\ C\sqrt B\bmom^{r+1}\big)\), and for every \(r\ge0\) the second bound holds.
Consequently, with \(\Omega_\bmom(\epsilon)\defeq\sum_{r\ge0}\min(\epsilon,\bmom^{r+1})\) and \(\epsilon_B\defeq\mathsf q/\sqrt B\),
\begin{equation}\tag{SE.27}
\frac{1}{\sqrt B}\sum_{r<L}\EE\big[\mathbf 1_{t<\tau^+}\abs{\langle\Sigmaout\Dt\Sigmain,\widehat V_r-V_r\rangle}\big]\le C\big(\Omega_\bmom(\epsilon_B)+\bmom^{\mathsf q}\big),
\end{equation}
and \(\Omega_\bmom(\epsilon)\le C\epsilon(1+\log(1/\epsilon))\) for \(0<\epsilon\le1\), with \(\Omega_0=0\).
Proof.
For (i), put \(a\defeq u-\mathsf q\) and \(D\defeq\Delta_a\), and consider the chains at time \(a\), with stationary updates \(V^{(a)}_r\) and same-buffer updates \(\widehat V^{(a)}_r\) built from \(m=M^\circ_{a-1}\). On \(\{a<\tau^+\}\), \(D\in\mathcal A^+\), and by Lemma SE.14(ii) the states up to step \(u\) lie in \(\mathcal A^{++}\); the risk stays bounded below on this window even if it crosses \(\tau^+\). Decompose
\[
\langle\mathcal W\Delta_u,{\mathsf S}_u\rangle=\langle\mathcal WD,V^{(a)}_{\mathsf q}\rangle+\langle\mathcal WD,{\mathsf S}_u-V^{(a)}_{\mathsf q}\rangle+\langle\mathcal W(\Delta_u-D),{\mathsf S}_u\rangle .
\]
By (SE.15) and Lemma SE.19 with \(T=\mathcal WD\), \(\EE_a\abs{\langle\mathcal WD,V^{(a)}_{\mathsf q}\rangle}\le C+C\log(2B)\). By Lemma SE.16(i),(ii) with \(r=\mathsf q\), \(\EE_a\abs{\langle\mathcal WD,{\mathsf S}_u-V^{(a)}_{\mathsf q}\rangle}\le C\mathsf q+C\bmom^{\mathsf q+1}(\norm m_\F+\sqrt B)\). By Lemma SE.14(i), \(\abs{\langle\mathcal W(\Delta_u-D),{\mathsf S}_u\rangle}\le c_W\norm{\Delta_u-D}_\F\norm{{\mathsf S}_u}_\F\le C\mathsf q\). The indicator \(\mathbf 1_{a<\tau^+}\) is decided by the past at \(a\); multiplying by it, taking expectations and using \(\EE[\mathbf 1_{a<\tau^+}\norm m_\F]\le C\sqrt B\) from Lemma SE.15 gives at most \(C\log(2B)+C\mathsf q+C\sqrt B\bmom^{\mathsf q}\le C\mathsf q\).
For (ii), write \(\langle\mathcal W\Dt,{\mathsf S}_{t+r}\rangle=\langle\mathcal W\Delta_{t+r},{\mathsf S}_{t+r}\rangle+\langle\mathcal W(\Dt-\Delta_{t+r}),{\mathsf S}_{t+r}\rangle\). Since \(t+r-\mathsf q\le t\), \(\mathbf 1_{t<\tau^+}\le\mathbf 1_{t+r-\mathsf q<\tau^+}\), and (i) with \(u=t+r\) bounds the first term by \(C\mathsf q\); the second is at most \(Cr\) by Lemma SE.14(i). Summing over \(r<\mathsf q\) proves (ii).
For (iii), let \(D=\Dt\) and write \(\Sigma_D\defeq\Sigmaout D\Sigmain\). The first bound follows from
\[
\abs{\langle\Sigma_D,\widehat V_r\rangle}\le\abs{\langle\Sigmaout\Delta_{t+r}\Sigmain,{\mathsf S}_{t+r}\rangle}+\abs{\langle\Sigmaout(D-\Delta_{t+r})\Sigmain,{\mathsf S}_{t+r}\rangle}+\abs{\langle\Sigma_D,\widehat V_r-{\mathsf S}_{t+r}\rangle},
\]
whose three terms have expectations, with the indicator, at most \(C\mathsf q\) by (i) for \(\mathcal WX=\Sigmaout X\Sigmain\), at most \(Cr\) by Lemma SE.14(i), and at most \(Cr\) by Lemma SE.16(i); together with \(\EE_t\abs{\langle\Sigma_D,V_r\rangle}\le C\log(2B)\), from (SE.15) and Lemma SE.19. The second bound is Lemma SE.16(ii) with Lemma SE.15.
For (SE.27), use the minimum of the two bounds of (iii) for \(r\le\mathsf q\), divided by \(\sqrt B\), and the second bound for \(r>\mathsf q\), whose sum is at most \(C\bmom^{\mathsf q}\). For the bound on \(\Omega_\bmom\), let \(r_\epsilon\) be the least \(r\) with \(\bmom^{r+1}\le\epsilon\); then \(r_\epsilon\le\log(1/\epsilon)/\log(1/\bmom)\), and \(\Omega_\bmom(\epsilon)\le r_\epsilon\epsilon+\sum_{r\ge r_\epsilon}\bmom^{r+1}\le r_\epsilon\epsilon+\epsilon/(1-\bmom)\).
Uses
- Lemma SE.14 Movement
- Lemma SE.7 Finite mean and susceptibility
- Lemma SE.19 Projection variance
- Lemma SE.16 Coupling
- Lemma SE.15 Stopped buffer moments
Used by
- Proposition SE.5 Tangent transport
- Proposition SE.6 Post-prefix response
- Lemma SE.26 Block residual
Lean
Proved in Lean
Muon.Dynamics.lem_app_dyn_prefix_i source
theorem lem_app_dyn_prefix_i (certP : Muon.External.GaussianPoincare) (certOp : Muon.External.GaussianOpNormL6) (p : DynParams) :
∀ cW : ℝ, 0 ≤ cW → ∃ B0 : ℕ, ∃ K : ℝ,
∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(m n B : ℕ) (S : DynSetup p P m n B) (W : Mat m n →ₗ[ℝ] Mat m n),
B0 ≤ B → (∀ X : Mat m n, fro (W X) ≤ cW * fro X) →
∀ u : ℕ, prefixLen p.β B ≤ u →
Integrable ({ω | ((u - prefixLen p.β B : ℕ) : ℕ∞) < tauPlus p S ω}.indicator
(fun ω => |frobIP (W (dynDelta S u ω)) (dynUpd S u ω)|)) P ∧
∫ ω, {ω | ((u - prefixLen p.β B : ℕ) : ℕ∞) < tauPlus p S ω}.indicator
(fun ω => |frobIP (W (dynDelta S u ω)) (dynUpd S u ω)|) ω ∂P
≤ K * (prefixLen p.β B : ℝ) := byMuon.Dynamics.lem_app_dyn_prefix_ii source
theorem lem_app_dyn_prefix_ii (certP : Muon.External.GaussianPoincare) (certOp : Muon.External.GaussianOpNormL6) (p : DynParams) :
∀ cW : ℝ, 0 ≤ cW → ∃ B0 : ℕ, ∃ K : ℝ,
∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(m n B : ℕ) (S : DynSetup p P m n B) (W : Mat m n →ₗ[ℝ] Mat m n),
B0 ≤ B → (∀ X : Mat m n, fro (W X) ≤ cW * fro X) →
∀ t : ℕ, prefixLen p.β B ≤ t →
Integrable ({ω | (t : ℕ∞) < tauPlus p S ω}.indicator
(fun ω => |(∑ r ∈ Finset.range (prefixLen p.β B), frobIP (W (dynDelta S t ω)) (dynUpd S (t + r) ω))|)) P ∧
∫ ω, {ω | (t : ℕ∞) < tauPlus p S ω}.indicator
(fun ω => |(∑ r ∈ Finset.range (prefixLen p.β B), frobIP (W (dynDelta S t ω)) (dynUpd S (t + r) ω))|) ω ∂P
≤ K * (prefixLen p.β B : ℝ) ^ 2 := byMuon.Dynamics.lem_app_dyn_prefix_iii source
theorem lem_app_dyn_prefix_iii (certP : Muon.External.GaussianPoincare) (certOp : Muon.External.GaussianOpNormL6) (p : DynParams) :
∃ B0 : ℕ, ∃ K : ℝ,
∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(m n B : ℕ) (S : DynSetup p P m n B),
B0 ≤ B → ∀ t : ℕ, prefixLen p.β B ≤ t → ∀ r : ℕ,
Integrable ({ω | (t : ℕ∞) < tauPlus p S ω}.indicator
(fun ω => |frobIP (S.C.Sout * dynDelta S t ω * S.C.Sin) (dynErrV p S t r ω)|)) P ∧
(r ≤ prefixLen p.β B →
∫ ω, {ω | (t : ℕ∞) < tauPlus p S ω}.indicator
(fun ω => |frobIP (S.C.Sout * dynDelta S t ω * S.C.Sin) (dynErrV p S t r ω)|) ω ∂P
≤ K * (prefixLen p.β B : ℝ)) ∧
∫ ω, {ω | (t : ℕ∞) < tauPlus p S ω}.indicator
(fun ω => |frobIP (S.C.Sout * dynDelta S t ω * S.C.Sin) (dynErrV p S t r ω)|) ω ∂P
≤ K * Real.sqrt (B : ℝ) * p.β ^ (r + 1) := byMuon.Dynamics.lem_app_dyn_prefix_iv source
theorem lem_app_dyn_prefix_iv (p : DynParams) :
∃ K : ℝ, (∀ ε : ℝ, 0 < ε → ε ≤ 1 → omegaBeta p.β ε ≤ K * ε * (1 + Real.log (1 / ε))) ∧
(∀ ε : ℝ, 0 ≤ ε → omegaBeta 0 ε = 0) := by