Here is a part of my notes on compressed sensing. Suppose we are given an underdetermined linear system of equations $Y=AX$. For a unique solution,
What we need:
subtraction of no two $k$-sparse vectors ($x_1$, $x_2$) must be in nullspace of $A$.
What is required for the following to hold:
since the subtraction of two $k$-sparse vectors is at most $2k$-sparse, $2k$ columns of the matrix must be linearly independent then no $k$-sparse vector will be in null space of $A$.
I don't understand the part where a connection between sparsity and the columns of the matrix being linearly independent is made. An explanation would be great.
The $k$-sparse solution of the underdetermined system is unique if ... (each of the two given statements)
Assume $\mathbf{y}=\mathbf{A}\mathbf{x}_1$ and $\mathbf{y}=\mathbf{A}\mathbf{x}_2$, and $\mathbf{x}_1$ and $\mathbf{x}_1$ are $k$-sparse vectors.
Obviously, in order to the system $\mathbf{y}=\mathbf{A}\mathbf{x}$ have a unique $k$-sparse solution, we should have $\mathbf{x}_1=\mathbf{x}_2$. This implies $\mathbf{A}\mathbf{x}_1=\mathbf{A}\mathbf{x}_2$, or $$\mathbf{A}(\mathbf{x}_1-\mathbf{x}_2)=\mathbf{0} \hspace{1cm}(1)$$ Now since both $\mathbf{x}_1$ and $\mathbf{x}_2$ are $k$-sparse, then $\mathbf{x}_1-\mathbf{x}_2$ would be $2k$-sparse at most. If the nullspace of $A$ contains no $2k$-sparse vectors, then only zero vector solves system $(1)$, i.e., $\mathbf{x}_1-\mathbf{x}_2=\mathbf{0}$, or $\mathbf{x}_1=\mathbf{x}_2$ which is the desired.
This is equivalent to claim that
To prove it, assume $S$ is the support of the $2k$-sparse vector $\mathbf{z}=\mathbf{x}_1-\mathbf{x}_2$ (i.e. $S$ contains the nonzero indices of $\mathbf{z}$). Then $\mathbf{A}\mathbf{z}=\mathbf{A}_S\mathbf{z}_S=\mathbf{0}$ where $\mathbf{A}_S$ is a submatrix of $\mathbf{A}$ with columns indicated by $S$ (since other elements of $\mathbf{z}$ are zero). If the columns of $\mathbf{A}_S$ are linearly independent, then $\mathbf{z}_S=\mathbf{0}$ is the unique solution (consequently). Note thet $|S|=2k$ and therefore, $\mathbf{A}_S$ has $2k$ columns. The fact that $S$ is the set of all combinations of indices with cardinality $2k$ and $\mathbf{z}$ can be all possible $2k$-sparse vectors yields the expected conclusion.