arXiv:2609.10274cs.ITSep 2026

Manuscript Offprint

arXiv:2609.10274

Revisiting the Weight Spectrum of the Affine Grassmann Code CA(2,m)C^{\mathbb{A}}(2,m)

Rohit Yadav

Abstract

Affine Grassmann codes, introduced by Beelen, Ghorpade and Høholdt, are linear codes over Fq\mathbb{F}_q obtained by evaluating linear combinations of minors of a generic matrix. The weight spectrum of the affine Grassmann code CA(2,m)C^{\mathbb{A}}(2,m) was determined by Piñero and Singh via a case analysis on the rank of an associated alternating matrix. We give an independent and more streamlined derivation, valid for all m≥4m \geq 4 and every prime power qq, in which each codeword is written in a compact matrix form and its Hamming weight is expressed through a single closed formula involving two explicit affine subspaces and their intersection.

Keywords: Affine Grassmann codes, Weight spectrum, Grassmann codes.

MSC2020: 94B27, 14G50

1 Introduction

Evaluation codes are linear codes obtained by evaluating a fixed vector space of functions at every point of a fixed set of points. Projective systems [TVN07] provide a useful general framework for studying such codes. A classical example is the Reed–Muller family, whose codewords are obtained by evaluating polynomials of bounded degree at every point of an affine space. Affine Grassmann codes generalize this construction by evaluating linear combinations of minors of a generic matrix at every point of the corresponding affine space over Fq\mathbb{F}_q.

Let ℓ\ell and ℓ′\ell' be positive integers with ℓ≤ℓ′\ell \leq \ell', put m:=ℓ+ℓ′m := \ell + \ell' and δ:=ℓℓ′\delta := \ell\ell', and let Aδ(Fq)\mathbb{A}^{\delta}(\mathbb{F}_q) denote the Fq\mathbb{F}_q-rational points of the affine open cell of the Grassmannian Gℓ,mG_{\ell,m} defined by the nonvanishing of a chosen Plücker coordinate. In the standard local coordinates on this cell,

*Email: rohityadavau1998@gmail.com

Department of Mathematics, Indian Institute of Technology, Jammu, Jammu-181221, India.

a point of Aδ(Fq)\mathbb{A}^{\delta}(\mathbb{F}_q) is naturally identified with an ℓ×ℓ′\ell \times \ell' matrix over Fq\mathbb{F}_q, since the δ\delta coordinates are precisely the entries of such a matrix. This identification underlies the entire construction and is used throughout the paper. Under the Plücker embedding, this cell is itself a projective system \mathbb{A}^{\delta}(\mathbb{F}_q) \subseteq \mathbb{P}(\mathbb{F}_q)^{(m)}_{\ell}^{-1} (see [BGH10, Section VII]), and the resulting code, denoted CA(ℓ,m)C^{\mathbb{A}}(\ell, m), is the affine Grassmann code associated with it. When ℓ=1\ell = 1, the only minors of the generic 1×ℓ′1 \times \ell' matrix are the constant 1 and its ℓ′\ell' entries, so CA(1,m)C^{\mathbb{A}}(1, m) is exactly the qq-ary first-order Reed–Muller code RMq(1,ℓ′)\mathrm{RM}_q(1, \ell'). For ℓ≥2\ell \geq 2, the higher-order minors provide genuinely new information, and it is in this sense that affine Grassmann codes generalize first-order Reed–Muller codes (cf. [BGH10, Sec. 1]). Affine Grassmann codes were first studied by Beelen, Ghorpade and Høholdt [BGH10], who showed that CA(ℓ,m)C^{\mathbb{A}}(\ell, m) is an [n,k,d]q[n, k, d]_q code with

n=qδ,k=(mℓ),andd=qδ−ℓ2∏i=0ℓ−1(qℓ−qi),(1.1)n=q^{\delta},\qquad k=\binom{m}{\ell},\qquad\mathrm{a n d}\qquad d=q^{\delta-\ell^{2}}\prod_{i=0}^{\ell-1}(q^{\ell}-q^{i}), \tag{1.1}

characterized its minimum weight codewords, and showed that its automorphism group is quite large. Its dual CA(ℓ,m)⊥C^{\mathbb{A}}(\ell, m)^{\perp} was studied in a subsequent article [BGH12], where it was described as an evaluation code of certain functions on the set of ℓ×ℓ′\ell \times \ell' matrices.

The automorphism group of CA(ℓ,m)C^{\mathbb{A}}(\ell, m) was later determined completely by Ghorpade and Kaipa [GK13], and Datta and Ghorpade [DG15] computed some of its initial and terminal generalized Hamming weights. A majority logic decoder for these codes over nonbinary fields, building on earlier work on Grassmann codes [BS21] and Schubert codes [Sin22], was proposed in [PGSY26].

Among the invariants of a code, its weight spectrum, which records the weight of every codeword together with the number of codewords of each weight, is particularly informative. It determines the weight spectrum of the dual code via the MacWilliams identities, and it governs the probability of a decoding error on a memoryless channel [MS77]. It also refines the minimum distance, since it records how many codewords lie at every distance, rather than only the smallest distance. For affine Grassmann codes, this invariant is known only when ℓ=2\ell = 2. Piñero and Singh [PS19] showed that a codeword of CA(2,m)C^{\mathbb{A}}(2, m) corresponds to an alternating matrix whose rank governs its weight, and determined the spectrum through a case analysis on that rank. The first case with ℓ≥3\ell \geq 3, namely CA(3,6)C^{\mathbb{A}}(3, 6), was subsequently determined by the present author and Prasant Singh [SY26]. Beyond that, the weight spectrum of CA(ℓ,m)C^{\mathbb{A}}(\ell, m) remains open.

In this paper, we revisit the case ℓ=2\ell = 2 and give an independent proof of its weight spectrum. We replace the case analysis of [PS19] with a single closed formula expressing the Hamming weight of a codeword in terms of the sizes of two explicit affine subspaces of Fqℓ′\mathbb{F}_q^{\ell'} and their intersection. In this formula, the zero codeword and the nonzero constant codewords appear as degenerate instances, rather than as cases requiring separate treatment, and every step works uniformly over every prime power qq, without requiring a separate argument in characteristic two. The uniform treatment is also useful beyond the case ℓ=2\ell = 2. Specialising one row of the generic matrix carries a codeword of CA(ℓ,m)C^{\mathbb{A}}(\ell,m) to a codeword of CA(ℓ−1,m−1)C^{\mathbb{A}}(\ell-1,m-1), and the closed formula proved here is the key ingredient in that reduction when ℓ=3\ell=3 (see [SY26]).

This article is organized as follows. Section 2 recalls the general construction of affine Grassmann codes and fixes the notation used throughout, and then contains our main results. Theorem 2.2 gives the unified weight formula for codewords of CA(2,m)C^{\mathbb{A}}(2,m), Theorem 2.5 assembles the complete weight distribution, and we conclude with a worked example.