Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Алгебра_1 / Gilbert - Modern algebra with applications.pdf
Скачиваний:
34
Добавлен:
23.02.2015
Размер:
2.55 Mб
Скачать

DIVISORS

 

 

21

B

 

A

B

A

 

 

 

C

 

A

C

A (B C)

=

(A B) (A C)

Figure 2.14. Distributive law.

are the same for both circuits. We write C1 = C2 to mean that the circuits are equivalent. It can be verified that all the axioms for a boolean algebra are valid when interpreted as series-parallel switching circuits. For example, Figure 2.14 illustrates a distributive law. The zero corresponds to a circuit that is always open, and the unit corresponds to a circuit that is always closed. The complement C of a circuit C is open whenever C is closed and closed when C is open.

DIVISORS

As a last example, we are going to construct boolean algebras based on the divisibility relation on the set P of positive integers. Given two integers d and a in P, we write d|a (and call d a divisor of a) if a = qd for some q P. If p 2 in P, and the only divisors of p are 1 and p, then p is called a prime. Thus, the first few primes are 2, 3, 5, 7, 11, . . .. A fundamental fact about P is the prime factorization theorem: Every number a P is uniquely a product

of primes.

 

 

 

 

 

 

 

 

 

 

 

 

=

 

·

 

·

 

 

 

 

For

example, the prime factorizations of 110 and 12 are 110

2

5

11 and

 

2

 

a1

 

a2

ar

 

 

 

 

 

 

 

 

 

 

 

 

12 = 2

 

· 3. If a = p1

p2

· · · pr

 

is the prime factorization of a P where the

pi are distinct primes, the divisors d of a can be described as follows:

 

 

 

 

 

d|a

 

if and only if

 

d = p1d1 p2d2 · · · prdr

where

0 di ai

for each i.

Hence

 

divisors

of

12 22

3

1

in

P

are

0

0,

1 0,

 

 

 

 

2

 

0,

3 =

0

1

the 1 1

 

 

=

2=1

 

 

1 = 2 3

 

2 = 2 3

 

4 = 2 3

 

2

3 , 6

= 2 3 , and 12

 

2 3 .

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Given a and b in P, let p1, p2, . . . , pr denote the distinct primes that are divisors

of either a or b. Hence we can write a = p1a1 p2a2 · · · prar

and b = p1b1 p2b2 · · · prbr ,

where ai 0 and bi 0 for each i. Then the greatest common divisor d =

gcd(a, b) and the least common multiple m = lcm(a, b) of a and b are defined by

d = p1min(a,b)p2min(a,b) · · · prmin(a,b) and m = p1max(a,b)p2max(a,b) · · · prmax(a,b).

See Appendix 2 for a proof of the prime factorization theorem.

22

2 BOOLEAN ALGEBRAS

It follows that d is the unique integer in P that is a divisor of both a and b, and is a multiple of every such common divisor (hence the name). Similarly, m is the unique integer in P that is a multiple of both a and b, and is a divisor of every such common multiple. For example, gcd(2, 3) = 1 and gcd(12, 28) = 4, while lcm(2, 3) = 6 and lcm(12, 28) = 84.

With this background, we can describe some new examples of boolean algebras. Given n P, let

Dn = {d P|d divides n}.

It is clear that gcd and lcm are commutative binary operations on Dn, and it is easy to verify that the zero is 1 and the unit is n. To prove the distributive laws, let a, b, and c be elements of Dn, and write

a = p1a1 p2a2 · · · prar , b = p1b1 p2b2 · · · prbr , and c = p1c1 p2c2 · · · prcr ,

where p1, p2, . . . , pr are the distinct primes dividing at least one of a, b, and c, and where ai 0, bi 0, and ci 0 for each i. Then the first distributive law states that

gcd(a, lcm(b, c)) = lcm(gcd(a, b), gcd(a, c)).

If we write out the prime factorization of each side in terms of the primes pi , this holds if and only if for each i, the powers of pi are equal on both sides, that is,

min(ai , max(bi , ci )) = max(min(ai , bi ), min(ai , ci )).

To verify this, observe first that we may assume that bi ci (bi and ci can be interchanged without changing either side), and then check the three cases ai bi , bi ai ci , and ci ai separately. Hence the first distributive law holds; the other distributive law and the associative laws are verified similarly. Thus (Dn, gcd, lcm) satisfies all the axioms for a boolean algebra except for the existence of a complement.

But complements need not exist in general: For example, 6 has no complement in D18 = {1, 2, 3, 6, 9, 18}. Indeed, if 6 has a complement 6 in D18, then gcd(6, 6 ) = 1, so we must have 6 = 1. But then lcm(6, 6 ) = 6 and this is not the unit of D18. Hence 6 has no complement, so D18 is not a boolean algebra. However, all is not lost. The problem in D18 is that the prime factorization 18 = 2 · 32 has a repeated prime factor. An integer n P is called square-free if it is a product of distinct primes with none repeated (for example, every prime is square-free, as are 6 = 2 · 3, 10 = 2 · 5, 30 = 2 · 3 · 5, etc.) If n is square-free, it is routine to verify that the complement of d Dn is d = n/d, and we have

Example 2.15. If n P is square-free, then (Dn, gcd, lcm, ) is a boolean algebra where d = n/d for each d Dn.

The interpretations of the various boolean algebra terms are given in Table 2.8.

POSETS AND LATTICES

 

 

23

TABLE 2.8. Dictionary of Boolean Algebra Terms

 

 

 

 

 

 

Boolean

 

Switching

Propositional

 

Algebra

P(X)

Circuits

Logic

Dn

 

 

 

 

 

 

Series

And

gcd

 

 

Parallel

Or

lcm

 

Opposite

Not

a = n/a

0

Ø

Open

Contradiction

1

1

X

Closed

Tautology

n

=

=

Equivalent circuit

Logically equivalent

=

POSETS AND LATTICES

Boolean algebras were derived from the algebra of sets, and there is one important relation between sets that we have neglected to generalize to boolean algebras, namely, the inclusion relation. This relation can be defined in terms of the union operation by

A B if and only if A B = A.

We can define a corresponding relation on any boolean algebra (K, , , ) using the meet operation:

A B if and only if A B = A.

If the boolean algebra is the algebra of subsets of X, this relation is the usual inclusion relation.

Proposition 2.16. A B = A if and only if A B = B. Hence either of the these conditions will define the relation .

Proof. If A B = A, then it follows from the absorption law that A B = (A B) B = B. Similarly, if A B = B, it follows that A B = A.

Proposition 2.17. If A, B, and C are elements of a boolean algebra, K, the following properties of the relation hold.

(i) A A.

(reflexivity)

(ii) If A B and B A, then A = B.

(antisymmetry)

(iii) If A B and B C, then A C.

(transitivity)

Proof

 

(i)A A = A is an idempotent law.

(ii)If A B = A and B A = B, then A = A B = B A = B.

(iii)If A B = A and B C = B, then A C = (A B) C

= A (B C) = A B = A.

 

24

 

 

2 BOOLEAN ALGEBRAS

TABLE 2.9. Partial Order Relation in Various Boolean Algebras

 

 

 

 

 

 

 

 

Series-Parallel

 

Divisors of a

Boolean

Algebra of

Switching

Propositional

Square-Free

Algebra

Subsets

Circuits

Logic

Integer

 

 

 

 

 

A B = A

A B = A

A B = A

(A and B) = A

gcd(a, b) = a

A B

A B

A B

A B

a|b

A is less than

A is a subset

If A is closed,

A implies B

a divides b

or equal to B

of B

then B is

 

 

 

 

closed

 

 

 

 

 

 

 

A relation satisfying the three properties in Proposition 2.17 is called a partial order relation, and a set with a partial order on it is called a partially ordered set or poset for short. The interpretation of the partial order in various boolean algebras is given in Table 2.9.

A partial order on a finite set K can be displayed conveniently in a poset diagram in which the elements of K are represented by small circles. Lines are drawn connecting these elements so that there is a path from A to B that is always directed upward if and only if A B. Figure 2.15 illustrates the poset diagram of the boolean algebra of subsets (P ({a, b}, ), , ). Figure 2.16 illustrates the boolean algebra D110 = {1, 2, 5, 11, 10, 22, 55, 110} of positive divisors of 110 = 2 · 5 · 11. The partial order relation is divisibility, so that there is an upward path from a to b if and only if a divides b.

The following proposition shows that has properties similar to those of the inclusion relation in sets.

Proposition 2.18. If A, B, C are elements of a boolean algebra (K, , , ), then the following relations hold:

(i)A B A.

(ii)A A B.

(iii)A C and B C implies that A B C.

 

 

 

110

 

 

 

10

22

55

 

{a, b}

2

5

11

 

 

{a}

{b}

 

 

 

 

f

 

1

 

Figure 2.15.

Poset diagram of P ({a, b}).

Figure 2.16.

Poset diagram of D110.

POSETS AND LATTICES

25

(iv)A B if and only if A B = 0.

(v)0 A and A 1 for all A.

Proof

(i)(A B) A = (A A) B = A B so A B A.

(ii)A (A B) = A, so A A B.

(iii)(A B) C = (A C) (B C) = A B.

(iv)If A B, then A B = A and A B = A B B = A 0 = 0. On

the other hand, if A B = 0, then A B because

A = A 1 = A (B B ) = (A B) (A B )

= (A B) 0 = A B.

(v) 0 A = 0 and A 1 = A.

Not all posets are derived from boolean algebras. A boolean algebra is an extremely special kind of poset. We now determine conditions which ensure that a poset is indeed a boolean algebra. Given a partial order on a set K, we have to find two binary operations that correspond to the meet and join.

An element d is said to be the greatest lower bound of the elements a and b in a partially ordered set if d a, d b, and x is another element, for which x a, x b, then x d. We denote the greatest lower bound of a and b by a b. Similarly, we can define the least upper bound and denote it by . It follows from the antisymmetry of the partial order relation that each pair of elements a and b can have at most one greatest lower bound and at most one least upper bound.

A lattice is a partially ordered set in which every two elements have a greatest lower bound and a least upper bound. Thus Dn is a lattice for every integer n P, so by the discussion preceding Example 2.15, D18 is a lattice that is not a boolean algebra (see Figure 2.17).

We can now give an alternative definition of a boolean algebra in terms of a lattice: A boolean algebra is a lattice that has universal bounds (that is, elements 0 and 1 such that 0 a and a 1 for all elements a) and is distributive and complemented (that is, the distributive laws for and hold, and complements exist). It can be verified that this definition is equivalent to our original one.

In Figure 2.18, the elements c and d have a least upper bound b but no greatest lower bound.

We note in passing that the discussion preceding Example 2.15 shows that for each n P, the poset Dn is a lattice in which the distributive laws hold, but it is not a boolean algebra unless n is square-free. For further reading on lattices in applied algebra, consult, Davey and Priestley [16] or Lidl and Pilz [10].