On perfect flag-rank metric codes
arXiv:2606.12934
Abstract
Flag-rank-metric codes arise as a natural generalization of rank-metric codes in the context of network communication. While recent research has mainly focused on algebraic and structural properties of these codes, the combinatorial geometry underlying the flag-rank metric remains largely unexplored. In this paper, we initiate a detailed investigation of this geometry. We explicitly determine the size of spheres of small flag-rank radius in the space of upper triangular matrices over the finite field , and consequently obtain formulas for the size of balls of radius at most . Using these enumerative results, we derive a sphere-packing bound for flag-rank-metric codes and introduce the notion of perfect codes with respect to the flag-rank metric. We observe that no non-trivial perfect flag-rank-metric codes exist in for . We then investigate the possible parameters of perfect codes in higher dimensions. For minimum distance , we obtain a characterization in terms of the codimension of the code, and show that suitable maximum flag-rank distance codes with minimum distance yield non-trivial perfect codes. For minimum distances and , we derive explicit quadratic and cubic conditions, respectively, that any perfect code must satisfy. Finally, using asymptotic estimates for balls of fixed radius, we prove that for fixed length and , perfect linear flag-rank-metric codes with minimum distance do not exist over for all sufficiently large .