Matrix rigidity #
The rigidity Matrix.rigidity A r of a matrix A over a field is the least number of entries
of A that must be changed to bring its rank down to at most r: the Hamming distance from A
to the set of matrices of rank at most r. This is [Lok09], Definition 2.1,
R_A(r) = min {|C| : rank (A + C) ≤ r}, where |C| is the number of nonzero entries of C. Here
B = A + C is the changed matrix, so |C| is the number of entries where A and B differ
(Matrix.diffCount). The target is rank at most r, as in [Lok09], not rank exactly r.
Valiant introduced rigidity [Val77] to prove lower bounds on linear circuits: highly rigid
matrices have no linear circuits of linear size and logarithmic depth
(Cslib.Circuits.Circuit.Computes.rigidity_le).
Changing one entry changes the rank by at most one, so A must lose rank A - r rank and every
matrix needs at least rank A - r changes (Matrix.rank_sub_le_rigidity). For the identity matrix
of size n this is exact: rigidity 1 r = n - r (Matrix.rigidity_one). Conversely, when
r ≤ rank A, choosing an invertible r × r submatrix and replacing the complementary
(|m| - r) × (|n| - r) block by the Schur-complement product of the bordering blocks brings the
rank down to r, so A.rigidity r ≤ (|m| - r) (|n| - r) (Matrix.rigidity_le_mul_sub, and
(|n| - r) ^ 2 for square matrices in Matrix.rigidity_le_sq_sub; [Lok09], §2.1, p. 11).
Main definitions #
Matrix.diffCount A B: the number of entries whereAandBdiffer.Matrix.rigidity A r: the leastdiffCount A Bover matricesBof rank at mostr.
Main results #
Matrix.rigidity_le: a matrixBof rank at mostrbounds the rigidity bydiffCount A B.Matrix.exists_rigidity_eq: some matrix of rank at mostrattains the rigidity.Matrix.rigidity_antitone: rigidity decreases as the target rank grows.Matrix.rigidity_eq_zero_iff: rigidity is zero exactly when the rank is already at mostr.Matrix.rigidity_zero: at target rank zero, rigidity counts the nonzero entries.Matrix.rigidity_le_mul_sub,Matrix.rigidity_le_sq_sub: everym × nmatrix has rigidity at most(|m| - r) (|n| - r)(and(|n| - r) ^ 2when square).Matrix.rank_le_diffCount_zero: the rank is at most the number of nonzero entries.Matrix.rank_sub_diffCount_le_rank,Matrix.rank_sub_le_rigidity: each change lowers the rank by at most one, so every matrix needs at leastrank A - rchanges.Matrix.rigidity_one: the identity matrix of sizenhas rigidityn - r.
References #
- S. V. Lokam, Complexity Lower Bounds using Linear Algebra, Definition 2.1 and §2.1, p. 11
- L. G. Valiant, Graph-theoretic arguments in low-level complexity
The number of entries where the matrices A and B differ.
This counts differing positions with Set.ncard, which returns 0 on infinite sets.
Matrix.rigidity and the rigidity results below are therefore meant for finite m and n,
where diffCount equals the true Hamming distance on m × n; each result assumes as much
finiteness ([Finite _] or [Fintype _]) as its proof needs.
The number of differing entries is the sum over the rows of the number of differing entries in each row.
Upper bound on matrix rigidity ([Val77]; [Lok09], §2.1, p. 11, for square
matrices). Every m × n matrix over a field has rigidity at most (|m| - r) (|n| - r) at target
rank r: if rank A ≤ r no changes are needed, and if r < rank A then A contains an
invertible r × r submatrix A_{I, J}, so A_{·, J} A_{I, J}⁻¹ A_{I, ·} has rank at most r
and agrees with A on all of I × n and m × J.
The identity matrix of size n has rigidity exactly n - r: zeroing all but r diagonal
entries attains the lower bound Matrix.rank_sub_le_rigidity.