markdown
集合の基本md a1ca28a
lecture/math/discrete-math/set-basics.lecture.n.md
Download PDF

集合しゅうごうsetの基本きほん

date2026-07-14document_iddoc_df3d016f09b51e6d16617f93dff49281description集合を、対象を条件で集めて議論するための基本言語として導入し、元、空集合、部分集合、外延性を整理する講義である。prerequisites命題・述語と量化 / 証明法と反例type講義content_typelecturestatusactiverelateddata/lecture/math/discrete-math/discrete-mathematics-portal.lecture.n.md / data/lecture/math/discrete-math/propositions-predicates-and-quantifiers.lecture.n.md / data/lecture/math/discrete-math/proof-methods-and-counterexamples.lecture.n.md / data/lecture/math/discrete-math/set-operations-and-inclusion.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-mathsetlecture

Basics of sets集合しゅうごう

1導入どうにゅう

集合しゅうごうsetを学まなぶときに最初さいしょに固定こていすべき問といは、「何なにを同おなじ対象たいしょうの集あつまりとして扱あつかい、何なにを別べつの集あつまりとして扱あつかうか」である。集合しゅうごうsetは単たんなる袋ふくろではない。条件じょうけんconditionを満みたす対象たいしょうobjectを集あつめ、含ふくまれるかどうかで議論ぎろんするための言語げんごである。

この講義こうぎでは、元げんelement、所属しょぞくmembership、空集合くうしゅうごうempty set、部分集合ぶぶんしゅうごうsubset、外延性がいえんせいextensionalityを整理せいりする。ここを曖昧あいまいにすると、後あとの関係かんけいrelation、写像しゃぞうmap、べき集合しゅうごうpower setで「元げんなのか、部分集合ぶぶんしゅうごうsubsetなのか」が混乱こんらんする。

集合しゅうごうsetでは順序じゅんじょや重複ちょうふくではなく、所属しょぞくするかどうかだけが意味いみを持もつ。したがって、同おなじ元げんelementを持もつなら、書かき方かたや並ならび順じゅんが違ちがっても同おなじ集合しゅうごうsetである。

1Introduction

The first question to fix when studying sets集合しゅうごう is this: what are we treating as one collection, and what are we treating as a different collection? A set is not merely a bag. It is a language for collecting objects対象たいしょう that satisfy a condition条件じょうけん and then reasoning by whether each object is included.

This lecture organizes elements元げん, membership所属しょぞく, the empty set空集合くうしゅうごう, subsets部分集合ぶぶんしゅうごう, and extensionality外延性がいえんせい. If this point is vague, later topics such as relations関係かんけい, maps写像しゃぞう, and power sets冪集合べきしゅうごう become confusing because one loses track of whether something is an element or a subset.

For a set集合しゅうごう, only membership matters, not order or repetition. Thus two sets with the same elements元げん are equal even if their elements are written in a different order or repeated in the notation.

2用語ようごと定義ていぎ

集合しゅうごうsetとは、対象たいしょうobjectを集あつめたものである。集合しゅうごうset A に対象たいしょうobject x が含ふくまれることを

x∈A

と書かき、x を A の元げんelementという。x∉A は、x が A の元げんelementではないことを表あらわす。

空集合くうしゅうごうempty set [PARSE ERROR: Undefined("Command(\"varnothing\")")] は、元げんelementを 1 つも持もたない集合しゅうごうsetである。空集合くうしゅうごうempty setは「存在そんざいしない集合しゅうごう」ではなく、存在そんざいする集合しゅうごうでありながら元げんelementを 1 つも含ふくまない。

部分集合ぶぶんしゅうごうsubsetは、包含ほうがんinclusionを表あらわす。A⊆B とは、すべての x について

x∈A⟹x∈B

が成立せいりつすることである。ここで A⊆B は A=B を許ゆるす。A⊊B は A⊆B かつ A≠B を表あらわす。

2Terms and definitions

A set集合しゅうごう is a collection of objects対象たいしょう. We write

x∈A

when an object x is contained in a set A, and we call x an element元げん of A. The notation x∉A means that x is not an element of A.

The empty set空集合くうしゅうごう [PARSE ERROR: Undefined("Command(\"varnothing\")")] is the set with no elements. It is not a nonexistent set; it is an existing set that contains no elements.

A subset部分集合ぶぶんしゅうごう expresses inclusion包含ほうがん. The statement A⊆B means that, for every x,

x∈A⟹x∈B

holds. Here A⊆B allows A=B. The notation A⊊B means A⊆B and A≠B.

3方針ほうしん

集合しゅうごうsetを扱あつかうときは、図ずや直感ちょっかんだけで判断はんだんしない。まず「任意にんいの元げんelement x を取とる」と考かんがえ、x∈A という条件じょうけんを別べつの条件じょうけんへ変形へんけいする。

この方針ほうしんは単純たんじゅんだが、強力きょうりょくである。集合しゅうごうsetの等式とうしき A=B を示しめすには、

