markdown
集合と集合演算-基本演習md 8be5bdf
exercise/math/discrete-math/集合と集合演算-基本演習.n.md

集合しゅうごうset集合演算しゅうごうえんざんset operation-基本演習きほんえんしゅう

date2026-06-06description集合の元、部分集合、集合演算、集合族、濃度の基本を、定義に戻って確認する基本演習である。prerequisites集合の基本 / 集合演算と包含関係 / 集合族と添字集合 / 集合の濃度と可算性type問題演習content_typeexercisestatusactiverelateddata/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.mdrelateddata/lecture/math/discrete-math/離散数学ポータル-講義.n.md
mathdiscrete-mathexerciseset
data/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

Sets集合しゅうごう and set operations集合演算しゅうごうえんざん - basic exercises

data/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

1演習えんしゅう方針ほうしん

集合しゅうごうset問題もんだいでは、予想よそうしてよいが、解答かいとうでは xA条件じょうけんもどる。包含ほうがんinclusionは「任意にんいげんelement」からはじめ、集合しゅうごうset等式とうしき両側りょうがわ包含ほうがんinclusionしめす。

VennVenn diagram方針ほうしんてる補助ほじょであり、証明しょうめいそのものではない。等式とうしきではひだりからみぎみぎからひだり両方向りょうほうこうしめし、失敗しっぱいしめるときは条件じょうけんやぶ反例はんれいcounterexampleげる。


1Exercise method

In problems about sets集合しゅうごう, a diagram may help you guess, but the answer should return to the condition xA. An inclusion包含ほうがん proof begins with an arbitrary elementげん, and a set equality is proved by inclusions in both directions.


2問題もんだい 1

A={1,2,3}B={3,2,1,1} とする。A=B であることを説明せつめいせよ。

2Problem 1

Let A={1,2,3} and B={3,2,1,1}. Explain why A=B.

2.1解答かいとう

集合しゅうごうsetでは順序じゅんじょ重複ちょうふく記録きろくしない。Aげんelement1,2,3 であり、Bげんelement1,2,3 である。したがって任意にんいx について xAxBつので、外延性がいえんせいextensionalityより A=B である。

2.1Answer

A set集合しゅうごう does not record order or repetition. The elementsげん of A are 1,2,3, and the elements of B are also 1,2,3. Therefore, for every x,

xAxB,

so A=B by extensionality外延性がいえんせい.

2.2解説かいせつ

この問題もんだいは、集合しゅうごうset同一性どういつせい表示ひょうじ仕方しかたではなくげんelement一致いっちまることを確認かくにんしている。

2.2Explanation

This problem checks that the identity of a set is determined by equality of elements, not by the way the set is displayed.

2.3よくあるあやま

したリストのならじゅん重複ちょうふくちがうからべつ集合しゅうごうsetだと判断はんだんするあやまりである。


2.3Common mistake

A common mistake is to decide that the sets are different because the order or repetition in the written lists is different.


3問題もんだい 2

全体集合ぜんたいしゅうごうuniversal setU={1,2,3,4,5} とし、A={1,2,3}B={3,4} とする。ABABABAcもとめよ。

3Problem 2

Let the universal set全体集合ぜんたいしゅうごう be U={1,2,3,4,5}, and let A={1,2,3} and B={3,4}. Find AB, AB, AB, and Ac.

3.1解答かいとう

和集合わしゅうごうunionすくなくとも一方いっぽうぞくするげんelement集合しゅうごうなので、AB={1,2,3,4} である。

共通部分きょうつうぶぶんintersection両方りょうほうぞくするげんelement集合しゅうごうなので、AB={3} である。

差集合さしゅうごうset differenceAぞくBぞくしないげんelement集合しゅうごうなので、AB={1,2} である。

補集合ほしゅうごうcomplementUなかAぞくしないげんelement集合しゅうごうなので、Ac={4,5} である。

3.1Answer

The union和集合わしゅうごう contains elements belonging to at least one of the two sets, so AB={1,2,3,4}.

The intersection共通部分きょうつうぶぶん contains elements belonging to both sets, so AB={3}.

The set difference差集合さしゅうごう contains elements belonging to A and not to B, so AB={1,2}.

