Generalized Hamming Weights (GHWs) Overview
- Generalized Hamming Weights (GHWs) are parameters that extend the minimum distance concept to r-dimensional subcodes, forming a strictly increasing weight hierarchy for linear codes.
- They are computed using combinatorial, number-theoretic, and algorithmic methods, with efficient approaches like the extended Brouwer–Zimmermann algorithm aiding practical enumeration.
- GHWs have broad applications in secure communications, trellis decoding, list- and erasure-decoding, and they establish deep links with algebraic combinatorics and matroid theory.
A generalized Hamming weight (GHW) is a fundamental parameter associated with a linear code that generalizes the notion of minimum distance to higher-dimensional subcodes. For a linear code of length and dimension over a finite field, the -th generalized Hamming weight is defined as the minimal number of coordinate positions that support a nonzero codeword in every -dimensional subspace of . The sequence is called the weight hierarchy of , with the minimum distance. The theory of GHWs, initiated by Wei in 1991, plays a critical role in quantifying code security in wire-tap channels, describing trellis and state complexity profiles for decoding, and evaluating the performance of list- and erasure-decoding and secret-sharing schemes. GHWs also form deep links with algebraic combinatorics, matroid theory, and commutative algebra.
1. Definition and Fundamental Properties
Let be an linear code over the finite field . For any subspace , define its support as
Then the -th generalized Hamming weight is
This captures the minimal number of coordinates on which an -dimensional subcode can be nonzero. The sequence is strictly increasing by linearity. The classical Singleton bound extends: Codes meeting this bound for all are termed -MDS. The Griesmer-type lower bound also holds: The duality property states that for the dual code,
with the two sets disjoint. This is the celebrated Wei duality (Martínez-Peñas, 2015).
2. Computation and Algorithmic Foundations
Direct computation of is generally computationally hard due to the exponential number of -dimensional subspaces. For a generator matrix and of dimension , one can consider the image ; naive enumeration over all subspaces is tractable only for small codes.
However, the extended Brouwer–Zimmermann (GZ) algorithm provides an efficient general-purpose approach for computing all GHWs by exploiting multiple systematic forms and combinatorial subspace enumeration (San-José, 22 Mar 2025). This algorithm searches reduced row-echelon forms with fixed pivot patterns and efficiently prunes the subspace search using lower and upper bounds. It dramatically outperforms naive enumeration and has been implemented in SageMath via the GHWs package, which supports full weight hierarchy, relative GHWs, and duality computations:
1 2 3 |
from GHWs import GHW, hierarchy C = codes.ReedSolomonCode(GF(13), 10) hierarchy(C) # returns [4,5,6,...,13] for this MDS code |
3. Explicit Constructions and Formulas for GHWs
Analytic determination of GHWs is achieved in several families via number-theoretic and combinatorial techniques. A general approach for codes defined by trace and defining sets is the formula
(Jian, 2019). In particular, for codes with and , this gives for : and is -MDS.
For codes with (with odd), the weight hierarchy is given by a two-regime formula, using cyclotomic classes and Gauss periods. Closed-form explicit weight hierarchies are also achieved for classes of reducible and irreducible cyclic codes (Li, 2017, Xiong et al., 2015, Yang et al., 2014), cyclotomic defining set codes (Li, 2017), and codes from quadratic forms (Liu et al., 2022). For projective and higher-order Reed–Muller codes, combinatorial shadow and shortening algorithms yield explicit hierarchies (Ramkumar et al., 2018).
The table below summarizes several key formula types:
| Code Family | GHW Formula Type | Reference |
|---|---|---|
| Trace-defining set codes | for | (Jian, 2019) |
| Irreducible cyclic codes | Gauss sum/intersection, two-regime via subfield degree | (Yang et al., 2014) |
| Cyclotomic codes | Gauss sum, Gaussian period, or combinatorial intersection | (Li, 2017) |
| Quadratic-form codes | Solution count to on subspaces | (Liu et al., 2022) |
| Cartesian square-free codes | Footprint bound, explicit combinatorics | (Carvalho et al., 11 Nov 2025) |
4. GHWs in Nonlinear and Almost Affine Codes
The GHW concept extends to almost affine codes, which are sets () with such that every puncturing to coordinates has size for some . The matroid-theoretic framework yields
where is the rank of the dual matroid (Johnsen et al., 2016). Wei duality generalizes as
where (resp. ) are the GHWs of (resp. its dual). Multilinear codes (block-folded codes) admit a true dual and explicit GHWs, typically for rank .
Trellis complexity, profiles, list- and equivocation thresholds all admit analogues for the almost affine setting, showing the deep generality of GHWs outside strictly linear codes, with the mathematical structure governed by matroid invariants rather than explicit vector spaces.
5. Applications in Coding, Information, and Combinatorics
Generalized Hamming weights control critical performance and security features in modern coding theory:
- Wiretap Channels (Type II): The -th GHW quantifies the minimal symbol positions an adversary needs to fully reconstruct bits of the secret (equivocation rate) (Martínez-Peñas, 2015, Jian, 2016). In secret sharing, the GHWs determine the access structure thresholds.
- Trellis (state) complexity: Minimal state/branch profiles in Viterbi or list decoding are governed by the GHWs, with controlling the minimal transition set at stage (Ramkumar et al., 2018).
- List-decoding and erasure threshold: GHWs determine the maximal correctable erasures for list-decoding beyond the minimum distance (Lu et al., 30 May 2024).
- Network and Secure Coding: For both classical and rank-metric codes, GHWs and their analogues determine information leakage and recoverability (Martínez-Peñas, 2015).
- Algebraic Combinatorics: GHWs are in bijection with initial degrees of symbolic powers of the Stanley–Reisner ideal of the dual matroid, so they encode the combinatorics of circuits and cocircuits and control invariants like the Waldschmidt constant and resurgence (DiPasquale et al., 19 Jun 2024).
- Quantum Codes: Relative GHWs directly determine the phase-flip and bit-flip error rates of quantum CSS codes constructed from nested pairs (Camps-Moreno et al., 20 Nov 2024).
6. Connections to Algebraic and Matroid Theory
GHWs have deep algebraic and geometric interpretations. For a code , the -th GHW equals the minimal degree among squarefree monomials in the -th symbolic power of the Stanley–Reisner ideal of the dual matroid (DiPasquale et al., 19 Jun 2024). This links GHWs directly to algebraic invariants such as Waldschmidt constants, and underlies various algebraic-combinatorial bounds.
Over binary fields, Betti numbers in the minimal graded free resolution of the test-monomial ideal associated to provide sharp formulas for and and upper bounds for higher GHWs (García-Marco et al., 2022). The matroid structure enables subadditivity results for weight hierarchies and allows applications to symbolic powers and projections in projective algebraic geometry.
7. Open Directions and Recent Trends
Current research directions include:
- Extensions to new code families: Ongoing work employs number-theoretic, combinatorial, and algebraic approaches to determine GHWs for increasingly complex code families, including classes with arbitrary numbers of nonzeroes, codes defined on geometric and projective sets, and matrix-product codes (Xiong et al., 2015, San-José, 16 Jul 2024, Carvalho et al., 11 Nov 2025).
- Development of efficient algorithms and software: Recent advances in combinatorics, enumeration, and computational algebra have led to practical algorithmic tools for GHW enumeration even for large parameter codes (San-José, 22 Mar 2025).
- Deeper connections to commutative algebra and algebraic geometry: GHWs now serve as concrete invariants connecting algebraic geometry of matroid configurations to coding-theoretic performance metrics via symbolic Rees algebra generation and degree statistics (DiPasquale et al., 19 Jun 2024).
- Quantum and network codes: Explicit GHW and relative GHW hierarchies are now used directly in the design of new quantum codes with optimized asymmetric parameters (Camps-Moreno et al., 20 Nov 2024).
- Generalization to nonlinear and almost affine frameworks: Matroidal methods enable the paper of GHW-like invariants for wide code classes including nonlinear, folded, and multilinear codes (Johnsen et al., 2016).
The known full-weight hierarchies for broad families of codes remain rare and are topics of intensive ongoing research (Jian, 2019, Camps-Moreno et al., 20 Nov 2024). Comprehensive understanding of GHWs governs both the fundamental limits of error-correction and the achievable tradeoffs of information-theoretic security in networked and adversarial communication.
Sponsored by Paperpile, the PDF & BibTeX manager trusted by top AI labs.
Get 30 days free