Documentation

LeanPool.BollobasNikiforov.Basic.Spectrum

Ordered spectrum of a Hermitian matrix #

This file records the ordered real spectrum of a Hermitian matrix, matching the conventions in docs/sol.tex. The ordered family is Mathlib's antitone eigenvalues₀, which is the paper's λ₁ ≥ ⋯ ≥ λₙ with λ₁ at index 0. F is the sum of squares of the two largest positive eigenvalues, with missing terms replaced by zero.

noncomputable def BollobasNikiforov.eigs₀ {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n } (hA : A.IsHermitian) :

The eigenvalues of a Hermitian matrix in nonincreasing order. The value at i is the paper's λ_{i+1}.

Equations
Instances For
    noncomputable def BollobasNikiforov.lambdaMax {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n } (hA : A.IsHermitian) [Nonempty n] :

    The largest eigenvalue λ₁(A).

    Equations
    Instances For
      noncomputable def BollobasNikiforov.lambdaSecond {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n } (hA : A.IsHermitian) [Nontrivial n] :

      The second-largest eigenvalue λ₂(A).

      Equations
      Instances For
        noncomputable def BollobasNikiforov.F {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n } (hA : A.IsHermitian) :

        The sum of squares of the two largest positive eigenvalues of a Hermitian matrix, with missing terms replaced by zero.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem BollobasNikiforov.F_eq {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n } (hA : A.IsHermitian) [Nontrivial n] :
          F hA = max (lambdaMax hA) 0 ^ 2 + max (lambdaSecond hA) 0 ^ 2
          theorem BollobasNikiforov.F_nonneg {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n } (hA : A.IsHermitian) :
          0 F hA
          theorem BollobasNikiforov.F_zero {n : Type u_1} [Fintype n] [DecidableEq n] :
          F = 0

          N11 — Adjacency Frobenius mass #

          The adjacency matrix is symmetric, so the Frobenius pairing with itself is the trace of the square.

          The diagonal of A_G² records vertex degrees.

          The Frobenius mass of the adjacency matrix is twice the number of edges.