The complement補集合ほしゅうごう contains elements of U that do not belong to A, so Ac={4,5}.

3.2解説かいせつ

補集合ほしゅうごうcomplementでは全体集合ぜんたいしゅうごうuniversal set固定こていする必要ひつようがある。この問題もんだいでは U明示めいじされているため Acめられる。

3.2Explanation

For a complement補集合ほしゅうごう, the universal set全体集合ぜんたいしゅうごう must be fixed. In this problem, U is explicitly given, so Ac is determined.

3.3よくあるあやま

Ac を「Aかれていないすべてのかず」とかんがえ、全体集合ぜんたいしゅうごうuniversal set確認かくにんしないあやまりである。


3.3Common mistake

A common mistake is to treat Ac as "all numbers not written in A" without checking the universal set.


4問題もんだい 3

任意にんい集合しゅうごうset A,B,C について、A(BC)=(AB)(AC)しめせ。

4Problem 3

For arbitrary sets集合しゅうごう A,B,C, prove A(BC)=(AB)(AC).

4.1解答かいとう

任意にんいxる。すると

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

である。論理ろんりlogic分配法則ぶんぱいほうそくdistributive lawより、これは

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

同値どうちである。したがって

x(AB)(AC)

である。任意にんいx について同値どうちなので、外延性がいえんせいextensionalityより等式とうしきつ。

4.1Answer

Take arbitrary x. Then

xA(BC)xAand(xBorxC).

By the distributive law分配法則ぶんぱいほうそく of logic論理ろんり, this is equivalent to

(xAandxB)or(xAandxC).

Therefore

x(AB)(AC).

Since the equivalence holds for arbitrary x, the equality follows by extensionality外延性がいえんせい.

4.2解説かいせつ

この問題もんだいは、集合演算しゅうごうえんざんset operationげんelement条件じょうけん翻訳ほんやくする練習れんしゅうである。

4.2Explanation

This problem practices translating a set operation集合演算しゅうごうえんざん into a condition on an elementげん.

4.3よくあるあやま

だけで説明せつめいして、任意にんいxたいする同値性どうちせいしめさないあやまりである。


4.3Common mistake

A common mistake is to rely only on a diagram and not prove the equivalence for arbitrary x.


5問題もんだい 4

An={mZnmを割り切る} とする。n=14An説明せつめいせよ。

5Problem 4

Let An={mZndividesm}. Describe n=14An.

5.1解答かいとう

mn=14An とは、m が 1、2、3、4 のすべてでれるという意味いみである。したがって mlcm(1,2,3,4)=12倍数ばいすうである。よって n=14An は 12 の倍数ばいすう全体ぜんたいである。

5.1Answer

The statement mn=14An means that m is divisible by all of 1,2,3,4. Hence m is a multiple of lcm(1,2,3,4)=12. Therefore n=14An is the set of all multiples of 12.

5.2解説かいせつ

添字付そえじつ共通部分きょうつうぶぶんindexed intersectionでは「すべての添字そえじindexについて」を確認かくにんする。この問題もんだいでは、複数ふくすうれる条件じょうけん同時どうじたすことが要求ようきゅうされている。

5.2Explanation

For an indexed intersection添字付き共通部分, one checks the condition for every index添字そえじ. Here the element must satisfy several divisibility conditions at the same time.

5.3よくあるあやま

共通部分きょうつうぶぶんintersection和集合わしゅうごうunion混同こんどうし、「どれかすくなくとも 1 つでれる」とあやまりである。共通部分きょうつうぶぶんintersectionでは、指定していされた条件じょうけんをすべて同時どうじたす必要ひつようがある。


5.3Common mistake

A common mistake is to confuse an intersection共通部分きょうつうぶぶん with a union和集合わしゅうごう and read the condition as "divisible by at least one of them".


6問題もんだい 5

順序上じゅんじょじょう注意ちゅういとして、この問題もんだいだけ濃度のうどcardinalityかんがかた先取さきどりする。単射たんしゃinjectionとはちがげんおな相手あいてかさならないこと、全射ぜんしゃsurjectionとはさきあまりがないこと、全単射ぜんたんしゃbijectionとはその両方りょうほうたす対応たいおうである。

