Embrace Multisets: Prime Factorization, GCD, and LCM

Target Audience: Students of mathematics, or computer science in their second semester or higher; or more senior students who want to see applications of multisets. Only surface knowledge of algebra required.

Abstract

This article is the first of a series devoted to highlighting multisets and their occurrences throughout undergraduate mathematics.

For natural numbers, the concepts of prime factorization, divisibility, greatest common divisor (gcd), and least common multiple (lcm) are widespread in many branches of mathematics. Students learn about them in their first semesters; if not even earlier at school. However, usually lesser known are the multiset-theoretic interpretations of these concepts. Here, we define a variant of multisets from the ground up, and show the usefulness of identifying natural number with their multiset of prime factors. That way, multiplication and division become multiset union and difference, respectively, and gcd and lcm become multiset intersection and symmetric difference.

We focus on expressing these correspondences algebraically. We recap the theory of lattices and obtain a lattice-isomorphism Lβ„•β‰…Mβ„™+ between the division lattice on natural numbers and the lattice of finite multisets over prime numbers with multiplicities in β„•β‰₯0. By generalizing the right-hand side to the superlattice Mβ„™, now with multiplicities in β„€, we recover a useful generalization of the left-hand side: a division lattice on β„šβΊ. In particular, we prove multiset intersection and symmetric difference on Mβ„™ to correspond on β„šβΊ to generalized variants of gcd and lcm fulfilling gcd(ab,cd)=gcd(a,c)lcm(b,d)lcm(ab,cd)=lcm(a,c)gcd(b,d) for reduced fraction representations ab and cd.


Table of Contents

1 Introduction

The central idea is the following. Every natural number nβ‰₯2 can be factored into its prime factors. Since multiplicity of prime factors is crucial, but order is not, the prime factorization of a natural number forms a multiset. For example, we have 18=2β‹…32 and can thus identify 18 with the multiset {2(1),3(2)}, where the exponents denote multiplicities, i.e., 2 occurs once and 3 occurs twice. By extending the identification to n=1 with the empty multiset, we obtain the bijections below between the natural numbers β„•={1,2,…} and the set Mβ„™+ of finite multisets with multiplicities in β„•β‰₯0. fact:β„•β†’Mβ„™+mult:Mβ„™+β†’β„• Here, fact maps every natural number to its prime factorization, and mult maps every multiset of primes to a natural number by multiplying, counting multplicities.

This article is driven by the following questions: Can we say more than β„•β‰…Mβ„™+ as sets? That is, is this an isomorphism of more than just sets? For example, how do common operations on natural numbers like multiplication, division, greatest common divisor (gcd), and least common multiple (lcm) look like on the side of Mβ„™+? Does fact preserve and reflect them?

Indeed, we will see that gcd, lcm of natural numbers correspond to multiset intersection and symmetric difference; both counting multiplicities in a suitable manner. Algebraically, these operation pairs make each side of β„•β‰…Mβ„™+ into a lattice. On the left-hand side, we have the division lattice (β„•,gcd,lcm), and on the right-hand side, we obtain the lattice (Mβ„™+,∩,Ξ”) of finite multisets with non-negative multiplicities equipped with multiset intersection and symmetric difference. In our main theorem, we prove that the properties of fact and mult extend accordingly, i.e., the functions defined above are in fact lattice isomorphisms.

Overview. We rigorously define multisets and their operations in Section 2.1. In Section 2.2 we recap the theory of lattices and detail the lattices involved above. Then, in Section 3 we prove our main theorem showing β„•β‰…Mβ„™+ as lattices. In Section 4, we extend the lattices on both sides and obtain a generalized theorem. We conclude in Section 5.

2 Preliminaries

We work in the usual metamathematical layer and remain vague about our foundation. We, however, do presuppose some kind of set theory, e.g. ZF. To avoid confusion with multisets later, let us refer to sets from the designated set theory as classical sets, and to multisets always as multisets.

2.1 Multisets

2.1.1 Definitions

Classical sets are β€œcollections of objects” without order and without duplicates. That is, an object is either element of a classical or is it not. Multisets, which have been folklore for long time, lift the latter requirement and instead attach to every element a multiplicity. For our purposes, we define multiplicities to be integers. Other domains may call for different choices, e.g. fuzzy sets, where elementhood is interpreted probabilistically, can be seen as multisets with multiplicities in [0,1]βŠ†β„.

Definition 2.1 [1]: A multiset is a pair (U,κU), where U is a classical set and κU:U→Z a function.

For x∈U, we say x has multiplicity κU(x), or equivalently, x occurs κU(x) times in (U,κU).

If it is clear from context, we write U instead of (U,ΞΊU).

Every classical set S can be identified with the multiset (S,s↦1). For instance, consider the multiset on U={a,b,c} in which a occurs once, b twice, and c -4 times. Formally, we have ΞΊU={a↦1,b↦2,cβ†¦βˆ’4}. In the following we adopt an easier notation for concrete multisets and write {a(1),b(2),c(βˆ’4)}.

We would like to treat two multisets as equal even if their associated functions do not have a common domain, e.g. it should hold {a(1)}={a(1),b(0)}. Therefore, we identify multisets U1 and U2 if ΞΊ1 and ΞΊ2 agree on all urelements of our set theory where at least one of them is non-zero. This allows us to speak of the empty multiset, which we denote by βˆ….

Definition 2.2: Given two multisets U1,U2, we define

  • the union U1βˆͺU2:=(U1βˆͺU2,x↦κ1(x)+ΞΊ2(x))
  • the intersection U1∩U2:=(U1βˆͺU2,x↦min{ΞΊ1(x),ΞΊ2(x)})
  • the symmetric difference U1Ξ”U2:=(U1βˆͺU2,x↦max{ΞΊ1(x),ΞΊ2(x)})
  • the negative βˆ’U1:=(U1,xβ†¦βˆ’ΞΊ1(x))
  • the difference U1βˆ’U2:=(U1βˆͺU2,x↦κ1(x)βˆ’ΞΊ2(x))

where we take ΞΊ1(x) and ΞΊ2(x) to be 0 if x lies outside their domain, respectively.

For example, we have:

  • {a(2),b(4)}βˆͺ{a(βˆ’5)}={a(βˆ’3),b(4)}
  • {a(2),b(3)}∩{a(10),b(βˆ’5)}={a(2),b(βˆ’5)}
  • {a(2),b(3)}Ξ”{a(10)}={a(10),b(3)}

Definition 2.3: We say U is finite if ΞΊU(x)β‰ 0 only for finitely many x.

In the sequel, we will be working with multisets that may only contain prime numbers. In general, almost always we only work with multisets over a designated classical set, as defined below.

Definition 2.4 (Multisets over a Classical Set): Let X be a classical set. Then, define

  • MX to be the classical set of all finite multisets with elements only in X.
  • MX+ to be subset of MX where we only allow non-negative multiplicities.

2.1.2 Prime Factorization as a Multiset

For the rest of this article, let β„•={1,2,…} denote the natural numbers without zero and β„™={2,3,5,…} the prime numbers. Prime factorization allows us to factor every natural number nβ‰₯2 into its prime factors, which form a multiset. For example, we can identify 18=2β‹…32 with the multiset {2(1),3(2)}.

Overall, this gives rise to the bijections fact:β„•β†’Mβ„™+mult:Mβ„™+β†’β„• where fact maps every natural number to its prime factorization, and mult maps every multiset of primes to a natural number by multiplying, counting multplicities. By convention, we set fact(1)=βˆ… and mult(βˆ…)=1.

We have the following exemplary correspondences:

concept on β„•example on β„•example on Mβ„™+concept on Mβ„™+
numbera:=6A:={2(1),3(1)}multiset of primes
numberb:=14B:={2(1),7(1)}multiset of primes
multiplication6β‹…14=84AβˆͺB={2(2),3(1),7(1)}union
greatest common divisorgcd(6,14)=2A∩B={2(1)}intersection
least common multiplelcm(6,14)=42AΞ”B={2(1),3(1),7(1)}symmetric difference

These correspondences hold in general: fact is a homomorphism wrt. the operations multiplication, gcd, and lcm, and translates these operations into multiset union, intersection, and symmetric difference. Analogously for mult, which preserves unions, intersections, and symmetric differences, and translates everything into the other direction. The list below formally summarizes these properties, quantified over all a,bβˆˆβ„• and A,B∈Mβ„™+. We defer proving these identities until Section 3, at which point we will have introduced enough multiset and algebra machinery to allow for a concise proof.

fact(aβ‹…b)=fact(a)βˆͺfact(b)fact(gcd(a,b))=fact(a)∩fact(b)fact(lcm(a,b))=fact(a)Ξ”fact(b)mult(AβˆͺB)=mult(A)β‹…mult(B)mult(A∩B)=gcd(mult(A),mult(B))mult(AΞ”B)=lcm(mult(A),mult(B))

Remark 2.5: The division abβ„• of two natural numbers over β„• corresponds to multiset difference only if its result is a natural number again. For example,

fact(142)=fact(14)βˆ’fact(2)

but, depending on your definition, 146β„•=2, whereas fact(14)βˆ’fact(6) corresponds to not a single natural number as it contains elements with negative multiplicities.

2.1.3 Technical Lemmas

In the following, we collect some technical lemmas concerning multisets. Of central interest for the proofs of our main theorems will be Lemmas 2.7 β€” 2.9.

Lemma 2.6:

  1. Union, intersection, symmetric difference are commutative and associative operations.
  2. The negative is an involution.
  3. U1βˆ’U2=U1βˆͺ(βˆ’U2)
  4. U1∩U2=(U1βˆͺU2)βˆ’(U1Ξ”U2)=βˆ’(βˆ’U1Ξ”βˆ’U2)
  5. U1Ξ”U2=(U1βˆͺU2)βˆ’(U1∩U2)=βˆ’(βˆ’U1βˆ©βˆ’U2)
Click for proof

  1. Immediate by definition.

  2. Immediate by definition.

  3. Immediate by definition.

  4. The equalities amount to showing

    min{ΞΊ1(x),ΞΊ2(x)}=(ΞΊ1(x)+ΞΊ2(x))βˆ’max{ΞΊ1(x),ΞΊ2(x)} min{ΞΊ1(x),ΞΊ2(x)}=βˆ’max{βˆ’ΞΊ1(x),βˆ’ΞΊ2(x)}

    Both identities are general properties of min/max following by case analysis with cases ΞΊ1(x)<ΞΊ2(x) and ΞΊ1(x)β‰₯ΞΊ2(x).

  5. By dualization of point 4. ∎

Lemma 2.7: Intersection and symmetric difference are related as follows:

  1. U1∩(U2Ξ”U3)=(U1∩U2)Ξ”(U1∩U3)
  2. U1Ξ”(U2∩U3)=(U1Ξ”U2)∩(U1Ξ”U3)
Click for proof

  1. We have to show min{ΞΊ1(x),max{ΞΊ2(x),ΞΊ3(x)}} =max{min{ΞΊ1(x),ΞΊ2(x)},min{ΞΊ1(x),ΞΊ3(x)}}.

    This follows by a rather tedious, but straightforward case analysis on the 6 cases of all total orders possible on {ΞΊ1(x),ΞΊ2(x),ΞΊ3(x)}.

  2. By dualization of point 1.

∎

The theory of multisets also admits the decomposition theorem below, splitting a multiset into elements of positive and of negative multiplicity. We note that this theorem comes at no surprise given that we proved the negative to be an involution β€” since generally in mathematics, involutions often go hand-in-hand with decomposition theorems.

Lemma 2.8 (Sign Decomposition): Let U be a multiset, then U=UβΊβˆ’U⁻ with

  • positive part U⁺:={x∈U∣κU(x)>0}=UΞ”βˆ… and
  • negative part U⁻:={x∈U∣κU(x)<0}=Uβˆ©βˆ…

We can express intersection and symmetric difference using sign decompositions as follows.

Lemma 2.9: Let U and V be multisets, then

  • U∩V=(U⁺∩V⁺)βˆ’(U⁻ΔV⁻)
  • UΞ”V=(U⁺ΔV⁺)βˆ’(U⁻∩V⁻)

The proofs of the latter two lemmas are left to the reader. Note that the second point of Lemma 2.9 follows by duality from the first point.

2.2 Lattices

Recall we equipped the natural numbers with gcd and lcm to arrive at the triple (β„•,gcd,lcm); and the multisets over primes Mβ„™+ with intersection and symmetric difference to arrive at (Mβ„™+,∩,Ξ”). Moreover, we had functions fact and mult bijecting the underlying sets. In this section, our goal is to see these things from an algebraic perspective. Concretely, we motivate the theory of lattices: a suitable theory that makes these triples into lattices and the bijections into lattice isomorphisms.

Let us begin with some motivation. Roughly, we can think of (mathematical) lattices as modeling real-world lattices such as the one in Figure 1.

TODO
Fig. 1: An exemplary lattice (taken from here under CC0 license)

Intuitively, a real-world lattice has two characteristics: its collection of nodal points and its mesh structure. How we encode this in mathematics? Straightforwardly, we encode the former as a classical set L, e.g., for the lattice in Figure 1 we have L=β„•β‚€Γ—β„•β‚€. Representing the mesh structure requires more care since naively choosing graphs on L for it would disregard the additional structure real-world (and mathematical lattices) often have. For example, any two nodal points have common ancestors and descendants, and moreover there is a unique ancestor (descendant) that is nearest, in some distance sense, to two given nodal points. These things do not hold in arbitrary graphs; hence graphs are too generous to model lattices. Instead, we model lattices by two functions ∨,∧:LΓ—Lβ†’L called meet and join, of which we think as picking those unique ancestors and descendants for any two nodal points.

Let us better understand those unique points and operations by means of the lattice in Figure 1. Imagine you are standing on (0,1) and your friend on (5,0). You would like to gather at some common point, but both of you can only walk downwards for some reason. Which point can you gather at such that both of you only travel the minimum distance necessary? At (5,0), and even uniquely so. This is the β€œunique ancestor” we referred to above. We encode this using the meet operation as (0,1)∨(5,0)=(5,0). Now on the contrary, imagine you both could only walk upwards starting from (0,1) and (5,0), respectively. We again ask the question: Which point can you gather at such that both of you only travel the minimum distance necessary? At (5,1), again uniquely so. We encode this β€œunique descendant” as the join (0,1)∧(5,0)=(5,1). Can you derive general formulae for meets and joins for the lattice on L=β„•β‚€Γ—β„•β‚€ represented in Figure 1?

Spoiler

(a,b)βˆ¨β„•β‚€(c,d):=(min{a,c},min{b,d}) (a,b)βˆ§β„•β‚€(c,d):=(max{a,c},max{b,d})

With the imaginery above, it is also clear meet and join ought to be commutative and associative operations. Here, associativity says that when three people p1,p2,p3 would like to gather, e.g., by only walking upwards, then there is a unique gathering point independent of whether they gather up β€œin parallel” (p1∧p2∧p3), by the first two people gathering first ((p1∧p2)∧p3), or by the latter two people gathering first (p1∧(p2∧p3)).

Definition 2.10: A lattice is a structure (L,∨,∧) consisting of a classical set L and two commutative and associative operations ∨,∧:LΓ—Lβ†’L fulfilling the absorption laws a∨(a∧b)=aa∧(a∨b)=a

We leave it to the reader to motivate and prove the absorption laws in context of Figure 1. Thus, (β„•β‚€Γ—β„•β‚€,min,max) is a lattice.

Remark 2.11: Lattices can be equivalently described from an order-theoretical perspective: lattices are partially ordered classical sets where each the classical set possseses a greatest lower bound (also: meet) and least upper bound (join) for every two-element subset {a,b}. We refer to Wikipedia for a definition of these bounds.

It often helps to think of lattices in terms of both the algebraic and order-theoretical perspective. The example lattice from above corresponds to β„•β‚€Γ—β„•β‚€ partially ordered by (a,b)βŠ‘(c,d)⇔(aβŠ‘c) and (bβŠ‘d). In particular, lattices are usually drawn as Hasse diagrams, as was done in Figure 1: every upwards edge x–y stands for xβŠ‘y.

Remark 2.12: Lattice in which additionally meet and join distribute over each other, as below, are called distributive lattices. a∨(b∧c)=(a∨b)∧(a∨c)a∧(b∨c)=(a∧b)∨(a∧c)

2.2.1 Divison Lattice on β„•

Given two natural numbers n and m, we define the well-known divisibility relation n∣mβ‡”βˆƒqβˆˆβ„•.nβ‹…q=m This is a partial order, and moreover for every two-element subset, the greatest common divisor and the least common multiple serve as meets and joins, respectively.

Lemma 2.13 (Division Lattice on β„•): Lβ„•:=(β„•,gcd,lcm) is a lattice.

See Figure 2 for a partial visualization of Lβ„• as a Hasse diagram. For example, the meet of 18 and 12 is 6=lcm(18,12), and 6 is precisely the nearest point you can reach from both 18 and 12 by only walking downards. Also, the join of 2 and 5 is 10=gcd(2,5), and 10 is precisely the nearest point you can reach from both 2 and 5 by only walking the edges upwards.

Remark 2.14: In the division lattice on β„•, the element 1 has the property that it divides every other number, i.e., order-theoretically 1βŠ‘n for all n. Lattices that possess such a bottom element are called lower-bounded lattices.

TODO
Fig. 2: Parts of the infinite division lattice (taken from this interactive website by Bryan Gin-ge Chen)

2.2.2 Multiset Lattices

Let X be a classical set. Then we can put a lattice structure on the multisets over X by ordering them by U1βŠ‘U2β‡”βˆ€x∈U1. ΞΊ1(x)≀κ2(x). See Figure 3 for a partial visualization of the corresponding Hasse diagram. From an algebraic point of view, the meet and join of two multisets are precisely the intersection and symmetric difference, respectively. For example, we have the joins

  • {a(1)}Ξ”{b(2)}={a(1),b(2)}
  • {a(1),b(1)}Ξ”{b(2)}={a(1),b(2)}
Partial visualization of the multiset lattice over the classical set \{a,b\}
Fig. 3: Parts of the multiset lattice over {a,b}, own creation under CC BY-SA 4.0

Theorem 2.15 (Multiset Lattices): Let X be a classical set.

  1. (MX,∩,Ξ”) is a distributive lattice.

  2. (MX+,∩,Ξ”)βŠ†MX is a distributive sublattice with bottom βˆ…

We leave the proof to the reader.

Remark 2.16: On first sight, the reader might wonder why the join operation for the multiset lattice is symmetric difference and not union. After all, in contrast, with classical sets all subsets of X form a lattice wrt. classical intersection and classical union. This lattice is known as the powerset lattice.

When generalizing to multisets, however, the classical union must not become multiset, but instead symmetric difference. This can be seen in the example from above: the join of {a(1),b(1)} and {b(2)} is {a(1),b(2)}. It is clear that the latter is the order-theoretical join (wrt. βŠ‘ given above). A multiset union of both operands would result in {a(1),b3}, counting b three times. The symmetric difference avoids such overcounting.

Remark 2.17: Ignoring size issues of the chosen set theory, the class of all multisets would form a lattice, too.

3 Divison Lattice on β„• β‰… Positive Finite Multisets over β„™

With the preliminaries done, we can finally state and prove our main theorem: the division lattice on β„• can be identified with the lattice of positive finite multisets over primes.

