An Elementary Approach to MacWilliams Extension Property and Constant Weight Code with Respect to Weighted Hamming Metric
arXiv:2511.00809
Abstract
In this paper, we characterize the MacWilliams extension property (MEP) and constant weight codes with respect to -weight defined on via an elementary approach, where is a finite field, is a finite set, and is a weight function. Our approach relies solely on elementary linear algebra and two key identities for -weight of subspaces derived from a double-counting argument. When is the constant map, our results recover two well-known results for Hamming metric code: (1) any Hamming weight preserving map between linear codes extends to a Hamming weight isometry of the entire ambient space; and (2) any constant weight Hamming metric code is a repetition of the dual of Hamming code.