[step:Construct a separated family of $k$-sparse binary vectors]Let
\begin{align*}
\mathcal{S}_{d,k} := \{v \in \{0,1\}^d : |\operatorname{supp}(v)| = k\}
\end{align*}
be the set of binary vectors with exactly $k$ ones. Let $d_H: \{0,1\}^d \times \{0,1\}^d \to \{0,1,\dots,d\}$ denote Hamming distance:
\begin{align*}
d_H(u,v) := |\{j \in \{1,\dots,d\} : u_j \neq v_j\}|.
\end{align*}
[claim:Gilbert-Varshamov packing for sparse supports]
There is a universal constant $c_{\mathrm{GV}} > 0$ and a subset $\mathcal{V} \subset \mathcal{S}_{d,k}$ such that
\begin{align*}
d_H(u,v) \geq \frac{k}{2}
\end{align*}
for all distinct $u,v \in \mathcal{V}$, and
\begin{align*}
\log |\mathcal{V}| \geq c_{\mathrm{GV}} k \log\left(\frac{d}{k}\right).
\end{align*}
[/claim]
[proof]
This is the constant-weight form of the [Gilbert-Varshamov bound](/page/Gilbert-Varshamov%20Bound), in its endpoint-uniform formulation: there is a numerical constant $c_{\mathrm{GV}}>0$ such that for every pair of integers $d,k$ with $1\leq k\leq d/2$, the constant-weight binary space $\mathcal{S}_{d,k}$ contains a subset $\mathcal{V}$ with minimum Hamming distance at least $k/2$ and logarithmic cardinality at least $c_{\mathrm{GV}}k\log(d/k)$. The hypotheses of this formulation are satisfied because the theorem statement now assumes $d,k\in\mathbb N$ and $1\leq k\leq d/2$. Applying the bound gives a subset $\mathcal{V}\subset\mathcal{S}_{d,k}$ such that distinct $u,v\in\mathcal{V}$ satisfy
\begin{align*}
d_H(u,v)\geq \frac{k}{2},
\end{align*}
and
\begin{align*}
\log |\mathcal{V}|
\geq
c_{\mathrm{GV}}k\log\left(\frac{d}{k}\right).
\end{align*}
The constant $c_{\mathrm{GV}}$ is universal in the cited endpoint-uniform statement, so no additional endpoint loss is hidden when $d/k=2$. This proves the claim.
[/proof][/step]