1 Introduction

The core ingredient of the definition of a Frobenius algebra A finitely generated as a module over its commutative ground ring K, as it appears in the literature, is the requirement that there exist a non degenerate associative K-bilinear form on A; this requirement mimics accurately the definition of a Frobenius algebra over a field. However, that definition also includes the somewhat technical requirement that A be projective as a K-module. At first, since all modules over a field are indeed free and hence projective, the extra condition appears innocuous. Furthermore, the extra condition apparently served the purpose of affording the result, mentioned without a detailed proof in [9, p. 434], that every Frobenius algebra over a Frobenius commutative ring is a Frobenius ring. Unfortunately, not every finite Frobenius ring is projective over its characteristic subring.

In this paper we remove the projectivity technical requirement from the usual definition of a Frobenius algebra over a commutative ring and propose that said expression be used instead for a properly modified notion. We show that thus extending the definition affords us a very natural result, namely, that a finite ring A of characteristic n is Frobenius if and only if it is a (not necessarily projective) Frobenius algebra over its characteristic ring \(\mathbb {Z}_n\). We, therefore, adopt the expression non projective Frobenius algebra over a ring when all else is satisfied but possibly not the projectivity requirement. Notice that, as is a common practice in mathematics, our expression “non projective”, is a less pedantic option to express “not necessarily projective”.

An additional benefit from our approach is that we may adapt, without using the projectivity of A over K, the arguments in the usual proof that Frobenius algebras over a field are Frobenius as rings to the case of non projective Frobenius algebras over a ring (Theorem 1). This result is interesting in its own right and has potential to open many doors in the realm of applications. Note that one may also derive Theorem 1 from the recent analysis of the Frobenius property for Artin algebras in [7]. However, while more general, this approach is significantly more technical and we felt that there is value in sharing our proof here in hopes that it would be more accessible for a larger group of interested readers.

One of the motivations behind this extension of the expression non projective Frobenius algebra over a ring arises because of applications of this notion in the algebraic theory of error-correcting codes. Finite Frobenius rings are extensively used as alphabets for ring-linear block codes; Frobenius algebras over a finite field are an important example of Frobenius rings. In contrast, a well known characterization of Frobenius rings [12] may be rephrased by asserting that a finite ring is Frobenius if and only if there exists a non degenerate associative bilinear form over its characteristic subring.

The fundamental problem in the theory of linear codes is the analysis and classification of linear codes over an alphabet, usually a finite field F. Since there is a tremendous number of subspaces for the vector space \(F^n\) the task at hand is quite monumental. A common frequently successful practice has been to filter the codes considered in the following manner: add an F-algebra structure on the vector space \(F^n\) (let us refer to \(F^n\), equipped with the additional structure, as \(A_n\) to remind us of the fact that it is now an algebra of dimension n) and consider, say, only those subspaces which are (left, right, two-sided) ideals of \(A_n\). We refer to the additional algebraic structure on \(F^n\) as the ambient (or the ambient space) of the codes targeted and to the criterion applied to choose the codes we wish to consider as the filter being applied.

As the interest in studying codes in ambients endowed with additional algebraic structure expanded from considering field alphabets to ring alphabets, Frobenius rings have tended to become central to the conversation. The reason for this preference goes back to papers that show that the fundamental structural properties of codes over fields extend to codes that have Frobenius rings as their alphabets. In fact, there is plenty of evidence to show that Frobenius rings are precisely the extent to which this type of considerations can be extended if one wishes to acquire the desired structural properties. For the properties to hold, the alphabet must be Frobenius.

In this paper, we investigate an alternative role that Frobenius rings appear to play very naturally in this context. It seems to be the case that coding-theoretic structural properties are attained, regardless of the structure of the alphabet, when the ambient is a non projective Frobenius algebra over a commutative ring possibly other than the alphabet. For example, it may be that the ambient is a non projective Frobenius algebra over its characteristic subring.

We illustrate our ideas by taking advantage of the fact that every finite Frobenius ring of characteristic n can be seen as a non projective Frobenius \(\mathbb {Z}_n\)-algebra. Our examples include constructing a family of non projective Frobenius algebras based on factor algebras of skew polynomial algebras and using them as the ambient algebra for a wide class of analogues to skew cyclic block codes.

This note is organized as follows. Section 2 provides, with the generality needed here, the statements and proofs of preliminary results on balanced (also called associative) bilinear forms over bimodules; we only include proofs that we deemed illustrative. Section 3 provides our proposed definition of a non projective Frobenius algebra over a commutative ring and various equivalent characterizations; as mentioned above, projectivity of the algebra over the base ring is not required. One of these equivalent conditions is the existence of a Frobenius functional, which will be seen to generalize the generating character and play a similar role to it. In Sect. 4, we extend results from [11] on annihilators associated to a non degenerate bilinear form from a finite Frobenius ring to a non projective Frobenius algebra. Section 5 contains our observation that, given an algebra R over a Frobenius commutative ring K such that R is finitely generated as a K-module, then R is a non projective Frobenius algebra over K if and only if R is a Frobenius ring. This, in particular, applies to finite rings, viewed as algebras over their characteristic subrings. We also include a method, based on skew polynomials, to construct new Frobenius algebras from a given one. From the point of view of codes, this gives a way to construct new finite Frobenius rings from old ones; this is further discussed in Sect. 6. That section also contains a discussion of how the general results on bilinear forms defined on modules over non projective Frobenius algebras, developed in the previous sections, may be applied to get the main results of [11]. We close that section with a discussion of those bilinear forms for which a version of MacWilliams identities stated in [11] holds.

2 Preliminaries on bilinear forms and annihilators

All rings we consider will be unital and possibly non commutative. Let AB be rings and M an \(A-B\)-bimodule. We will simply say that \({}_AM_B\) is a bimodule. We also use the notation \({}_AM\) to declare that M is a left A-module, and \(M_B\) for right B-modules. Systematic introductions to the theory of modules over non commutative rings are [8], or [1]. Everything in this section follows from [1, §30]. For convenience, however, we state the results here in the form they are needed, and provide their proofs in this more limited scope to keep the paper self-contained. Given a second bimodule \({}_BN_{A}\), the abelian group \(N^* = \hom _A(N,A)\) of all homomorphisms of right A-modules is endowed with the structure of a bimodule \({}_AN^*_{B}\) by the rule

$$\begin{aligned} (afb)(n) = af(bn), \quad a \in A, b \in B, f \in N^*, n \in N. \end{aligned}$$

A straightforward argument shows that the formula

$$\begin{aligned} \left\langle m,n \right\rangle _{} = \alpha (m)(n), \quad m \in M, n \in N \end{aligned}$$

provides a bijective correspondence between A-bilinear maps

$$\begin{aligned} \left\langle -,- \right\rangle _{}: M \times N \rightarrow A \end{aligned}$$

and homomorphisms of left A-modules

$$\begin{aligned} \alpha : M \rightarrow N^*. \end{aligned}$$

Moreover, \(\left\langle -,- \right\rangle _{}\) is associative (or balanced), in the sense that \(\left\langle mb,n \right\rangle _{} = \left\langle m,bn \right\rangle _{}\) for all \(m \in M, n\in N, b \in B\), if and only if the corresponding \(\alpha : M \rightarrow N^*\) is a homomorphism of right B-modules.

Analogously, the additive group \({}^*M = \hom _A(M,A)\) of all homomorphisms of left A-modules is a \(B-A\)-bimodule via the rule

$$\begin{aligned} (bfa)(m) = f(mb)a, \quad b \in B, a \in A, f \in {}^*M. \end{aligned}$$

The assignment

$$\begin{aligned} \left\langle m,n \right\rangle _{} = \beta (n)(m), \quad m \in M, n \in N \end{aligned}$$

gives a bijective correspondence between A-bilinear forms

$$\begin{aligned} \left\langle -,- \right\rangle _{} : M \times N \rightarrow A \end{aligned}$$

and homomorphisms of right A-modules

$$\begin{aligned} \beta : N \rightarrow {}^*M. \end{aligned}$$

Again, the condition of being the bilinear form associative is equivalent to require that \(\beta \) is a homomorphism of left B-modules.

Definition 1

Let \(\left\langle -,- \right\rangle _{} : M \times N \rightarrow A\) be an A-bilinear form, and

$$\begin{aligned} \alpha : M \rightarrow N^*, \beta : N \rightarrow {}^*M \end{aligned}$$

the corresponding homomorphisms of A-modules defined as before. We say that \(\left\langle -,- \right\rangle _{}\) is right (resp. left) non degenerate if \(\alpha \) (resp. \(\beta \)) is injective. When \(\left\langle -,- \right\rangle _{}\) is left and right non degenerate, we just say that the bilinear form is non degenerate.

A left module \({}_AL\) is an injective cogenerator if the exactness of a sequence of morphisms of left A-modules

is equivalent to the exactness of the corresponding sequence of additive groups

That is, \({}_AL\) is both injective and cogenerator (see [1, Proposition 18.14]).

Recall that a left artinian ring A is Quasi-Frobenius (QF) if \({}_AA\) is an injective cogenerator. Equivalently, A is right artinian and \(A_A\) is an injective cogenerator (see [8, Theorem 13.2.1]).

The length of a right A-module X will be denoted by \({\text {lt}}(X_A)\), for a left A-module Y, by \({\text {lt}}({}_AY)\). From now on, unless otherwise stated, we will assume that all A-modules are of finite length. A (left and right) artinian ring A is QF if and only if \({\text {lt}}({}_AX^*) = {\text {lt}}(X_A)\) for every finitely generated right A-module \(X_A\) and \({\text {lt}}({}^*Y_A) = {\text {lt}}({}_AY)\) for every finitely generated left A-module \({}_AY\) (see [8, Theorem 13.3.2]). We assume in the rest of this section that A is a Quasi-Frobenius ring (see [8, Ch. 13] for various additional characterizations of these rings, including the original definition due to Nakayama).

Lemma 1

If there is a non degenerate A-bilinear form \(\left\langle -,- \right\rangle _{} : M \times N \rightarrow A\), then \({\text {lt}}({}_AM) = {\text {lt}}(N_A)\).

Proof

The following computation, which uses that both \(\alpha \) and \(\beta \) are injective maps, gives the statement.

$$\begin{aligned} {\text {lt}}({}_AM) \le {\text {lt}}({}_AN^*) = {\text {lt}}(N_A) \le {\text {lt}}({}^*M_A) = {\text {lt}}({}_AM). \end{aligned}$$

\(\square \)

Next lemma, as well as Proposition 1 below, can be deduced from [1, Theorem 30.1].

Lemma 2

Assume that \({\text {lt}}({}_AM) = {\text {lt}}(N_A)\). An A-bilinear form \(\left\langle -,- \right\rangle _{} : M \times N \rightarrow A\) is left non degenerate if and only if it is right non degenerate. In such a case, both \(\alpha \) and \(\beta \) are isomorphisms.

Proof

Assume that \(\left\langle -,- \right\rangle _{}\) is right non degenerate, that is, the homomorphism of left A-modules \(\alpha : M \rightarrow N^*\) is injective. Since A is QF, \({\text {lt}}({}_AN^{*}) = {\text {lt}}(N_A) = {\text {lt}}({}_AM)\). Therefore, \(\alpha \) is an isomorphism. In order to prove that \(\left\langle -,- \right\rangle _{}\) is left non degenerate, let \(n \in N\) such that \(\beta (n) = 0\). This means that, for every \(m \in M\), \(0 = \beta (n)(m) = \left\langle m,n \right\rangle _{} = \alpha (m)(n)\). Since \(\alpha \) is surjective, we get that \(\varphi (n) = 0\) for all \(\varphi \in N^*\). This implies that \(n = 0\), since A is an injective cogenerator right A-module. Therefore, \(\beta \) is injective. We so far have proved that if \(\left\langle -,- \right\rangle _{}\) is right non degenerate, then it is left non degenerate, and \(\alpha \) is an isomorphism. By symmetry, we get the full statement of the lemma. \(\square \)

Now, for an A-bilinear form \(\left\langle -,- \right\rangle _{} : M \times N \rightarrow A\), and subsets \(S \subseteq N\), \(T \subseteq M\), we define

$$\begin{aligned} {}'S&= \left\{ m \in M ~|~ \left\langle m,s \right\rangle _{} = 0, \,\forall s \in S \right\} , \\ T'&= \left\{ n \in N ~|~ \left\langle t,n \right\rangle _{} = 0, \,\forall t \in T \right\} . \end{aligned}$$

Clearly, \({}'S\) is a left A-submodule of M, while \(T'\) is a right A-submodule of N.

Proposition 1

Assume that \(\left\langle -,- \right\rangle _{}\) is non degenerate. For every A-submodule X (resp. Y) of \(N_A\) (resp. of \({}_AM\)) we have that \(({}'X)' = X\) and \({}'(Y') = Y\).

Proof

From Lemma 1, \({\text {lt}}({}_AM) = {\text {lt}}(N_A)\). Consider the commutative diagram of left A-modules with exact rows

