1導入
直積集合で最初に理解すべきことは、「複数の選択を順序つきで一つの対象にする」操作だという点である。A から 1 つ、B から 1 つ選んだ結果を、単に a,b と並べるのではなく、順序対 (a,b) として記録する。
この順序が重要である。(a,b) と (b,a) は、一般には別の対象である。したがって直積集合は、関係、写像、座標、状態空間の共通の土台になる。
順序対では成分の順番が情報の一部である。そのため、一般に A imes B と B imes A は同じではなく、第 1 成分と第 2 成分の役割を区別する。
1Introduction
The first thing to understand about the Cartesian product is that it turns several choices into one ordered object. Choosing one element from A and one from B is not recorded as the unordered list a,b, but as the ordered pair順序対じゅんじょつい (a,b).
The order is important. In general, (a,b) and (b,a) are different objects. Therefore the Cartesian product is a common foundation for relations関係かんけい, maps写像しゃぞう, coordinates座標ざひょう, and state spaces.
2用語ようごと定義ていぎ
集合しゅうごうset A,B に対たいして、直積集合ちょくせきしゅうごうCartesian product A\times B を
A\times B=\{(a,b)\mid a\in A,\ b\in B\}
で定義ていぎする。ここで (a,b) は順序対じゅんじょついordered pairであり、第だい 1 成分せいぶんが a、第だい 2 成分せいぶんが b である。
より一般いっぱんに、A_1,A_2,\dots,A_n の直積集合ちょくせきしゅうごうCartesian productは
A_1\times\cdots\times A_n
=\{(a_1,\dots,a_n)\mid a_i\in A_i\text{ for every }i\}
である。これは順序付じゅんじょづき組くみordered tupleを集あつめた集合しゅうごうsetである。
2Terms and definitions
For sets A and B, the Cartesian product直積集合ちょくせきしゅうごう A\times B is defined by
A\times B=\{(a,b)\mid a\in A,\ b\in B\}.
Here (a,b) is an ordered pair順序対じゅんじょつい; its first component is a and its second component is b.
More generally, for A_1,A_2,\dots,A_n,
A_1\times\cdots\times A_n
=\{(a_1,\dots,a_n)\mid a_i\in A_i\text{ for every }i\}.
This is the set of ordered tuples[順序付き組].
3方針ほうしん
直積集合ちょくせきしゅうごうCartesian productを扱あつかうときは、元げんが 1 つの値あたいではなく、順序対じゅんじょついordered pairや組くみtupleであることを意識いしきする。したがって x\in A\times B と書かかれていたら、x を (a,b) と置おき、a\in A と b\in B を取とり出だす。
この方針ほうしんは、後あとで関係かんけいrelationを理解りかいするときにそのまま使つかう。関係かんけいrelationは A\times B の部分集合ぶぶんしゅうごうsubsetである。つまり、関係かんけいrelationは「どの順序対じゅんじょついordered pairを採用さいようするか」という選択せんたくである。
data/lecture/math/discrete-math/関係の基本-講義.n.md
3Strategy
When working with a Cartesian product直積集合ちょくせきしゅうごう, remember that an element is not a single unstructured value. It is an ordered pair or tuple. Thus, if x\in A\times B, write x=(a,b) and extract the facts a\in A and b\in B.
This strategy is used directly when studying relations関係かんけい. A relation is a subset of A\times B. In other words, a relation is a choice of which ordered pairs to accept.
data/lecture/math/discrete-math/関係の基本-講義.n.md
4直感的ちょっかんてきな説明せつめい
A\times B は、表ひょうの行ぎょうと列れつcolumnを作つくる操作そうさとして見みると理解りかいしやすい。A の元げんelementを行ぎょうの見出みだし、B の元げんelementを列れつcolumnの見出みだしにすると、各かくマスが 1 つの順序対じゅんじょついordered pair (a,b) に対応たいおうする。
たとえば A=\{1,2\}、B=\{x,y,z\} なら
A\times B=
\{(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)\}
である。この例れいでは |A|=2、|B|=3 なので、|A\times B|=6 である。有限集合ゆうげんしゅうごうでは一般いっぱんに
|A\times B|=|A|\,|B|
が成なり立たつ。選択せんたくの段階だんかいが 2 つあり、第だい 1 選択せんたくに |A| 通とおり、第だい 2 選択せんたくに |B| 通とおりあるためである。
4Intuitive explanation: tables and counting
It is often useful to view A\times B as the operation of forming rows and columns of a table. Use the elements of A as row labels and the elements of B as column labels. Each cell corresponds to one ordered pair (a,b).
For example, if A=\{1,2\} and B=\{x,y,z\}, then
A\times B=
\{(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)\}.
In this example, |A|=2 and |B|=3, so |A\times B|=6. For finite sets, in general,
|A\times B|=|A|\,|B|.
There are two stages of choice: |A| choices for the first component and |B| choices for the second component.
5厳密げんみつな説明せつめい
順序対じゅんじょついordered pairで本質的ほんしつてきなのは、次つぎの同値性どうちせいである。
(a,b)=(a',b')
\Longleftrightarrow
(a=a'\text{ かつ }b=b')
この性質せいしつにより、第だい 1 成分せいぶんと第だい 2 成分せいぶんを別々べつべつに比較ひかくできる。直積集合ちょくせきしゅうごうCartesian productの等式とうしきや包含ほうがんinclusionを示しめすときも、元げんを順序対じゅんじょついordered pairとして分解ぶんかいする。
境界例きょうかいれいも重要じゅうようである。A=\varnothing または B=\varnothing なら、A\times B=\varnothing である。なぜなら、(a,b) を作つくるには a\in A と b\in B の両方りょうほうが必要ひつようであり、片方かたほうの集合しゅうごうsetに元げんelementが存在そんざいしなければ順序対じゅんじょついordered pairを作つくれないからである。
順序対じゅんじょついordered pairの等号とうごうは成分せいぶんごとに判定はんていする。(a,b)=(a',b') なら a=a' かつ b=b' であり、直積集合ちょくせきしゅうごうCartesian productへの所属しょぞくも各かく座標ざひょうが正ただしい集合しゅうごうに入はいることを同時どうじに要求ようきゅうする。
5Precise explanation
The essential equality rule for ordered pairs順序対じゅんじょつい is
(a,b)=(a',b')
\Longleftrightarrow
(a=a'\text{ and }b=b').
This property lets us compare the first and second components separately. When proving equality or inclusion involving Cartesian products, decompose elements as ordered pairs.
The boundary case involving the empty set is also important. If A=\varnothing or B=\varnothing, then
A\times B=\varnothing.
To make an ordered pair (a,b), both a\in A and b\in B are required. If one side has no elements, no ordered pair can be made.
6.1問題もんだい
A=\{0,1\}、B=\{1,2\} とする。A\times B と B\times A を書かき出だし、両者りょうしゃが一般いっぱんに等ひとしくないことを確認かくにんせよ。
6.1Problem
Let A=\{0,1\} and B=\{1,2\}. List A\times B and B\times A, and confirm that they are not generally equal.
6.2解説かいせつ
定義ていぎより
A\times B=
\{(0,1),(0,2),(1,1),(1,2)\}
である。一方いっぽう、
B\times A=
\{(1,0),(1,1),(2,0),(2,1)\}
である。たとえば (0,1)\in A\times B だが、(0,1)\notin B\times A である。したがって A\times B\ne B\times A である。
ここで確認かくにんしているのは、直積集合ちょくせきしゅうごうCartesian productが単たんなる組合くみあわせではなく、順序じゅんじょを記録きろくする操作そうさであるという点てんである。
6.2Explanation
By definition,
A\times B=
\{(0,1),(0,2),(1,1),(1,2)\}.
On the other hand,
B\times A=
\{(1,0),(1,1),(2,0),(2,1)\}.
For example, (0,1)\in A\times B, but (0,1)\notin B\times A. Therefore A\times B\ne B\times A.
This confirms that the Cartesian product直積集合ちょくせきしゅうごう is not just an unordered combination. It records order.
9証明しょうめい補足ほそく:直積ちょくせきが包含ほうがんを保たもつ条件じょうけん
直積集合ちょくせきしゅうごうCartesian product は各成分かくせいぶんの包含ほうがんを保存ほぞんする。つまり
A\subseteq A',\quad B\subseteq B'
\quad\Longrightarrow\quad
A\times B\subseteq A'\times B'
である。
証明しょうめいする。(a,b)\in A\times B とする。この意味いみは a\in A かつ b\in B である。A\subseteq A' と B\subseteq B' より a\in A' かつ b\in B' である。したがって (a,b)\in A'\times B' である。
逆向ぎゃくむきには空集合くうしゅうごうの注意ちゅういが必要ひつようである。もし A\times B\subseteq A'\times B' で、さらに A と B がどちらも空からでないなら、A\subseteq A' かつ B\subseteq B' が従したがう。たとえば a\in A を取とり、B が空からでないので b\in B を取とる。すると (a,b)\in A\times B\subseteq A'\times B' だから a\in A' である。同おなじ議論ぎろんで B\subseteq B' も分わかる。
この非空ひくうの仮定かていを落おとすと、A\times\varnothing=\varnothing となり、左辺さへんだけから A の情報じょうほうを読よみ取とれない。
9Proof supplement: when products preserve inclusion
The Cartesian product直積集合ちょくせきしゅうごう preserves inclusion in each component. That is,
A\subseteq A',\quad B\subseteq B'
\quad\Longrightarrow\quad
A\times B\subseteq A'\times B'.
Proof. Take (a,b)\in A\times B. This means a\in A and b\in B. Since A\subseteq A' and B\subseteq B', we have a\in A' and b\in B'. Therefore (a,b)\in A'\times B'.
The converse direction needs a nonempty-set condition. If A\times B\subseteq A'\times B' and both A and B are nonempty, then A\subseteq A' and B\subseteq B'. For example, take a\in A. Since B is nonempty, choose b\in B. Then (a,b)\in A\times B\subseteq A'\times B', so a\in A'. The same argument shows B\subseteq B'.
If the nonempty assumption is omitted, this conclusion can fail. Since A\times\varnothing=\varnothing, the left-hand side may contain no information about A.