Generalized Rank Weight and Extended Generalized Poset Weight Defined For Codes Over Rings: A Galois Connection Approach


—In this paper, we study generalized rank weights (GRWs) and extended generalized poset weight (EGPWs) of codes over rings via a Galois connection approach. First, we show that various coding-theoretic properties related to generalized weights, including security drops of a code employed in wire-tap channel of type II, connections between generalized weights of a Gabidulin code and its associated Delsarte code, (generalized) Singleton bound, MDS discrepancy of a code, characterizations of MDS, near MDS, \(i\)-MDS, MRD, near MRD, \(i\)-MRD, (dually) quasi-MRD codes as well as evasive property of subspaces, can be reformulated in terms of Galois connections. Next, we study GRWs and rank profiles defined for modules over principal ideal rings, especially those over chain rings. Generalizing GRWs defined for vector spaces over fields, we establish a singleton bound and a Wei-type duality theorem, characterize MRD, near MRD and dually quasi-MRD codes and determine their GRWs; moreover, we characterize \(i\)-MRD codes and establish a scattered bound for \((h,h)\)-evasive codes over chain rings, generalizing counterpart result established for vector space over finite fields. Finally, we propose and study EGPWs and extended poset profiles defined for modules with a composition series, which in fact form a Galois connection. Generalizing EGPWs defined for modules over finite Galois rings, we establish a Wei-type duality theorem for modules over arbitrary quasi-Frobenius rings, which unifies the two Wei-type duality theorems derived in both [1] and [2].

1 Introduction↩︎

In 1991, motivated by applications from information-theoretic security, Wei proposed and studied generalized Hamming weights (GHWs) of linear codes. Roughly speaking, for a linear code \(C\), the \(r\)-th GHW of \(C\) is defined as the minimal Hamming weight of all the \(r\)-dimensional subcodes of \(C\). It has been shown in [3] that GHWs characterize both the performance of a code on the wire-tap channel of type II and the performance of the code as a \(t\)-resilient function. GHWs have been widely used to gauge the security performances of linear codes for secret sharing, secure network coding or distributed data storage, see, e.g., [4][6] and references therein.

Theoretically, GHWs have been used to characterize various families of codes such as \(r\)-th rank MDS codes (\(r\)-MDS codes for short), \(A^{s}\)MDS codes, and dually AMDS codes (or equivalently, near MDS codes) (see [3], [7]). Some important algebraic and combinatorial properties of GHWs, such as monotonicity and Wei’s duality theorem, provide powerful tools for studying these codes (see [3], [7] for more details). Recently in [1], Tang proposed and studied an extension of generalized Hamming weights (EGHWs) for codes over \(\mathbb{Z}_{p^{m}}\). In [1], among others, the author establishes two Wei-type duality theorems and several bounds for \(\mathbb{Z}_{p^{m}}\)-linear codes.

Extending the notion of GHWs, generalized weights with respect to rank metric and poset metric have become topics of great interest.

Rank metric codes were introduced by Delsarte in [8] and by Gabidulin in [9], and generalized rank weights (GRWs) have been proposed and studied for Gabidulin codes by Kurihara, Matsumoto and Uyematsu in [10], by Ducoat in [11], by Jurrius and Pellikaan in [12], and have been extended to Delsarte codes by Ravagnani in [13], and by Martı́nez-Peñas and Matsumoto in [14]. GRWs of Gabidulin codes and those of Delsarte codes are closely related, as it has been shown in [13], [14] that GRWs of a Gabidulin code are determined by those of its associated Delsarte code and vice versa (see Section 3.2 for more details). Rank metric codes and GRWs have important applications in secure network coding and crisscross error correction (see [10], [14][16]), and they have nice mathematical properties such as monotonicity, Wei-type duality and (generalized) Singleton bounds (see [17][20] and references therein). Similar to GHWs, various families of rank metric codes such as \(i\)-MRD codes, \(A^{s}\)MRD codes, dually AMRD codes, near MRD codes and (dually) quasi-MRD codes have been studied by using GRWs (see [17], [18], [21] and references therein). Recently, Marino, Neri and Trombetti have shown in [21] that the evasive property of subspaces, a notion widely studied in combinatorics and finite geometry (see [22], [23] and references therein), can be reformulated via GRWs of Gabidulin codes.

Rank metric has also been extended to codes over rings. In [24], Kamche and Mouaha have proposed and studied rank metric codes over commutative principle ideal rings and explore their constructions and various applications. More recently in [25], Blanco-Chacón, Boix, Greferath and Hieta-Aho have derived MacWilliams identities for rank metric codes over finite commutative chain rings, which has been further used to show that the dual of an MRD code is again MRD, generalizing well-known results for codes over finite fields.

Poset metric was first introduced by Brualdi, Graves and Lawrence in [26], and generalized poset weights (GPWs) have been proposed and studied by Moura and Firer in [27]. In [27], the authors proved that similar to GHWS, GPWs have the properties of monotonicity and Wei-type duality, and they also generalized the notion of MDS discrepancy (see [3]) from Hamming metric codes to poset codes. Various families of codes have been explored in the context of poset metric. For example, MDS poset codes and near-MDS poset codes have been proposed and studied by Hyun and Kim in [28], and by Barg and Purkayastha in [29], respectively. More recently in [2], Wang, Cao and Luo proposed extended generalized poset weights (EGPWs) for linear codes over Galois rings, which further generalizes EGHWs for \(\mathbb{Z}_{p^{m}}\)-linear codes. Among others, the authors established monotonicity, Singleton bound and two Wei-type duality theorems, and moreover, they explored the application of EGPWs in wire-tap channel of type II.

In this paper, we study GRWS and EGPWs defined for codes over rings. To make our results more general, the rings we consider can be both infinite and non-commutative. Our approach is based on Galois connections, a classical notion in combinatorics and algebra (see [30]). This is based on the fact that GHWs and the dimension-length profiles (DLPs) of a code form a Galois connection, which in fact holds true for generalized weights and profiles with respect to various metrics (see [4], [5], [10], [14], [31] and references therein). Hence Galois connections may provide a unified way to study some coding-theoretic properties that related to generalized weights. For example, a general Wei-type duality theorem for Galois connections has been established in [31].

The main contribution of the paper can be summarized as follows.

In Section 3, we reformulate various coding-theoretic properties in terms of Galois connections. More specifically, we establish some general properties of Galois connections, which can be used to characterize the security performance of a code in wire-tap channel of type II and network coding scheme (Section 3.1), the relations between GRWs of a Gabidulin code and those of its associated Delsarte code (Section 3.2), Singleton bound (Section 3.3), generalized Singleton bound (Sections 3.4 and 3.7), MDS/MRD/near MDS/near MRD/dually quasi-MRD codes (Sections 3.5, 3.9 and 3.10), MDS discrepancy of a code (Section 3.8) and \((h,r)\)-evasiveness of subspaces (Section 3.11). Many results in this section are derived from a duality theorem (Theorem 3.5), which may be regarded as an analogue of the Wei-type duality theorem for Galois connections (Section 3.12).

In Section 4, we study GRWS and profiles for codes over principal left/right ideal rings. More specifically, in Section 4.1, we first characterize GRWs and profiles of a code and show that they form a Galois connection (Propositions 4.1, 4.2 and Theorem 4.1). Then, we define MRD, quasi-MRD (QMRD), near MRD (NMRD), \(i\)-MRD codes and \((h,r)\)-evasiveness of a code, and derive some basic properties. In Sections 4.2-4.7, we focus on codes over chain rings. In Section 4.2, we derive a Wei-type duality theorem (Theorem 4.2); in Sections 4.3-4.6, we characterize MRD, dually QMRD, NMRD and \(i\)-MRD codes and determine the GRWs of the first three classes of codes (Theorems 4.3-4.6); in Section 4.7, we characterize \((h,r)\)-evasiveness of a code in terms of GRWs of its dual code, and derive a scattered bound for \((h,h)\)-evasive codes (Theorems 4.7 and 4.8), generalizing counterpart results established for evasive subspaces and Gabidulin codes in [21], [23].

In Section 5, we propose and study EGPWs and profiles for codes over modules with a composition series. EGPWs and profiles of a code are determined by a poset together with a tuple of right/left ideals. This generalizes the notions of EGHWS for \(\mathbb{Z}_{p^{m}}\)-linear codes and EGPWs for Galois ring linear codes proposed in [1], [2]. In Sections 5.1 and 5.2, we characterize EGPWs and profiles of a code and show that they form a Galois connection (Propositions 5.1, 5.2 and Theorem 5.1). In Section 5.3, we establish a general Wei-type duality theorem for codes over quasi-Frobenius rings (Theorem 5.2). Our result unifies and generalizes the two Wei-type duality theorems established in [2] as well as counterpart results in [1].

2 Preliminaries↩︎

We begin with a few notations and terminologies that will be used frequently in the rest of the paper. First of all, for any \(a,b\in\mathbb{Z}\), let \([a,b]\) denote the set of all the integers between \(a\) and \(b\), i.e., \[[a,b]=\{i\in\mathbb{Z}\mid a\leqslant i\leqslant b\}.\]

Next, consider a non-empty finite set \(\Omega\) and a poset \(\mathbf{P}=(\Omega,\preccurlyeq_{\mathbf{P}})\). For any \(I\subseteq\Omega\), \(I\) is referred to as an ideal of \(\mathbf{P}\) if for any \(v\in I\) and \(u\in\Omega\), \(u\preccurlyeq_{\mathbf{P}}v\) implies \(u\in I\). We let \(\mathcal{I}(\mathbf{P})\) denote the set of all the ideals of \(\mathbf{P}\). For any \(B\subseteq\Omega\), let \(\langle B\rangle_{\mathbf{P}}=\{u\in\Omega\mid\exists~v\in B~s.t.~u\preccurlyeq_{\mathbf{P}}v\}\) denote the ideal of \(\mathbf{P}\) generated by \(B\). The dual poset of \(\mathbf{P}\), denoted by \(\mathbf{\overline{P}}=(\Omega,\preccurlyeq_{\mathbf{\overline{P}}})\), is defined as \[u\preccurlyeq_{\mathbf{\overline{P}}}v\Longleftrightarrow v\preccurlyeq_{\mathbf{P}}u.\] For an abelian group \(M\) and any \(D\subseteq M^{\Omega}\), the Hamming support of \(D\) is defined as \[\chi(D)\triangleq\{i\in\Omega\mid\exists~\alpha\in D~s.t.~\alpha_i\neq0\},\] and moreover, \(\langle\chi(D)\rangle_{\mathbf{P}}\) is referred to as the \(\mathbf{P}\)-support of \(D\).

2.1 Basics on Galois connection↩︎

In this subsection, we collect some basic properties of Galois connections between subsets of \(\mathbb{Z}\) as well as some examples of Galois connections arising naturally in coding theory. We begin with the following definition, which is a special case of [11, Definition 7.23].

Definition 1. Let \(P,Q\subseteq\mathbb{Z}\), and let \(\varphi:P\longrightarrow Q\) and \(\psi:Q\longrightarrow P\). We say that \((\varphi,\psi)\) is a Galois connection between \(P\) and \(Q\) if for any \((a,b)\in P\times Q\), it holds that \(\varphi(a)\leqslant b\Longleftrightarrow a\leqslant\psi(b)\).

Definition 2.1 implies that both \(\varphi\) and \(\psi\) preserve the order \(\leqslant\), as detailed in the following remark.

Remark 1. For \(P,Q\subseteq\mathbb{Z}\), \(\varphi:P\longrightarrow Q\) and \(\psi:Q\longrightarrow P\), by [11, Lemma 7.26], \((\varphi,\psi)\) is a Galois connection between \(P\) and \(Q\) if and only if \(\varphi(a)\leqslant\varphi(c)\) for all \(a,c\in P\) with \(a\leqslant c\), \(\psi(b)\leqslant\psi(d)\) for all \(b,d\in Q\) with \(b\leqslant d\), \(a\leqslant\psi(\varphi(a))\) for all \(a\in P\), and \(\varphi(\psi(b))\leqslant b\) for all \(b\in Q\). Moreover, if \((\varphi,\psi)\) is a Galois connection between \(P\) and \(Q\), then by [11, 7.33], \(\varphi\) and \(\psi\) is determined by each other via the formula \(\varphi(a)=\min\{b\in Q\mid a\leqslant\psi(b)\}\) and \(\psi(d)=\max\{c\in P\mid \varphi(c)\leqslant d\}\).

The following lemma follows from [35, Lemma 2.2], and will be used frequently in the rest of the paper.

Lemma 1. Let \(P\) and \(Q\) be non-empty finite subsets of \(\mathbb{Z}\), \(X\) be a set, \(f:X\longrightarrow P\) and \(g:X\longrightarrow Q\) such that \(\max(P)\in f[X]\), \(\min(Q)\in g[X]\). Define \(\varphi:P\longrightarrow Q\) and \(\psi:Q\longrightarrow P\) as \[\varphi(a)=\min\{g(u)\mid u\in X,a\leqslant f(u)\},\] \[\psi(b)=\max\{f(u)\mid u\in X,g(u)\leqslant b\}.\] Then, \((\varphi,\psi)\) is a Galois connection between \(P\) and \(Q\).

In the following four examples, we use Lemma 2.2 to obtain Galois connections arising from generalized weights and profiles with respect to Hamming metric, poset metric and rank metric.

Example 1. (GHWs and DLPs of linear codes) Let \(\mathbb{F}\) be a field, \(m\in\mathbb{Z}^{+}\), and let \(C\subseteq\mathbb{F}^{m}\) be a \(k\)-dimensional linear code. Following [3], for any \(r\in[0,k]\), the \(r\)-th GHW of \(C\) is defined as \[\begin{align} \begin{aligned} \mathbf{d}_r(C)&\triangleq\min\{|\chi(D)|\mid \text{D is an r-dimensional subcode of C}\}\\ &=\min\{|J|\mid J\subseteq[0,m],\dim_{\mathbb{F}}(C\cap\delta(J))\geqslant r\}, \end{aligned} \end{align}\] and following [5], for any \(l\in[0,m]\), the \(l\)-th dimension/length profile (DLP) of \(C\) is defined as \[\begin{align} \begin{aligned} \mathbf{K}_l(C)&\triangleq\max\{\dim_{\mathbb{F}}(C\cap\delta(J))\mid J\subseteq[0,m],|J|=l\}\\ &=\max\{\dim_{\mathbb{F}}(C\cap\delta(J))\mid J\subseteq[0,m],|J|\leqslant l\}, \end{aligned} \end{align}\] where for any \(J\subseteq[0,m]\), \[\delta(J)=\{\alpha\in\mathbb{F}^{m}\mid\forall~i\in[0,m]-J:\alpha_i=0\}.\] By Lemma 2.1, \(\varphi:[0,k]\longrightarrow[0,m]\) defined as \(\varphi(r)=\mathbf{d}_r(C)\) and \(\psi:[0,m]\longrightarrow[0,k]\) defined as \(\psi(l)=\mathbf{K}_l(C)\) form a Galois connection between \([0,k]\) and \([0,m]\).

Example 2. (Generalized poset weights and profiles of linear codes) Let \(\mathbb{F}\) be a field, \(\Omega\) be a non-empty set finite set with \(|\Omega|=m\), \(\mathbf{P}=(\Omega,\preccurlyeq_{\mathbf{P}})\) be a poset, and \(C\subseteq\mathbb{F}^{\Omega}\) be a \(k\)-dimensional linear code. Following [27], for any \(r\in[0,k]\), the \(r\)-th generalized \(\mathbf{P}\)-weight of \(C\) is defined as \[\begin{align} \begin{aligned} \mathbf{d}_r^{\mathbf{P}}(C)&\triangleq\min\{|\langle\chi(D)\rangle_{\mathbf{P}}|\mid \text{D is an r-dimensional subcode of C}\}\\ &=\min\{|J|\mid J\in\mathcal{I}(\mathbf{P}),\dim_{\mathbb{F}}(C\cap\delta(J))\geqslant r\}, \end{aligned} \end{align}\] and for any \(l\in[0,m]\), define the \(l\)-th \(\mathbf{P}\)-profile of \(C\) as \[\begin{align} \begin{aligned} \mathbf{K}_l^{\mathbf{P}}(C)&\triangleq\max\{\dim_{\mathbb{F}}(C\cap\delta(J))\mid J\in\mathcal{I}(\mathbf{P}),|J|=l\}\\ &=\max\{\dim_{\mathbb{F}}(C\cap\delta(J))\mid J\in\mathcal{I}(\mathbf{P}),|J|\leqslant l\}, \end{aligned} \end{align}\] where \(\delta(J)\) is defined the same as in Example 2.1. By Lemma 2.1, \(\varphi:[0,k]\longrightarrow[0,m]\) and \(\psi:[0,m]\longrightarrow[0,k]\) defined as \(\varphi(r)=\mathbf{d}_r^{\mathbf{P}}(C)\) and \(\psi(l)=\mathbf{K}_l^{\mathbf{P}}(C)\) form a Galois connection between \([0,k]\) and \([0,m]\). We remark that when \(\mathbf{P}\) is an anti-chain, then \(\mathbf{d}_r^{\mathbf{P}}(C)\) and \(\mathbf{K}_l^{\mathbf{P}}(C)\) boil down to \(\mathbf{d}_r(C)\) and \(\mathbf{K}_l(C)\) in Example 2.1, respectively.

Example 3. (GRWs and DIPs of Gabidulin codes) Let \(\mathbb{E}/\mathbb{F}\) be a field extension, \(m\in\mathbb{Z}^{+}\), and let \(\mathbb{E}^{[m]}\) denote the set of all the column vectors over \(\mathbb{E}\) of length \(m\). Any \(\mathbb{E}\)-subspace of \(\mathbb{E}^{[m]}\) is referred to as a Gabidulin rank metric code. An \(\mathbb{E}\)-subspace \(V\subseteq\mathbb{E}^{[m]}\) is said to be \(\mathbb{E}/\mathbb{F}\)-closed if \(V\) has an \(\mathbb{E}\)-basis in \(\mathbb{F}^{[m]}\). We let \(\Gamma\) denote the set of all the \(\mathbb{E}/\mathbb{F}\)-closed \(\mathbb{E}\)-subspaces of \(\mathbb{E}^{[m]}\). Noticing that for any \(D\subseteq\mathbb{E}^{[m]}\), \(\{V\in\Gamma\mid D\subseteq V\}\) contains a least member with respect to \(\subseteq\), which we denote by \(D^{\ast}\).

Let \(C\subseteq\mathbb{E}^{[m]}\) be a Gabidulin code with \(\dim_{\mathbb{E}}(C)=k\). Following [10], [12], for any \(r\in[0,k]\), the \(r\)-th GRW of \(C\) is defined as \[\begin{align} \begin{aligned} \mathbf{d}_r^{G}(C)&\triangleq\min\{\dim_{\mathbb{E}}(D^{\ast})\mid \text{D is an r-dimensional \mathbb{E}-subcode of C}\}\\ &=\min\{\dim_{\mathbb{E}}(V)\mid V\in\Gamma,\dim_{\mathbb{E}}(C\cap V)\geqslant r\}, \end{aligned} \end{align}\] and following [10], for any \(l\in[0,m]\), define the \(l\)-th dimension/intersection profile (DIP) of \(C\) is defined as \[\begin{align} \begin{aligned} \mathbf{K}_l^{G}(C)&\triangleq\max\{\dim_{\mathbb{E}}(C\cap V)\mid V\in\Gamma,\dim_{\mathbb{E}}(V)=l\}\\ &=\max\{\dim_{\mathbb{E}}(C\cap V)\mid V\in\Gamma,\dim_{\mathbb{E}}(V)\leqslant l\}. \end{aligned} \end{align}\] By Lemma 2.1, \(\varphi:[0,k]\longrightarrow[0,m]\) and \(\psi:[0,m]\longrightarrow[0,k]\) defined as \(\varphi(r)=\mathbf{d}_r^{G}(C)\) and \(\psi(l)=\mathbf{K}_l^{G}(C)\) form a Galois connection between \([0,k]\) and \([0,m]\) (cf. [23, Lemma 9]).

