Puncturing-inclusion constructions of optimal Ferrers diagram rank-metric codes using semifield codes
Dengming Xu, Chengming Duan, Yong Jin, Yuhao Ning
Abstract
Ferrers diagram rank-metric codes are essential components of the multilevel construction of constant dimension codes for random network coding. This paper aims to construct optimal Ferrers diagram rank-metric codes, focusing on the diagram [3, 3, 3, 5] with rank distance 3. We construct an optimal [[3, 3, 3, 5], 6, 3] q Ferrers diagram rank-metric code for every prime power q, thereby answering an open problem posed by Etzion et al. in 2016 [6]. The construction first builds a [3×4,4,3]q MRD code and then proves that the Delsarte dual of its puncturing on the last column contains a [3×3,3,3]q MRD code, which comes from semifield codes. We further construct optimal Ferrers diagram rank-metric codes for two infinite families of Ferrers diagrams: the first relies on the [[3, 3, 3, 5], 6, 3] q construction and holds for every prime power q, while the second is binary and obtained directly by the puncturing-inclusion construction.
Constant dimension codes are collections of subspaces of a fixed dimension, equipped with the subspace distance. Their role in error correction for random network coding was established by Koetter and Kschischang [8]. A basic connection with matrix codes is as follows: lifting a matrix A to the row space of [I∣A] doubles the rank distance into the subspace distance. This connection makes maximum rank-distance (MRD) codes, originating in the work of Delsarte [5], natural ingredients in constructions of large constant dimension codes.
The multilevel construction of Etzion and Silberstein [7] can be viewed as a generalization of the lifted MRD code construction, in which Ferrers diagram rank-metric codes (FDRMCs) play an essential role; we refer the reader to [7] for the details. For a Ferrers diagram F and a prescribed minimum rank distance d, the Ferrers–Singleton bound gives an upper bound νmin(F,d) on the dimension of a linear code. A code attaining this bound is called optimal. Etzion and Silberstein conjectured that the bound is attainable for every diagram and finite field [7]. Since the conjecture was proposed, the construction of optimal Ferrers diagram rank-metric codes has received considerable attention. The main constructions in the literature are based on systematic MRD codes [2, 6, 9, 10, 14], on MDS codes [6], and combinatorial methods [6, 9], for more results, please see [2] and the references therein.
Recently, Beeloo–Sauerbier Couvée and Neri reduced the attainability problem to irreducible diagrams and propose the puncturing–inclusion MRD conjecture [3]. For integers 1<d<n, this conjecture asks for
1 Corresponding author, Sino-European Institute of Aviation Engineering, Civil Aviation University of China, 300300 Tianjin, PR China. E-mail: xudeng17@163.com.
2 College of Science, Civil Aviation University of China, 300300 Tianjin, PR China. E-mail: 19160306346@163.com
3 College of Science, Civil Aviation University of China, 300300 Tianjin, PR China. E-mail: kingmeng@126.com
4 College of Science, Civil Aviation University of China, 300300 Tianjin, PR China. E-mail: ningyuh00@163.com an [(n−1)×n,n(n−d),d]q MRD code whose puncturing on one column is contained in an [(n−1)×(n−1),(n−1)(n−d+1),d−1]q MRD code. This puncturing-inclusion property builds a bridge between classical MRD codes and optimal Ferrers diagram rank-metric codes: by reducing to irreducible diagrams, it reduces the Etzion–Silberstein conjecture for a special class of Ferrers diagrams to a statement about rectangular MRD codes (see Theorem 7.5 in [3]).
The puncturing–inclusion MRD conjecture is false in general. Recently, Prajapati [11] proved that, over F2, the diagram [4, 4, 4, 4, 6] with minimum rank distance 3 has Ferrers–Singleton bound 12, but maximum linear dimension 11. However, determining which Ferrers diagrams admit optimal Ferrers diagram rank-metric codes remains an interesting problem worthy of further investigation, due to their crucial role in the multilevel construction of constant dimension codes.
The paper aims to study the existence of optimal Ferrers diagram rank-metric codes via the puncturing-inclusion method, we focus on the diagram [3, 3, 3, 5] with rank distance 3. To this end, we first construct a [3×4,4,3]q MRD code C. We translate the construction of this MRD code into the problem of finding a determinant over Fq involving three variables such that the determinant is nonzero whenever these variables are not all zero. This further reduces the problem to finding a ternary polynomial over Fq with no nonzero root. It should be noted that this discussion needs to be carried out separately in the cases of characteristic 2 and characteristic not equal to 2. In odd characteristic, one needs a nonsquare element, whereas in characteristic 2 every element is a square, so the method does not apply directly and requires a separate treatment.
Furthermore, we find a three-dimensional semifield code contained in the Delsarte dual of the puncturing of C on its last column. This problem is then translated into that of finding two bases (over Fq) in a semifield ( Fq3,∘) satisfying the corresponding orthogonality equations. Then, using properties of semifield operations, we further reduce these orthogonality equations to finding a basis (1,x,y) of Fq3 over Fq such that
x∘y−y∘x∈Fq∖{0}.
In this way, we prove that the puncturing–inclusion MRD conjecture holds for (n,d)=(4,3), and hence proving the following theorem (see Theorem 5.1).
Theorem A For every prime power q, there exists an optimal [[3, 3, 3, 5], 6, 3]q Ferrers diagram rank-metric code.
The existence of optimal [3,3,3,5],6,3]q Ferrers diagram rank-metric code was proposed as an open problem in [6]. It has remained unresolved for a long time. Different from the existing constructions based on systematic MRD codes and MDS codes, or the combinatorial methods, we combine the puncturing-inclusion construction with semifield codes. This offers a new perspective for constructing optimal Ferrers diagram rank-metric codes.
As an application of Theorem A, we obtain optimal Ferrers diagram rank-metric codes for an infinite family of diagrams by combination constructions (see Theorem 5.2):
Theorem B Let n≥1 and write n=6t+r, where t≥0 and 0≤r≤5. Define
where the blocks indexed by 1,⋯,t are omitted when t=0, and the last block is omitted when r=0. Then for every prime power q, there exists an optimal [Fn,6,n+3]q Ferrers diagram rank-metric code.
In addition, we construct a binary Ferrers diagram rank-metric code directly by a puncturing-inclusion construction and obtain the following result (see Theorem 5.3):
Theorem C Let m≥3, 1≤t≤m−1 and
Fm,t=[mcolumnsm,m,…,m,m+t].
Then there exists an optimal [Fm,t,m+t+1,m]2 Ferrers diagram rank-metric code.
The paper is organized as follows. Section 2 recalls the necessary definitions and basic results needed in the proof of the main result, including Ferrers diagram rank-metric codes, semifields and semifield codes, and the puncturing-inclusion construction. Sections 3 and 4 prove the main results in odd and even characteristic, respectively. As applications of the main results, explicit examples for q=7,8,9 are also provided. The small-field cases q=2,3,4 are not covered by the general proof; for these, the optimal codes are given explicitly. Section 5 constructs optimal codes for two infinite families of Ferrers diagrams. The final section gives the conclusions of the paper.
2 Preliminaries
Throughout this paper, we fix a prime power q, and set F=Fq, F∗=F∖{0} and K=Fq3. Let σ:K→K, x↦xq be the Frobenius map. We denote the trace map by TrK/F:K→F, which is given by
TrK/F(x)=x+σ(x)+σ2(x)
for all x∈K. Its kernel is denoted by
W=ker(TrK/F)={x∈K∣TrK/F(x)=0}.
The norm map is denoted by NK/F:K∗→F∗, and is defined by
NK/F(x)=x⋅σ(x)⋅σ2(x)=x1+q+q2
for all x∈K∗=K∖{0}.
2.1 Ferrers diagram rank-metric codes
Let q be a prime power. For two matrices A,B∈Mm×n(F), the rank distance between them is defined by
dR(A,B)=rank(A−B).
An (m×n,N,δ)q rank-metric code is a subset C⊆Mm×n(F) of size N with minimum rank distance
δ=A=B∈CmindR(A,B).
By the Singleton-like bound, N≤qmax{m,n}(min{m,n}−δ+1). If equality holds, then C is called a maximum rank-distance (MRD) code. If C is a k-dimensional Fq-linear subspace, it is denoted by [m×n,k,δ]q.
Endow Mm×n(F) with the Frobenius product:
⟨A,B⟩=tr(ABT)=i=1∑mj=1∑nAijBij,
Let C be a subspace of Mm×n(F). Denote
C⊥={B∈Mm×n(F)∣⟨A,B⟩=0forallA∈C},
which is referred to as the Delsarte dual of C.
Proposition 2.1. [5] Let C⊆Mm×n(F) be a linear MRD code with minimum rank distance 2≤d≤min{m,n}. Then C⊥ is again an MRD code. More precisely, if m≤n and C is an [m×n,n(m−d+1),d]q MRD code, then C⊥ is an [m×n,n(d−1),m−d+2]q MRD code.
A Ferrers diagram F of size m×n is an m×n array of dots and blanks such that the number of dots in each row is nonincreasing from top to bottom, all dots are right-justified, the first row has n dots, and the rightmost column has m dots. Also, Ferrers diagram can be described by the sequence of the numbers of dots in its columns. For example, the Ferrers diagram
F=
can be represented by F=[3,3,3,5].
Note that the column heights in this paper are non-decreasing from left to right, whereas the convention in [3] uses a non-increasing column-height order. When applying Theorem 7.5 of [3], we first transpose the diagram, i.e., interchange rows and columns, and then reverse the order of the columns so that it conforms to the convention adopted in this paper.
An [m×n,k,δ]q rank-metric code C is called an [F,k,δ]q Ferrers diagram rank-metric code (FDRMC) if every matrix in C has zero entries outside F. The Ferrers diagram rank-metric code of a full Ferrers diagram is exactly a rank-metric code. For given F and δ, let dim(F,δ) denote the largest possible dimension of an [F,k,δ]q Ferrers diagram rank-metric code. The following Singleton-type bound holds: for 0≤i≤δ−1, let νi be the number of dots in F after deleting the first i rows and the rightmost δ−1−i columns. Then
dim(F,δ)≤0≤i≤δ−1minνi=:νmin(F,δ).
A Ferrers diagram rank-metric code attaining this bound is said to be optimal. It was conjectured by Etzion and Silberstein that this Singleton-like bound is always tight:
Etzion-Silberstein Conjecture [7]: For any given Ferrers diagram F and positive integer δ, there always exists an optimal [F,νmin(F,δ),δ]q Ferrers diagram rank-metric code.
This conjecture has been verified in several cases, see [2, 6, 9, 10, 14]. Recently, this conjecture has been disproved by a counterexample in [11]. However, determining which Ferrers diagrams admit optimal Ferrers diagram rank-metric codes remains an interesting problem worthy of further investigation, due to their crucial role in the multilevel construction of constant dimension codes, please see [13] and the references therein.
For the Ferrers diagram F=[3,3,3,5] with rank distance 3, we have νmin(F,3)=6. The paper aims to prove the existence of an optimal [3,3,3,5],6,3]q Ferrers diagram rank-metric code. This was posed as an open problem in [6], where a binary example was also given. Here we provide a general construction for every prime power q.
2.2 Semifield Codes
This subsection introduces a class of MRD codes induced by semifields. Let F=Fq, and let K/F be a finite field extension. An F-semifield structure on K is an F-bilinear multiplication ∘:K×K⟶K such that: (1) for all x,y∈K, x∘y=0 implies x=0 or y=0; and (2) there exists e∈K∖{0} satisfying e∘x=x∘e=x for every x∈K. Equipped with its usual addition and the multiplication ∘, the structure (K,+,∘) is called an F-semifield.
We introduce the construction of semifields by the classical Kaplansky’s trick. This technique has been systematically discussed in Albert’s twisted field construction and its generalizations; see [1, 12]. The construction in this subsection can be viewed as a special case of Kaplansky’s trick. For the reader’s convenience, we provide detailed proofs.
Proposition 2.2. [1] Let c∈F∗ satisfy c3=−1. Define an operation ⋆ on K:
a⋆b=ab+caqbq2,∀a,b∈K.
Then ⋆ is an F-bilinear map without zero divisors.
Proof. Since the Frobenius maps x↦xq and x↦xq2 are F-linear, the operation ⋆ is F-bilinear. Suppose that a,b∈K∗ and a⋆b=0. Dividing ab+caqbq2=0 by cab, we obtain
Thus c3=−1, contrary to the hypothesis. Therefore, ⋆ has no zero divisors.
Proposition 2.3. [12] Let c∈F∗ satisfy c3=−1, and let the operation ⋆ be as defined in Proposition 2.2. Define the right and left multiplication maps R,L:K→K:
R(a)=a⋆1,L(b)=1⋆b.
Then R, L are both invertible linear maps on K. Furthermore, let e=1+c, and define an operation ∘:
a∘b=e−1(R−1(ea)⋆L−1(eb)),∀a,b∈K.
Then (K,∘) is a semifield.
Proof. Since ⋆ has no zero divisors, R and L are injective F-linear maps on the finite-dimensional space K, hence invertible. Moreover, c3=−1 implies e=1+c=0. These facts ensure that ∘ is well defined and has no zero divisors. Since R−1 and L−1 are both linear maps, and ⋆ is a bilinear map, one can see that ∘ is a bilinear map.
Similarly, one can prove that 1∘a=a. Therefore, 1 is the identity element of (K,∘). In summary, (K,∘) is a semifield.
Remark 2.1. When c=0, both ⋆ and ∘ reduce to ordinary field multiplication on K, so the commutator vanishes and this case does not yield the nonzero commutator required in the construction below.
In general, for arbitrary u,v, computing u∘v can be complicated. For our later purposes, however, we need the commutator u∘v−v∘u, and this simplifies when u and v are trace-zero.
Proposition 2.4. Keep the notation of Proposition 2.3, and set D=c2−c+1. Let u,v∈W. Then we have the following.
(1) R−1(eu)=De((1−c)u−cuq), L−1(ev)=De(v+cvq).
(2) u∘v−v∘u=(c2−c+1)23c(1−c2)(uvq−uqv).
Proof. Set D=c2−c+1. Since c3=−1 and c3+1=(c+1)(c2−c+1), we have D=0.
(1) For w∈W, w+wq+wq2=0. Writing σ(w)=wq, we therefore have on W
σ2+σ+I=0.(2.1)
Note that R=I+cσ, and L=I+cσ2=(1−c)I−cσ holds on W. It follows from (2.1) that
RL=(I+cσ)((1−c)I−cσ)=DI
holds on W. Hence, we have on W that R−1=D1((1−c)I−cσ) and L−1=D1(I+cσ). This proves (1).
(2) Set X=(1−c)u−cuq, Y=v+cvq. By bilinearity, we get u∘v=D2e(X⋆Y). Since
uq2=−u−uq,vq2=−v−vq,
we obtain Xq=cu+uq, Yq2=(c−1)v−vq. Expanding the two terms separately gives
Now interchange u and v. Since the original field multiplication on K is commutative, the coefficients of uv and uqvq are unchanged, while the coefficients of uvq and uqv are exchanged. Hence
Thus Ω(u,v) is fixed by the q-Frobenius and therefore Ω(u,v)∈F. Moreover, if (u,v) is linearly independent over F, then it follows from (1) that Ω(u,v)∈F∗.
At the end of this subsection, we give the definition of a semifield code in general.
Lemma 2.6. [4] Let (K, ○) be an F-semifield, and set n=[K:F]. Take two ordered F-bases of K :
p=(p1,⋯,pn),q=(q1,⋯,qn),
For z∈K, define
Bz=(TrK/F(z(pi∘qj)))1≤i,j≤n.
Then S={Bz∣z∈K} is an [n×n,n,n]q MRD code, called a semifield code.
2.3 Puncturing-inclusion constructions
The puncturing–inclusion construction was introduced by Beeloo–Sauerbier Couvée and Neri in [3] to study the Etzion–Silberstein conjecture. The main idea is to perform puncturing (deleting a row) and inclusion (embedding into a larger MRD code) on rectangular MRD codes, thereby constructing Ferrers diagram rank metric codes.
Theorem 2.7. [3, Theorem 7.5] Let n,d∈N with 1<d<n and
F=[n−1n−1,n−1,⋯,n−1,n+d−2].
Then the following are equivalent.
(1) There exists an optimal [F,νmin(F,d),d]q Ferrers diagram rank-metric code.
(2) [Puncturing–inclusion MRD condition] There exists an [(n−1)×n,n(n−d),d]q MRD code C such that its puncturing on the last column is contained in an [(n−1)×(n−1),(n−1)(n−d+1),d−1]q MRD code.
The paper aims to prove the puncturing–inclusion MRD condition for (n,d)=(4,3), the following proposition serves as the starting point of our study.
Proposition 2.8. Let L be a subspace of M3(F) with dimFL=4. Suppose that there exists an F-linear map w:L→F3 such that
K={[B∣w(B)]∣B∈L}
is a [3×4,4,3]q MRD code. If there exists a [3×3,3,3]q MRD code S⊆L⊥, then there exists an optimal [[3,3,3,5],6,3]q Ferrers diagram rank-metric code.
Proof. Suppose that there exists a [3×3,3,3]q MRD code S⊆L⊥, then L⊆S⊥. By Proposition 2.1, S⊥ is a [3×3,6,2]q MRD code. Thus the puncturing–inclusion MRD condition holds for (n,d)=(4,3). By Theorem 2.7, there exists an optimal [[3,3,3,5],6,3]q Ferrers diagram rank-metric code.
Remark 2.2. We describe how to obtain an optimal Ferrers diagram rank-metric code from the MRD code S in Proposition 2.8. This process is precisely the puncturing–inclusion construction introduced in [3]. Let {Bi∣1≤i≤6} be a basis of S⊥ such that {B1,B2,B3,B4} is a basis of L. Define
is the desired optimal Ferrers diagram rank-metric code, where
Γ(B,a,b)=B+aB5+bB6O1×3O1×3w(B)ab
In the sequel, we will construct optimal [3,3,3,5], 6,3]q Ferrers diagram rank-metric codes based on Proposition 2.8. Specifically, we will first construct a [3×4,4,3]q MRD code, and then prove that the Delsarte dual of its puncturing on the last column contains a [3×3,3,3]q MRD code, and this contained three-dimensional MRD code is chosen from semifield codes.
3 Proof of the main results when q is odd
In this section, we prove that there exists an optimal [[3,3,3,5],6,3]q Ferrers diagram rank-metric code for q odd. We begin our proof with the construction of MRD codes of full row rank. Throughout this section, q is assumed to be odd.
3.1 Construction of full row rank MRDs
Let M:Fm+1→Mm×(m+1)(F) be an F-linear map, and write X=(x1,x2,…,xm+1)⊤. For u=(a1,…,am)∈Fm, the bilinear map (u,X)⟼uM(X) uniquely determines an (m+1)×(m+1) matrix HM(u) such that
uM(X)=(HM(u)X)T.(3.2)
Proposition 3.1. Assume that M is injective. If HM(u) is invertible for all nonzero vectors u∈Fm, then
C={M(X)∣X∈Fm+1}
is an [m×(m+1),m+1,m]q MRD code.
Proof. Let u∈Fm be a nonzero vector. Suppose that uM(X)=0. Then (3.2) gives HM(u)X=0. By assumption, HM(u) is invertible. It follows that X=0. Since M is injective, we get M(X)=0. Consequently, each nonzero matrix M(X) is of full row rank, namely, rank M(X)=m. This proves that C is an [m×(m+1),m+1,m]q MRD code.
According to Proposition 3.1, one can construct a [3×4,4,3]q MRD code by finding a determinant in three variables that is invertible for every nonzero choice of the variables. A natural approach is to exploit special properties of field elements, such as nonsquare elements or trace-zero elements. Therefore, as long as we find a polynomial in three variables with no nonzero zero over F and construct the corresponding determinant, we can obtain an MRD code satisfying the required conditions. One candidate polynomial is
f(x,y,z)=Δ3x4−[z2+Δ(tx2−y2)]2,
where t∈F and Δ is a nonsquare element. In fact, suppose that f(a,b,c)=0 for a,b,c∈F. If a=0, then
Δ=(Δa2c2+Δ(ta2−b2))2,
which contradicts the fact that Δ is nonsquare. It follows that a=0 and thus c2=Δb2. Now the nonsquare property of Δ forces b=c=0. Consequently, for every nonzero (a,b,c), f(a,b,c)=0.
Based on the polynomial f(x,y,z), we present the corresponding determinant:
Since for every nonzero (a,b,c), f(a,b,c)=0, we get that HΔ,t(a,b,c) is invertible. As a direct consequence of Proposition 3.1, we get the following theorem.
Theorem 3.2. Let Δ∈F be a nonsquare element and t∈F. For (R,S,C,E)∈F4, set
MΔ,t(R,S,C,E)=RCEtC+ΔERS−ΔC−tΔEΔSRΔS−ΔE−C.
Then
KΔ,t={MΔ,t(R,S,C,E)∣R,S,C,E∈F}
is a [3×4,4,3]q MRD code.
3.2 The Orthogonality Conditions
To perform the puncturing-inclusion construction, we write MΔ,t=[AΔ,t∣w], where
AΔ,t=RCEtC+ΔERS−ΔC−tΔEΔSR,w=ΔS−ΔE−C.
Set LΔ,t={AΔ,t∣R,S,C,E∈F}. Based on Proposition 2.8, we proceed to prove that LΔ,t⊥ contains a [3×3,3,3]q MRD code and we find such a code among semifield codes over K.
Consider the cubic extension K/F and let (K,∘) be a semifield. Let p=(p1,p2,p3) and q=(q1,q2,q3) be two bases of K over F. Set
Bz=(TrK/F(z(pi∘qj)))i,j,S={Bz:z∈K}.
It follows from Lemma 2.6 that S is a [3×3,3,3]q MRD code. Write
Pij=pi∘qj.
From (3.2) and the definition of Bz, pairing term by term gives
Since R,S,C,E range freely over F and z ranges freely over K, by the nondegeneracy of the trace pairing, we get that S⊆LΔ,t⊥ if and only if the four coefficients vanish in K, that is,
Set p=(1,x,y), q1=1, δ=Δ−t2. Since Δ is nonsquare element, we have δ=0 and (3.5)–(3.6) uniquely determine
q2=δtx−y,q3=ΔδΔx−ty.(3.7)
After substituting back, (3.3)–(3.4) are equivalent to
x∘y−y∘x=Δ,(3.8)y∘y−Δ(x∘x)=−tΔ.(3.9)
Proposition 3.3. Let (K,∘) be an F-semifield and fix a nonsquare Δ∈F. If there exists a basis (1,u,v) of K over F such that
u∘v−v∘u∈F∗,
then there exist t∈F and a semifield code S such that S⊆LΔ,t⊥.
Proof. Based on the above statements, it suffices to show that there exists a basis (1,x,y) of K over F satisfying (3.8) and (3.9). Let (1,u,v) be a basis of K over F such that
u∘v−v∘u=λ∈F∗.
Set v0=λΔv. By the bilinearity of ∘, we get that u∘v0−v0∘u=Δ. Set x=u+a, y=v0+b, we seek a,b∈F such that
y∘y−Δ(x∘x)=−tΔ.
Since 1 is a two-sided identity and a,b∈F, we have
Set a=2Δs2, b=−2s3, t=−Δs1+b2−Δa2. Then we get that
y∘y−Δ(x∘x)=−tΔ.
By the bilinearity of ∘, one can check that
x∘y−y∘x=Δ.
Finally, since (1,u,v) is an F-basis of K, one can check that (1,x,y) is also an F-basis of K. Moreover, the linear transformation from (x,y) to (q2,q3) in (3.7) has determinant 1/(Δδ)=0. Hence (1,q2,q3) is an F-basis of K as required. This completes the proof of the proposition.
Remark 3.1. By Proposition 3.3, to construct a semifield code S such that S⊆LΔ,t⊥, the key point is to choose a suitable basis (1,u,v) of K over F satisfying u∘v−v∘u∈F∗.
3.3 Proof of the main result for char(F)∈/{2,3}
In this subsection, we suppose that char(F) is odd and char(F)=3. Then there exists c∈F∗∖{1,−1} such that c3=−1. Since char(F)=3, we get TrK/F(1)=3=0. It follows that K=F⊕W. Recall that W=ker(TrK/F). Let (u,v) be an F-basis of W. Then (1,u,v) is an F-basis of K. It follows from Proposition 2.4 and Lemma 2.5 that
u∘v−v∘u=(c2−c+1)23c(1−c2)(uvq−uqv)∈F∗.
Then we get from Proposition 3.3 that there exists a semifield code S such that S⊆LΔ,t⊥. Finally, it follows from Proposition 2.8 that there exists an optimal [[3,3,3,5],6,3]q Ferrers diagram rank-metric code. Consequently, we have proved the following theorem.
Theorem 3.4. Suppose that q is odd and charFq=3. Then there exists an optimal
[[3,3,3,5],6,3]q
Ferrers diagram rank-metric code.
We now illustrate Theorem 3.4 with an example.
Example 3.1 (An explicit code over F7). Let F=F7 and K=F(β), where β3+2=0. The displayed cubic has no root in F, so it is irreducible. Choose
c=2,u=β,ν=β2,λ=u∘ν−ν∘u=6.
Both u and v have trace zero, and (1,u,v) is an F-basis of K. Take the nonsquare Δ=3. The normalization gives
A SageMath computation shows that the rank distribution of C7 is
(A0,A1,A2,A3,A4)=(1,0,0,21552,96096),
where Ar=#{M∈C7:rank M=r}.
3.4 Proof of the main result for char(F)=3
In this subsection, assume q=3m with m≥2, so char(K)=3. In this case, TrK/F(1)=3=0, so 1∈W. Since dimFW=2, if u,v∈W, then 1,u,v all lie in the same two-dimensional subspace and cannot form a basis of K/F. Consequently, the strategy employed in the case char(F)=3 is no longer applicable.
Choose c∈F∗∖{1,−1} such that c3=−1, which allows us to define a semifield (K,∘) as in Proposition 2.3. Set e=1+c, r=ec. To find an F-basis (1,u,v) of K such that u∘v−v∘u=λ∈F∗, let I be the identity map on K. Since σ3=I, we have (σ−I)3=0 and (σ−I)2=0. In characteristic 3, (σ−I)2=I+σ+σ2=TrK/F. The trace map is surjective, so choose v∈K such that (σ−I)2(v)=1, and set u=(σ−I)(v). To verify linear independence, apply (σ−I)2 and then σ−I to a relation a+bu+dv=0 with a,b,d∈F: this gives d=b=a=0. Thus (1,u,v) is an F-basis of K, and we have
Substituting (3.13) into u∘v=e−1(R−1(eu)⋆L−1(ev)) and simplifying, we obtain
u∘v−v∘u=κ:=(1+c)3c(1−c)∈F.
Since c∈F∗∖{1,−1}, we have u∘v−v∘u∈F∗.
Now we get from Proposition 3.3 that there exists a semifield code S such that S⊆LΔ,t⊥. Finally, it follows from Proposition 2.8 that there exists an optimal [[3,3,3,5],6,3]3m Ferrers diagram rank-metric code. Consequently, we have proved the following theorem.
Theorem 3.5. For every m≥2, there exists an optimal
[[3,3,3,5],6,3]3m
Ferrers diagram rank-metric code.
We now illustrate Theorem 3.5 with an example.
Example 3.2 (An explicit code over F9). Let F=F3(α) with α2+1=0, and let K=F(β) with β3+β+α=0. The displayed cubic has no root in F, so it is irreducible. Choose
c=α,u=αβ,v=αβ+β2,λ=u∘v−v∘u=α.
Here u9−u=1 and v=u−u2 satisfies v9−v=u. Thus (1,u,v) forms an F-basis of K, as required in characteristic 3. Take the nonsquare Δ=α+1. Following the procedure in Example 3.1, we obtain two desired bases:
A SageMath computation shows that the rank distribution of C9 is
(A0,A1,A2,A3,A4)=(1,0,0,72080,459360),
Remark 3.2. The proof strategy of Theorem 3.5 is not applicable to q=3, since F3={0,1,−1}, whereas the theorem requires some c∈F∗∖{1,−1}. For this case, we find an optimal [[3, 3, 3, 5], 6, 3]3 Ferrers diagram rank-metric code C3 by computer search, which is listed as follows:
In this section, we prove that there exists an optimal [[3,3,3,5],6,3]q Ferrers diagram rank-metric code when q is even. While the construction of [3×4,4,3]q MRD codes in Theorem 3.2 works for odd q, it may fail to produce MRD codes in characteristic 2, as every element is a square in this case. Therefore, we need to find an alternative approach.
Throughout this section, q is assumed to be even.
4.1 Construction of full row rank MRDs
Starting from the MRD codes obtained for odd q in Theorem 3.2, we try several modifications of the parameters in the construction and eventually obtain a new [3×4,4,3]q MRD code for even q.
Theorem 4.1. Let t∈F and n∈F such that TrF/F2(n)=1. For (R,S,C,E)∈F4, set
Then the matrix space K~n,t={M~n,t(R,S,C,E)∣R,S,C,E∈F} is a [3×4,4,3]q MRD code.
Proof. Obviously, dimK~n,t=4. Let E=F(ρ), where ρ2+ρ+n=0. Since TrF/F2(n)=1, we get that ρ∈/F. Then X2+X+n is irreducible over F. Let (a,b,d)∈F3 such that (a,b,d)M~n,t(R,S,C,E)=0. Then we get the linear system
Now suppose that detH(a,b,d)=0. Then U+a2n(t+ρ)=0. Since ρ∈/F, we get a=U=0. It follows that d+bρ=0, which implies that b=d=0. Consequently, if (a,b,d)=(0,0,0), then detH(a,b,d)=0, which implies R=S=C=E=0. It follows that each nonzero codeword in K~n,t has full row rank. Consequently, K~n,t is a [3×4,4,3]q MRD code.
4.2 The Orthogonality Conditions
To perform the puncturing-inclusion construction, we write M~n,t=[A~n,t∣w~], where
Let δ=t2+t+n. Irreducibility of X2+X+n gives δ=0. Equations 4.16 and 4.17 have the unique solution
q2=nδntx+(t+n)y,q3=nδnx+ty.(4.18)
The coefficient matrix of (x,y)↦(q2,q3) has determinant 1/(nδ)=0. Consequently, whenever (1,x,y) is an F-basis of K, so is (1,q2,q3). Substitute 4.18 into (4.14) and (4.15). Using the bilinearity of ∘, we obtain
nδ+nt(x∘x)+(t+n)(x∘y)+n(y∘x)+t(y∘y)=0,
(4.19) and
n(x∘x)+t(x∘y)+(t+1)(y∘x)+y∘y=0.(4.20)
Multiplying (4.20) by t and adding it to (4.19), using char F = 2, we obtain
nδ+δ(x∘y)+δ(y∘x)=0.
Since δ=0, we get
x∘y+y∘x=n.(4.21)
Substituting (4.21) into (4.20), we obtain
y∘y+n(x∘x)+y∘x=tn.(4.22)
Consequently, we have proved the following result.
Proposition 4.2. Let (K,∘) be a semifield, t∈F and n∈F such that TrF/F2(n)=1. If there exists a basis (1,x,y) of K over F such that
x∘y+y∘x=nandy∘y+n(x∘x)+y∘x=tn,
then there exists a semifield code S such that S⊆L~n,t⊥.
4.3 Proof of the main result for char(F)=2
Write q=2m with m≥3, choose n∈F with TrF/F2(n)=1, and take c∈F∗ satisfying c3=1. Such a c exists since q−1>3, so we can define a semifield (K,∘) as in Proposition 2.3. In characteristic 2, TrK/F(1)=1, so K=F⊕W, where W=kerTrK/F. Let (u,v) be an F-basis of W. Then (1,u,v) is an F-basis of K. It follows from Proposition 2.4 and Lemma 2.5 that
Set η=(c2+c+1)2c(1+c2)(uvq−uqv), and v0=ηnv. Then u∘v0−v0∘u=n. Uniquely write
v0∘v0+n(u∘u)+v0∘u=z0+z1u+z2v0,zi∈F.
Let x=u+z2, y=v0+z1. One can check that x∘y+y∘x=n and
y∘y+n(x∘x)+y∘x=z0+z12+nz22+z1z2∈F.
Setting t=nz0+z12+nz22+z1z2 yields y∘y+n(x∘x)+y∘x=tn. It follows from Proposition 4.2 that there exists a [3×3,3,3]q MRD code S⊆L~n,t⊥. By Proposition 2.8, there exists an optimal [[3,3,3,5],6,3]q Ferrers diagram rank-metric code.
Consequently, we have proved the following theorem.
Theorem 4.3. For every m≥3, there exists an optimal
[[3,3,3,5],6,3]2m
Ferrers diagram rank-metric code.
We now illustrate Theorem 4.3 with an example.
Example 4.1 (An explicit code over F8). Let F=F2(α) with α3+α+1=0, and let K=F(β) with β3+β+α=0. The displayed cubic has no root in F, so it is irreducible. Choose
c=α,u=β,ν=β2.
Both u and v have trace zero, and (1,u,v) is an F-basis of K. Take n=1, for which TrF/F2(n)=1. Following the proof of Theorem 4.3, we obtain two desired bases:
p=(1,α4+β,α4+α2β2),q=(1,α+α3β+αβ2,α3+α4β+α5β2)
The resulting code is C8={N8(R,S,C,E,a,b)∣R,S,C,E,a,b∈F}, where
A SageMath computation shows that the rank distribution of C8 is
(A0,A1,A2,A3,A4)=(1,0,0,40887,221256),
Remark 4.1. The proof of Theorem 4.3 requires the existence of some c∈F∗ such that c3=1. This condition fails for q=2,4, so the proof strategy used there is not applicable to these two cases. For q=2,4, we find optimal [[3,3,3,5],6,3]q Ferrers diagram rank-metric codes by computer search, which are listed as follows.
(1) The code
C2={M2(a,b,c,d,e,f)∣a,b,c,d,e,f∈F2}
is an optimal [[3,3,3,5],6,3]2 Ferrers diagram rank-metric code, where
By the coprimality obstruction in [2, Corollary 4.2], an optimal code on F0 cannot be realized as an Fq-subspace of an Fq5-linear [5×4,10,3]q MRD code under coordinate expansion. This excludes the systematic construction based on such an extension-field-linear MRD code.
(2) Monotone diagrams and diagonal MDS constructions. In the square convention of [10], pad the diagram with an empty column to obtain D=[0,3,3,3,5]. Its repeated positive heights below 5 violate the monotonicity condition in [10, Definition 2.14]. Its adjoint DT=[1,1,4,4,4] is likewise not monotone. Moreover, the diagonal lengths in Definition 2.12 of that reference are (3,4,3,2,1), so the diagonal MDS construction yields dimension
i=1∑5max{0,∣D∩Δi5∣−3+1}=1+2+1=4<6.
Thus (D,3) is not MDS-constructible, and these existence results do not yield an optimal code here.
(3) The standard equal-dimension combination construction. The obstruction in [9, Lemma 2.13] applies to the combination construction in Theorem 2.12 of that reference, which restates [6, Theorem 9]. With the zero-based heights (γ0,γ1,γ2,γ3)=(3,3,3,5), we have
2≤i≤3max(γi−γi−1)=2<ν0=6=νmin(F0,3).
Hence this particular combination construction cannot produce an optimal code of dimension 6 on F0.
As an application of Theorem 5.1, we give a construction of optimal Ferrers diagram rank-metric codes for an infinite family of diagrams by the combination construction given in [6].
Theorem 5.2. Let n≥1 and write n=6t+r, where t≥0 and 0≤r≤5. Define
where the blocks indexed by 1,⋯,t are omitted when t=0, and the last block is omitted when r=0. Then for every prime power q, there exists an optimal [Fn,6,n+3]q Ferrers diagram rank-metric code.
Proof. A direct count gives ν0=ν1=ν2=6 and νi>6 for 3≤i≤n+2, so νmin(Fn,n+3)=6. Let C0 be the six-dimensional seed code in Theorem 5.1, and let U be a [6×6,6,6]q MRD code. If 1≤r≤5, let Vr be a [6×r,6,r]q MRD code. Such codes are obtained from multiplication in Fq6, using all six coordinate columns for U and the first r columns for Vr. Choose Fq-linear isomorphisms
Obviously, the support of Bn(v) is contained in Fn. Since its seed block is Φ0(v), the encoding map is injective; hence the code C={Bn(v):v∈Fq6} has dimension 6. Every nonzero codeword satisfies
rankBn(v)=rankΦ0(v)+6t+r≥3+6t+r=n+3.
Since Φ0 is onto and the seed code has minimum rank distance 3, equality occurs. Therefore C is an optimal [Fn,6,n+3]q Ferrers diagram rank-metric code.
5.2 A binary construction of optimal Ferrers diagram rank-metric codes
In this subsection, we construct optimal Ferrers diagram rank-metric codes for an infinite family of diagrams over F2 directly by the puncturing-inclusion construction. This construction is independent of the proof of Theorem 5.1.
Theorem 5.3. Let m≥3, 1≤t≤m−1 and
Fm,t=[mcolumnsm,m,…,m,m+t].
Then there exists an optimal [Fm,t,m+t+1,m]2 Ferrers diagram rank-metric code.
Proof. Fix an ordered F2-basis B=(e0,e1,⋯,em−1) of F2m with e0=1, write [x]B for the coordinate column of x∈F2m. Choose λ∈F2m such that TrF2m/F2(λ)=1. Let Vt=spanF2{e0,e1,⋯,et}. For a∈Vt and b∈F2m, write uniquely
We claim that Cm,t is an [Fm,t,m+t+1,m]2 Ferrers diagram rank-metric code. By construction, Cm,t is supported on Fm,t and the map f:(a,b)↦Ct(a,b) is F2-linear.
The dimension: Let a∈Vt, b∈F2m. If Ct(a,b)=0, then Ta,b is identically zero. Substituting x=1 gives a=b. Since m≥3, there exists x∈F2m∖F2 such that
0=ax+bx2=b(x+x2).
As x∈/{0,1}, we have x+x2=0, so b=a=0. Thus f is injective and therefore
dimF2Cm,t=dimF2Vt+dimF2F2m=m+t+1.
The distance: For (a,b)=(0,0), if b=0 then Ta,0 is invertible. If b=0, the factorization Ta,b(x)=x(a+bx) shows that its kernel is contained in {0,a/b}, and hence has F2-dimension at most one. Consequently
rankM(a,b)≥m−1.(5.23)
If h(a)=0, the bottom part of the last column is nonzero, whereas the bottom parts of the first m columns are zero. The last column is therefore independent of the first m columns, and (5.23) gives
rankCt(a,b)=rankM(a,b)+1≥m.
If h(a)=0, then a=a0∈F2. It suffices to show that x↦(Ta,b(x),rb(x)) is injective, since the top rectangular block is the transpose of its matrix:
[M(a,b)T∣ρbT]=(M(a,b)ρb)T.
When a=0, b=0, the map T0,b(x)=bx2 is invertible; when a=1, b=0, the map T1,0(x)=x is invertible. In the remaining case a=1, b=0, we have
Thus kerT1,b∩kerrb={0}. It follows that every nonzero codeword with zero bottom block has rank m. Consequently, dR(Cm,t)=m.
Attainment of the dimension bound. For the Ferrers diagram Fm,t with rank-metric distance m, one can check that νm−1=m+t+1, ν0=2m and νj≥m+t+1 for 1≤j≤m−2. Since m>t, we have νmin(Fm,t,m)=m+t+1. Consequently, Cm,t is an optimal [Fm,t,m+t+1,m]2 Ferrers diagram rank-metric code.
6 Conclusions and discussions
In this paper, we have constructed an optimal [3,3,3,5], 6,3]q Ferrers diagram rank-metric code for every prime power q, which answers an open problem posed by Etzion et al. [6]. We have also extended this result in two directions. First, we have constructed optimal Ferrers diagram rank-metric codes for an infinite family of Ferrers diagrams, obtained by a block combination construction based on the [3,3,3,5], 6,3]q seed. Second, independently of the preceding approach, we have directly constructed optimal binary Ferrers diagram rank-metric codes for another infinite family of diagrams, using the puncturing-inclusion construction. The first family extends the [3,3,3,5] seed, while the second gives an independent binary construction.
It was proved in [11] that the Ferrers diagram [4, 4, 4, 4, 6] does not admit an optimal linear rank-metric code over F2 at rank distance 3. This prevents an unconditional extension to all finite fields for the entire family [n−1,…,n−1,n+1]; existence for other fields and parameters must be studied separately. Nevertheless, our method may be a promising approach to determining which diagrams of this type admit optimal Ferrers diagram rank-metric codes, and due to their crucial role in the multilevel construction of constant dimension codes, this remains an interesting and worthwhile problem.
We end with two open problems.
Problem 1. Can the construction of the optimal binary Ferrers diagram rank-metric codes, obtained directly by the puncturing-inclusion construction, be extended to general finite fields Fq? More generally, for which prime powers q does an optimal code for the corresponding infinite family of diagrams exist?
Problem 2. How can the construction for the diagram [3, 3, 3, 5] be extended to other irreducible Ferrers diagrams? In particular, which irreducible diagrams admit optimal Ferrers diagram rank-metric codes, and can the Delsarte dual and puncturing-inclusion techniques developed here be adapted to them?
Acknowledgements The authors would like to thank Wei Hu for useful discussions. Dengming Xu is supported by the Natural Science Foundation of Tianjin (Grant No.23JCQNJC00050).
References
[1] A. A. Albert, Generalized twisted fields, Pacific J. Math. 11 (1961), 1–8.
[2] J. Antrobus and H. Gluesing-Luerssen, Maximal Ferrers diagram codes: constructions and genericity considerations, IEEE Trans. Inform. Theory 65 (2019), 6204–6223.
[3] H. Beeloo–Sauerbier Couvée and A. Neri, Irreducible Ferrers diagrams in the Etzion–Silberstein conjecture, arXiv:2604.27868, (2026).
[4] J. de la Cruz, M. Kiermaier, A. Wassermann, and W. Willems, Algebraic structures of MRD codes, Adv. Math. Commun. 10 (2016), 499–510.
[5] P. Delsarte, Bilinear forms over a finite field, with applications to coding theory, J. Combin. Theory Ser. A 25 (1978), 226–241.
[6] T. Etzion, E. Gorla, A. Ravagnani, and A. Wachter-Zeh, Optimal Ferrers diagram rank-metric codes, IEEE Trans. Inform. Theory 62 (2016), 1616–1630.
[7] T. Etzion and N. Silberstein, Error-correcting codes in projective spaces via rank-metric codes and Ferrers diagrams, IEEE Trans. Inform. Theory 55 (2009), 2909–2919.
[8] R. Koetter and F. R. Kschischang, Coding for errors and erasures in random network coding, IEEE Trans. Inform. Theory 54 (2008), 3579–3591.
[9] S. Liu, Y. Chang, and T. Feng, Constructions for optimal Ferrers diagram rank-metric codes, IEEE Trans. Inform. Theory 65 (2019), 4115–4130.
[10] A. Neri and M. Stanojkovski, A proof of the Etzion–Silberstein conjecture for monotone and MDS-constructible Ferrers diagrams, J. Combin. Theory Ser. A 208 (2024), 105937.
[11] J. Prajapati, A counterexample to the Etzion–Silberstein conjecture, arXiv:2608.08478v1, (2026).
[12] S. Pumplün, Albert’s twisted field construction using division algebras with a multiplicative norm, J. Algebra Appl. 24, (2025), 2550253.
[13] D. Xu and M. Li, Multilevel constructions of constant dimension codes based on one-factorization of complete graphs, Cryptogr. Commun. 18 (2026), 2409–2428.
[14] T. Zhang and G. Ge, Constructions of optimal Ferrers diagram rank-metric codes, Des. Codes Cryptogr. 87 (2019), 107–121.