Manuscript Offprint
arXiv:2608.21339The first tight classification of skew-constacyclic codes over finite fields
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract.
We parametrize the isometry and equivalence classes of skew constacyclic codes over a finite field by classifying the corresponding classes of their ambient rings, and present algorithms for the parametrizations. We achieve a tight classification by taking all possible Hamming-weight preserving isomorphisms between their ambient Petit rings into account. We also count the number of equivalence classes of these rings. We present many examples where isometry is a strictly stronger relation than equivalence, that is, codes that are isometric but not equivalent.
Key words and phrases:
Skew polycyclic codes, skew polynomials, skew constacyclic codes, nonassociative algebras, isometries
1. Introduction
The class of error-correcting codes known as skew constacyclic codes, first introduced in [BGU07], has risen in prominence over the past several years, due to their useful algebraic structure and efficient coding and decoding algorithms. An essential aspect to optimizing the choices of these codes is to establish their classification up isomorphisms that preserve the main performance parameters of the code (such as length, dimension, minimum Hamming distance), that is, up to Hamming-weight preserving isomorphisms which are called isometries. To know the isometry class of a code means we can optimize searches for optimal codes and extensive work has been done recently towards classifying skew constacyclic codes up to various isometry relations [BBB21, BLMMS24, OaNA25, LMn25, NP25b].
However, most current results on skew constacyclic codes routinely overestimate the number of distinct isometry classes of skew constacyclic codes, as they do not take into account all the possible Hamming-weight and dimension preserving isomorphisms that exist between their (potentially nonassociative) ambient rings. In this paper, we correct this oversight and show that there can exist higher-degree isometries between skew constacyclic codes, as well as isometries that act by automorphisms on the base field, that are not realized by the more classic notion of what we term Chen equivalence that is prevalent in the literature. For a taste of these distinctions, see Example 5.2.
To do so, we exploit a powerful algebraic tool, which is that skew -constacyclic codes of length are in one-one correspondence with the principal left ideals of their ambient Petit rings . Here, is a field, and . These rings may be nonassociative and their definition is subtle (see Section 2.1). Adopting this perspective allows us to address the classification of these codes uniformly across all choices of length and order of . Briefly, we let be the class of all skew -constacyclic codes of length , that is, with ambient ring .
In prior work, the second author established the full class of Hamming-weight preserving isomorphisms between the ambient rings of the form , as varies over [Pum25]. Given such an isometry , its restriction to the left principal ideals defines a parameter-preserving isometry between the corresponding skew -constacyclic codes and the skew -constacyclic code of the same length . Consequently, we define this as an isometry between the classes and .
These isometries have a distinct form. Every isomorphism between the ambient rings and of two skew constacyclic codes of length over that preserves the Hamming weight is necessarily monomial of some degree . More precisely, an isomorphism is determined by some and , and it is generated by mapping to and to . Note that these isomorphisms are in one one correspondence with the -semilinear bijective Hamming-weight preserving isomorphism between the modules and .
The isomorphisms exhaust the collection of Hamming-weight and dimension preserving isomorphisms between the corresponding codes and thus henceforth we refer to as an isometry. Isometries specialize to the case commonly used in the literature: if and then this is what we term Chen equivalence (introduced in [CFLL12] for constacyclic codes and used for instance in [LMn25, OaHA25, OaNA25], where it is sometimes called -equivalence). When one allows to vary but restricts to , we write and this is what we term an equivalence. In [NP25b] we proved that all isometries are equivalences in under certain hypotheses (see Theorem 2.4 here).
We know already that for many choices of and , the notions of isometry and equivalence coincide not just for skew constacyclic codes ([NP25b, Corollary 4.5]), but even for general skew polycyclic codes [Pum25]. However, despite articles such as [BMMOa26] which argue the contrary), it is not true that all isometries are equivalences in general, and it is a defect of the literature to assume that all isometries fix the fixed field of or have degree .
Therefore the strongest classification one can obtain for fixed is by employing all the isomorphisms . In this case we talk about isometry classes of ambient rings, and about isometry classes of skew constacyclic codes. Similarly, we refer to Chen equivalence classes (when and ) and equivalence classes (when but can vary). This terminology, and this all-encompassing way of classifying codes, was presented for the first time in [Pum25]. In prior work [NP25b], we counted the skew constacyclic codes up to Chen equivalence, correcting also an error in [OaNA25].
In this paper, we focus on finite base fields. After sharing some background in Section 2, we classify skew constacyclic codes by both equivalence (in Section 3) and isometry (in Section 4). More specifically, we count the classes of their ambient rings and provide algorithms for generating a set of representatives for the classes . We present many examples, expanding upon some first examples in [Pum25]. We go on in Section 5 to generate families of examples of isometric but non-equivalent codes. We also completely characterize the circumstances under which isometry and equivalence do coincide, and the circumstances under which all skew constacyclic codes are isometric with skew cyclic codes (that is, skew -constacyclic codes).
Let us present our main results in greater detail. The case of equivalence classes (and Chen equivalence classes) is treated in Section 3. One key theorem is the following, which counts the equivalence classes.
Theorem (Theorem 3.7).
Suppose and are finite fields of characteristic and that generates . For each divisor of , write for the Euler phi function of and for any such that , write for the order of the image of in . Then the number of equivalence classes of ambient Petit algebras (that is, the number of equivalence classes ) as varies over , is
Moreover, when this is also the number of isometry classes of these rings, i.e. the number of isometry classes .
We go on to give an algorithm for computing representatives of all equivalence classes (Algorithm 1).
In Section 4, we turn to isometry classes. By Theorem 2.4, isometry and equivalence coincide for all proper nonassociative ambient Petit algebras, that is, whenever and . Therefore we only have to characterize isometry when the ambient algebras are associative.
Our main theorem in this section is the following. Write for the subgroup of th powers in .
Theorem (Theorem 4.1).
Let and be finite fields of characteristic . Suppose and set . Then two inequivalent ambient Petit rings and are isometric over if and only if and there exists such that
for some satisfying
Building on Algorithm 1, we produce an algorithm for computing representatives of all isometry classes (Algorithm 2).
In Section 5, we give examples of isometric but non-equivalent ambient Petit algebras, as well as examples of skew constacyclic codes that are thus isometric but not equivalent. The key result is the following.
Theorem (Proposition 5.1).
Suppose and set . There exists such that and are isometric but not equivalent if all the following hold:
- ;
- the subgroup of generated by is proper (that is, is not a primitive element);
- there exists such that the image of in is not in .
Note that the last condition implies is nonempty and that .
Our results can be used to identify equivalent codes and to optimize searches for good codes in an even larger setting. For previous extensive work on classifying general skew polycyclic codes (SPC codes, also called skew -polycyclic codes or -codes) via different equivalence relations which are related to our general approach initiated in [Pum25], we refer the reader to for example [BBB21]. In upcoming work, we extend our results to skew polycyclic codes over finite fields and chain rings.
2. A collection of terminology and previous results
To describe our results, let us first introduce some notation. Let be a finite Galois field extension. Denote by the skew polynomial ring, where generates and for all . Then a skew -constacyclic code of length is generated by a monic right divisor of and can be identified with a left principal ideal in the ambient Petit ring that is generated by . The ambient Petit ring , which we present in the next Section 2.1, is a generally nonassociative ring, defined on the set of skew polynomials of degree less than . We define skew -constacyclic codes and isometries more precisely in Section 2.2, and present some known results in Section 2.3.
2.1. Petit rings
Let have degree and let denote the remainder of right division by . Let have finite order . The vector space together with the multiplication , where the right hand side is the remainder obtained after dividing on the right by , is a unital nonassociative ring (respectively, a unital algebra over of dimension ) denoted by or , and called a Petit ring (respectively, a Petit algebra), and a proper Petit algebra or ring when is not associative.
When , the multiplication of and in is thus the same as the multiplication of and in . The algebra is associative if and only if is two-sided, meaning is a two-sided ideal. In that case, is the usual quotient algebra [Pet67, (7),(9), (10)].
In this paper, , , since the ring is the ambient ring of a skew -constacyclic code when is reducible. The algebra is associative if and only if and (e.g. cf. [Pet67]). Thus we know that is not two-sided, if and only if either or but .
When is reducible has to be decided on a one-by-one basis. We know that if and right divides then this implies that
[Jac96]. When is prime we know more.
Theorem 2.1.
[BP18, Theorem 3.11] Suppose that or , or that is a prime and that contains a primitive th root of unity. Then is a division algebra if and only if
for all .
For more background on Petit algebras we refer the reader to [Pum25, Pet67].
2.2. Different code equivalences that refine isometries
Let be a field, , and the fixed field of .
A linear code of length over is a sub vector space of the -vector space . A linear code is called a skew constacyclic code or, more precisely, a skew -constacyclic code, if for each codeword of ,
When we call a skew cyclic code, and when , is called a constacyclic code. Among the constacyclic codes, those with are called cyclic codes and those with negacyclic codes.
The ambient ring of a skew -constacyclic code is the (potentially nonassociative) Petit ring . More precisely, every skew -constacyclic code can be identified with a set of skew polynomials which is a left principal ideal in its ambient ring . This left principal ideal is generated by some monic right divisor of the skew polynomial . We will use the bijective map ,
to “move” between vectors of length and skew polynomials of degree .
Two skew polycyclic codes of the same length are usually called isometric, if there is some Hamming-weight preserving bijective map that maps one skew polycyclic code one on one to the other one, and that preserves their dimension and their length. The canonical maps to define isometry are the Hamming-weight preserving, ring isomorphisms of ambient rings. These Hamming-weight preserving ring isomorphisms between the ambient rings of skew constacyclic codes all are of the type and preserve the dimension of the codes [Pum25, Section 2].
This inspired the following definition of isometry and also makes it the most general possible in this setting.
Definition 2.2.
Suppose , , and . If there exists a ring isomorphism
defined via and , that is,
then we call an isometry, or a monomial isomorphism of degree if we want to clarify the degree , and write . The ring isomorphism is an -algebra isomorphism, for every subfield .
When , we write in place of and call an equivalence or a monomial isomorphism of degree one.
When then a ring isomorphism of the type is called a Chen isometry, and is called a Chen equivalence.
Define for all positive integers and . When has order , then is simply the norm of the field extension . Note that and thus
for all and automorphisms of . Then for example with we have
We now introduce the notation that will be in force throughout this paper. Let be the class of all skew -constacyclic codes of length , that is, with ambient ring .
Definition 2.3.
The classes and are called
(i) isometric, if there exist and yielding an isometry (ii) Chen isometric, if there exist and yielding an isometry (iii) equivalent, if there exist and yielding an equivalence , (iv) Chen equivalent, if there exists a Chen equivalence for some .
Isometric and equivalent classes of codes and correspond to skew constacyclic codes with the same parameters, thus have the same performance. That is, if two classes and are isometric via some monomial isomorphism of degree , then the skew constacyclic codes in correspond bijectively to skew constacyclic codes in having the same Hamming distance, dimension and length [Pum25].
The following was proven in [NP25b, Corollary 6.2].
Theorem 2.4.
When , all isomorphisms between two (automatically proper nonassociative) Petit rings and equivalences, that is, of the form . Consequently, in this case the notions of isometry and equivalence coincide for the classes and .
In what follows, we classify isometries between the Petit rings and this therefore gives isometries between the classes of codes in the above sense.
2.3. A collection of known results
We want to classify the ambient Petit rings up to isometries, as runs over . In order to do so, we need to describe the Hamming-weight preserving ring isomorphisms between two rings and . Recall that is associative if and only if and .
We first fix a choice of cyclic field extension of degree .
All Hamming-weight preserving ring isomorphisms between two proper nonassociative ambient rings and are monomial of degree one, and of the form (cf. [NP25b, Corollary 6.2], [Pum25, Theorem 4.2] or [NP25b, Theorem 2.3]).
We do not assume that is reducible, if it is irreducible we will count the trivial skew constacyclic code obtained from .
Let us call the isomorphisms classes with respect to the degree one isomorphism classes (or simply the equivalence classes as in [Pum25]).
When does not divide then the ambient algebras are always not associative and all monomial isomorphisms between these algebras are monomial of degree one under the assumption that is commutative [NP25b, Corollary 6.2].
In [NP25b] the number of Chen-equivalence and Chen-isometry classes of skew constacyclic codes of length over was computed. (In [OaNA25, Theorem 4], the the number of Chen-isometry classes of codes of length over was computed incorrectly.)
By [NP25b, Corollary 6.2], if and , then any nonzero homomorphism whose restriction to is given by some automorphism commuting with , must be monomial of degree one, hence in this case isometries are the same as equivalences, and indeed every isomorphism is an equivalence.
It is not always a simple matter to determine for which the skew polynomial is reducible, or in other words, for which nontrivial skew -constacyclic codes exist. Applying Theorem 2.1, we have the following result.
Proposition 2.5.
Let or , or let be prime and suppose that contains a primitive th root of unity, that is . Then for any , there exist nontrivial skew -constacyclic codes if and only if is equivalent to , and in this case, any such code is isometric to a -constacyclic code.
Proof.
A nontrivial skew -constacyclic code is a proper left ideal in the Petit ring , generated by a monic right divisor of the skew polynomial . By Theorem 2.1, under the given hypotheses, has such ideals (that is, is not a division algebra) if and only if there exists such that . This in turn is equivalent to the existence of an isomorphism
As every such isomorphism induces an Hamming-weight-preserving bijection between the corresponding ideals in and , it gives an isometry between the corresponding codes. In particular, every nontrivial skew -constacyclic code is therefore isometric to a skew -constacyclic, that is, a skew cyclic, code. ∎
Therefore, in the setting of Proposition 2.5, there is no advantage to using a skew -constacyclic code, as these are all isometric to the simpler skew cyclic codes.
That said, when is not prime, there can be many skew -constacyclic codes where , and classifying these equivalence and isometry classes of Petit algebras, that often contain many nontrivial codes, is the focus of our study.
3. Counting the equivalence classes of skew constacyclic codes over finite fields
Let be a prime, and . Choose . Set , and . Then is cyclic of order , generated by where for all . Let denote a primitive element of , meaning a generator of the cyclic multiplicative group of , which has order . We write .
For any we define
and set
Since as polynomials we have , it follows that in particular, whenever . Moreover, since it cannot be divisible by , we have that for all .
3.1. Chen equivalence classes
Let . Recall from Definition 2.3(iv) that we say that two algebras of the form are Chen-equivalent if there exists an isomorphism of the form with , between them.
Note that these Chen equivalence classes were counted, using different ideas, in [NP25b].
Theorem 3.1.
The distinct Chen-equivalence classes of ambient Petit rings of the form , where , are parametrized by taking , where
When , the distinct Chen-equivalence classes of skew constacyclic codes of length are thus parametrized by taking , where
Proof.
By [Pum25, Theorem 4.1], an isomorphism of the form exists if and only if . Therefore the Chen equivalence classes are parametrized by the left cosets of the subgroup . We compute
Since has order , it follows that is the cyclic group generated by , where Its cosets are thus parametrized by the set . ∎
In particular, if then and there is more than one Chen-equivalence class. For example, if then some of these Petit rings will be associative (those with ) and others not (those with ), and these are not isomorphic so are never equivalent.
Example 3.2.
Let , and . Then and . Therefore by Theorem 3.1, no two algebras of the form are Chen-equivalent. Those with are properly nonassociative. In particular, note that in this case there are thus two associative Petit algebras, represented by and , and these are non-Chen-equivalent.
At the other extreme we infer the following consequence.
Corollary 3.3.
Suppose . Then for every , there exist nontrivial skew -constacyclic codes of length , and each one is isometric to a skew cyclic code (that is, a skew -constacyclic code).
Proof.
If , then by Theorem 3.1, all of the ambient Petit rings , as ranges over , are Chen-equivalent to
In fact, the proof shows that in this case every is of the form for some , which implies that right divides . Consequently, is a reducible polynomial and well-suited for coding applications. The isomorphism maps each left principal ideal of the first ring (which corresponds to a choice of skew constacyclic code) isometrically onto a left principal ideal of the second (which corresponds to a skew constacyclic code), whence the result. ∎
Note that in the setting of Corollary 3.3, we must have and therefore it follows that all the ambient Petit rings are properly nonassociative.
Note that this is in some sense a strengthening of Proposition 2.5: when , it is not necessarily to consider the primality of in order to decide if skew -constacyclic codes exist: they do, for each .
Corollary 3.4.
Suppose . Then is not a division algebra, that is, is reducible.
Proof.
Under the given hypothesis, , which has nontrivial principal left ideals. ∎
3.2. Equivalence classes
We next turn to the question of counting classes under the stronger notion of equivalence in the sense of Definition 2.3 (iii), that is, with respect to isomorphisms of the form where and . When the fixed field of this automorphism contains , then we say that the rings are equivalent over . We retain this slight generality in this section for interest, but the key case the reader should bear in mind is , that is, when . Algebras that are equivalent over are in fact equivalent as rings.
For each , write for the Euler phi function of . For any such that , write for the order of the image of in .
Proposition 3.5.
Let be a subfield of and denote its size by . The number of equivalence classes over of algebras of the form , as ranges over is
Proof.
Let denote the degree of this extension. The automorphism of defined by for each generates the cyclic Galois group and commutes with . In particular, stabilizes and the subgroup , so acts as a permutation on the cosets of , where . By Lemma 3.1, each coset is represented by for some . For each such , the orbit of under the Galois group is
Thus the Galois orbit of the coset in is the union
These orbits need not be distinct: for example if then and represent the same coset, so . The orbits are also not all of the same size: for example, the trivial coset forms its own orbit, whereas in general the size depends on the order of mod . Nevertheless, each of the distinct orbits defines a single equivalence class of algebras over , namely, by letting run over .
To count the number of distinct orbits, we proceed as follows. Let be a divisor of . Set to be the set of all elements of additive order exactly ; since , we have that for each and that so
is the -invariant union of the orbits for which . Moreover, since the sets partition , we have
so it suffices to count the number of distinct orbits in each such .
Fix dividing . Since , we may set to be the order of in . Thus for each , is the least power of for which we have , whence it is the least power such that . Therefore for each , the number of distinct cosets in the orbit is . Since the map is an isomorphism of onto , contains precisely distinct cosets, which are partitioned into orbits of size , as required. ∎
Example 3.6.
In the setting of Example 3.2, we have , that is, there are exactly Chen equivalence classes. Setting in Proposition 3.5 we deduce that there are only
equivalence classes of these algebras. To describe these equivalence classes, set
as in the proof. We compute that
Now the equivalence classes are given by the orbits of the Galois group on the sets
which we compute as follows.
Since , each coset is simply the set . Thus is one equivalence class, and is another. We have which forms a single orbit under the Galois group, hence another equivalence class. Finally, , which we see forms two orbits under the Galois group, hence two equivalence classes, as predicted by the theorem.
Note that the two associative algebras are represented by and , and these are inequivalent.
In general, computing the order of modulo various divisors of is an arithmetically interesting problem. It is simple in some cases; for example, for all we have and so .
While Proposition 3.5 is stated for a general base field , the core case is when we choose and ; this is exactly the case we need to consider in order to count all the equivalence classes of skew constacyclic codes.
Theorem 3.7.
The number of equivalence classes of ambient Petit rings , with and with of order , that is, the number of equivalence classes , is
In particular, when we conclude that this is also the number of isometry classes of these rings, i.e. the number of isometry classes .
Proof.
This is just the specialization to in Proposition 3.5. For the final statement, note that when , isometry and equivalence coincide, by Theorem 2.4. ∎
The value in Theorem 3.7 can be arithmetically difficult to compute when is very large, as it is a sum of positive integer terms over all the divisors of . We have, however, the following immediate corollary.
Corollary 3.8.
The number of equivalence classes of ambient Petit rings of the form , with and with of order , is bounded below by , where is the number-of-divisors function [OEI26, https://oeis.org/A000005].
Proof.
Each term of the sum in Theorem 3.7 is a positive integer, so greater than or equal to . Hence the sum is at least equal to the number of divisors of . ∎
To state another useful corollary, we need the following arithmetic lemma.
Lemma 3.9.
Suppose . Let and . Then
Proof.
Since , we have divides . Note that
Since , we have
∎
We can now count the equivalence classes of associative Petit algebras , that is, such that and .
Corollary 3.10.
Suppose and set . Then the number of equivalence classes of ambient Petit rings that are associative, meaning, as runs over , is given by
Proof.
When , the associative algebras are those for which . Since
and preserves the cosets space , we may imitate the argument of the proof of Proposition 3.5. In particular, since , we have that is the union of the sets corresponding to the divisors of , since
The number of -orbits in these sets was computed in Proposition 3.5, yielding the result. ∎
We will refer to this corollary in Section 5, when we show that isometry and equivalence do not always coincide.
3.3. An algorithm to parametrize the equivalence classes
Let . If satisfy that is equivalent to (via some isomorphism ) we may write . Therefore, our goal is to generate a set of elements for the equivalence classes under , that is, that correspond to exactly one representative of each equivalence class of Petit algebras . This is given in Algorithm 1.
We explain it briefly as follows. Given , and , we compute and let be a generator of . If then all ambient algebras are Chen-equivalent (hence equivalent) and all are reducible. In this case we have exactly one equivalence class of ambient algebras for skew constacyclic codes, represented by and we are done.
Otherwise, we cycle through the -orbit of each element , as runs from to (Lemma 3.1), and identify the resulting coset of . If it is not equal to the coset of , then that coset is removed from the list. In this way, we retain a unique representative of each of these orbits.
Consequently, Algorithm 1 generates representatives for the distinct equivalence classes over a chosen subfield of , thus in particular representatives for the distinct equivalence classes of ambient rings of skew constacyclic codes when .
Algorithm 1 Generating representatives of the distinct equivalence classes over
1: Input: , , and a length
2: Output: A set such that the distinct equivalence classes of Petit algebras over are precisely as runs over
3:
4: if then
5: return All are (Chen-)equivalent to
6: else
7: Initialization of the set of representatives
8: Values for which for some
9: Start with , which satisfies
10: while do
11: if then If is not a previous orbit:
12: Record as a distinct orbit
13: Go through its -orbit
14: while and do
15:
16:
17: end while Until we loop back to a previously-sorted value
18: else
19: Advance to next non-sorted value
20: end if
21: end while
22: return
23: end if
4. Parametrizing isometry classes of Petit rings
The next question is to further refine this parametrization of Petit rings to one of isometry classes, where isometry is defined as any Hamming-weight preserving isomorphism in Definition 2.3(i). We begin by developing some theory.
4.1. Results relating isometry and equivalence
To begin, note that by Theorem 2.4, isometry and equivalence coincide for all properly nonassociative Petit algebras, that is, whenever and . To characterize isometry in the remaining cases, we further specialize a result from [NP25b] to the case of finite fields to obtain the following more precise criterion. We write for the subgroup of th powers in .
Theorem 4.1.
Let and be finite fields of characteristic . Suppose and set . Then two inequivalent Petit rings and are isometric over if and only if and there exists such that
for some satisfying
Proof.
Two Petit rings are isometric but not equivalent exactly when there exists a Hamming-weight preserving isomorphism of degree strictly greater than one (and no isomorphism of degree equal to one) between them. The result [NP25a, Theorem 4.4] characterizes the Petit rings over an arbitrary commutative unital ring such that such an isometry exists, namely, one must satisfy all of the following:
(i) commutes with ; (ii) (iii) ; (iv) ; (v) ; (vi) ; (vii)
In our case, and . Then we must satisfy the four conditions (iii) , (iv) , (v) and (vi) , which implies in particular that is associative. Since is abelian, (i) always holds. Since the norm map on finite fields is surjective, , the group of powers. Since is cyclic of order , we have where . Therefore the remaining conditions (ii) and (vii) are satisfied if and only if . ∎
Let us now apply this result to derive an algorithm to construct a set of representatives for the isometry classes of Petit algebras.
By Theorem 4.1, Algorithm 1 may overcount isometry classes only if , and then the only parameters in question are those lying in .
Suppose . If , then . Therefore in the language of Algorithm 1, we need to determine which elements of the set
correspond to isometric (but inequivalent) Petit algebras. Here, is the set of powers such that runs over the equivalence classes (Galois orbits of cosets of ), and is the set of powers corresponding to elements of .
We record our first observation as the following lemma.
Lemma 4.2.
If and , then equivalence and isometry coincide for all ambient Petit algebras of skew constacyclic codes.
Proof.
Applying Lemma 3.9, note that the intersection is a singleton whenever , since in this case, and . In particular, we deduce that isometry classes coincide with equivalence classes for all associative Petit algebras in this case (that is, those with ). Together with Theorem 2.4, which gives that isometry and equivalence coincide for all properly nonassociative Petit algebras, we have the result. ∎
Next, note that the conditions on the degree of the isometry imposed by Theorem 4.1 are stringent, and the set
of elements satisfying the conditions (4.1) can be empty.
Example 4.3.
Suppose and . Then but , so . Therefore, the only possible isometries between Petit rings of the form have degree , that is, are given by equivalence.
Furthermore, some values of define isometries that can already be realized by an isomorphism that is an equivalence.
Lemma 4.4.
Let and . Let , where was defined in (4.2). Suppose there exists such that . Then if there exists an isometry of degree between two ambient Petit algebras and , for some , then , that is, these algebras are already equivalent (that is, isometric via an isometry of degree ).
Proof.
Suppose we are given such a . By Theorem 4.1, it defines, for each and , the isometries where and are related by the condition . We claim that in fact .
Namely, let be given by for all . Since , there exists such that . Recalling that , we deduce that
so that
Therefore, we have that . On the other hand, implies directly that . By transitivity, , that is, the two Petit algebras were already isomorphic via a simple equivalence. ∎
Example 4.5.
Suppose , , and . Then . Here, and . We find has a single element, but since , Lemma 4.4 implies that there will not exist any elements giving isometric Petit algebras such that . Hence, isometry classes and equivalence classes coincide.
4.2. An algorithm for parametrizing isometry classes
Summarizing the results from Section 4.1, we see that it suffices, in the case that , and containing elements that do not satisfy Lemma 4.4, to determine which of the elements of yield isometric Petit algebras, and find a set of representatives of the resulting classes. This is done by removing the elements of that arise as for some and , as in this case, and yield isometric algebras.
Then a complete set of isometry classes of Petit algebras is parameterized by
where parametrizes the properly nonassociative Petit algebras up to isometry and parametrizes the associative ones up to isometry.
This process is laid out in Algorithm 2.
Algorithm 2 Computation of representatives of the distinct isometry classes over
1: Input: ; a generator of , of order ; a code length such that
2: Output: A set such that the distinct isometry classes of Petit algebras over are precisely as runs over
3: Algorithm 1 Get representatives for all equivalence classes
4: Number of equivalence classes from
5:
6: for do Determine the set of possible degrees of the isometries
7: if and then
8:
9: end if
10: end for
11: if or or then
12: return Isometry and equivalence coincide
13: else
14: subset to modify
15:
16: while do
17: Take the th element of
18: for and do
19: Coset representative of
20: if and then if is a distinct equivalence class
21:
22: end if
23: end for
24: move to next element of
25: end while
26: As in (4.3)
27: return
28: end if
5. Constructing examples of the difference between isometry and equivalence
We begin with three observations to refine the set of examples we seek in this section.
- Recall that the skew constacyclic codes of length over will be left ideals of Petit rings of the form ; there are nontrivial skew constacyclic codes exactly when is reducible.
- When is isometric with (see Proposition 2.5 and Corollary 3.3 for important cases where this holds very broadly), then all skew constacyclic codes are equivalent to constacyclic codes. Thus the interesting new examples are to be found among the remaining isometry classes.
- Finally, although under various hypotheses (see Theorem 2.4, Lemma 4.2 and Lemma 4.4) we have that isometry and equivalence coincide, this is not the case in general.
Therefore our interest is in rings such that is reducible, is not isometric with the ring , and such that there exists such that but and are indeed isometric.
5.1. Conditions on
To generate such examples, let us explore the conditions of Lemma 4.4 more carefully. The values that contribute no new isometries are those for which the image of lies in the set , where . This leads us to the following complement to Theorem 2.4.
Proposition 5.1.
Suppose and set . There exists such that and are isometry but not equivalent if all the following hold:
- ;
- the subgroup of generated by is proper (that is, is not a primitive element);
- there exists such that the image of in is not in .
Note that the last condition implies is nonempty and that .
Proof.
We first show that each of these conditions are necessary. If then and thus all associative algebras are Chen-equivalent. If then the Frobenius map will act transitively on the representatives of the nontrivial cosets of , whence all associative algebras are equivalent. The final condition specifies the existence of an integer such that defines an isomorphism. Since , the map permutes the coset space . However, if all such lie in then this map will always be realized by some element of , meaning the resulting algebras are already equivalent, that is, isomorphic via for some .
If all conditions hold, then there exists an element and such that for any element , whence is not equivalent to and yet defines an isometry between these algebras.
The final statement includes the observation that if , then any satisfies , so that the third condition fails. ∎
Example 5.2.
Let , and , so that and . Then . In particular, by Lemma 3.9 so by Theorem 3.1 every element of defines a distinct Chen-equivalence class, yielding the maximum possible number of Chen equivalence classes. These group, as in Theorem 3.7 into a large number of equivalence classes. To count them, we find the factorization
It is immediate that the lower bound of Corollary 3.8 on the number of equivalence classes is . Using SageMath [Sag22] to evaluate the formula of Theorem 3.7 yields the actual value of equivalence classes, most of which correspond to nonassociative ambient Petit algebras.
We now turn to the associative algebras, and show that some of their equivalence classes group into larger isometry classes.
Begin by noting that by Corollary 3.10, the Chen-equivalence classes of associative ambient algebras group into
distinct equivalence classes.
We now group them into isometry classes. The set of (4.2) is
The subset of generated by , as in Proposition 5.1, is and thus the elements whose image in is not in is
whose residues modulo are all either or . These are therefore the elements that will yield isometries between certain non-equivalent algebras, namely, those corresponding to such that
Suppose , that is, is a primitive element. Then one sees directly that if and only if with .
We conclude that the two equivalence classes of associative ambient algebras that are represented by the primitive element and its inverse yield isometric ambient algebras, that is,
and that this Hamming-weight preserving isometry is not realized by any mere equivalence, that is, any map of the form .
5.2. Conditions on
The conditions of Proposition 5.1 are independent of : they depend entirely on (complex) arithmetic conditions arising from the choices of
The next step is to isolate such choices for which the rings have nontrivial ideals, meaning they provide collections of isometric, nonequivalent skew constacyclic codes.
Since , the polynomial , with , is a central polynomial in . In fact, it is given by where
is a polynomial in the commutative ring . Consequently, if is reducible, so is .
Moreover, if we choose , then any factorization of (and ) will not be a complete factorization into linear factors. This is now reduced to a factorization problem that can be solved in SageMath, for example.
Example 5.3.
In the setting and notation of Example 5.2, let us choose and . Then and is an isomorphism. Setting and , we have , which factors as
This corresponds to the factorization
For example, with the factor is sent to , which reduces modulo as
(using SageMath [Sag22]), which is indeed one of the factors (up to an invertible scalar) of , as expected.
In the following example, we illustrate how an isometry of the ambient Petit algebras can map one ideal to another, and thus send one skew constacyclic code isometrically onto another.
Example 5.4.
In the same setting above, if we instead choose then and , then and
This time, choosing the ideal generated by , we find
Observe that the degree of this polynomial is not equal to the degree of , but of course the corresponding codes, being isomorphic, are of the same dimension. Namely, the code is the ideal generated by , which is also generated by . To compute this, we revert again to the central polynomial , which factors using SageMath as
Thus , which yields as a generator of the corresponding ideal.
These examples illustrate the abundance of interesting cases of isometries that are not mere equivalences and that have not been taken into account in the prevalent literature so far.
6. Compliance with ethical standards
Funding sources
This paper was partially written during the second author’s stay as a Simons Professor in Residence at the University of Ottawa in July and August 2025. She gratefully acknowledges the support of CRM and the Simons Foundation. The first author’s research is supported by NSERC Discovery Grant RGPIN-2025-05630.
Disclosure of potential conflicts of interest
The authors have no relevant financial or non-financial interests to disclose.
Data Availability Statement
No data were generated or used for this research.
References
Ranya Djihad Boulanouar, Aicha Batoul, and Delphine Boucher, An overview on skew constacyclic codes and their subclass of LCD codes, Adv. Math. Commun. 15 (2021), no. 4, 611–632. MR 4393710
D. Boucher, W. Geiselmann, and F. Ulmer, Skew-cyclic codes, Appl. Algebra Engrg. Comm. Comput. 18 (2007), no. 4, 379–389. MR 2322946
M. Bajalana, I. Landjev, Martínez-Moroc, and S. Szabo, -polycyclic codes in ore extensions over rings, https://arxiv.org/pdf/2312.07193, 2024.
M. Bajalan, E. Martínez-Moro, and H. Ou-azzou, Skew polycyclic over finite chain rings associated to trinomials, https://arxiv.org/html/2605.03164v1, 2026.
Christian Brown and Susanne Pumplün, The automorphisms of Petit’s algebras, Comm. Algebra 46 (2018), no. 2, 834–849. MR 3764900
Bocong Chen, Yun Fan, Liren Lin, and Hongwei Liu, Constacyclic codes over finite fields, Finite Fields Appl. 18 (2012), no. 6, 1217–1231. MR 3019196
Nathan Jacobson, Finite-dimensional division algebras over fields, Springer-Verlag, Berlin, 1996. MR 1439248
F. J. Lobillo and José Manuel Muñoz, Linear complementary pairs of skew constacyclic codes, Des. Codes Cryptogr. 93 (2025), no. 6, 1863–1888. MR 4921522
Monica Nevins and Susanne Pumplün, A parametrization of nonassociative cyclic algebras of prime degree, J. Algebra 664 (2025), 631–654. MR 4815883
Monica Nevins and Susanne Pumplün, When isometry and equivalence for skew constacyclic codes coincide, Preprint https://arxiv.org/pdf/2508.06695 [cs.IT], 2025.
Hassan Ou-azzou, Anna-Lena Horlemann, and Nuh Aydin, Bounds and equivalence of skew polycyclic codes over finite fields, Preprint https://arxiv.org/pdf/2507.17571 [CS.IT], 2025.
Hassan Ou-azzou, Mustapha Najmeddine, and Nuh Aydin, On isometry and equivalence of skew constacyclic codes, Discrete Math. 348 (2025), no. 1, Paper No. 114279, 15. MR 4806443
OEIS Foundation Inc., The On-Line Encyclopedia of Integer Sequences, Published electronically at https://oeis.org, 2026.
Jean-Claude Petit, Quasi-corps généralisant un type d’anneau quotient, C. R. Acad. Sci. Paris Sér. A-B 265 (1967), A708–A711. MR 241483
Susanne Pumplün, Using nonassociative algebras to classify skew polycyclic codes up to isometry and equivalence, Preprint https://arxiv.org/pdf/2508.10139, 2025.
Sage, SageMath, the Sage mathematics software system, 2022, https://www.sagemath.org.