Example 4. (GMWs and DRPs of Delsarte codes) Let \(\mathbb{F}\) be a field, \(m,n\in\mathbb{Z}^{+}\), \(\mathrm{Mat}\,_{m,n}(\mathbb{F})\) denote the set of all the matrices over \(\mathbb{F}\) with \(m\) rows and \(n\) columns, and \(\mathbb{F}^{[m]}\) denote the set of all the column vectors over \(\mathbb{F}\) of length \(m\). Any \(\mathbb{F}\)-subspace of \(\mathrm{Mat}\,_{m,n}(\mathbb{F})\) is referred to as a Delsarte rank metric code. For any \(\alpha\in\mathrm{Mat}\,_{m,n}(\mathbb{F})\), let \(\mathrm{col}\,(\alpha)\subseteq\mathbb{F}^{[m]}\) denote the \(\mathbb{F}\)-subspace of \(\mathbb{F}^{[m]}\) generated by all the columns of \(\alpha\). Moreover, for any \(D\subseteq\mathrm{Mat}\,_{m,n}(\mathbb{F})\), let \(\mathrm{CSupp}\,(D)=\sum_{\alpha\in D}\mathrm{col}\,(\alpha)\).

Let \(C\subseteq\mathrm{Mat}\,_{m,n}(\mathbb{F})\) be a Delsarte code with \(\dim_{\mathbb{F}}(C)=k\). Following [14], for any \(r\in[0,k]\), the \(r\)-th generalized matrix weight (GMW) of \(C\) is defined as \[\begin{align} \begin{aligned} \mathbf{d}_r^{M}(C)&\triangleq\min\{\dim_{\mathbb{F}}(\mathrm{CSupp}\,(D))\mid \text{D is an r-dimensional subcode of C}\}\\ &=\min\{\dim_{\mathbb{F}}(U)\mid \text{U is an \mathbb{F}-subspace of \mathbb{F}^{[m]}, \dim_{\mathbb{F}}(C\cap\delta(U))\geqslant r}\}, \end{aligned} \end{align}\] and for any \(l\in[0,m]\), the \(l\)-th dimension/rank support profile (DRP) of \(C\) is defined as \[\begin{align} \begin{aligned} \mathbf{K}_l^{M}(C)&\triangleq\max\{\dim_{\mathbb{F}}(C\cap\delta(U))\mid \text{U is an \mathbb{F}-subspace of \mathbb{F}^{[m]}, \dim_{\mathbb{F}}(U)=l}\}\\ &=\max\{\dim_{\mathbb{F}}(C\cap\delta(U))\mid \text{U is an \mathbb{F}-subspace of \mathbb{F}^{[m]}, \dim_{\mathbb{F}}(U)\leqslant l}\}, \end{aligned} \end{align}\] where for any \(\mathbb{F}\)-subspace \(U\subseteq\mathbb{F}^{[m]}\), \(\delta(U)=\{\alpha\in\mathrm{Mat}\,_{m,n}(\mathbb{F})\mid\mathrm{col}\,(\alpha)\subseteq U\}\). By Lemma 2.1, \(\varphi:[0,k]\longrightarrow[0,m]\) and \(\psi:[0,m]\longrightarrow[0,k]\) defined as \(\varphi(r)=\mathbf{d}_r^{M}(C)\) and \(\psi(l)=\mathbf{K}_l^{M}(C)\) form a Galois connection between \([0,k]\) and \([0,m]\) (cf. [26, Proposition 14]). We also refer the reader to Ravagnani [13] for definitions and results for Delsarte generalized weights, a different yet related notion proposed from an anti-code approach.

The following lemma is a corollary of [35, Lemma 2.1 and Proposition 3.1], and will be used to derive monotonicity and generalized Singleton bounds in Sections 3, 4 and 5.

Lemma 2. Let \(k,m,w\in\mathbb{N}\), and let \((\varphi,\psi)\) be a Galois connection between \([0,k]\) and \([0,m]\). Then, we have \(\varphi(0)=0\), \(\psi(m)=k\). Moreover, the following two statements are equivalent to each other:

(1)  \(\psi(l)-\psi(l-1)\leqslant w\) for all \(l\in [1,m]\);

(2)  \(\varphi(r)+1\leqslant\max\{\varphi(r+w),1\}\) for all \(r\in[0,k-w]\).

The following lemma follows from [35, Lemma 3.1] and some straightforward verification.

Lemma 3. Let \((k,m)\in\mathbb{N}^{2}\), \(w\in\mathbb{Z}^{+}\), and let \((\varphi,\psi)\) be a Galois connection between \([0,k]\) and \([0,m]\) such that \(\psi(0)=0\) and \(\psi(l)-\psi(l-1)\leqslant w\) for all \(l\in[1,m]\). Then, we have \(k\leqslant wm\), and there uniquely exists \(\eta:[0,m]\longrightarrow[0,wm-k]\) defined as \[\eta(l)=\psi(m-l)+wl-k.\] Moreover, the following four statements hold:

(1)  \(\eta(0)=0\), \(\eta(m)=wm-k\), and for any \(l\in[1,m]\), it holds that \(0\leqslant\eta(l)-\eta(l-1)\leqslant w\);

(2)  There uniquely exists \(\tau:[0,wm-k]\longrightarrow[0,m]\) such that \((\tau,\eta)\) is a Galois connection between \([0,wm-k]\) and \([0,m]\);

(3)  If \(k\geqslant1\), then we have \(\varphi(1)\geqslant1\) and \(\{b\in[0,m]\mid \psi(b)=0\}=[0,\varphi(1)-1]\);

(4)  If \(k\leqslant wm-1\), then we have \(\tau(1)\geqslant1\) and \(\{l\in[0,m]\mid\eta(l)=0\}=[0,\tau(1)-1]\).

Lemma 2.3 is the starting point of most results established in Section 3. In coding-theoretic settings, \(\varphi\) and \(\psi\) are always equal to the generalized weights and profiles of a code, and \(\tau\) and \(\eta\) are equal to the generalized weights and profiles of the dual code, respectively, as illustrated in the following example.

Example 5. (1)  Following Example 2.2, let \(\varphi\) and \(\psi\) denote the generalized \(\mathbf{P}\)-weights and \(\mathbf{P}\)-profiles of the \(k\)-dimension code \(C\), respectively, and set \(w=1\). Then, \(\tau\) and \(\eta\) coincide with the generalized \(\overline{\mathbf{P}}\)-weights and \(\overline{\mathbf{P}}\)-profiles of \(C^{\bot}\) (the dual code of \(C\) with respect to the standard inner product on \(\mathbb{F}^{\Omega}\)), respectively. More precisely, we have \(\tau(s)=\mathbf{d}_s^{\overline{\mathbf{P}}}(C^{\bot})\) for all \(s\in[0,m-k]\), and \(\eta(l)=\mathbf{K}_l^{\overline{\mathbf{P}}}(C^{\bot})\) for all \(l\in[0,m]\). In particular, if \(\mathbf{P}\) is an anti-chain, then \(\tau\) and \(\eta\) become the GHWs and DLPs of \(C^{\bot}\), respectively (see [15, Theorems 2, 3, 4]).

(2)  Following Example 2.3, let \(\varphi\) and \(\psi\) denote the GRWs and DIPs of the \(k\)-dimension Gabidulin code \(C\), respectively, and set \(w=1\). Then, \(\tau\) and \(\eta\) coincide with the GRWs and DIPs of \(C^{\bot}\) (the dual code of \(C\) with respect to the standard inner product on \(\mathbb{E}^{[m]}\)), respectively. More precisely, we have \(\tau(s)=\mathbf{d}_s^{G}(C^{\bot})\) for all \(s\in[0,m-k]\), and \(\eta(l)=\mathbf{K}_l^{G}(C^{\bot})\) for all \(l\in[0,m]\).

(3)  Following Example 2.4, let \(\varphi\) and \(\psi\) denote the GMWs and DRPs of the \(k\)-dimension Delsarte code \(C\), respectively, and set \(w=n\). Then, \(\tau\) and \(\eta\) coincide with the GMWs and DRPs of \(C^{\bot}\) (the dual code of \(C\) with respect to the trace inner product on \(\mathrm{Mat}\,_{m,n}(\mathbb{F})\), see [14]), respectively. More precisely, we have \(\tau(s)=\mathbf{d}_s^{M}(C^{\bot})\) for all \(s\in[0,mn-k]\), and \(\eta(l)=\mathbf{K}_l^{M}(C^{\bot})\) for all \(l\in[0,m]\).

2.2 Basics on rings and modules↩︎

We first follow [32], [33] and collect some notations and terminologies for rings and modules. Let \(R\) be a ring (which is always assumed to be associative with an multiplicative identity), and let \(M\) be a left \(R\)-module. For any \(A\subseteq M\), we write \(A\leqslant_{R}M\) if \(A\) is a left \(R\)-submodule of \(M\). If \(M\) is finitely generated, then we let \(\mathrm{rank}\,_R(M)\) denote the minimal cardinality of a generator set of \(M\). \(M\) is said to be simple if \(M\neq\{0\}\) and \(M\) has no left \(R\)-submodules other than \(\{0\}\) and \(M\). A composition series of \(M\) is a chain of left \(R\)-submodules \(\{0\}=L_0\subseteq L_1\subseteq\cdots\subseteq L_{t-1}\subseteq L_{t}=M\) where \(t\in\mathbb{N}\) and \(L_i/L_{i-1}\) is a simple left \(R\)-module for all \(i\in[1,t]\). If \(M\) has a composition series \(\{0\}=L_0\subseteq L_1\subseteq\cdots\subseteq L_{t-1}\subseteq L_{t}=M\), then we let \(\mathrm{len}\,_{R}(M)\triangleq t\). By the Jordan-Hölder theorem, \(t\) is independent of the choice of the composition series, and hence \(\mathrm{len}\,_{R}(M)\) is well-defined. We note that all the above notions parallelly apply to right \(R\)-modules.

For any \(A\subseteq R\), the right annihilator of \(A\) in \(R\) is defined as \(A^{\dagger}=\{b\in R\mid \forall~a\in A:ab=0\}\), and the left annihilator of \(A\) in \(R\) is defined as \({^{\dagger}A}=\{b\in R\mid \forall~a\in A:ba=0\}\). We say that \(R\) is quasi-Frobenius if \(R\) has a composition series as a left \(R\)-module, and for any left ideal \(A\) of \(R\) and right ideal \(B\) of \(R\), it holds that \(^{\dagger}(A^{\dagger})=A\) and \(({^{\dagger}B})^{\dagger}=B\).

Now following [24], [34], \(R\) is said to be a principal left ideal ring if every left ideal of \(R\) is a principal left ideal; moreover, \(R\) is said to be a left chain ring if the set of all the principal left ideals of \(R\) is a finite chain under \(\subseteq\) (i.e., \(R\) has only finitely many principal left ideals, and for any two principal left ideals \(I_1,I_2\) of \(R\), it holds that either \(I_1\subseteq I_2\) or \(I_2\subseteq I_1\)). Noticing that principal right ideal ring and right chain ring can be defined in a parallel fashion, we say that \(R\) is a chain ring if \(R\) is both a left chain ring and a right chain ring. We note that a left chain ring is a principal left ideal ring, and a chain ring is necessarily quasi-Frobenius.

The following lemma follows from [19, Section 2] and the first assertion of [22, Proposition 3.2], and will be used frequently in Section 4. We note that the results in [24], [34] were established for finite rings (and the ring is assumed to be commutative in [24]), and the counterpart results can be extended to infinite or non-commutative rings.

Lemma 4. Suppose that \(R\) is a principal left ideal ring and \(M\) is a finitely generated left \(R\)-module, and let \(B\leqslant_{R}M\). Then, \(B\) is finitely generated with \(\mathrm{rank}\,_R(B)\leqslant\mathrm{rank}\,_R(M)\). Further assume that \(R\) is a left chain ring and \(M\) is a free left \(R\)-module. Then, there exists a free left \(R\)-submodule \(H\leqslant_{R}M\) such that \(B\subseteq H\) and \(\mathrm{rank}\,_R(H)=\mathrm{rank}\,_R(B)\). Moreover, for any \(V\leqslant_{R}M\), it holds that \(\mathrm{rank}\,_R(B\cap V)=\mathrm{rank}\,_R(H\cap V)\).

Now consider a left \(R\)-module \(M\), a right \(R\)-module \(N\) and an \((R,R)\)-bilinear map \(f:M\times N\longrightarrow R\), i.e., for any \(u,v\in M\), \(x,y\in N\) and \(a,b\in R\), it holds that \(f(u+v,x)=f(u,x)+f(v,x)\), \(f(u,x+y)=f(u,x)+f(u,y)\), \(f(au,xb)=af(u,x)b\). For any \(A\subseteq M\), the right dual of \(A\) with respect to \(f\) is defined as \[A^{\bot}\triangleq\{y\in N\mid \forall~x\in A:f(x,y)=0\},\] and for any \(B\subseteq N\), the left dual of \(B\) with respect to \(f\) is defined as \[{^{\bot}B}\triangleq\{x\in M\mid \forall~y\in B:f(x,y)=0\}.\] Moreover, \(f\) is said to be non-degenerate if \(M^{\bot}=\{0\}\) and \({^{\bot}N}=\{0\}\).

The following lemma will be used in Sections 4 and 5 for deriving Wei-type duality theorems.

Lemma 5. (1)  Suppose that \(R\) is quasi-Frobenius, \(f\) is non-degenerate, and both \(M\) and \(N\) have a composition series. Then, for any \(A\leqslant_{R}M\) and \(B\leqslant_{R}N\), we have \(^{\bot}(A^{\bot})=A\), \(({^{\bot}B})^{\bot}=B\), \(\mathrm{len}\,_{R}(A^{\bot})=\mathrm{len}\,_{R}(M)-\mathrm{len}\,_{R}(A)\) and \(\mathrm{len}\,_R(A\cap({^{\bot}B}))-\mathrm{len}\,_R(A^{\bot}\cap B)=\mathrm{len}\,_{R}(A)-\mathrm{len}\,_{R}(B)\).

(2)  Suppose that \(R\) is a chain ring, \(f\) is non-degenerate, and both \(M\) and \(N\) are finitely generated free \(R\)-modules with \(\mathrm{rank}\,_R(M)=\mathrm{rank}\,_R(N)=m\). Let \(A\leqslant_{R}M\) and \(B\leqslant_{R}N\) be free \(R\)-submodules. Then, \(A^{\bot}\) is a free right \(R\)-submodule of \(N\) with \(\mathrm{rank}\,_R(A^{\bot})=m-\mathrm{rank}\,_R(A)\), \({^{\bot}B}\) is a free left \(R\)-submodule of \(M\) with \(\mathrm{rank}\,_R({^{\bot}B})=m-\mathrm{rank}\,_R(B)\), and it holds that \[\mathrm{rank}\,_R(A\cap({^{\bot}B}))-\mathrm{rank}\,_R(A^{\bot}\cap B)=\mathrm{rank}\,_R(A)-\mathrm{rank}\,_R(B).\]

Proof. (1) is a corollary of [1, Theorem 30.1] or [10, Theorem 58.8], and (2) follows from [19, Section 2]. We omit the details of the verification. ◻

3 Galois connection and related coding-theoretic properties↩︎

In this section, we establish some results for Galois connections and apply these results to coding-theoretic scenarios.

3.1 Security drop↩︎

It was shown in [34, Corollary A] that GHWs characterize the performance of code on the wire-tap channel of type II. An analogue of this result for rank metric code was established in [28, Theorem 42] by showing that GRWs measure the worst-case security drops of a Gabidulin code when it is employed in the scheme proposed by Silva, Kschischang and Koetterin [16], which can be used to secure a network communication against an eavesdropper. Both of these results may be illustrated by the following proposition.

Proposition 1. Let \((k,m)\in\mathbb{N}^{2}\), and let \((\varphi,\psi)\) be a Galois connection between \([0,k]\) and \([0,m]\). Then, the following two statements hold:

(1)  For any \(r\in [0,k-1]\), it holds that \(\{b\in[0,m]\mid \psi(b)=r\}=[\varphi(r),\varphi(r+1)-1]\); in particular, \(r\in\mathrm{ran}\,(\psi)\) if and only if \(\varphi(r)+1\leqslant\varphi(r+1)\);

(2)  For any \(l\in [1,m]\), it holds that \(\{a\in[0,k]\mid \varphi(a)=l\}=[\psi(l-1)+1,\psi(l)]\); in particular, \(l\in\mathrm{ran}\,(\varphi)\) if and only if \(\psi(l-1)+1\leqslant\psi(l)\).

Proof. (1)  For any \(b\in[0,m]\), from \(r\leqslant\psi(b)\Longleftrightarrow\varphi(r)\leqslant b\) and \(\psi(b)\leqslant r\Longleftrightarrow b\leqslant \varphi(r+1)-1\), we deduce that \(\psi(b)=r\) if and only if \(\varphi(r)\leqslant b\leqslant \varphi(r+1)-1\), as desired.

(2)  For any \(a\in[0,k]\), from \(\varphi(a)\leqslant l\Longleftrightarrow a\leqslant \psi(l)\) and \(l\leqslant \varphi(a)\Longleftrightarrow\psi(l-1)+1\leqslant a\), we deduce that \(\varphi(a)=l\) if and only if \(\psi(l-1)+1\leqslant a\leqslant \psi(l)\), as desired. ◻

Example 6. (1)  Following Example 2.1 and consider a \(k\)-dimensional linear code \(C\subseteq\mathbb{F}^{m}\). By (2) of Proposition 3.2, for any \(l\in [1,m]\), \(\mathbf{K}_{l-1}(C)+1\leqslant\mathbf{K}_l(C)\) if and only if \(l=\mathbf{d}_r(C)\) for some \(r\in[1,k]\). Alternatively speaking, the DLPs of \(C\) increase at exactly the GHWs of \(C\). When \(C^{\bot}\) is employed in the wire-tap channel of type II, \(\mathbf{K}_l(C)\) measures the information obtained by the adversary with \(l\) taps. Hence the drops of the adversary’s equivocation occurs at exactly the GHWs of \(C\), as has been shown in [34, Corollary A].

(2)  Following Example 2.3 and consider a Gabidulin code \(C\subseteq\mathbb{E}^{[m]}\) with \(\dim_{\mathbb{E}}(C)=k\). By (2) of Proposition 3.2, for any \(l\in [1,m]\), \(\mathbf{K}_{l-1}^{G}(C)+1\leqslant\mathbf{K}_l^{G}(C)\) if and only if \(l=\mathbf{d}_r^{G}(C)\) for some \(r\in[1,k]\). Alternatively speaking, the DIPs of \(C\) increases at exactly the GRWs of \(C\). When \(C\) is employed in the rank-metric coding scheme proposed in [16], the information that an eavesdropper can obtain listening at \(l\) links of the channel is bounded by \(\mathbf{K}_l^{G}(C)\). Moreover, following [28, Definition 41], the worst case security drops of \(C\) are those \(l's\) between \(1\) and \(m\) satisfying \(\mathbf{K}_{l-1}^{G}(C)+1\leqslant\mathbf{K}_l^{G}(C)\), which are exactly the GRWs of \(C\), as has been shown in [28, Theorem 42].

3.2 Relations between generalized weights of Gabidulin and Delsarte codes↩︎

It was shown in [28, Theorem 28] that GRWs of a Gabidulin code are determined by the Delsarte generalized weights of its associated Delsarte code and vice versa. An analogue of this result for GMWs (and the more general notion of relative generalized matrix weights or RGMWs, see [26, Definition 10]) was established in [26, Theorem 7]. Both of these results may be illustrated by the following proposition.

Proposition 2. Let \(k\in\mathbb{N}\), \(Q\subseteq\mathbb{Z}\), and let \((\varphi,\psi)\) be a Galois connection between \([0,k]\) and \(Q\). Fix \(\theta\in\mathbb{Z}^{+}\). Define \(f:[0,\theta k]\longrightarrow Q\) as \(f(a)=\varphi\left(\left\lceil\frac{a}{\theta}\right\rceil\right)\), and define \(g:Q\longrightarrow [0,\theta k]\) as \(g(b)=\theta\psi(b)\). Then, \((f,g)\) is a Galois connection between \([0,\theta k]\) and \(Q\). Moreover, if \(h:[0,\theta k]\longrightarrow Q\) and \((h,g)\) is a Galois connection between \([0,\theta k]\) and \(Q\), then we have \(h(a)=\varphi\left(\left\lceil\frac{a}{\theta}\right\rceil\right)\) for all \(a\in[0,\theta k]\).

Proof. Let \(a\in[0,\theta k]\) and \(b\in Q\). Noticing that \(\psi(b)\) is an integer, we have \[f(a)\leqslant b\Longleftrightarrow\varphi\left(\left\lceil\frac{a}{\theta}\right\rceil\right)\leqslant b\Longleftrightarrow\left\lceil\frac{a}{\theta}\right\rceil\leqslant\psi(b)\Longleftrightarrow\frac{a}{\theta}\leqslant\psi(b)\Longleftrightarrow a\leqslant\theta\psi(b)\Longleftrightarrow a\leqslant g(b),\] which implies that \((f,g)\) is a Galois connection between \([0,\theta k]\) and \(Q\), as desired. Finally, the “moreover” assertion follows from the “moreover” part of Remark 2.1. ◻

Example 7. Let \(\mathbb{E}/\mathbb{F}\) be a finite dimensional field extension with \(\dim_{\mathbb{F}}(\mathbb{E})=n\), and fix an ordered \(\mathbb{F}\)-basis \((\tau_1,\dots,\tau_n)\) of \(\mathbb{E}\). Let \(m\in\mathbb{Z}^{+}\). For any \(\alpha\in\mathbb{E}^{[m]}\), define \(\mathcal{M}(\alpha)\in\mathrm{Mat}\,_{m,n}(\mathbb{F})\) as \(\alpha_i=\sum_{j=1}^{n}\mathcal{M}(\alpha)_{(i,j)}\tau_j\) for all \(i\in[1,m]\). Now for an \(k\)-dimensional Gabidulin code \(C\subseteq\mathbb{E}^{[m]}\), the Delsarte code associated to \(C\) is defined as \(Q\triangleq\{\mathcal{M}(\alpha)\mid\alpha\in C\}\). By Examples 2.3 and 2.4, \((\mathbf{d}_r^{G}(C)\mid r\in[0,k])\) and \((\mathbf{K}_l^{G}(C)\mid l\in[0,m])\) form a Galois connection between \([0,k]\) and \([0,m]\), and \((\mathbf{d}_a^{M}(Q)\mid a\in[0,nk])\) and \((\mathbf{K}_l^{M}(Q)\mid l\in[0,m])\) form a Galois connection between \([0,nk]\) and \([0,m]\). Moreover, it has been shown in [26, Theorem 7] that \(\mathbf{K}_l^{M}(Q)=n\mathbf{K}_l^{G}(C)\) for all \(l\in[0,m]\) and \(\mathbf{d}_a^{M}(Q)=\mathbf{d}_{_{\left\lceil\frac{a}{n}\right\rceil}}^{G}(C)\) for all \(a\in[0,nk]\), where the latter can be derived from the former one and Proposition 3.2.

3.3 Singleton bound↩︎

Throughout the rest of this section, let \((k,m)\in\mathbb{N}^{2}\), \(w\in\mathbb{Z}^{+}\), and let \((\varphi,\psi)\) be a Galois connection between \([0,k]\) and \([0,m]\) such that \(\psi(0)=0\) and \[\text{\psi(l)-\psi(l-1)\leqslant w for all l\in[1,m]}.\] Moreover, define \(\eta:[0,m]\longrightarrow[0,wm-k]\) as \[\eta(l)=\psi(m-l)+wl-k,\] and let \(\tau:[0,wm-k]\longrightarrow[0,m]\) such that \((\tau,\eta)\) is a Galois connection between \([0,wm-k]\) and \([0,m]\).

In this subsection, we establish a Singleton bound for \(k\), as detailed in the following proposition.

Proposition 3. Suppose that \(k\geqslant1\) and \(d=\varphi(1)\). Then, for any \(l\in[d-1,m]\), it holds that \[k-w(m-l)\leqslant\psi(l)\leqslant w(l-d+1).\] In particular, we have \[k\leqslant w(m-d+1).\]

Proof. For any \(l\in[d-1,m]\), from \(\eta(m-l)=\psi(l)+w(m-l)-k\geqslant0\), we deduce that \(k-w(m-l)\leqslant\psi(l)\); moreover, from \(\psi(d-1)=0\) and (3.1), we deduce that \(\psi(l)\leqslant w(l-(d-1))=w(l-d+1)\), as desired. Finally, (3.3) implies that \(k=\psi(m)\leqslant w(m-d+1)\), as desired. ◻

Now we show that if equality holds in (3.4), then \((\varphi,\psi)\) is uniquely determined.

Theorem 1. Suppose that \(k\geqslant1\), \(d=\varphi(1)\) and \(k=w(m-d+1)\). Then, we have \(\psi(l)=w(l-d+1)\) for all \(l\in[d-1,m]\), and \(\varphi(a)=\left\lceil\frac{a}{w}\right\rceil+d-1\) for all \(a\in[1,k]\).

Proof. For any \(l\in[d-1,m]\), from \(k-w(m-l)=w(l-d+1)\) and (3.3), we deduce that \(\psi(l)=w(l-d+1)\), as desired. Next, consider \(a\in[1,k]\). Let \(b\triangleq\varphi(a)\geqslant d\). By (2) of Proposition 3.1, we have \(\psi(b-1)+1\leqslant a\leqslant\psi(b)\), which implies that \(w(b-d)+1\leqslant a\leqslant w(b-d+1)\). It then follows that \(\lceil\frac{a}{w}\rceil=b-d+1\) and hence \(\varphi(a)=b=\lceil\frac{a}{w}\rceil+d-1\), as desired. ◻

In the following example, we use (3.4) to recover Singleton bounds for codes endowed with various metrics.

Example 8. (1)  Following (1) of Example 2.5 and consider a linear code \(C\subseteq\mathbb{F}^{\Omega}\) with \(\dim_{\mathbb{F}}(C)=k\geqslant1\). Then, \(d\) becomes the minimal \(\mathbf{P}\)-weight of \(C\) (see [28]), and (3.4) recovers the Singleton bound for \(\mathbf{P}\)-codes, which has been established in [20, Corollary 2.2]. When \(k=m-d+1\), then \(C\) is an MDS \(\mathbf{P}\)-code (see [20, Definition 2.3]). Theorem 3.1 shows that the generalized \(\mathbf{P}\)-weights and profiles of an MDS \(\mathbf{P}\)-code is completely determined by the code length \(m\) and dimension \(k\). In particular, if \(\mathbf{P}\) is an anti-chain, then \(d\) is equal to the minimal Hamming weight of \(C\), and (3.4) recovers the classical Singleton bound.

(2)  Following (2) of Example 2.5 and consider a Gabidulin code \(C\subseteq\mathbb{E}^{[m]}\) with \(\dim_{\mathbb{E}}(C)=k\geqslant1\). Then, \(d\) is equal to the minimal rank weight of \(C\) (see [17, Definition 3.3]), and (3.4) becomes the Singleton bound for Gabidulin codes (see [17, Remark 3.6]). If \(k=m-d+1\), then \(C\) is an MRD code (see [17, Definition 3.8]), whose GRWs and DIPs are completely determined by \(m\) and \(k\), as has been shown in Theorem 3.1.

(3)  Following (3) of Example 2.5 and consider a Delsarte code \(C\subseteq\mathrm{Mat}\,_{m,n}(\mathbb{F})\) with \(\dim_{\mathbb{F}}(C)=k\geqslant1\). Then, \(d\) is equal to the minimal rank weight of \(C\) (see [17, Definition 3.1]), and (3.4) becomes the Singleton bound for Delsarte codes (cf. [17, Theorem 3.5]). If \(k=n(m-d+1)\), then \(C\) is an MRD Delsarte code (see [17, Definition 3.8]), whose GMWs and DRPs are completely determined by \((m,n,k)\), as has been shown in Theorem 3.1.

3.4 Generalized Singleton bound↩︎

Now we establish a generalized Singleton bound for \(\varphi\). The following theorem is the main result of this subsection.

Theorem 2. (1)  For any \(r\in[0,k-w]\), it holds that \(\varphi(r)+1\leqslant\varphi(r+w)\).

(2)  For any \(a,c\in[0,k]\) with \(a\leqslant c\), it holds that \[\varphi(a)+\left\lfloor\frac{c-a}{w}\right\rfloor\leqslant\varphi(c).\]

(3)  For any \(a\in[0,k]\), it holds that \[\varphi(a)\leqslant m-\left\lfloor\frac{k-a}{w}\right\rfloor.\]

(4)  Let \(a\in[0,k]\) such that \(\varphi(a)=m-\left\lfloor\frac{k-a}{w}\right\rfloor\), and let \(c\in[a,k]\) with \(c\equiv a~(\bmod~w)\). Then, it holds that \(\varphi(c)=m-\left\lfloor\frac{k-c}{w}\right\rfloor\).

Proof. (1)  For any \(r\in[0,k-w]\), by \(r+w\geqslant1\), we have \(\varphi(r+w)\geqslant1\), which, together with (3.1) and Lemma 2.2, implies that \(\varphi(r)+1\leqslant\max\{\varphi(r+w),1\}=\varphi(r+w)\), as desired.

(2)  By \(a\leqslant a+\left\lfloor\frac{c-a}{w}\right\rfloor w\leqslant c\) and (1), we have \(\varphi(a)+\left\lfloor\frac{c-a}{w}\right\rfloor\leqslant\varphi(a+\left\lfloor\frac{c-a}{w}\right\rfloor w)\leqslant\varphi(c)\), as desired.

(3)  By (2), we have \(\varphi(a)+\lfloor\frac{k-a}{w}\rfloor\leqslant\varphi(k)\leqslant m\), which establishes (3.6).

(4)  From (2) and \(\frac{c-a}{w}\in\mathbb{N}\), we deduce that \(\varphi(c)\geqslant\varphi(a)+\frac{c-a}{w}=m-\left\lfloor\frac{k-c}{w}\right\rfloor\); moreover, by (3), we have \(\varphi(c)\leqslant m-\left\lfloor\frac{k-c}{w}\right\rfloor\), which further establishes the desired result. ◻

We note that (1) of Theorem 3.2 establishes monotonicity of \(\varphi\), and inequality (3.6), which follows from the more general inequality (3.5), may be regarded as the generalized Singleton bound for \(\varphi\). When \(k\geqslant1\), (3.6) recovers the Singleton bound (3.4) by setting \(a=1\).

In the following example, we use Theorem 3.2 to recover several generalized Singleton bounds in coding theory.

Example 9. Following (1) of Example 2.5, and consider a linear code \(C\subseteq\mathbb{F}^{\Omega}\) with \(\dim_{\mathbb{F}}(C)=k\). Then, (1) of Theorem 3.2 implies that \(\mathbf{d}_r^{\mathbf{P}}(C)+1\leqslant\mathbf{d}_{r+1}^{\mathbf{P}}(C)\) for all \(r\in[0,k-1]\), and (3.6) implies that \(\mathbf{d}_r^{\mathbf{P}}(C)\leqslant m-k+r\) for all \(r\in[0,k]\). These recover the monotonicity and generalized Singleton bound of generalized \(\mathbf{P}\)-weights, respectively (see [27, Propositions 1 and 2]). In particular, if \(\mathbf{P}\) is an anti-chain, then we obtain the well-known monotonicity and generalized Singleton bound for GHWs (see [34, Theorem 1 and Corollary 1]). Similarly, following (2) and (3) of Example 2.5, (1) and (3) of Theorem 3.2 recover the monotonicity and generalized Singleton bound for GRWs of Gabidulin codes ([13, Theorem I.2 and Corollary II.4]) as well as those for GMWs of Delsarte codes (see [26, Proposition 43 and Theorem 5]), respectively.

The following theorem gives monotonicity and generalized Singleton bound for \(\tau\). The proof is similar to that of Theorem 3.2 and thus omitted.

Theorem 3. We have \(\tau(c)+1\leqslant\tau(c+w)\) for all \(c\in[0,w(m-1)-k]\), and \(\tau(a)\leqslant \left\lceil\frac{k+a}{w}\right\rceil\) for all \(a\in[0,wm-k]\).

We end this subsection with the following proposition, which improves (3.4) and gives sufficient conditions for \(\varphi\) and \(\tau\) to obtain the generalized Singleton bounds.

Proposition 4. (1)  Suppose that \(k\leqslant wm-1\) and \(e=\tau(1)\). Then, for any \(t\in[m+1-e,m]\), it holds that \[\psi(t)=k-w(m-t).\] In particular, it holds that \[k=w(e-1)+\psi(m-e+1).\] Moreover, for any \(a\in[0,k]\) with \(\varphi(a)\geqslant m+1-e\), it holds that \[\varphi(a)=m-\left\lfloor\frac{k-a}{w}\right\rfloor.\]

(2)  Suppose that \(k\geqslant1\) and \(d=\varphi(1)\). Then, for any \(l\in[m-d+1,m]\), it holds that \[\eta(l)=wl-k.\] In particular, it holds that \[k=w(m-d+1)-\eta(m-d+1).\] Moreover, for any \(a\in[0,wm-k]\) with \(\tau(a)\geqslant m-d+1\), it holds that \[\tau(a)=\left\lceil\frac{a+k}{w}\right\rceil.\]

Proof. We only prove (1) and the proof of (2) is similar. First, for any \(t\in[m+1-e,m]\), by \(m-t\leqslant e-1\), we have \(0=\eta(m-t)=\psi(t)+w(m-t)-k\), which establishes (3.7), as desired. In particular, we have \(\psi(m+1-e)=k-w(e-1)\), which establishes (3.8), as desired. Now consider \(a\in[0,k]\) with \(\varphi(a)\geqslant m-e+1\). By (3.7), we have \(a\leqslant\psi(\varphi(a))=k-w(m-\varphi(a))\). This implies that \(m-\lfloor\frac{k-a}{w}\rfloor\leqslant\varphi(a)\), which, together with (3.6), further establishes (3.9), as desired. ◻

3.5 The case that \(\varphi(1)+\tau(1)=m+2\)↩︎

In this subsection, we prove the following theorem, which can be used to characterize MDS and MRD codes.

Theorem 4. Suppose that \(1\leqslant k\leqslant wm-1\), \(d=\varphi(1)\) and \(e=\tau(1)\). Then, we have \[w(e-1)\leqslant k\leqslant w(m-d+1).\] In particular, it holds that \(d+e\leqslant m+2\). Moreover, the following three statements are equivalent to each other:

(1)  \(k=w(m-d+1)\);

(2)  \(k=w(e-1)\);

(3)  \(d+e=m+2\).

Proof. First of all, (3.13) is a combination of (3.8) and (3.11), which further implies that \(e-1\leqslant m-d+1\) and hence \(d+e\leqslant m+2\), as desired. Moreover, (3.11) and (3.8) imply that \[k=w(m-d+1)\Longleftrightarrow\eta(m-d+1)=0\Longleftrightarrow m-d+1\leqslant e-1\Longleftrightarrow m+2\leqslant d+e,\] \[k=w(e-1)\Longleftrightarrow\psi(m-e+1)=0\Longleftrightarrow m-e+1\leqslant d-1\Longleftrightarrow m+2\leqslant d+e,\] which, together with \(d+e\leqslant m+2\), further establishes the desired result. ◻

Example 10. (1)  Following (1) of Example 2.5 and consider a linear code \(C\subseteq\mathbb{F}^{\Omega}\) with \(\dim_{\mathbb{F}}(C)=k\in[1,m-1]\). Then, Theorem 3.4 implies that \(C\) is an MDS \(\mathbf{P}\)-code if and only if \(C^{\bot}\) is an MDS \(\overline{\mathbf{P}}\)-code, if and only if \(\mathbf{d}_1^{\mathbf{P}}(C)+\mathbf{d}_1^{\overline{\mathbf{P}}}(C^{\bot})=m+2\), which recovers [20, Theorem 3.12]. In particular, if \(\mathbf{P}\) is an anti-chain, then Theorem 3.4 recovers the well-known fact that \(C\) is MDS if and only if \(C^{\bot}\) is MDS.

(2)  Following (2) of Example 2.5 and consider a Gabidulin code \(C\subseteq\mathbb{E}^{[m]}\) with \(\dim_{\mathbb{E}}(C)=k\in[1,m-1]\). Then, Theorem 3.4 implies that \(C\) is MRD if and only if \(C^{\bot}\) is MRD, if and only if \(\mathbf{d}_1^{G}(C)+\mathbf{d}_1^{G}(C^{\bot})=m+2\).

(3)  Following (3) of Example 2.5 and consider a Delsarte code \(C\subseteq\mathrm{Mat}\,_{m,n}(\mathbb{F})\) with \(\dim_{\mathbb{F}}(C)=k\in[1,mn-1]\). Then, Theorem 3.4 implies that \(C\) is MRD if and only if \(C^{\bot}\) is MRD, if and only if \(\mathbf{d}_1^{M}(C)+\mathbf{d}_1^{M}(C^{\bot})=m+2\), as has been shown in [8, Proposition 19 (1)].

3.6 A duality theorem↩︎

In this subsection, we prove a duality theorem which will be used frequently in the rest of this section.

Theorem 5. (1)  Let \(c\in[0,wm-k]\) and \(l\in\mathbb{Z}\). Then, \(\tau(c)\leqslant l\) if and only if both \(c\leqslant wl\) and \[c\geqslant wl-k+1\Longrightarrow\varphi(c+k-wl)\leqslant m-l\] hold true. Moreover, \(\tau(c)\geqslant l\) if and only if both \(c\geqslant w(l-1)-k+1\) and \[c\leqslant w(l-1)\Longrightarrow\varphi(c-w(l-1)+k)\geqslant m-l+2\] hold true.

(2)  Let \(a\in[0,k]\) and \(b\in\mathbb{Z}\). Then, \(\varphi(a)\leqslant b\) if and only if both \(a\leqslant wb\) and \[a\geqslant k+1-w(m-b)\Longrightarrow\tau(a+w(m-b)-k)\leqslant m-b\] hold true. Moreover, \(\varphi(a)\geqslant b\) if and only if both \(a\geqslant k+1-w(m-b+1)\) and \[a\leqslant w(b-1)\Longrightarrow\tau(a+w(m-b+1)-k)\geqslant m-b+2\] hold true.

Proof. (1)  We only prove the first assertion as the “moreover” part follows from an application of the first assertion to \((c,l-1)\). In what follows, we assume that \(l\in[0,m]\) as otherwise the result immediately follows. First, note that \(\tau(c)\leqslant l\) if and only if \(c\leqslant \eta(l)\), if and only if \(c+k-wl\leqslant\psi(m-l)\). Next, we prove the “only if” part. By \(\tau(c)\leqslant l\), we have \(c+k-wl\leqslant\psi(m-l)\leqslant k\) and hence \(c\leqslant wl\), as desired. Moreover, if \(c\geqslant wl-k+1\), then it follows from \(c+k-wl\leqslant\psi(m-l)\) that \(\varphi(c+k-wl)\leqslant m-l\), as desired. Finally, we prove the “if” part. If \(c\leqslant wl-k\), then we have \(c+k-wl\leqslant0\leqslant \psi(m-l)\), as desired. And if \(c\geqslant wl-k+1\), then from \(\varphi(c+k-wl)\leqslant m-l\), we deduce that \(c+k-wl\leqslant \psi(m-l)\), as desired.

(2)  The proof of the first assertion is similar to that of (1), and the “moreover” assertion follows from an application of the first assertion to \((a,b-1)\). We omit the details of the verification. ◻

Theorem 3.5 shows that \(\varphi\) and \(\tau\) are determined by each other. It is convenient to apply Theorem 3.5 in various cases as substituting \((c,l)\) or \((a,b)\) accordingly will lead to the desired result. Theorem 3.5 may be regarded as an analogue of the Wei-type duality theorem for \(\varphi\) and \(\tau\) (see Theorem 3.12) as many coding-theoretic results derived from Wei-type duality theorems can be established by a simple application of Theorem 3.5, as will be shown in later sections. In addition, Theorem 3.5 is very elementary in the sense that it directly follows from (3.2) and the definition of Galois connection.

3.7 Necessary and sufficient conditions for obtaining the generalized Singleton bound↩︎

As a first application of Theorem 3.5, in this subsection, we derive necessary and sufficient conditions for equality to hold in (3.6). The following is the main result of this subsection.

Theorem 6. (1)  Let \(\gamma\in[1,w]\) with \(k\geqslant w(m-1)+\gamma\). Then, for any \(a\in[0,k]\) with \(a\equiv\gamma~(\bmod~w)\), it holds that \(\varphi(a)=m-\lfloor\frac{k-a}{w}\rfloor\).

(2)  Let \(\gamma\in[1,w]\) with \(k\leqslant w(m-1)+\gamma-1\). Then, for any \(a\in[0,k]\) with \(a\equiv\gamma~(\bmod~w)\), it holds that \[\varphi(a)=m-\left\lfloor\frac{k-a}{w}\right\rfloor\Longleftrightarrow\tau\left(\left\lceil\frac{k-\gamma+1}{w}\right\rceil w-k+\gamma\right)\geqslant \left\lfloor\frac{k-a}{w}\right\rfloor+2.\]

Proof. With (3) of Theorem 3.2 and some straightforward computation, the desired result follows from an application of (2) of Theorem 3.5 to \(a\) and \(b=m-\lfloor\frac{k-a}{w}\rfloor\). ◻

Corollary 1. Let \(\gamma\in[1,w]\) with \(k\leqslant w(m-1)+\gamma-1\), and let \(\theta=\tau(\lceil\frac{k-\gamma+1}{w}\rceil w-k+\gamma)\). Then, for any \(a\in[0,k]\) with \(a\equiv\gamma~(\bmod~w)\), the following two statements are equivalent to each other:

(1)  \(\theta=\left\lfloor\frac{k-a}{w}\right\rfloor+2\);

(2)  \(\varphi(a)=m-\left\lfloor\frac{k-a}{w}\right\rfloor\), and \(a=\min\{c\in[0,k]\mid c\equiv\gamma~(\bmod~w),\varphi(c)=m-\left\lfloor\frac{k-c}{w}\right\rfloor\}\).

Proof. \((1)\Longrightarrow(2)\)  By Theorem 3.6, we have \(\varphi(a)=m-\lfloor\frac{k-a}{w}\rfloor\). Now let \(c\in[0,k]\) such that \(c\equiv\gamma~(\bmod~w)\) and \(\varphi(c)=m-\lfloor\frac{k-c}{w}\rfloor\). By Theorem 3.6, we have \(\theta\geqslant\lfloor\frac{k-c}{w}\rfloor+2\). It follows that \(\lfloor\frac{k-a}{w}\rfloor\geqslant\lfloor\frac{k-c}{w}\rfloor\), which, together with \(c\equiv a~(\bmod~w)\), further implies that \(c\geqslant a\), as desired.

\((2)\Longrightarrow(1)\)  By Theorem 3.6, it remains to show that \(\theta\leqslant\lfloor\frac{k-a}{w}\rfloor+2\). If \(a\geqslant w\), then by (2), we have \(\varphi(a-w)\neq m-\lfloor\frac{k-(a-w)}{w}\rfloor\), which, together with Theorem 3.6, implies that \(\theta\leqslant\lfloor\frac{k-(a-w)}{w}\rfloor+1=\lfloor\frac{k-a}{w}\rfloor+2\), as desired. Moreover, if \(a\leqslant w-1\), then we have \(a\leqslant\gamma\), which, together with Theorem 3.3, further implies that \(\theta\leqslant\lfloor\frac{k-\gamma}{w}\rfloor+2\leqslant\lfloor\frac{k-a}{w}\rfloor+2\), as desired. ◻

Theorem 3.6 and Corollary 3.1 can be used to characterize \(i\)-MDS codes and \(i\)-MRD codes, as detailed in the following example.

Example 11. (1)  Following (1) of Example 2.5 and consider a linear code \(C\subseteq\mathbb{F}^{\Omega}\) with \(\dim_{\mathbb{F}}(C)=k\). For any \(i\in[0,k]\), we say that \(C\) is an \(i\)-MDS \(\mathbf{P}\)-code if \(\mathbf{d}_i^{\mathbf{P}}(C)=m-k+i\). Suppose that \(k\leqslant m-1\) and \(a\in[0,k]\). Then, Theorem 3.6 and Corollary 3.1 imply that \(C\) is \(a\)-MDS if and only if \(\mathbf{d}_1^{\overline{\mathbf{P}}}(C^{\bot})\geqslant k-a+2\); moreover, \(\mathbf{d}_1^{\overline{\mathbf{P}}}(C^{\bot})=k-a+2\) if and only if \(C\) is \(a\)-MDS and \(a=\min\{c\in[0,k]\mid \text{C is c-MDS}\}\). In particular, if \(\mathbf{P}\) is an anti-chain, then the counterpart result has been established in [14, Proposition 4] by using the Wei-type duality theorem for GHWs (see [34, Theorem 3]).

(2)  Following (2) of Example 2.5 and consider a Gabidulin code \(C\subseteq\mathbb{E}^{[m]}\) with \(\dim_{\mathbb{E}}(C)=k\). For any \(i\in[0,k]\), we say that \(C\) is \(i\)-MRD if \(\mathbf{d}_i^{G}(C)=m-k+i\) (see [13, Definition 1]). Suppose that \(k\leqslant m-1\) and \(a\in[0,k]\). Then, Theorem 3.6 implies that \(C\) is \(a\)-MRD if and only if \(\mathbf{d}_1^{G}(C^{\bot})\geqslant k-a+2\), as has been shown in [13, Corollary III.3] by using the Wei-type duality theorem for GRWs (see [13, Theorem I.3]).

(3)  Suppose that \(\mathbb{F}\) is a field, \(C\subseteq\mathrm{Mat}\,_{m,w}(\mathbb{F})\) is a Delsarte code with \(\dim_{\mathbb{F}}(C)=k\), and \(\varphi(r)\) is equal to the \(r\)-th Delsarte generalized weight of \(C\) for all \(r\in[0,k]\) (see [28, Definition 23]). Then, \(\tau(s)\) is equal to the \(s\)-th Delsarte generalized weight of \(C^{\bot}\) for all \(s\in[0,wm-k]\). For any \(i\in[1,\lceil\frac{k}{w}\rceil]\), we say that \(C\) is \(i\)-MRD if \(\varphi((i-1)w+1)=m-\lceil\frac{k}{w}\rceil+i\) (see [7, Definition 6.1]). Then, with \(\gamma\) set to be \(1\), Theorem 3.6 and Corollary 3.1 recover counterpart results in [7, Section 6.1], which were established for \(i\)-MRD codes by using the Wei-type duality theorem for Delsarte generalized weights (see [28, Corollary 38]).

3.8 MDS discrepancy↩︎

Following [34, Section VI], the MDS discrepancy of a \(k\)-dimensional linear code \(C\subseteq\mathbb{F}^{m}\), where \(\mathbb{F}\) is a field, is defined as the largest integer \(s\in[0,k]\) satisfying \(\mathbf{d}_s(C)\leqslant m-k\). MDS discrepancy measures how far the code \(C\) is away from an MDS code. It has been proven in [34, Theorem 10] that the MDS discrepancy of a code is equal to that of its dual code, which has been further generalized to poset codes in [27] by using the Wei-type duality theorem for poset codes (see [27, Theorem 2]). In terms of Galois connections, these results may be illustrated by the following proposition.

Proposition 5. Suppose that \(w\mid k\) and \(1\leqslant\frac{k}{w}\leqslant m-1\). Then, for any \(c\in[1,\min(k,wm-k)]\), it holds that \(\tau(c)\leqslant \frac{k}{w}\Longleftrightarrow\varphi(c)\leqslant m-\frac{k}{w}\).

Proof. An application of (1) of Theorem 3.5 to \(l=\frac{k}{w}\) immediately implies the desired result. ◻

We apply Proposition 3.5 to poset codes and rank metric codes, as detailed in the following example.

Example 12. (1)  Following (1) of Example 2.5 and consider a linear code \(C\subseteq\mathbb{F}^{\Omega}\) with \(\dim_{\mathbb{F}}(C)=k\in[1,m-1]\). For any \(s\in[1,\min\{k,m-k\}]\), Proposition 3.5 implies that \(\mathbf{d}_s^{\overline{\mathbf{P}}}(C^{\bot})\leqslant k\Longleftrightarrow\mathbf{d}_s^{\mathbf{P}}(C)\leqslant m-k\). Hence the \(\mathbf{P}\)-MDS discrepancy of \(C\) is equal to the \(\overline{\mathbf{P}}\)-MDS discrepancy of \(C^{\bot}\) (see [27, Section 4.1]). This recovers [27, Theorem 3], which further recovers [34, Theorem 10] when \(\mathbf{P}\) is an anti-chain.

(2)  Following (2) of Example 2.5 and consider a Gabidulin code \(C\subseteq\mathbb{E}^{[m]}\) with \(\dim_{\mathbb{E}}(C)=k\in[1,m-1]\). For any \(s\in[1,\min\{k,m-k\}]\), Proposition 3.5 implies that \(\mathbf{d}_s^{G}(C^{\bot})\leqslant k\Longleftrightarrow\mathbf{d}_s^{G}(C)\leqslant m-k\). Hence if we define the MRD discrepancy of \(C\) as the largest integer \(s\in[0,k]\) satisfying \(\mathbf{d}_{s}^{G}(C)\leqslant m-k\), then the MRD discrepancy of \(C\) is equal to that of \(C^{\bot}\).

(3)  Following (3) of Example 2.5 and consider a Delsarte code \(C\subseteq\mathrm{Mat}\,_{m,n}(\mathbb{F})\) with \(\dim_{\mathbb{F}}(C)=k\in[1,mn-1]\) and \(n\mid k\). Then, for any \(s\in[1,\min\{k,mn-k\}]\), Proposition 3.5 implies that \(\mathbf{d}_s^{M}(C^{\bot})\leqslant \frac{k}{n}\Longleftrightarrow\mathbf{d}_s^{M}(C)\leqslant m-\frac{k}{n}\). Hence if we define the MRD discrepancy of \(C\) as the largest integer \(s\in[0,k]\) satisfying \(\mathbf{d}_{s}^{M}(C)\leqslant m-\frac{k}{n}\), then the MRD discrepancy of \(C\) is equal to that of \(C^{\bot}\).

3.9 The case that \(\varphi(1)+\tau(1)=m\)↩︎

In this subsection, we establish some results for the special case \(\varphi(1)+\tau(1)=m\), which can be used to characterize near MDS (NMDS) and near MRD (NMRD) codes. We begin with the following proposition.

Proposition 6. Suppose that \(1\leqslant k\leqslant wm-1\), \(d=\varphi(1)\), \(e=\tau(1)\), \(w\mid k\) and \(d+e\neq m+2\). Then, it holds that \[e\leqslant\frac{k}{w}\leqslant m-d.\] Consequently, we have \(d+e\leqslant m\). Moreover, if \(d+e=m\), then we have \(k=we=w(m-d)\).

Proof. By \(d+e\neq m+2\) and Theorem 3.4, we have \(\frac{k}{w}\neq e-1\) and \(\frac{k}{w}\neq m-d+1\), which, together with \(e-1\leqslant\frac{k}{w}\leqslant m-d+1\) (see (3.13)) and \(\frac{k}{w}\in\mathbb{Z}\), immediately establishes (3.14), which further yields the rest part. ◻

Corollary 2. Suppose that \(1\leqslant k\leqslant wm-1\), \(d=\varphi(1)\), \(e=\tau(1)\) and \(d+e=m\). Then, \((d,e)\) is equal to either \((m-\left\lceil\frac{k}{w}\right\rceil,\left\lceil\frac{k}{w}\right\rceil)\) or \((m-\left\lfloor\frac{k}{w}\right\rfloor,\left\lfloor\frac{k}{w}\right\rfloor)\).

Proof. By Proposition 3.6, we can assume that \(w\nmid k\). From \(w(e-1)\leqslant k\leqslant w(m-d+1)\), we deduce that \(e\leqslant\left\lceil\frac{k}{w}\right\rceil\) and \(d\leqslant m-\left\lceil\frac{k}{w}\right\rceil+1\). This, together with \((m-\left\lceil\frac{k}{w}\right\rceil+1)+\left\lceil\frac{k}{w}\right\rceil=m+1=d+e+1\), implies that either \(e=\left\lceil\frac{k}{w}\right\rceil\) or \(e=\left\lceil\frac{k}{w}\right\rceil-1=\left\lfloor\frac{k}{w}\right\rfloor\), which further establishes the desired result. ◻

The following result follows from Proposition 3.6 and Theorem 3.5.

Corollary 3. Suppose that \(1\leqslant k\leqslant wm-1\), \(d=\varphi(1)\) and \(e=\tau(1)\). Then, the following two statements are equivalent to each other:

(1)  \(w\mid k\) and \(d+e=m\);

(2)  \(k=w(m-d)\), and moreover, \(d\leqslant m-2\Longrightarrow\varphi(w+1)=d+2\).

Proof. \({\boldsymbol{(1)}}\Longrightarrow{\boldsymbol{(2)}}\)  By Proposition 3.6, we have \(k=w(m-d)\). Moreover, if \(d\leqslant m-2\), then an application of (1) of Theorem 3.5 to \(c=1\) and \(l=m-d\) implies that \(\varphi(w+1)\geqslant d+2\), which, together with (3) of Theorem 3.2, further implies that \(\varphi(w+1)=d+2\), as desired.

\({\boldsymbol{(2)}}\Longrightarrow{\boldsymbol{(1)}}\)  By Theorem 3.4, we have \(w\mid k\), \(d+e\neq m+2\), which, together with Proposition 3.6, implies that \(d+e\leqslant m\). Hence if \(d\geqslant m-1\), then from \(e\geqslant1\), we deduce that \(d+e=m\), as desired. And if \(d\leqslant m-2\), then we have \(\varphi(w+1)=d+2\), and an application of (1) of Theorem 3.5 to \(c=1\) and \(l=m-d\) implies that \(e=m-d\), as desired. ◻

Next, we compute \(\varphi\) and \(\psi\) explicitly when \(\varphi(1)+\tau(1)=m\).

Theorem 7. Suppose that \(1\leqslant k\leqslant wm-1\), \(d=\varphi(1)\), \(e=\tau(1)\) and \(d+e=m\), and let \(\theta=\max\{a\in[1,k]\mid\varphi(a)=d\}\). Then, we have \(\psi(d)=\theta\), \(\psi(t)=k-w(m-t)\) for all \(t\in[d+1,m]\), \(\varphi(c)=d\) for all \(c\in[1,\theta]\), and \(\varphi(a)=m-\left\lfloor\frac{k-a}{w}\right\rfloor\) for all \(a\in[\theta+1,k]\).

Proof. We note that \(\psi(d)=\max\{c\in [0,k]\mid \varphi(c)\leqslant d\}=\theta\), and for any \(c\in[1,\theta]\), it follows from \(\varphi(1)\leqslant\varphi(c)\leqslant\varphi(\theta)=d\) that \(\varphi(c)=d\), as desired. Moreover, noticing that \(\varphi(a)\geqslant d+1=m+1-e\) for all \(a\in[\theta+1,k]\), the rest immediately follows from (1) of Proposition 3.4. ◻

Now we further improve Theorem 3.7 with the additional assumption that \(w\mid k\).

Theorem 8. Suppose that \(1\leqslant k\leqslant wm-1\), \(w\mid k\), \(d=\varphi(1)\), \(e=\tau(1)\) and \(d+e=m\), and let \(\theta=\max\{a\in[1,k]\mid\varphi(a)=d\}\). Then, the following four statements hold:

(1)  \(\psi(d)=\theta\). Moreover, we have \(\psi(t)=w(t-d)\) for all \(t\in[d+1,m]\);

(2)  We have \(\varphi(c)=d\) for all \(c\in[1,\theta]\), and \(\varphi(a)=d+\left\lceil\frac{a}{w}\right\rceil\) for all \(a\in[\theta+1,k]\);

(3)  \(\eta(e)=\theta\). Moreover, we have \(\eta(l)=w(l-e)\) for all \(l\in[e+1,m]\);

(4)  We have \(\tau(c)=e\) for all \(c\in[1,\theta]\), and \(\tau(a)=\left\lceil\frac{a}{w}\right\rceil+e\) for all \(a\in[\theta+1,wm-k]\).

Proof. By Proposition 3.6, we have \(k=w(m-d)=we\). Hence (1) and (2) follow from Theorem 3.7. Next, we prove (3). By (1), we have \(\eta(e)=\psi(m-e)+we-k=\psi(d)=\theta\); moreover, the rest follows from (3.10) (see Proposition 3.4). Finally, we prove (4). For any \(c\in[1,\theta]\), by (3), we have \(c\leqslant\eta(e)\) and hence \(\tau(c)\leqslant e\), which, together with \(\tau(c)\geqslant\tau(1)=e\), implies that \(\tau(c)=e\), as desired. Moreover, for any \(a\in[\theta+1,wm-k]\), by \(a\geqslant\eta(e)+1\), we have \(\tau(a)\geqslant e+1=m-d+1\), which, together with (3.12) (see Proposition 3.4), further establishes the desired result. ◻

We end this subsection by recovering some characterizations of NMDS and NMRD codes, as detailed in the following example.

Example 13. (1)  Following (1) of Example 2.5 and consider a linear code \(C\subseteq\mathbb{F}^{\Omega}\) with \(\dim_{\mathbb{F}}(C)=k\in[1,m-1]\). Following [2, Definition 2.3], we say that \(C\) is a near-MDS (NMDS) \(\mathbf{P}\)-code if \(\mathbf{d}_1^{\mathbf{P}}(C)=m-k\), and \(k\geqslant2\Longrightarrow\mathbf{d}_2^{\mathbf{P}}(C)=m-k+2\). Corollary 3.3 implies that \(C\) is NMDS if and only if \(\mathbf{d}_1^{\mathbf{P}}(C)+\mathbf{d}_1^{\overline{\mathbf{P}}}(C^{\bot})=m\), as has been shown in [2, Lemma 2.4]. In particular, if \(\mathbf{P}\) is an anti-chain, then Corollary 3.3 recovers the well-known fact that \(C\) is NMDS if and only if \(\mathbf{d}_1(C)+\mathbf{d}_1(C^{\bot})=m\) (see [14, Definition 13]).

(2)  Following (2) of Example 2.5 and consider a Gabidulin code \(C\subseteq\mathbb{E}^{[m]}\) with \(\dim_{\mathbb{E}}(C)=k\in[1,m-1]\). Following [25, Definition 5.1], we say that \(C\) is near-MRD (NMRD) if \(\mathbf{d}_1^{G}(C)=m-k\), and \(k\geqslant2\Longrightarrow\mathbf{d}_2^{G}(C)=m-k+2\). Corollary 3.3 implies that \(C\) is NMRD if and only if \(\mathbf{d}_1^{G}(C)+\mathbf{d}_1^{G}(C^{\bot})=m\), as has been shown in [25, Proposition 5.3].

(3)  Following (3) of Example 3.6 and consider a Delsarte code \(C\subseteq\mathrm{Mat}\,_{m,w}(\mathbb{F})\) with \(\dim_{\mathbb{F}}(C)=k\in[1,wm-1]\) and \(w\mid k\). Following [7, Definition 6.8], we say that \(C\) is near-MRD (NMRD) if \(k=w(m-d)\), and moreover, \(k\geqslant2w\) implies that the \((w+1)\)-th Delsarte generalized weight of \(C\) is equal to \(d+2\). Corollary 3.3 implies that \(C\) is NMRD if and only if \(\mathbf{d}_1^{M}(C)+\mathbf{d}_1^{M}(C^{\bot})=m\), as has been shown in [7, Theorem 6.9]. In addition, Corollary 3.2 recovers [8, Remark 36].

3.10 The case that \(\varphi(1)+\tau(1)=m+1\)↩︎

In this subsection, we establish some results for the special case \(\varphi(1)+\tau(1)=m+1\), which can be used to characterize dually quasi-MRD (dually QMRD) codes. We begin with the following theorem.

Theorem 9. Suppose that \(1\leqslant k\leqslant wm-1\), \(d=\varphi(1)\) and \(e=\tau(1)\). Then, the following three statements are equivalent to each other:

(1)  \(d+e=m+1\);

(2)  \(w\nmid k\), \(d=m-\left\lceil\frac{k}{w}\right\rceil+1\), \(e=\left\lceil\frac{k}{w}\right\rceil\);

(3)  \(\left\lceil\frac{k}{w}\right\rceil=m-d+1=e\).

Proof. It suffices to prove \((1)\Longrightarrow(2)\). From \(d+e\neq m+2\) and Proposition 3.6, we deduce that \(w\nmid k\), as desired. Moreover, from \(w(e-1)\leqslant k\leqslant w(m-d+1)\), we deduce that \(e\leqslant\lceil\frac{k}{w}\rceil\) and \(d\leqslant m+1-\lceil\frac{k}{w}\rceil\), which, together with \(d+e=m+1\), immediately establishes (2), as desired. ◻

Next, we compute \(\varphi\), \(\psi\), \(\tau\) and \(\eta\) explicitly when \(\varphi(1)+\tau(1)=m+1\). The following theorem is an immediate corollary of Proposition 3.4.

Theorem 10. Suppose that \(1\leqslant k\leqslant wm-1\), \(d=\varphi(1)\), \(e=\tau(1)\) and \(d+e\geqslant m+1\). Then, we have \(\psi(t)=k-w(m-t)\) for all \(t\in[d,m]\), \(\eta(l)=wl-k\) for all \(l\in[e,m]\), \(\varphi(a)=m-\left\lfloor\frac{k-a}{w}\right\rfloor\) for all \(a\in[1,k]\), and \(\tau(c)=\left\lceil\frac{c+k}{w}\right\rceil\) for all \(c\in[1,wm-k]\).

Now we give the following necessary and sufficient conditions for \(\varphi(1)+\tau(1)\geqslant m+1\).

Proposition 7. Suppose that \(1\leqslant k\leqslant wm-1\), \(d=\varphi(1)\) and \(e=\tau(1)\). Then, the following two statements are equivalent to each other:

(1)  \(d+e\geqslant m+1\);

(2)  \(k\geqslant w(m-d)+1\). Moreover, \(d\leqslant m-1\Longrightarrow\varphi(k-w(m-d)+1)=d+1\).

Proof. \((1)\Longrightarrow(2)\)  It follows from Theorems 3.4 and 3.9 that \(k\geqslant w(m-d)+1\); moreover, the rest follows from Theorem 3.10.

\((2)\Longrightarrow(1)\)  If \(d=m\), then it follows from \(e\geqslant1\) that \(d+e\geqslant m+1\), as desired. Moreover, if \(d\leqslant m-1\), then an application of (2) of Theorem 3.5 to \(a=k-w(m-d)+1\) and \(b=d+1\) implies that \(e\geqslant m-d+1\), as desired. ◻

Finally, we use results established in this subsection to recover some characterizations of dually QMRD codes, which has been proposed in [18].

Example 14. Following (3) of Example 2.5 and consider a Delsarte code \(C\subseteq\mathrm{Mat}\,_{m,n}(\mathbb{F})\) with \(\dim_{\mathbb{F}}(C)=k\in[1,mn-1]\). By [8, Definitions 10 and 13], we say that \(C\) is dually QMRD if \(n\nmid k\), \(\mathbf{d}_1^{M}(C)=m-\left\lceil\frac{k}{n}\right\rceil+1\) and \(\mathbf{d}_1^{M}(C^{\bot})=\left\lceil\frac{k}{n}\right\rceil\). Theorem 3.9 implies that \(C\) is dually QMRD if and only if \(\mathbf{d}_1^{M}(C)+\mathbf{d}_1^{M}(C^{\bot})=m+1\), as has been shown in [8, Proposition 19]. Theorem 3.10 implies that if \(C\) is either MRD or dually QMRD, then the GMWs of \(C\) coincide with the Delsarte generalized weights of \(C\), which are completely determined by \(m,n,k\), as has been shown in [8, Theorem 22 and Remark 23]. Moreover, Proposition 3.7 gives necessary and sufficient conditions for \(C\) to be either MRD or dually QMRD (cf. [8, Theorem 22]).

3.11 Evasive property↩︎

We begin by recalling some notions on evasive property (see [21], [22]). Let \(\mathbb{E}/\mathbb{F}\) be a finite dimensional field extension. Following [3, Definition 1.1], for \((h,r)\in\mathbb{N}^{2}\), an \(\mathbb{F}\)-subspace \(U\subseteq\mathbb{E}^{k}\) is said to be \((h,r)\)-evasive in \(\mathbb{E}^{k}\) if \(\dim_{\mathbb{F}}(U\cap W)\leqslant r\) for all \(\mathbb{E}\)-subspace \(W\subseteq\mathbb{E}^{k}\) with \(\dim_{\mathbb{E}}(W)=h\).

\((h,r)\)-evasiveness is closely related to GRWs of Gabidulin codes. More precisely, let \(C\subseteq\mathbb{E}^{[m]}\) be a Gabidulin code such that \(\dim_{\mathbb{E}}(C)=k\) and \(\mathbf{d}_k^{G}(C)=m\), \(L\in\mathrm{Mat}\,_{m,k}(\mathbb{E})\) be a generator matrix of \(C\), i.e., \(C=\{L\gamma^{T}\mid\gamma\in\mathbb{E}^{k}\}\), and let \(U\) be the \(\mathbb{F}\)-subspace of \(\mathbb{E}^{k}\) generated by all the rows of \(L\). Then, for \((h,r)\in\mathbb{N}^{2}\) with \(h\leqslant \min\{k-1,r\}\), it has been proven in [25, Theorem 3.3] that the following three statements are equivalent to each other:

\((i)\)  \(U\) is \((h,r)\)-evasive in \(\mathbb{E}^{k}\);

\((ii)\)  \(\mathbf{d}_{k-h}^{G}(C)\geqslant m-r\);

\((iii)\)  \(\mathbf{d}_{r-h+1}^{G}(C^{\bot})\geqslant r+2\).
Noticing that if we follow Example 2.3 and set \(\varphi\) to be the GRWs of \(C\), then Condition \((ii)\) is equivalent to \(\varphi(k-h)\geqslant m-r\). Based on this observation, we propose the following definition of \((h,r)\)-evasiveness for \(\varphi\) in the general case.

Definition 2. For \((h,r)\in\mathbb{N}^{2}\), we say that \(\varphi\) is \((h,r)\)-evasive* provided that \(k\geqslant w(h+1)\) and \(\varphi(k-w(h+1)+1)\geqslant m-r\).*

We collect some basic properties of \((h,r)\)-evasiveness in the following proposition.

Proposition 8. (1)  Let \(h\in\mathbb{N}\) with \(k\geqslant w(h+1)\). Then, we have \(\varphi(k-w(h+1)+1)\leqslant m-h\). Hence \(\varphi\) is \((h,h)\)-evasive if and only if \(\varphi(k-w(h+1)+1)=m-h\).

(2)  Let \((h,r)\in\mathbb{N}^{2}\) such that \(\varphi\) is \((h,r)\)-evasive. Then, we have \(h\leqslant r\), and moreover, \(\varphi\) is \((h-a,r-a)\)-evasive for all \(a\in[0,h]\).

Proof. (1)  This follows from the generalized Singleton bound (3.6).

(2)  By (1), we have \(m-r\leqslant\varphi(k-w(h+1)+1)\leqslant m-h\), which implies that \(h\leqslant r\), as desired. Moreover, for any \(a\in[0,h]\), by Theorem 3.2, we have \(\varphi(k-w(h-a+1)+1)\geqslant\varphi(k-w(h+1)+1)+a\geqslant m-r+a=m-(r-a)\), which implies that \(\varphi\) is \((h-a,r-a)\)-evasive, as desired. ◻

The following theorem is the main result of this subsection, in which we characterize \((h,r)\)-evasiveness of \(\varphi\) in terms of \(\tau\).

Theorem 11. Let \((h,r)\in\mathbb{N}^{2}\) with \(h\leqslant r\leqslant m-1\) and \(w(h+1)\leqslant k\leqslant w(m+h-r)-1\). Then, \(\varphi\) is \((h,r)\)-evasive if and only if \(\tau(w(r-h)+1)\geqslant r+2\).

Proof. An application of (2) of Theorem 3.5 to \(a=k-w(h+1)+1\) and \(b=m-r\) immediately implies the desired result. ◻

Theorem 3.11 immediately implies the following characterization for \((h,h)\)-evasiveness of \(\varphi\).

Corollary 4. Let \(h\in[0,m-2]\) with \(w(h+1)\leqslant k\leqslant wm-1\), and let \(e=\tau(1)\). Then, \(\varphi\) is \((h,h)\)-evasive if and only if \(e\geqslant h+2\).

Remark 2. With (2) of Example 2.5 and \((i)\Longleftrightarrow(ii)\) of [25, Theorem 3.3], Proposition 3.8 recovers [3, Proposition 2.6] and [25, Remark 3.2], and Theorem 3.11 recovers \((ii)\Longleftrightarrow(iii)\) of [25, Theorem 3.3], which has been established by using the Wei-type duality theorem for GRWs.

3.12 Wei-type duality theorem↩︎

We end this section with the following Wei-type duality theorem for \(\varphi\) and \(\tau\).

Theorem 12. For any \(\gamma\in\mathbb{Z}\), define \(\mathcal{A}_{\gamma}=\{\varphi(u)\mid u\in[1,k],~u\equiv\gamma+k~(\bmod~w)\}\), \(\mathcal{B}_{\gamma}=\{m+1-\tau(v)\mid v\in[1,wm-k],~v\equiv\gamma~(\bmod~w)\}\). Then, for any \(\gamma\in\mathbb{Z}\), it holds that \(\mathcal{A}_{\gamma}\cap \mathcal{B}_{\gamma}=\emptyset\), \(\mathcal{A}_{\gamma}\cup \mathcal{B}_{\gamma}=[1,m]\).

Theorem 3.12 is part of [35, Theorem 3.1]. It can be applied to various coding-theoretic scenarios to show that the generalized weights of a code and those of its dual code are determined by each other. For example, with Examples 2.5 and 3.6, Theorem 3.12 recovers the Wei-type duality theorems for GHWs [3], generalized poset weights [27], [29], GRWs [11], GMWs [14] and Delsarte generalized weights [14]. In Sections 4 and 5, we will use Theorem 3.12 to derive two new Wei-type duality theorems for codes over modules endowed with rank metric and extended generalized poset weight. We refer the reader to [31] for the proof and more applications of Theorem 3.12.

4 Generalized rank weight for modules over chain rings↩︎

Recently, there has been a growing interest in rank metric codes over rings (see [24], [25]). For example, in the very recent paper [25], the authors establish a MacWilliams identity for rank metric codes over finite chain rings (see [4, Theorem 3.21]), which is further used to show that the dual code of an MRD code is again MRD, generalizing well-known results for rank metric codes over finite fields (see [18, Theorem 26]). In this section, we propose and study generalized rank weights (GRWs) and profiles for codes over principal ideal rings. This two quantities in fact form a Galois connection. Hence many results of Section 3 can be applied. In Section 4.1, we establish some basic properties for GRWs and profiles for codes over principal left ideal rings, and in sections 4.2-4.7, we will focus on codes over chain rings. All the rings considered in this section can be infinite and non-commutative.

4.1 Generalized rank weights for modules over principal ideal rings↩︎

Throughout this subsection, let \(R\) be a principal left ideal ring, \(M\) be a finitely generated left \(R\)-module with \(\mathrm{rank}\,_R(M)=m\geqslant1\), and let \(\Omega\) be a non-empty finite set with \(|\Omega|=n\). For any \(\alpha\in M^{\Omega}\), the rank support of \(\alpha\) is defined as \[\sigma(\alpha)\triangleq\sum_{i\in\Omega} R\cdot\alpha_i.\] Moreover, for any \(D\subseteq M^{\Omega}\), the rank support of \(D\) is defined as \[\mathrm{Supp}\,(D)\triangleq\sum_{\alpha\in D}\sigma(\alpha).\]

Remark 3. If \(R\) is a field, \(M=R^{[m]}\) and \(\Omega=[1,n]\), then we can regard each \(\alpha\in M^{\Omega}\) as a matrix in \(\mathrm{Mat}\,_{m,n}(R)\), whose \(i\)-th column is equal to \(\alpha_i\). With this identification, we have \(\sigma(\alpha)=\mathrm{col}\,(\alpha)\) for all \(\alpha\in M^{\Omega}\) and \(\mathrm{Supp}\,(D)=\mathrm{CSupp}\,(D)\) for all \(D\subseteq M^{\Omega}\) (see Example 2.4).

Now let \(C\leqslant_{R}M^{\Omega}\) with \(\mathrm{rank}\,_R(C)=k\). Define \(\varphi:[0,k]\longrightarrow\mathbb{N}\) and \(\psi:[0,m]\longrightarrow\mathbb{N}\) as \[\varphi(r)=\min\left\{\mathrm{rank}\,_R(\mathrm{Supp}\,(D))\mid\text{D\leqslant_{R}C, \mathrm{rank}\,_R(D)=r}\right\},\] \[\psi(l)=\max\left\{\mathrm{rank}\,_R(C\cap U^{\Omega})\mid U\leqslant_{R}M,\mathrm{rank}\,_R(U)=l\right\}.\]

Definition 3. For any \(r\in[0,k]\), \(\varphi(r)\) is referred to as the \(r\)-th generalized rank weight (GRW) of \(C\), and for any \(l\in[0,m]\), \(\psi(l)\) is referred to as the \(l\)-th rank profile of \(C\). Moreover, if \(C\neq\{0\}\), then \(\varphi(1)\) is referred to as the minimal rank weight of \(C\).

Remark 4. With Remark 4.1, Definition 4.1 recovers the notion of GMWs and DRPs for Delsarte codes proposed in [26, Definitions 10 and 11], and also recovers the notion of Delsarte generalized weights for Delsarte codes proposed in [28, Definition 23] when \(m<n\).

Now we establish two basic properties of RGWs and profiles.

Proposition 9. For any \(r\in[0,k]\), it holds that \[\varphi(r)=\min\left\{\mathrm{rank}\,_R(U)\mid U\leqslant_{R}M,\mathrm{rank}\,_R(C\cap U^{\Omega})\geqslant r\right\}.\]

Proof. Let \(r\in[0,k]\), and let \(s\) denote the right hand side of (4.3). For any \(D\leqslant_{R}C\) with \(\mathrm{rank}\,_R(D)=r\), we have \(\mathrm{Supp}\,(D)\leqslant_{R}M\) and \(D\subseteq C\cap\mathrm{Supp}\,(D)^{\Omega}\), which, together with Lemma 2.4, implies that \(\mathrm{rank}\,_R(C\cap \mathrm{Supp}\,(D)^{\Omega})\geqslant r\). This yields that \(s\leqslant\varphi(r)\). Conversely, for any \(U\leqslant_{R}M\) with \(\mathrm{rank}\,_R(C\cap U^{\Omega})\geqslant r\), we can choose \(D\leqslant_{R}C\cap U^{\Omega}\) with \(\mathrm{rank}\,_R(D)=r\); from \(D\subseteq U^{\Omega}\), we deduce that \(\mathrm{Supp}\,(D)\subseteq U\), which, together with Lemma 2.4, implies that \(\mathrm{rank}\,_R(\mathrm{Supp}\,(D))\leqslant\mathrm{rank}\,_R(U)\). This yields that \(\varphi(r)\leqslant s\), which further establishes (4.3), as desired. ◻

Proposition 10. For any \(l\in[0,m]\), it holds that \[\psi(l)=\max\left\{\mathrm{rank}\,_R(C\cap U^{\Omega})\mid U\leqslant_{R}M,\mathrm{rank}\,_R(U)\leqslant l\right\}.\]

Proof. Let \(l\in[0,m]\), and let \(s\) denote the right hand side of (4.4). By definition, we have \(\psi(l)\leqslant s\). Conversely, for any \(U\leqslant_{R}M\) with \(\mathrm{rank}\,_R(U)\leqslant l\), we can choose \(V\leqslant_{R}M\) such that \(\mathrm{rank}\,_R(V)=l\) and \(U\subseteq V\); moreover, by Lemma 2.4, we have \(\mathrm{rank}\,_R(C\cap U^{\Omega})\leqslant\mathrm{rank}\,_R(C\cap V^{\Omega})\leqslant\psi(l)\). This yields that \(s\leqslant\psi(l)\), which further establishes (4.4), as desired. ◻

Now we are ready to show that GRWs and profiles of \(C\) form a Galois connection. The following theorem is the main result of this subsection.

Theorem 13. We have \(\varphi:[0,k]\longrightarrow[0,m]\) and \(\psi:[0,m]\longrightarrow[0,k]\), and \((\varphi,\psi)\) is a Galois connection between \([0,k]\) and \([0,m]\) with \(\psi(0)=0\). Moreover, for any \(l\in[1,m]\), it holds that \[\psi(l)-\psi(l-1)\leqslant n,\] and for any \(r\in[0,k-n]\), it holds that \[\varphi(r)+1\leqslant\varphi(r+n).\]

Proof. First of all, it follows from Lemma 2.4 that \(\mathrm{ran}\,(\varphi)\subseteq[0,m]\) and \(\mathrm{ran}\,(\psi)\subseteq[0,k]\). Moreover, an application of Propositions 4.1, 4.2 and Lemma 2.1 implies that \((\varphi,\psi)\) is a Galois connection between \([0,k]\) and \([0,m]\) with \(\psi(0)=\mathrm{rank}\,_R(C\cap \{0\}^{\Omega})=0\), as desired.

  Now let \(l\in[1,m]\). Then, we can choose \(V\leqslant_{R}M\) such that \(\mathrm{rank}\,_R(V)=l\) and \(\mathrm{rank}\,_R(C\cap V^{\Omega})=\psi(l)\); moreover, we can choose \(U\leqslant_{R}V\) such that \(\mathrm{rank}\,_R(U)=l-1\) and \(\mathrm{rank}\,_R(V/U)=1\). From Lemma 2.4, we deduce that \[\begin{align} \begin{aligned} \psi(l)-\psi(l-1)&\leqslant\mathrm{rank}\,_R(C\cap V^{\Omega})-\mathrm{rank}\,_R(C\cap U^{\Omega})\\ &\leqslant\mathrm{rank}\,_R((C\cap V^{\Omega})/(C\cap U^{\Omega}))\\ &\leqslant\mathrm{rank}\,_R(V^{\Omega}/U^{\Omega})\\ &=\mathrm{rank}\,_R((V/U)^{\Omega})\\ &\leqslant n, \end{aligned} \end{align}\] which establishes (4.5). Finally, (4.6) follows from (4.5) and Theorem 3.2, as desired. ◻

As corollaries of Theorem 4.1, we derive Singleton bound and generalized Singleton bound for GRWs.

Corollary 5. Suppose that \(C\neq\{0\}\) and \(d=\varphi(1)\). Then, we have \[d=\min\left\{\mathrm{rank}\,_R(U)\mid U\leqslant_{R}M,C\cap U^{\Omega}\neq\{0\}\right\}=\min\left\{\mathrm{rank}\,_R(\sigma(\alpha))\mid\alpha\in C,\alpha\neq0\right\}.\] Moreover, we have \(k\leqslant \mathrm{rank}\,_R(M^{n-d+1})\leqslant m(n-d+1)\) and \(k\leqslant n(m-d+1)\).

Proof. The first equality of (4.7) follows from Proposition 4.1. Next, let \(b\) denote the right hand side of (4.7). For any \(D\leqslant_{R}C\) with \(\mathrm{rank}\,_R(D)=1\), we can choose \(\alpha\in D-\{0\}\); moreover, it follows from Lemma 2.4 that \(\mathrm{rank}\,_R(\sigma(\alpha))\leqslant\mathrm{rank}\,_R(\mathrm{Supp}\,(D))\), which further implies that \(b\leqslant d\). Conversely, for any \(\alpha\in C-\{0\}\), we can choose \(D\leqslant_{R}R\alpha\) with \(\mathrm{rank}\,_R(D)=1\); moreover, it follows from \(\mathrm{Supp}\,(D)\subseteq\mathrm{Supp}\,(R\alpha)=\sigma(\alpha)\) and Lemma 2.4 that \(\mathrm{rank}\,_R(\mathrm{Supp}\,(D))\leqslant\mathrm{rank}\,_R(\sigma(\alpha))\), which further implies that \(d\leqslant b\), as desired.

  Now let \(I\subseteq\Omega\) with \(|I|=d-1\), and let \(L=\{\alpha\in M^{\Omega}\mid\forall~i\in\Omega-I:\alpha_i=0\}\). For any \(\alpha\in C\cap L\), by \(\mathrm{rank}\,_R(\sigma(\alpha))\leqslant d-1\) and (4.7), we have \(\alpha=0\). From \(C\cap L=\{0\}\) and Lemma 2.4, we deduce that \(\mathrm{rank}\,_R(C)\leqslant\mathrm{rank}\,_R(M^{\Omega}/L)=\mathrm{rank}\,_R(M^{n-d+1})\leqslant m(n-d+1)\), as desired. Finally, it follows from Theorem 4.1 and Proposition 3.3 that \(k\leqslant n(m-d+1)\), as desired. ◻

Corollary 6. We have \(\varphi(r)\leqslant m-\lfloor\frac{k-r}{n}\rfloor\) for all \(r\in[0,k]\). Moreover, suppose that \(a\in[0,k]\) and \(\varphi(a)=m-\lfloor\frac{k-a}{n}\rfloor\). Then, for any \(c\in[a,k]\) with \(c\equiv a~(\bmod~n)\), it holds that \(\varphi(c)=m-\lfloor\frac{k-c}{n}\rfloor\).

Proof. This follows from Theorems 4.1 and 3.2. ◻

Now we define MRD/QMRD/NMRD/\(i\)-MRD codes and \((h,r)\)-evasiveness of codes.

Definition 4. Suppose that \(C\neq\{0\}\) and \(d\) is the minimal rank weight of \(C\). Then,

(1)  We say that \(C\) is MRD if \(k=n(m-d+1)\);

(2)  We say that \(C\) is quasi-MRD or QMRD if \(n\nmid k\) and \(\lceil\frac{k}{n}\rceil=m-d+1\);

(3)  We say that \(C\) is near-MRD or NMRD provided that \(k=n(m-d)\), and moreover, when \(d\leqslant m-2\), the \((n+1)\)-th GRW of \(C\) is equal to \(d+2\);

(4)  For any \(i\in[1,\lceil\frac{k}{n}\rceil]\), we say that \(C\) is \(i\)-MRD if the \(((i-1)n+1)\)-th GRW of \(C\) is equal to \(m-\lceil\frac{k}{n}\rceil+i\).

Definition 5. For any \((h,r)\in\mathbb{N}^{2}\), we say that \(C\) is \((h,r)\)-evasive if \(k\geqslant n(h+1)\) and the \((k-n(h+1)+1)\)-th GRW of \(C\) is larger than or equal to \(m-r\).

Definitions 4.2 and 4.3 extend some notions for rank metric codes over fields, as detailed in the following remark.

Remark 5. (1)  Following Remark 4.1, suppose that \(R\) is a field, \(M=R^{[m]}\) and \(\Omega=[1,n]\). Then, (1) of Definition 4.2 recovers [17, Definition 3.8] when \(m\leqslant n\), (2) of Definition 4.2 recovers [8, Definition 10], (3) of Definition 4.2 forms a subclass of the NMRD codes proposed in [7, Definition 6.8], and (4) of Definition 4.2 extends [7, Definition 6.1].

(2)  Following Example 3.2, let \(\mathbb{E}/\mathbb{F}\) be a finite dimensional field extension with \(\dim_{\mathbb{F}}(\mathbb{E})=n\), and set \(R=\mathbb{F}\), \(M=R^{[m]}\) and \(\Omega=[1,n]\). Moreover, let \(A\subseteq\mathbb{E}^{[m]}\) be a Gabidulin code with \(\dim_{\mathbb{E}}(A)=p\) and \(\mathbf{d}_p^{G}(A)=m\), \(L\in\mathrm{Mat}\,_{m,p}(\mathbb{E})\) satisfy that \(A=\{L\gamma^{T}\mid\gamma\in\mathbb{E}^{p}\}\), and let \(U\) be the \(\mathbb{F}\)-subspace of \(\mathbb{E}^{p}\) generated by all the rows of \(L\). Suppose that \(C\) is the Delsarte code associated to \(A\) with respect of an ordered basis of \(\mathbb{E}/\mathbb{F}\). For any \((h,r)\in\mathbb{N}^{2}\) with \(h\leqslant \min\{p-1,r\}\), from [25, Theorem 3.3] and \(\mathbf{d}_{(k-n(h+1)+1)}^{M}(C)=\mathbf{d}_{p-h}^{G}(A)\) (see Example 3.2), we deduce that \(U\) is \((h,r)\)-evasive in \(\mathbb{E}^{p}\) if and only if \(C\) is \((h,r)\)-evasive.

We collect some connections among codes proposed in Definition 4.2 in the following lemma.

Lemma 6. Suppose that \(C\neq\{0\}\) and \(d=\varphi(1)\). Then, the following three statements hold:

(1)  \(C\) is \(1\)-MRD if and only if \(\lceil\frac{k}{n}\rceil=m-d+1\), if and only if \(C\) is either MRD or QMRD;

(2)  If \(k\geqslant n(m-1)+1\), then we have \(\lceil\frac{k}{n}\rceil=m\), \(d=1\) and \(C\) is \(1\)-MRD;

(3)  If \(d\leqslant m-2\), then \(C\) is NMRD if and only if \(k=n(m-d)\) and \(C\) is \(2\)-MRD.

Now with the help of Theorem 4.1 and results established in Section 3, we give some basic properties of MRD codes, \(i\)-MRD codes and evasive property. First, we show that GRWs and profiles of MRD codes are completely determined by \(m,n,k\). The following proposition is an immediate corollary of Theorems 4.1 and 3.1.

Proposition 11. Suppose that \(C\neq\{0\}\) is MRD and \(d=\varphi(1)\). Then, we have \(\psi(l)=n(l-d+1)\) for all \(l\in[d-1,m]\), and \(\varphi(a)=\left\lceil\frac{a}{n}\right\rceil+d-1\) for all \(a\in[1,k]\).

The following proposition is a corollary of the generalized Singleton bound (see Corollary 4.2), and it extends [7, Lemma 6.2] to \(i\)-MRD codes over rings.

Proposition 12. Suppose that \(k\geqslant1\). Then, the following three statements hold true:

(1)  For any \(i\in[1,\lceil\frac{k}{n}\rceil]\), it holds that \(\varphi((i-1)n+1)\leqslant m-\lceil\frac{k}{n}\rceil+i\);

(2)  Suppose that \(i\in[1,\lceil\frac{k}{n}\rceil]\) and \(C\) is \(i\)-MRD. Then, \(C\) is \(j\)-MRD for all \(j\in[i,\lceil\frac{k}{n}\rceil]\);

(3)  \(C\) is \(\lceil\frac{k}{n}\rceil\)-MRD if and only if \(\varphi(\lfloor\frac{k-1}{n}\rfloor n+1)=m\), if and only if \(C\) is \(i\)-MRD for some \(i\in[1,\lceil\frac{k}{n}\rceil]\).

The following proposition follows from Theorem 4.1 and Proposition 3.8. With (2) of remark 4.3, it generalizes [3, Proposition 2.6] and [25, Remark 3.2] to codes over rings.

Proposition 13. (1)  Let \(h\in\mathbb{N}\) with \(k\geqslant n(h+1)\). Then, it holds that \(\varphi(k-n(h+1)+1)\leqslant m-h\). Moreover, \(C\) is \((h,h)\)-evasive if and only if \(\varphi(k-n(h+1)+1)=m-h\).

(2)  Let \((h,r)\in\mathbb{N}^{2}\) such that \(C\) is \((h,r)\)-evasive. Then, we have \(h\leqslant r\), and \(C\) is \((h-a,r-a)\)-evasive for all \(a\in[0,h]\).

Now we give an alternative characterization of GRWs and profiles for codes over chain rings. The following proposition will be used in Section 4.2.

Proposition 14. Suppose that \(R\) is a left chain ring and \(M\) is a free left \(R\)-module. Then, for any \(l\in[0,m]\), it holds that \[\psi(l)=\max\left(\mathrm{rank}\,_R(C\cap V^{\Omega})\mid \text{V is a free left R-submodule of M, \mathrm{rank}\,_R(V)=l}\right).\] In addition, there exists a free left \(R\)-submodule \(E\leqslant_{R}M^{\Omega}\) such that \(\mathrm{rank}\,_R(E)=k\) and \(C\subseteq E\); moreover, the GRWs and rank profiles of \(C\) coincide with those of \(E\), respectively.

Proof. Let \(l\in[0,m]\), and let \(s\) denote the right hand side of (4.8). By definition, we have \(s\leqslant\psi(l)\). Conversely, for any \(U\leqslant_{R}M\) with \(\mathrm{rank}\,_R(U)=l\), by Lemma 2.4, there exists a free left \(R\)-submodule \(V\leqslant_{R}M\) such that \(U\subseteq V\) and \(\mathrm{rank}\,_R(V)=l\); moreover, Lemma 2.4 implies that \(\mathrm{rank}\,_R(C\cap U^{\Omega})\leqslant\mathrm{rank}\,_R(C\cap V^{\Omega})\leqslant s\), which further implies that \(\psi(l)\leqslant s\), as desired. Finally, the rest immediately follows from Proposition 4.1, (4.2) and Lemma 2.4. ◻

We end this subsection by noting that all the definitions and results in this subsection can be established for finitely generated right modules over a principal right ideal ring in a parallel fashion.

4.2 Wei-type duality theorem↩︎

Throughout the rest of this section, let \(R\) be a chain ring, \(m\in\mathbb{Z}^{+}\), \(P\) be a finitely generated free left \(R\)-module with \(\mathrm{rank}\,_R(P)=m\), \(Q\) be a finitely generated free right \(R\)-module with \(\mathrm{rank}\,_R(Q)=m\), and let \(\Omega\) be a non-empty finite set with \(|\Omega|=n\). Let \(f:P\times Q\longrightarrow R\) be a non-degenerated \((R,R)\)-bilinear map, and define \(\langle~,~\rangle:P^{\Omega}\times Q^{\Omega}\longrightarrow R\) as \[\langle\alpha,\beta\rangle=\sum_{i\in\Omega}f(\alpha_i,\beta_i).\] For any \(A\subseteq P^{\Omega}\) and \(B\subseteq Q^{\Omega}\), let \(A^{\bot}\leqslant_{R}Q^{\Omega}\) denote the right dual of \(A\) with respect to \(\langle~,~\rangle\), and let \(^{\bot}B\leqslant_{R}P^{\Omega}\) denote the left dual of \(B\) with respect to \(\langle~,~\rangle\).

The following Wei-type duality theorem is the main result of this subsection. It generalizes [26, Proposition 65] to codes over chain rings.

Theorem 14. Let \(C\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(\mathrm{rank}\,_R(C)=k\). Then, \(C^{\bot}\) is a free right \(R\)-submodule of \(Q^{\Omega}\) with \(\mathrm{rank}\,_R(C^{\bot})=mn-k\). Moreover, the following two statements hold:

(1)  Let \(\psi:[0,m]\longrightarrow[0,k]\) and \(\eta:[0,m]\longrightarrow[0,mn-k]\) such that \(\psi(l)\) and \(\eta(l)\) are equal to the \(l\)-th rank profile of \(C\) and \(C^{\bot}\), respectively. Then, for any \(l\in[0,m]\), it holds that \[\eta(l)=\psi(m-l)+nl-k;\]

(2)  Let \(\varphi:[0,k]\longrightarrow[0,m]\) such that \(\varphi(r)\) is equal to the \(r\)-th GRW of \(C\), and let \(\tau:[0,mn-k]\longrightarrow[0,m]\) such that \(\tau(s)\) is equal to the \(s\)-th GRW of \(C^{\bot}\). For any \(\gamma\in\mathbb{Z}\), define \[\mathcal{G}_\gamma=\{\varphi(u)\mid u\in[1,k],u\equiv\gamma+k~(\bmod~n)\},\] \[\mathcal{H}_\gamma=\{m+1-\tau(v)\mid v\in[1,mn-k],v\equiv\gamma~(\bmod~n)\}.\] Then, for any \(\gamma\in\mathbb{Z}\), it holds that \(\mathcal{G}_\gamma\cap\mathcal{H}_\gamma=\emptyset\), \(\mathcal{G}_\gamma\cup\mathcal{H}_\gamma=[1,m]\).

Proof. (1)  Let \(l\in[0,m]\), and let \(T\) denote the set of all the free right \(R\)-submodules of \(Q\) with rank \(l\). By (2) of Lemma 2.5, for any \(W\in T\), the left dual of \(W\) with respect to \(f\), denoted by \(^{\ddagger}W\), is a free left \(R\)-submodule \(P\) with \(\mathrm{rank}\,_{R}(^{\ddagger}W)=m-l\); moreover, we note that \(W^{\Omega}\) is a free right \(R\)-submodule \(Q^{\Omega}\) with \(\mathrm{rank}\,_{R}(W^{\Omega})=nl\), \(^{\bot}(W^{\Omega})=(^{\ddagger}W)^{\Omega}\) and \(\mathrm{rank}\,_R(C^{\bot}\cap W^{\Omega})=\mathrm{rank}\,_R(C\cap (^{\ddagger}W)^{\Omega})+nl-k\). Hence from Proposition 4.6 and Lemma 2.5, we deduce that \[\begin{align} \begin{aligned} \eta(l)&=\max\left\{\mathrm{rank}\,_R(C^{\bot}\cap W^{\Omega})\mid W\in T\right\}\\ &=\max\left\{\mathrm{rank}\,_R(C\cap (^{\ddagger}W)^{\Omega})+nl-k\mid W\in T\right\}\\ &=\max\left\{\mathrm{rank}\,_R(C\cap V^{\Omega})+nl-k\mid \text{V is a free left R-submodule of P, \mathrm{rank}\,_R(V)=m-l}\right\}\\ &=\psi(m-l)+nl-k, \end{aligned} \end{align}\] as desired.

(2)  This immediately follows from Theorem 4.1, (1) and Theorem 3.12. ◻

4.3 MRD codes↩︎

Based on Theorems 4.1 and 4.2, in the rest of this section, we use results established in Section 3 to derive some results on MRD/QMRD/NMRD/\(i\)-MRD codes and evasive property. We begin with the characterization of MRD codes.

Lemma 7. Let \(C\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(C\subsetneqq P^{\Omega}\) and \(\mathrm{rank}\,_R(C)=k\), and let \(e\) denote the minimal rank weight of \(C^{\bot}\). Then, it holds that \(m(e-1)\leqslant k\) and \(n(e-1)\leqslant k\). Moreover, \(C^{\bot}\) is MRD if and only if \(k=n(e-1)\).

Proof. Noticing that \(\mathrm{rank}\,_R(C^{\bot})=mn-k\), an application of Corollary 4.1 and (1) of Definition 4.2 to \(C^{\bot}\) immediately yields the desired result. ◻

Now we are ready to prove the main result of this subsection.

Theorem 15. Let \(C\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(\{0\}\subsetneqq C\subsetneqq P^{\Omega}\) and \(\mathrm{rank}\,_R(C)=k\), and let \(d\) and \(e\) denote the minimal rank weights of \(C\) and \(C^{\bot}\), respectively. Then, we have \(d+e\leqslant m+2\). Moreover, the following three statements are equivalent to each other:

(1)  \(C\) is MRD;

(2)  \(d+e=m+2\);

(3)  \(C^{\bot}\) is MRD.

Proof. This follows from Lemma 4.2 and Theorem 3.4. ◻

Remark 6. Theorem 4.3 recovers Part 1 of [8, Proposition 19] if \(R\) is a field, and also generalizes [4, Theorem 3.23] which has been established for codes over finite commutative chain rings by using MacWilliams identity.

4.4 QMRD and dually QMRD codes↩︎

Throughout this subsection, let \(C\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(\{0\}\subsetneqq C\subsetneqq P^{\Omega}\) and \(\mathrm{rank}\,_R(C)=k\), and let \(d\) and \(e\) denote the minimal rank weights of \(C\) and \(C^{\bot}\), respectively. We say that \(C\) is dually QMRD if both \(C\) and \(C^{\bot}\) are QMRD (cf. [8, Definition 13]).

Now we give necessary and sufficient conditions for a code to be dually QMRD. The following theorem is the main result of this subsection.

Theorem 16. (1)  \(C^{\bot}\) is QMRD if and only if \(n\nmid k\) and \(\left\lceil\frac{k}{n}\right\rceil=e\).

(2)  \(C\) is dually QMRD if and only if \(d+e=m+1\).

Proof. (1)  From \(\mathrm{rank}\,_R(C^{\bot})=mn-k\), we deduce that \(C^{\bot}\) is QMRD if and only if \(n\nmid(mn-k)\) and \(\left\lceil\frac{mn-k}{n}\right\rceil=m-e+1\), if and only if \(n\nmid k\) and \(e=\lfloor\frac{k}{n}\rfloor+1=\lceil\frac{k}{n}\rceil\), as desired.

(2)  By (1), \(C\) is dually QMRD if and only if \(n\nmid k\) and \(\left\lceil\frac{k}{n}\right\rceil=m-d+1=e\). Hence the desired result immediately follows from Theorem 3.8. ◻

Next, we characterize MRD or dually QMRD codes in terms of GRWs of \(C\). The following proposition is an immediately corollary of Theorems 4.3, 4.4 and Proposition 3.7.

Proposition 15. The following three statements are equivalent to each other:

(1)  \(C\) is either MRD or dually QMRD;

(2)  \(d+e\geqslant m+1\);

(3)  \(k\geqslant n(m-d)+1\). Moreover, if \(d\leqslant m-1\), then the \((k-n(m-d)+1)\)-th GRW of \(C\) is equal to \(d+1\).

We end this subsection by deriving the GRWs of dually QMRD codes. The following proposition follows from Proposition 4.7 and Theorem 3.10.

Proposition 16. If \(C\) is either MRD or dually QMRD, then for any \(a\in[1,k]\), the \(a\)-th GRW of \(C\) is equal to \(m-\left\lfloor\frac{k-a}{n}\right\rfloor\), and for any \(c\in[1,mn-k]\), the \(c\)-th GRW of \(C^{\bot}\) is equal to \(\left\lceil\frac{c+k}{n}\right\rceil\).

Remark 7. If \(R\) is a field, then Theorem 4.4 recovers Part 2 of [8, Proposition 19], and Propositions 4.7 and 4.8 recover [8, Theorem 22 and Remark 23].

4.5 NMRD codes↩︎

Now we characterize NMRD codes and compute their GRWs. The following theorem is an immediate corollary of Theorems 3.7, 3.8 and Corollary 3.3.

Theorem 17. Let \(C\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(\{0\}\subsetneqq C\subsetneqq P^{\Omega}\) and \(\mathrm{rank}\,_R(C)=k\), \(d\) and \(e\) denote the minimal rank weights of \(C\) and \(C^{\bot}\), respectively, and let \(\theta=\max\{a\in[1,k]\mid\text{the a-th GRW of C is equal to d}\}\). Then, the following three statements hold true:

(1)  \(C\) is NMRD if and only if \(n\mid k\) and \(d+e=m\);

(2)  Suppose that \(d+e=m\). Then, for any \(a\in[1,k]\), the \(a\)-th GRW of \(C\) is equal to \[\begin{align} \begin{aligned} \begin{cases} d,&a\leqslant\theta;\\ m-\left\lfloor\frac{k-a}{n}\right\rfloor,&a\geqslant\theta+1; \end{cases} \end{aligned} \end{align}\]

(3)  Suppose that \(C\) is NMRD. Then, for any \(a\in[\theta+1,k]\), the \(a\)-th GRW of \(C\) is equal to \(d+\left\lceil\frac{a}{n}\right\rceil\), and for any \(c\in[1,mn-k]\), the \(c\)-th GRW of \(C^{\bot}\) is equal to \[\begin{align} \begin{aligned} \begin{cases} e,&c\leqslant\theta;\\ e+\lceil\frac{c}{n}\rceil,&c\geqslant\theta+1. \end{cases} \end{aligned} \end{align}\]

Remark 8. If \(R\) is a field, then (1) of Theorem 4.5 recovers Part 3 of [7, Theorem 6.9].

4.6 \(i\)-MRD codes↩︎

Now we characterize \(i\)-MRD codes. The following theorem extends [7, Lemma 6.4 and Theorem 6.5] to codes over chain rings.

Theorem 18. Let \(C\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(\mathrm{rank}\,_R(C)=k\), where \(1\leqslant k\leqslant n(m-1)\), and let \(p\) denote the \((\lceil\frac{k}{n}\rceil n-k+1)\)-th GRW of \(C^{\bot}\). Then, the following three statements hold:

(1)  Let \(i\in[1,\lceil\frac{k}{n}\rceil]\). Then, \(C\) is \(i\)-MRD if and only if \(p\geqslant\lceil\frac{k}{n}\rceil-i+2\);

(2)  \(1\leqslant p\leqslant\lceil\frac{k}{n}\rceil+1\). Moreover, \(C\) is \(\lceil\frac{k}{n}\rceil\)-MRD if and only if \(p\geqslant2\);

(3)  If \(p\geqslant2\), then \(\lceil\frac{k}{n}\rceil-p+2=\min\{i\in[1,\lceil\frac{k}{n}\rceil]\mid \text{C is i-MRD}\}\).

Proof. First, (1) follows from (2) of Theorem 3.6. Next, from \(\lceil\frac{k}{n}\rceil n-k+1\geqslant1\) and Theorem 3.3, we deduce that \(1\leqslant p\leqslant\lceil\frac{k}{n}\rceil+1\), as desired. Moreover, the rest immediately follows from (1). ◻

4.7 Evasiveness of codes↩︎

In this subsection, we study \((h,r)\)-evasiveness of codes. We begin with the following theorem, which immediately follows from Theorem 3.11 and Corollary 3.4.

Theorem 19. (1)  Let \(C\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(\mathrm{rank}\,_R(C)=k\), and let \((h,r)\in\mathbb{N}^{2}\) with \(h\leqslant r\leqslant m-1\) and \(n(h+1)\leqslant k\leqslant n(m+h-r)-1\). Then, \(C\) is \((h,r)\)-evasive if and only if the \((n(r-h)+1)\)-th GRW of \(C^{\bot}\) is larger than or equal to \(r+2\).

(2)  Let \(C\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(\mathrm{rank}\,_R(C)=k\), and let \(h\in[0,m-2]\) with \(n(h+1)\leqslant k\leqslant nm-1\). Then, \(C\) is \((h,h)\)-evasive if and only if the minimal rank weight of \(C^{\bot}\) is larger than or equal to \(h+2\).

From now on, we focus on \((h,h)\)-evasive codes. The following theorem is the main result of this subsection.

Theorem 20. Let \(C\subsetneqq P^{\Omega}\) be a free left \(R\)-submodule of \(P^{\Omega}\) with \(\mathrm{rank}\,_R(C)=k\), and let \(h\in[0,m-2]\) such that \(C\) is \((h,h)\)-evasive. Then, we have \[m(h+1)\leqslant k.\] Moreover, if \(m(h+1)=k\), then the minimal rank weight of \(C^{\bot}\) is equal to \(h+2\).

Proof. Let \(e\) denote the minimal rank weight of \(C^{\bot}\). By Lemma 4.2 and Theorem 4.7, we have \(m(e-1)\leqslant k\) and \(e\geqslant h+2\), which imply that \(m(h+1)\leqslant m(e-1)\leqslant k\), establishing (4.10). Moreover, if \(m(h+1)=k\), then we have \(m(h+1)=m(e-1)\) and hence \(e=h+2\), as desired. ◻

The following corollary of Theorem 4.8 gives lower bounds on the rank of \((h,h)\)-evasive codes.

Corollary 7. Let \(D\) be a left \(R\)-submodule of \(P^{\Omega}\) with \(\mathrm{rank}\,_R(D)=k\), and let \(h\in[0,m-2]\) such that \(D\) is \((h,h)\)-evasive. Then, it holds true that either \(m(h+1)\leqslant k\) or \(k=mn\).

Proof. By Proposition 4.6, there exists a free left \(R\)-submodule \(C\leqslant_{R}P^{\Omega}\) such that \(\mathrm{rank}\,_R(C)=k\) and \(D\subseteq C\); moreover, the GRWs of \(D\) coincide with those of \(C\). It follows that \(C\) is \((h,h)\)-evasive. Therefore if \(C\subsetneqq P^{\Omega}\), then it follows from Theorem 4.8 that \(m(h+1)\leqslant k\), and if \(C=P^{\Omega}\), then we have \(k=mn\), as desired. ◻

Corollary 4.3 may be regarded as a scattered bound for \((h,h)\)-evasive codes as it generalizes the scattered bound for \((h,h)\)-evasive subspaces (see [9, Theorem 2.3] and [25, Corollary 4.4]), as detailed in the following remark.

Remark 9. Following the settings in (2) of Remark 4.3, let \(A\subseteq\mathbb{E}^{[m]}\) be a Gabidulin code with \(\dim_{\mathbb{E}}(A)=p\) and \(\mathbf{d}_p^{G}(A)=m\), \(L\in\mathrm{Mat}\,_{m,p}(\mathbb{E})\) satisfy that \(A=\{L\gamma^{T}\mid\gamma\in\mathbb{E}^{p}\}\), and let \(U\) be the \(\mathbb{F}\)-subspace of \(\mathbb{E}^{p}\) generated by all the rows of \(L\). Suppose that \(C\) is the Delsarte code associated to \(A\) with respect of an ordered basis of \(\mathbb{E}/\mathbb{F}\). If \(h\in[0,m-2]\) and \(U\) is \((h,h)\)-evasive in \(\mathbb{E}^{p}\), then \(C\) is \((h,h)\)-evasive (see Remark 4.3), and Corollary 4.3 implies that either \(\dim_{\mathbb{F}}(U)\leqslant \frac{np}{h+1}\) or \(A=\mathbb{E}^{[m]}\) holds true, which recovers [9, Theorem 2.3] and [25, Corollary 4.4].

5 Extended generalized poset weight for codes over quasi-Frobenius rings↩︎

The notion of extended generalized Hamming weight (EGHW) was first proposed and studied in the recent paper [1] for linear codes over the ring \(\mathbb{Z}_{p^{a}}\), where \(p\) is a prime number and \(a\in\mathbb{Z}^{+}\). In [1], the author has established two versions of Wei-type duality theorems which relate the EGHWs of a code with those of its dual code (see [32, Theorems 15 and 16]), extending the classical Wei-type duality theorem for GHWs; moreover, other important properties such as monotonicity and various bounds arising from Singleton bound have also been established (see [1] for more details).

More recently in [2], the authors introduced the notion of extended generalized poset weight (EGPW) for linear codes over Galois rings, which further generalizes EGHW for Hamming metric codes over \(\mathbb{Z}_{p^{a}}\). In [2], among others, the authors have established monotonicity of EGPWs and two versions of Wei-type duality theorems for EGPWs, and also explored the application of EGPWs in wire-tap channel of type II (see [2] for more details).

In this section, we introduce and study EGPWs and profiles defined for codes over modules which has a composition series. In particular, for codes over quasi-Frobenius rings, we will establish a general Wei-type duality theorem which generalizes and unifies the two versions of Wei-type duality theorems established in both [1] and [2]. Our approach is different from those of [1], [2] in the sense that our results are established by using Galois connections, and counterpart results in [1], [2] were established by using the explicit structure of modules over \(\mathbb{Z}_{p^{a}}\) or Galois rings.

Throughout the rest of this section, let \(R\) and \(S\) be rings, \(M\) be an \((R,S)\)-bimodule such that both as left \(R\)-module and right \(S\)-module, \(M\) has a composition series. Moreover, let \(\Omega\) be a non-empty finite set with \(|\Omega|=n\). For any \(A\subseteq R\) and \(B\subseteq S\), define \[A^{\ddag}=\{u\in M\mid \forall~a\in A:au=0\},\] \[^{\ddag}B=\{u\in M \mid\forall~b\in B:ub=0\}.\] For \(s\in\mathbb{N}\), a tuple of subsets \((I_0,\dots,I_s)\) of \(\Omega\), a tuple of left ideals \((A_0,\dots,A_s)\) of \(R\), a tuple of right ideals \((B_0,\dots,B_s)\) of \(S\) such that \(I_i\subseteq I_{i-1}\), \(A_i\subseteq A_{i-1}\), \(B_i\subseteq B_{i-1}\) for all \(i\in[1,s]\), define \[\rho_{(A_0,\dots,A_s)}(I_0,\dots,I_s)=\{\alpha\in M^{\Omega}\mid \forall~i\in[0,s]:\chi(A_i\alpha)\subseteq I_i\},\] \[\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s)=\{\alpha\in M^{\Omega}\mid\forall~i\in[0,s]:\chi(\alpha B_i)\subseteq I_i\}.\]

The proof of the following preliminary result is straightforward and hence omitted.

Lemma 8. Let \(s\in\mathbb{N}\), \((I_0,\dots,I_s)\) be a tuple of subsets of \(\Omega\), \((A_0,\dots,A_s)\) be a tuple of left ideals of \(R\), \((B_0,\dots,B_s)\) be a tuple of right ideals of \(S\) such that \(I_i\subseteq I_{i-1}\), \(A_i\subseteq A_{i-1}\), \(B_i\subseteq B_{i-1}\) for all \(i\in[1,s]\). Then, we have \(\rho_{(A_0,\dots,A_s)}(I_0,\dots,I_s)=\prod_{t\in \Omega}E_t\) and \(\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s)=\prod_{t\in \Omega}F_t\), where for any \(t\in\Omega\), \[\begin{align} \begin{aligned} E_t=\begin{cases} M,&t\in I_s;\\ {A_0}^{\ddag},&t\in \Omega-I_0;\\ {A_i}^{\ddag},&i\in[1,s],t\in I_{i-1}-I_i, \end{cases} \end{aligned} \end{align}\] and \[\begin{align} \begin{aligned} F_t=\begin{cases} M,&t\in I_s;\\ ^{\ddag}{B_0},&t\in \Omega-I_0;\\ ^{\ddag}{B_i},&i\in[1,s],t\in I_{i-1}-I_i. \end{cases} \end{aligned} \end{align}\] Consequently, \(\mathrm{len}\,_S(\rho_{(A_0,\dots,A_s)}(I_0,\dots,I_s))\) is equal to \[\begin{align} \begin{aligned} n\mathrm{len}\,_S({A_0}^{\ddag})+\left(\sum_{i=0}^{s-1}(\mathrm{len}\,_S({A_{i+1}}^{\ddag})-\mathrm{len}\,_S({A_i}^{\ddag}))|I_i|\right)+(\mathrm{len}\,_S(M)-\mathrm{len}\,_S({A_s}^{\ddag}))|I_s|, \end{aligned} \end{align}\] and \(\mathrm{len}\,_R(\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))\) is equal to \[\begin{align} \begin{aligned} n\mathrm{len}\,_R({^{\ddag}B_0})+\left(\sum_{i=0}^{s-1}(\mathrm{len}\,_R({^{\ddag}B_{i+1}})-\mathrm{len}\,_R({^{\ddag}B_i}))|I_i|\right)+(\mathrm{len}\,_R(M)-\mathrm{len}\,_R({^{\ddag}B_s}))|I_s|. \end{aligned} \end{align}\]

5.1 Extended generalized poset weights and profiles for left \(R\)-submodules↩︎

Throughout this subsection, let \(C\leqslant_{R}M^{\Omega}\) with \(\mathrm{len}\,_R(C)=k\), \(s\in\mathbb{N}\), \((B_0,\dots,B_s)\) be a tuple of right ideals of \(S\) with \(B_i\subseteq B_{i-1}\) for all \(i\in[1,s]\), \(\mathbf{P}=(\Omega,\preccurlyeq)\) be a poset, and let \[T=\{(I_0,\dots,I_s)\in\mathcal{I}(\mathbf{P})^{[0,s]}\mid\text{I_i\subseteq I_{i-1} for all i\in[1,s]}\}.\] We define \(\varphi:[0,k]\longrightarrow[0,(s+1)n]\) as \[\varphi(r)=\min\left\{\sum_{i=0}^{s}|\langle\chi(DB_i)\rangle_{\mathbf{P}}|\mid\text{D\leqslant_{R}C, \mathrm{len}\,_R(D)=r}\right\},\] and define \(\psi:[0,(s+1)n]\longrightarrow[0,k]\) as \[\psi(l)=\max\left\{\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))\mid(I_0,\dots,I_s)\in T,\sum_{i=0}^{s}|I_i|=l\right\}.\]

Definition 6. For any \(r\in[0,k]\), \(\varphi(r)\) is referred to as the \(r\)-th extended generalized \(\mathbf{P}\)-weight of \(C\) with respect to \((B_0,\dots,B_s)\), and for any \(l\in[0,(s+1)n]\), \(\psi(l)\) is referred to as the \(l\)-th extended \(\mathbf{P}\)-profile of \(C\) with respect to \((B_0,\dots,B_s)\).

Remark 10. Definition 5.1 is largely inspired by [33, Definition 3] and [32, Section III, Paragraph 2]. If \(s=0\) and \(B_0=R\), then (5.6) recovers the generalized \(\mathbf{P}\)-weights defined for codes over fields and Galois rings (see [27, Section 1] and [33, Definition 2]). Moreover, suppose that \(R\) is a chain ring, \(\theta\in R\) and \(\theta R\) is the unique maximal right ideal of \(R\). Since a Galois ring is a chain ring, (5.6) recovers the extended generalized \(\mathbf{P}\)-weights defined for codes over Galois rings (see [33, Definition 3]) by setting \(B_i=\theta^{i}R\) for all \(i\in[0,s]\).

Now we give alternative characterizations of EGPWs and profiles, and show that they form a Galois connection.

Proposition 17. For any \(r\in[0,k]\), it holds that \[\varphi(r)=\min\left\{\sum_{i=0}^{s}|I_i|\mid(I_0,\dots,I_s)\in T,\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))\geqslant r\right\}.\]

Proof. Let \(r\in[0,k]\), and let \(q\) denote the right hand side of (5.8). For any \(D\leqslant_{R}C\) with \(\mathrm{len}\,_R(D)=r\), we infer that \((L_0,\dots,L_s)\triangleq(\langle\chi(DB_i)\rangle_{\mathbf{P}}\mid i\in[0,s])\in T\) and \(D\subseteq C\cap\delta_{(B_0,\dots,B_s)}(L_0,\dots,L_s)\), which implies that \(\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(L_0,\dots,L_s))\geqslant r\). This implies that \(q\leqslant\varphi(r)\). Conversely, for any \((I_0,\dots,I_s)\in T\) with \(\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))\geqslant r\), we can choose \(D\leqslant_{R}C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s)\) with \(\mathrm{len}\,_R(D)=r\); moreover, from \(D\subseteq\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s)\), we deduce that \(\langle\chi(DB_i)\rangle_{\mathbf{P}}\subseteq I_i\) for all \(i\in[0,s]\), which implies that \(\sum_{i=0}^{s}|\langle\chi(DB_i)\rangle_{\mathbf{P}}|\leqslant\sum_{i=0}^{s}|I_i|\). It follows that \(\varphi(r)\leqslant q\), which further establishes (5.8), as desired. ◻

