1 Introduction

From the 1970s to the present day, rank distance codes have been deeply studied as useful tool to correct errors and erasures in networks, and for the increasing applications which they have in storage systems [30], cryptosystems [24], space-time codes [36] and random linear network coding [35]. Moreover, they are linked to many structures studied in finite geometry such as semifields, linear sets, splitting dimensional dual hyperovals and q-polymatroids; for more details see [12, 28, 32] and the references therein. Delsarte [5] and Gabidulin [10] introduced, independently, rank distance codes as sets of matrices over a finite field equipped with the distance \(d(A,B)=\textrm{rk}(A-B)\). The most studied ones are codes with the largest possible size. These are called maximum rank distance codes, MRD codes for short.

Rank distance codes that are very rich in structure, for instance subgroups or subspaces of matrices, are the most studied in literature. While only few classes of non-additive and non-linear are known for almost any choices of parameters.

In this paper, we will give a geometric construction of a new family of these objects. These codes will be obtained from a cone of a projective space whose vertex is a proper subspace and whose base is a special pointset skew with the vertex. The base of such a cone is linked to the non-linear MRD codes constructed by Cossidente et al. [2], Durante and Siciliano [9] and Donati and Durante [8]. These latter can be obtained in turn by puncturing codes in the relevant family. Finally, we will show that this class of codes is not equivalent to that one constructed by Otal and Özbudak [26].

The article is structured as follows: in Sect. 2, some basic notions on rank distance codes will be recalled and the state of the art of the known MRD codes will be traced. In Sect. 3 and 4, the geometric setting will be introduced and the codes exhibited in [8] by Donati and Durante recalled. In Sect. 5, a geometrical configuration about cones over some particular subsets of the finite projective space will be investigated and this will give rise to our class of non-linear codes exhibited in Sect. 6. Finally in Sect. 7, we will show that this class is effectively new, it contains a class of linear MRD codes, and, in certain sense, a class of non-linear MRD ones already known.

2 Preliminary results and notions

Let \({\mathbb {F}}_q\) be the finite field of q elements, q a prime power, and let \({\mathbb {F}}_q^{m \times n}\) be the set of \(m \times n\) matrices with entries over \({\mathbb {F}}_q\) endowed with rank distance

$$\begin{aligned} d: (A,B) \in {\mathbb {F}}_q^{m \times n} \times {\mathbb {F}}_q^{m \times n} \longrightarrow \textrm{rk}(A-B) \in \{0,1,\ldots , \min \{m,n\}\}. \end{aligned}$$

A subset of \({\mathbb {F}}_q^{m \times n}\), including at least two elements is called a rank distance code. The minimum distance \(d({\mathcal {C}})\) of a code \({\mathcal {C}}\) is naturally defined by

$$\begin{aligned} d({\mathcal {C}}) = \min \{d(A, B): A, B \in {\mathcal {C}}, A \ne B\}. \end{aligned}$$

If \(d=d({\mathcal {C}})\), we will say that \({\mathcal {C}}\) is an (mnqd)-rank distance code. An (mnqd)-rank distance code is additive if it is an additive subgroup of \({\mathbb {F}}_q^{m \times n}\). An additive code is \({\mathbb {F}}_q\)-linear if it is a subspace of \({\mathbb {F}}_q^{m \times n}\) seen as a vector space over \({\mathbb {F}}_q\). A code that it is not an \({\mathbb {F}}_q\)-subspace is called a non-linear code.

It is well-known that the size of an (mnqd)-rank distance code \({\mathcal {C}}\) satisfies the Singleton-like bound, see e.g. [5, Theorem 5.4]:

$$\begin{aligned} |{\mathcal {C}}|\le q^{\max \{m,n\}(\min \{m,n\}-d + 1)}. \end{aligned}$$

When this bound is achieved, \({\mathcal {C}}\) is called an (mnqd)-maximum rank distance code, or in short (mnqd)-MRD code. The adjoint code of \({\mathcal {C}}\) is defined as the code made up by the transpose matrices belonging to \({\mathcal {C}}\):

$$\begin{aligned} {\mathcal {C}}^t=\{C^t: C \in {\mathcal {C}}\} \end{aligned}$$

where the superscript t stands for the matrix transposition. By the classification of rank isometries of \({\mathbb {F}}^{m \times n}_q\) [38, Theorem 3.5], two rank distance codes \({\mathcal {C}}, {\mathcal {C}}^{\prime } \subseteq {\mathbb {F}}_q^{m \times n}\), \(m,n \ge 2\), are called equivalent if there exist \(P\in {\textrm{GL}}(m, q)\), \(Q \in {\textrm{GL}}(n,q)\), \(R \in {\mathbb {F}}_q^{m \times n}\) and a field automorphism \(\rho \in \textrm{Aut}({\mathbb {F}}_q)\) such that

$$\begin{aligned} {\mathcal {C}}^{\prime }=P{\mathcal {C}}^{\rho }Q+R=\left\{ PC^{\rho }Q+R: C \in {\mathcal {C}} \right\} . \end{aligned}$$

When \(m=n\), in addition to being equivalent, two codes are said adjointly equivalent if

$$\begin{aligned} {\mathcal {C}}^{\prime }=P({\mathcal {C}}^t)^{\rho }Q+R=\left\{ P(C^t)^{\rho }Q+R: C \in {\mathcal {C}} \right\} . \end{aligned}$$

If both \({\mathcal {C}}\) and \({\mathcal {C}}^{\prime }\) are additive, then we may assume that R is the zero matrix. The code \({\mathcal {C}}^{[u]} \subseteq {\mathbb {F}}^{(m-u) \times n}_q\) obtained from \({\mathcal {C}} \subseteq {\mathbb {F}}_q^{m \times n}\) by deleting the last u rows, \( 1 \le u \le m-1\), is called a punctured code of \({\mathcal {C}}\). In [1, Corollary 7.3], it is showed that if \({\mathcal {C}} \subseteq {\mathbb {F}}_{q}^{m \times n}\), \(m \le n\), is an MRD code then \({\mathcal {C}}^{[u]}\) is MRD as well.

The left and right idealisers of a code \({\mathcal {C}}\subseteq {\mathbb {F}}_q^{m \times n}\) are defined as the sets

$$\begin{aligned} I_L({\mathcal {C}})= \left\{ P \in {\mathbb {F}}_q^{m \times m}: PC \in {\mathcal {C}}, \forall C \in {\mathcal {C}}\right\} \end{aligned}$$

and

$$\begin{aligned} I_R({\mathcal {C}})=\left\{ Q \in {\mathbb {F}}_q^{n \times n}: CQ \in {\mathcal {C}}, \forall C \in {\mathcal {C}}\right\} , \end{aligned}$$

respectively.

Although the rank distance codes are subsets of matrices, they can be represented in a particular setting, that of \(\sigma \)-linearized polynomials. From now on, suppose \(m=n\) and let \(\sigma : x \in {\mathbb {F}}_{q^n} \longrightarrow x^{q^s} \in {\mathbb {F}}_{q^n}\) be a field automorphism of \({\mathbb {F}}_{q^n}\) with \(\gcd (s,n)=1\).

A \(\sigma \)-linearized polynomial with coefficients over \({\mathbb {F}}_{q^n}\) is a polynomial of the form \(\alpha =\sum _{i=0}^\ell \alpha _i X^{\sigma ^i} \in {\mathbb {F}}_{q^n}[X]\), \(\ell \in {\mathbb {N}}\). If \(\alpha _\ell \ne 0\), the integer \(\ell \) is called the \(\sigma \)-degree of \(\alpha \) and it will be denoted \(\deg _{\sigma }\alpha \) or \(\deg _{q^s}\alpha \). The set \({\mathcal {L}}_{n,q,\sigma }\) of \(\sigma \)-linearized polynomials with coefficients over \({\mathbb {F}}_{q^n}\) equipped with the usual sum, the scalar multiplication by an element of \({\mathbb {F}}_{q^n}\) and the map composition is an algebra over \({\mathbb {F}}_{q^n}\). While, the set

$$\begin{aligned} \tilde{{\mathcal {L}}}_{n,q,\sigma }= \Biggl \{\sum _{i=0}^{n-1} \alpha _i X^{\sigma ^i}: \alpha _0,\ldots ,\alpha _{n-1} \in {\mathbb {F}}_{q^n} \Biggr \} \end{aligned}$$
(1)

endowed with the sum as in \({\mathcal {L}}_{n,q,\sigma }\), the multiplication by an element of \({\mathbb {F}}_{q}\) and the composition modulo \(X^{q^{ns}}-X\) is an algebra over \({\mathbb {F}}_q\) isomorphic to the algebra of the endomorphisms of \({\mathbb {F}}_{q^n}\) seen as vector space over \({\mathbb {F}}_q\). Indeed, it is well known that any \({\mathbb {F}}_q\)-linear endomorphism of \({\mathbb {F}}_{q^n}\) can be represented uniquely as a \(\sigma \)-polynomial belonging to \(\tilde{{\mathcal {L}}}_{n,q,\sigma }\), [17, Chapter 3 ]. Then any rank distance code \({\mathcal {C}}\), \(|{\mathcal {C}}| \ge 2\), can be seen as a suitable subset of \(\tilde{{\mathcal {L}}}_{n,q,\sigma }\).

So, the definitions of transpose matrix, adjoint code and equivalence between codes can be naturally reformulated in this environment. Let \(\alpha =\sum _{i=0}^{n-1} \alpha _i X^{\sigma ^i} \in \tilde{{\mathcal {L}}}_{n,q,\sigma }\), then the adjoint polynomial of \(\alpha \) is defined as

$$\begin{aligned} {\hat{\alpha }}=\sum _{i=0}^{n-1}\alpha ^{\sigma ^{n-i}}_iX^{\sigma ^{n-i}} \end{aligned}$$

and if \({\mathcal {C}} \subseteq \tilde{{\mathcal {L}}}_{n,q,\sigma } \) is a rank distance code, \({\mathcal {C}}^t= \{ {\hat{\alpha }}: \alpha \in {\mathcal {C}}\}\). Moreover, two rank codes \({\mathcal {C}}\) and \({\mathcal {C}}^\prime \) are equivalent or adjointly equivalent if there exists \((f,\rho ,g,h)\) such that \(f,g,h \in \tilde{{\mathcal {L}}}_{n,q,\sigma }\), with f and g permutation polynomials, and \(\rho \in \textrm{Aut}({\mathbb {F}}_q)\) such that

\({\mathcal {C}}^\prime = \{f \circ \alpha ^\rho \circ g+h :\alpha \in {\mathcal {C}}\} \)   or   \({\mathcal {C}}^\prime = \{f \circ \alpha ^\rho \circ g+h :\alpha \in {\mathcal {C}}^t\},\)

respectively. Here the automophism \(\rho \) acts only over the coefficients of a polynomial \(\alpha \) in \({\mathcal {C}}\) or \({\mathcal {C}}^t\), respectively. A map

$$\begin{aligned} (f,\rho ,g,h): \alpha \in {\mathcal {C}} \longrightarrow f \circ \alpha ^\rho \circ g + h \in {\mathcal {C}}^\prime \end{aligned}$$

is called an equivalence between \({\mathcal {C}}\) and \({\mathcal {C}}^\prime \). If \({\mathcal {C}}={\mathcal {C}}^\prime \), an equivalence is said an automorphism of \({\mathcal {C}}\). The set \(\textrm{Aut}({\mathcal {C}})\) of all automorphisms of \({\mathcal {C}}\) is a group with respect to the product

