markdown
集合演算と包含関係md 550c320
lecture/math/discrete-math/集合演算と包含関係-講義.n.md
Download PDF

集合演算しゅうごうえんざんset operation包含関係ほうがんかんけいinclusion relation

date2026-06-06description和集合、共通部分、差集合、補集合を、条件の論理演算として読み替え、包含関係と集合等式の証明へ接続する講義である。prerequisites集合の基本 / 命題のかつ・または・否定type講義statusactiverelateddata/lecture/math/discrete-math/離散数学ポータル-講義.n.md / data/lecture/math/discrete-math/集合の基本-講義.n.md / data/lecture/math/discrete-math/直積集合の基本-講義.n.md / data/lecture/math/discrete-math/べき集合の基本-講義.n.md / data/exercise/math/discrete-math/集合と集合演算-基本演習.n.mdrelateddata/lecture/math/discrete-math/離散数学ポータル-講義.n.md
mathdiscrete-mathset-operationlecture

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

1導入どうにゅう

集合演算しゅうごうえんざんset operation重要じゅうようなのは、図形ずけい領域りょういきることではなく、げんelementたす条件じょうけんcondition論理的ろんりてき変形へんけいすることである。和集合わしゅうごうunionは「または」、共通部分きょうつうぶぶんintersectionは「かつ」、補集合ほしゅうごうcomplementは「でない」に対応たいおうする。

この対応たいおうさきさえると、ド・モルガンの法則ほうそくDe Morgan's laws分配法則ぶんぱいほうそくdistributive law暗記あんきではなく、条件じょうけんcondition変形へんけいとしてみちびかれる。

和集合わしゅうごうunion共通部分きょうつうぶぶんintersection補集合ほしゅうごうcomplementは、それぞれ「または」「かつ」「ではない」という論理ろんり対応たいおうする。とくに補集合ほしゅうごうcomplement全体集合ぜんたいしゅうごう固定こていしてはじめて意味いみまる。

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.

2用語ようご定義ていぎ

集合しゅうごうset A,Bたいして、和集合わしゅうごうunion共通部分きょうつうぶぶんintersection差集合さしゅうごうset difference

AB={xxAまたはxB}
AB={xxAかつxB}
AB={xxAかつxB}

定義ていぎする。

全体集合ぜんたいしゅうごうuniversal set U固定こていしたとき、A補集合ほしゅうごうcomplement

Ac=UA={xUxA}

である。補集合ほしゅうごうcomplementは、どの全体集合ぜんたいしゅうごうuniversal setているかに依存いぞんする。この前提ぜんてい省略しょうりゃくすると、おなA でも Acわる。

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.

3方針ほうしん

集合演算しゅうごうえんざんset operationしき証明しょうめいするときは、任意にんいxり、xはじまる条件じょうけん翻訳ほんやくする。たとえば xA(BC)

xAかつ(xBまたはxC)

という命題めいだいである。ここから論理ろんり分配法則ぶんぱいほうそくdistributive lawもちいれば、

(xAかつxB)または(xAかつxC)

となる。これは x(AB)(AC)同値どうちである。

data/lecture/math/discrete-math/集合の基本-講義.n.md

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/集合の基本-講義.n.md

4直感的ちょっかんてき説明せつめい

集合演算しゅうごうえんざんset operationは、条件じょうけんcondition結合けつごう集合しゅうごうsetかたち方法ほうほうである。AB は「A名札なふだまたは B名札なふだつもの」、AB は「AB両方りょうほう名札なふだつもの」、AB は「A名札なふだつが B名札なふだたないもの」である。

この見方みかたでは、ド・モルガンの法則ほうそくDe Morgan's laws

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

自然しぜんである。「A または Bはいる」の否定ひていは、「Aはいらず、かつ Bはいらない」である。「A かつ Bはいる」の否定ひていは、「Aはいらない、または Bはいらない」である。

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".

5厳密げんみつ説明せつめい

AB とは、任意にんいx について xAxBつことである。したがって、包含関係ほうがんかんけいinclusion relation証明しょうめいでは、出発点しゅっぱつてん到達点とうたつてん明確めいかくにする。

たとえば ABA は、任意にんいxABると xA かつ xB なので、とくに xA である、という一文いちぶん証明しょうめいできる。

一方いっぽうAAB は、任意にんいxAると、xA または xBつため xAB である、という構造こうぞうである。ここで xB不要ふようである。「または」は片方かたほうしんならしんである。

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.

6例題れいだいド・モルガンの法則ほうそくDe Morgan's lawsげんelement証明しょうめいする

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

6.1問題もんだい

全体集合ぜんたいしゅうごうuniversal set U部分集合ぶぶんしゅうごうsubset A,B について、(AB)c=AcBcしめせ。

6.1Problem

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

6.2解説かいせつ

任意にんいxUる。すると

x(AB)cxAB

である。和集合わしゅうごうunion定義ていぎより、xAB は「xA または xB ではない」という意味いみである。したがって

xAB(xAかつxB)

である。これは

xAcかつxBc

同値どうちであり、すなわち xAcBc である。任意にんいx について同値どうちつので、外延性がいえんせいextensionalityより (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.

7わるものと保存ほぞんされるもの

操作そうさわるもの保存ほぞんされるもの
AB条件じょうけんを「または」でゆるめるABげんelementはすべてふく
AB条件じょうけんを「かつ」できびしくする両方りょうほうぞくするげんelementだけをのこ
ABBぞくするげんelementのぞAそとげんelement追加ついかしない
Ac視点してんA外側そとがわうつ全体集合ぜんたいしゅうごうuniversal set U固定こていする

和集合わしゅうごうunion共通部分きょうつうぶぶんintersection所属条件しょぞくじょうけんわせる操作そうさである。一方いっぽう補集合ほしゅうごうcomplement全体集合ぜんたいしゅうごう依存いぞんし、ド・モルガンの法則De Morgan's lawsでは論理結合ろんりけつごうきがわる。

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

8見分みわかた

  • 条件じょうけんに「または」があらわれたら、和集合わしゅうごうunionかんがえる。
  • 条件じょうけんに「かつ」があらわれたら、共通部分きょうつうぶぶんintersectionかんがえる。
  • 条件じょうけんに「でない」があらわれたら、補集合ほしゅうごうcomplementまたは差集合さしゅうごうset differenceかんがえる。
  • 補集合ほしゅうごうcomplement もちいるときは、全体集合ぜんたいしゅうごうuniversal setなにかを確認かくにんする。

見分みわけるときは、任意にんいx について左辺さへん所属条件しょぞくじょうけん右辺うへん所属条件しょぞくじょうけんならべる。VennVenn diagram予想よそうたすけるが、証明しょうめいでは条件じょうけん同値変形どうちへんけいく。

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.

9証明しょうめい補足ほそく集合演算しゅうごうえんざん包含ほうがんたも理由りゆう

ここでは、保存ほぞんpreservation という言葉ことば具体的ぐたいてき証明しょうめいする。仮定かてい

AB

である。このとき、任意にんい集合しゅうごう C について

ACBC,ACBC

つ。

証明しょうめいする。まず xAC とする。このとき xA または xC である。xA なら、AB より xB である。したがって xBC である。xC場合ばあいxBC である。よって ACBC である。

つぎに xAC とする。このとき xA かつ xC である。AB より xB なので、xBC である。よって ACBC である。

補集合ほしゅうごうではきが反転はんてんする。全体集合ぜんたいしゅうごう U固定こていすると、

ABUBUA

である。xUB なら xB である。もし xA なら AB より xB となり矛盾むじゅんする。したがって xA であり、xUA である。

この証明しょうめいは、集合演算しゅうごうえんざん記号きごう操作そうさとしてではなく、要素ようそぞくするかどうかの条件じょうけんとして練習れんしゅうでもある。

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
タブを全て閉じる