Skip to main content
KetQat

Appearance

Equation · intermediate

Gilbert–Varshamov bound

An existence result. A linear code of length n, dimension at least k and minimum distance at least d exists whenever the number of combinations of at most d − 2 of n − 1 columns is smaller than the number of syndromes. Asymptotically, binary codes of rate 1 − h(δ) and relative distance δ exist.

Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

∑i=0d−2(n−1i) (q−1)i  <  q n−k    ⟹    an [n, ≥k, ≥d]q linear code exists\sum_{i=0}^{d-2} \binom{n-1}{i}\,(q-1)^{i} \;<\; q^{\,n-k} \;\;\Longrightarrow\;\; \text{an } [n,\, \ge k,\, \ge d]_q \text{ linear code exists}

The displayed form, for linear codes, is the refinement due to Varshamov of the counting argument of Gilbert; Gilbert's own version states that a code with at least qn/∑i=0d−1(ni)(q−1)iq^n / \sum_{i=0}^{d-1} \binom{n}{i} (q-1)^i codewords and distance dd exists. Both are treated in Huffman and Pless.

Asymptotic form. Let h(x)=−xlog⁡2x−(1−x)log⁡2(1−x)h(x) = -x \log_2 x - (1-x) \log_2 (1-x) be the binary entropy. For every 0≤δ<1/20 \le \delta < 1/2 and every ϵ>0\epsilon > 0 there are binary linear codes of arbitrarily large length with relative distance d/n≥δd/n \ge \delta and rate

R  ≥  1−h(δ)−ϵ.R \;\ge\; 1 - h(\delta) - \epsilon .

This follows from the finite bound and the estimate ∑i≤δn(ni)≤2 nh(δ)\sum_{i \le \delta n} \binom{n}{i} \le 2^{\,n h(\delta)} for δ≤1/2\delta \le 1/2.

Example. For n=15n = 15, d=5d = 5, q=2q = 2 the left side is 1+14+91+364=470<291 + 14 + 91 + 364 = 470 < 2^{9}, so a binary [15,6][15, 6] code with distance at least 5 exists. The bound is not tight here: the binary BCH code of length 15 and designed distance 5 has dimension 7.

The same counting idea, applied to isotropic subspaces instead of parity-check columns, gives the quantum Gilbert–Varshamov bound.

Holds when

  • qq is a prime power, n≥2n \ge 2, 1≤k≤n−11 \le k \le n - 1 and d≥2d \ge 2.
  • This is a sufficient condition for existence; codes with better parameters than it guarantees do exist.

Proof

Proof of the Gilbert–Varshamov bound for linear codesMachine-checked

Put r=n−kr = n - k. We construct column vectors h1,…,hn∈Fq rh_1, \dots, h_n \in \F_q^{\,r} such that every d−1d - 1 of them are linearly independent.

Take h1≠0h_1 \neq 0. Suppose h1,…,hjh_1, \dots, h_j have been chosen, 1≤j≤n−11 \le j \le n - 1, with every d−1d - 1 of them linearly independent. A vector vv is a forbidden choice for hj+1h_{j+1} if it is a linear combination of at most d−2d - 2 of the chosen columns, since exactly then vv together with those columns would form a dependent set of at most d−1d - 1 columns. The number of linear combinations of exactly ii columns with nonzero coefficients is at most (ji)(q−1)i\binom{j}{i} (q-1)^i, so the number of forbidden vectors, including 00, is at most

∑i=0d−2(ji) (q−1)i  ≤  ∑i=0d−2(n−1i) (q−1)i  <  q r.\sum_{i=0}^{d-2} \binom{j}{i}\,(q-1)^{i} \;\le\; \sum_{i=0}^{d-2} \binom{n-1}{i}\,(q-1)^{i} \;<\; q^{\,r} .

Hence some vector of Fq r\F_q^{\,r} is not forbidden; choose it as hj+1h_{j+1}. Every d−1d - 1 of h1,…,hj+1h_1, \dots, h_{j+1} are then linearly independent: a dependent set not containing hj+1h_{j+1} is excluded by the induction hypothesis, and one containing it would express hj+1h_{j+1}, or a dependence among earlier columns, through at most d−2d - 2 earlier columns.

After nn steps let HH be the r×nr \times n matrix with columns h1,…,hnh_1, \dots, h_n and C=ker⁡HC = \ker H. No d−1d - 1 columns of HH are dependent, so by the characterisation of the minimum distance CC has distance at least dd. Its dimension is n−rank⁡H≥n−r=kn - \operatorname{rank} H \ge n - r = k.

Builds on
Mentions
Mentioned in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. E. N. Gilbert (1952). A Comparison of Signalling Alphabets. Bell System Technical Journal 31 (3), 504-522. doi:10.1002/j.1538-7305.1952.tb01393.x
  2. W. Cary Huffman, Vera Pless (2003). Fundamentals of Error-Correcting Codes. Cambridge University Press. doi:10.1017/CBO9780511807077

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Varshamov condition re-derived (greedy choice of parity-check columns); Gilbert form and asymptotic form R >= 1 - h(delta) - eps compared with Guruswami-Rudra-Sudan, Essential Coding Theory (open draft), Thm 4.2.1 and bibliographic notes 4.6 (Gilbert for general codes, Varshamov for linear codes); example 1+14+91+364 = 470 < 512 recomputed; the [15,7,5] BCH comparison checked by enumeration over GF(16); gilbert-1952 metadata compared with Crossref.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision e7cb1156b9d9f513. Source file knowledge/records/equation/gilbert-varshamov-bound.md in the content repository (readable there once it is public).