The matrix M(X) of eq:matrix #
For a real matrix X,
M X = X ⊙ X + ∑_{i<j} (if X i j < 0 then (X i j)² else 0) • vecMulVec (e i - e j) (e i - e j).
When X is positive semidefinite this is PSD and entrywise nonnegative.
noncomputable def
BollobasNikiforov.laplacianCoeff
{n : Type u_1}
[LinearOrder n]
(X : Matrix n n ℝ)
(i j : n)
:
The correction weight on the pair {i,j}: (X i j)² when i < j and the
entry is negative, and 0 otherwise.
Instances For
noncomputable def
BollobasNikiforov.M
{n : Type u_1}
[Fintype n]
[DecidableEq n]
[LinearOrder n]
(X : Matrix n n ℝ)
:
The map of docs/sol.tex (eq:matrix).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The all-ones matrix, used as the Frobenius partner of M.
Equations
- BollobasNikiforov.ones = Matrix.of fun (x x_1 : n) => 1
Instances For
theorem
BollobasNikiforov.laplacianCoeff_nonneg
{n : Type u_1}
[LinearOrder n]
(X : Matrix n n ℝ)
(i j : n)
:
theorem
BollobasNikiforov.M_apply
{n : Type u_1}
[Fintype n]
[DecidableEq n]
[LinearOrder n]
(X : Matrix n n ℝ)
(a b : n)
:
Helpers for the rank-one Laplacian #
theorem
BollobasNikiforov.laplacianCoeff_correction_offDiag
{n : Type u_1}
[Fintype n]
[DecidableEq n]
[LinearOrder n]
(X : Matrix n n ℝ)
{i j : n}
(hij : i ≠ j)
:
∑ p : n, ∑ q : n, laplacianCoeff X p q * Matrix.vecMulVec (e p - e q) (e p - e q) i j = -laplacianCoeff X i j - laplacianCoeff X j i
MX03 — off-diagonal formula #
MX02 — PSD and entrywise nonnegativity #
theorem
BollobasNikiforov.M_posSemidef
{n : Type u_1}
[Fintype n]
[DecidableEq n]
[LinearOrder n]
{X : Matrix n n ℝ}
(hX : X.PosSemidef)
:
(M X).PosSemidef
theorem
BollobasNikiforov.M_nonneg
{n : Type u_1}
[Fintype n]
[DecidableEq n]
[LinearOrder n]
{X : Matrix n n ℝ}
(hX : X.PosSemidef)
(i j : n)
:
MX04 — all-ones identities #
theorem
BollobasNikiforov.sub_single_dotProduct_one
{n : Type u_1}
[Fintype n]
[DecidableEq n]
(i j : n)
:
theorem
BollobasNikiforov.vecMulVec_sub_single_mulVec_one
{n : Type u_1}
[Fintype n]
[DecidableEq n]
(i j : n)
:
theorem
BollobasNikiforov.inner_ones_vecMulVec_sub_single
{n : Type u_1}
[Fintype n]
[DecidableEq n]
(i j : n)
:
theorem
BollobasNikiforov.inner_ones_M
{n : Type u_1}
[Fintype n]
[DecidableEq n]
[LinearOrder n]
(X : Matrix n n ℝ)
:
MX05 — continuity and scaling #
theorem
BollobasNikiforov.laplacianCoeff_eq_min
{n : Type u_1}
[LinearOrder n]
(X : Matrix n n ℝ)
(i j : n)
:
theorem
BollobasNikiforov.continuous_laplacianCoeff
{n : Type u_1}
[LinearOrder n]
(i j : n)
:
Continuous fun (X : Matrix n n ℝ) => laplacianCoeff X i j
theorem
BollobasNikiforov.continuous_M
{n : Type u_1}
[Fintype n]
[DecidableEq n]
[LinearOrder n]
:
Continuous fun (X : Matrix n n ℝ) => M X
theorem
BollobasNikiforov.laplacianCoeff_smul_sq
{n : Type u_1}
[LinearOrder n]
(c : ℝ)
(hc : 0 ≤ c)
(X : Matrix n n ℝ)
(i j : n)
: