In this post, we consider a variation of a unique factorization domain (UFD) that can more closely align with our intuition for prime factorization of integers — specifically, rather than the factorization being required to be up to invertible elements, here we require the factorization to be up to multiplicative identity. This is a seemingly stronger definition, and one that doesn’t seem to encompass fields trivially or obviously (in line with our intuition for integer prime factorization.)
We clarify what we mean by this. The standard definition of a UFD is:
Definition. A UFD is an integral domain in which every nonzero element
can be written as a factorization
where the are irreducible (a different notion than prime) and
is an invertible element, and where this factorization is unique up to order of the
.
As a prototypical example, take the ring of integers . Prime factorization is a well-known property of this domain. But we don’t typically think of a field like
or
as satisfying an analogous prime factorization, at least when we first learn about them before abstract algebra — intuitively, we can “keep dividing in further.” But by our definition above, fields are actually UFDs — since all elements are invertible, we can just trivially say that
with
and
is the unique factorization of
. This definition does make certain things cleaner from an abstract algebra perspective; for example, it allows us to have a “class inclusion chain” in which fields are UFDs, which are then integral domains. However, it then doesn’t necessarily always align with our intuition for what unique factorization really “means.” Thus, we consider a different but analogously defined concept here:
Definition. A strong UFD is an integral domain in which every nonzero element
can be written as a factorization
where the are irreducible, and where this factorization is unique up to order of the
.
(Note on terminology: I originally considered the term “pseudo-UFD,” but this suggests a weaker definition while ours is stronger. From a cursory Google search, it doesn’t seem like there are other uses of the term “strong UFD” yet.)
Actually, this definition doesn’t encompass the prototype of , since we can always write
for
irreducible, yielding non-uniqueness. (If
is irreducible, then
is too.) It does encompass
, but that’s not even a ring. What algebraic structure would
be? Well, if we add 0 (which doesn’t change anything because our definition specifies “nonzero”) and look at
, then this is a commutative semiring — in fact, it is a commutative cancellative semiring. But in that case, the sign is irrelevant.
Or alternatively, we can remedy this definition in a way to rescue its application to . So we can talk about multiple possible definitions here. We can name these concepts by “type I,” “type II,” etc.
For the first definition, let’s work backwards (in a “reverse mathematics” style) to see how generally we can write this definition. Let’s use the prototype of or
. Actually, for these prototypes, sign can be removed from the definition, and actually then we wouldn’t even need to require addition! (We can then use
as our prototype to avoid dealing with 0.) So let’s do this for a group-like structure. We assume multiplication, and then we need associativity … but do we need anything else? Commutativity, for uniqueness up to order. Do we need multiplicative identity? It doesn’t look like we do, just to write down the definition. Also, terminology note: this wouldn’t be a domain, so instead of UFD we can call it a unique factorization algebra, or UFA. So we define:
Definition. A type I unique factorization algebra (UFA) is a commutative semigroup in which every element
can be written as a factorization
where the are irreducible, and where this factorization is unique up to order of the
.
We now need to figure out what “irreducible” would mean. To avoid conflict with “irreducible” in standard commutative algebra, we call our concept “type I irreducible,” also to align it with our definition of “type I UFA.” (In general, we’ll name concepts based on alignment of definitions.) We’ll define this by formalizing the intuitive idea of “can’t be divided into further,” which matches our intuition closely for defining prime numbers in when first learning about them before abstract algebra:
Definition. An element is type I irreducible if we cannot write
for some
.
Actually, this doesn’t work for the prototype of because of the multiplicative identity. So instead, we’ll amend our definitions to require multiplicative identity and exclude it from irreducibility:
Definition. Let be a commutative monoid. An element
is type I irreducible if we cannot write
for
. We say
is a type I UFA if every element
can be written as a factorization
where each is not equal to 1, is type I irreducible, and where the factorization is unique up to the order of the
.
By this definition, is a type I UFA. This matches our intuition closely for defining prime numbers in
when first learning about them before abstract algebra. Since factorizations express elements as products, irreducibility in this context intuitively makes sense to be defined in terms of whether it can be expressed further as a product (in a nontrivial way.)
Another approach to defining UFAs comes from modifying our previous construction to encompass . (Thus, for this,
is our prototype.) We could this by introducing an order and then requiring the
to be positive, but that seems like a lot of extra structure that we should be able to avoid requiring. Instead, we can amend our definition by defining the uniqueness “modulo sign,” to exclude
.
Let’s try the reverse math approach here too. To do this, we need to know about sign, so we should have addition (in conjunction of course with the already-present multiplication.) For sign, we need additive inverses and additive identity, and we also need associativity, commutativity, and identity of multiplication. We also need compatibility between addition and multiplication, and for the uniqueness modulo sign we should have , which comes from distributivity. Actually, I’m not sure if things like
require commutativity and/or associativity of addition, but those seem like reasonable requirements in general so we can include them. Together, this yields a commutative ring. Thus, we can define (keeping track of sign in the irreducibility definition too, and keeping track now of avoiding 0):
Definition. Let be a commutative ring. A nonzero element
is type II irreducible if we cannot write
for
and
. We say
is a type II UFA if every nonzero element
can be written as a factorization
where each is not equal to 1 or -1, is type II irreducible, and where the factorization is unique up to order of the
and sign, in the following sense: two factorizations
are considered equivalent if , there exists a bijection
such that
, and the number of sign changes in going from
to
(and including the sign of
) is even.
There’s a lot to unpack here with these concepts; let’s go about it methodically.
—
First, is it necessary to state that the number of sign changes must be even for a type II UFA? Since if we have a number of sign changes that are odd then that would imply , but
is nonzero. Oh, but that is possible in a ring of characteristic 2. In fact, for a ring of characteristic 2 that is true for all
.
So we have two cases: has characteristic 2 or not 2. If it has characteristic 2, then it doesn’t matter what we say about sign; if I have a factorization and then put as many signs as I want in front of the factors, it doesn’t change the value. In fact, each factor doesn’t change upon placing a sign in front of it, so once I’ve found a factorization in a ring of characteristic 2, uniqueness modulo sign is trivially satisfied. So in characteristic 2, we can equivalently remove the whole “modulo sign condition.” But if
doesn’t have characteristic 2, then the sign changes being even (given
) is a consequence of
, so we wouldn’t need to state it as an extra condition. Thus, in general, we can equivalently remove the condition that the number of sign changes must be even.
(We are implicitly excluding the zero ring here, or equivalently a ring of characteristic 1.)
—
Next, I suspect that the uniqueness of factorization (for type II) allows us to conclude cancellativity, and therefore show that must in fact be an integral domain. Can we do this? (Actually, can we do this to show cancellativity in type I UFAs too?)
Let’s try this out.
Lemma. A type I UFA must be cancellative — in other words, .
Proof. Let . We know that we have factorizations for
:
where the are irreducible and not equal to 1. Thus,
These are two different factorizations into non-identity irreducibles, hence by uniqueness they must be the same up to order. So this implies that , and the factors in the RHS are a permutation of those in the LHS. Say that the permutation fixes the
; then, the permutation must only permute the
into the
, but by commutativity this yields
, as desired. Otherwise, say that the permutation doesn’t fix the
, so calling the permutation
, for some
we have
. In fact, let’s single out all the indices for which the
get mapped to non-
: this permutation must have a set of indices
for which
Basically, everything that “ignored” when mapping the
(we assume
goes from LHS to RHS),
must map to.
So does a couple things: it maps some of
to some of
, it maps rest of
to some of
, it maps some of
to rest of
, and it maps rest of
to rest of
. The elements
and
are made up of all the
and
respectively, and we’re trying to show they’re equal.
So what is the product of all the ? Well, some of
goes to some of
, and the rest goes to some of
, so this is equal to some of
and some of
. But where does that “some of
” go? If we ignore the factors in both factorizations where
sends
to
, then from the rest of the factors, the “some of
” can’t map back to
, thus it must map to
. But since this is a bijection, all of
must be accounted for, thus the product of all the
is the product of all the
. This shows
, as desired.
(Another proof that could be easier to input to a formal proof system could be to use induction: first, if , where
are irreducible, then we can yield
pretty easily: by uniqueness of factorization, we’d need to have
be equal up to re-ordering, so either
and
, as desired, or
and
, so
, as desired. Then, we use induction on
to show that if
with the all irreducible, then we can cancel
. Once we show that, then the lemma immediately follows from considering
, knowing that uniqueness of factorization implies
, and then cancelling each
until
remains.)
We could probably have a similar cancellativity implication for type II UFAs too:
Conjecture. A type II UFA must be cancellative — in other words, for a *nonzero* ,
.
Attempt. Actually, the whole sign part of the definition of uniqueness may make this more complicated, even though we highly suspect it to be true. So a better way of writing out the proof could be to see if we can take the “nonzero subset” of the type II UFA and see if this is a type I UFA, in the same way that we can take the subset
from
, and then apply our lemma on type I UFAs.
We should be careful though, since “nonzero” isn’t enough — we want the “positive” elements. Only we don’t have order, so instead what we’re thinking is to pick one of or
for each
.
Let’s do this as follows. Let be a type II UFA. We can form
(We’ll have multiple for which the set
coincide, but that’s totally fine in this construction.) Then, we can form a subset of
, which we call
, by picking an element from each set in this set of sets. (This picking would probably require the Axiom of Choice; absent an order, I’m not sure how to define this picking function from the other ZF axioms.) Thus, we define
such that
So actually, let’s separate characteristic 2 versus not 2. If the characteristic is 2, then is literally just the set of nonzero elements of
(in “natural” bijection with that.) Then, the whole sign condition disappears, and it follows that
is a type I UFA. So we cite cancellativity of
: if
, then
. Now, this shows our desired type II cancellativity in the case that
. If
, then
, and
. Is it still possible for
? This connects to the “no divisors of zero” equivalently stated condition for integral domains. We know for example that there exist nonzero matrices whose product is zero. The problem is, cancellativity on
on its own can’t really say much about
, since
excludes 0. Furthermore, the whole type II UFA condition explicitly excludes 0 from the condition.
It remains to figure this out.
Briefly, though, let’s continue the train of thought, interesting in its own right, on being a type I UFA. Would this be true for
of characteristic not 2?
Well, we would still have that consists of nonzero elements of
, thus unique factorization applies to all elements of
. This means that if
, then we can write
where the are type II irreducible. If
is type II irreducible, then it can’t be written in the form
for
and
. In particular, that implies that we can’t have
with
, so
is type I irreducible. Thus, type II irreducibility implies type I irreducibility for elements in
.
Thus, for arbitrary , we can write
where the are type I irreducible. Furthermore, since the characteristic is not 2,
must contain exactly one of
or
for each
. Actually, though, it’s possible that the “wrong sign” for
was chosen when
was picked over
to be in
, so that the requisite signed
may not have been chosen for
. So it seems we might need to be more methodical about constructing
to conclude type I unique factorization within
.
—
The idea of “unique factorization” is very much in the league of the general concept of a free object. In particular, the type I UFA definition seems especially simple. Can we show something like the following?
Lemma. A commutative monoid is a type I UFA if and only if it is free.
Proof. What is a free commutative monoid? Well, it is basically the set of all words in a set of variables , subject to equalities that are guaranteed by the axioms of commutative monoids. But in commutative monoids we must have that words that are the same with different orderings of characters must actually be equal, and similarly words involving the identity are equal to words with the identity characters removed. Conversely, these (assuming that words automatically incorporate associativity) are the only conditions on equality of words. But this is exactly the definition of a type I UFA.
Conjecture. A commutative ring is a type II UFA if and only if it is free.
Disproof. Similarly to the type I case, what we want to see is whether the uniqueness condition is exactly the condition of equality that would be guaranteed by the axioms of a commutative ring. Clearly, the axioms show that the factorizations in the uniqueness condition are equivalent (re-ordering of multiplicative factors, even number of sign changes.) Given no other relations imposed on the set of variables, are those the only possible factorizations that could be equivalent? No, they aren’t, since we can have words involving addition: for example, with variables , a free commutative ring would include
. So these are different.
Thus, we won’t use the terminology of “type I UFA” anymore; instead, “UFA” will mean “type II UFA.” For example, what we have above is just that if is a UFA of characteristic 2, then
is a free commutative monoid. Do we still want a term to replace “type I irreducible” or “type II irreducible?” Let’s skip that question for now.
—
It seems very intuitive to me that type II irreducibility implies (standard) irreducibility (since it bans a whole swath of decompositions that would presumably include those banned by irreducibility.) Let’s try to show this, and in general investigate the relationship between the three concepts of irreducibility. We recall the definition of an irreducible element from standard commutative algebra: is irreducible if it is nonzero, not invertible, and not the product of two non-invertible elements. Clearly, type I irreducibility doesn’t make sense for commutative rings (which is why we have the type II concept), but we can define type II irreducibility in commutative rings. Then, can we show that a (nonzero) type II irreducible element must be irreducible?
We can try to show the converse. Say that a nonzero element is reducible. Then, it is either invertible or it can be written as
where
are non-invertible.
Say that where
are non-invertible. Since 1 and -1 are invertible, we must have
and
. But then
is type II reducible. So in this case, we have the desired.
Otherwise, is invertible. (Here, I don’t have as much intuition for whether
would be type II reducible. But let’s give it a shot.) Hence,
is cancellable: for any
,
. We split into cases depending on multiplicative order of
(call it
.)
If (or
doesn’t exist), then write
. If
, then there are two cases:
, contradicting
, or
, which is impossible. Thus, this set equality can’t hold. Otherwise, if
, then there are two cases:
, contradicting
, or
. If
, then
. Furthermore,
(since
),
(since
), and
(since
since
.) Thus,
, and
implies that the ring has characteristic not 2. So if
has order greater than 2, but if the order is not 4 or the characteristic is 2, then we’ve shown
to be type II reducible.
If has order 4 and the characteristic is not 2, then write
. If
, then there are two cases:
, impossible, or
, also impossible. Thus, this set equality can’t hold. Otherwise, if
, then there are two cases:
, or
. The second case yields
, which contradicts
since 4 doesn’t divide 6. But we can still have
— this works at least in a ring like
. So this doesn’t show type II reducibility.
If , then
but
; in that case,
. If we try a decomposition of the form
, we need
mod 2, and that always yields 1 and
. So this doesn’t show type II reducibility.
If , then
; is 1 type II reducible? If there exists some invertible
, then we could write
, showing that 1 is type II reducible. In particular, this can’t happen say for
, since there exist no elements beside
. It also can’t happen say for the ring
, so we probably can’t show something like “any ring greater than X cardinality must have 1 as type II reducible.”
Thus, to summarize, we can say the following:
Theorem. If is type II irreducible in a commutative ring
, then either:
is irreducible; or
and the only invertible elements are
and
; or
has order 2; or
and the characteristic of
is not 2.
Theorem. If is type II irreducible and not invertible in a commutative ring
, then
is irreducible.
—
Can we mimic the relationship between and
to show a similar relationship between free commutative monoids and UFAs? Maybe by taking a commutative monoid and “adding the negatives of elements” in a “closure-style” operation? Or can we form a subset of a UFA (maybe a more deliberate construction of
above) that must be a free commutative monoid, in the same way that
is a subset of
?
Let’s start with a UFA . In a similar way that
is a subset of
, we want to construct a subset
that must be a free commutative monoid.
It remains to try this.
Conversely, let’s start with a free commutative monoid , and let’s see if we can “add the negatives of elements” to
, forming a ring
that would then be a UFA.
It remains to try this as well.
—
We continue this discussion in a follow-up post.