where \(\alpha '(m + {}'X)(n) = \left\langle m,n \right\rangle _{}\) for all \(m \in M, n \in X\), and \(\alpha ''(m)(n + X) = \left\langle m,n \right\rangle _{}\) for all \(m \in {}'X, n \in N\). We see that \(\alpha '\) is injective, so, \(\alpha \) being an isomorphism by Lemma 2, we get that \(\alpha '\) is an isomorphism, too. This implies that \(\alpha ''\) is an isomorphism. Therefore, \({}'X\cong (N/X)^*\) and \(X^* \cong M/{}'X\) as A-modules. Analogously, we have isomorphisms of A-modules \(Y' \cong {}^*(M/Y)\) and \({}^*Y \cong N/Y'\).

Now, observe that \(X \subseteq ({}'X)'\). Thus, from the isomorphisms \(({}'X)' \cong {}^*(M/{}'X)\) and \(X^* \cong M/{}'X\), we get

$$\begin{aligned} {\text {lt}}(({}'X)') = {\text {lt}}({}^*(M/{}'X)) = {\text {lt}}(M/{}'X) = {\text {lt}}(X^*) = {\text {lt}}(X), \end{aligned}$$

which is only possible if \(X = ({}'X)'\). Analogously, \({}'(Y') = Y\). \(\square \)

Remark 1

With the notation of Proposition 1, we get from its proof that there are isomorphisms of A-modules \(M/{}'X \cong X^*\) and \(N/Y' \cong {}^*Y\), as well as \({}'X \cong (N/X)^*\) and \(Y' \cong {}^*(M/Y)\). Moreover,

$$\begin{aligned} \alpha ({}'X) = \{\varphi \in N^* : \varphi (X) = 0 \}. \end{aligned}$$
(1)

Corollary 1

The map \({}'(-)\) gives an anti-isomorphism, with inverse \((-)'\), between the lattices of right A-submodules of N and of left A-submodules of M.

If \(\left\langle -,- \right\rangle _{}\) is associative, then we easily get from Proposition 1 the following refinement of Corollary 1.

Corollary 2

If \(\left\langle -,- \right\rangle _{}\) is associative, then the map \({}'(-)\) gives an anti-isomorphism, with inverse \((-)'\), between the lattices of \(B-A\)-subbimodules of N and of \(A-B\)-subbimodules of M.

Remark 2

As already observed before, the statement of Proposition 1 can be deduced from [1, Theorem 30.1]. Indeed, the key ingredient to get a double annihilator property with respect to a non degenerate bilinear form with values in a bimodule U is that the duals with respect to U take simples to simples (see [1, Theorem 30.1] for the precise statement). This is the case for several formulations of the double annihilator property in the realm of linear codes with finite (bi)modules as alphabets, like [4, 6, 12].

3 Non projective Frobenius algebras

A left and right artinian ring A with Jacobson radical J is Frobenius if there are isomorphisms of modules

$$\begin{aligned} \mathrm{Soc}({}_AA) \cong A/J, \quad \mathrm{Soc}(A_A) \cong A/J, \end{aligned}$$
(2)

where the notation \(\mathrm{Soc}(X)\) stands for the socle of a (left or right) module X. Every Frobenius ring is QF [8, Corollary 13.4.3]. Moreover, in order to prove that a given QF ring A is Frobenius one only needs to check one of the isomorphisms in (2). Every commutative QF ring is Frobenius [8, p. 361].

Let R be an algebra over a commutative Frobenius ring K. Setting \(A = K\) and \(B = R\) in the framework of Sect. 2, we may thus consider the bimodules \(N= {}_RR_K\) and \(M= {}_KR_R\). Therefore, \(R^* = {}^*R = \hom _K(R,K)\) is endowed with the right and left R-module structures

$$\begin{aligned} (fb)(b') = f(bb') = (b'f)(b), \quad b,b' \in R, f \in R^*. \end{aligned}$$

This gives, indeed, an \(R-R\)-bimodule structure on \(R^*\). Next, we materialize the discussion of Sect. 2 to this framework. Recall that a K-bilinear form \(\left\langle -,- \right\rangle _{} : R \times R \rightarrow K\) is associative if \(\left\langle bb',b'' \right\rangle _{} = \left\langle b,b'b'' \right\rangle _{}\) for all \(b, b', b'' \in R\).

Proposition 2

Let R be an algebra over a commutative Frobenius ring K. Assume R to be finitely generated as a K-module. The following structures related to R are in bijective correspondence.

  1. 1.

    Associative non degenerate K-bilinear forms

    $$\begin{aligned} \left\langle -,- \right\rangle _{} : R \times R \rightarrow K. \end{aligned}$$
  2. 2.

    Isomorphisms of right R-modules \(\alpha : R \rightarrow R^*\).

  3. 3.

    Isomorphisms of left R-modules \(\beta : R \rightarrow R^*\).

  4. 4.

    K-linear forms \(\epsilon \in R^*\) such that \(\epsilon R = R^*\).

  5. 5.

    K-linear forms \(\epsilon \in R^*\) such that \(R \epsilon = R^*\).

Proof

The equivalence between (1), (2) and (3) follows from Lemma 2 and the discussion previous to Definition 1. We only discuss the equivalence between (2) and (4), since that between (3) and (5) is symmetric. If there is an isomorphism of right R-modules \(\alpha : R \rightarrow R^*\), then \(\epsilon = \alpha (1)\) generates \(R^*\) as a right R-module. Conversely, given \(\epsilon \in R^*\) such that \(R^* = \epsilon R\), we have the surjective homomorphism of right R-modules \(\alpha : R \rightarrow \epsilon R = R^*\) given by \(\alpha (b) = \epsilon b\). Since K is Frobenius, \({\text {lt}}(R_K) = {\text {lt}}(R^{*}_K)\), and we get that \(\alpha \) is an isomorphism, indeed. Let us finally argue that the linear form appearing in (4) coincides with that of (5). Let \(b, b' \in R\). Then \(\left\langle b,b' \right\rangle _{} = \alpha (b)(b') = (\epsilon b)(b') = \epsilon (bb') = (b'\epsilon )(b) = \beta (b') (b)\). Thus, \(R \epsilon = R^*\). \(\square \)

Definition 2

An algebra R over a commutative Frobenius ring K is said to be non projective Frobenius if R is finitely generated as a K-module and there exits a non degenerate K-bilinear form \(\left\langle -,- \right\rangle _{} : R \times R \rightarrow K\). The K-linear form \(\epsilon : R \rightarrow K\) provided by Proposition 2 will be referred to as the Frobenius functional.

Remark 3

It follows from Proposition 2 that a Frobenius K-algebra in the sense of [3] is non projective Frobenius. The converse is not true (see Remark 8).

Remark 4

We have already seen that the additional structure maps that, according to Proposition 2, make a K-algebra non projective Frobenius, are related by the following equalities

$$\begin{aligned}&\alpha (b)(b') = \left\langle b,b' \right\rangle _{} = \beta (b')(b),\\&\epsilon = \alpha (1) = \beta (1), \quad \alpha (b) = \epsilon b, \quad \beta (b) = b \epsilon , \\&\epsilon (bb') = \left\langle b,b' \right\rangle _{}, \end{aligned}$$

for all \(b, b' \in R\).

Remark 5

As a consequence of Lemma 2 and Proposition 2, and from their proofs, we see that, in the latter, we may replace condition (1) by only requiring the bilinear form to be either left or right non degenerate. Also, in conditions (2) and (3) we only need to require one of \(\alpha \) or \(\beta \) to be surjective.

Example 1

Every semisimple algebra R over a commutative Frobenius ring K with \(R_K\) finitely generated is a non projective Frobenius algebra. By virtue of Wedderburn–Artin Theorem, it suffices by proving this when R is simple. In this case, \({}_RR \cong \Sigma ^n\) for a simple left R-module \(\Sigma \). Now, \(R^* \cong (\Sigma ^*)^n\) as right R-modules. Since K is Frobenius, R and \(R^*\) have the same length as K-modules. Therefore, \(\Sigma \) and \(\Sigma ^*\) have the same length as K-modules. This implies (look at R as a matrix ring over a division K-algebra) that \(\Sigma ^*\) is a simple right R-module. Since its multiplicity in \(R^*\) is n, we deduce that \(R \cong R^*\) as right R-modules.

4 Annihilators in non projective Frobenius extensions

Let us come back to the situation of a pair of bimodules \({}_AM_B\) and \({}_BN_A\) with a non degenerate A-bilinear map \(\left\langle -,- \right\rangle _{} : M \times N \rightarrow A\). Assume, in addition, that A is a non projective Frobenius algebra over a Frobenius commutative ring K, with Frobenius functional \(\epsilon : A \rightarrow K\). The corresponding associative non degenerate K-bilinear form (see Proposition 2) will be denoted by \(\left\langle -,- \right\rangle _{\epsilon }\), and it obeys the rule

$$\begin{aligned} \left\langle a,a' \right\rangle _{\epsilon } = \epsilon (aa'), \quad a, a' \in A. \end{aligned}$$

Define, for each subset \(S \subseteq N\),

$$\begin{aligned} {}^\epsilon S = \{ m \in M : \epsilon (\left\langle m,s \right\rangle _{}) = 0 \; \forall s \in S \}, \end{aligned}$$

which is a K-submodule of M. Analogously, for every subset \(T \subseteq M\) we get the K-submodule of N

$$\begin{aligned} T^\epsilon = \{ n \in N: \epsilon (\left\langle t,n \right\rangle _{}) = 0 \; \forall t \in T \}. \end{aligned}$$

Indeed, \({}^\epsilon S\) and \(T^\epsilon \) are the left and right orthogonal K-submodules of S and T with respect to the K-bilinear form

$$\begin{aligned} {[}-,-]_{\epsilon } : M \times N \rightarrow K, \quad [m,n]_{\epsilon } = \epsilon (\left\langle m,n \right\rangle _{}). \end{aligned}$$

Obviously, \({}'S \subseteq {}^\epsilon S\) and \(T' \subseteq T^\epsilon \).

Proposition 3

Let S and T be A-submodules of \(N_A\) and \({}_AM\), respectively. Then

$$\begin{aligned} {}'S = {}^\epsilon S, \quad T' = T^\epsilon . \end{aligned}$$

Thus, \({}^\epsilon S\) and \(T^\epsilon \) are A-submodules of, respectively, \({}_AM\) and \(N_A\). Moreover,

$$\begin{aligned} ({}'S)' = S = ({}^\epsilon S)^\epsilon , \quad {}'(T') = T = {}^\epsilon (T^\epsilon ). \end{aligned}$$

Proof

To prove the equality \({}^\epsilon S = {}'S\), we just need to check the inclusion \({}^\epsilon S \subseteq {}'S\). Let \(a \in A, m \in M, s \in S\). If \(m \in {}^{\epsilon }S\), then, since S is a submodule of \(N_A\), we have

$$\begin{aligned} 0 = \epsilon (\left\langle m,sa \right\rangle _{}) = \epsilon (\left\langle m,s \right\rangle _{}a) = \left\langle \left\langle m,s \right\rangle _{},a \right\rangle _{\epsilon }. \end{aligned}$$

Now \(a \in A \) is arbitrary and \(\left\langle -,- \right\rangle _{\epsilon }\) is non degenerate, we thus get that \(\left\langle m,s \right\rangle _{} = 0\). Hence, \(m \in {}'S\). For the proof of the second part, observe that the bilinear form \([-,-]_\epsilon \) is non degenerate: if \(m \in M\) is such that \([m,n]_\epsilon = 0\) for all \(n \in N\), then \(m \in {}^\epsilon N = {}'N = \{ 0 \}\). Hence, \([-,-]_\epsilon \) is left non degenerate. The argument on the right is similar. By Proposition 1, \(({}^\epsilon S)^\epsilon = S\) and \({}^{\epsilon }(T^\epsilon ) = T\). \(\square \)

For a subset \(S \subseteq A\), we have the left (resp. right) ideal of A defined by

$$\begin{aligned} {\text {lann}}_{A}\left( S \right) = \{ a \in A : as = 0 \; \forall s \in S \} \end{aligned}$$

(resp. by)

$$\begin{aligned} {\text {rann}}_{A}\left( S \right) = \{ a \in A : sa = 0 \; \forall s \in S \}. \end{aligned}$$

Corollary 3

For any non projective Frobenius algebra A with Frobenius functional \(\epsilon : A \rightarrow K\), every right ideal S of A, and every left ideal T of A, we have

$$\begin{aligned} {\text {lann}}_{A}\left( S \right) = {}^\epsilon S, \quad {\text {rann}}_{A}\left( T \right) = T^\epsilon . \end{aligned}$$

Therefore,

$$\begin{aligned} {\text {rann}}_{A}\left( {\text {lann}}_{A}\left( S \right) \right) = S, \quad {\text {lann}}_{A}\left( {\text {rann}}_{A}\left( T \right) \right) = T. \end{aligned}$$

Proof

Setting \(M = N = A\) in Proposition 3, and the bilinear form \(\left\langle -,- \right\rangle _{}\) to be the multiplication map of A, we get the statement, since \({}'S = {\text {lann}}_{A}\left( S \right) \), while \(T' = {\text {rann}}_{A}\left( T \right) \). \(\square \)

Remark 6

It follows from Corollary 3 and [8, Theorem 13.2.1] that every non projective Frobenius algebra over a Frobenius commutative ring is a Quasi-Frobenius ring. Next section is devoted to sharpen this result.

5 Non projective Frobenius algebras and Frobenius rings

Let R an algebra over a commutative Frobenius ring K with \(R_K\) finitely generated. Let J denote the Jacobson radical of R. Since R is an artinian ring, the socle \(\mathrm{Soc}(X)\) of every R-module X is an essential submodule, in the sense that every nonzero submodule of X intersects non trivially \(\mathrm{Soc}(X)\). It follows from [1, Theorem 18.10 and Proposition 18.12] that two injective R-modules are isomorphic if, and only if, they have isomorphic socles.

It is well known that, if \(X_R\) is finitely generated, then

$$\begin{aligned} {\text {Soc}}(X_R) = \{ x \in X : xJ = 0\}. \end{aligned}$$

Therefore, \({\text {Soc}}(R^{*}_R)\) may be computed as

$$\begin{aligned} {\text {Soc}}(R^{*}_R) = \{ f \in R^*: f(J) = 0 \} \cong (R/J)^{*}_R \cong (R/J)_R, \end{aligned}$$
(3)

where the last isomorphism of R / J-modules (and, hence, of R-modules) holds because R / J is semisimple, and Example 1 applies.

Theorem 1

Let R be an algebra over a commutative Frobenius ring K with \(R_K\) finitely generated. Then R is a non projective Frobenius K-algebra if and only if R is a Frobenius ring.

Proof

Assume first that R is Frobenius as a ring. Then \({\text {Soc}}(R_R) \cong (R/J)_R\). By (3), \((R/J)_R \cong {\text {Soc}}(R^{*}_R)\). Now, \(R_R\) is injective because it is Frobenius, and \(R^{*}_R\) is injective because K is Frobenius. Since they have isomorphic socles, it follows that \(R_R \cong R^{*}_R\), and R is a non projective Frobenius algebra. Conversely, Corollary 3 implies that R is Quasi-Frobenius. Since R is non projective Frobenius, we have an isomorphism of R-modules \(R_R \cong R^{*}_R\). Therefore, taking (3) into account, we get

$$\begin{aligned} {\text {Soc}}(R_R) \cong {\text {Soc}}(R^{*}_R) \cong (R/J)_R. \end{aligned}$$

Hence, R is a Frobenius ring. \(\square \)

Remark 7

Theorem 1 can also be deduced from [7, Proposition 1.5], since the commutative Frobenius base ring K is a minimal injective cogenerator of the category of K-modules.

Corollary 4

Let R be a finite ring of characteristic n. Then R is a Frobenius ring if and only if R is a non projective Frobenius \(\mathbb {Z}_n\)-algebra.

Remark 8

A non projective Frobenius algebra need not be projective over its commutative base Frobenius ring. One of the simplest examples is the ring \(R = \mathbb {Z}_2 \times \mathbb {Z}_4\), which is clearly Frobenius and, by Corollary 4, a non projective Frobenius algebra over \(\mathbb {Z}_4\). However, R is not projective as a \(\mathbb {Z}_4\)-module, so it is not a Frobenius algebra in the classical setting.

Next, we will describe a method for constructing Frobenius rings from skew polynomial rings with coefficients in a non projective Frobenius algebra.

Let \(A\) be a non projective Frobenius algebra over a Frobenius commutative ring K with Frobenius functional \(\epsilon : A \rightarrow K\), and associative non degenerate K-bilinear form

$$\begin{aligned} \left\langle -,- \right\rangle _{\epsilon } : A \times A \rightarrow K, \quad \left\langle a,b \right\rangle _{\epsilon } = \epsilon (ab). \end{aligned}$$

Consider the skew polynomial ring \(S = A[x;\sigma ]\), where \(\sigma \) is a K-algebra automorphism of A, and let \(f = \sum _{i=0}^m f_i x^i \in S\) be a monic polynomial such that \(Sf = fS\). Since Sf is a twosided ideal of S, we get the K-algebra \(\mathcal {R} = S/Sf\), which is finitely generated as a K-module because f is monic. Indeed, every \(g \in S\) can be written as \(g = qf + r\), for suitable \(q, r \in S\) with r of degree smaller than m. This implies, always with f monic, that \({}_A\mathcal {R} \cong A^m\). In other words, we will identify the elements of \(\mathcal {R}\) with polynomials in S with degree less than m, with the operations made modulo f. For \(g \in \mathcal {R}\), the notation \(g_0\) stands for its term of degree 0. Finally, we assume that \(f_0\) is a unit of A.

Theorem 2

\(\mathcal {R} \) is a non projective Frobenius \(K\)-algebra with nondegenerate associative bilinear form

$$\begin{aligned} \left\langle -,- \right\rangle _{} : \mathcal {R} \times \mathcal {R} \rightarrow K, \quad \left\langle g,h \right\rangle _{} = \epsilon ((gh)_0). \end{aligned}$$

Therefore, \(\mathcal {R}\) is a Frobenius ring.

Proof

A straightforward computation modulo f shows that, for

$$\begin{aligned} g = \sum _{i=0}^{m-1}g_ix^i, h = \sum _{i=0}^{m-1}h_ix^i \in \mathcal {R}, \end{aligned}$$

we have

$$\begin{aligned} (gh)_0 = g_0h_0 - \sum _{i=1}^{m-1}g_{m-i}\sigma ^{m-i}(h_i)f_0. \end{aligned}$$
(4)

Obviously, \(\left\langle -,- \right\rangle _{}\) is K-bilinear. In order to prove that it is non degenerate it suffices, by Remark 5, to show that \(\left\langle -,- \right\rangle _{}\) is right non degenerate. So, let \(g \in \mathcal {R}\) such that \(\left\langle g,h \right\rangle _{} = 0\) for all \(h \in \mathcal {R}\). Let \(\lambda \in A\). Taking \(h = \lambda \in A\) in (4), we get that

$$\begin{aligned} 0 = \epsilon (g_0\lambda ) = \left\langle g_0,\lambda \right\rangle _{\epsilon }. \end{aligned}$$

Since \(\left\langle -,- \right\rangle _{\epsilon }\) is non degenerate, we deduce that \(g_0 =0\). Now, let \(i\in \{1, \dots , m\}\). Setting \(h = \lambda x^i\) in (4), we have

$$\begin{aligned} 0 = -\epsilon (g_{m-i}\sigma ^{m-i}(\lambda ) f_0) = -\left\langle g_{m-i}, \sigma ^{m-i}(\lambda ) f_0 \right\rangle _{\epsilon }. \end{aligned}$$

Now, \(\lambda \in A\) is arbitrary, \(f_0 \in A\) is a unit, and \(\sigma ^{m-i}\) is an automorphism of A, so, we get from the non degeneracy of \(\left\langle -,- \right\rangle _{\epsilon }\) that \(g_{m-i} = 0\). Thus, \(g = 0\), and \(\left\langle -,- \right\rangle _{}\) is non degenerate. By Theorem 1, \(\mathcal {R}\) is a Frobenius ring. \(\square \)

6 Codes with a Frobenius alphabet

Let A be a finite ring. Considering A as an additive group, it is well known that it is isomorphic to the group \(\widehat{A}\) of its complex characters (the group homomorphisms from A to \(\mathbb {C}^\times \)). The ring structure of A leads to an additional A-bimodule structure on \(\widehat{A}\) (see [12]). It was observed in [12] that A is a Frobenius ring precisely when \(\widehat{A}\) is cyclic either as a left or as a right A-module. A module generator is then called generating character. Let us see how this result fits in the theory so far developed in this paper for non projective Frobenius algebras.

Let n be the characteristic of A, and consider \(\mathbb {Z}_n \subseteq \mathbb {C}^\times \) as the group of nth roots of unity. Recall that the abelian group \(\mathbb {Z}_n\) has a unique structure of ring, and that it is Frobenius. Now, we have

$$\begin{aligned} \widehat{A} = \hom _{\mathbb {Z}}(A,\mathbb {C}^\times ) = \hom _{\mathbb {Z}}(A,\mathbb {Z}_n) = \hom _{\mathbb {Z}_n}(A,\mathbb {Z}_n) = A^*. \end{aligned}$$

Thus, the A-bimodule \(A^*\) is, in this case, nothing but the bimodule of characters of A.

Therefore, in view of Corollary 4, the equivalent conditions of Proposition 2 characterize when the finite ring A is Frobenius. Indeed, we may explicitly state the following reformulation of some results from [12].

Theorem 3

[12, Theorems 3.10 and 4.3] Let A be a finite ring of characteristic n. The following structures related to A are in bijective correspondence.

  1. 1.

    Associative non degenerate bilinear forms \(A \times A \rightarrow \mathbb {Z}_n.\)

  2. 2.

    Isomorphisms of right A-modules \(\alpha : A \rightarrow \widehat{A}\).

  3. 3.

    Isomorphisms of left A-modules \(\beta : A \rightarrow \widehat{A}\).

  4. 4.

    Characters \(\epsilon \in \widehat{A}\) such that \(\epsilon A = \widehat{A}\).

  5. 5.

    Characters \(\epsilon \in \widehat{A}\) such that \(A \epsilon = \widehat{A}\).

Moreover, A is a Frobenius ring if and only if any of these structures does exist.

Let A be a finite Frobenius ring of characteristic n, and Frobenius functional (or generating character) \(\epsilon : A \rightarrow \mathbb {Z}_n\). Let \(\left\langle -,- \right\rangle _{} : M \times N \rightarrow A\) a non degenerate bilinear form, where \({}_AM\) and \(N_A\) are finite A-modules. We know that \({\text {lt}}({}_AM) = {\text {lt}}(N_A)\) and, by Lemma  2, \({}_AM \cong {}_AN^*\) and \(N_A \cong M^{*}_A\). Let us see that this framework covers the module-theoretical setting considered in [11].

Example 2

Consider an anti-automorphism \(\theta : A \rightarrow A\), and a left module \({}_AM\). We can consider the right A-module N whose underlying additive group is M, with the right A-module structure defined by \(ma = \theta ^{-1}(a)m\) for all \(a \in A, m \in M\). Then, as already observed in [11, Remark 4.9], a non degenerate A-bilinear form \(\left\langle -.- \right\rangle _{} : M \times N \rightarrow A\) is, precisely, a non degenerate sesquilinear form in the sense of [11, §3]. When M has to be considered as the word ambient space for A-linear codes, a natural choice is to put \(M = A^n\) with its canonical left A-module structure.

Example 3

Of course, the same finite abelian group M may support both a left A-module structure and a right A-module structure. This case, considered in [11, §4], is clearly covered by our general formalism. Here, a natural choice is \(M = A^n\) with its canonical A-bimodule structure.

Next, we will see how the results in [11] are derived from our general theory. So, fix a non degenerate A-bilinear form \(\left\langle -,- \right\rangle _{} : M \times N \rightarrow A\), where A is a finite Frobenius ring of characteristic n, and \({}_AM\), \(N_A\) are finite modules. Let \(\epsilon : A \rightarrow \mathbb {Z}_n\) be a Frobenius functional (that is, a generating character). According to examples 2 and 3, this setting covers all cases considered in [11].

Proposition 4

[11, Propositions 3.7 and 4.7] If \(T \subseteq M\) is a left A-submodule and \(S \subseteq N\) is a right A-submodule, then

$$\begin{aligned} ({}'S)' = S = ({}^\epsilon S)^\epsilon , \quad {}'(T') = T = {}^\epsilon (T^\epsilon ). \end{aligned}$$

Proof

In view of Corollary 4, this proposition is a particular case of Proposition 3. \(\square \)

By \(|X|\) we denote the cardinal of a finite set X.

Theorem 4

[11, Theorems 3.6 and 4.6] Let \(S \subseteq N_A\) and \(T \subseteq {}_AM\) be submodules. Then \(|S||{}'S| = |M| = |N|\) and \(|T||T'| = |M| = |N|\).

Proof

Consider the non degenerate \(\mathbb {Z}_n\)-bilinear form \([-,-]_\epsilon : M \times N \rightarrow \mathbb {Z}_n\) defined by \([m,n]_\epsilon = \epsilon (\left\langle m,n \right\rangle _{})\) for \(m \in M, n \in N\). By Proposition 3, \({}'S = {}^\epsilon S\), the latter being the left orthogonal of S with respect to \([-,-]_\epsilon \). Now, by Remark 1, we have an isomorphism of \(\mathbb {Z}_n\)-modules \(M/{}^\epsilon S \cong \hom _{\mathbb {Z}_n}(S, \mathbb {Z}_n)\). Therefore, \(|M| = |{}^{\epsilon } S| |\hom _{\mathbb {Z}_n}(S, \mathbb {Z}_n)|= |{}^\epsilon S||S|\), since \(\hom _{\mathbb {Z}_n}(S, \mathbb {Z}_n)\) is nothing but the character group of S. Now, \(M \cong \hom _{\mathbb {Z}_n}(N, \mathbb {Z}_n) \cong N\), which gives that \(|M| = |N|\). \(\square \)

Recall that the Hamming weight wt(x) of a vector \(x \in A^n\) is defined by the number of nonzero components of x. Given an additive code \(C \subseteq A^n\), the Hamming weight enumerator of C is the complex polynomial in two variables XY

$$\begin{aligned} W_C(X,Y) = \sum _{x \in C} X^{n-wt(x)}Y^{wt(x)}. \end{aligned}$$

A general version of MacWilliams identity appears in [11, Theorem 5.2]. Unfortunately, it is not valid for every non degenerate bilinear form, as the following example shows.

Example 4

Set \(A = \mathbb {F}_{2}\), and let \(\left\langle -,- \right\rangle _{} : \mathbb {F}_{2}^2 \times \mathbb {F}_{2}^2 \rightarrow \mathbb {F}_{2}\) the non degenerate \(\mathbb {F}_{2}\)-bilinear form defined by the non singular matrix

$$\begin{aligned}&Q = \begin{pmatrix} 1 &{} 1 \\ 0 &{} 1 \end{pmatrix}, \end{aligned}$$

that is, \(\left\langle x,y \right\rangle _{} = x^t Q y\) for all \(x, y \in \mathbb {F}_{2}^2\). Let \(C \subseteq \mathbb {F}_{2}^2\) the linear code \(C = \{(0,0), (1,0) \}\). Its dual (with respect to \(\left\langle -,- \right\rangle _{}\)) is \({}'C = \{(0,0), (1, 1) \}\). Therefore,

$$\begin{aligned} W_C(X,Y) = X^2 + XY, \quad W_{{}'C}(X,Y) = X^2 + Y^2. \end{aligned}$$

If the MacWilliams identity stated in [11, Theorem 5.2] were applicable to \(\left\langle -,- \right\rangle _{}\), then we would have

$$\begin{aligned} W_{{}'C}(X,Y) = \frac{1}{2}W_C(X+Y,X-Y) = X^2 + XY. \end{aligned}$$

Therefore, the identities from [11, Theorem 5.2] do not hold for a general non degenerate bilinear form.

Theorem 5.2 in [11] is a consequence of [13, Theorem 11.3] whenever the isomorphisms

$$\begin{aligned} \alpha : A^m \rightarrow \widehat{A^m}, \quad \alpha (x)(y) = \epsilon (\left\langle x,y \right\rangle _{}) \end{aligned}$$

and

$$\begin{aligned} \beta : A^m \rightarrow \widehat{A^m}, \quad \beta (x)(y) = \epsilon (\left\langle y,x \right\rangle _{}) \end{aligned}$$

are isometries with respect to the Hamming weights in \(A^m\) and \(\widehat{A^m}\). This is the statement of [11, Lemma 5.3], which does not hold for an arbitrary non degenerate A-bilinear form on \(A^m\). The argument is valid, however, for suitable bilinear forms. To be more precise, let \(e_i\) denote, for \(i= 1, \dots , m\), the vector of \(A^m\) whose only nonzero component is the ith, which is 1. The Hamming weight of \(\varphi \in \widehat{A^m}\) is computed as the Hamming weight of its image under the group isomorphism

$$\begin{aligned} \widehat{A^m} \rightarrow \widehat{A}^m, \quad \varphi \mapsto (\varphi (e_1 \cdot ), \dots , \varphi (e_m \cdot )), \end{aligned}$$

where \(\varphi (e_i \cdot )(a) = \varphi (e_ia)\) for all \(a \in A\) and \(i = 1, \dots m\). That is, \(wt(\varphi )\) is the number of indexes \(i \in \{1, \dots , m\}\) such that \(\varphi (e_i \cdot ) \ne 0\). Recall that a square matrix with coefficients in a ring is said to be monomial if each row and column contains exactly one nonzero entry and that nonzero entry is a unit.

Lemma 3

The group isomorphism \(\alpha : A^m \rightarrow \widehat{A^m}\) preserves the Hamming weight if and only if the matrix \(Q = \left( \left\langle e_i, e_j \right\rangle _{}\right) _{1 \le i,j \le m}\) is monomial.

Proof

Given \(a, b \in A\), and \(i, j \in \{ 1, \dots , m \}\), we have

$$\begin{aligned} \alpha _{ae_i}(e_j \cdot )(b) = \epsilon (\left\langle ae_i,e_jb \right\rangle _{}) = \epsilon (a\left\langle e_i,e_j \right\rangle _{}b). \end{aligned}$$
(5)

If \(\alpha \) preserves the Hamming weight, then \(wt(\alpha _{e_i}) = 1\) for each \(i \in \{1, \dots , m \}\). Thus, given i, there is a unique \(j \in \{1, \dots , m \}\) such that \(\alpha _{e_i}(e_j \cdot ) \ne 0\). By (5), \(\left\langle e_i,e_j \right\rangle _{} \ne 0\). Furthermore, for \(k \ne j\), we get from (5) that \(\epsilon (\left\langle e_i,e_k \right\rangle _{}b) = 0\) for every \(b \in A\) and, hence, \(\left\langle e_i,e_k \right\rangle _{} = 0\). We have thus seen that the i-th row of Q has only one nonzero entry, namely \(\left\langle e_i,e_j \right\rangle _{}\). This implies, taking into account that \(\left\langle -,- \right\rangle _{}\) is non degenerate, that Q is a monomial matrix.

Conversely, assume that Q is a monomial matrix. Since \(\alpha \) is already an isomorphism of additive groups, in order to prove that it preserves the Hamming weight, it will suffice if we check that \(wt(\alpha (ae_i)) = 1\) for every \(0 \ne a \in A\) and every \(i = 1, \dots , m\). Given i, let \(j \in \{ 1, \dots , m \}\) the unique index such that \(\left\langle e_i,e_j \right\rangle _{} \ne 0\). By (5), \(\alpha (ae_i)(e_k \cdot ) = 0\) for all \(k \ne j\). But \(\alpha (ae_i)(e_j \cdot ) \ne 0\) because, otherwise, \(\epsilon (\left\langle ae_i,e_j \right\rangle _{}b) = 0\) for all \(b \in A\), whence \(\left\langle ae_i,e_j \right\rangle _{} = 0\). This is not possible, as \(\left\langle -,- \right\rangle _{}\) is non degenerate and \(ae_i \ne 0\). \(\square \)

Theorem 5

[11, Theorem 5.2] Let \(\left\langle -,- \right\rangle _{} : A^m \times A^m \rightarrow A\) be a non degenerate A-bilinear form such that the matrix \(Q = \left( \left\langle e_i,e_j \right\rangle _{}\right) _{1\le i, j \le m}\) is monomial. Let \(C \subseteq A^m\)be a left (resp. right) A-linear code \(C \subseteq A^m\), and set \(D = C'\) (resp. \(D = {}'C\)). Then

$$\begin{aligned} W_D(X,Y) = \frac{1}{|C|}W_C(X + (|A| - 1)Y,X-Y). \end{aligned}$$

Proof

Under the hypotheses on \(\left\langle -,- \right\rangle _{}\), \(\alpha \) is an isometry by Lemma 3. By Proposition 3, \({}'C = {}^\epsilon C\). Moreover, by (1), applied to the bilinear form \([-,-]_\epsilon = \epsilon \circ \left\langle -,- \right\rangle _{}\),

$$\begin{aligned} \alpha (^\epsilon C) = \{ \varphi \in \widehat{A^m} : \varphi (C) = 0\}. \end{aligned}$$

Thus, MacWilliams formula follows from [13, Theorem 11.3] . As for the \(D=C'\) case concerns, the same argument works, by virtue of an obvious version of Lemma 3 for \(\beta \). \(\square \)

We conclude this section by giving some examples of non projective Frobenius algebras for which the annihilators with respect to their associative bilinear forms are the Euclidean duals with respect to certain bases. The notation \(X^\perp \) will be used to denote the Euclidean dual of a given code X, with respect to the Euclidean product which will be clear in each situation.

Example 5

Let G be a finite group, and consider the group algebra \(A = \mathbb {Z}_n G\), which is a basic example of Frobenius \(\mathbb {Z}_n\)-algebra, with the associative non degenerate bilinear form defined by

$$\begin{aligned} \left\langle \sum _{g \in G}\alpha _gg,\sum _{h\in G}\beta _hh \right\rangle _{} = \sum _{g \in G}\alpha _g\beta _{g^{-1}}. \end{aligned}$$

Note that, if we denote by \([-,-]\) the obvious euclidean bilinear form on A, then \([a,b] = \left\langle a,\theta (b) \right\rangle _{}\), for all \(a, b \in A\), where \(\theta :A \rightarrow A\) denotes the involution determined by \(\theta (g) = g^{-1}\) for \(g \in G\). Hence, \(S^{\perp } = \theta (S')\) for every subset S of A, which implies that if C is a left ideal of A, then \(C^{\perp }\) is a left ideal of A, too.

Let \(\sigma \) be an automorphism of a finite Frobenius ring A of characteristic n. Consider a Frobenius functional (or generating character) \(\epsilon : A \rightarrow \mathbb {Z}_n\), and the non degenerate \(\mathbb {Z}_n\)-bilinear form given by \(\left\langle a,b \right\rangle _{} = \epsilon (ab)\) for all \(a, b \in A\). Let m be a multiple of the order of \(\sigma \). The polynomial \(x^m - 1 \in S = A[x;\sigma ]\) is central, so we may consider the finite ring \(\mathcal {A} = S/S(x^m-1)\), which is a Frobenius ring and a non projective Frobenius \(\mathbb {Z}_n\)-algebra, according to Proposition 2, with the nondegenerate associative \(\mathbb {Z}_n\)-bilinear form

$$\begin{aligned} \langle -,- \rangle _\mathcal {A} : \mathcal {A} \times \mathcal {A} \rightarrow \mathbb {Z}_n, \quad \langle f, g \rangle = \epsilon ((fg)_0). \end{aligned}$$
(6)

On the other hand, looking at \(\mathcal {A}\) as a free A-module of rank m with basis \(\{1, x, \dots , x^{m-1}\}\), we have the Euclidean A-bilinear form

$$\begin{aligned} {[}-,-] : \mathcal {A} \times \mathcal {A} \rightarrow A, \quad [f,g] = \sum _{i=0}^{m-1}f_ig_i. \end{aligned}$$

Proposition 5

Let \(\theta : \mathcal {A} \rightarrow \mathcal {A}\) be defined by

$$\begin{aligned} \theta \left( \sum _{i=0}^{m-1}f_ix^i\right) = \sum _{i=0}^{m-1}\sigma ^{-i}(f_i)x^{-i}. \end{aligned}$$

Then \(\theta \) is a \(\mathbb {Z}_n\)-algebra involution. Moreover, for every left A-submodule V of \(\mathcal {A}\), we have

$$\begin{aligned} V^\perp = {}'\theta (V). \end{aligned}$$

Proof

By [5, Lemma 26], \(\theta \) is a \(\mathbb {Z}_n\)-algebra involution. Now, for \(f, g \in \mathcal {A}\), a straightforward computation gives that \((f\theta (g))_0 = [f,g]\). Therefore, by (6),

$$\begin{aligned} \langle f, \theta (g) \rangle _{\mathcal {A}} = \epsilon ([f,g]). \end{aligned}$$
(7)

Given \(f \in V^\perp \), and \(\theta (g) \in \theta (V)\), we get from (7) that \(\langle f, \theta (g)\rangle _{\mathcal {A}} = 0\). Hence, \(f \in {}'\theta (V)\), and we obtain the inclusion of \(\mathbb {Z}_n\)-modules \(V^\perp \subseteq {}'\theta (V)\). Now, since \(\langle -,- \rangle _{\mathcal {A}}\) and \([-,-]\) are non degenerate, we may apply Theorem 4 to both bilinear forms, and get

$$\begin{aligned} |{}'\theta (V)| = \frac{|\mathcal {A}|}{|\theta (V)|} = \frac{|\mathcal {A}|}{|V|} = |V^{\perp }| \end{aligned}$$

which implies the equality \(V^\perp = {}'\theta (V)\). \(\square \)

Following [2], left ideals of \(\mathcal {A}\) are called \(\sigma \)-cyclic codes. The following consequence generalizes [2, Corollary 18] from fields to finite Frobenius rings.

Corollary 5

If C is a \(\sigma \)-cyclic code, then \(C^\perp \) is a \(\sigma \)-cyclic code.

Proof

Since C is a left ideal of \(\mathcal {A}\), we get that \(\theta (C)\) is a right ideal of \(\mathcal {A}\) and, therefore, \({}'\theta (C)\) is a left ideal. By Proposition 5, \(C^\perp \) becomes a left ideal of \(\mathcal {A}\). \(\square \)