Proposition 18. For any \(l\in[0,(s+1)n]\), it holds that \[\psi(l)=\max\left\{\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))\mid(I_0,\dots,I_s)\in T,\sum_{i=0}^{s}|I_i|\leqslant l\right\}.\]

Proof. Let \(l\in[0,(s+1)n]\), and let \(q\) denote the right hand side of (5.9). Apparently, we have \(\psi(l)\leqslant q\). Conversely, for any \((L_0,\dots,L_s)\in T\) with \(\sum_{i=0}^{s}|L_i|\leqslant l\), by [33, Lemma 2], we can choose \((I_0,\dots,I_s)\in T\) such that \(\sum_{i=0}^{s}|I_i|=l\) and \(L_i\subseteq I_i\) for all \(i\in[0,s]\); moreover, it follows from \(\delta_{(B_0,\dots,B_s)}(L_0,\dots,L_s)\subseteq\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s)\) that \(\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(L_0,\dots,L_s))\leqslant\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))\leqslant\psi(l)\), which further implies that \(q\leqslant\psi(l)\), as desired. ◻

Now we are ready to prove the main result of this subsection.

Theorem 21. \((\varphi,\psi)\) is a Galois connection between \([0,k]\) and \([0,(s+1)n]\). Moreover, for \[v\triangleq\max(\{\mathrm{len}\,_R({^{\ddag}B_{i+1}})-\mathrm{len}\,_R({^{\ddag}B_i})\mid i\in[0,s-1]\}\cup\{\mathrm{len}\,_R(M)-\mathrm{len}\,_R({^{\ddag}B_s})\}),\] we have \(\psi(l)-\psi(l-1)\leqslant v\) for all \(l\in[1,(s+1)n]\), and \(\varphi(r)+1\leqslant\max\{\varphi(r+v),1\}\) for all \(r\in[0,k-v]\).

