How this calculation works
Compute the tensor product and first Tor group of two finitely generated abelian groups from integer relation matrices. Reduce presentations to invariant factors and combine exact cyclic-factor identities.
(Z/m)⊗(Z/n)≅Z/gcd(m,n); Tor1(Z/m,Z/n)≅Z/gcd(m,n); Z⊗B≅B; Tor1(Z,B)=0A worked example
A=Z/4⊕Z and B=Z/6 give A⊗B≅Z/2⊕Z/6 and Tor1(A,B)≅Z/2. The tensor product has free rank0.
Good to know
Each presentation matrix has1–5 generator rows and1–5 relation columns, integer entries within±1000000. Groups are cokernels over Z. Outputs abstract invariant factors only, with no chosen generator maps or tensor representative coordinates. Higher Tor over Z vanishes for i≥2.
Reference: Hatcher: tensor products, Tor and homology with coefficients (opens in a new tab) ↗
Start from group presentations
A finitely generated abelian group can be described as integer generators modulo integer relations. Here the relation matrix has one row per generator and one column per relation. The represented group is the cokernel of that matrix, so rectangular presentations and redundant relations are both meaningful input rather than errors.
For example, the two-by-two matrix with first diagonal entry four and all other entries zero presents one cyclic factor of order four and one free generator. A one-by-one matrix containing six presents the cyclic group of order six. Zero columns contribute no relation and can be used to represent free groups within the input format.
Compare this with the Smith normal form calculator for integer matrices. Compute abelian-group tensor products and Tor1 from presentations,not just diagonalize one integer matrix.
Reduce the relations to invariant factors
Smith invariant factors replace a presentation by an abstract direct sum of free copies of the integers and finite cyclic groups. Unit invariant factors impose no surviving cyclic summand. Zero directions contribute to the free rank. Nontrivial torsion factors are positive integers arranged so that each divides the next.
This bounded implementation obtains those factors from exact determinantal divisors: the gcd of all minors of each size. Consecutive nonzero divisors give the Smith entries. The method does not need to choose row and column transformation matrices, so the output certifies abstract group structure without claiming coordinates for particular original generators.
Distribute the tensor product
Tensor products distribute over finite direct sums. A free integer summand tensored with any group reproduces that group, while two finite cyclic summands contribute a cyclic group whose order is the gcd of their orders. Combining these identities accounts separately for free-free, free-torsion and torsion-torsion contributions.
Only free-free pairs create free tensor summands. Their number is the product of the two free ranks. Free-torsion pairs copy the torsion factor, once for each free generator on the other side. Torsion-torsion gcds equal to one are trivial and are omitted from the displayed decomposition rather than listed as order-one groups.
Contrast the first Tor group
The first Tor group detects a different interaction between torsion factors. A free summand contributes nothing to Tor, and each pair of finite cyclic summands contributes the cyclic gcd group. Thus Tor can vanish even when the tensor product is nonzero, especially when one of the supplied groups is entirely free.
Over the integers, higher Tor groups vanish in degrees at least two. This statement depends on working over Z; it should not be transferred to an arbitrary coefficient ring. The calculator fixes that ring throughout and does not accept general module presentations over polynomial rings, finite-dimensional algebras or noncommutative coefficient systems.
Verify the mixed example
The default first group is Z/4 together with one free copy of Z, and the second is Z/6. The torsion-torsion tensor contribution is Z/gcd(4,6), namely Z/2. The free-torsion contribution is Z/6. There is no free-free pair, so the tensor product has free rank zero.
For Tor, the free copy in the first group disappears. Only the pair of orders four and six remains, giving Z/2. The displayed tensor invariant factors2,6 already satisfy divisibility, while the Tor list contains only2. This comparison shows why counting just torsion pairs would miss part of the tensor result.
Read the canonical decomposition
After assembling cyclic contributions, the calculator combines them into invariant-factor form using gcd and lcm replacements. Two cyclic orders a,b can be replaced by gcd(a,b) and lcm(a,b), preserving the abstract direct sum. Iterating this operation yields a divisibility chain and removes any trivial order-one factors introduced along the way.
The resulting list is an isomorphism description, not a preferred set of tensor generators. Distinct presentations of the same two groups should produce the same final free rank and invariant factors. The intermediate Smith factors and determinantal divisors are supplied to help compare those presentations and identify row-versus-column input mistakes.
Avoid common interpretation errors
A zero tensor product does not imply either input group is zero. Cyclic groups of coprime finite orders have zero tensor product and zero first Tor. Conversely, a finite tensor product can arise from an infinite input group when its free part is paired with torsion in the other input, as the default example demonstrates.
Always retain the presentation orientation: rows are generators here. Transposing a rectangular matrix changes the number of generators and usually the free rank, even though its nonzero Smith factors stay the same. Exact integer arithmetic and the matrix-size cap keep determinantal checks reproducible without numerical singular-value thresholds or assumptions about approximately integral entries.
A few questions, answered
Which direction do relations go?
Columns are relations among the generators listed by rows; the group is the matrix cokernel.
Does Tor include free summands?
No. A free summand in either argument contributes zero to Tor1 over Z.
Can both inputs be nonzero with zero tensor product?
Yes. Finite cyclic groups of coprime orders have trivial tensor product.
Are generator maps returned?
No. The output gives abstract invariant-factor decompositions without transformation matrices.