2問題1:順序保存写像を確認する
P=\{1,2,3\}、Q=\{2,4,6\} を通常の大小で順序づける。f:P\to Q を f(x)=2x とする。f は順序保存写像か。
2.1解答
x\le y なら 2x\le 2y である。したがって f(x)\le f(y) であり、f は順序保存写像である。
2.2解説
順序保存写像では、大小の向きが保たれるかを見る。値の差が保存される必要はない。
順序保存写像では、差や比が保存されるかではなく、x\le y から f(x)\le f(y) が必ず従うかを確認する。
2Problem 1: check an order-preserving map
Let P=\{1,2,3\} and Q=\{2,4,6\} be ordered by the usual order. Define f:P\to Q by f(x)=2x. Is f an order-preserving map順序保存写像じゅんじょほぞんしゃぞう?
2.1Answer
If x\le y, then 2x\le 2y. Hence f(x)\le f(y), so f is order-preserving.
2.2Explanation
For an order-preserving map順序保存写像じゅんじょほぞんしゃぞう, check whether the direction of the order is preserved. The difference between values does not have to be preserved.
For an order-preserving map順序保存写像じゅんじょほぞんしゃぞう, do not check whether differences or ratios are preserved. Check that x\le y always implies f(x)\le f(y).
3問題もんだい2:鎖くさりchainと反鎖はんくさりantichainを判定はんていする
\mathcal P(\{1,2,3\}) を包含ほうがんinclusionで順序じゅんじょづける。次つぎの集合族しゅうごうぞくは鎖くさりchainか、反鎖はんくさりantichainか。
\{\{1\},\{1,2\},\{1,2,3\}\}
\{\{1\},\{2\},\{3\}\}
3.1解答かいとう
最初さいしょの集合族しゅうごうぞくでは
\{1\}\subseteq\{1,2\}\subseteq\{1,2,3\}
なので鎖くさりchainである。
二ふたつ目めの集合族しゅうごうぞくでは、異ことなる 1 元げん集合しゅうごうどうしは互たがいに包含ほうがんしない。したがって反鎖はんくさりantichainである。
3.2解説かいせつ
包含順序ほうがんじゅんじょinclusion orderでは、要素数ようそすうの大小だいしょうだけでなく、実際じっさいに含ふくまれている元げんelementを比較ひかくする必要ひつようがある。
鎖くさりchainかどうかは任意にんいの 2 元げんが比較ひかくできるかで判定はんていし、反鎖はんくさりantichainかどうかは異ことなる 2 元げんが比較不能ひかくふのうかで判定はんていする。要素数ようそすうだけではなく、実際じっさいの包含ほうがんを見みる。
3Problem 2: decide chains鎖くさり and antichains反鎖はんくさり
Order \mathcal P(\{1,2,3\}) by inclusion包含ほうがん. Decide whether the following families are chains鎖くさり or antichains反鎖はんくさり.
\{\{1\},\{1,2\},\{1,2,3\}\}
\{\{1\},\{2\},\{3\}\}
3.1Answer
For the first family,
\{1\}\subseteq\{1,2\}\subseteq\{1,2,3\},
so it is a chain鎖くさり.
For the second family, distinct singleton sets do not contain each other. Therefore it is an antichain反鎖はんくさり.
3.2Explanation
In the inclusion order包含順序ほうがんじゅんじょ, compare the actual elements元げん contained in the sets, not only the number of elements.
4問題もんだい3:ド・モルガンの法則De Morgan's lawsを使つかう
全体集合ぜんたいしゅうごうを U=\{1,2,3,4,5\}、A=\{1,2,3\}、B=\{3,4\} とする。U\setminus(A\cap B) と (U\setminus A)\cup(U\setminus B) を求もとめ、一致いっちを確認かくにんせよ。
4.1解答かいとう
A\cap B=\{3\} なので、
U\setminus(A\cap B)=\{1,2,4,5\}
である。また
U\setminus A=\{4,5\},\qquad U\setminus B=\{1,2,5\}
なので、
(U\setminus A)\cup(U\setminus B)=\{1,2,4,5\}
である。両者りょうしゃは一致いっちする。
4.2解説かいせつ
ド・モルガンの法則De Morgan's lawsは、補集合ほしゅうごうcomplementが共通部分きょうつうぶぶんintersectionを和集合わしゅうごうunionへ変かえることを表あらわす。全体集合ぜんたいしゅうごう U を固定こていしないと補集合ほしゅうごうcomplementは定さだまらない。
4Problem 3: use De Morgan's lawsド・モルガンの法則
Let the universal set be U=\{1,2,3,4,5\}, with A=\{1,2,3\} and B=\{3,4\}. Find U\setminus(A\cap B) and (U\setminus A)\cup(U\setminus B), and verify that they agree.
4.1Answer
Since A\cap B=\{3\},
U\setminus(A\cap B)=\{1,2,4,5\}.
Also,
U\setminus A=\{4,5\},\qquad U\setminus B=\{1,2,5\},
so
(U\setminus A)\cup(U\setminus B)=\{1,2,4,5\}.
The two sets are equal.
4.2Explanation
De Morgan's lawsド・モルガンの法則 say that complement補集合ほしゅうごう changes an intersection共通部分きょうつうぶぶん into a union和集合わしゅうごう. The universal set U must be fixed before complements are determined.
5.2解答かいとう
y,z がどちらも x の補元ほげんcomplementだとする。すると x\wedge y=0、x\vee y=1、x\wedge z=0、x\vee z=1 である。
y=y\wedge 1
=y\wedge(x\vee z)
=(y\wedge x)\vee(y\wedge z)
=0\vee(y\wedge z)
=y\wedge z
\le z
同おなじ議論ぎろんで z\le y である。よって反対称性はんたいしょうせいantisymmetryより y=z である。
5.3解説かいせつ
補元ほげんcomplementの一意性いちいせいuniquenessは、ド・モルガンの法則De Morgan's lawsを証明しょうめいするときの土台どだいになる。
5.2Answer
Suppose y and z are both complements補元ほげん of x. Then x\wedge y=0, x\vee y=1, x\wedge z=0, and x\vee z=1.
y=y\wedge 1
=y\wedge(x\vee z)
=(y\wedge x)\vee(y\wedge z)
=0\vee(y\wedge z)
=y\wedge z
\le z.
The same argument gives z\le y. By antisymmetry反対称性はんたいしょうせい, y=z.
5.3Explanation
The uniqueness一意性いちいせい of complements is the foundation for proving De Morgan's lawsド・モルガンの法則 in a Boolean algebra.