$$\begin{aligned} (f,\rho ,g,h) \star (f',\rho ',g',h')=(f' \circ f^{\rho '},\rho \rho ',g^{\rho '} \circ g', f' \circ h^{\rho '} \circ g' + h') \end{aligned}$$

where the composition is taken modulo \(X^{q^{ns}}-X\).

To make this article as self-contained as possible, we shall present the state of the art regarding the known (nnqd)-MRD codes in the linearized polynomials setting. Although, very recently, new constructions of both linear and non-linear rectangular MRD codes have been exhibited by Shi et al. [34]. We shall start from maximum rank distance code that are \({\mathbb {F}}_q\)-linear subspaces of \(\tilde{{\mathcal {L}}}_{n,q,\sigma }\).

2.1 Linear MRD codes

The first class of linear MRD codes, discovered by Delsarte [5] and Gabidulin [10], are known in literature as Delsarte–Gabidulin codes. Later in [11], Gabidulin and Kshevetskiy provided a generalization of them, called generalized Gabidulin codes that we shall recap in our notations: let \( 1 \le k \le n\) be an integers, then a generalized Gabidulin code is the set of linearized polynomials

$$\begin{aligned} {\mathcal {G}}_{k,\sigma }=\left\{ \sum _{i=0}^{k-1} \alpha _i X^{\sigma ^i} :\alpha _0,\ldots ,\alpha _{k-1}\in {\mathbb {F}}_{q^n} \right\} \end{aligned}$$

and it is an \((n,n,q;n-k+1)\)-MRD code.

In [31], Sheekey exhibited a wider class of linear MRD codes, called twisted Gabidulin codes and later generalized in [23] by Lunardon, Trombetti and Zhou. Let nkh be positive integers, \(1 \le k<n\) and let \(\eta \) be in \({\mathbb {F}}_{q^n}\) such that \(\textrm{N}_{q^{sn}/q^s}(\eta )\ne (-1)^{nk}\), then a generalized twisted Gabidulin code is the set

$$\begin{aligned} {\mathcal {H}}_{k,\sigma }(\eta ,h)=\left\{ \sum _{i=0}^{k-1} \alpha _i X^{\sigma ^i} + \eta \alpha _0^{q^h}X^{\sigma ^k}: \alpha _0,\ldots ,\alpha _{k-1}\in {\mathbb {F}}_{q^n} \right\} \end{aligned}$$

and it is an \((n,n,q;n-k+1)\)-MRD codeFootnote 1.

Puchinger et al. provided a further generalization of generalized twisted Gabidulin codes in [29].

Finally, a family of maximum rank distance codes in \(\tilde{{\mathcal {L}}}_{n,q,\sigma }\), \(n=2t\), \(1 \le k < n\) and q odd was discovered by Trombetti and Zhou in 2019 and described in [37]: let \(\xi \in {\mathbb {F}}_{q^n}\) satisfying that \(\textrm{N}_{q^n/q}(\xi )\) is a non-square in \({\mathbb {F}}_q\), then

$$\begin{aligned} {\mathcal {D}}_{k,\sigma }(\xi )= \left\{ \sum _{i=0}^{k-1}\alpha _i X^{\sigma ^i} +\xi \alpha _k X^{\sigma ^{k}}: \alpha _0, \alpha _k \in {\mathbb {F}}_{q^t}, \alpha _1,\ldots ,\alpha _{k-1} \in {\mathbb {F}}_{q^n} \right\} \end{aligned}$$

is an \((n,n,q;n-k+1)\)-MRD code.

2.2 Additive MRD codes

In [25], Otal and Özbudak showed a family of non-linear additive MRD codes as a generalization of generalized twisted Gabidulin codes. Let nkuh be positive integers satisfying \(q=q_0^u\) and \(1 \le k<n\). Let \(\eta \in {\mathbb {F}}_{q^n}\) such that \(\textrm{N}_{q^{sn}/q_0^s}(\eta ) \ne (-1)^{nku}\). Then the set

$$\begin{aligned} {\mathcal {A}}_{k,\sigma ,q_0}(\eta ,h) = \left\{ \sum _{i=0}^{k-1} \alpha _i X^{\sigma ^i} + \eta \alpha _0^{q_0^h}X^{\sigma ^k}: \alpha _0,\ldots ,\alpha _{k-1} \in {\mathbb {F}}_{q^n} \right\} \end{aligned}$$
(2)

is an \({\mathbb {F}}_{q_0}\)-linear \((n,n,q;n-k+1)\)-MRD code.

Later, another family of non-linear additive MRD codes appeared in [33]. Let \(F=\sum _{i=0}^r F_iY^i \in \mathbb {F}_q[Y]\) be irreducible polynomial of degree r and let consider the ideal \(\mathcal {I}=(\sum _{i=0}^rF_i X^{\sigma ^{ni}})\) contained in \(\mathcal {L}_{n,q,\sigma }\). Let \(\rho \in \textrm{Aut}({\mathbb {F}}_q)\) with \(\textrm{Fix}(\rho )={\mathbb {F}}_{q_0}\) and let \(\eta \in {\mathbb {F}}_{q^n}\) such that \(\textrm{N}_{q^n/q_0}(\eta )\textrm{N}_{q/q_0}((-1)^{kr(n-1)}F_0^k)\ne 1 \). Then, the set

$$\begin{aligned} \mathcal {S}_{k,\sigma }(\eta ,\rho )=\left\{ \sum _{i=0}^{kr-1}\alpha _iX^{\sigma ^i}+ \eta \alpha _{0}^\rho X^{\sigma ^{rk}}+ \mathcal {I}: \alpha _0,\ldots ,\alpha _{rk-1} \in {\mathbb {F}}_{q^n} \right\} \subseteq \mathcal {L}_{n,q,\sigma }/\mathcal {I}\cong {\mathbb {F}}_{q^r}^{n \times n} \end{aligned}$$

is an \({\mathbb {F}}_{q_0}\)-linear MRD code of \({\mathbb {F}}_{q^r}^{n \times n}\) of size \(q^{nrk}\), [33, Theorem 7]. Note that for suitable choices of F, \(\rho \) and \(\eta \), the (twisted) generalized Gabidulin codes and the non-linear additive codes in (2) return, see [33, Remark 3].

2.3 Non-linear MRD codes

In finite geometry (nnqn)-MRD codes are known as spread sets (see e.g. [6]) and there are examples for both cases linear and non-linear. These are linked to algebraic and geometric structures such as quasifields, semifields and translation planes coordinatized over them, see [4] and [15]. The first class of non-linear MRD codes whose codewords are not invertible and so different from spread sets, are the (3, 3, q; 2)-MRD codes constructed by Cossidente et al. [2]. These arise from a geometrical context and have been generalized in two steps: firstly, by Durante and Siciliano [9] obtaining a family of \((n,n,q;n-1)\)-MRD codes, \(n \ge 3\), and then by Donati and Durante obtaining a family of \((d+1,n,q;d)\)-MRD codes, \(2 \le d \le n-1\), see [8]. As we shall extend this family further, we will describe it in detail in Sect. 4.

The second family of non-additive MRD codes for all nd has been constructed by Otal and Özbudak in [26]: let I be a subset of \({\mathbb {F}}_q\), \(1 \le k \le n-1\) and consider

$$\begin{aligned} & {\mathcal {C}}^{(1)}_{n,k,\sigma ,I}=\left\{ \sum _{i=0}^{k-1} \alpha _i X^{\sigma ^i}: \alpha _0,\ldots ,\alpha _{k-1} \in {\mathbb {F}}_{q^n}, \textrm{N}_{{q^n}/ q}(\alpha _0) \in I \right\} ,\nonumber \\ & {\mathcal {C}}^{(2)}_{n,k,\sigma ,I}=\left\{ \sum _{i=1}^{k} \beta _i X^{\sigma ^i}: \beta _1,\ldots ,\beta _{k} \in {\mathbb {F}}_{q^n}, \textrm{N}_{{q^n}/ q}(\beta _k) \not \in (-1)^{n(k+1)}I \right\} . \end{aligned}$$
(3)

Then \({\mathcal {C}}_{n,k,\sigma ,I}={\mathcal {C}}^{(1)}_{n,k,\sigma ,I} \cup {\mathcal {C}}^{(2)}_{n,k,\sigma ,I} \subseteq \tilde{{\mathcal {L}}}_{n,q,\sigma }\) is an \((n,n,q;n-k+1)\)-MRD code. In [26, Corollary 2.1], they proved

  1. 1.

    if \(q = 2\) or \(I \in \{\emptyset ,\{0\},{\mathbb {F}}_q^*,{\mathbb {F}}_q\}\) then \({\mathcal {C}}_{n,k,\sigma ,I}\) is equivalent to a generalized Gabidulin code;

  2. 2.

    if \(q > 2\) and \(I \not \in \{\emptyset ,\{0\},{\mathbb {F}}_q^*,{\mathbb {F}}_q\}\), then \({\mathcal {C}}_{n,k,\sigma ,I}\) is not an affine code (i.e. not a translated version of an additive code).

In the following sections, we provide a geometric construction for a class of non-linear (nnqd)-MRD \({\mathcal {C}}_{\sigma ,T}\), \(1 \in T \subseteq {\mathbb {F}}_q^*\), \(2 \le d \le n-1\), and puncturing properly a code in this relevant class, we get a code described in [8]. We shall show that this class is effectively new, i.e. any code is not equivalent to a non-linear code constructed by Otal and Özbudak.

3 The geometric setting

Let \({\mathbb {E}}=\textrm{End}_{{\mathbb {F}}_q}({\mathbb {F}}_{q^n})\) be the vector space of all endomorphisms of \({\mathbb {F}}_{q^n}\) seen as a vector space over the field \({\mathbb {F}}_q\). As any element of \({\mathbb {E}}\) corresponds 1-to-1 to a linearized polynomial \(\alpha =\sum _{i=0}^{n-1}\alpha _iX^{\sigma ^i} \in \tilde{{\mathcal {L}}}_{n,q,\sigma }\), we will define rank of the polynomial \(\alpha \) as the dimension over \({\mathbb {F}}_q\) of \(\textrm{im}\, \alpha (x)\), where \(\alpha (x)\) is the map \(x \in {\mathbb {F}}_{q^n} \mapsto \sum _{i=0}^{n-1}\alpha _i x^{\sigma ^i} \in {\mathbb {F}}_{q^n}\), in symbol \(\textrm{rk}\alpha = \dim _{{\mathbb {F}}_q} \textrm{im} \,\alpha (x)\). Also, the \({\mathbb {F}}_q\)-linear map \(\alpha (x)\) has rank r if and only if the Dickson matrix

$$\begin{aligned} D_\alpha = \begin{pmatrix} \alpha _0 & \alpha _1 & \cdots & \alpha _{n-1} \\ \alpha _{n-1}^\sigma & \alpha _0^\sigma & \cdots & \alpha _{n-2}^\sigma \\ \vdots & \vdots & \vdots & \vdots \\ \alpha _1^{\sigma ^{n-1}} & \alpha _{2}^{\sigma ^{n-1}} & \cdots & \alpha _0^{\sigma ^{n-1}} \end{pmatrix} \end{aligned}$$

has rank r, see for more details [17, Chapter 3].

Let V be a v-dimensional vector space over the field \({\mathbb {F}}_{q^n}\) and let \({\textrm{PG}}(v - 1, q^n)={\textrm{PG}}(V, {\mathbb {F}}_{q^n} )\). A set \(\Theta \) of points of \({\textrm{PG}}(v-1, q^n)\) is an \({\mathbb {F}}_q\)-linear set if each point is defined by a non-zero vector of an \({\mathbb {F}}_q\)-linear vector space \(U \subset V\), in symbol

$$\begin{aligned} \Theta = \left\{ \langle {{\textbf {u}}} \rangle _{{\mathbb {F}}_{q^n}} :{{\textbf {u}}} \in U, {{\textbf {u}}} \ne {{\textbf {0}}} \right\} . \end{aligned}$$

If \(\dim _{{\mathbb {F}}_q}U=u\), we say that \(\Theta \) has rank u. The size of \(\Theta \) can be at most \(\frac{q^u-1}{q-1}\) and if it is attained, \(\Theta \) is said to be scattered. If \(u=v\) and \(\langle \Theta \rangle ={\textrm{PG}}(v-1,q^n)\), then \(\Theta \) is a (canonical) subgeometry of \({\textrm{PG}}(v-1,q^n)\). It follows that \(\Theta \) is a canonical subgeometry if and only if any of its frame is also a frame of \({\textrm{PG}}(v-1,q^n)\).

Let \(\Sigma \cong {\textrm{PG}}(n-1,q)\) be a canonical subgeometry of \({\textrm{PG}}(n-1,q^n)\) and let \({\hat{\sigma }}\) be a generator of the subgroup of \(\textrm{P}\Gamma \textrm{L}(n,q^n)\) whose elements fixing pointwise \(\Sigma \). Let \({\overline{S}}={\textrm{PG}}(W,q^n)\) be a subspace of \({\textrm{PG}}(n-1,q^n)\). The integer \(\dim _{{\mathbb {F}}_{q^n}} W=w \) will be called the rank of \({\overline{S}}\). Then \(S={\overline{S}} \cap \Sigma \) is a subspace of \(\Sigma \) of rank at most w. We will say that \({\overline{S}}\) is a subspace of \(\Sigma \) if S and \({\overline{S}}\) have the same rank. In particular, this holds if and only if \({\overline{S}}\) is fixed by the collineation \({\hat{\sigma }}\) (see e.g. [19]). Any point P of \({\textrm{PG}}(n - 1, q^n)\) defines the subspace

$$\begin{aligned} L_{P,{\hat{\sigma }}} = \langle P, P^{{\hat{\sigma }}}, \ldots , P^{{\hat{\sigma }}^{n-1}} \rangle . \end{aligned}$$

If the collineation \({\hat{\sigma }}\) is clear from the context, we will indicate \(L_{P,{\hat{\sigma }}}\) simply by \(L_{P}\). Note that \(L_{P}\) has rank at most n and it is fixed by \({\hat{\sigma }}\), and so \(L_{P}\) is a subspace of \(\Sigma \). Denote by \((X_0,X_1,\ldots ,X_{n-1})\) the homogeneous projective coordinates of \({\textrm{PG}}(n-1,q^n)\) and let \(P(\alpha _0,\alpha _1,\ldots , \alpha _{n-1})\) be a point of \({\textrm{PG}}(n-1,q^n)\). It will be of type r with respect to \(\Sigma \) if \(L_P\) has rank r. In particular, if \({\hat{\sigma }}\) is the collineation of \({\textrm{PG}}(n-1,q^n)\) defined by

$$\begin{aligned} (X_0,X_1,\ldots ,X_{n-1})^{{\hat{\sigma }}}=(X_{n-1}^{\sigma },X_0^{\sigma },\ldots ,X_{n-2}^{\sigma }). \end{aligned}$$

Then, the collineation \({\hat{\sigma }}\) fixes pointwise the canonical subgeometry

$$\begin{aligned} \Sigma _{n,n}=\{ (x,x^{\sigma },\ldots ,x^{\sigma ^{n-1}}): x \in {\mathbb {F}}^*_{q^n} \} \cong {\textrm{PG}}(n-1,q). \end{aligned}$$
(4)

and the point \(P(\alpha _0,\alpha _1,\ldots , \alpha _{n-1})\) is of type r with respect to \(\Sigma _{n,n}\) if and only \(\alpha =\sum ^{n-1}_{i=0}\alpha _i X^{\sigma ^i}\) has rank r, or also the Dickson matrix \(D_{\alpha }\) has rank r.

Let \({\textrm{PG}}({\mathbb {F}}_q^{m \times n},{\mathbb {F}}_q)={\textrm{PG}}(mn-1,q)\), \(m \le n\), and let \({\mathcal {S}}_{m,n}\) be the Segre variety of \({\textrm{PG}}({\mathbb {F}}_q^{m \times n},{\mathbb {F}}_q)\), i.e., \({\mathcal {S}}_{m,n}\) is the set of all points \(\langle A \rangle _{{\mathbb {F}}_q}\) in \({\textrm{PG}}({\mathbb {F}}_q^{m \times n},{\mathbb {F}}_q)\) such that \(\textrm{rk}A=1\), see [14, Sect. 4.5]. This can be seen as the \({\mathbb {F}}_q\)-field reduction of the set of points

$$\begin{aligned} \Sigma _{m,n}=\{(x,x^{\sigma },\ldots ,x^{\sigma ^{m-1}}) :x \in {\mathbb {F}}^*_{q^n} \} \cong {\textrm{PG}}(n-1,q) \end{aligned}$$

of \({\textrm{PG}}(m-1,q^n)\) in \({\textrm{PG}}(mn-1,q)\), see [16, Sect. 2.2].

Let \({\mathcal {A}}\) be a subset of \({\textrm{PG}}(n-1,q)\) and denote by \(\Omega _h({\mathcal {A}})\) the h-secant variety of \({\mathcal {A}}\), i.e. the union of the \(\ell \)-dimensional projective subspaces spanned by points of \({\mathcal {A}}\) for any \(0 \le \ell \le h \), [13]. Note that \(\Omega _0({\mathcal {A}})={\mathcal {A}}\) and for any \(1 \le h \le n-1\), \(\Omega _{h-1}({\mathcal {A}}) \subseteq \Omega _{h}({\mathcal {A}})\). Moreover, if \({\mathcal {A}} \subset {\textrm{PG}}(n-1,q)\) such that \(\langle {\mathcal {A}} \rangle ={\textrm{PG}}(t-1,q) \subset {\textrm{PG}}(n-1,q)\), then \(\Omega _{h}({\mathcal {A}})=\Omega _{t-1}({\mathcal {A}})\) for any \( t \le h \le n-1 \). A set of points \({\mathcal {E}} \subset {\textrm{PG}}(n-1,q)\) is called an exterior set with respect to \(\Omega _h({\mathcal {A}})\) if any line joining two points of \({\mathcal {E}}\) is disjoint from \(\Omega _h({\mathcal {A}})\). The following theorem proves an upper bound for the size of an exterior set.

Theorem 3.1

Let \({\mathcal {A}}\subset {\textrm{PG}}(n-1,q)\) such that \(\langle {\mathcal {A}} \rangle = {\textrm{PG}}(n-1,q)\). Let \({\mathcal {E}} \subset {\textrm{PG}}(n-1,q)\) be an exterior set with respect to \(\Omega _h({\mathcal {A}})\), \(0 \le h \le n-1\). Then

$$\begin{aligned} |{\mathcal {E}}|\le \frac{q^{n-h-1}-1}{q-1}. \end{aligned}$$

Proof

Firstly, we may assume \(h\le n-3\). Indeed, if \(h \in \{n-2,n-1\}\) the claim is trivially satisfied: if \(h=n-1\), then \(\Omega _{n-1}(\mathcal {{\mathcal {A}}})={\textrm{PG}}(n-1,q)\) and \({\mathcal {E}}=\emptyset \); if \(h=n-2\), then \(\Omega _{n-2}(\mathcal {{\mathcal {A}}})\) contains hyperplanes and \(|{\mathcal {E}}| \le 1\).

Now, let \(h \le n-3\) and let \(S_h\) be an h-dimensional subspace contained in \(\Omega _h({\mathcal {A}})\). The number of \((h+1)\)-dimensional projective subspaces of \({\textrm{PG}}(n-1,q)\) containing \(S_h\) equals the number of points of an \((n-h-2)\)-dimensional projective subspace of \({\textrm{PG}}(n-1,q)\). Since \({\mathcal {E}}\) is an exterior set, then it meets any \((h+1)\)-dimensional projective subspace containing \(S_h\) in at most one point. This proves the claim. \(\square \)

Given MN two sets of points of \({\textrm{PG}}(n- 1, q)\), with \(M \cap N =\emptyset \), we will denote by \({\mathcal {K}}(M, N)\) the cone with vertex M and base N, i.e. \({\mathcal {K}}(M,N)\) is the set of all points belonging to a line joining a point of M and a point of N.

Let suppose that MN are two disjoint subsets of \({\textrm{PG}}(n-1,q)\) such that \(\langle M \rangle \) and \(\langle N \rangle \) are disjoint subspaces having rank at least 2. Let PQ be two distinct points in M and \(P',Q'\) be two distinct points in N. It is straightforward to show that the lines \(PP'\) and \(QQ'\) are disjoint. Indeed, if \(PP' \cap QQ' \ne \emptyset \) then the plane spanned by \(PP'\) and \(QQ'\) meets the subspace \(\langle M\rangle \) in the line PQ and the subspace \(\langle N\rangle \) in the line \(P'Q'\), a contradiction. Then, it follows that

$$\begin{aligned} |{\mathcal {K}}(M,N)|=|M|+|N|+(q-1)\cdot |M| \cdot |N|. \end{aligned}$$

If the subspaces \(\langle M \rangle \) and \(\langle N \rangle \) of \({\textrm{PG}}(n-1,q)\) are not disjoint, then the lines \(PP'\) and \(QQ'\) can be incident and, clearly,

$$\begin{aligned} |{\mathcal {K}}(M,N)|\le |M|+|N|+(q-1)\cdot |M| \cdot |N|. \end{aligned}$$

Corollary 3.2

Let \({\mathcal {A}}\subset {\textrm{PG}}(n-1,q)\) such that \(\langle {\mathcal {A}} \rangle = {\textrm{PG}}(t-1,q)\), \(1 \le t < n\), and let \({\mathcal {E}} \subset {\textrm{PG}}(n-1,q)\) be an exterior set with respect to \(\Omega _h({\mathcal {A}})\), \(0 \le h \le n-1\). Then \({\mathcal {E}}\) is contained in a cone \({\mathcal {K}}={\mathcal {K}}(S_{n-t-1},\bar{{\mathcal {E}}}),\) with base \(\bar{{\mathcal {E}}}={\mathcal {E}} \cap \langle {\mathcal {A}} \rangle \) and vertex an \((n-t-1)\)-dimensional subspace \(S_{n-t-1}\) complementary with \(\langle {\mathcal {A}} \rangle \). Moreover,

$$\begin{aligned} |{\mathcal {E}}|\le {\left\{ \begin{array}{ll} \frac{q^{n-h-1}-1}{q-1} & \text {if} \quad 0 \le h \le t-1,\\ \frac{q^{n-t}-1}{q-1} & \text {otherwise}. \end{array}\right. } \end{aligned}$$
(5)

Proof

Let suppose \(0 \le h \le t-1\). Clearly, if \(\bar{{\mathcal {E}}}\subset \langle {\mathcal {A}} \rangle \) is an exterior set with respect to \(\Omega _h({\mathcal {A}}) \subseteq \langle {\mathcal {A}} \rangle \), \(0 \le h \le t-1\), by Theorem 3.1,

$$\begin{aligned} |\bar{{\mathcal {E}}}| \le \frac{q^{t-h-1}-1}{q-1}. \end{aligned}$$

Let \(S_{n-t-1}\) be an \((n-t-1)\)-dimensional subspace of \({\textrm{PG}}(n-1,q)\) complementary with \( \langle {\mathcal {A}} \rangle \). Then,

$$\begin{aligned} |{\mathcal {K}}(S_{n-t-1},\bar{{\mathcal {E}}})|= & |\bar{{\mathcal {E}}}| \cdot |S_{n-t-1}| \cdot (q-1)+ |\bar{{\mathcal {E}}}|+|S_{n-t-1}| \\\le & \frac{q^{t-h-1}-1}{q-1} \cdot \frac{q^{n-t}-1}{q-1} \cdot (q-1) + \frac{q^{t-h-1}-1}{q-1} + \frac{q^{n-t}-1}{q-1} \\= & \frac{q^{n-h-1}-1}{q-1}. \end{aligned}$$

If \( t \le h \le n-1\), since \(\Omega _h({\mathcal {A}})=\Omega _{t-1}({\mathcal {A}})\) and any exterior set contained in \(\langle {\mathcal {A}} \rangle \) with respect \(\Omega _h({\mathcal {A}})\) is the empty set, the claim follows. \(\square \)

An exterior set \({\mathcal {E}} \subset {\textrm{PG}}(n-1,q)\) with respect to \(\Omega _h({\mathcal {A}})\), \(\langle {\mathcal {A}} \rangle = {\textrm{PG}}(t-1,q)\), \(1 \le h+1 \le t \le n\), is called maximum if its size \(\vert {\mathcal {E}} \vert =\frac{q^{n -h-1}-1}{q-1}\). Note that the image of \(\Omega _h(\Sigma _{m,n}) \subset {\textrm{PG}}(m-1,q^n)\) under the \({\mathbb {F}}_q\)-field reduction is the h-secant variety \(\Omega _h({\mathcal {S}}_{m,n})\) of the points whose the representative matrices in \({\mathbb {F}}_q^{m \times n}\) have rank at most \(h+1\). The (maximum) exterior sets with respect to \(\Omega _h(\Sigma _{m,n})\) are related to (maximum) rank distance codes. More precisely,

Theorem 3.3

Let \({\mathcal {E}}\) be an exterior set with respect to \(\Omega _h(\Sigma _{m,n})\) of \({\textrm{PG}}(m-1,q^n)\) and denote by \({\mathcal {E}}^{\prime }\) the image of \({\mathcal {E}}\) under the \({\mathbb {F}}_q\)-field reduction. Then, the set

$$\begin{aligned} {\mathcal {C}}=\left\{ \rho M: \langle M \rangle _{{\mathbb {F}}_{q}} \in {\mathcal {E}}^{\prime }, \rho \in {\mathbb {F}}_{q}\right\} \end{aligned}$$
(6)

is an \((m, n,q; h+2)\)-RD code closed under \({\mathbb {F}}_q\)-multiplication. In addition, if \({\mathcal {E}}\) is maximum then \({\mathcal {C}}\) is an MRD.

Note that the \((m,n,q;h+2)\)-RD codes closed under \({\mathbb {F}}_q\)-multiplication and the exterior sets with respect to \(\Omega _h({\mathcal {S}}_{m,n})\) of \({\textrm{PG}}(mn-1,q)\) are in 1-to-1 correspondence. Since the pre-image under the field reduction of one of these sets may not be an exterior set of \({\textrm{PG}}(m-1,q^n)\) with respect to \(\Omega _h(\Sigma _{m,n})\), then there exist rank distance codes that don’t arise from exterior sets with respect to \(\Omega _h(\Sigma _{m,n})\) of \({\textrm{PG}}(m-1,q^n)\). See [2, 3, 8] and the references therein for more details on exterior sets.

4 Non-linear MRD codes arising from \(C_F^{\sigma }\)-set

In [8], Donati and Durante exhibited a class of non-linear MRD codes with parameters \((d+1,n,q;d)\) with \(q >2\), \(n \ge 3\) and \( 2\le d \le n-1\) by means of a family of maximum exterior sets with respect the \((d-2)\)-secant variety of a subgeometry isomorphic to \({\textrm{PG}}(d,q)\) in \(\Sigma _{d+1,n}\). Now, we recall briefly their construction. So, let \({\textrm{PG}}(d,q^n)\) be a d-dimensional projective space and consider A and B two distinct points of \({\textrm{PG}}(d,q^n)\), \({\mathcal {S}}_A\) and \({\mathcal {S}}_B\) be the stars of lines (pencils of lines if \(d=2\)) through A and B, respectively. Let \(\sigma \) be the Frobenius automorphism of \({\mathbb {F}}_{q^n}\) defined by \( x \mapsto x^{q^s}\) with \(\gcd (n,s)=1\) and consider \(\Phi \) a \(\sigma \)-collineation between \({\mathcal {S}}_A\) and \({\mathcal {S}}_B\) which does not map the line AB into itself and such that the subspace spanned by the lines \(\Phi ^{-1}(AB), AB, \Phi (AB)\) has dimension \(\min \{3, d\}\). The set \({\mathcal {X}}\) of points of intersection of corresponding lines under the collineation \(\Phi \) is called \(C_F^{\sigma }\)-set of \({\textrm{PG}}(d,q^n)\) and the points A and B are called the vertices of \({\mathcal {X}}\), see [7, 8]. There, it is proved that every \(C_F^{\sigma }\)-set \({\mathcal {X}}\) of \({\textrm{PG}}(d,q^n)\) with vertices A and B is the union of \(\{A,B \}\) and \(q-1\) pairwise disjoint subsets, called the components of \({\mathcal {X}}\), each of which is a scattered \({\mathbb {F}}_q\)-linear set of rank n. For more details on linear sets, see e.g. [27].

Let \(N_a = \{y \in {\mathbb {F}}_{q^n}: \textrm{N}_{q^n/q}(y) = a\}\) for any \(a \in {\mathbb {F}}_q^{*}\). Without loss of generality, we may assume that \(A=(0,\ldots ,0,1)\) and \(B=(1,0,\ldots ,0)\) and then the sets

$$\begin{aligned} {\mathcal {X}}_a=\left\{ (1,t,t^{\sigma +1},\ldots ,t^{\sigma ^{d-1}+\cdots +\sigma +1}): t \in N_a \right\} , \end{aligned}$$

with \(a \in {\mathbb {F}}_q^{*}\), are the components of \({\mathcal {X}}\). Since every \({\mathcal {X}}_a\) has \((q^n-1)/(q-1)\) points, then \({\mathcal {X}}\) has \(q^n+1\) points. In particular, every \({\mathcal {X}}_a\) is isomorphic to \({\textrm{PG}}(n-1,q)\), see [8, Remark 3.5]. For any \(a \in {\mathbb {F}}_q^{*}\), the line AB of \({\textrm{PG}}(d,q^n)\) is partitioned into \(\{ A, B\}\) and the \(q-1\) sets

$$\begin{aligned} J_a=\left\{ (1,0,\ldots ,0,(-1)^{d+1}t): t \in N_a \right\} , \end{aligned}$$

each of which is a scattered \({\mathbb {F}}_q\)-linear set (of pseudoregulus type with transversal points A and B), see [7, Remark 2.2] and [21]. Note that \({\mathcal {X}}_1=\Sigma _{d+1,n}\) and let \(\Pi \) be a subgeometry of \(\Sigma _{d+1,n}\) isomorphic to \({\textrm{PG}}(d,q)\). Then for any \(T \subseteq {\mathbb {F}}_q^{*}\), \(1 \in T\), the set

$$\begin{aligned} {\mathcal {E}}=\Bigg ( {\mathcal {X}} \setminus \bigcup _{a \in T} {\mathcal {X}}_a \Bigg ) \cup \bigcup _{a \in T} J_a \end{aligned}$$

is a maximum exterior set with respect to \(\Omega _{d-2}(\Pi )\), see [8, Theorem 5.1]. Hence, the set \({\mathcal {E}}\) corresponds a \((d+1,n,q;d)\)-MRD code.

5 Embeddings and cones over exterior sets

Let \(\Sigma \cong {\textrm{PG}}(n-1,q)\) be a canonical subgeometry of \({\textrm{PG}}(n-1,q^n)\) and consider a subspace \(\Lambda ^{\star }\) of rank k disjoint from \(\Sigma \) and \(\Lambda \) a subspace of \({\textrm{PG}}(n - 1, q^n)\) of rank \(n - k\) disjoint from \(\Lambda ^{\star }\). Let \(\Gamma \) be the projection of \(\Sigma \) from \(\Lambda ^{\star }\) to \(\Lambda \), i.e.,

$$\begin{aligned} \Gamma =\textrm{p}_{\Lambda ^{\star },\Lambda }(\Sigma )=\left\{ \langle \Lambda ^{\star }, P \rangle \cap \Lambda : P \in \Sigma \right\} . \end{aligned}$$

We recall the following definition given in [20].

Definition 5.1

Let \(\Gamma =\textrm{p}_{\Lambda ^{\star },\Lambda }(\Sigma )\) be an \({\mathbb {F}}_q\)-linear set of rank n. It is called \((n-k-1)\)-embedding of \(\Sigma \) if any subspace of \(\Sigma \) of rank \(n-k\) is disjoint from \(\Lambda ^{\star }\).

Note that \(\Gamma =\textrm{p}_{\Lambda ^\star ,\Lambda }(\Sigma )\) is an \((n-k-1)\)-embedding if and only if for any choice of \(n-k\) independent points \(R_1,R_2, \ldots , R_{n-k}\) of \(\Sigma \),

$$\begin{aligned} \Lambda =\langle R'_1,R'_2,\ldots ,R'_{n-k} \rangle \end{aligned}$$

where \(R'_i=\textrm{p}_{\Lambda ^\star ,\Lambda }(R_i)\), \(i=1,2,\ldots ,n-k\), also this is equivalent to say that

$$\begin{aligned} \textrm{p}_{\Lambda ^\star ,\Lambda }: P\in \Sigma \longrightarrow \langle P,\Lambda ^\star \rangle \cap \Lambda \in \Lambda \end{aligned}$$

induces an injective map from the set of all subspaces of \(\Sigma \) of rank \(\ell \le n - k-1 \) to the set of all subspaces of \(\Lambda \) of the same rank \(\ell \) and, hence, if \(R \in \Omega _{n-k-1}(\Sigma )\) then \(\langle R, \Lambda ^\star \rangle \cap \Lambda \in \Omega _{n-k-1}(\Gamma )\).

Remark 5.2

If \(\Gamma =\textrm{p}_{\Lambda ^*,\Lambda }(\Sigma )\) is an \((n-k-1)\)-embedding of \(\Sigma \), it is not true that \(\Omega _{n-k-1}(\Gamma ) \not \subseteq \Omega _{n-k-1}(\Sigma ) \cap \Lambda \). For instance, let

$$\begin{aligned} \Sigma _{5,5}=\{(x,x^{\sigma },x^{\sigma ^2},x^{\sigma ^3},x^{\sigma ^4}):x \in {\mathbb {F}}_{q^5}^*\} \end{aligned}$$

be a fixed canonical subgeometry of \({\textrm{PG}}(4,q^5)\) and let \(\Lambda ^\star (0,0,0,0,1)\) and \(\Lambda :X_4=0\) be a point and a hyperplane of \({\textrm{PG}}(4,q^5)\), respectively. Clearly, \(\Omega _1(\Sigma )\) and \(\Omega _1(\Gamma )\) contains lines joining two distinct points of \(\Gamma \) and \(\Sigma \), respectively. If \(\Omega _{1}(\Sigma ) \cap \Lambda \) containes a line then it would contain two points of \(\Sigma \). Since \(\Lambda \) and \(\Sigma \) are disjoint, we get a contradiction.

Lemma 5.3

[20, Theorem 6] The \({\mathbb {F}}_q\)-linear set \(\Gamma =\textrm{p}_{\Lambda ^{\star },\Lambda }(\Sigma )\) is an \((n-k-1)\)-embedding of \(\Sigma \) if and only if any point \(P \in \Lambda ^{\star }\) is of type \(\ge n-k+1\).

Proof

By definition \(\Gamma \) is an \((n - k - 1) \)-embedding if and only if \(\Lambda ^\star \) is disjoint from any subspace of \(\Sigma \) of rank \(n - k\). This is equivalent to saying that for any point P of \(\Lambda ^\star \) the subspace \(L_P\) has rank at least \(n - k + 1\), i.e. the point P is of type at least \(n - k + 1\). \(\square \)

In [20], in order to get a linear MRD-code, a geometric property for the cone having vertex \(\Lambda ^\star \) and base a linear set of rank n has been shown. More precisely,

Theorem 5.4

[20, Theorem 5] Let \(\Sigma \cong {\textrm{PG}}(n - 1, q)\) be a canonical subgeometry of \({\textrm{PG}}(n - 1, q^n)\) and let \(\Lambda ^{\star }\) and \(\Lambda \) be subspaces of \({\textrm{PG}}(n-1,q^n)\) of rank k and \(n-k\), respectively, such that \(\Lambda ^\star \cap \Sigma = \emptyset = \Lambda ^\star \cap \Lambda \).

Let \(\Gamma = \textrm{p}_{\Lambda ^{\star },\Lambda }(\Sigma )\) be an \((n - k-1)\)-embedding of \(\Sigma \) and let \(\Theta \subset \Lambda \) be an \({\mathbb {F}}_q\)-linear set of rank n. If no points of \(\Theta \) belong to a subspace spanned by at most \(n -k\) points of \(\Gamma \), then any point of \({\mathcal {K}}={\mathcal {K}}(\Lambda ^{\star }, \Theta )\) is of type \(\ge n - k + 1\).

Moreover, if \(\Sigma =\Sigma _{n,n}\) as in (4), the set \({\mathcal {C}} =\left\{ \sum _{i=0}^{n-1}\alpha _i X^{\sigma ^i}: (\alpha _0,\alpha _1,\ldots ,\alpha _{n-1}) \in {\mathcal {K}} \right\} \) is a linear MRD-code with minimum distance \(d = n - k + 1\).

Here, we shall adapt the result above to the case of cone such that its base is not necessarily a linear set.

Theorem 5.5

Let \(\Sigma \cong {\textrm{PG}}(n - 1, q)\) be a canonical subgeometry of \({\textrm{PG}}(n - 1, q^n)\) and let \(\Lambda ^{\star }\) and \(\Lambda \) be subspaces of \({\textrm{PG}}(n-1,q^n)\) of rank \(k-2\) and \(n - k+2\), respectively, such that \(\Lambda ^\star \cap \Sigma = \emptyset = \Lambda ^\star \cap \Lambda \). Let \(\Gamma = \textrm{p}_{\Lambda ^{\star },\Lambda }(\Sigma )\) be an \((n - k+1)\)-embedding of \(\Sigma \) and let \({\mathcal {E}}\) be a (maximum) exterior set with respect to \(\Omega _{n-k-1}(\Gamma )\).

Then, \({\mathcal {K}}={\mathcal {K}}(\Lambda ^{\star },{\mathcal {E}})\) is a (maximum) exterior set with respect to \(\Omega _{n-k-1}(\Sigma )\).

Proof

Let PQ be two points in \({\mathcal {K}}={\mathcal {K}}(\Lambda ^\star ,{\mathcal {E}})\). We shall distinguish some cases:

  • \(P,Q \in \Lambda ^\star \). Since \(\Gamma \) is an \((n-k+1)\)-embedding the line PQ is disjoint from the subspaces of rank \((n-k)\) of \(\Sigma \) and so from \(\Omega _{n-k-1}(\Sigma )\).

  • \(P,Q \in {\mathcal {E}}\). Suppose that the line PQ meets a subspace S of \(\Sigma \) of rank \((n-k)\) and consider

    $$\begin{aligned} \emptyset \not = \langle \Lambda ^\star , S \cap PQ \rangle \cap \Lambda \subseteq \langle \Lambda ^\star , S \rangle \cap \Lambda \cap PQ. \end{aligned}$$
    (7)

    This is a contradiction by the hypothesis done over \({\mathcal {E}}\) and since \(\langle \Lambda ^\star ,S \rangle \cap \Lambda \) is a subspace of rank \(n-k\).

  • the line \(PQ \subseteq {\mathcal {K}} {\setminus } (\Lambda ^\star \cup {\mathcal {E}})\) and joins a point of \(\Lambda ^\star \) and a point of \({\mathcal {E}}\). Then, without loss of generality, we may suppose that \(P \in \Lambda ^\star \) and \(Q \in {\mathcal {E}}\). If the line PQ meets a subspace S of \(\Sigma \) of rank \((n-k)\), then

    $$\begin{aligned} Q \in \langle \Lambda ^\star , S \cap PQ \rangle \cap \Lambda \subseteq \langle \Lambda ^\star , S \rangle \cap \Lambda . \end{aligned}$$
    (8)

    Then Q belongs to a space spanned by points of \(\Gamma \) with rank \((n-k)\), a contradiction.

  • the line \(PQ \subseteq {\mathcal {K}} {\setminus } (\Lambda ^\star \cup {\mathcal {E}}) \) and does not joint a point of \(\Lambda ^\star \) and a point of \({\mathcal {E}}\) or \(PQ \not \subseteq {\mathcal {K}}\). If PQ meets a subspace S of \(\Sigma \) of rank \((n-k)\), then

    $$\begin{aligned} \emptyset \not = \langle \Lambda ^\star , S \cap PQ \rangle \cap \Lambda \subseteq \langle \Lambda ^\star , S \rangle \cap \langle \Lambda ^\star , PQ \rangle \cap \Lambda . \end{aligned}$$
    (9)

    Since the projection from \(\Lambda ^\star \) to \(\Lambda \) of the line PQ is a line through two points \(P',Q'\) of \({\mathcal {E}}\), we get that this line meets the space \(\langle \Lambda ^\star , S \rangle \cap \Lambda \) spanned by \((n-k)\) points of \(\Gamma \), a contradiction.

Then we have showed that any line through two points of \({\mathcal {K}}\) is disjoint from \(\Omega _{n-k-1}(\Sigma )\). Now, since \(\langle \Gamma \rangle = \Lambda \), if \({\mathcal {E}}\) is a maximum exterior set with respect to \(\Omega _{n-k-1}(\Gamma )\), we get

$$\begin{aligned} |{\mathcal {K}}(\Lambda ^\star ,{\mathcal {E}} )|= & |\Lambda ^\star |+|{\mathcal {E}} |+|\Lambda ^\star ||{\mathcal {E}} |(q^n-1) \\= & \frac{q^{n(k-2)}-1}{q^n-1}+\frac{q^{2n}-1}{q^n-1}+\frac{q^{n(k-2)}-1}{q^n-1}\cdot \frac{q^{2n}-1}{q^n-1}(q^n-1) \\= & \frac{q^{2n}-1}{q^n-1}+\frac{q^{n(k-2)}-1}{q^n-1}q^{2n} \\= & \frac{q^{nk}-1}{q^n-1}. \end{aligned}$$

\(\square \)

In the same setting of theorem above, it seems that if \({\mathcal {K}}(\Lambda ^\star ,{\mathcal {E}})\) is an exterior set with respect to \(\Omega _{n-k-1}(\Sigma )\) where \({\mathcal {E}}\) is a subset contained in \(\Lambda \), then \({\mathcal {E}}\) may not be an exterior set with respect \(\Omega _{n-k-1}(\Gamma )\). If \(\Omega _{n-k-1}(\Sigma ) \cap \Lambda =\Omega _{n-k-1}(\Gamma )\), this turns to be true. Indeed, if \(A,B \in {\mathcal {E}}\) and there exists \(P \in AB \cap \Omega _{n-k-1}(\Gamma )\), then \(P \in AB \cap \Omega _{n-k-1}(\Sigma )\), a contradiction.

6 The class of non-linear MRD codes \({\mathcal {C}}_{\sigma ,T}\)

In this section, as application of Theorem 5.5, by a suitable choice of \(\Lambda ^\star \), \(\Lambda \), an \((n-k+1)\)-embedding \(\Gamma \) of \(\Sigma =\Sigma _{n,n}\), \(2 \le k \le n-1\), and a maximum exterior set with respect to \(\Omega _{n-k-1}(\Gamma )\) in \({\textrm{PG}}(n-1,q^n)\), we will get a class of non-linear MRD codes in \(\tilde{{\mathcal {L}}}_{n,q,\sigma }\). Precisely, let

$$\begin{aligned} \Lambda ^\star :X_{0}=X_1=\cdots =X_{n-k+1}=0 \end{aligned}$$

and

$$\begin{aligned} \Lambda :X_{n-k+2}=X_{n-k+3}=\cdots =X_{n-1}=0 \end{aligned}$$

be disjoint subspaces of rank \((k-2)\) and \((n-k+2)\) in \({\textrm{PG}}(n-1,q^n)\), respectively. Consider the linear set of rank n

$$\begin{aligned} \Gamma =\textrm{p}_{\Lambda ^\star ,\Lambda }(\Sigma )=\{(x,x^{\sigma },\ldots ,x^{\sigma ^{n-k+1}},0,\ldots ,0): x \in {\mathbb {F}}^*_{q^n} \} \end{aligned}$$
(10)

where \(\Sigma \) is the canonical geometry as in (4) and let \(P=(0,\ldots ,0,\beta _{n-k+2},\ldots ,\beta _{n-1}) \in \Lambda ^\star \). This is a point of type at least \(n-k+3\). Indeed, the linearized polynomial

$$\begin{aligned} \beta =\beta _{n-k+2}X^{\sigma ^{n-k+2}}+\cdots +\beta _{n-1}X^{\sigma ^{n-1}} \end{aligned}$$

has rank at least \(n-k+3\) because the polynomial \(\beta \circ X^{\sigma ^{k-2}}=\beta _{n-k}X+\cdots +\beta _{n-1}X^{\sigma ^{k-3}}\) has at most \(q^{k-3}\) roots and \(\textrm{rk}(\beta \circ X^{\sigma ^{k-2}})= \textrm{rk}\beta \). So, by Lemma 5.3, we get that \(\Gamma \) is an \((n-k+1)\)-embedding of \(\Sigma \). Finally, let

$$\begin{aligned} A=(\underbrace{0,\ldots ,0}_{n-k+1},1,0,\ldots ,0) \text { and }B= (1,0,\ldots ,0) \end{aligned}$$

be points in \(\Lambda \) and consider

$$\begin{aligned} {\mathcal {X}}=\bigcup _{a \in {\mathbb {F}}_q^{*}} {\mathcal {X}}_a \cup \, \{A,B\}, \end{aligned}$$

where

$$\begin{aligned} {\mathcal {X}}_a=\left\{ (1,t,t^{\sigma +1},\ldots ,t^{\sigma ^{n-k}+\cdots +\sigma +1},0,\ldots ,0): t \in N_a \right\} . \end{aligned}$$

The set \({\mathcal {X}}\) is the \(C_F^{\sigma }\)-set with vertices A and B generated by a \(\sigma \)-collineation \(\Phi \) between the star of lines through A and B contained in \(\Lambda \). Let \(T \subseteq {\mathbb {F}}_q^{*}\), \(1 \in T\), then the set

$$\begin{aligned} {\mathcal {E}}=\Bigg ( {\mathcal {X}} \setminus \bigcup _{a \in T} {\mathcal {X}}_a \Bigg ) \cup \bigcup _{a \in T} J_a \end{aligned}$$
(11)

with

$$\begin{aligned} J_a=\left\{ (1,\underbrace{0,\ldots ,0}_{n-k}, (-1)^{n-k}t,0,\ldots ,0): t \in N_a \right\} , \quad a \in {\mathbb {F}}^*_q. \end{aligned}$$

is a maximum exterior set with respect to \(\Omega _{n-k-1}(\Gamma )\) as proved in [8, Theorem 5.1] of size \(q^n+1\). Therefore, the hypothesis of Theorem 5.5 are satisfied and the cone \({\mathcal {K}}(\Lambda ^\star ,{\mathcal {E}})\) is a maximum exterior set with respect to \(\Omega _{n-k-1}(\Sigma )\) and by Theorem 3.3, the set \({\mathcal {C}}_{\sigma ,T} \subset {\mathbb {F}}_{q}^{n \times n}\), as in (6), is a non-linear MRD code with minimum distance \(d=n-k+1\) which cannot be a translated version of an additive code.

Note that the punctured code \({\mathcal {C}}^{[k-2]}_{\sigma ,T} \subset {\mathbb {F}}^{(n-k+2) \times n}_{q}\) obtained from \({\mathcal {C}}_{\sigma ,T}\) by deleting the last \((k-2)\) rows is exactly the code constructed in [8, Theorem 5.1], while for \(k=2\) the code appeared in [9] and for \(n=3,k=2\) in [2].

By Theorems 3.3 and 5.5, the \({\mathcal {C}}_{\sigma ,T}\) is a subset of square matrices of order n and so, it can be seen as a subset of \(\tilde{{\mathcal {L}}}_{n,q,\sigma }\). Indeed, fixing \(T \subseteq {\mathbb {F}}^*_{q}\), \(1 \in T\), the homogeneous coordinates of the points belonging to \({\mathcal {E}}\) have one of the following forms

$$\begin{aligned} \begin{aligned}&(\alpha ,\alpha ^\sigma \xi ,\alpha ^{\sigma ^2}\xi ^{\sigma +1},\ldots ,\alpha ^{\sigma ^{n-k+1}}\xi ^{\sigma ^{n-k}+\cdots +1},0,\ldots ,0)\\&(\alpha ,\underbrace{0,\ldots ,0}_{n-k}, (-1)^{n-k}\alpha ^\sigma \eta ,0,\ldots ,0)\\&A=(\underbrace{0,\ldots ,0}_{n-k+1},\alpha ,0,\ldots ,0) \text { and } B=(\alpha ,0,\ldots ,0) \end{aligned} \end{aligned}$$
(12)

with \(\textrm{N}_{q^n/q}(\xi ) \in {\mathbb {F}}_{q}^*\setminus T\) and \(\textrm{N}_{q^n/q}(\eta ) \in T\). So the non-linear (nnqd), \(d=n-k+1\), MRD code \({\mathcal {C}}_{\sigma ,T}\) is the set of \(\sigma \)-linearized polynomials with \(\sigma \)-degree at most \(n-1\) whose coefficients are the homogeneous coordinates of a point in \({\mathcal {K}}(\Lambda ^\star ,{\mathcal {E}})\) together with the zero map, i.e.

$$\begin{aligned} \begin{aligned} {\mathcal {C}}_{\sigma ,T}&=\left\{ \sum _{i=0}^{n-k+1} \lambda \alpha ^{\sigma ^i} \xi ^\frac{\sigma ^i-1}{\sigma -1}X^{\sigma ^i}+\sum _{i=n-k+2}^{n-1}\beta _i X^{\sigma ^i}: \lambda , \alpha , \beta _i \in {\mathbb {F}}_{q^n}, \textrm{N}_{q^n/q}(\xi ) \in {\mathbb {F}}_q^{*} \setminus T \right\} \\&\cup \left\{ \lambda \alpha X +(-1)^{n-k+2} \lambda \alpha ^{\sigma }\eta X^{\sigma ^{n-k+1}}+\sum _{i=n-k+2}^{n-1}\beta _i X^{\sigma ^i}: \lambda , \alpha , \beta _i \in {\mathbb {F}}_{q^n}, \textrm{N}_{q^n/q}(\eta ) \in T \right\} \\&\cup \left\{ \alpha X^{\sigma ^{n-k+1}}+\sum _{i=n-k+2}^{n-1}\beta _i X^{\sigma ^i}: \alpha , \beta _i \in {\mathbb {F}}_{q^n} \right\} \cup \left\{ \alpha X+\sum _{i=n-k+2}^{n-1}\beta _i X^{\sigma ^i}: \alpha , \beta _i \in {\mathbb {F}}_{q^n} \right\} . \end{aligned}\nonumber \\ \end{aligned}$$
(13)

7 The equivalence issue for \({\mathcal {C}}_{\sigma ,T}\)

Finally, in order to state the novelty of the class of non-linear codes obtained, we have to compare a code of type \({\mathcal {C}}_{\sigma ,T}\), \(1 \in T \subseteq {\mathbb {F}}_q^*\), with the only known non-linear MRD codes made up of square matrices: the codes of type \({\mathcal {C}}_{n,k,\sigma ,I}\) with \(I \subseteq {\mathbb {F}}_q\), cf. (3).

It easy straightforward to see that the code \({\mathcal {C}}_{\sigma ,T}\) in (13) is closed under \({\mathbb {F}}_{q^n}\)-multiplication and hence under \({\mathbb {F}}_q\)-multiplication. While, the code \({\mathcal {C}}_{n,k,\sigma ,I}\) in (3), if \(q>2\) and \(I \not \in \{\emptyset ,\{0\},{\mathbb {F}}_q^*,{\mathbb {F}}_q\}\) is not closed under \({\mathbb {F}}_q\)-multiplication. Therefore, by Theorem 3.3, \({\mathcal {C}}_{n,k,\sigma ,I}\) cannot arise from an exterior set \({\mathcal {E}}'\) of \({\textrm{PG}}(n^2-1,q)\) with respect to the secant variety \(\Omega _{n-k-1}({\mathcal {S}}_{n,n})\). Moreover, the property of being closed under \({\mathbb {F}}_q\)-multiplication is not preserved under equivalence between two non-linear MRD codes, and then it cannot be used as an argument to state that these codes are not equivalent.

So, in this section we will investigate their equivalence issue. Firstly, note that the sets

$$\begin{aligned} {\mathcal {U}}=\left\{ \alpha X^{\sigma ^{n-k+1}}+\sum _{i=n-k+2}^{n-1}\beta _i X^{\sigma ^i}: \alpha , \beta _i \in {\mathbb {F}}_{q^n} \right\} =\left\{ f \circ X^{\sigma ^{n-k+1}}: f \in {\mathcal {G}}_{k-1,\sigma } \right\} \end{aligned}$$
(14)

and

$$\begin{aligned} {\mathcal {V}}=\left\{ \alpha X+\sum _{i=n-k+2}^{n-1}\beta _i X^{\sigma ^i}: \alpha , \beta _i \in {\mathbb {F}}_{q^n} \right\} =\left\{ f \circ X^{\sigma ^{n-k+2}}: f \in {\mathcal {G}}_{k-1,\sigma } \right\} , \end{aligned}$$
(15)

contained in \({\mathcal {C}}_{\sigma ,T}\), are equivalent to a generalized Gabidulin code \({\mathcal {G}}_{k-1,\sigma }\) and their intersection

$$\begin{aligned} \left\{ \sum _{i=d+1}^{n-1}\beta _iX^{\sigma ^i}: \beta _i \in {\mathbb {F}}_{q^n}\right\} =\left\{ f \circ X^{\sigma ^{n-k+2}}: f \in {\mathcal {G}}_{k-2,\sigma } \right\} \end{aligned}$$

is equivalent to a generalized Gabidulin code \({\mathcal {G}}_{k-2,\sigma }\). While the non-linear \((n,n,q;n-k+1)\)-MRD code \({\mathcal {C}}_{n,k,\sigma ,I}={\mathcal {C}}^{(1)}_{n,k,\sigma ,I} \cup {\mathcal {C}}^{(2)}_{n,k,\sigma ,I}\), introduced in Sect. 2.3, contains the set

$$\begin{aligned}\left\{ \sum _{i=1}^{k-1} \gamma _i X^{\sigma ^i}: \gamma _i \in {\mathbb {F}}_{q^n} \right\} =\left\{ f \circ X^{\sigma }: f \in {\mathcal {G}}_{k-1,\sigma } \right\} , \end{aligned}$$

which is equivalent to a generalized Gabidulin code \({\mathcal {G}}_{k-1,\sigma }\) and it is straightforward to see that \({\mathcal {C}}_{n,k,\sigma ,I}\) is contained in a generalized Gabidulin code \({\mathcal {G}}_{k+1,\sigma }\).

Clearly, if \(q=2\) or \(T={\mathbb {F}}^*_q\), \({\mathcal {C}}_{\sigma ,T}\) is equivalent to the generalized Gabidulin code \({\mathcal {G}}_{k,\sigma }\). Then, by [26, Corollary 2.1], it follows

Theorem 7.1

Let \(I \subseteq {\mathbb {F}}_{q}\), \(1 \in T \subseteq {\mathbb {F}}_{q}^*\) and \(\sigma \) be a generator of \(\textrm{Gal}({\mathbb {F}}_{q^n}|{\mathbb {F}}_q)\). If \(q=2\) or \(T={\mathbb {F}}_{q}^*\) and \(I\in \{\emptyset ,\{0\},{\mathbb {F}}_q^*,{\mathbb {F}}_{q}\},\) then the codes \({\mathcal {C}}_{n,k,\sigma ,I}\) and \({\mathcal {C}}_{\sigma ,T}\) are both equivalent to \({\mathcal {G}}_{k,\sigma }\).

In the remainder of this section, we shall show that apart from these cases, the codes \({\mathcal {C}}_{\sigma ,T}\) and \({\mathcal {C}}_{n,k,\sigma ,I}\) cannot be equivalent. In order to do this, we recall the following result that holds for the \(\sigma \)-linearized polynomials as well.

Theorem 7.2

[31, Theorem 3] A subspace \({\mathcal {W}}\) of \({\mathcal {G}}_{k,\sigma }\), \(k \le n-1\), is equivalent to \({\mathcal {G}}_{r,\sigma }\) if and only if there exist invertible linearized polynomials fg such that

$$\begin{aligned} {\mathcal {W}} = {\mathcal {G}}^{(f,g)}_{r,\sigma } = \left\{ f \circ \alpha \circ g: \alpha \in {\mathcal {G}}_{r,\sigma } \right\} , \end{aligned}$$

where \(f_0 = 1\) and \(\deg _{\sigma } (f) + \deg _{\sigma }(g) \le k - r\).

By a similar argument used in [31, Lemma 4] for the generalized twisted Gabidulin codes, we prove the following

Theorem 7.3

Let \( I \not \in \{\emptyset ,\{0\},{\mathbb {F}}_q^*,{\mathbb {F}}_{q}\}\), the non-linear \((n,n,q;n-k+1)\)-MRD code \({\mathcal {C}}_{n,k,\sigma ,I}\) contains a unique subspace equivalent to \({\mathcal {G}}_{k-1,\sigma }\).

Proof

We have already noted that \({\mathcal {C}}_{n,k,\sigma ,I}\) is contained in \({\mathcal {G}}_{k+1,\sigma }\). Now, let \({\mathcal {W}}\) be a subspace of \({\mathcal {C}}_{n,k,\sigma ,I}\) equivalent to \({\mathcal {G}}_{k-1,\sigma }\). By Theorem 7.2, there exist invertible \(\sigma \)-linearized polynomials fg such that

$$\begin{aligned} {\mathcal {W}}={\mathcal {G}}_{k-1,\sigma }^{(f,g)}=\left\{ f \circ \alpha \circ g: \alpha \in {\mathcal {G}}_{k-1,\sigma } \right\} \end{aligned}$$

with \(f_0 \ne 0\) and \(\deg _{\sigma }(f)+\deg _{\sigma }(g) \le 2\).

If \(\deg _{\sigma }(f)=t\) then \(\deg _{\sigma }(g)\le 2-t\). Let \(\alpha =\sum _{i=0}^{k-2}\alpha _i X^{\sigma ^i}\) be an element of \({\mathcal {G}}_{k-1,\sigma }\). Then the coefficient of X in the polynomial \(f \circ \alpha \circ g\) is \(f_0\alpha _0g_0\), while the coefficient of \(X^{\sigma ^k}\) is \(f_t\alpha _{k-2}^{\sigma ^t}g_{2-t}^{\sigma ^{k+t-2}}\). Since \({\mathcal {C}}^{(1)}_{n,k,\sigma ,I}\) and \({\mathcal {C}}^{(2)}_{n,k,\sigma ,I}\) are disjoint, first suppose that \({\mathcal {W}} \subset {\mathcal {C}}^{(1)}_{n,k,\sigma ,I}\). Then, \(\textrm{N}_{q^n/q}(f_0\alpha _0 g_0) \in I\) and \(f_t\alpha _{k-2}^{\sigma ^t}g_{2-t}^{\sigma ^{k+t-2}}=0\) for any \(\alpha _0, \alpha _{k-2} \in {\mathbb {F}}_{q^n}\). So, we distinguish three cases:

  1. 1.

    Suppose \(t=2\), then \(\deg _{\sigma }(g) = 0\). Since \(f_0,f_2 \ne 0\) this is possible if and only if \(0 \in I\) and \(g_0=0\). This yields g is the zero polynomial, a contradiction.

  2. 2.

    Suppose \(t=1\), then \(\deg _{\sigma }(g) \le 1\). Since \(f_0,f_1 \ne 0\) this is possible if and only if \(0 \in I\) and \(g_1=0\). If \(g_0\not = 0\), since the map \(x \in {\mathbb {F}}_{q^n}\mapsto \textrm{N}_{q^n/q}(f_0xg_0) \in {\mathbb {F}}_{q}\) is surjective, \(I={\mathbb {F}}_q\) a contradiction. This yields g is the zero polynomial, leading to a contradiction again.

  3. 3.

    Suppose \(t=0\), then \(\deg _{\sigma }(g) \le 2\). Since \(f_0 \ne 0\) this is possible if and only if \(0 \in I\) and \(g_{2}=0\) and \(g_0=0\) as in the previous case. It follows \(g=g_1X^{\sigma }\), implying \({\mathcal {W}}=\left\{ \alpha \circ X^{\sigma }: \alpha \in {\mathcal {G}}_{k-1,\sigma } \right\} \).

A similar argument can be applied when \({\mathcal {W}} \subset {\mathcal {C}}^{(2)}_{n,k,s,I}\). The claim follows. \(\square \)

Theorem 7.4

Let \(I \not \in \{\emptyset ,\{0\},{\mathbb {F}}_q^*,{\mathbb {F}}_{q}\}\) and \(1 \in T \subset {\mathbb {F}}_q^*\). Then the codes of type \({\mathcal {C}}_{n,k,\sigma ,I}\) and \({\mathcal {C}}_{\sigma ,T}\) are neither equivalent nor adjointly equivalent.

Proof

By contradiction, assume that \({\mathcal {C}}_{n,k,\sigma ,I}\) and \({\mathcal {C}}_{\sigma ,T}\) are equivalent or adjointly equivalent. Then, there exist \(f,g,h\in \tilde{{\mathcal {L}}}_{n,q,\sigma }\) with fg invertible and \(\rho \in \textrm{Aut}({\mathbb {F}}_q)\) such that

$$\begin{aligned} {\mathcal {C}}_{n,k,\sigma ,I}=f \circ {\mathcal {C}}_{\sigma ,T}^{\rho } \circ g+h \,\,\text { or }\,\, {\mathcal {C}}_{n,k,\sigma ,I}=f \circ ({\mathcal {C}}_{\sigma ,T}^{t})^{\rho }\circ g+h. \end{aligned}$$

Let \(\mathcal {U,V}\) be the subspaces in \({\mathcal {C}}_{\sigma ,T}\) equivalent to \({\mathcal {G}}_{k-1,\sigma }\) as defined in (14) and (15). If \({\mathcal {C}}_{n,k,\sigma ,I}\) and \({\mathcal {C}}_{\sigma ,T}\) are equivalent, then \(f \circ {\mathcal {U}}^{\rho }\circ g+h\) and \(f \circ {\mathcal {V}}^{\rho } \circ g+h\) are two different subspaces of \({\mathcal {C}}_{n,k,\sigma ,I}\) equivalent to \({\mathcal {G}}_{k-1,\sigma }\). By Theorem 7.3, it follows a contradiction.

Next, suppose that \({\mathcal {C}}_{n,k,\sigma ,I}=f \circ ({\mathcal {C}}_{\sigma ,T}^{t})^{\rho }\circ g +h\). Then \(f \circ ({\mathcal {U}}^{t})^{\rho }\circ g+h\) and \(f \circ ({\mathcal {V}}^{t})^{\rho } \circ g+h\) are two different subspaces of \({\mathcal {C}}_{n,k,\sigma ,I}\) equivalent to \({\mathcal {G}}_{k-1,\sigma }\), see [31, Lemma 1], a contradiction again. \(\square \)

Actually, Theorems 7.1 and 7.4 can be stated in a slightly more general form, where the automorphisms of \(\textrm{Gal}({\mathbb {F}}_{q^n} | {\mathbb {F}}_q)\) defining the two classes of non-linear MRD codes are not necessarily equal. Indeed, let \(\sigma \) and \(\tau \) be generators of the group \(\textrm{Gal}({\mathbb {F}}_{q^n}|{\mathbb {F}}_q)\). Recalling that two generalized Gabidulin codes \({\mathcal {G}}_{k,\sigma }\) and \({\mathcal {G}}_{k,\tau }\) are equivalent if and only if \(\tau \in \{ \sigma , \sigma ^{-1}\}\) (see [23, Theorem 4.4]), we have the following result

Theorem 7.5

Let \(\sigma \) and \(\tau \) be generators of the group \(\textrm{Gal}({\mathbb {F}}_{q^n}|{\mathbb {F}}_q)\). If \(q=2\) or \(T={\mathbb {F}}_q^*\) and \(I \in \{\emptyset ,\{0 \},{\mathbb {F}}_q^*,{\mathbb {F}}_q\}\), then the codes \({\mathcal {C}}_{\sigma ,T}\) and \({\mathcal {C}}_{n,k,\tau ,I}\) are equivalent if and only if \(\tau \in \{\sigma , \sigma ^{-1}\}\). Otherwise, they are neither equivalent nor adjointly equivalent.

Remark 7.6

For linear codes, left and right idealisers are invariants under equivalence [22, Proposition 4.1] and they are subalgebras of \(\tilde{{\mathcal {L}}}_{n,q,\sigma }\) isomorphic to subfields of \({\mathbb {F}}_{q^n}\) in the case of square linear MRD codes, see [18, Theorem 3.1] and [22, Theorem 5.4]. This, as already stated in [22], does not hold for non-linear codes. In the following, we shall show an example of two equivalent codes such that their left idealisers have different size.

Let \({\mathbb {F}}_5\) be the field with five elements and let

$$\begin{aligned} {\mathcal {C}}_1=\biggl \{ \begin{pmatrix} 1 & \quad 2 \\ 3 & \quad 4 \end{pmatrix}, \begin{pmatrix} 3 & \quad 4\\ 3 & \quad 4 \end{pmatrix} \biggr \} \subset {\mathbb {F}}^{2 \times 2}_5. \end{aligned}$$
(16)

Consider the matrix \(H=\begin{pmatrix} 0 & \quad 0 \\ 2 & \quad 1 \end{pmatrix}\) and the code

$$\begin{aligned} {\mathcal {C}}_2={\mathcal {C}}_1+ H=\biggl \{ \begin{pmatrix} 1 & \quad 2 \\ 0 & \quad 0 \end{pmatrix}, \begin{pmatrix} 3 & \quad 1\\ 0 & \quad 0 \end{pmatrix} \biggr \}. \end{aligned}$$
(17)

It is straightforward to see that \( I_L(\mathcal {C}_1)\!= \!\left\{ \! \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, \begin{pmatrix} 0 & 1 \\ 0 & 1 \end{pmatrix} \!\right\} ,\quad I_L({\mathcal {C}}_2)=\left\{ \!\begin{pmatrix} 1 & a \\ 0 & b \end{pmatrix} :a,b \in \mathbb {F}_5 \right\} .\)