Proof. The first assertion follows from Lemma 2.1 and Propositions 5.1 and 5.2. Next, consider \(l\in[1,(s+1)n]\). Then, we can choose \((I_0,\dots,I_s)\in T\) such that \(\sum_{i=0}^{s}|I_i|=l\) and \(\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))=\psi(l)\); moreover, by [33, Lemma 2.2], we can choose \((L_0,\dots,L_s)\in T\) such that \(\sum_{i=0}^{s}|L_i|=l-1\) and \(L_i\subseteq I_i\) for all \(i\in[0,s]\). Noticing that there uniquely exists \(p\in[0,s]\) such that \(|L_p|=|I_p|-1\) and \(L_i=I_i\) for all \(i\in[0,s]-\{p\}\), from Lemma 5.1, we deduce that \[\begin{align} \begin{aligned} \psi(l)-\psi(l-1)&\leqslant\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))-\mathrm{len}\,_R(C\cap\delta_{(B_0,\dots,B_s)}(L_0,\dots,L_s))\\ &\leqslant\mathrm{len}\,_R(\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))-\mathrm{len}\,_R(\delta_{(B_0,\dots,B_s)}(L_0,\dots,L_s))\\ &\leqslant v, \end{aligned} \end{align}\] as desired. Finally, the rest follows from Lemma 2.2. ◻

