Manuscript Offprint
arXiv:2611.23186Integral Tensor Isomorphism via Cubic Rings and Lattice Methods
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We prove that isomorphism of integral tensors under is decidable in bounded-error quantum polynomial time. For a tensor with nonzero determinant form , we use the parametrization of Wood [26] by balanced modules to reduce the isomorphism problem to principality tests for compatible lattices, and use the algorithms of Bley, Hofmann, and Johnston [5] to solve this in . When the determinant form vanishes identically, we get either an integral core, or a polynomial kernel vector of degree one or two. The linear-kernel case yields another compatible lattice problem, while the quadratic-kernel case reduces to a fixed system of polynomial congruences and unimodular lifting. A quantifier-elimination argument decides these congruences in deterministic polynomial time given the prime factorization of the modulus, which quantum integer factorization supplies. Finally, we show that zero padding preserves integral tensor isomorphism, yielding a polynomial-time reduction from real-quadratic principality to the identically singular problem.
1 Introduction
Bhargava’s seminal works on Higher Composition Laws, revealed a surprising arithmetic structure in tensors with integer entries, giving a direct correspondence between their orbits and natural number theoretic objects. In the case, of tensors, a nondegenerate pair of integer matrices encodes a cubic ring together with a balanced pair of fractional ideals [3], connecting the characterization of these tensors under the action of to questions about ideals, units, and integral lattices. This unexpected association also provides an opportunity to understand the structure of such tensors algorithmically. Several of the arithmetic problems that arise from such correspondences admit quantum polynomial-time algorithms, even when polynomial-time classical algorithms are not known [12, 4, 16]. Thus, a natural question is whether we can assemble these arithmetic algorithms into efficient algorithms to test the original tensor orbits.
Grochow, Qiao, Stange, and Sun used Bhargava’s Higher Composition Laws I [2] to show that the isomorphism problem for orbits of tensors isomorphism is polynomial-time equivalent to a quadratic principal ideal testing problem and therefore belongs to [14], thus turning a composition law into an algorithmic bridge. The next natural composition law, Bhargava’s Higher Composition Laws II concerning tensors, presents additional algorithmic difficulties for the isomorphism testing problem due to the number theoretic objects associate with such tensors, namely, a pair of modules and cubic ring [26]. The relevant integral modules for two tensors must be compared according to a certain balancing condition between them, and in addition, the determinant form can have repeated roots or vanish identically. Both of these additional structures contribute to the reason that there is not a straightforward modification to the principal ideal testing reduction and corresponding algorithm from the case, that allows us to adapt it to the case.
Theorem 1.1 (Integral tensor isomorphism).
There is a bounded-error quantum polynomial-time algorithm that, given , decides whether they are isomorphic under .
The main invariant organizing the proof is the binary cubic
which we use to split the proof up into essentially two cases, when and .
Our next result concerns compatible balanced-module pair comparison using Wood’s extension of Bhargava’s parametrization, which associates to a nonzero cubic , a cubic ring and a pair of modules that are free of rank three as abelian groups, and equipped with a balancing map [26]. Any isomorphism must therefore preserve the pairing and its balancing map, in addition to the module actions. When considering a fixed binary cubic, we obtain the following consequence en-route to our main theorem.
Theorem 1.2 (Balanced pairs for a nonzero cubic).
Given a nonzero integral binary cubic and two balanced pairs of modules for , each module free of rank three over and specified in an integral basis with its ring action and balancing pairing, isomorphism of the balanced pairs over the ring can be decided in . Equivalently, strict equivalence of two integral tensors with the same nonzero determinant form is in .
Here strict equivalence, denoted , fixes the first factor and uses row and column transformations with equal determinants. Proposition 4.4 proves the fixed-form comparison, and Theorem 4.2 identifies it with the balanced-pair problem. Section 1.3.1 explains the decision criterion.
We additionally identify several families of problems within the larger main problem that admit classical algorithms. A nonzero cubic is a pure cube if it has the form , where is a nonzero integer and is a primitive integral linear form. Its stabilizer contains infinitely many integral shears, so a finite enumeration of first-factor transformations is unavailable. Nevertheless, canonical subspaces of an associated nilpotent operator give a classical algorithm.
Theorem 1.3 (Classical subfamilies).
Integral tensor isomorphism is decidable in deterministic polynomial time on each of the following invariant families: tensors with dependent slices; regular tensors whose determinant form is a pure cube; and tensors of normal rank at most one.
The normal rank is the rank of over . The first and third families reduce to Smith normal form (Lemmas 3.1 and 6.1), which is computable in deterministic polynomial time [17]. The pure-cube family requires a separate argument where a canonical line inside a canonical plane reduces the unbounded shear parameter to an integer linear system and one congruence. Corollary 5.5 proves the pure-cube bound. Sections 1.3.1 and 1.3.2 explain these reductions.
When , no slice combination is invertible and the nonzero-form parametrization of [26] does not apply. Instead, we analyze the polynomial kernel of the matrix pencil through invariant subspaces, and compatible lattice data. Their comparison requires the following auxiliary result which may be of interest independent of its particular application here, thus we state it explicitly.
Theorem 1.4 (Fixed-format polynomial congruences).
Fix positive integers . Given integer polynomials of degree at most in variables, and an integer together with its prime factorization, one can decide in deterministic polynomial time in the binary input length whether the polynomials have a common zero modulo .
Lemma 8.1 proves this consequence of established quantifier-elimination results [23, 21, 18, 9].
1.2 Relation to previous work
Tensor isomorphism over fields and quantum information.
Tensor isomorphism has a direct interpretation in the classification of entanglement. A pure state shared by several parties is a complex valued tensor whose factor dimensions are the dimensions of their local Hilbert spaces. Two pure states are equivalent under stochastic local operations and classical communication (SLOCC) precisely when invertible complex maps on the individual factors relate them, with normalization absorbed into the maps [11]. Thus a tensor describes one qubit and two qutrits. Chitambar, Miller, and Shi use matrix pencils to decide SLOCC equivalence for systems [8]. Restricting both states and allowed local operations to the reals leads to a different quantum theory and different entanglement questions [6]. Integral equivalence retains still finer data: a nonzero integral tensor and define the same normalized complex state, but cannot be integrally isomorphic because unimodular transformations preserve the greatest common divisor of the entries.
Integral orbits and the role of the base ring.
Integral tensor isomorphism is an orbit problem for an arithmetic group. The algorithms of Grunewald and Segal establish decidability for such orbit questions in the relevant rational representations [15], but decidability does not provide the polynomial bit-complexity bound sought here. The recent complexity-theoretic study of tensor isomorphism over commutative rings by Grochow, Qiao, Stange, and Sun [14] makes these quantitative questions explicit and provides the closest algorithmic predecessor to our theorem.
For binary-encoded rational-entry tensors, equivalence under complex changes of basis can be expressed by polynomially many equations [13]. Combining this encoding with the result of Andrews, Garg, and Schost on Hilbert’s Nullstellensatz places this version of tensor isomorphism unconditionally in the counting hierarchy, [1], and the seminal result of Koiran gives membership in under the generalized Riemann hypothesis [19]. These bounds concern complex solutions, whereas an integral isomorphism must satisfy the additional lattice and unimodularity conditions that our algorithm addresses.
Composition laws and balanced pairs.
Bhargava’s Higher Composition Laws II describes nondegenerate tensors using cubic rings and balanced ideal pairs [3]. Wood extends the description to balanced pairs of modules for every nonzero binary form [26], removing the nondegeneracy condition. We use Wood’s characterization of nonzero binary cubics to obtain a single algorithm across all discriminants. We treat the case when , the identically zero form, separately since this case is not handled in Wood’s generalization. We instead handle this case through a direct argument about certain invariant quantities of the polynomial kernel of the matrix pencil .
Module isomorphism.
Ordinary module isomorphism has substantial existing algorithmic theory. Chistov, Ivanyos, and Karpinski give classical polynomial-time algorithms for explicitly represented modules over finite-dimensional algebras over finite fields or algebraic number fields [7]. Over integral orders, Bley, Hofmann, and Johnston reduce lattice isomorphism to principality in an endomorphism order, and give a quantum polynomial-time reduction to the required explicit semisimple decomposition under their splitting hypothesis [5]. They also prove a quantum polynomial-time algorithm for integral matrix similarity [5].
For an individual module in our cubic setting, clearing denominators in the action of a generator of already reduces module comparison to that integral matrix-similarity problem [5]. The extra requirement for a balanced pair is that the two module isomorphisms preserve the pairing. We encode this requirement by a single compatible homomorphism lattice and verify the algebraic hypotheses needed by the existing arithmetic algorithms. The same principle reappears on the singular boundary with a different diagram.
Organization.
Section 1.3 presents the techniques, the complete case division, and the allocation of classical and quantum work. The detailed proofs begin with notation and elementary lattice reductions, followed by the balanced-module comparison and the first-factor action. Sections 6-8 treat singular pencils. Algorithm 1 assembles the procedure, and Proposition 9.1 proves the arithmetic reduction. Appendix A gives an alternative proof for nondegenerate tensors using the objects that come directly from Bhargava’s Higher Composition Laws II [2].
1.3 Technical overview
The determinant form divides the proof into two routes. Write for the matrix pencil associated with , and . If , some rational combination of the slices is invertible and we call this the regular case. If , every combination is singular. In the regular case, we retain the integral structure through two modules and a balanced pairing. In the singular case, we recover it from a vector in the kernel that varies polynomially with . Each route has the same progression: identify the structure, express the compatibility required of an isomorphism, and decide that compatibility by an arithmetic test. Figure 1 summarizes the routes at the end of this overview.
We use the isomorphism convention
All changes of basis are unimodular, that is, their determinants are . As a preliminary step, dependent slices reduce to a pair , whose comparison is a Smith-normal-form computation (Lemma 3.1). We may therefore assume below that the slices are independent. Whenever two inputs have different values of a structural invariant used in the case division, we reject.
1.3.1 Nonzero determinant: preserve the balanced pair
Match the determinant forms.
The first factor changes the variables of the binary cubic, while the other two factors contribute a sign. We consider the regular case where and spit it into the cases where the discriminant of is non-zero vs. zero. In the case where the discriminant is equal to zero, must either have a repeated root or a single root with multiplicity three, which we call the pure cube case. For a nonzero cubic that is not a pure cube, there are at most six integral changes of variables carrying it to another fixed cubic. Lemma 5.1 computes this complete list in polynomial time, using binary cubic equivalence and a separate normalization for a double root [10]. Each candidate leaves a comparison at an exactly fixed form . Pure cubes have an infinite stabilizer and we handle that exception at the end of this branch.
Record the pairing by a commuting square.
For a fixed nonzero , Wood’s parametrization supplies a cubic ring (a ring free of rank three over ), two modules that are free of rank three over , and a pairing which respects the ring action [26]. Consequently, independently identifying the two modules does not yet identify the tensor as the chosen maps must preserve the pairing as well.
Note that some has , and replacing both pairs by makes invertible over with equal determinants. After this relabeling, let
where the operator records the second slice relative to the first and describes the action of a rational generator of the cubic algebra [26]. Fixing an gives the linear functional , and collecting these functionals turns the pairing into the integral module map , where is the dual lattice. Lemma 4.3 identifies strict equivalence with the existence of unimodular maps and satisfying
The first equation is a commuting square. Together the equations recover the second slice, since . When , the square forces , giving ordinary integral matrix similarity.
Decide compatibility by principality and a row-lattice test.
We first allow compatible maps to be noninvertible. This makes their equations linear and gives the homomorphism lattice
Its second condition says that the companion map is integral. Similarly, compatible endomorphisms of the target form
Both are computed by integer linear algebra. Composition makes a ring acting on . The reason to test principality is that if an isomorphism exists, every compatible map is a target endomorphism composed with , and thus .
To put this observation into the arithmetic algorithm, first test rational similarity of and, if it succeeds, choose with . Then lies in the rational centralizer of , the algebra of rational matrices commuting with . In that algebra, is an order, meaning a unital subring whose additive group is a full integral lattice, and is a full left -lattice. Principality asks whether is free of rank one over .
Principality alone does not certify an isomorphism since a generator may have determinant other than . We detect this using the lattice generated by all rows of a -basis of . The exact criterion is
Indeed, principality gives a generator with . Since every element of is integral and , the rows of all compatible maps generate exactly the row lattice of . Equality with forces to be unimodular and its companion is integral by construction and has the same determinant, hence is unimodular too. This proves the criterion without computing the generator.
We therefore need only a principality decision and a Smith-normal-form test. Bley-Hofmann-Johnston supply the quantum principality algorithm [5]. The hypothesis of the relevant algorithm is satisfied since the rational canonical form explicitly decomposes the centralizer modulo its nilpotent radical into full matrix algebras over number fields. This is the decomposition required by the necessary algorithm from [5](Proposition 4.4 and (4.10)).
The pure-cube exception: replace an infinite search by a flag.
In the case where is a pure cube, we normalize it to the form with . Its remaining slice transformations are
The fixed-form test we applied in the repeated root case still applies, but there are now infinitely many values of . The useful invariant in this case is a line inside a plane. Since from [26] is nonzero and , set
This nested pair is referred to as a flag. The shear replaces by , preserving its image and kernel and hence the flag. Every isomorphism must therefore carry this flag, and the output flag , to their counterparts for the target.
Intersecting the subspaces with retains all their integral points and gives saturated lattices. Bases adapted to these lattices make upper triangular and strictly upper triangular, and force the comparison maps to be upper triangular. Their diagonal entries leave only finitely many sign choices. For each choice, the remaining equations reduce to an integer linear system. Proposition 5.4 makes this calculation explicit and yields a deterministic polynomial-time algorithm.
1.3.2 Zero determinant: recover the kernel structure
When , there is no invertible rational slice and the nonzero-form parametrization is unavailable, and the replacement is the kernel of the pencil . We first separate singularity caused by unused directions, and the way the remaining kernel varies with determines the comparison problem.
Remove the elementary cases.
The normal rank is the rank of over . If it is at most one, the independent slices share either an image line or a row-space line. Removing unused directions leaves a single integer matrix, handled by Smith normal form (Lemma 6.1). At normal rank two, compute
If both are nonzero, saturated integral bases expose a common zero column and a common zero row. Removing them leaves an integral tensor, handled by the known quantum algorithm [14]. In the remaining cases, compare the ordered pair of common-kernel dimensions and, if necessary, transpose both pencils to arrange .
Measure how the kernel varies.
A homogeneous polynomial kernel vector is a nonzero vector
Its least possible degree measures how much the kernel direction must vary with the slice coordinates. Degree zero would be a common right-kernel vector, which we have excluded. On the other hand, the cross product of two independent rows of gives a quadratic kernel vector. Canceling any common polynomial factor therefore leaves or .
At the least degree, the vector is unique up to rational scaling. Clearing denominators and dividing all integer coefficients by their gcd gives a primitive integral vector, unique up to sign. Its coefficients are found by solving , , and , first for and then, if needed, for (Lemma 6.2). This supplies both an invariant degree and canonical coefficient data.
Degree one: preserve a plane and a line.
For , the relations , , and determine an input plane that both slices send into the output line . In integral bases adapted to these saturated subspaces,
Here is a row, are integer matrices, is nonsingular, and . The five rows of record the five potentially nonzero entries of the pencil as linear forms.
We must also remember their geometric roles. Mark the sublattices and in the target . Their intersection marks the first coordinate, and their quotients by that intersection distinguish the and blocks. Preserving them enforces the block pattern coming from the input plane and output line. Lemma 7.1 gives the exact criterion
As in the regular case, we form its homomorphism lattice and target endomorphism order. After a rational identification, the algorithm of [5] applies, and the rational endomorphism algebra has an explicit semisimple quotient consisting of full matrix algebras over . Principality, together with row-lattice equalities for the and components, certifies an integral isomorphism, and the two equalities certify unimodularity exactly as before (Proposition 7.2).
Degree two: the kernel coefficients force the other maps.
For a quadratic kernel, the three coefficient vectors form a rational basis of the input space. Write , where and is nonsingular. The basic linear relations among these monomials are the two rows of
The total output span has dimension two. Using an integral basis of its saturation gives a reduced pencil with
Thus records the kernel coefficients and records how the pencil realizes their relations in the output lattice. These two integral matrices retain the lattice information beyond the common rational model (Lemma 7.3).
The advantage of this description is that only the first-factor matrix remains to be chosen. Define its symmetric-square action by . The basic relations transform by
Absorbing the primitive-kernel sign into the comparison maps, the kernel relation therefore forces , and the reduced pencil forces . First compare and with their target values. Once they match, the forced maps have determinant of absolute value one whenever . It remains only to test their integrality:
Proposition 7.4 proves that these conditions are equivalent to tensor isomorphism.
Turn integrality into a fixed system of congruences.
Choose to clear denominators. The entries of and are integer polynomials in the four entries of . Requiring them to vanish modulo gives four linear and nine quadratic congruences. For each fixed , add . We obtain fourteen equations of degree at most two in four variables.
This finite test is sufficient because reduction from to is surjective [5]. Multiplying by reduces the determinant- case to this statement. Thus a residue solution lifts to an integer matrix with determinant exactly . The lift preserves the cleared-denominator congruences, hence makes the two forced maps integral and therefore unimodular. This is the essential passage from modular feasibility to an integral tensor isomorphism. The sign is fixed globally, including across all prime-power factors of (Theorem 8.2).
Decide the congruences in polynomial bit complexity.
The number of equations, variables, and their degrees are fixed, but the modulus may be exponentially large in its bit length. We use Theorem 1.4 to decide solvability without enumerating residue classes. Given the factorization of , the Chinese remainder theorem reduces the question to prime powers . Solvability there is expressed by a fixed formula over , and the unknowns are integral and each polynomial value has valuation at least , where the valuation counts powers of . This retains the full exponent and expresses precisely the finite congruence condition.
Quantifier elimination turns this fixed formula into a fixed collection of arithmetic tests. Pas handles all but finitely many fixed exceptional primes, while elimination in the value group and residue field leaves integer comparisons and fixed-degree univariate root tests, while Macintyre handles the exceptional primes [23, 9, 18, 21]. The resulting tests have polynomial bit complexity (Lemma 8.1). Shor’s algorithm supplies the factorization [25], so this branch is in . Only the existence of a residue solution is needed and lifting proves sufficiency without requiring the congruence algorithm to output one.
1.3.3 Completing the algorithm
The two routes, together with the elementary cases and the pure-cube flag test, exhaust all tensors. The structural reductions use polynomial-time rational and integer linear algebra together with fixed-degree polynomial calculations, and the lattices, coefficient matrices, and congruence modulus have polynomial bit length. The quantum work consists of the [5] principality procedures, the known comparison, and integer factorization. Combining these procedures with standard error amplification proves Theorem 1.1. Algorithm 1 gives the complete case division.
In the case, padding each slice of a tensor by a zero row and column preserves and reflects integral isomorphism (Proposition 9.1). Composing this embedding with the reduction of Grochow–Qiao–Stange–Sun [14] places their real-quadratic principality problem inside the identically singular case (Corollary 9.2). Thus the kernel analysis reaches a part of the tensor problem that already contains substantial arithmetic structure.
Integral tensor isomorphism Balanced modules Match determinant forms; retain two modules and their pairing Lemma 5.1; Theorem 4.2 Polynomial kernel Compute its least degree Lemma 6.2 Preserve the pairing A compatible integral square Lemma 4.3 Encode the kernel data : marked diagram : coefficient matrices Lemmas 7.1 and 7.3 Principality and row lattices BHJ principality decision and a Smith-normal-form test Proposition 4.4 Two arithmetic tests : principality and row lattices : fourteen congruences in four variables; unimodular lifting Proposition 7.2; Theorem 8.2 f_{T}\not\equiv 0$$f_{T}\equiv 0
Figure 1: The two main proof routes, omitting the elementary cases and the separate core comparison. The nonzero-form route shown is for non-pure cubes; pure cubes use the separate classical flag test. BHJ denotes Bley–Hofmann–Johnston [5]. In the quadratic-kernel case, quantum factorization supplies the input needed by the classical fixed-format congruence test.
2 Preliminaries
2.1 Tensor and action conventions
For , write
A tensor is regular if , and we say it is nondegenerate if where for a binary cubic , we use
For nonzero , its discriminant is nonzero if and only if its three projective roots over are distinct. For and , our action is
This is the usual tensor action on the slices . Writing the right action as instead of a transpose does not change the orbit relation. Define
We also regard as the bilinear map
Then means that there are unimodular such that
The conventions agree exactly: if in (2.1), then in (2.4). We use for slice transformations and for first-input maps in bilinear coordinates. In either notation, acts on the second input and on the output.
For slices we use
Strict equivalence, denoted , means equivalence under with . It preserves the determinant form exactly.
2.2 Lattices and unused directions
A full rational lattice in is a subgroup with . More generally, a lattice may be full in a specified rational subspace wehre its rank is the dimension of that subspace. A sublattice is saturated if , with and , implies .
For a bilinear map between free abelian groups, define its unused second-input directions and its saturated output span by
The associated reduced map is
3 Basic integral reductions and lattice comparison
3.1 Dependent slices
Lemma 3.1 (Dependent slices).
Isomorphism of integral tensors with linearly dependent slices is decidable in deterministic polynomial time.
Proof.
The zero tensor is recognized directly, so suppose that . If the two slices are linearly dependent over , then the -module generated by their vectorizations has rank one. Hermite normal form therefore computes a unimodular first-factor change sending
for some nonzero . Thus a tensor with dependent slices is, after an allowed change of basis, simply one integer matrix together with an unused first-factor direction.
It remains to compare two tensors and . If
then by (2.1),
Since , obtaining a zero second slice forces . Unimodularity of then gives . This sign may be absorbed into , so
for some .
The latter is exactly unimodular left-right equivalence of integer matrices, which is decided by Smith normal form. Hence the dependent-slice case is decidable in deterministic polynomial time. ∎
3.2 Removing unused directions
The groups and from (2.5) are saturated.
Lemma 3.2.
For two maps with the same ambient dimensions and the same ranks of and , integral isomorphism is equivalent to integral isomorphism of their reduced maps (2.6).
Proof.
An isomorphism preserves the intrinsically defined groups and and induces an isomorphism of the reduced maps. Conversely, choose integral bases adapted to these saturated sublattices. The removed input directions are zero columns and the removed output directions are zero rows. An isomorphism of the reduced maps extends by any unimodular identifications of the unused complements. ∎
4 Balanced modules for nonzero determinant forms
This section compares two regular tensors with the same determinant form. The parametrizations of Bhargava and Wood [3, 26] allow us to identify the objects to be compared.
4.1 An invertible first matrix and the associated cubic ring
Suppose . The polynomial is nonzero and has degree at most three. Hence some satisfies . Make the same replacement on both tensors:
This transformation is induced by is reversible, and preserves strict equivalence. After relabeling, we will continue to denote the first matrix in the tuple as so that . This makes explicit the reduction to a nonzero leading coefficient used in Wood’s construction [26, Sections 3.1–3.3], which produces the associated modules and cubic ring.
Write
and set
Let denote the image of in , so that . The associated rational algebra and cubic ring are
The displayed lattice is a ring, free of rank three over , and [26, Section 2]. The element need not belong to , so its action on an integral module is generally rational rather than integral. The coefficient map used to recover the tensor is
Definition 4.1 ([26, Section 3]).
A balanced pair for consists of -modules , each free of rank three as an abelian group, and an -linear map
In integral bases, regard as a row vector and as a column vector, and write
We require the balance condition
A based balanced pair includes choices of bases for which exactly. An isomorphism of balanced pairs consists of two module isomorphisms preserving .
Here abbreviates ; tensoring over imposes . We write the balanced pairing as to distinguish it from the vector-valued tensor map in (2.3).
Theorem 4.2 ([26]).
For every nonzero integral binary cubic , tensors with determinant form correspond bijectively to based balanced pairs for . The correspondence is compatible with integral changes of basis and identifies strict-equivalence classes with isomorphism classes of balanced pairs.
Proof.
This is [26, Theorem 3.1], specialized to degree three and the slices . The construction is explicit in [26, Section 3.1], and first-factor changes are treated in [26, Section 3.3]. ∎
When , the algebra is a product of number fields and the modules can be represented by fractional ideals. This recovers the balanced-ideal description underlying Bhargava’s theorem [3, Theorem 2]; see also [26, Proposition 5.4 and Theorem 5.5].
4.2 The compatibility diagram
Let with action . The introduction of will make our conditions of finding two module isomorphisms that respect the necessary balancing map easier to analyze. Let read the coefficient of . The balanced pairing gives an integral map
Thus is represented by and is -linear by the balancing relation. Let
On and , the actions of are respectively and [26, Proposition 3.3]. In particular,
Lemma 4.3.
Suppose have the same nonzero determinant form and the common replacement (4.1) has been made. Then if and only if there are integral module isomorphisms and making
commute. Equivalently, there are satisfying
Proof.
A rational map is -linear if and only if it commutes with the action of and an integral module map must additionally preserve the integral lattices. Thus (4.7) expresses the commuting square and the module condition on . It also implies the module condition on , since and .
Using , the equations give
Hence and . Since , one has , so this is strict equivalence. Conversely, a strict equivalence gives the same equations. By Theorem 4.2, it preserves the whole balanced pair. ∎
4.3 Lattice isomorphism wrapper
A -order in a finite-dimensional rational algebra is a unital subring that is a full lattice. We use only the principality decision consequence of Bley–Hofmann–Johnston [5, Propositions 8.1–8.2 and Remark 8.8(b)]. Given an order and a full left lattice by bases, this decides in quantum polynomial time whether the lattice is free of rank one over the order, provided the semisimple quotient of the algebra is explicitly decomposed as a product of full matrix algebras over number fields. No free generator is requested or used in the surrounding computation. The quotient is by the Jacobson radical, the largest nilpotent two-sided ideal. We describe the explicit required decomposition below.
Proposition 4.4.
Strict equivalence of integral tensors with the same nonzero determinant form is decidable in .
Proof.
Make (4.1) and form and . First test rational similarity using rational canonical form. If are not similar, reject by Lemma 4.3. Otherwise compute with .
The compatible integral homomorphisms are represented by
The second map is determined by . Compatible endomorphisms of the target form the order
Both lattices are computable by integer linear algebra. For example, keep the integral unknowns , solve and , and project to . Composition makes a left -module.
Let
Clearing denominators shows that is a full order in . Moreover,
is a full left -lattice. Indeed, every rational solution of has the form for some , and after multiplying by a suitable nonzero integer it satisfies the integrality conditions defining .
Let be a -basis of , computed by the integer linear algebra above with polynomial bit length. Define the row lattice
This is the lattice generated by all rows of all matrices in . It is computed from the stacked matrix
Since , this matrix has at most rows and three columns. Smith normal form decides in polynomial time whether . We claim that
If is a compatible isomorphism, every has , so
Moreover, the rows of generate , so the row-lattice test succeeds. Conversely, suppose . Fullness gives , hence . Set for the correctness argument; neither nor is computed by the algorithm. Then . Since every is integral, every row of is an integer linear combination of rows of . Conversely, implies . Thus
If the row-lattice test succeeds, . Its companion is integral by the definition of , and because . Therefore is also unimodular, and Lemma 4.3 gives strict equivalence. This implements the additional isomorphism condition in the compatible-homomorphism reduction of [5, Propositions 3.1 and 8.1] using only a principality decision and a polynomial-time row-lattice computation.
It remains to supply the algebra decomposition. Regard as a -module with acting as . By the rational canonical form decomposition [5, Proposition 9.11],
where ranges over monic irreducible polynomials and is the multiplicity of the block . There is an explicit, efficiently computable quotient map with
by [5, Corollary 9.9 and Proposition 9.11]. Every is a number field. The required arithmetic hypotheses therefore hold, and the cited quantum procedures give the decision algorithm. ∎
5 The first-factor action on regular tensors
The fixed-form test compares the last two factors, so we now account for all first-factor changes that combine the two matrix slices and .
We may arrange that the last two transformations have equal determinants. Indeed, if and , replace by . The resulting tensor is unchanged, while because the slices have size three. Thus every full isomorphism is represented with , followed by strict equivalence.
5.1 Finite determinant-form comparison
A pure cube is a form with and a primitive integral linear form. We note that, by definition, the discriminant of is equal to zero only when either has a repeated root of multiplicity two or a single repeated root of multiplicity three. In the following lemma, there are essentially two cases we consider, when vs when although in the statement of condition in 5.1, we combine the repeated root case with the case where since their results are similar.
Lemma 5.1.
There is a deterministic polynomial-time procedure with the following properties.
(i) For nonzero binary cubics that are not pure cubes, it lists all satisfying . There are at most six such elements. (ii) Any pure cube can be transformed into with . Two pure cubes are equivalent precisely when these positive integers agree. The stabilizer of consists of acting by .
Proof.
First suppose the discriminant is nonzero. Unequal discriminants rule out integral equivalence. For equal discriminants, apply Cremona’s bilinear-factor construction with source and target arranged so that the rational equivalence matrices satisfy
for the determinant-twisted action [10, Proposition 14, Theorem 15, and Section 6]. Retain the integral matrices with determinant , and for each put and . Since is cubic,
The conversion is an involution on , so it gives the complete required list and preserves the bound of at most six elements. The construction factors polynomials of fixed degree in a fixed number of variables, so it is polynomial time.
For discriminant zero, factor over with multiplicities. Primitive integral factors give either
where is also a primitive integral linear form. Bezout’s identity allows for the computation of integers such that . This allows us to define a matrix so that from our definition of how acts on , we get that . Thus, this computation extends the coefficients of to a unimodular matrix sending to .
For the remainder of the proof, write a general first-factor transformation as
as in Section 2.1. This is distinct from the particular normalizing matrix constructed above. For a pure cube, a sign change gives with . If stabilizes , then , so , , and unimodularity gives . This proves (ii).
For , the same operations give the unique representative
Replacing by changes by , and changing the sign of replaces by . We emphasize that we perform this normalization so that we don’t have to consider an infinite family of possible binary cubic forms since can be any integer, and we can instead work with a representative that is equivalent to all possibilities.
The stabilizer of (5.2) contains the identity and, only if , the matrix
so that we maintain integrality. Indeed, preservation of the repeated factor forces and and comparison of the other factor gives and . Normalize both forms, reject if their representatives differ, and otherwise compose the recorded normalizations with these stabilizer elements. Different root multiplicity patterns cannot be equivalent. This proves (i) in the remaining case. ∎
Corollary 5.2.
Isomorphism of regular tensors whose determinant form is not a pure cube is in .
Proof.
List the at most six with and apply Proposition 4.4 to and for each. The determinant-sign adjustment above ensures that every full isomorphism is included. ∎
5.2 Pure cubes and the canonical line and plane
Suppose both forms have been normalized to
Then and has characteristic polynomial , so and likewise for . Full isomorphism asks for
For a nonzero nilpotent with , define
We note that the operator is the natural object to study because, once is invertible, it records the second slice relative to the first since . Moreover, in the pure-cube case
implies
so the characteristic polynomial of is , and hence . Thus the pure-cube condition turns the matrix pencil into the study of a nilpotent operator.
More importantly, the subspaces determined by the kernel and image of are preserved by every allowed isomorphism. Indeed, the first-factor stabilizer acts by
For the transformed pair,
Since ,
and therefore
The factor is invertible and commutes with , so
After also applying the right basis change , the corresponding operator for the target tensor is conjugate to . Hence must carry the canonical subspaces
to the corresponding subspaces for . These are therefore intrinsic invariants of the tensor under the entire pure-cube isomorphism problem.
The nested sequence of subspaces
is called a flag. In our setting is one-dimensional and is two-dimensional. A basis is said to be adapted to this flag if its initial basis vectors span the successive subspaces of the flag, namely
We now choose such a basis.
For any subspace , we use the notation
for the image of under the linear map . Thus the relations
mean concretely that sends every vector in to zero, every vector in into , and every vector in into . In the adapted basis this says
These conditions force
Thus is strictly upper triangular in any basis adapted to the flag.
On the output side, let
Since conjugates to , it carries the flag of to the corresponding flag of :
Choose an output basis adapted to this flag, so that
Because maps each member of the source flag to the corresponding member of the target flag, its matrix in these adapted bases is upper triangular. Finally,
and multiplying an upper-triangular by the strictly upper-triangular gives
Thus the forms in the following Lemma 5.3 are not arbitrary normal forms, they arise directly by choosing integral bases adapted to canonical subspaces that every pure-cube isomorphism must preserve.
Lemma 5.3.
The subspaces in (5.5) have dimensions one and two, respectively, and satisfy
Every pair satisfying (5.3) with is strictly equivalent to
The bases respect the flags of and . Every isomorphism (5.4) preserves these flags, so are upper triangular in adapted bases.
Proof.
The restriction of to the nonzero invariant space is nilpotent, so . If this intersection had dimension at least two, both and would have dimension at least two, contradicting rank–nullity. Thus , and the dimension formula gives . The stated inclusions follow from and .
Since , the map sends onto . Intersect each flag with its integral lattice. Saturation allows a basis of the rank-one intersection to extend first to a basis of the rank-two intersection and then to a basis of the whole lattice. Choose these bases on both sides of . In these coordinates is upper triangular, sends the first subspace to zero, the second into the first, and the whole space into the second, giving its strictly upper-triangular form. Sign changes make the diagonal entries of positive. Since the original matrix satisfies , while a change of bases gives
the resulting positive determinant must still equal . Hence , so these basis changes give a strict equivalence.
Replacing by changes to
The factor is invertible and commutes with , so this map has the same kernel and image as . Multiplying by also preserves them. The same is true for . Thus every transformation in (5.4) carries the source flags to the target flags, which forces upper triangularity. ∎
5.3 One integer linear system and one congruence
Consider two adapted pairs of the form (5.6). An equivalence between them has the form
where, by the flag argument of the previous section, may be taken to be upper triangular. Equivalently,
We first account for the possible diagonal signs of and . Since an upper-triangular unimodular integer matrix has diagonal entries in , each diagonal entry of and is a sign. Moreover, is strictly upper triangular, so has the same diagonal entries as . Comparing diagonal entries in
therefore gives
Since are all positive and , an equivalence is possible only if
and in that case the corresponding diagonal signs must agree:
Write these three common signs as
and package them into the diagonal sign matrix
There are only possible choices of , and we simply try each one. We must also try the independent sign
coming from the pure-cube stabilizer. Thus there are only sign choices in total.
Fix one choice of and . Since , define
Equivalently,
Because the diagonal of both and is precisely , multiplying on the right by removes these signs. Hence and are upper unitriangular: they are upper triangular and all three of their diagonal entries are .
Substituting
into the two equivalence equations and then multiplying both equations on the right by gives
and
Define the sign-adjusted source pair
Since , we have
so the first equation becomes
Because ranges over all integers, so does . We may therefore rename as . The two equations are then simply
Thus the only purpose of the finite sign enumeration is to remove the possible diagonal signs of and . For simplicity, for the remainder of this fixed sign choice, relabel
After this relabeling we may assume that and are upper unitriangular and that the equivalence equations are
Write
We may now write the remaining unknown upper-unitriangular changes of basis as
Before solving for these unknown entries, compare the and entries of
Because and are upper unitriangular, these two entries cannot be changed by the off-diagonal parameters . They give the necessary conditions
If either equality fails, the current sign choice cannot give an equivalence and is rejected. After this check, the remaining equations determine whether suitable integers
exist.
The matching entries may vanish. The equations and are exactly
All other entries already agree. The first three equations form
Proposition 5.4.
For two adapted pairs and a fixed sign choice with matching , equivalence is decided by one integer linear system and one congruence.
Proof.
Solve (5.14) over and reject this choice if it has no solution. Otherwise choose a solution and set
Put and . For , define
For any integral basis of , let
We claim that this sign choice succeeds exactly when
Take in the transformation supplied by . It makes equal to and changes the corner entry to . Further transformations fixing these matched entries are precisely solutions of , together with the free . Their changes of the corner are
Passing to the homogeneous system is legitimate because the upper-triangular transformations and the integral shears form a group.
The free terms give exactly . The quadratic expression is additive modulo on the kernel lattice. To see this, let and belong to . The homogeneous equations give
Consequently
Thus is a group homomorphism. Its image is generated by the , and its preimage in is .
This describes exactly the attainable translations. Every value in (5.19) is divisible by . Conversely, choose a lattice vector attaining the residue of any multiple of modulo , and use to supply the remaining multiple of . The set of possible corner changes is therefore , proving (5.18). ∎
Corollary 5.5.
Isomorphism on the regular pure-cube family is decidable in deterministic polynomial time.
Proof.
First compare and , and reject if they differ. If both dimensions are one, apply Lemma 3.1. In the remaining regular case both pairs of slices are independent. Normalize both forms to and reject if their positive coefficients differ. The normalized second slices are nonzero, so Lemma 5.3 applies. Compute the adapted pairs, compare , and enumerate the signs needed to make and unitriangular. For each choice compare and apply Proposition 5.4. The flag bases, integer linear solutions, kernel bases, and gcds are efficiently computable. No division by or occurs, so the same calculation applies when either vanishes. ∎
Corollary 5.6 (The regular locus).
Integral tensor isomorphism restricted to is in .
Proof.
Being a pure cube is invariant under integral changes of variables. Reject if exactly one form is a pure cube. Otherwise apply Corollary 5.2 or Corollary 5.5. These alternatives exhaust the nonzero binary cubics. ∎
6 The zero-determinant case
We now assume . The determinant no longer provides a nonzero cubic ring parameter. After the elementary reductions below, we instead use a polynomial vector in the kernel of . Its least possible degree is either one or two. A linear kernel vector gives a compatible linear diagram, while a quadratic kernel vector gives two coefficient matrices whose comparison reduces to a fixed system of congruences.
6.1 Normal rank at most one
The normal rank is the rank of over . On the zero-form locus it is at most two and equals
Indeed, a nonzero maximal minor of has degree at most two and cannot vanish at all three values .
Lemma 6.1.
Isomorphism on the normal-rank-at-most-one locus is decidable in deterministic polynomial time.
Proof.
By Lemma 3.1, we may assume that the two slices are linearly independent. Since the normal rank is at most one, every specialization has rank at most one. In particular, and are nonzero rank-one matrices, so over we may write
with nonzero .
We first record the elementary structure forced by the normal-rank assumption. Suppose that both pairs and were linearly independent. After rational changes of basis in the output and input spaces, we could arrange that are the first two output basis vectors and that are the first two coordinate covectors. In these bases, has a nonsingular diagonal block and hence has rank two. This contradicts the assumption that every linear combination of and has rank at most one. Therefore either are dependent or are dependent. These two alternatives cannot both occur, since then would be a rational scalar multiple of , contrary to the independence of the slices.
Suppose first that are dependent. Then all images of the two slices lie in the same rational line
Let be a primitive generator of the saturation of this line in . We may then write
with . Lemma 3.2 deletes the two unused output directions, so the tensor is represented exactly by the integer matrix
Tensor isomorphism is therefore ordinary unimodular left-right equivalence of this matrix, which is decided by Smith normal form.
Suppose instead that are dependent. Then the two slices have a common two-dimensional rational kernel
After intersecting with and saturating, Lemma 3.2 deletes these two unused second-input directions. The quotient has rank one, so the reduced tensor is a tensor, equivalently a integer matrix whose two columns are the images of a generator of the remaining input direction under the two slices. Again, tensor isomorphism is unimodular left-right matrix equivalence and is decided by Smith normal form.
Finally, the two branches cannot be confused by an isomorphism. In the first case the total image has dimension one and the total row space has dimension two, while in the second case these dimensions are two and one, respectively. These dimensions are invariant under the tensor action. All required lattice saturations, basis changes, and Smith normal forms are computable in deterministic polynomial time. ∎
6.2 Two nonzero kernels
Assume from now on that the slices are independent and have normal rank two. Compute over
Each dimension is zero or one and we regard as a subspace of the dual output space.
If both kernels are nonzero, then each is a one-dimensional rational subspace. Choose primitive integral generators for
and extend them to unimodular integral bases. On the input side, place the generator of in the third coordinate. Since
both slices vanish on this basis vector, so the third column of both and is zero.
Similarly, a generator of satisfies
Choose the output basis so that is the third coordinate covector. Then the third row of both slices is zero. Thus, in these integral bases,
In other words, the common right kernel removes one input direction and the common left kernel removes one output direction, leaving a matrix pencil.
The core still has normal rank two. Indeed, deleting a common zero row and column does not change the rank of the pencil, and the original pencil has normal rank two by assumption. By Lemma 3.2, the original tensors are therefore isomorphic exactly when these reduced cores are isomorphic under . The algorithm of Grochow–Qiao–Stange–Sun consequently handles this branch [14, Theorem 3.7]. The core is thus a smaller tensor isomorphism problem, rather than a single fixed rational orbit.
6.3 A polynomial kernel of degree one or two
First compare the ordered dimensions of for the two tensors, rejecting if they differ. The two-common-kernel case has just been handled. If the remaining pattern has , transpose both pencils. Simultaneous transposition preserves the isomorphism question so we may therefore assume throughout the rest of the singular comparison that
We do not yet delete an output direction: the linear-kernel argument will work whether or not is nonzero.
A homogeneous polynomial kernel vector of degree has the form
Comparing coefficients shows that its vectors are exactly the solutions of the rational linear system
We therefore first solve this system with , and use only if the first system has no nonzero solution.
Lemma 6.2.
Suppose has normal rank two and . The least degree of a nonzero homogeneous polynomial kernel vector is either one or two. At that degree, the rational solution space of (6.4) is one-dimensional. It has a primitive integral generator, unique up to sign, whose coefficient vectors are computable in deterministic polynomial time. The degree is invariant under tensor isomorphism.
Proof.
Since has normal rank two, we may choose two of its rows that are linearly independent over . Their cross product is nonzero and is orthogonal to both rows. The third row lies in their -span, since the whole pencil has rank two over , and hence it is orthogonal to the same vector. Therefore the cross product gives a nonzero polynomial vector in the right kernel of .
Each entry of is a homogeneous linear form in , so the coordinates of this cross product are minors and are homogeneous polynomials of degree two. If these three coordinates have a nonconstant common polynomial factor, divide it out. This does not change the kernel relation, because if
and is nonzero, then
over the integral domain . We therefore obtain a nonzero homogeneous polynomial kernel vector whose coordinates have no common nonconstant factor and whose degree is at most two.
This vector cannot have degree zero. A degree-zero kernel vector would be a nonzero constant vector satisfying
identically in . Comparing the coefficients of and would give
so , contradicting the assumption . Hence the least possible degree is either one or two.
It remains to show uniqueness at the least degree. Since has normal rank two, its kernel over the field is one-dimensional. Let
be a polynomial kernel vector of least degree whose coordinates have no common nonconstant factor. Any other polynomial kernel vector lies in the same one-dimensional kernel over , so
for coprime . Since every coordinate of is a polynomial, divides every coordinate of . Coprimality of and then forces to divide every coordinate of . By our choice of , its coordinates have no common nonconstant factor, so must be constant. Thus every polynomial kernel vector is a polynomial multiple of .
If has the same least degree as , that polynomial multiplier must have degree zero. Hence is a rational scalar multiple of . Therefore the solution space of the coefficient equations
is one-dimensional over at the least degree .
Choose any nonzero rational solution of this system. Clearing denominators gives an integral coefficient vector, and dividing all of its integer coefficients by their gcd gives a primitive integral generator. Since the rational solution space is one-dimensional, any two primitive integral generators differ only by sign.
Finally, is invariant under tensor isomorphism. A change of basis in the second input multiplies a kernel vector by an invertible constant matrix, while a change of basis in the first factor makes an invertible linear substitution in the variables . Both operations send homogeneous polynomial kernel vectors to homogeneous polynomial kernel vectors of the same degree, and both are reversible. Hence the least possible kernel degree is preserved.
To compute , solve the rational linear system above first for and, if it has no nonzero solution, for . These systems have fixed size. Rational linear algebra, clearing denominators, and taking gcds all have polynomial bit complexity, so the primitive generator is computable in deterministic polynomial time. ∎
The remaining comparison now has just two cases, distinguished by this one kernel computation. Section 7 treats both. The degree one case reduces directly to the Bley-Hofmann-Johnston algorithms, and degree two case reduces to the direct congruence test proved in Section 8.
7 Comparison through the polynomial kernel
Assume the preliminary reductions of Section 6 have been made, so both pencils have normal rank two and . Compute their least kernel degrees by Lemma 6.2 and reject if they differ.
7.1 A linear kernel gives a compatible diagram
Suppose . Set
The coefficient equations give , , and . The vectors are independent, since otherwise canceling a common linear polynomial would give a constant kernel vector. Also , since its vanishing would put both coefficient vectors in . Thus is a plane, is a line, and
These subspaces are intrinsic and the uniqueness of the least-degree kernel preserves its coefficient span, and the displayed image span then preserves the output line. Intuitively, both slices send one canonical input plane into one canonical output line.
Choose integral bases adapted to and . In these adapted bases, write
The kernel relations
imply
Indeed,
and similarly
Thus the last two input basis vectors are sent by both and into the first output coordinate line. Consequently, the second and third columns of both matrices have zeros in their last two entries, so
Therefore, with , the pencil has the form
Here is nonsingular, since a nonzero vector in would give a common right kernel vector. Also , since the normal rank is two.
The form in (7.1) is simply the original pencil , written in coordinates adapted to the canonical subspaces and . Putting in the last two input coordinates means choosing an input basis for which
while putting in the first output coordinate means choosing an output basis for which
Since , the last two columns of both slices have entries only in the first output coordinate. Thus, writing , the five potentially nonzero entries of are naturally grouped as the scalar linear form , the two entries in the lower-left block, and the two entries in the upper-right block.
Consider the map
which simply records these five linear forms at once. The decomposition
corresponds respectively to the , , and coordinates. We retain
so that an isomorphism of the flattened maps must respect this block structure rather than mixing the and coordinates arbitrarily. Thus , together with , contains exactly the structured data of the pencil in (7.1). We compare together with the inclusions of these two sublattices.
Lemma 7.1.
Two pencils in (7.1) are integrally tensor-isomorphic if and only if there are and such that
Equivalently, the first condition says that the following diagram commutes:
The additional requirements
ensure that the right-hand change of basis preserves the decomposition of the five coordinates into the , , and parts, rather than allowing an arbitrary change of basis in .
Proof.
The two distinguished sublattices force the required block form of . Recall that
Their intersection is
Hence, if for , then must preserve this common rank-one sublattice. Its action there is therefore multiplication by some .
Next, preservation of implies that a vector in the middle -block cannot acquire a component in the last -block, while preservation of implies that a vector in the last block cannot acquire a component in the middle block. Components from either block may, however, be added to the common first coordinate. Thus necessarily has the form
Finally, because preserves and as lattices with equality, its induced maps on
must be unimodular. These induced maps are precisely the blocks and . Hence
Conversely, every matrix of this form preserves both and . We now relate such an to the usual tensor change-of-basis matrices and from
Recall that the canonical input plane has been placed in the last two coordinates and the canonical output line in the first coordinate. Hence every tensor isomorphism has block forms
where
Indeed, must preserve the distinguished output line, while must preserve the distinguished input plane. Replacing and simultaneously by their negatives if necessary, we may assume .
It is convenient to parametrize the remaining blocks of using the same and that occur in . Since , put
The reason for this choice is the upper-right block of the pencil, which is written as the row vector . Indeed, comparing the upper-right blocks in
gives
After transposing, this becomes
Thus setting makes this equation exactly
which is the -block equation occurring in . With this choice of , the upper-left block contains the term . Setting
makes
so that moving this term to the other side produces the required contribution in the first block equation. Hence the inverse transpose and the formula for are forced by expressing the usual tensor isomorphism equations in the block coordinates used by . This is only a reparametrization of the arbitrary unimodular block and column . Thus we may write
The inverse transpose appears because the block of the pencil is the row vector . With these choices, direct multiplication in now gives
These are . Conversely, the displayed formulas recover unimodular from any solution of (7.2). ∎
Proposition 7.2.
Integral isomorphism in the linear-kernel case is decidable in .
Proof.
By Lemma 7.1, the tensors are isomorphic exactly when there are
such that
We first forget the requirement that and be invertible and consider all compatible integral homomorphisms. Define
The conditions defining are linear in the entries of and . Indeed, the equation is linear, while preservation of the fixed sublattices simply forces the corresponding off-block entries of to vanish. Thus is a -lattice computable by ordinary integer linear algebra.
Similarly, using the target diagram on both sides, define its endomorphism order
Composition is componentwise multiplication,
so is a ring and acts on on the left by composition.
The reason for introducing and is that an actual isomorphism would generate all compatible homomorphisms. Suppose, for example, that
is an isomorphism, so both and are unimodular. For any , the composition is an integral endomorphism of the target diagram and therefore belongs to . Hence
Thus the existence of an isomorphism turns the homomorphism lattice into a free rank-one left -module. The remaining problem is to decide this principality condition and then check that a generator is actually unimodular.
We next describe the rational algebra in which this principality problem lives. Over , every diagram in the linear-kernel case can be put into a simple normal form. Since is nonsingular, rational changes of basis first make
Once , the free -block in the matrix from Lemma 7.1 can be chosen to eliminate , so that
Finally, ordinary rational row and column operations on , while using the same source change on the -block, put
Consequently two such diagrams can be rationally isomorphic only if their values of agree. If the ranks are equal, these reductions explicitly give a rational diagram isomorphism
We now compute the rational endomorphism algebra of the normalized target diagram. Write this algebra as . In the coordinates
Lemma 7.1 shows that a rational compatible map has
The three block equations from Lemma 7.1 now become
Hence every element of has the form
The semisimple quotient of this algebra is also explicit. An endomorphism induces independently its scalar action , its action on , its action on , and its action on . This gives a surjective algebra homomorphism
where zero-size factors are omitted. The kernel consists only of the off-diagonal parts that act trivially on these induced spaces. From the displayed block form, a product of three elements of this kernel is zero. Thus the kernel is nilpotent. Since the quotient is semisimple, this kernel is precisely the Jacobson radical, and hence
In particular, the semisimple quotient is a product of full matrix algebras over , exactly the form required by the Bley–Hofmann–Johnston algorithms.
It remains to place the homomorphism lattice inside this single endomorphism algebra. Since is a rational isomorphism from the source diagram to the target diagram, define
For , the element is a rational endomorphism of the target diagram, so
Moreover, is stable under left multiplication by , and after tensoring with it spans . Thus is a full left -lattice in .
We can therefore apply the principality and lattice-isomorphism algorithms of [5, Propositions 3.1 and 8.1–8.2, Remark 8.8]. They decide in whether is free of rank one as a left -module and, when it is, return a free generator satisfying
In that case
is a compatible integral pair, say . We accept exactly when both component matrices are unimodular,
Because , it already satisfies
The block form forced by the two sublattice conditions shows that if is unimodular, then its diagonal blocks are unimodular and hence the two inclusions are equalities. Lemma 7.1 therefore gives a tensor isomorphism.
Finally, it is enough to test the one free generator returned by the algorithm. If an integral diagram isomorphism exists, then
and hence
Thus is free of rank one. Any two free generators of differ by multiplication by a unit of . Such a unit is an integral automorphism of the target diagram and has unimodular component matrices. Therefore every free generator passes the final unimodularity test whenever one does.
All lattices and rational normalizations above have fixed dimension and are computable by polynomial-time integer and rational linear algebra. The only quantum step is the cited Bley-Hofmann-Johnston principality computation. Hence integral isomorphism in the linear-kernel case is decidable in . ∎
7.2 A quadratic kernel gives two coefficient matrices
Suppose instead that is the primitive least-degree kernel. Write
Here is a coefficient matrix, not the unused-direction lattice from (2.5).
Lemma 7.3.
The matrix is nonsingular. The saturated output span has rank two. After choosing an integral basis of that span and deleting the unused output direction, the resulting pencil determines a nonsingular by
These data are computable in deterministic polynomial time.
Proof.
If the coefficient vectors spanned a line, canceling their common polynomial factor would give a constant kernel vector. If they spanned a plane, a rational coordinate change would make the kernel vector , where are relatively prime homogeneous quadratics: any common factor would give a lower-degree kernel. A row of the pencil then gives with linear. Relative primality forces , since a quadratic cannot divide a nonzero linear polynomial. Indeed, from and , we have and . Since and have degree two, whereas and are linear forms, this forces . Applying this to every row of the pencil shows that, in these coordinates, only the third column of can be nonzero. Hence the pencil would have normal rank at most one, contradicting our standing assumption that its normal rank is two. The pencil would have at most one nonzero column, contradicting normal rank two. Thus is nonsingular.
The linear polynomial relations among are exactly the constant linear combinations of the two rows of . To see this explicitly, suppose that linear forms satisfy
Writing
and comparing the coefficients of gives
Thus is a constant linear combination of
the two rows of . Consequently every row of is such a combination, which is precisely why there is a constant matrix with
This follows immediately by comparing the four cubic coefficients. Since , we obtain with . Its entries are read directly from the linear coefficients, and its rank is two because has normal rank two. The columns of the two coefficient matrices of span , so the total output span is , of dimension two. Choose a basis of its saturation and apply Lemma 3.2. The same identity becomes (7.5), with integral and nonsingular. ∎
For , define
The purpose of is simply to record how a change of variables in acts on the three quadratic monomials appearing in the kernel vector. Indeed, if , then
Thus a first-input change on the original pencil induces the change on the coefficient vector ; no additional choice is being made here. Since the rows of generate all linear relations among these three monomials, the relation matrix must transform compatibly as well. Direct multiplication gives
Proposition 7.4.
In the quadratic-kernel case, and are isomorphism invariants. After comparing these invariants, the tensors are isomorphic if and only if some satisfies
Proof.
By Lemma 3.2, compare the reduced pencils. An isomorphism satisfies with and . It carries the primitive polynomial kernel to the target primitive polynomial kernel up to sign. Indeed, both and the coefficient substitution are unimodular integer maps, so they preserve the gcd of all coefficients. Absorb the sign by replacing simultaneously by their negatives. The input map is then forced to be
Using (7.5) and (7.7) forces the output map to be
Taking determinants proves invariance of both absolute determinants. Conversely, after these invariants match, the two displayed maps have determinant of absolute value one. The integrality conditions (7.8) therefore make them unimodular, and the same identities give an isomorphism. Either choice of sign of each primitive kernel gives the same criterion. ∎
8 Direct comparison by polynomial congruences
We now decide the quadratic-kernel criterion of Proposition 7.4. At the end of Section 7, all data associated with the two tensors have already been computed except for the first-factor change of variables
Once is fixed, the changes of basis in the other two factors are forced. Proposition 7.4 shows that tensor isomorphism is equivalent to the existence of such an for which
Thus we are not independently solving for the entries of three matrices. The only unknowns are the four integers . The entries of the two displayed matrices are rational expressions determined by these four unknowns. The first matrix depends linearly on , while the second depends quadratically through .
The remaining difficulty is therefore an integrality problem rather than a system of exact polynomial equations over . Choose a positive integer clearing the fixed denominators of and . After multiplying by , the two matrix conditions above are equivalent to requiring certain integer polynomials in to be divisible by . The matrix contributes four such congruences and the matrix contributes nine, giving thirteen congruences in total. In addition, the requirement means
which gives one further quadratic congruence modulo .
Consequently, for each fixed , the remaining question has the form
where the are integer polynomials of degree at most two. In this sense, we seek a common zero. One residue-class quadruple must satisfy all of the congruences simultaneously. It is also why quantifiers naturally enter the argument. The statement that such a quadruple exists is an existential formula over the finite ring .
Lemma 8.1 supplies the algorithmic tool for deciding exactly this fixed-format existence problem once the modulus is factored. Theorem 8.2 will then use unimodular lifting to pass from a residue-class solution modulo to an actual matrix , and Proposition 7.4 will convert that lift back into a tensor isomorphism.
8.1 A fixed-format congruence algorithm
The following algorithmic consequence of quantifier elimination is used with fixed numbers of variables and equations and fixed degree. The coefficients and the modulus remain part of the input; in particular, prime-power exponents are not bounded.
Lemma 8.1.
Fix positive integers . Let be integer polynomials in variables of degree at most . Given their coefficients and an integer together with its prime factorization, one can decide in deterministic polynomial time in the binary input length whether the have a common zero over .
Proof.
Write the given factorization as
By the Chinese remainder theorem, the polynomials have a common zero modulo if and only if they have a common zero modulo every . It therefore suffices to give a polynomial-time test for one prime power
The prime and exponent are part of the input and need not be bounded.
Let . For each monomial of total degree , introduce a coefficient parameter , and put
Here denotes the tuple of all these coefficient parameters. For a particular input, we substitute the coefficients of for the corresponding entries of , using zero for absent monomials. Thus after specialization. The entries of are given data. The entries of are the unknowns we seek. Since are fixed, the number of coefficient slots and the expressions are fixed, although the input coefficients can have arbitrarily large bit length.
Let be the field of -adic numbers, let be its valuation, normalized by and , and let
For a nonzero ordinary integer, counts its factors of . The convention at zero reflects that zero is divisible by every power of . More generally, for ,
Since and polynomial evaluation commutes with reduction, solvability modulo is equivalent to the formula
Indeed, integer representatives of a residue solution give witnesses for this formula, and reducing any witnesses modulo gives a residue solution. We are not asking for an exact common zero in , only for the polynomial values to be divisible by . This is one fixed formula with free parameters . Pas’s language has three sorts: the valued field, its residue field, and its value group [23, Definition 2.3]. In our application these are
respectively. Thus Pas’s symbols , , and refer here to , , and , with adjoined to the last sort. His valuation symbol is our .
Applying [23, Corollary 4.3] to the fixed formula gives a fixed formula and a fixed finite set of exceptional primes such that, whenever ,
for every specialization of the free parameters. The formula has no quantified variables in the valued-field sort. In other words, the unknowns ranging over have been eliminated. Quantifiers over the residue field and the value group may remain, and these will be handled separately below. Both and depend only on the original fixed formula, hence only on , not on the input coefficients or on .
The free valued-field parameters can occur in only through polynomial equalities and through valuations and angular components of finitely many fixed polynomials where the angular component records the residue of a number after its power of has been removed,
Thus, if with , its valuation is and its angular component is . This is the angular-component map appearing in Pas’s language, and is the leading residue of .
It is useful to keep the roles of the residue-field and value-group sorts distinct. For , the value group is and the valuation records how many powers of occur in . The residue field is : after removing this power of , the angular component records the remaining unit modulo . Thus the valuation and angular component retain two different pieces of information about a -adic number,
Pas’s elimination removes the quantified variables ranging over the valued field , but it may leave quantified variables in these two simpler sorts. They are handled separately because their algebraic structures are different. The value-group part is a formula in integer addition, order, and congruences, hence belongs to Presburger arithmetic, whereas the residue-field part is a formula in the ring language over the finite field . We therefore apply Cooper’s quantifier elimination to the former and the finite-field reduction of Kiefe to the latter [9, 18].
There are no maps between the residue-field and value-group sorts in this language. Consequently, after a fixed Boolean rearrangement, the remaining conditions separate into residue-field formulas and value-group formulas, together with polynomial zero tests. Cases involving the value are separated explicitly, including any quantified value-group variable that equals .
After the cases have been separated, the value-group formulas are formulas of Presburger arithmetic, that is, arithmetic on using addition, order, and congruences, but not multiplication of two variables. Cooper’s quantifier-elimination procedure [9] replaces them by fixed Boolean combinations of integer linear comparisons and congruences with fixed moduli. Their inputs are the computed valuations . This elimination is performed on the fixed formulas, before the numerical input parameters are substituted.
For the residue-field conditions, we use the following consequence of Kiefe’s theorem [18]; see also [22, Facts 4.3 and 4.5, arXiv version]. Every fixed formula in the language of rings is, over all sufficiently large finite fields, equivalent to a Boolean combination of formulas
Here is one of the finitely many fixed auxiliary polynomials produced by the Kiefe reduction. It is not one of the original input polynomials . The tuple consists of the residue-field parameters already obtained from the input, while is the single remaining quantified residue-field variable. The equivalence holds for all choices of , and the threshold depends only on the formula. In our application is a tuple of angular components already computed from the input. Enlarge to include the finitely many primes excluded by these residue-field reductions.
For , specializing therefore reduces each residue-field condition to a fixed Boolean combination of one-variable root tests for polynomials
of fixed bounded degree. The zero polynomial has a root, and a nonzero constant does not. For a nonconstant polynomial,
because is the product of the distinct linear polynomials with . We do not construct a polynomial of degree . Instead, repeated squaring computes , after which a polynomial gcd computation decides the test. Since is fixed, this takes deterministic time polynomial in .
For each , apply Macintyre’s fixed- quantifier elimination directly to the original solvability condition [21, Theorem 1]. This condition is expressible in the field language: integrality in is definable for fixed , and, since ,
Macintyre’s theorem therefore gives a fixed Boolean combination of polynomial equalities and fixed-power predicates on rational values obtained from .
These predicates are also efficiently decidable. For a nonzero rational value , write
so that . For each fixed positive integer occurring in a power predicate,
Necessity follows by taking valuations and reducing the unit part of an -th root. For sufficiency, choose a unit representative satisfying the displayed congruence and apply Hensel’s lemma [24, Chapter II, §2.2] to . Indeed,
because is a unit and . Thus has an -th root in ; the divisibility of by then gives an -th root of in . Zero values are treated separately.
Here both and every exponent are fixed constants, so the finite residue test has constant size. A rational unit is reduced modulo this modulus by inverting its denominator, which is prime to . The input exponent remains unrestricted.
For fixed , all auxiliary polynomials, Boolean combinations, power exponents, and exceptional-prime data above are fixed. Evaluating a fixed polynomial at the input integers or rational values produces numbers of polynomial bit length. Their zero tests, valuations at the known prime , and required residues are computable in polynomial time using ordinary integer arithmetic. The remaining integer comparisons and finite-field root tests have the same complexity. ∎
8.2 Four variables and unimodular lifting
Compute as in Section 7 and reject unless the corresponding absolute determinants agree. Put
This clears the denominators of and ; the factor only ensures . For , form
These are polynomial matrices with integer coefficients, of degrees one and two, respectively. They are formed over and multiplied by before reducing coefficients modulo ; no division is performed in the residue ring. For each fixed , test
The matrix congruences are entrywise. Thus the test has four variables and fourteen scalar equations, all of degree at most two.
Theorem 8.2.
For each , the criterion (7.8) with holds if and only if (8.3) is solvable. Consequently the quadratic-kernel case is in , and is in deterministic classical polynomial time given the factorization of .
Proof.
An integral solution reduces modulo to a solution of (8.3). Conversely, suppose is a residue solution. Bley–Hofmann–Johnston’s unimodular lifting theorem [5, Corollary 7.6] gives with and . Multiply first by , lift in , and undo that multiplication. Because have integer coefficients, their values at are divisible by . The two matrices in (7.8) are therefore integral. Their determinants have absolute value one by the preliminary comparisons, so Proposition 7.4 supplies an isomorphism.
All constructed coefficients have polynomial bit length. Factor by Shor’s algorithm [25] and apply Lemma 8.1 to each sign. The same sign is used at every prime-power factor. Accept exactly when one test succeeds. Only existence is required from the congruence algorithm; the lift proves sufficiency without requiring that algorithm to produce a residue solution. ∎
Corollary 8.3.
Integral tensor isomorphism restricted to is in . The dependent-slice and normal-rank-at-most-one cases are in deterministic polynomial time.
Proof.
The elementary branches are 3.1 and 6.1. At normal rank two, compare the ordered common-kernel dimensions. Two common kernels give the known core algorithm. Otherwise transpose both pencils when needed to arrange . Lemma 6.2 is exhaustive: degree one uses Proposition 7.2, and degree two uses Proposition 7.4 and Theorem 8.2. ∎
9 The complete algorithm and the arithmetic obstruction
Proof of Theorem 1.1.
Compare the dimensions of the two slice spans. Unequal dimensions rule out isomorphism. Dimensions zero and one are handled by Lemma 3.1. For independent slices, compute both determinant forms. The property of vanishing identically is invariant under isomorphism, so reject if exactly one vanishes.
If both forms are nonzero, apply Corollary 5.6. More explicitly, compare their pure-cube status. Non-pure cubes require at most six fixed-form tests, each performed by Proposition 4.4. Pure cubes are normalized to , after which the adapted flag calculation in Proposition 5.4 decides equivalence. Independence of the slices ensures that the normalized second slice is nonzero.
If both forms vanish, compare normal ranks using (6.1). Rank at most one is covered by Lemma 6.1. At rank two, compare the ordered dimensions of . With two common kernels, delete unused directions and compare the integral cores. Otherwise transpose both pencils when needed to arrange , and compute their least polynomial-kernel degrees using Lemma 6.2. Reject if the degrees differ. For degree one, form the compatible diagrams of Lemma 7.1 and apply Proposition 7.2. For degree two, compute the coefficient matrices and from Lemma 7.3, and compare their absolute determinants. Apply the direct congruence test of Theorem 8.2.
These cases are exhaustive. The classical steps use rational linear algebra, fixed-degree polynomial factorization, primitive lattice bases, Smith or Hermite normal form, lattice intersections and projections, and gcds. The quantum arithmetic consists of the compatible-order tests, the known core algorithm, and factoring the direct-comparison modulus (8.1). Given that factorization, the fixed-format congruence test is deterministic polynomial time by Theorem 8.2. ∎
9.1 Faithful padding
For , define
Its determinant form vanishes identically.
Proposition 9.1.
For all integral tensors , one has
Proof.
An isomorphism of the smaller tensors extends across the added input and output directions. Conversely, padding adds only unused directions. Removing all unused directions from or gives the same reduced map (2.6), and similarly for . An isomorphism of the padded tensors therefore induces one of the reduced maps. Apply Lemma 3.2 in the original dimensions to extend it to an isomorphism of . ∎
Corollary 9.2.
The real-quadratic principality decision problem considered by Grochow–Qiao– Stange–Sun reduces in polynomial time to identically singular integral tensor isomorphism.
Proof.
Compose their reduction to integral tensor isomorphism [14, Theorem 3.7] with Proposition 9.1. ∎
The regular and zero-form loci thus fit one structural picture, while requiring different arithmetic descriptions. For nonzero forms, Bhargava–Wood balanced modules retain the pairing through a compatible diagram. On the boundary, a least-degree polynomial kernel retains the singular structure: its linear case yields another compatible diagram, and its quadratic case yields two coefficient matrices with compatible linear and quadratic transformations. These lead respectively to a compatible-order test and a direct finite congruence test. In both cases the essential condition is not that the individual lattices be isomorphic, but that their isomorphisms preserve the structure linking them.
Algorithm 1 Integral tensor isomorphism
1: and with integral slices.
2: Isomorphic or Not Isomorphic, with error at most .
3: Compare slice-span dimensions; reject if unequal.
4: If the slices are dependent, return the Smith-form test of Lemma 3.1.
5: Compute and ; reject if exactly one is zero.
6: if then
7: Reject if exactly one form is a pure cube.
8: if both are pure cubes then
9: Normalize to and ; reject if .
10: Form the adapted pairs of Lemma 5.3; reject if .
11: Return the sign-enumerated linear/congruence test of Proposition 5.4.
12: else
13: for each with listed by Lemma 5.1 do
14: Compare with by Proposition 4.4; accept if successful.
15: end for
16: return Not Isomorphic.
17: end if
18: end if
19: Compare normal ranks; reject if unequal.
20: If both are at most one, return the test of Lemma 6.1.
21: Compare the ordered common-kernel dimensions; reject if unequal.
22: if both common kernels are nonzero then
23: Delete unused directions and return the core test.
24: end if
25: If , transpose both pencils, so that .
26: Compute by Lemma 6.2; reject if unequal.
27: if then
28: Form the two compatible diagrams of Lemma 7.1.
29: Return the compatible-order test of Proposition 7.2.
30: else
31: Compute by Lemma 7.3.
32: Reject unless their corresponding absolute determinants agree.
33: Form by (8.1)–(8.2); factor .
34: for each do
35: Decide (8.3) modulo by Lemma 8.1; accept if solvable.
36: end for
37: return Not Isomorphic.
38: end if
AI Statement
The general proof strategy used throughout this paper was developed by the authors without the use of AI. AI was used in exploring and refining proofs for the case where the determinant form is identically zero, as well as in the development of the wrapper lemmas for the lattice isomorphism algorithms. Specifically, ChatGPT Astra was used to help find a proof of Lemma 8.1, was used to help refine the proofs of propositions 4.4 and 7.2, and was also used to help draft and revise the text as well as to improve the presentation of Figure 1. The author has verified all proofs, added significant exposition throughout the paper, and take full responsibility for all of the results that appear in this paper and their correctness.
Acknowledgments
The author thanks Youming Qiao for many helpful discussions and for providing useful feedback.
References
R. Andrews, A. Garg, and É. Schost (2026) Hilbert’s Nullstellensatz is in the counting hierarchy. Note: arXiv:2602.17904 External Links: 2602.17904, Document, Link Cited by: §1.2.
M. Bhargava (2004) Higher composition laws I: a new view on gauss composition, and quadratic generalizations. Annals of Mathematics 159 (1), pp. 217–250. External Links: Document Cited by: §1.2, §1.
M. Bhargava (2004) Higher composition laws II: on cubic analogues of Gauss composition. Annals of Mathematics 159 (2), pp. 865–886. External Links: Link Cited by: item 1, §A.1, §A.3, §A.6, §A.7, Lemma A.1, Lemma A.2, Theorem A.3, Appendix A, §1.2, §1, §4.1, §4.
J. Biasse and F. Song (2016) Efficient quantum algorithms for computing class groups and solving the principal ideal problem in arbitrary degree number fields. In Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2016, pp. 893–902. External Links: Document Cited by: §1.
W. Bley, T. Hofmann, and H. Johnston (2022) Computation of lattice isomorphisms and the integral matrix similarity problem. Forum of Mathematics, Sigma 10, pp. e87. External Links: Document, 2202.03526 Cited by: §A.4, §A.4, Proposition A.4, Figure 1, §1.2, §1.2, §1.3.1, §1.3.2, §1.3.2, §1.3.3, §4.3, §4.3, §4.3, §4.3, §7.1, §8.2, Abstract.
C. M. Caves, C. A. Fuchs, and P. Rungta (2001) Entanglement of formation of an arbitrary state of two rebits. Foundations of Physics Letters 14 (3), pp. 199–212. External Links: Document, Link Cited by: §1.2.
A. Chistov, G. Ivanyos, and M. Karpinski (1997) Polynomial time algorithms for modules over finite dimensional algebras. In Proceedings of the 1997 International Symposium on Symbolic and Algebraic Computation, ISSAC 1997, pp. 68–74. External Links: Document Cited by: §1.2.
E. Chitambar, C. A. Miller, and Y. Shi (2010) Matrix pencils and entanglement classification. Journal of Mathematical Physics 51 (7), pp. 072205. External Links: Document, Link Cited by: §1.2.
D. C. Cooper (1972) Theorem proving in arithmetic without multiplication. In Machine Intelligence 7, B. Meltzer and D. Michie (Eds.), pp. 91–99. External Links: Link Cited by: §1.1, §1.3.2, §8.1, §8.1.
J. E. Cremona (2026) On the equivalence of binary cubic forms. Glasgow Mathematical Journal, pp. 1–14. Note: First View External Links: Document, 2212.02120 Cited by: §A.6, §1.3.1, §5.1.
W. Dür, G. Vidal, and J. I. Cirac (2000) Three qubits can be entangled in two inequivalent ways. Physical Review A 62 (6), pp. 062314. External Links: Document, Link Cited by: §1.2.
K. Eisenträger, S. Hallgren, A. Kitaev, and F. Song (2014) A quantum algorithm for computing the unit group of an arbitrary degree number field. In Proceedings of the 46th Annual ACM Symposium on Theory of Computing, STOC 2014, pp. 293–302. External Links: Document Cited by: §1.
N. Galesi, J. A. Grochow, T. Pitassi, and A. She (2023) On the algebraic proof complexity of tensor isomorphism. In 38th Computational Complexity Conference (CCC 2023), A. Ta-Shma (Ed.), Leibniz International Proceedings in Informatics (LIPIcs), Vol. 264, pp. 4:1–4:40. External Links: Document, Link Cited by: §1.2.
J. A. Grochow, Y. Qiao, K. E. Stange, and X. Sun (2026) On the complexity of isomorphism problems for tensors, groups, and polynomials v: over commutative rings. External Links: 2611.00735, Link Cited by: §A.1, §A.1, §A.3, §1.1, §1.2, §1.3.2, §1.3.3, §1, §6.2, §9.1.
F. Grunewald and D. Segal (1980) Some general algorithms. I: arithmetic groups. Annals of Mathematics 112 (3), pp. 531–583. External Links: Document Cited by: §1.2.
S. Hallgren (2007) Polynomial-time quantum algorithms for Pell’s equation and the principal ideal problem. J. ACM 54 (1). External Links: ISSN 0004-5411, Link, Document Cited by: §1.
R. Kannan and A. Bachem (1979) Polynomial algorithms for computing the Smith and Hermite normal forms of an integer matrix. SIAM Journal on Computing 8 (4), pp. 499–507. Cited by: §1.1.
C. Kiefe (1976) Sets definable over finite fields: their zeta-functions. Transactions of the American Mathematical Society 223, pp. 45–59. External Links: Link Cited by: §1.1, §1.3.2, §8.1, §8.1.
P. Koiran (1996) Hilbert’s Nullstellensatz is in the polynomial hierarchy. Journal of Complexity 12 (4), pp. 273–286. External Links: Document, Link Cited by: §1.2.
H. W. Lenstra and A. Silverberg (2018) Algorithms for commutative algebras over the rational numbers. Found. Comput. Math. 18 (1), pp. 159–180. External Links: ISSN 1615-3375, Link, Document Cited by: §A.4.
A. Macintyre (1976) On definable subsets of -adic fields. Journal of Symbolic Logic 41 (3), pp. 605–610. Cited by: §1.1, §1.3.2, §8.1.
A. Medvedev and A. Van Abel (2025) Variations on the Feferman–Vaught theorem, with applications to . Archive for Mathematical Logic 64 (3-4), pp. 529–546. Note: References to Facts 4.3 and 4.5 use the numbering of arXiv:1812.02905v1 External Links: Document, 1812.02905, Link Cited by: §8.1.
J. Pas (1989) Uniform -adic cell decomposition and local zeta functions. Journal für die reine und angewandte Mathematik 399, pp. 137–172. Cited by: §1.1, §1.3.2, §8.1, §8.1.
J. Serre (1973) A course in arithmetic. Graduate Texts in Mathematics, Vol. 7, Springer-Verlag, New York. External Links: Document Cited by: §8.1.
P. W. Shor (1997) Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Journal on Computing 26 (5), pp. 1484–1509. Cited by: §1.3.2, §8.2.
M. M. Wood (2014) Parametrization of ideal classes in rings associated to binary forms. Journal für die reine und angewandte Mathematik 689, pp. 169–199. External Links: 1008.4781 Cited by: §1.1, §1.1, §1.2, §1.3.1, §1.3.1, §1.3.1, §1, §4.1, §4.1, §4.1, §4.1, §4.2, Definition 4.1, Theorem 4.2, §4, Abstract.
Appendix A An alternative proof for nondegenerate tensors via Bhargava II
This appendix gives the alternative argument for integral tensor isomorphism on the nondegenerate locus
The argument uses the cubic rings and balanced pairs of fractional ideals in Bhargava’s Higher composition laws II directly [3]. It applies to the nonzero-discriminant case, not to all tensors with . The notation introduced below is local to this appendix; in particular, denotes a rational cubic algebra.
A.1 Fractional ideals, orders, and balanced pairs
Let be a nondegenerate cubic order and let
Thus is an étale cubic -algebra: it is a product of number fields whose degrees sum to three. Following the terminology used in the quadratic setting of [14], a fractional ideal of is a full rank-three -lattice that is stable under multiplication by , that is,
For a fractional ideal , define its order by
Its unit group is
As observed in [14], is computable in polynomial time from a basis of by linear algebra.
The norm of a fractional ideal is its covolume relative to :
where both covolumes are computed in the same rational coordinates on . In Bhargava’s terminology [3], a pair of fractional -ideals is balanced if
Two balanced pairs and are equivalent if there exists such that
For orders , we use the product-subgroup notation
A.2 Bhargava’s parametrization and the tensor action
For the tensor action, write
These act on with the tensor convention of the main text.
Lemma A.1 ([3, Section 2.1]).
The -orbits and the -orbits on coincide.
We write for the cubic ring associated with a binary cubic form , corresponding to the notation in the main text. Bhargava’s form of the Delone–Faddeev correspondence uses the determinant-twisted -action on binary cubic forms; its formula is recorded in Subsection A.6 below.
Lemma A.2 ([3, Theorem 1]).
There is a canonical bijection between -equivalence classes of integral binary cubic forms, for this determinant-twisted action, and isomorphism classes of cubic rings. Moreover,
Theorem A.3 ([3, Theorem 2]).
There is a canonical bijection between
- nondegenerate -orbits on ; and
- isomorphism classes of pairs , where is a nondegenerate cubic ring and is an equivalence class of balanced pairs of fractional -ideals.
A.3 Efficiency of Bhargava’s correspondence
We use Bhargava’s parametrization in its explicit form. In the proof of Theorem 2 of [3], one can explicitly recover from a box its associated cubic ring and a representative balanced pair of fractional -ideals . Conversely, the box is recovered from bases of these ideals. Since all dimensions are fixed, these constructions involve only a constant number of exact integer/rational linear-algebra operations and are polynomial-time computable in the standard basis representation.
We therefore adopt the same algorithmic convention as in the setting of [14], where the explicit maps in Bhargava’s parametrization are likewise treated as polynomially computable. Throughout the remainder of this appendix, we use the efficiently computable passage
A.4 Lattice isomorphism background
Proposition A.4 ([5]).
Let be a nondegenerate cubic order and let
Given two full fractional -ideals , one can decide in whether . In particular, principality of a full fractional -ideal is decidable in .
Proof.
Use the decision part of IsPrincipal from [5, Algorithm 8.3 and Remark 8.8(b)]. Hypothesis (H) is automatic since is a commutative étale -algebra: every simple component is a matrix algebra of size one over a number field. The required decomposition is computable in deterministic polynomial time; see [20, Theorem 1.9]. This gives a principality decision procedure for full fractional ideals over orders in .
For the isomorphism test, put and . By [5, Proposition 3.2], if and only if is principal over and , where is the additive lattice generated by the products . The bases of , , and , and the equality test, are computable in polynomial time by integer linear algebra from the input bases and multiplication table. Thus only a principality decision is needed; no generator or isomorphism matrix is computed. ∎
A.5 From lattice isomorphisms to scalars
An -module isomorphism between full fractional -ideals extends, after tensoring with , to a -linear automorphism of . Since is free of rank one as a module over itself, every such automorphism is multiplication by a unique element . Thus, if , then
for some . Here uniqueness refers to the scalar representing a specified isomorphism; the two ideals alone do not determine uniquely.
We use this statement only as an algebraic characterization. The decision algorithm below works directly with lattice bases and does not compute , whose expanded coordinates need not have polynomial bit length.
A.6 Cubic-ring equivalence
Lemma A.5.
Let
be nondegenerate integral binary cubic forms, and let and be their associated cubic rings. There is a deterministic polynomial-time algorithm that enumerates the at most six ring isomorphisms
Proof.
By the Delone–Faddeev correspondence, in the form used by [3], isomorphism classes of cubic rings are identified with -equivalence classes of integral binary cubic forms. For
write
Unlike the untwisted substitution notation in the main text, in this subsection includes the factor . The equivalence algorithm of [10] enumerates in deterministic polynomial time all matrices satisfying , and there are at most six possibilities.
For each such matrix , the explicit Delone–Faddeev basis-change construction gives the corresponding isomorphism between the cubic rings and . This conversion involves only fixed-dimensional integer arithmetic and is therefore deterministic polynomial time. Conversely, every ring isomorphism arises from one of these -equivalences by the Delone–Faddeev correspondence. Hence the resulting list is complete and has size at most six. ∎
A.7 Balanced-pair equivalence
Definition A.6 (Balanced-pair equivalence decision problem).
Given balanced pairs of full fractional -ideals and , decide whether there exists such that
Lemma A.7.
Suppose that and . Choose satisfying and , and set
Then the pair is equivalent to if and only if
Proof.
Every scalar taking to has the form for some , since if and only if , which is true if and only if . The same argument applies to every scalar taking to . The equivalence of [3] requires that the second scalar is the inverse of the first, so that
Since is commutative, this is equivalent to
which is the desired membership condition. ∎
A.8 A decision criterion using compatible scalar lattices
For fractional lattices , let denote the additive lattice generated by the products . The decision algorithm encodes the two required scalar containments in a single lattice.
Lemma A.8 (Compatible scalar criterion).
Let and be balanced pairs of full fractional -ideals. Define
Then is an order in , is a full fractional -ideal, and the pairs are equivalent if and only if
Proof.
The two orders defining contain , so their intersection is a full order. Clearing denominators in multiplication matrices shows that each containment defining gives a full lattice in , hence so does their intersection. If and , then and . Thus is an -ideal.
Suppose the pairs are equivalent via , so that and . For , the condition is then equivalent to and . Therefore . Since contains and stabilizes both source lattices, and . Hence and .
Conversely, suppose the three stated conditions hold and write . Fullness gives , so . Commutativity and the identities , give
Thus the pairs are equivalent. The element is used only in this proof, not in the decision procedure. ∎
Theorem A.9.
Let be a nondegenerate cubic order, and let and be balanced pairs of fractional -ideals. Deciding the equivalence of the pairs and is in .
Proof.
Compute and from Lemma A.8. In rational coordinates on , multiplication by an unknown is linear in its three coordinates. The containments defining and are therefore integral-coordinate conditions with rational coefficients of polynomial bit length. Clearing denominators and using Smith or Hermite normal form computes bases of these full lattices in polynomial time and with polynomial bit length.
Each of and is generated by the nine pairwise products of the respective lattice basis elements. Their coordinates have polynomial bit length, and equality with and is tested by Hermite normal form. Finally, use the principality decision in Proposition A.4 for the -ideal . If an integral ideal is required, choose a nonzero integer of polynomial bit length with and test ; this does not change principality. Accept exactly when both lattice equalities and the principality test hold. The preceding lemma proves correctness, and no ideal generator or scalar witness is computed. ∎
A.9 Proof of the nondegenerate theorem
Theorem A.10.
Deciding whether two nondegenerate integral tensors are isomorphic under is computable in .
Proof.
Let be the arithmetic data associated with and the arithmetic data associated with . Write
By Lemma A.1 and Theorem A.3, two nondegenerate tensors are isomorphic under if and only if their associated cubic rings and balanced ideal pairs are isomorphic.
Use Lemma A.5 to enumerate the at most six ring isomorphisms . Each such isomorphism extends uniquely to a -algebra isomorphism , which we also denote by . For each , transport the balanced ideal pair to in and apply Theorem A.9 to check its equivalence with . Accept if and only if one of the computed succeeds. ∎
Algorithm 2 Nondegenerate integral tensor isomorphism via Bhargava II
- Use the construction of [3] to compute
- Enumerate all . If none exists, return NotIsomorphic.
- For each : (a) Set for . (b) Compute (c) If or , continue to the next . (d) Use the BHJ principality decision procedure for over . If it succeeds, return Isomorphic.
- Return NotIsomorphic.