Theorem 3.1: Lβ„•β‰…Mβ„™+ as lower-bounded lattices, where

  • fact:Lβ„•β†’Mβ„™+ maps natural numbers to their prime factorization
  • mult:Mβ„™+β†’Lβ„• maps multisets of primes to their multiplication

Moreover, multiplication is preserved and reflected as multiset union:

fact(aβ‹…b)=fact(a)βˆͺfact(b)mult(AβˆͺB)=mult(A)β‹…mult(B)

Click for proof

We noted above that fact and mult are bijections and inverses of each other. Hence, it suffices to show that fact is a homomorphism of lower-bounded lattices and preserves multiplication.

Let us first recall some helper lemmas from elementary number theory. For aβˆˆβ„•, we write Ξ pβˆˆβ„™ ppa to refer to its prime factorization. We have the identities below. gcd(a,b)=Ξ pβˆˆβ„™ pmin{pa,pb} lcm(a,b)=Ξ pβˆˆβ„™ pmax{pa,pb} aβ‹…b=Ξ pβˆˆβ„™ ppa+pb

It immediately follows that fact preserves multiplication, fact(aβ‹…b)=fact(Ξ pβˆˆβ„™ ppa+pb) =(p:β„™)↦pa+pb =fact(A)βˆͺfact(B)

meets,

fact(gcd(a,b))=fact(Ξ pβˆˆβ„™ pmin{pa,pb}) =(p:β„™)↦min{pa,pb} =fact(A)∩fact(B)

and joins:

fact(lcm(a,b))=fact(Ξ pβˆˆβ„™ pmax{pa,pb}) =(p:β„™)↦max{pa,pb} =fact(A)Ξ”fact(B)

Finally fact also preserves the bottom element: fact(1)=βˆ…. ∎

4 Division lattice on β„šβΊ β‰… Finite Multisets over β„™

We have seen Lβ„•β‰…Mβ„™+, i.e., how the division lattice on β„• is isomorphic to the lattice of positive finite multisets over primes. What happens if we now relax (extend) the RHS to the superlattice Mβ„™ with negative multiplicities allowed, too? Is there also a corresponding superlattice of Lβ„• that is isomorphic to Mβ„™? Indeed there is, and a natural generalization of Lβ„• to a division lattice Lβ„šβΊ on β„šβΊ fits the bill, where β„šβΊ={qβˆˆβ„šβˆ£q>0} are the positive rational numbers. In particular, this yields meaningful extensions of gcd and lcm to β„šβΊ.

Before defining Lβ„šβΊ and proving Lβ„šβΊβ‰…Mβ„™, let us begin with building some intuition as to why that should be the case. Recall how we bijected positive finite multisets over β„™ with natural numbers: we mapped a multiset A to the multiplication Ξ pβˆˆβ„™ pΞΊA(p). What happens if we allowed negative multiplicities, i.e., ΞΊA(p)<0? Nothing, really; multiplying prime factors raised to possibly negative exponents still makes sense. For example, we would map {5(1),2(βˆ’1),3(βˆ’2)} to 51β‹…2βˆ’1β‹…3βˆ’2=518. Hence, we represent fractions as multisets with prime factors of their numerator becoming positive elements and prime factors of their denominator becoming negative elements. To ensure uniqueness, we always choose the reduced fraction representation.

Definition 4.1 (Prime Factorization of Rational Numbers): Let rβˆˆβ„šβΊ be a rational number with reduced fraction representation ab with a,bβˆˆβ„•. Let a=p1a1⋅…⋅pnan and b=q1b1⋅…⋅qmbm be the prime factorizations of a and b with n,mβ‰₯0. Then, we call r=p1a1⋅…⋅pnanβ‹…q1βˆ’b1⋅…⋅qmβˆ’bm. the prime factorization of r.

By convention, we set 1=⟨empty product⟩.

This allows identifying rational numbers with multisets of their prime factors. In contrast to earlier discussions, we must now allow multiplicities in β„€.

