返回首页

基本概念补漏

发布于 3/23/2026, 11:46:25 AM

1 集合

1.1 集合的直积(笛卡尔积)

对于任意两个集合 AABB,可以组成一个新的集合。
注意无序对 {A,B}={B,A}\{A,B\}=\{B,A\},而在 ABA\neq B 时它恰好包含两个元素。

有序对(序偶)的集合称为直积(笛卡尔积):

X×Y:={(x,y)xX, yY}X \times Y := \bigl\{ (x,y) \bigm| x\in X,\ y\in Y \bigr\}

一般而言,

X×Y  Y×XX \times Y \ \ne\ Y \times X

X=YX=Y 时,常记作 X2X^2

设序偶 z=(x1,x2)z = (x_1, x_2)X1×X2X_1 \times X_2 的元素,则 x1x_1x2x_2 分别称为 zz第一投影第二投影,记作:

Pr1(z),Pr2(z)或有时写作π1(z), π2(z)\Pr_1(z),\quad \Pr_2(z) \quad \text{或有时写作}\quad \pi_1(z),\ \pi_2(z)

1.2 集合的特征函数

对于集合 XX 的任意子集 AXA\subseteq X,其特征函数(示性函数)χA:X{0,1}\chi_A : X \to \{0,1\} 定义为:

χA(x)={1若 xA0若 xA\chi_A(x) = \begin{cases} 1 & \text{若 } x \in A \\ 0 & \text{若 } x \notin A \end{cases}

1.3 集合的势(基数)

若存在双射 f:XYf:X\to Y,则称 XXYY 等势,记作

XYX=YX \sim Y \quad \text{或}\quad |X| = |Y|

等势关系是等价关系,它将所有集合划分为等势类,同一类中任意两个集合的基数(势、cardinality)相等,记作 cardX\operatorname{card} XX|X|

由此可定义不大于关系:

cardXcardY:ZY 使得 X=Z\operatorname{card} X \leqslant \operatorname{card} Y \quad :\Longleftrightarrow\quad \exists Z\subseteq Y\ \text{使得}\ |X| = |Z|

若同时 XY|X|\neq |Y|,则称严格小于

cardX<cardY\operatorname{card} X < \operatorname{card} Y

对于任何集合 XX,都有严格的不等式(康托尔定理):

cardX<cardP(X)\operatorname{card} X < \operatorname{card} \mathcal{P}(X)

其中 P(X)\mathcal{P}(X)XX幂集(一切子集组成的集合)。这说明无穷集合的“大小”可以有无穷多种不同的级别。

2 函数

2.1 函数的三要素

通常将函数记为三元组 (X,f,Y)(X, f, Y),其中:

  • XX定义域(domain)
  • YY到达域(codomain)
  • ff 是对应法则

xXx\in X 对应的唯一元素 f(x)f(x) 称为 xx(image)。

常用术语:

  • 单射(injective,嵌入):f(x1)=f(x2)    x1=x2f(x_1)=f(x_2) \implies x_1=x_2
  • 满射(surjective,到上):yY, xX\forall y\in Y,\ \exists x\in X 使 f(x)=yf(x)=y
  • 双射(bijective):既单射又满射

2.2 定理(左逆与右逆的性质)

gf=idX{f 是单射g 是满射g \circ f = \mathrm{id}_X \quad \Longrightarrow\quad \left\{ \begin{array}{l} f\ \text{是单射} \\ g\ \text{是满射} \end{array} \right.

(类似地,fg=idYf\circ g = \mathrm{id}_Yff 满射、gg 单射)

2.3 用集合论语言严格定义函数

任意序偶集合 RX×Y\mathcal{R}\subseteq X\times Y 都称为一个关系

  • 定义域:dom(R)={xy, (x,y)R}\operatorname{dom}(\mathcal{R}) = \{x \mid \exists y,\ (x,y)\in\mathcal{R}\}
  • 值域(像集):ran(R)={yx, (x,y)R}\operatorname{ran}(\mathcal{R}) = \{y \mid \exists x,\ (x,y)\in\mathcal{R}\}

若关系 R\mathcal{R} 满足单值性(函数性):

(x,y1)R  (x,y2)R  y1=y2(x,y_1)\in\mathcal{R} \ \wedge\ (x,y_2)\in\mathcal{R} \ \Longrightarrow\ y_1 = y_2

则称 R\mathcal{R} 是一个函数关系

此时我们说 R\mathcal{R} 是从 XXYY函数,其图像就是集合 R\mathcal{R} 本身:

f := R  X×Yf\ :=\ \mathcal{R}\ \subseteq\ X \times Y

XX 常称为出发域YY 称为到达域(不必等于值域 ran(f)\operatorname{ran}(f))。

常用记号:(x,y)f(x,y)\in f 写作 x f yx\ f\ yf(x)=yf(x)=y