Phases of Muoncompanion
From mathematical prose to a formal statement

One theorem, two languages.

The dynamical comparison theorem connects the random algorithm to its deterministic dynamics. Here is its written statement alongside the Lean statements that formalize it.

Hover to preview a match. Click a phrase or a Lean line to keep it highlighted and bring its counterpart into view. Keyboard: Tab, then Enter or Space.

Try a conclusion:
Follow the correspondenceThe highlighted phrases and lines are curated links to the actual source, including the definitions hidden behind Lean names.
Written statement

Theorem SE.1 · Dynamical comparison

H.1 in the paper
Theorem SE.1 (Dynamical comparison)
Fix \(\macrostep>0\), \(\ridge>0\), \(\bmom\in[0,1)\), \(\gamma_\star<\infty\), \(C_\Sigma\ge1\), \(E_\star<\infty\), \(c_M<\infty\) and \(0<r_0\le r_1<\infty\). Along a sequence of dimensions with \(B\to\infty\) assume:
  1. (H1)
    Assumption S1 and Assumption S2 hold with deterministic covariances, \(\max(\Nin,\Nout)\le\gamma_\star B\) and \(\norm{\Sigmain},\norm{\Sigmaout}\le C_\Sigma\);
  2. (H2)
    the algorithm of Definition SA.2 is run with momentum \(\bmom\), normalized ridge \(\ridge\) and step \(\lr_t=\macrostep/B\);
  3. (H3)
    \(W_0\) is deterministic, \(\norm{\Delta_0}_\F^2\le E_\star\), \(r_0\le\cR(0)\le r_1\), and \(\norm{\widehat A_0}\to0\);
  4. (H4)
    the initial buffer \(M^\circ_{-1}\) is independent of all batches and \(\EE\norm{M^\circ_{-1}}_\F^2\le c_MB\).
Let \(T_\star\) be given by (SE.10) and let \((\fQ_{ij})\) be the solution of (SE.7) of Proposition SE.1. Then the following hold.
  1. (i)
    With probability tending to one,
    \[ t_{\rm stop}>BT_\star,\qquad \inf_{t\le BT_\star}\cR(t)\ge r_0/2,\qquad \sup_{t\le BT_\star}\norm{\Dt}_\F^2\le E_\star+1. \]
  2. (ii)
    \(\sup_{\macrotime\le T_\star}\norm{\chi^{\mathrm{act}}(\macrotime)-\chi^{\mathrm{ode}}(\macrotime)}_\BL\to0\) in probability.
  3. (iii)
    \(\sup_{\macrotime\le T_\star}\norm{\mu\lambda\,(\chi^{\mathrm{act}}(\macrotime)-\chi^{\mathrm{ode}}(\macrotime))}_\BL\to0\) and \(\sup_{\macrotime\le T_\star}\abs{\cR(\lfloor B\macrotime\rfloor)-\fRisk(\macrotime)}\to0\) in probability.
  4. (iv)
    On the event of (i), \(\sup_{t\le BT_\star}\norm{\Ahat}\to0\) in probability.
Exact source · Lean 4
theorem thm_app_dyn_main_ii    (cert : Muon.External.GaussianOpNorm) (certOp : Muon.External.GaussianOpNormL6)    (certP : Muon.External.GaussianPoincare) (certQ : Muon.External.GaussianQuadFormLp)    (hB : Tendsto (fun k : ℕ => B k) atTop atTop)    (F : ∀ k : ℕ, FrozenParams (m k) (n k) (B k))    (hyp : DynHyp p P m n B (fun k => (F k).C))    (S : ∀ k : ℕ, SpectralData (F k).C)    (c : ∀ k : ℕ, DynCoeff p (S k) (B k))    (hc : ∀ k : ℕ, IsActualCoeff cert (F k) (S k) (c k))    (e : ∀ k : ℕ, ℝ → Fin (m k) → Fin (n k) → ℝ)    (he : ∀ k : ℕ, def_app_dyn_ode p (S k) (c k) (dev0 hyp k) (Tstar p) (e k)) :    (∀ k : ℕ, ∀ ω : Ω, ∀ τ ∈ Icc (0 : ℝ) (Tstar p), ∀ φ ∈ blTest p.CSig,      Integrable φ (actMeas hyp S k ω τ) ∧        Integrable φ (odeMeasure (B k : ℝ) (S k).μ (S k).lam (e k τ))) ∧    ∀ ε : ℝ, 0 < ε → Tendsto (fun k : ℕ => P {ω | ENNReal.ofReal ε <      ⨆ τ ∈ Icc (0 : ℝ) (Tstar p), ENNReal.ofReal        (blDist p.CSig (actMeas hyp S k ω τ) (odeMeasure (B k : ℝ) (S k).μ (S k).lam (e k τ)))})      atTop (𝓝 0) := by

In the convergence statements, ∀ ε : ℝ, 0 < ε → … expands “in probability”: for each positive tolerance, the probability of exceeding it tends to zero. The highlight links explain this correspondence at the level of clauses and definitions.

Continue exploring the proofs ↗