Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Методичка дискретка(англ).doc
Скачиваний:
2
Добавлен:
12.11.2019
Размер:
1.33 Mб
Скачать

Figure 3

Here is a proof where we show that the sets are subsets of each other. First consider xA  (BC). Then x is in A for sure. Also, x is in BC. So either xB, in which case xAB, or else xC, in which case xAC. In either case, we have x  (AB)  (AC). This shows that A  (BC)  (AB)  (A C).

Now consider y  (AB)  (AC). Either y AB or yAC; we consider the two cases separately. If yAB, then yA and yB, so yBC and hence yA  (BC). Similarly, if yAC, then yA and yC, so yBC and thus yA  (BC). Since yA  (BC) in both cases, we've shown that (AB)  (AC)  A  (BC). We already proved the opposite inclusion, so the two sets are equal. ■

Figure 4

The proofs using Venn diagrams seem much easier than the proofs where we ana­lyze inclusions elementwise. Proofs by pic­ture make many people nervous; on the other hand, the Venn diagram for A, B, C has eight regions [see Figure 4] and these comprise all the logical possibilities, so proofs using Venn diagrams are in fact valid. A much more serious objection to proofs via Venn diagrams is that they hide the thought pro­cess; the logic used to shade the diagrams is not specified. If we had written out the reasoning behind the diagrams in Figure 3, the proof would have been as long as the elementwise proof in Example 4, which relies only on logic. Another reason for avoiding Venn diagrams is that they are hard to draw whenever there are more than three sets. Still, nearly everyone who works with mathematics uses pictures, including Venn diagrams, to help understand mathematical situations.

Table 1 gives a few of the basic relationships in set theory. Many other relationships exist. They can be verified using one of three methods: (1) Venn diagrams, (2) elementwise arguments as in Examples 3 and 4, or (3) applying the laws in Table 1. Sometimes, proofs will combine methods (2) and (3).

EXAMPLE 5 We give three proofs for the relationship

(AB)  AcB

Proof 1. See Figure 5. The picture for (AB)  Ac is double-hatched and is clearly a subset of B.

Proof 2. We show that x  (AB)  Ac implies xB. Consider x in (AB)  Ac. Then xAc, and so xA. Since x is also in A B, it is in A or B, so it follows that x must be in B.

Proof 3. Using the laws of algebra in Table 1, we obtain

(AB)  Ac = Ac  (AB) commutativity 1b

= (AcA)  (AcB) distributivity 3b

= (AAc)  (AcB) commutativity 1b

=   (AcB) 7b

= (AcB)   commutativity la

= AcB. identity law 5a

Figure 5

This identity agrees, of course, with the picture on the left in Figure 5. Now it is clear that AcBB, since if x  (AcB), then x must be in B.

The symmetric difference  is also an associative operation:

(A B)  C = A  (BC).

We can see this by looking at the Venn diagrams in Figure 6. On the left we have hatched A B one way and C the other. Then (AB)  C is the set hatched one way or the other but not both. Doing the same sort of thing with A and BC gives us the same set, so the sets (AB)  C and A  (BC) are equal.

FIGURE 6

Of course, it is also possible to prove this fact without appealing to the pictures. You may want to construct such a proof yourself. Be warned, though, that a detailed argument will be fairly complicated.

Since  is associative, the expression ABC is unambiguous. Note that an element belongs to this set provided that it belongs to exactly one or to all three of the sets A, B and C.

Consider two sets S and T. For each element s in S and each element t in T, we form an ordered pair (s, t). Here s is the first element of the ordered pair, t is the second element, and the order is important. Thus (s1, t1) == (s2, t2) if and only if s1 = s2 and t1 = t2. The set of all ordered pairs (s, t) is called the product of S and T and written ST:

ST = {(s, t) : sS and t T}.

If S = T, we sometimes write S2 for S x S.

EXAMPLE 6 (a) Let S = {1, 2, 3, 4} and T = {a, b, c}. Then ST consists of the twelve ordered pairs listed on the left in Figure 7. We could also depict

(1, c) (2, c) (3, c) (4, c) c ○ ○ ○ ○

(1, b) (2, b) (3, b) (4, b) b ○ ○ ○ ○

(1, a) (2, a) (3, a) (4, a) a ○ ○ ○ ○

1 2 3 4

List of {1, 2, 3, 4}×{a, b, c} Picture of {1, 2, 3, 4}×{a, b, c}