Definition 4.2 (Lattice on β„šβΊ): Define the lattice Lβ„šβΊ=(β„šβΊ,gcd,lcm) with

  • gcd(ab,cd)=gcd(a,c)lcm(b,d)
  • lcm(ab,cd)=lcm(a,c)gcd(b,d)

Here, we overload the names of gcd and lcm as the functions defined here agree with the previously defined functions when restricted to β„•. We leave proving the lattice properties to the reader.

For example, we have gcd(β…œ,β…–)=gcd(3,2)lcm(8,5)=140. Moreover, lcm(β…œ,β…–)=lcm(3,2)gcd(8,5)=61, and indeed, 6 is the first common multiple of both β…œ and β…–.

Theorem 4.3: Lβ„šβΊβ‰…MX as lattices, where

  • fact:Lβ„šβΊβ†’Mβ„™ maps rational numbers to their prime factorization
  • mult:Mβ„™β†’Lβ„šβΊ maps multisets of primes to their multiplication

Moreover, multiplication and division are preserved and reflected as follows: fact(aβ‹…b)=fact(a)βˆͺfact(b)fact(ab)=fact(a)βˆ’fact(b)mult(AβˆͺB)=mult(A)β‹…mult(B)mult(Aβˆ’B)=mult(A)mult(B)

Again, we overload the names of mult and fact.

Click for proof

We noted above that fact and mult are bijections and inverses of each other. Hence, it suffices to show that fact is a homomorphism of lower-bounded lattices and preserves multiplication as well as division.

Similar to the proof of Theorem 3.1, let us first recall some (generalized) helper lemmas from elementary number theory. For uβˆˆβ„šβΊ, writing Ξ pβˆˆβ„™ ppu to refer to its prime factorization, we have the identities below for u,vβˆˆβ„šβΊ. uβ‹…v=Ξ pβˆˆβ„™ ppu+pv uv=Ξ pβˆˆβ„™ ppuβˆ’pv

From these identities, it immediately follows that fact preserves multiplication and division. Moreover, it preserves meets: let u,vβˆˆβ„š with reduced fraction representations u=u⁺u⁻ and v=v⁺v⁻. Then we have:

fact(gcd(u,v)) = fact(gcd(u⁺,v⁺)lcm(u⁻,v⁻)) = fact(gcd(u⁺,v⁺))βˆ’fact(lcm(u⁻,v⁻))(iv) = (fact(u⁺)∩fact(v⁺))βˆ’(fact(u⁻)Ξ”fact(v⁻))(v) = (fact(u)⁺∩fact(v)⁺)βˆ’(fact(u)⁻Δfact(v)⁻)(vi) = fact(u)∩fact(v)

To arrive at line (iv), we used that Theorem 3.1 already established fact being a lattice homomorphism on the sublattice Lβ„•. For line (v), we used the sign decomposition of multisets from Lemma 2.7, and for line (vi) we used Lemma 2.9.

Preservation of joins is proved analogously. ∎

5 Future Work

Both of our main theorems 3.1 and 4.3 state a lattice isomorphism to capture the correspondence between gcd, lcm and multiset intersection and symmetric difference. Moreover, both theorems guarantee that the respective lattice isomorphism preserves more structure. In case of Theorem 3.1, the lattice isomorphism also preserves multiplication on natural numbers as multiset union. And in case of Theorem 4.3, the isomorphism additionally preserves division on rational numbers as multiset difference. Algebraically, what do these additional preservation properties mean? Is there a known concept in algebra subsuming lattices that would allow us to concisely express them?

We will answer this affirmatively in a future post, namely with lattice-ordered monoids and lattice-ordered groups.


TODO for Author


  1. D Loeb, β€œSets with a negative number of elements” https://www.sciencedirect.com/science/article/pii/0001870892900119?via%3Dihub ^
Navid Roux
Navid Roux
Computer Science M. Sc. Student

Academically interested in formal systems for knowledge representation; recreationally in love with sports.

Related