How can we prove the following:
If a matrix $A \in \mathbb{C}^{n\times n} $ is invertible, then $\begin{bmatrix} A & I \\ I & X\\ \end{bmatrix} \in \mathbb{C}^{2n\times 2n}$ has the same rank as $A$ if and only if $X=A^{-1}.$
I would appreciate any hints or ideas to show this.