Documentation

Averaging.RateDefs

Rate of convergence of the averaging dynamics: definitions #

Definitions for the rate bound of roadmap AVG-1: Becchetti, Clementi, Natale, Consensus Dynamics: An Overview, SIGACT News 51(1), 2020 (the Survey), Section 7.2, Theorem 33, which cites Lovász, Random walks on graphs: a survey, 1993, Theorem 5.1.

The values after t rounds are avgIter G t x (Averaging.Basic) and the t-step transition probabilities transW G t u v.

noncomputable def Averaging.walkMatrix {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] :

The transition matrix P = D⁻¹A of the random walk on G (Survey, footnote 24): P u v = 1 / d(u) if u ~ v and 0 otherwise (the row of an isolated node is zero).

Equations
Instances For
    noncomputable def Averaging.normAdjMatrix {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] :

    The normalized adjacency matrix N = D^{-1/2} A D^{-1/2}. When every degree is positive, P = D^{-1/2} N D^{1/2}, so P and N have the same eigenvalues (charpoly_walkMatrix).

    Equations
    Instances For

      N = D^{-1/2} A D^{-1/2} is real symmetric.

      noncomputable def Averaging.walkLambda {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] :

      λ of Theorem 33: λ = max {|λ₂(P)|, |λₙ(P)|}, where λ₁ ≥ λ₂ ≥ ⋯ ≥ λₙ are the eigenvalues of P = D⁻¹A, listed in decreasing order with multiplicity. They are computed as the eigenvalues of the similar symmetric matrix N = D^{-1/2} A D^{-1/2} (charpoly_walkMatrix), with Mathlib's Matrix.IsHermitian.eigenvalues₀, which is indexed from 0 (so λ₂ has index 1 and λₙ index n - 1). By convention λ = 0 when n < 2.

      Equations
      Instances For
        noncomputable def Averaging.walkStationary {V : Type u_1} [Fintype V] (G : SimpleGraph V) [DecidableRel G.Adj] (v : V) :

        The stationary distribution π(v) = d(v) / 2m of the random walk on G, where m is the number of edges (Survey, Theorem 32).

        Equations
        Instances For