(To make things a bit easier perhaps, we assume that $A,B$ are symmetric at least. If you find out that this assumption can be dropped, please also give your stronger version of course.)
Prove that: $B$ is PSD (positive semi-definite) iff for any $A$ PSD we have $$r(A+B)=r([A |B])$$ where $r$ denotes the matrix rank and $|$ denotes matrix concatenation.
This might be one of the few times that I haven't had any clue to the problem I'm asking on this site.
Any help?
I assume that both $A$ and $B$ are symmetric.
For one direction: suppose that $A$ is positive semidefinite. Then the kernel of $A$ is spanned by the $x$ satisfying $x^TAx = 0$. Conclude that $\ker(A + B) = \ker(A) \cap \ker(B)$. Similarly, note that $$ \operatorname{rank}\pmatrix{A & B} = \operatorname{rank}\pmatrix{A & B}^T = \operatorname{rank}\pmatrix{A\\B} $$ and $$ \pmatrix{A\\B}x = \pmatrix{Ax\\Bx} \implies \ker \pmatrix{A\\B} = \ker(A) \cap \ker(B) $$ Conversely, suppose that $A$ is symmetric but not positive semidefinite. Let $x$ be a unit eigenvector of $B$ associated with a negative eigenvalue, $- \mu$. If we take $B = \mu xx^T$, then we find that $$ \operatorname{rank}(A + B) = \operatorname{rank}(A) - 1\\ \operatorname{rank}(A\mid B) = \operatorname{rank}(A) $$