The signature of a Hermitian matrix #
The signature of a Hermitian matrix is the number of its positive eigenvalues minus the number
of its negative ones, the difference of the two indices of inertia of the Hermitian form
x ↦ xᴴ A x. Mathlib's eigenvalues of a Hermitian matrix are real over any RCLike field, so
Matrix.IsHermitian.signature is defined at that generality.
The theory is developed over an RCLike field. A Hermitian form there is related to a real
quadratic form through Matrix.realify, which turns it into a real quadratic form of twice the
rank (Matrix.IsHermitian.signature_realify).
That identity is what makes the real theory available here. In particular Sylvester's law of
inertia over an RCLike field (Matrix.IsHermitian.signature_congr: the signature is unchanged
by A ↦ P * A * Pᴴ for invertible P) follows from its real counterpart
Matrix.signature_congr, and the signature of a real symmetric matrix read as a Hermitian
complex matrix is its real signature (Matrix.IsHermitian.signature_map_ofReal).
Main definitions #
Matrix.IsHermitian.signature: positive eigenvalues counted against negative ones.
Main results #
Matrix.IsHermitian.signature_diagonal: over anyRCLikefield, a real diagonal matrix counts its positive entries against its negative ones.Matrix.IsHermitian.signature_realify: the realification has twice the signature.Matrix.IsHermitian.signature_congr: Sylvester's law of inertia for Hermitian matrices.Matrix.IsHermitian.signature_fromBlocks_zero: additivity along a block diagonal.Matrix.IsHermitian.signature_eq_of_congr_diagonal: the signature read off an explicit diagonalising*-congruence.Matrix.IsHermitian.signature_map_ofReal: a real matrix keeps its real signature.Matrix.IsHermitian.signature_negandMatrix.IsHermitian.signature_map_starRingEnd: negation negates the signature, entrywise conjugation preserves it.
References #
- W. Ebeling, Lattices and Codes, Chapter 1, for the real theory this reduces to.
The signature of a Hermitian matrix: its positive eigenvalues counted against its negative ones.
The eigenvalues do not depend on the decidability of equality on the index type, so the local
decider here is invisible: Matrix.IsHermitian.signature_def identifies the definition with the
one read off any DecidableEq ι instance.
Equations
Instances For
The signature read off the eigenvalues for any DecidableEq ι instance.
Reindexing both coordinates of a Hermitian matrix along an equivalence does not change its signature.
The realification of a Hermitian matrix has twice its signature. Each eigenvalue of a Hermitian matrix occurs twice in the realified form.
Sylvester's law of inertia for Hermitian matrices. The signature is unchanged by
*-congruence A ↦ P * A * Pᴴ with P invertible.
A real matrix, read as a Hermitian matrix over an RCLike field, keeps its real signature.
The signature of a real diagonal matrix counts its positive entries against its negative ones.
The signature from an explicit diagonalising *-congruence.
Additivity of the signature along a block diagonal. The realification of a block-diagonal matrix is, after reindexing, the block diagonal of the two realifications.
A Hermitian matrix congruent to its negation by an invertible matrix has signature zero.
A two-dimensional Hermitian form with zero diagonal has signature zero, including when its off-diagonal entry vanishes.
Conjugating every entry of a Hermitian matrix preserves its signature: it is the congruence by the reflection negating the imaginary coordinates.