markdown
Cardinality and countability of setsmd e318e0d
lecture/math/discrete-math/cardinality-and-countability.lecture.n.md
Download PDF

Cardinality濃度のうど and countability可算性かさんせい of sets集合しゅうごう

date2026-07-14document_iddoc_4bd9109b21ed84b5ada20f1743c7cbcedescription集合の濃度を全単射で比較する考え方として導入し、有限集合、可算集合、非可算集合の違いを整理する講義である。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/power-set-basics.lecture.n.md / data/lecture/math/discrete-math/mathematical-induction-and-recursive-definitions.lecture.n.md / data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md / data/exercise/math/discrete-math/sets-and-set-operations.exercise.n.md
mathdiscrete-mathcardinalitycountabilitylecture

1Introduction

For a finite set集合しゅうごう, we compare size大きさ by counting elementsげん. For an infinite set無限集合むげんしゅうごう, counting to the end is impossible. The key idea is: if a one-to-one correspondence can be built, the sets have the same size.

In this viewpoint, cardinality濃度のうど is compared using a bijection全単射ぜんたんしゃ. A bijection is a correspondence対応たいおう with no leftovers and no overlaps, so it abstracts the act of matching elements one by one.

When comparing cardinality濃度のうど, use bijections rather than visual size. For infinite sets, the boundary is whether the set can be listed and whether a diagonal argument対角線論法たいかくせんろんぽう can defeat any proposed listing.

Order note: the formal lectures on maps写像しゃぞう, injections単射たんしゃ, surjections全射ぜんしゃ, and bijections全単射ぜんたんしゃ appear later. On this page, use the minimum needed meanings: a map assigns one output to each input, an injection has no overlaps, a surjection has no leftovers, and a bijection has neither overlaps nor leftovers.

2Terms and definitions

Two sets集合しゅうごう A,B have the same cardinality濃度のうど when there exists a bijection全単射ぜんたんしゃ AB.

For n[PARSE ERROR: Undefined("Command(\"ge\")")]0, write [n]={1,2,[PARSE ERROR: Undefined("Command(\"dots\")")],n}, with the convention [0]=[PARSE ERROR: Undefined("Command(\"varnothing\")")]. A set A is a finite set有限集合ゆうげんしゅうごう if, for some nonnegative integer n, there is a bijection between A and [n].

In this lecture, N={1,2,3,[PARSE ERROR: Undefined("Command(\"dots\")")]}. A set A is a countable set可算集合かさんしゅうごう if it is finite or has the same cardinality濃度のうど as N.

3Method

To compare cardinalities濃度のうど, construct a map写像しゃぞう rather than trying to count directly. The statement |A|[PARSE ERROR: Undefined("Command(\"le\")")]|B| means that an injection単射たんしゃ from A to B exists. Thus, to show |A|[PARSE ERROR: Undefined("Command(\"ge\")")]|B|, look for an injection from B to A. To show |A|=|B|, construct a bijection全単射ぜんたんしゃ.

data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md

4Intuitive explanation

The set of even natural numbers 2N is a part of N. However, n2n is a bijection全単射ぜんたんしゃ from N to 2N. Therefore, in the sense of cardinality濃度のうど, N and 2N have the same size.

This is where intuition for infinite sets無限集合むげんしゅうごう differs from intuition for finite sets. For finite sets, a proper subset真部分集合しんぶぶんしゅうごう has fewer elements. For infinite sets, a proper subset can correspond bijectively to the whole set.

To say that a set is countable可算かさん means that its elements can be labeled without duplication or omission by a finite initial segment of the natural numbers, or by all of N. A diagonal argument対角線論法たいかくせんろんぽう instead starts from any proposed infinite list and constructs an object missing from it.

5Precise idea: entrance to the diagonal argument対角線論法たいかくせんろんぽう

A countable set可算集合かさんしゅうごう is a set集合しゅうごう whose elements can be labeled without duplication or omission by finitely many indices or by N. In contrast, the set of real numbers実数じっすう x satisfying 0<x<1 is not countable.

Suppose this set were countable可算かさん. We could then form a sequence r1,r2,r3,[PARSE ERROR: Undefined("Command(\"dots\")")] containing every one of its elements. In the countably infinite case, list them in the order given by a bijection全単射ぜんたんしゃ with N. In the finite case, list every element once and then repeat the element 1/2.

Now apply Cantor's diagonal argument対角線論法たいかくせんろんぽう. For each ri, choose the decimal expansion ri=0.di1di2di3[PARSE ERROR: Undefined("Command(\"dots\")")] that does not end in an infinite string of 9s. Define s=0.s1s2s3[PARSE ERROR: Undefined("Command(\"dots\")")] by taking si=1 when dii1 and si=2 when dii=1. Then 0<s<1, and s differs from ri in the i-th digit. Because every digit of s is either 1 or 2, no alternative expansion ending in 9s can identify it with an entry in the list. Thus s is missing from the sequence, contradicting the assumption that the sequence contains every element.

In a diagonal argument対角線論法たいかくせんろんぽう, assume an arbitrary listing and construct a new object that differs from the n-th listed object at the n-th position. This construction shows that the listing is not a surjection全射ぜんしゃ.

6Worked example: the positive even numbers are countable可算かさん

6.1Problem

Show that the set of positive even numbers E={2,4,6,[PARSE ERROR: Undefined("Command(\"dots\")")]} has the same cardinality濃度のうど as N={1,2,3,[PARSE ERROR: Undefined("Command(\"dots\")")]}.

6.2Explanation

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

Take arbitrary eE. By the definition of E, there exists nN such that e=2n. Therefore f(n)=e, so f is a surjection全射ぜんしゃ. Hence f is a bijection全単射ぜんたんしゃ, and E and N have the same cardinality濃度のうど.

7How to identify it and related links

  • To compare sizes, look for a bijection全単射ぜんたんしゃ.
  • To prove countability, construct a listing from the natural numbers自然数しぜんすう.
  • To prove uncountability, construct an elementげん missing from an arbitrary list.
  • Intuition valid for finite sets may fail for infinite sets無限集合むげんしゅうごう.
data/lecture/math/discrete-math/power-set-basics.lecture.n.md data/lecture/math/discrete-math/mathematical-induction-and-recursive-definitions.lecture.n.md data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md
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
タブを全て閉じる