せい偶数ぐうすう全体ぜんたい E={2,4,6,[PARSE ERROR: Undefined("Command(\"dots\")")]}N={1,2,3,[PARSE ERROR: Undefined("Command(\"dots\")")]}あいだ全単射ぜんたんしゃbijection構成こうせいせよ。

6Problem 5

Order note: this problem briefly previews the idea of cardinality濃度のうど. An injection単射たんしゃ means that distinct inputs do not overlap at the same output, a surjection全射ぜんしゃ means that no output is left over, and a bijection全単射ぜんたんしゃ means both conditions hold.

Construct a bijection全単射ぜんたんしゃ between the set E={2,4,6,[PARSE ERROR: Undefined("Command(\"dots\")")]} of positive even numbers and N={1,2,3,[PARSE ERROR: Undefined("Command(\"dots\")")]}.

6.1解答かいとう

f:NEf(n)=2n定義ていぎする。f(n1)=f(n2) なら 2n1=2n2 なので、実数じっすう非零定数ひれいていすう 2って n1=n2る。よって f単射たんしゃinjectionである。

任意にんいeEe=2nけるせい整数せいすう nつ。したがって f(n)=e であり、f全射ぜんしゃsurjectionである。よって f全単射ぜんたんしゃbijectionである。

6.1Answer

Define f:NE by f(n)=2n. If f(n1)=f(n2), then 2n1=2n2, and dividing by the nonzero real constant 2 gives n1=n2. Hence f is an injection単射たんしゃ.

For arbitrary eE, there is a positive integer n such that e=2n. Thus f(n)=e, so f is a surjection全射ぜんしゃ. Therefore f is a bijection全単射ぜんたんしゃ.

6.2解説かいせつ

濃度のうどcardinalityは、かぞえることではなく、全単射ぜんたんしゃbijection比較ひかくする。この問題もんだいは、無限集合むげんしゅうごうではしん部分集合ぶぶんしゅうごうproper subset全体ぜんたいおな濃度のうどcardinalityちうることを確認かくにんしている。

6.2Explanation

Cardinality濃度のうど is compared by bijections, not by whether one can finish counting. This problem checks that an infinite set may have the same cardinality as a proper subset.

6.3よくあるあやま

EN だから濃度のうどちいさいと判断はんだんするあやまりである。これは有限集合ゆうげんしゅうごう直感ちょっかん無限集合むげんしゅうごうへそのままうつしたことによる。

6.3Common mistake

A common mistake is to conclude that E has smaller cardinality because EN. That transfers finite-set intuition directly to infinite sets.

8証明しょうめい演習えんしゅう集合演算しゅうごうえんざん包含ほうがんたもつこと

8Proof exercise: set operations preserve inclusion

8.1問題もんだい

AB のとき、任意にんい集合しゅうごう C について

ACBC,ACBC

証明しょうめいせよ。また、全体集合ぜんたいしゅうごう U固定こていしたとき

UBUA

証明しょうめいせよ。

8.1Problem

Assume AB. Prove that, for every set集合しゅうごう C,

ACBC,ACBC.

Also, after fixing a universal set全体集合ぜんたいしゅうごう U, prove

UBUA.

8.2解答かいとう

xAC とする。xA または xC である。xA なら AB より xB なので xBC である。xC でも xBC である。よって ACBC である。

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

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

8.2Answer

Take xAC. Then xA or xC. If xA, then xB by AB, so xBC. If xC, then xBC as well. Hence ACBC.

Take xAC. Then xA and xC. Since AB, we have xB, so xBC. Hence ACBC.

Take xUB. If xA, then AB would imply xB, a contradiction. Therefore xA, so xUA.

8.3解説かいせつ

この問題もんだいは、集合演算しゅうごうえんざん包含ほうがんをどう保存ほぞんし、補集合ほしゅうごうだけは包含ほうがんきを反転はんてんさせることを確認かくにんする演習えんしゅうである。

8.3Explanation

This problem checks how set operations集合演算しゅうごうえんざん preserve inclusion包含ほうがん, and why complement reverses the direction of inclusion.

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