I read the probabilistic proof of the Gilbert Varshamov bound in Coding Theory, and I came across the following argument, which I would like to discuss:
Suppose that $G$ is a random matrix in $M_ {n×k} (\Bbb Z_2) $. We fix a non zero element $x=(x_1,\dots,x_n)\in \Bbb Z_2^k$.
Then, the element $Gx$ is distributed uniformly in the set $\Bbb Z_2 ^n$.
My intuition says that as all the elements $a_{ij}$ of $G=(a_{ij}) \in M_{n×k} (\Bbb Z_2)$ are picked at random, any element has the form $y=Gx=(a_{11} x_1+\dotsb +a_{ 1k} x_k,\dots, a_{n1}x_1+\dotsb +a_{nk} x_k)$ is just a random element of $\Bbb Z_2^n$ and thus has equal probability of occurrence $1/2^n$.
Update: The proof uses that a random generator matrix $G$ of size ${\displaystyle k×n}$ contains ${\displaystyle kn}$ elements which are chosen independently and uniformly over the field $\mathbb {Z} _{2}$.
Is that correct? How could we show this more formally?
Since $(x_1,\ldots,x_n)$ is nonzero we can assume that at least one component, say $x_1$, is equal to $1.$
Clearly $x_1 U$ is equidistributed in $\mathbb{Z}_2$ if the random variable $U$ is equidistributed. Think of this $U$ as any random entry $a_{i,j}$ of the matrix.
Also clearly $x_1 U+c$ for any $c\in \mathbb{Z}_2$ is equidistributed. This is regardless of whether $c$ is deterministic or random with any distribution over $\mathbb{Z}_2$ since $x_1 U=U$ just flips the quantity $c$ between $0$ and $1$.
Finally any entry of $G x$ is of the form $x_1 U+c=U+c.$