Remark 11. Theorem 5.1 recovers monotonicity established for EGHWs and EGPWs (see [32, Theorem 4] and [33, Theorem 2]) when \(M=R=S\) and \(\mathrm{len}\,_{R}(B_i)=\mathrm{len}\,(R)-i\) for all \(i\in[0,s]\), where \(R\) is set to be either \(\mathbb{Z}_{p^{a}}\) or a Galois ring, respectively.

5.2 Extended generalized poset weights and profiles for right \(S\)-submodules↩︎

In this short subsection, we define EGPWs and profiles for right \(S\)-submodules of \(M^{\Omega}\) in a parallel fashion. More precisely, let \(E\leqslant_{S}M^{\Omega}\) with \(\mathrm{len}\,_S(E)=k\), \(s\in\mathbb{N}\), \((A_0,\dots,A_s)\) be a tuple of left ideals of \(R\) with \(A_i\subseteq A_{i-1}\) for all \(i\in[1,s]\), \(\mathbf{P}=(\Omega,\preccurlyeq)\) be a poset, and define \(T\) as in (5.5). Moreover, define \(\varepsilon:[0,k]\longrightarrow[0,(s+1)n]\) and \(\varpi:[0,(s+1)n]\longrightarrow[0,k]\) as \[\varepsilon(r)=\min\left\{\sum_{i=0}^{s}|\langle\chi(A_iD)\rangle_{\mathbf{P}}|\mid\text{D\leqslant_{S}E, \mathrm{len}\,_S(D)=r}\right\},\] \[\varpi(l)=\max\left\{\mathrm{len}\,_S(E\cap\rho_{(A_0,\dots,A_s)}(I_0,\dots,I_s))\mid(I_0,\dots,I_s)\in T,\sum_{i=0}^{s}|I_i|=l\right\}.\] For any \(r\in[0,k]\), \(\varepsilon(r)\) is referred to as the \(r\)-th extended generalized \(\mathbf{P}\)-weight of \(E\) with respect to \((A_0,\dots,A_s)\), and for any \(l\in[0,(s+1)n]\), \(\varpi(l)\) is referred to as the \(l\)-th extended \(\mathbf{P}\)-profile of \(E\) with respect to \((A_0,\dots,A_s)\). We note that all the results established in Section 5.1 hold true for \((\varepsilon,\varpi)\) in a Parallel fashion.

5.3 Wei-type duality theorem↩︎

In this subsection, we establish a Wei-type duality theorem that relates EGPWs and profiles of a code with those of its dual code. From now on, suppose that \(R=S\) is a quasi-Frobenius ring, \(m\in\mathbb{Z}^{+}\), and \(M=R^{[m]}\), the set of all the column vectors over \(R\) of length \(m\). It is known that the length of a composition series of \(R\) as a left \(R\)-module is equal to the length of a composition series of \(R\) as a right \(R\)-module (see [10, Theorem 58.8]), which we simply denote by \(\mathrm{len}\,(R)\). For any \(A\subseteq R\), as in Section 2.2, let \(A^{\dagger}\) and \(^{\dagger}A\) denote the right annihilator and left annihilator of \(A\) in \(R\), respectively. Define the inner product \(\langle~,~\rangle:M^{\Omega}\times M^{\Omega}\longrightarrow R\) as \[\langle\alpha,\beta\rangle=\sum_{i\in\Omega}\sum_{j=1}^{m}\alpha_i(j)\beta_i(j),\] where \(\alpha_i(j)\) denotes the \(j\)-th entry of \(\alpha_i\in R^{[m]}\). For any \(D\subseteq M^{\Omega}\), let \(D^{\bot}\) and \(^{\bot}D\) denote the right dual and left dual of \(D\) with respect to \(\langle~,~\rangle\), respectively.

