markdown
写像と単射・全射 - 基本演習md 5c4e5da
exercise/math/discrete-math/写像と単射全射-基本演習.n.md

写像しゃぞうmap単射たんしゃinjection全射ぜんしゃsurjection - 基本演習きほんえんしゅう

date2026-06-06description写像、像、逆像、単射、全射、全単射、合成写像、逆写像を定義から判定する基本演習である。prerequisites写像の基本 / 単射・全射・全単射 / 合成写像と逆写像type問題演習content_typeexercisestatusactiverelateddata/lecture/math/discrete-math/写像の基本-講義.n.md / data/lecture/math/discrete-math/単射・全射・全単射-講義.n.md / data/lecture/math/discrete-math/合成写像と逆写像-講義.n.mdrelateddata/lecture/math/discrete-math/離散数学ポータル-講義.n.md
mathdiscrete-mathexercisemapbijection

Maps写像しゃぞう, injections単射たんしゃ, and surjections全射ぜんしゃ: basic exercises

2順序上じゅんじょじょう注意ちゅうい

この演習えんしゅうでは、写像しゃぞうmap単射たんしゃinjection全射ぜんしゃsurjectionくわえて、逆写像ぎゃくしゃぞうinverse map合成写像ごうせいしゃぞうcomposite mapみじかあつかう。逆写像ぎゃくしゃぞうinverse map全単射ぜんたんしゃbijection矢印やじるし逆向ぎゃくむきに写像しゃぞうであり、合成写像ごうせいしゃぞうcomposite map gfさき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 gf 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}{a,b,c}f(1)=af(2)=bf(3)=b定義ていぎする。f単射たんしゃinjectionか、全射ぜんしゃsurjectionか。

4.1解答かいとう

f(2)=f(3)=b23 なので、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}{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 23, 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}{a,b,c}g(1)=bg(2)=cg(3)=a定義ていぎする。g逆写像ぎゃくしゃぞうinverse mapもとめよ。

5.1解答かいとう

gかく入力にゅうりょくinputことなる出力しゅつりょくoutputおくり、終域しゅういきcodomainすべてに到達とうたつしている。したがって全単射ぜんたんしゃbijectionである。逆写像ぎゃくしゃぞうinverse mapg-1(a)=3g-1(b)=1g-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}{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,g-1(b)=1,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:ZZf(n)=n+1 とする。f単射たんしゃinjectionか、全射ぜんしゃsurjectionか。

6.1解答かいとう

f(n1)=f(n2) とすると n1+1=n2+1 なので n1=n2 である。したがって単射たんしゃinjectionである。

任意にんいmZたいして n=m-1Zくと f(n)=m である。したがって全射ぜんしゃsurjectionである。よって全単射ぜんたんしゃbijectionである。

6.2解説かいせつ

全射ぜんしゃsurjectionでは、任意にんい終域しゅういきcodomainげんelementからはじめ、対応たいおうする入力にゅうりょくinput構成こうせいする。

6.3よくあるあやま

n+1かたちだけをて、0到達とうたつしないと判断はんだんするあやまりである。定義域ていぎいきZ なので -1使つかえる。

6Problem 3

Let f:ZZ be defined by f(n)=n+1. Is f an injection単射たんしゃ or a surjection全射ぜんしゃ?

6.1Answer

If f(n1)=f(n2), then n1+1=n2+1, so n1=n2. Thus f is an injection単射たんしゃ.

For arbitrary mZ, put n=m-1Z. 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 Z, so -1 is available.

7問題もんだい 4

f:NNf(n)=n+1 とする。ここで N={0,1,2,[PARSE ERROR: Undefined("Command(\"dots\")")]} とする。f単射たんしゃinjectionか、全射ぜんしゃsurjectionか。

7.1解答かいとう

f(n1)=f(n2) なら n1+1=n2+1 なので n1=n2 である。したがって単射たんしゃinjectionである。

しかし 0Nたいして f(n)=0たす nN存在そんざいしない。したがって全射ぜんしゃsurjectionではない。

7.2解説かいせつ

おなしきでも定義域ていぎいきdomain終域しゅういきcodomainわると、全射性ぜんしゃせいsurjectivity判定はんていわる。

7.3よくあるあやま

問題もんだい 3 とおなしきだからおな判定はんていになるとかんがえるあやまりである。

7Problem 4

Let f:NN be defined by f(n)=n+1, where N={0,1,2,[PARSE ERROR: Undefined("Command(\"dots\")")]}. Is f an injection単射たんしゃ or a surjection全射ぜんしゃ?

7.1Answer

If f(n1)=f(n2), then n1+1=n2+1, so n1=n2. Thus f is an injection単射たんしゃ.

However, there is no nN 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:ABg:BCたいして、(gf)(a)意味いみ説明せつめいせよ。

8.1解答かいとう

(gf)(a)=g(f(a)) である。つまり、さきfa適用てきようして f(a)Bる。つぎgf(a)適用てきようして g(f(a))Cる。

8.2解説かいせつ

合成写像ごうせいしゃぞうcomposite mapでは、記号きごうひだりからではなく入力にゅうりょくちか右側みぎがわ写像しゃぞうmapから適用てきようする。

8.3よくあるあやま

gfさきgあとfあやまりである。

8Problem 5

For f:AB and g:BC, explain the meaning of (gf)(a).

8.1Answer

(gf)(a)=g(f(a)). First apply f to a to obtain f(a)B. Then apply g to f(a) to obtain g(f(a))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 gf as “apply g first and then f.”

9証明しょうめい演習えんしゅう合成ごうせい単射たんしゃinjection全射ぜんしゃsurjection保存ほぞんされること

9.1問題もんだい

f:XYg:YZ とする。f,g がともに単射たんしゃinjectionなら gf単射たんしゃinjectionであり、f,g がともに全射ぜんしゃsurjectionなら gf全射ぜんしゃsurjectionであることを証明しょうめいせよ。

9Proof exercise: composition preserves injections単射たんしゃ and surjections全射ぜんしゃ

9.1Problem

Let f:XY and g:YZ. Prove that if f,g are both injections単射たんしゃ, then gf is an injection, and if f,g are both surjections全射ぜんしゃ, then gf is a surjection.

9.2解答かいとう

単射たんしゃinjectionについて、(gf)(x1)=(gf)(x2) とする。g(f(x1))=g(f(x2)) である。g単射たんしゃinjectionなので f(x1)=f(x2)、さらに f単射たんしゃinjectionなので x1=x2 である。

全射ぜんしゃsurjectionについて、zZる。g全射ぜんしゃsurjectionなので g(y)=z となる yY がある。f全射ぜんしゃsurjectionなので f(x)=y となる xX がある。したがって (gf)(x)=z である。

9.3解説かいせつ

単射たんしゃinjection証明しょうめい等式とうしきひだりからもど議論ぎろんであり、全射ぜんしゃsurjection証明しょうめい目標もくひょうげんelementから逆向ぎゃくむきにげんelementさが議論ぎろんである。

9.2Answer

For injectivity単射性たんしゃせい, suppose (gf)(x1)=(gf)(x2). Then g(f(x1))=g(f(x2)). Since g is an injection単射たんしゃ, f(x1)=f(x2). Since f is an injection, x1=x2.

For surjectivity全射性ぜんしゃせい, take zZ. Since g is a surjection全射ぜんしゃ, there is yY with g(y)=z. Since f is a surjection, there is xX with f(x)=y. Therefore (gf)(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.

raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる