2順序上の注意
この演習では、写像、単射、全射に加えて、逆写像と合成写像も短く扱う。逆写像は全単射の矢印を逆向きに読む写像であり、合成写像 g\circ f は先に f、次に g を適用する写像である。
2Order note
This exercise mainly treats maps, injections単射たんしゃ, and surjections全射ぜんしゃ, but it also briefly uses inverse maps逆写像ぎゃくしゃぞう and composite maps合成写像ごうせいしゃぞう. An inverse map is obtained by reading the arrows of a bijection全単射ぜんたんしゃ backward, and a composite map g\circ f applies f first and then g.
3演習えんしゅう方針ほうしん
写像しゃぞうmapでは、各かく入力にゅうりょくinputに[ちょうど 1 つ]の出力しゅつりょくoutputがあるかを確認かくにんする。単射たんしゃinjectionは衝突しょうとつの有無うむ、全射ぜんしゃsurjectionは終域しゅういきcodomainへの到達とうたつで判定はんていする。
3Exercise strategy
For a map写像しゃぞう, check whether each input入力にゅうりょく has exactly one output出力しゅつりょく. For an injection単射たんしゃ, look for collisions. For a surjection全射ぜんしゃ, check whether every element of the codomain終域しゅういき is reached.
4問題もんだい 1
f:\{1,2,3\}\to\{a,b,c\} を f(1)=a、f(2)=b、f(3)=b で定義ていぎする。f は単射たんしゃinjectionか、全射ぜんしゃsurjectionか。
4.1解答かいとう
f(2)=f(3)=b で 2\ne3 なので、f は単射たんしゃinjectionではない。また c に到達とうたつする入力にゅうりょくinputが存在そんざいしないので、f は全射ぜんしゃsurjectionでもない。
4.2解説かいせつ
単射たんしゃinjectionは入力にゅうりょくの区別くべつを保存ほぞんする性質せいしつであり、全射ぜんしゃsurjectionは終域しゅういきcodomainを覆おおう性質せいしつである。
4.3よくある誤あやまり
値域ちいきrange \{a,b\} と終域しゅういきcodomain \{a,b,c\} を混同こんどうする誤あやまりである。
4Problem 1
Let f:\{1,2,3\}\to\{a,b,c\} be defined by f(1)=a, f(2)=b, and f(3)=b. Is f an injection単射たんしゃ or a surjection全射ぜんしゃ?
4.1Answer
Because f(2)=f(3)=b with 2\ne3, the map is not an injection単射たんしゃ. Also, no input入力にゅうりょく reaches c, so the map is not a surjection全射ぜんしゃ.
4.2Explanation
An injection単射たんしゃ preserves distinctions between inputs, while a surjection全射ぜんしゃ covers the codomain終域しゅういき.
4.3Common mistake
Do not confuse the range値域ちいき \{a,b\} with the codomain終域しゅういき \{a,b,c\}.
5問題もんだい 2
g:\{1,2,3\}\to\{a,b,c\} を g(1)=b、g(2)=c、g(3)=a で定義ていぎする。g の逆写像ぎゃくしゃぞうinverse mapを求もとめよ。
5.1解答かいとう
g は各かく入力にゅうりょくinputを異ことなる出力しゅつりょくoutputへ送おくり、終域しゅういきcodomainの全すべてに到達とうたつしている。したがって全単射ぜんたんしゃbijectionである。逆写像ぎゃくしゃぞうinverse mapは g^{-1}(a)=3、g^{-1}(b)=1、g^{-1}(c)=2 である。
5.2解説かいせつ
逆写像ぎゃくしゃぞうinverse mapは全単射ぜんたんしゃbijectionのときにだけ存在そんざいする。まず全単射ぜんたんしゃbijectionを確認かくにんしてから矢印やじるしを逆向ぎゃくむきに読よむ。
5.3よくある誤あやまり
単射たんしゃinjectionだけを確認かくにんして逆写像ぎゃくしゃぞうinverse mapを作つくる誤あやまりである。
逆写像ぎゃくしゃぞうinverse mapを作つくるには、出力しゅつりょくから入力にゅうりょくへ一意いちいに戻もどれることに加くわえて、終域しゅういきcodomainのすべての元げんelementが使つかわれていることも必要ひつようである。したがって単射性たんしゃせいinjectivityだけでなく全射性ぜんしゃせいsurjectivityも確認かくにんする。
5Problem 2
Let g:\{1,2,3\}\to\{a,b,c\} be defined by g(1)=b, g(2)=c, and g(3)=a. Find the inverse map逆写像ぎゃくしゃぞう of g.
5.1Answer
The map sends distinct inputs入力にゅうりょく to distinct outputs出力しゅつりょく and reaches every element of the codomain終域しゅういき. Hence g is a bijection全単射ぜんたんしゃ. Its inverse map逆写像ぎゃくしゃぞう is
g^{-1}(a)=3,\qquad g^{-1}(b)=1,\qquad g^{-1}(c)=2.
5.2Explanation
An inverse map逆写像ぎゃくしゃぞう exists only for a bijection全単射ぜんたんしゃ. First verify bijectivity, then read each arrow backward.
5.3Common mistake
Checking only injectivity単射性たんしゃせい is not enough to construct an inverse map; surjectivity全射性ぜんしゃせい is also required.
6問題もんだい 3
f:\mathbb Z\to\mathbb Z を f(n)=n+1 とする。f は単射たんしゃinjectionか、全射ぜんしゃsurjectionか。
6.1解答かいとう
f(n_1)=f(n_2) とすると n_1+1=n_2+1 なので n_1=n_2 である。したがって単射たんしゃinjectionである。
任意にんいの m\in\mathbb Z に対たいして n=m-1\in\mathbb Z と置おくと f(n)=m である。したがって全射ぜんしゃsurjectionである。よって全単射ぜんたんしゃbijectionである。
6.2解説かいせつ
全射ぜんしゃsurjectionでは、任意にんいの終域しゅういきcodomainの元げんelementから始はじめ、対応たいおうする入力にゅうりょくinputを構成こうせいする。
6.3よくある誤あやまり
n+1 の形かたちだけを見みて、0 に到達とうたつしないと判断はんだんする誤あやまりである。定義域ていぎいきが \mathbb Z なので -1 が使つかえる。
6Problem 3
Let f:\mathbb Z\to\mathbb Z be defined by f(n)=n+1. Is f an injection単射たんしゃ or a surjection全射ぜんしゃ?
6.1Answer
If f(n_1)=f(n_2), then n_1+1=n_2+1, so n_1=n_2. Thus f is an injection単射たんしゃ.
For arbitrary m\in\mathbb Z, put n=m-1\in\mathbb Z. Then f(n)=m. Thus f is a surjection全射ぜんしゃ, and therefore a bijection全単射ぜんたんしゃ.
6.2Explanation
To prove surjectivity全射性ぜんしゃせい, start with an arbitrary element元げん of the codomain終域しゅういき and construct a corresponding input入力にゅうりょく.
6.3Common mistake
Do not decide from the expression n+1 alone that 0 is not reached. The domain定義域ていぎいき is \mathbb Z, so -1 is available.
7問題もんだい 4
f:\mathbb N\to\mathbb N を f(n)=n+1 とする。ここで \mathbb N=\{0,1,2,\dots\} とする。f は単射たんしゃinjectionか、全射ぜんしゃsurjectionか。
7.1解答かいとう
f(n_1)=f(n_2) なら n_1+1=n_2+1 なので n_1=n_2 である。したがって単射たんしゃinjectionである。
しかし 0\in\mathbb N に対たいして f(n)=0 を満みたす n\in\mathbb N は存在そんざいしない。したがって全射ぜんしゃsurjectionではない。
7.2解説かいせつ
同おなじ式しきでも定義域ていぎいきdomainと終域しゅういきcodomainが変かわると、全射性ぜんしゃせいsurjectivityの判定はんていが変かわる。
7.3よくある誤あやまり
問題もんだい 3 と同おなじ式しきだから同おなじ判定はんていになると考かんがえる誤あやまりである。
7Problem 4
Let f:\mathbb N\to\mathbb N be defined by f(n)=n+1, where \mathbb N=\{0,1,2,\dots\}. Is f an injection単射たんしゃ or a surjection全射ぜんしゃ?
7.1Answer
If f(n_1)=f(n_2), then n_1+1=n_2+1, so n_1=n_2. Thus f is an injection単射たんしゃ.
However, there is no n\in\mathbb N satisfying f(n)=0. Therefore f is not a surjection全射ぜんしゃ.
7.2Explanation
The same formula can have different properties when the domain定義域ていぎいき and codomain終域しゅういき change.
7.3Common mistake
Do not assume the answer is the same as in Problem 3 just because the formula is the same.
8問題もんだい 5
f:A\to B、g:B\to C に対たいして、(g\circ f)(a) の意味いみを説明せつめいせよ。
8.1解答かいとう
(g\circ f)(a)=g(f(a)) である。つまり、先さきに f を a に適用てきようして f(a)\in B を得える。次つぎに g を f(a) に適用てきようして g(f(a))\in C を得える。
8.2解説かいせつ
合成写像ごうせいしゃぞうcomposite mapでは、記号きごうの左ひだりからではなく入力にゅうりょくに近ちかい右側みぎがわの写像しゃぞうmapから適用てきようする。
8.3よくある誤あやまり
g\circ f を先さきに g、後あとに f と読よむ誤あやまりである。
8Problem 5
For f:A\to B and g:B\to C, explain the meaning of (g\circ f)(a).
8.1Answer
(g\circ f)(a)=g(f(a)). First apply f to a to obtain f(a)\in B. Then apply g to f(a) to obtain g(f(a))\in C.
8.2Explanation
For a composite map合成写像ごうせいしゃぞう, the map closest to the input入力にゅうりょく on the right is applied first, not the symbol on the left.
8.3Common mistake
Do not read g\circ f as “apply g first and then f.”
9証明しょうめい演習えんしゅう:合成ごうせいで単射たんしゃinjectionと全射ぜんしゃsurjectionが保存ほぞんされること
9.1問題もんだい
f:X\to Y、g:Y\to Z とする。f,g がともに単射たんしゃinjectionなら g\circ f も単射たんしゃinjectionであり、f,g がともに全射ぜんしゃsurjectionなら g\circ f も全射ぜんしゃsurjectionであることを証明しょうめいせよ。
9Proof exercise: composition preserves injections単射たんしゃ and surjections全射ぜんしゃ
9.1Problem
Let f:X\to Y and g:Y\to Z. Prove that if f,g are both injections単射たんしゃ, then g\circ f is an injection, and if f,g are both surjections全射ぜんしゃ, then g\circ f is a surjection.
9.2解答かいとう
単射たんしゃinjectionについて、(g\circ f)(x_1)=(g\circ f)(x_2) とする。g(f(x_1))=g(f(x_2)) である。g が単射たんしゃinjectionなので f(x_1)=f(x_2)、さらに f が単射たんしゃinjectionなので x_1=x_2 である。
全射ぜんしゃsurjectionについて、z\in Z を取とる。g が全射ぜんしゃsurjectionなので g(y)=z となる y\in Y がある。f が全射ぜんしゃsurjectionなので f(x)=y となる x\in X がある。したがって (g\circ f)(x)=z である。
9.3解説かいせつ
単射たんしゃinjectionの証明しょうめいは等式とうしきを左ひだりから戻もどす議論ぎろんであり、全射ぜんしゃsurjectionの証明しょうめいは目標もくひょうの元げんelementから逆向ぎゃくむきに元げんelementを探さがす議論ぎろんである。
9.2Answer
For injectivity単射性たんしゃせい, suppose (g\circ f)(x_1)=(g\circ f)(x_2). Then g(f(x_1))=g(f(x_2)). Since g is an injection単射たんしゃ, f(x_1)=f(x_2). Since f is an injection, x_1=x_2.
For surjectivity全射性ぜんしゃせい, take z\in Z. Since g is a surjection全射ぜんしゃ, there is y\in Y with g(y)=z. Since f is a surjection, there is x\in X with f(x)=y. Therefore (g\circ f)(x)=z.
9.3Explanation
The injection proof pulls an equality backward through the two maps. The surjection proof starts with the target element元げん and searches backward for a preimage in each stage.