Variance contraction of doubly stochastic averaging over a connected window
ProvedDistAvgNOOT.lemma_5Let be real matrices and for all . Assume (Assumption 1 of the source) that every is doubly stochastic (nonnegative entries, all row sums and all column sums equal to ), has positive diagonal entries, and that every positive entry satisfies . Let
be the sample variance. Fix a window of times and suppose that the undirected graph on whose edges are the pairs , , with for some in the window is connected. Then
This is Lemma 5 of the source, which is stated there for the windows under Assumption 3. Connectivity of the undirected union graph on the window implies Assumption 3 for that window (the argument of Lemma 3), and Lemma 5's proof uses only the window in question. So the statement is formalized for a single arbitrary window, with the connectivity hypothesis in Lemma 3's form. When the claim is trivial; otherwise it is exactly the source's ratio bound .
import Mathlib
namespace DistAvgNOOT
/-- Nedić–Olshevsky–Ozdaglar–Tsitsiklis, Lemmas 3 and 5: over a window of `B` steps whose
union graph is connected, the sample variance contracts by the factor `1 - η / (2 n ^ 2)`. -/
theorem lemma_5 {n : ℕ} (A : ℕ → Matrix (Fin n) (Fin n) ℝ) (η : ℝ)
(hnn : ∀ t i j, 0 ≤ A t i j)
(hrow : ∀ t i, ∑ j, A t i j = 1) (hcol : ∀ t j, ∑ i, A t i j = 1)
(hdiag : ∀ t i, 0 < A t i i)
(hη : ∀ t i j, 0 < A t i j → η ≤ A t i j)
(t0 B : ℕ)
(hconn : (⨆ t ∈ Finset.Ico t0 (t0 + B),
SimpleGraph.fromRel (fun i j : Fin n => 0 < A t i j)).Connected)
(x : ℕ → Fin n → ℝ) (hx : ∀ t, x (t + 1) = (A t).mulVec (x t)) :
∑ i, (x (t0 + B) i - (∑ j, x (t0 + B) j) / n) ^ 2 ≤
(1 - η / (2 * (n : ℝ) ^ 2)) * ∑ i, (x t0 i - (∑ j, x t0 j) / n) ^ 2 := by
sorry
end DistAvgNOOT