Lemma 9. Let \(s\in\mathbb{N}\), \((B_0,\dots,B_s)\) be a tuple of right ideals of \(R\) with \(B_0=R\) and \(B_i\subseteq B_{i-1}\) for all \(i\in[1,s]\), and let \((I_0,\dots,I_s)\) be a tuple of subsets of \(\Omega\) with \(I_i\subseteq I_{i-1}\) for all \(i\in[1,s]\). Moreover, let \((A_0,\dots,A_s)\) be the tuple of left ideals of \(R\) such that \(A_0=R\) and \(A_i={^{\dagger}B_{s+1-i}}\) for all \(i\in[1,s]\), and define \((J_0,\dots,J_s)\) as \(J_i=\Omega-I_{s-i}\) for all \(i\in[0,s]\). Then, we have \(J_i\subseteq J_{i-1}\), \(A_i\subseteq A_{i-1}\) for all \(i\in[1,s]\), and it holds that \(\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s)={^{\bot}\rho_{(A_0,\dots,A_s)}(J_0,\dots,J_s)}\).

Proof. It suffices to prove the last assertion. Since \(R\) is quasi-Frobenius, we have \({A_i}^{\dagger}=B_{s+1-i}\) for all \(i\in[1,s]\). Hence from Lemma 5.1, we deduce that \({^{\bot}\rho_{(A_0,\dots,A_s)}(J_0,\dots,J_s)}=\prod_{t\in \Omega}G_t=\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s)\), where \(G_t=\{0\}\) for all \(t\in \Omega-I_0\), \(G_t=M\) for all \(t\in I_s\), and \(G_t=(^{\dagger}B_{i})^{[m]}\) for all \(i\in[1,s]\) and \(t\in I_{i-1}-I_{i}\), as desired. ◻

Now we proceed to state and prove the Wei-type duality theorem. First, we fix some notations. Let \(s\in\mathbb{N}\) and \(w\in\mathbb{Z}^{+}\) satisfy that \[\mathrm{len}\,(R)=w(s+1),\] \((B_0,\dots,B_s)\) be a tuple of right ideals of \(R\) such that \(B_i\subseteq B_{i-1}\) for all \(i\in[1,s]\) and \[\forall~i\in[0,s]:\mathrm{len}\,_R(B_i)=(s+1-i)w,\] and let \((A_0,\dots,A_s)\) be the tuple of left ideals of \(R\) such that \(A_0=R\) and \[\forall~i\in[1,s]:A_i={^{\dagger}B_{s+1-i}}.\] Let \(\mathbf{P}=(\Omega,\preccurlyeq_{\mathbf{P}})\) be a poset, \(\mathbf{\overline{P}}=(\Omega,\preccurlyeq_{\mathbf{\overline{P}}})\) be the dual poset of \(\mathbf{P}\), and let \[T=\{(I_0,\dots,I_s)\in\mathcal{I}(\mathbf{P})^{[0,s]}\mid\text{I_i\subseteq I_{i-1} for all i\in[1,s]}\},\] \[Y=\{(J_0,\dots,J_s)\in\mathcal{I}(\mathbf{\overline{P}})^{[0,s]}\mid\text{J_i\subseteq J_{i-1} for all i\in[1,s]}\}.\] Let \(C\) be a left \(R\)-submodule of \(M^{\Omega}\) with \(\mathrm{len}\,_R(C)=k\), and let \(\varphi:[0,k]\longrightarrow[0,(s+1)n]\), \(\psi:[0,(s+1)n]\longrightarrow[0,k]\) such that \(\varphi(r)\) is equal to the \(r\)-th extended generalized \(\mathbf{P}\)-weight of \(C\) with respect to \((B_0,\dots,B_s)\), and \(\psi(l)\) is equal to the \(l\)-th extended \(\mathbf{P}\)-profile of \(C\) with respect to \((B_0,\dots,B_s)\). Noticing that \(C^{\bot}\) is a right \(R\)-submodule of \(M^{\Omega}\) with \(\mathrm{len}\,_R(C^{\bot})=mn\mathrm{len}\,(R)-k\), we let \(\tau:[0,mn\mathrm{len}\,(R)-k]\longrightarrow[0,(s+1)n]\) and \(\eta:[0,(s+1)n]\longrightarrow[0,mn\mathrm{len}\,(R)-k]\) such that \(\tau(c)\) is equal to the \(c\)-th extended generalized \(\mathbf{\overline{P}}\)-weight of \(C^{\bot}\) with respect to \((A_0,\dots,A_s)\), and \(\eta(l)\) is equal to the \(l\)-th extended \(\mathbf{\overline{P}}\)-profile of \(C^{\bot}\) with respect to \((A_0,\dots,A_s)\).

Theorem 22. (1)  \((\varphi,\psi)\) is a Galois connection between \([0,k]\) and \([0,(s+1)n]\) satisfying that \(\psi(0)=0\) and \(\psi(l)-\psi(l-1)\leqslant mw\) for all \(l\in[1,(s+1)n]\). Moreover, \((\tau,\eta)\) is a Galois connection between \([0,mn\mathrm{len}\,(R)-k]\) and \([0,(s+1)n]\).

(2)  For any \(l\in[0,(s+1)n]\), it holds that \[\eta(l)=\psi((s+1)n-l)+mwl-k.\] (3)  For any \(\gamma\in\mathbb{Z}\), define \[\mathcal{G}_\gamma=\{\varphi(u)\mid u\in[1,k],u\equiv\gamma+k~(\bmod~mw)\},\] \[\mathcal{H}_\gamma=\{(s+1)n+1-\tau(v)\mid v\in[1,mn\mathrm{len}\,(R)-k],v\equiv\gamma~(\bmod~mw)\}.\] Then, for any \(\gamma\in\mathbb{Z}\), it holds that \(\mathcal{G}_\gamma\cap\mathcal{H}_\gamma=\emptyset\), \(\mathcal{G}_\gamma\cup\mathcal{H}_\gamma=[1,(s+1)n]\).

Proof. (1)  From \(B_0=R\) and Lemma 5.1, we deduce that \(\delta_{(B_0,\dots,B_s)}(\emptyset,\dots,\emptyset)=\{0\}\), which implies that \(\psi(0)=0\), as desired. Next, for any \(i\in[0,s]\), by Lemma 2.5, we have \(\mathrm{len}\,_{R}({^{\dagger}B_i})=\mathrm{len}\,(R)-\mathrm{len}\,_{R}(B_i)=wi\) and hence \(\mathrm{len}\,_R({^{\ddag}B_i})=\mathrm{len}\,_R(({^{\dagger}B_i})^{[m]})=mwi\). Moreover, by (5.11), we have \(\mathrm{len}\,_R(M)=mw(s+1)\). Hence the desired result follows from Theorem 5.1.

(2)  Let \(l\in[0,(s+1)n]\). Since \(\mathcal{I}(\mathbf{\overline{P}})=\{\Omega-K\mid K\in\mathcal{I}(\mathbf{P})\}\) (see [20, Lemma 1.2]), \((I_0,\dots,I_s)\mapsto(\Omega-I_{s-i}\mid i\in[0,s])\) induces a bijection from \(\{(I_0,\dots,I_s)\in T\mid\sum_{i=0}^{s}|I_i|=(s+1)n-l\}\) to \(\{(J_0,\dots,J_s)\in Y\mid\sum_{i=0}^{s}|J_i|=l\}\). Now let \((I_0,\dots,I_s)\in T\) with \(\sum_{i=0}^{s}|I_i|=(s+1)n-l\), and define \((J_0,\dots,J_s)\in Y\) as \(J_i=\Omega-I_{s-i}\). For any \(i\in[1,s]\), by (5.13), we have \({A_i}^{\dagger}=B_{s+1-i}\), which, together with (5.12), implies that \(\mathrm{len}\,_{R}({A_i}^{\ddag})=\mathrm{len}\,_{R}({B_{s+1-i}}^{[m]})=mwi\). Hence from Lemma 5.1, we deduce that \(\mathrm{len}\,_{R}(\rho_{(A_0,\dots,A_s)}(J_0,\dots,J_s))=mwl\), which, together with Lemma 5.2 and (1) of Lemma 2.5, further implies that \[\mathrm{len}\,_{R}(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))-\mathrm{len}\,_{R}(C^{\bot}\cap\rho_{(A_0,\dots,A_s)}(J_0,\dots,J_s))=k-mwl.\] From the above discussion, we deduce that \[\begin{align} \begin{aligned} \eta(l)&=\max\left\{\mathrm{len}\,_{R}(C^{\bot}\cap\rho_{(A_0,\dots,A_s)}(J_0,\dots,J_s))\mid(J_0,\dots,J_s)\in Y,\sum_{i=0}^{s}|J_i|=l\right\}\\ &=\max\left\{\mathrm{len}\,_{R}(C\cap\delta_{(B_0,\dots,B_s)}(I_0,\dots,I_s))+mwl-k\mid(I_0,\dots,I_s)\in T,\sum_{i=0}^{s}|I_i|=(s+1)n-l\right\}\\ &=\psi((s+1)n-l)+mwl-k, \end{aligned} \end{align}\] as desired.

(3)  This follows from (1), (2) and Theorem 3.12. ◻

Remark 12. If \(s=0\) and \(M=R\), then Theorem 5.3 recovers the Wei-type duality theorem for GHWs and GPWs; moreover, if \(w=1\) and \(M=R\), then Theorem 5.3 recovers the Wei-type duality theorem for EGHWs and EGPWs (see [32, Theorems 15, 16] and [33, Theorems 8, 9]).

References↩︎

[1]
H. C. Tang, Extensions of Wei’s duality theorem and bounds for linear codes over \(\mathbb{Z}_{p^{m}}\), IEEE Transactions on Information Theory, vol. 70, no. 7 (2024), 5002-5011.
[2]
Y. Wang, X. Cao, G. Luo, Wei’s duality for generalized poset weight over Galois rings, IEEE Transactions on Information Theory, vol. 71, no. 11 (2025), 8463-8476.
[3]
V. K. Wei, Generalized Hamming weights for linear codes, IEEE Transactions on Information Theory, 37 (1991), 1412-1418.
[4]
T. Britz, T. Johnsen, J. Martin, Chains, demi-matroids and profiles, IEEE Transactions on Information Theory, vol. 60, no. 2 (2014), 986-991.
[5]
G. D. Forney, Dimension/Length profiles and trellis complexity of linear block codes, IEEE Transactions on Information Theory, vol. 40, no. 6 (1994), 1741-1752.
[6]
Y. Luo, C. Mitrpant, A. J. Han Vinck, Kefei Chen, Some new characters on the wire-tap channel of type II, IEEE Transactions on Information Theory, vol. 51, no. 3 (2005), 1222-1229.
[7]
A. Faldum, W. Willems, Codes of small defect, Designs, Codes and Cryptography, vol. 10 (1997), 341-350.
[8]
PH. Delsarte, Bilinear forms over a finite field, with applications to coding theory, Journal of Combinatorial Theory, Serias A. 25 (1978), 226-241.
[9]
E. M. Gabidulin, Theory of codes with maximum rank distance, Problems on Information Transmission, vol. 21, no. 1 (1985), 1-12.
[10]
J. Kurihara, R. Matsumoto, T. Uyematsu, Relative generalized rank weight of linear codes and its applications to network coding. IEEE Transactions on Information Theory vol. 61, no. 7 (2015), 3912-3936.
[11]
J. Ducoat, Generalized rank weights: a duality statement, in topics in finite fields. Contemp. Math. 632, 101-109 (2015).
[12]
R. Jurrius, R. Pellikaan, On defining generalized rank weights, Advances in Mathematics of Communications, vol. 11, no. 1 (2017), 225-235.
[13]
A. Ravagnani, Generalized weights: an anticode approach, Journal of Pure and Applied Algebra, vol. 220, no. 5 (2016), 1946-1962.
[14]
U. Martı́nez-Peñas, R. Matsumoto, Ralative generalized matrix weights of matrix codes for universal security on wire-tap networks, IEEE Transactions on Information Theory, 64 (2018), 2529-2549.
[15]
R. M. Roth, Maximum-rank array codes and their application to crisscross error correction, IEEE Transactions on Information Theory, vol. 37, no. 2 (1991), 328-336.
[16]
D. Silva, F. R. Kschischang, R. Koetter, A Rank-Metric Approach to Error Control in Random Network Coding, IEEE Transactions on Information Theory, vol. 54, no. 9 (2008), 3951-3967.
[17]
J. de la Cruz, On dually almost MRD codes, Finite Fields and Their Applications, vol. 53 (2018), 1-20.
[18]
J. de la Cruz, E. Gorla, H. H. López, A. Ravagnani, Weight distribution of rank-metric codes, Designs, Codes and Cryptography, vol. 86, no. 1 (2018), 1-16.
[19]
E. Gorla, Rank-metric codes, In W. Cary Huffman, Jon-Lark Kim, and Patrick Solé, editors, Concise Encyclopedia of Coding Theory, 227-250. Chapman and Hall/CRC, 2021.
[20]
E. Gorla and A. Ravagnani, Codes endowed with the rank metric, Network Coding and Subspace Designs, 2018, 3-23.
[21]
G. Marino, A. Neri, R. Trombetti, Evasive subspaces, generalized rank weights and near MRD codes, Discrete Mathematics, vol. 346, no. 12 (2023), 113605.
[22]
D. Bartoli, B. Csajbók, G. Marino, R. Trombetti, Evasive subspaces, Journal of Combinatorial Designs, vol. 29, no. 8 (2021), 533-551.
[23]
B. Csajbók, G. Marino, O. Polverino, F. Zullo, Generalising the scattered property of subspaces, Combinatorica, vol. 41, no. 2 (2021), 237-262.
[24]
H. T. Kamche and C. Mouaha, Rank-metric codes over finite principal ideal rings and applications, IEEE Transactions on Information Theory, vol. 65, no. 12 (2019), 7718-7735.
[25]
I. Blanco-Chacón, A. F. Boix, M. Greferath, E. Hieta-Aho, MacWilliams duality for rank metric codes over finite chain rings, Finite Fields and Their Applications, vol. 103 (2025), 102584.
[26]
R. A. Brualdi, J. S. Graves, K. M. Lawrence, Codes with a poset metric, Discrete Mathematics, 147 (1995), 57-72.
[27]
A. de Oliveira Moura, M. Firer, Duality for poset codes, IEEE Transactions on Information Theory, 56 (2010), 3180-3186.
[28]
J. Y. Hyun, H. K. Kim, Maximum distance separable poset codes, Designs, Codes and Cryptography, vol. 48, no. 3 (2008), 247-261.
[29]
A. Barg, P. Purkayastha: Near MDS poset codes and distributions. In: A. Bruen, D. Wehlau (eds.) Error-Correcting Codes, Finite Geometries, and Cryptography, American Mathematical Society, Providence, Rhode Island (2010), 135-148.
[30]
B. A. Davey, H. A. Priestley, Introduction to Lattices and Order(Second edition), Cambridge University Press, 2002.
[31]
Y. Xu, H. Kan, G. Han, A Galois connection approach to Wei-type duality theorems, IEEE Transactions on Information Theory, vol. 68, no. 8 (2022), 5133-5144.
[32]
F. W. Anderson, K. R. Fuller, Rings and Categories of Modules(second edition), Springer, 1992.
[33]
C. W. Curtis, I. Reiner, Representation theory of finite groups and associative algebras, Interscience, New York, 1962.
[34]
H. Horimoto and K. Shiromoto, On generalized Hamming weights for codes over finite chain rings, Lecture Notes in Computer Science, vol. 2227, pp. 141-150. Springer, Heidelberg (2001).