Let $X$ and $Y$ be $n\times n$ real matrices and $S$ be a diagonal matrix with $\pm 1$ on the diagonal. If $$ \det(SX + Y) = 0 $$ for all choices of $S$, then $Y$ is singular. One way to see this is to pick $S$ uniformly at random, and then use multi-linearity of the determinant and the permutation expansion to get that $$ \mathbf{E}_S\left[ \det(SX + Y)\right] = \det(Y) $$ This sort of thing seems like it must be extremely well-known and should be in a book (or an exercise in a book) about random matrices.
My question is which book?