Chaptcer 02 Basic Structures 基本结构

Part 03 Cardinality of Sets

Covering 2.5


1. Cardinality of Sets 集合的基数

[TOC]

1.1. Relation between Sets and Mapping 集合与映射的关系

The cardinality of a set A is equal to the cardinality of a set B, denoted | A | = | B |, iff there exists a bijection from A to B.

If there is an injection from A to B, the cardinality of A is less than or the same as the cardinality of B and we write |A| ≤ |B|. When |A| ≤ |B| and A and B have different cardinality, we say that the cardinality of A is less than the cardinality of B and write |A| < |B|.

1.2. Countable Sets 可数集

A set that is either finite or has the same cardinality as the set of positive integers called countable可数的

A set that is not countable is called uncountable不可数的

When an infinite set S is countable, we denote the cardinality of S by (aleph null“阿里夫零”))

If , the set A is countably infinite可数无限

Below we will list some examples of countably infinite sets

1.2.1. Hilbert’s Grand Hotel 希尔伯特大酒店

Hilbert’s Grand Hotel (希尔伯特大酒店)是一个很有意思的问题,它有很多细分小问题,每个小问题的证明思想都能被用于其他问题的证明,可谓思想的游戏。篇幅有限不过多介绍,有兴趣可以参看《离散数学及其应用》的例题和习题。

1.2.2. Show that a set is countable 可数性证明

Key: Find a bijection!

Method 1. Linear Mapping 简单的线性映射

e.g.1 The set E of even positive integers 偶数集

Let f(x) = 2x. Then, f is a bijection from to

x 1 2 3 4 ……
f(x) 2 4 6 8 ……

The numbers of positive even integers is the same as positive integers

E is a proper subset of , but

e.g.2 The set of integers Z 整数集

Method 2. Cantor Table 利用Cantor表构造映射

e.g.3 The set of positive rational numbers $Q^+$ 有理数集

Let

Step 1 Prove $|Q^+|\leq|S|$

is injective

Hence,

Step 2 Prove $|S|=|Z^+|$

Cantor Table

1 2 3 p
1 (1,1) (2,1) (3,1) (p,1)
2 (1,2) (2,2) (3,2) (p,2)
3 (1,3) (2,3) (3,3) (p,3)
q (1,q) (2,q) (3,q) (p,q)

for any pair (p,q),

this mapping is invertable, which means we found a bijection

An infinite set is countable iff it is possible to list all the elements of the set in a sequence

Step 3 Prove $|Z^+|\leq|Q^+|$

All in all,

Note:

The set of all rational numbers Q, positive and negative, is also countable infinite.

e.g.4 Show that the set of the real numbers with decimal representations consisting of all 1s is countable

We can arrange the numbers in a 2-dimensional table as follows:

1 2 3 4 5
1
2
3
4
5

Then number these numbers as before, like 1 to , 2 to , 3 to , 4 to , 5 to ……

Thus, we found a bijection!

Q.E.D.

Method 3. Define an order for strings 字符串的“运算符重载”

e.g.5 Show that the set of finite strings S over a finite alphabet A is countably infinite

Assume an alphabetical ordering of symbols in A. Show that the strings can be listed in a sequence. First list

  1. All the strings of length 0 in alphabetical order.
  2. Then all the strings of length 1 in lexicographic (as in a dictionary) order.
  3. Then all the strings of length 2 in lexicographic order.
  4. And so on.

This implies a bijection from N to S and hence it is a countably infinite set.

e.g.6 Show that the set of all Java programs is countable

A computer program written in a programming language can be thought of as a string of symbols from a finite alphabet

Hence, using the conclusion form the last example, we know this statement is true.

1.2.3. The properties of the countable sets 可数集性质

  1. No infinite set has a smaller cardinality than a countable set

  2. The union of two countable sets is countable

    Proof:

    Suppose that A and B are both countable sets. Without loss of generality, we can assume that A and B are disjoint.

    • Case 1: A and B are finite. (Obviously…)
    • Case 2: A is infinite and B is finite. (Obviously…)
    • Case 3: A and B are both countably infinite. (We can list their elements as and respectively. By alternating terms of these two sequences, we can list the elements of A∪B in the infinite sequence , hence A∪B is countably infinite)

    Q.E.D.

  3. The union of finite number of countable sets is countable

  4. The union of a countable number of countable sets is countable

1.3. Uncountable Sets 不可数集

We mainly talks about how to prove a set is uncountable

1.3.1. Examples of Proof 证明举例

Method 1. Cantor Diagonalization Argument 康托尔对角线法

e.g.1 The set of real numbers between 0 and 1 is uncountable

Step 1 Prove $|Z^+|\leq|A|$

and

Step 2 Prove $|Z^+|\ne|A|$

Assume A is countable, then let

Represent each real number in the list using its decimal expansion十进制表示

List:

Now construct a new number x

明白“对角线法”的意思了吗?简而言之就是将对角线上的元素换掉

Then x is not equal to any number in the list

So whatever sequence we construct, there is always at least a new number that is not included!

Hence, no such list can exist and hence the interval (0,1) is uncountable

e.g.2 Show that the set of the real numbers with decimal representations consisting of all 1s or 9s is uncountable

Denote the set as A, assume A is countable, then let

Represent each real number in the list using its decimal expansion十进制表示

List:

Now construct a new number x

Then x is not equal to any number in the list

So whatever sequence we construct, there is always at least a new number that is not included!

Hence, no such list can exist and hence A is uncountable

这题与可数集的例题4很像,但是一个可数一个不可数,本质原因在于例题4中的基数为,而这里增加了一个9后,基数变为了,而这个数是不可数的,后面会给它一个记号c或者

Method 2. Find a bijection to an uncountable set 找出到已知不可数集的双射

e.g.3 The set of real numbers has the same cardinality as the set (0,1)

f(x) is a bijection from to R

Method 3. Schrőder-Bernstein Theorem

Schrőder-Bernstein Theorem : If A and B are sets with and then .

In other words, if there are one-to-one functions f from A to B and g from B to A, then there is a one to –one correspondence between A and B.

有点像夹逼定理……

e.g.4 Show that the cardinality of [0,1] is c

Let

Hence, g(x) is a bijection from [0,1] to

and

Thus

1.3.2. [Summary 小总结] How to Prove $|A|\leq|B|$

通过以上几道例题可以发现,的证明经常被用到,这里总结证明此式子的三大方法

Method 1. Find an injective 找到一个单射

in e.g.1 Step1

Prove

Method 2. Prove $A\subseteq B$

in e.g.3

Method 3. Prove $|A|=|C|,C\subseteq B$ 在B中找到与A基数相同的子集

in e.g.3

and

Thus

1.4. Applications 理论应用

1.4.1. Computability 可计算性

We say that a function is computable可计算的) if there is a computer program in some programming language that finds the values of this function. If a function is not computable we say it is uncomputable不可计算的

To show that there are uncomputable functions, we need to establish two results.

First, we need to show that the set of all computer programs in any particular programming language is countable. (Proved before)

Next, we show that there are uncountably many different functions from a particular countably infinite set to itself.

So now, there are only a countable number of computer programs. Consequently, there are only a countable number of computable functions. However, there are an uncountable number of functions, so not all functions are computable.

1.4.2. The Continuum Hypothesis 连续统假设

In brief,

1. Show that $|P(Z^+)|=|R|$

  • First, for any , there is a real number r in (0,1) whose decimal expansion is

    Then we have constructed a one-to-one function from to (0, 1)

  • Second, for any r in (0,1), it has a binary expansion

    Then there is a set

    So we constructed a one-to-one function from (0, 1) to

    P.S.

    In order that our function from (0, 1) to to be well-defined, we must choose which of two equivalent expressions to represent numbers thath ave terminating binary expansions to use (for example, versus ); we can decide to always use the terminating form, the one ending in all 0’s.)

  • By the Schrőder-Bernstein theorem we have

  • Hence,

2. Show that $|Z^+|<|P(Z^+)|$

Cantor’s theorem

The cardinality of the power set of an arbitrary set has a greater cardinality than the original arbitrary set

Proof:

Step 1

We convert this problem into showing that there does not exist an onto function f from S to P(S)

Suppose that f is a function from S to P(S). We must show that f is not onto.

Let . Although T is in the codomian of f, which is P(S), we will show that T is not in the range of f.

If it were, then we would have f(t) = T for some

  1. Suppose that , then according to the definition of T, , thus, , which is a contradiction
  2. Suppose that , then , then t follows the definition of T, so , which is again a contradiction

Hence, f is not onto.

In other words, there does not exist an onto function f from S to P(S)

Step 2

The function sending x to {x} for each is a one-to-one function from S to P(S), hence

Step 3

Since there is no onto from S to P(S), then there is no one-to-one correspondence, which implies that

All in All

Hence, by the Cantor’s theorem, , which can be expressed as

3. The Hypothesis

The famous continuum hypothesis asserts that there is no cardinal number X between and c

It tells us that the smallest infinite cardinal numbers forms an infinite sequence

There are no other cardinal numbers between and , also is the cardinal number of the power set of a set S, whose own cardinal is

When we talk about and , the continuum hypothesis (CH) asserts that there is no cardinal number (基数) a such that

Hence,

results matching ""

    No results matching ""