markdown
集合の基本md e8b2804
lecture/math/discrete-math/集合の基本-講義.n.md
Download PDF

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

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

2用語ようご定義ていぎ

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

xA

き、xAげんelementという。xA は、xAげんelementではないことをあらわす。

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

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

xAxB

つことである。ここで ABA=Bゆるす。ABAB かつ ABあらわす。

2Terms and definitions

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

xA

when an object x is contained in a set A, and we call x an elementげん of A. The notation xA 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 a set whose elements do not exist.

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

xAxB

holds. Here AB allows A=B. The notation AB means AB and AB.

3方針ほうしん

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

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

ABandBA

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

包含ほうがんinclusionしめすときは、任意にんいxって所属条件しょぞくじょうけんう。具体例ぐたいれいをいくつか調しらべることは予想よそうには役立やくだつが、証明しょうめいにはすべてのげん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 xA into another membership condition.

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

ABandBA.

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

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

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

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

4Intuitive explanation

It is useful to imagine a set集合しゅうごう as a collection of objects carrying a label. The statement xA says that x has the label A. The statement AB 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 xA" has no counterexample.

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

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

xAxB

つなら 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

xAxB

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多重集合たじゅうしゅうごう.

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

6Worked example: checking a subset relation from the definition

6.1問題もんだい

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

6.1Problem

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

6.2解説かいせつ

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

まず xA とする。このとき x2,4,6 のいずれかである。いずれも整数せいすうintegerであり、偶数ぐうすうeven numberであり、1[PARSE ERROR: Undefined("Command(\"le\")")]x[PARSE ERROR: Undefined("Command(\"le\")")]6たす。したがって xB である。よって AB である。

ぎゃくxB とする。このとき x1[PARSE ERROR: Undefined("Command(\"le\")")]x[PARSE ERROR: Undefined("Command(\"le\")")]6たす偶数ぐうすうeven numberである。したがって x2,4,6 のいずれかであり、xA である。よって BA である。

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

6.2Explanation

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

First take xA. 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 xB, so AB.

Conversely, take xB. 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 xA. Hence BA.

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写像しゃぞうmapぞう理解りかいにもつづく。

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

8見分みわかた

  • xA かどうか」をうなら、集合しゅうごうset議論ぎろんである。
  • AB かどうか」をうなら、任意にんいarbitraryxA から xBみちびく。
  • A=B かどうか」をうなら、ABBA別々べつべつ確認かくにんする。
  • 順序じゅんじょ重複ちょうふく重要じゅうようなら、集合しゅうごうsetだけでは情報じょうほう不足ふそくする。

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

8How to distinguish the ideas

  • If the question is whether xA, it is a question about membership所属しょぞく.
  • If the question is whether AB, start from an arbitrary xA and derive xB.
  • If the question is whether A=B, check AB and BA separately.
  • If order or repetition matters, a plain set集合しゅうごう does not contain enough information.
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
タブを全て閉じる