Documentation

MerLeanBpqc.Definitions.Def_14_GraphExpansion

Definition 14: Graph Expansion #

Main Results #

Adjacency matrix is Hermitian #

The adjacency matrix of a simple graph over is Hermitian. For real matrices, Hermitian is equivalent to symmetric, and the adjacency matrix is symmetric by SimpleGraph.isSymm_adjMatrix.

Eigenvalues of the adjacency matrix #

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

The eigenvalues of the adjacency matrix G.adjMatrix ℝ, sorted in decreasing order and indexed by Fin (Fintype.card V).

Equations
Instances For

    The eigenvalues of the adjacency matrix are sorted in decreasing order (antitone): adjEigenvalues G i ≥ adjEigenvalues G j whenever i ≤ j.

    Second-largest eigenvalue and spectral gap #

    noncomputable def GraphExpansion.secondLargestEigenvalue {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (hcard : 2 Fintype.card V) :

    The second-largest eigenvalue λ₂ of the adjacency matrix, defined when the graph has at least 2 vertices (2 ≤ Fintype.card V). This is adjEigenvalues G ⟨1, _⟩, the eigenvalue at index 1 in the decreasing sequence.

    Equations
    Instances For
      noncomputable def GraphExpansion.spectralGap {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (s : ) (hcard : 2 Fintype.card V) :

      The spectral gap of a finite s-regular graph is (s : ℝ) - λ₂, where λ₂ is the second-largest eigenvalue of the adjacency matrix. A larger spectral gap indicates better expansion properties.

      Equations
      Instances For

        Expander families #

        def GraphExpansion.IsExpanderFamily (ι : Type u_2) (n : ι) (s : ) (G : (i : ι) → SimpleGraph (Fin (n i))) [(i : ι) → DecidableRel (G i).Adj] (hcard : ∀ (i : ι), 2 Fintype.card (Fin (n i))) :

        A family of s-regular simple graphs {X_i}_{i : ι} is a family of expanders if there exists ε > 0 such that the second-largest eigenvalue satisfies λ₂(X_i) ≤ s - ε for all i. Equivalently, the spectral gap is uniformly bounded below by ε across the family. The vertex sets are Fin (n i) with varying sizes n : ι → ℕ, each having at least 2 vertices (ensured by hcard). The regularity degree s is uniform across the family.

        Equations
        Instances For

          Ramanujan graphs #

          noncomputable def GraphExpansion.IsRamanujan {V : Type u_1} [Fintype V] [DecidableEq V] (G : SimpleGraph V) [DecidableRel G.Adj] (s : ) (hcard : 2 Fintype.card V) :

          A finite s-regular graph is Ramanujan if the second-largest eigenvalue satisfies the optimal bound λ₂ ≤ 2√(s - 1). This is the best possible bound on λ₂ for s-regular graphs, achieved by Ramanujan graphs.

          More precisely, a connected s-regular graph is Ramanujan if every eigenvalue λ of the adjacency matrix with |λ| < s satisfies |λ| ≤ 2√(s-1).

          Equations
          Instances For