A⊆BandB⊆A

を示しめせばよい。これは、両方りょうほうの集合しゅうごうsetが同おなじ元げんelementを持もつことを確認かくにんする方法ほうほうである。

包含ほうがんinclusion A⊆B を示しめすときは、任意にんいの x を取とり、x∈A と仮定かていして x∈B を導みちびく。具体例ぐたいれいをいくつか調しらべることは予想よそうには役立やくだつが、証明しょうめいには全すべての元げんelementを扱あつかう論理ろんりが必要ひつようである。

3Method

When working with sets集合しゅうごう, do not decide only from a picture or intuition. First take an arbitrary element元げん x and transform the condition x∈A into another membership condition.

This method is simple but powerful. To prove a set equality A=B, it is enough to prove

A⊆BandB⊆A.

This checks that the two sets have exactly the same elements from both directions.

To prove an inclusion包含ほうがん A⊆B, take an arbitrary x, assume x∈A, and derive x∈B. Checking a few examples can suggest a conjecture, but a proof must use logic that covers every element元げん.

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

集合しゅうごうsetは、名札なふだの付ついた対象たいしょうobjectの集あつまりとして考かんがえるとよい。x∈A は「x に A の名札なふだが付ついている」という主張しゅちょうである。A⊆B は「A の名札なふだが付ついているものには、必かならず B の名札なふだも付ついている」という主張しゅちょうである。

この見方みかたでは、空集合くうしゅうごうempty setは何なにも入はいっていない箱はこである。したがって、空集合くうしゅうごうempty setは任意にんいの集合しゅうごうset A の部分集合ぶぶんしゅうごうsubsetである。なぜなら、x∈[PARSE ERROR: Undefined("Command(\"varnothing\")")] となる x が存在そんざいしないため、「x∈[PARSE ERROR: Undefined("Command(\"varnothing\")")] なら x∈A」という条件文じょうけんぶんに反例はんれいが存在そんざいしないからである。

4Intuitive explanation

It is useful to imagine a set集合しゅうごう as a collection of objects carrying a label. The statement x∈A says that x has the label A. The statement A⊆B says that every object with label A also has label B.

From this point of view, the empty set空集合くうしゅうごう is an empty box. Therefore it is a subset部分集合ぶぶんしゅうごう of every set A. There is no x with x∈[PARSE ERROR: Undefined("Command(\"varnothing\")")], so the conditional statement "if x∈[PARSE ERROR: Undefined("Command(\"varnothing\")")], then x∈A" has no counterexample.

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

集合しゅうごうsetの同一性どういつせいは、外延性がいえんせいextensionalityで決きまる。外延性がいえんせいextensionalityとは、すべての x について

x∈A⟺x∈B

が成立せいりつするなら A=B と判断はんだんする、という原理げんりである。つまり、集合しゅうごうsetは作つくり方かたではなく、含ふくまれる元げんelementによって決きまる。

たとえば

A={1,2,3},B={3,2,1,1}

と書かいても、A=B である。集合しゅうごうsetでは順序じゅんじょと重複ちょうふくは記録きろくされない。ここで順序じゅんじょを記録きろくしたいなら順序対じゅんじょついordered pairや列れつsequenceを用もちいる。重複ちょうふくを記録きろくしたいなら多重集合しゅうごうmultisetを用もちいる。

外延性がいえんせいextensionalityにより、2 つの集合しゅうごうsetが同おなじ元げんelementを持もつなら同おなじ集合しゅうごうである。名前なまえや記法きほうではなく、所属条件しょぞくじょうけんを比較ひかくすることが厳密げんみつな判断はんだんになる。

5Rigorous explanation

The identity of a set集合しゅうごう is determined by extensionality外延性がいえんせい. Extensionality is the principle that if

x∈A⟺x∈B

holds for every x, then A=B. In other words, a set is determined by its elements, not by the way it was written.

For example,

A={1,2,3},B={3,2,1,1}

still gives A=B. In a set, order and repetition are not recorded. If order must be recorded, use an ordered pair順序対じゅんじょつい or a sequence列れつ. If repetition must be recorded, use a multiset多重集合たじゅうしゅうごう.

By extensionality外延性がいえんせい, two sets with the same elements元げん are the same set. A rigorous comparison therefore uses membership conditions, not names or notation.

6例題れいだい:部分集合ぶぶんしゅうごうsubsetを定義ていぎから確認かくにんする

6Worked example: checking a subset relation from the definition

6.1問題もんだい

A={2,4,6}、B={n∈Z∣nは偶数で1[PARSE ERROR: Undefined("Command(\"le\")")]n[PARSE ERROR: Undefined("Command(\"le\")")]6} とする。A=B を示しめせ。

6.1Problem

Let A={2,4,6} and B={n∈Z∣nisevenand1[PARSE ERROR: Undefined("Command(\"le\")")]n[PARSE ERROR: Undefined("Command(\"le\")")]6}. Prove A=B.

6.2解説かいせつ

集合しゅうごうsetの等式とうしきは、両側りょうがわの包含ほうがんinclusionで示しめす。

まず x∈A とする。このとき x は 2,4,6 のいずれかである。いずれも整数せいすうintegerであり、偶数ぐうすうeven numberであり、1[PARSE ERROR: Undefined("Command(\"le\")")]x[PARSE ERROR: Undefined("Command(\"le\")")]6 を満みたす。したがって x∈B である。よって A⊆B である。

逆ぎゃくに x∈B とする。このとき x は 1[PARSE ERROR: Undefined("Command(\"le\")")]x[PARSE ERROR: Undefined("Command(\"le\")")]6 を満みたす偶数ぐうすうeven numberである。したがって x は 2,4,6 のいずれかであり、x∈A である。よって B⊆A である。

両方りょうほうの包含ほうがんinclusionが成立せいりつするので A=B である。この例れいで確認かくにんしているのは、集合しゅうごうsetは表示ひょうじの仕方しかたではなく、元げんelementの一致いっちで比較ひかくするという点てんである。

6.2Explanation

A set equality is proved by proving inclusion包含ほうがん in both directions.

First take x∈A. Then x is one of 2,4,6. Each of these is an integer整数せいすう, is an even number偶数ぐうすう, and satisfies 1[PARSE ERROR: Undefined("Command(\"le\")")]x[PARSE ERROR: Undefined("Command(\"le\")")]6. Hence x∈B, so A⊆B.

Conversely, take x∈B. Then x is an even integer satisfying 1[PARSE ERROR: Undefined("Command(\"le\")")]x[PARSE ERROR: Undefined("Command(\"le\")")]6. Therefore x is one of 2,4,6, so x∈A. Hence B⊆A.

Both inclusions hold, so A=B. This example checks the central point of this page: sets are compared by equality of elements, not by the surface form of their descriptions.

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

操作そうさ・見方みかた変かわるもの保存ほぞんされるもの
内包的記法きほうset-builder notationへの変換へんかん表示ひょうじの仕方しかた元げんelement の全体ぜんたい
外延的記法きほうroster notationへの変換へんかん列挙れっきょの仕方しかた集合しゅうごうset そのもの
順序じゅんじょの入いれ替かえ書かかれた順番じゅんばん集合しゅうごうset そのもの
重複ちょうふくした列挙れっきょ見みた目め元げんelement の有無うむ

変かえられるのは表記ひょうきや条件じょうけんの書かき方かたであり、保存ほぞんしたいのは各かく対象たいしょうobjectについて所属しょぞくの真偽しんぎが一致いっちすることである。この視点してんは、後あとの集合演算しゅうごうえんざんset operationで得えられる集合しゅうごうを比較ひかくするときにも使つかう。

7What changes and what is preserved

Operation or viewpointWhat changesWhat is preserved
Rewriting in set-builder notation内包的記法ないほうてききほうThe form of the descriptionThe whole collection of elements元げん
Rewriting in roster notation外延的記法がいえんてききほうThe way the elements are listedThe set集合しゅうごう itself
Reordering the listThe written orderThe set集合しゅうごう itself
Listing an element repeatedlyThe visual appearanceWhether each element元げん is present

Notation and the way a condition is written may change; what must be preserved is the truth value of membership for every object対象たいしょう. The same viewpoint is used later when comparing sets obtained by set operations集合演算しゅうごうえんざん.

8見分みわけ方かた

  • 「x∈A かどうか」を問とうなら、集合しゅうごうsetの議論ぎろんである。
  • 「A⊆B かどうか」を問とうなら、任意にんいarbitraryの x∈A から x∈B を導みちびく。
  • 「A=B かどうか」を問とうなら、A⊆B と B⊆A を別々べつべつに確認かくにんする。
  • 順序じゅんじょや重複ちょうふくが重要じゅうようなら、集合しゅうごうsetだけでは情報じょうほうが不足ふそくする。

迷まよったら、候補こうほの元げんelement x が左辺さへんと右辺うへんのどちらに入はいるかを条件じょうけんで書かき換かえる。包含ほうがんでないことは 1 つの反例はんれいcounterexampleで示しめせるが、等号とうごうには両方向りょうほうこうの包含ほうがんが必要ひつようである。

8How to distinguish the ideas

  • If the question is whether x∈A, it is a question about membership所属しょぞく.
  • If the question is whether A⊆B, start from an arbitrary x∈A and derive x∈B.
  • If the question is whether A=B, check A⊆B and B⊆A separately.
  • If order or repetition matters, a plain set集合しゅうごう does not contain enough information.

When in doubt, rewrite the conditions for whether a candidate element元げん x belongs to the left and right sides. A single counterexample反例はんれい disproves an inclusion, whereas equality requires inclusions in both directions.

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