markdown
Set operations and inclusion relationsmd 837fe55
lecture/math/discrete-math/set-operations-and-inclusion.lecture.n.md
Download PDF

Set operations集合演算しゅうごうえんざん and inclusion relations包含関係ほうがんかんけい

date2026-07-14document_iddoc_d461d0f391135f5db5f6f49f46c80085description和集合、共通部分、差集合、補集合を、条件の論理演算として読み替え、包含関係と集合等式の証明へ接続する講義である。prerequisites命題・述語と量化 / 証明法と反例 / 集合の基本type講義content_typelecturestatusactiverelateddata/lecture/math/discrete-math/discrete-mathematics-portal.lecture.n.md / data/lecture/math/discrete-math/set-basics.lecture.n.md / data/lecture/math/discrete-math/families-of-sets-and-index-sets.lecture.n.md / data/lecture/math/discrete-math/cartesian-product-basics.lecture.n.md / data/lecture/math/discrete-math/power-set-basics.lecture.n.md / data/exercise/math/discrete-math/sets-and-set-operations.exercise.n.md
mathdiscrete-mathset-operationlecture

1Introduction

The important point in set operations集合演算しゅうごうえんざん is not coloring regions in a diagram, but transforming the condition条件じょうけん that an elementげん satisfies. Union和集合わしゅうごう corresponds to "or", intersection共通部分きょうつうぶぶん corresponds to "and", and complement補集合ほしゅうごう corresponds to "not".

Once this correspondence is fixed, De Morgan's lawsド・モルガンの法則 and the distributive law分配法則ぶんぱいほうそく are not memorized rules. They are derived by transforming logical conditions.

2Terms and definitions

For sets集合しゅうごう A,B, define union和集合わしゅうごう, intersection共通部分きょうつうぶぶん, and set difference差集合さしゅうごう by

AB={xxAorxB}
AB={xxAandxB}
AB={xxAandxB}

After fixing a universal set全体集合ぜんたいしゅうごう U, the complement補集合ほしゅうごう of A is

Ac=UA={xUxA}.

The complement depends on which universal set is being used. If this premise is omitted, the same A can have different complements.

3Method

To prove an identity of set operations集合演算しゅうごうえんざん, take arbitrary x and translate the statement into a membership condition. For example, xA(BC) means

xAand(xBorxC).

Using the distributive law分配法則ぶんぱいほうそく of logic, this becomes

(xAandxB)or(xAandxC),

which is equivalent to x(AB)(AC).

data/lecture/math/discrete-math/set-basics.lecture.n.md

4Intuitive explanation

A set operation集合演算しゅうごうえんざん is a way to view a combination of conditions条件じょうけん as a set. The set AB consists of objects that have the label A or the label B. The set AB consists of objects that have both labels. The set AB consists of objects that have label A but not label B.

In this view, De Morgan's lawsド・モルガンの法則

(AB)c=AcBc,(AB)c=AcBc

are natural. The negation of "in A or in B" is "not in A and not in B". The negation of "in A and in B" is "not in A or not in B".

5Rigorous explanation

The statement AB means that, for every x, xAxB holds. Therefore a proof of an inclusion relation包含関係ほうがんかんけい must make the starting point and the target clear.

For example, ABA is proved in one sentence: take arbitrary xAB. Then xA and xB, so in particular xA.

On the other hand, AAB is proved as follows. Take arbitrary xA. Then xA or xB is true, so xAB. Here no information about xB is needed because an "or" statement is true when one side is true.

6Worked example: proving De Morgan's law by elements

6.1Problem

For subsets A,B of a universal set全体集合ぜんたいしゅうごう U, prove (AB)c=AcBc.

6.2Explanation

Take arbitrary xU. Then

x(AB)cxAB.

By the definition of union和集合わしゅうごう, xAB means that it is not true that xA or xB. Hence

xAB(xAandxB).

This is equivalent to

xAcandxBc,

that is, xAcBc. Since the equivalence holds for every x, extensionality外延性がいえんせい gives (AB)c=AcBc.

7What changes and what is preserved

OperationWhat changesWhat is preserved
ABThe condition is weakened by "or"All elementsげん of A and B are included
ABThe condition is tightened by "and"Only elements belonging to both sets remain
ABElements belonging to B are removedNo element outside A is added
AcThe viewpoint moves outside AThe universal set全体集合ぜんたいしゅうごう U is fixed

Union和集合わしゅうごう and intersection共通部分きょうつうぶぶん combine membership conditions. A complement補集合ほしゅうごう instead depends on the universal set, and De Morgan's lawsド・モルガンの法則 interchange the logical connectives.

8How to distinguish the ideas

  • If the condition contains "or", think of a union和集合わしゅうごう.
  • If the condition contains "and", think of an intersection共通部分きょうつうぶぶん.
  • If the condition contains "not", think of a complement補集合ほしゅうごう or a set difference差集合さしゅうごう.
  • When using a complement, first check what the universal set全体集合ぜんたいしゅうごう is.

To distinguish the operations, place the membership conditions for the left and right sides next to each other for an arbitrary x. A Venn diagramVenn図べんず can suggest the result, but a proof should write the logical equivalences between the conditions.

9Proof supplement: why set operations preserve inclusion

Here we prove concretely what preservation保存ほぞん means. Assume

AB.

Then, for every set C,

ACBC,ACBC

hold.

To prove the first inclusion, take xAC. Then xA or xC. If xA, then xB by AB, hence xBC. If xC, then again xBC. Therefore ACBC.

Next take xAC. Then xA and xC. Since AB, we have xB, so xBC. Therefore ACBC.

For complements, the direction reverses. If the universal set U is fixed, then

ABUBUA.

Indeed, if xUB, then xB. If xA were true, then AB would imply xB, a contradiction. Hence xA, so xUA.

This proof is also practice in reading set operations not as symbol manipulation, but as conditions on whether an element belongs to a set.

raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる