markdown
単射・全射・全単射md c111929
lecture/math/discrete-math/単射・全射・全単射-講義.n.md
Download PDF

単射たんしゃinjection全射ぜんしゃsurjection全単射ぜんたんしゃbijection

date2026-06-06description単射・全射・全単射を、入力の区別を保つか、終域を覆うか、可逆な対応になるかという観点から整理する講義である。prerequisites写像の基本 / 集合の基本type講義statusactiverelateddata/lecture/math/discrete-math/離散数学ポータル-講義.n.md / data/lecture/math/discrete-math/写像の基本-講義.n.md / data/lecture/math/discrete-math/合成写像と逆写像-講義.n.md / data/exercise/math/discrete-math/写像と単射全射-基本演習.n.mdrelateddata/lecture/math/discrete-math/離散数学ポータル-講義.n.md
mathdiscrete-mathinjectionsurjectionbijectionlecture

Injections単射たんしゃ, surjections全射ぜんしゃ, and bijections全単射ぜんたんしゃ

1導入どうにゅう

写像しゃぞうmap f:AB理解りかいするとき、つぎうべきことは「この写像しゃぞうmap情報じょうほうinformationつぶしているか」「終域しゅういきcodomain全体ぜんたいとどいているか」である。

単射たんしゃinjectionことなる入力にゅうりょくinputことなる出力しゅつりょくoutputおく性質せいしつpropertyである。全射ぜんしゃsurjection終域しゅういきcodomainすべてのげんelement到達とうたつする性質せいしつpropertyである。全単射ぜんたんしゃbijectionはその両方りょうほうであり、一対一対応いちたいいちたいおうとして逆写像ぎゃくしゃぞうinverse mapつ。

単射たんしゃinjection情報じょうほうつぶさないこと、全射ぜんしゃsurjection終域しゅういきcodomainあまらせないことをあらわす。全単射ぜんたんしゃbijectionはその両方りょうほうたすため、矢印やじるし逆向ぎゃくむきにめる。

1Introduction

For a map写像しゃぞう f:AB, the next questions are whether the map collapses information情報じょうほう and whether it reaches the whole codomain終域しゅういき.

An injection単射たんしゃ sends distinct inputs入力にゅうりょく to distinct outputs出力しゅつりょく. A surjection全射ぜんしゃ reaches every elementげん of the codomain. A bijection全単射ぜんたんしゃ has both properties and has an inverse map逆写像ぎゃくしゃぞう as a one-to-one correspondence.

2用語ようご定義ていぎ

写像しゃぞうmap f:AB単射たんしゃinjectionであるとは、任意にんいa1,a2A について

f(a1)=f(a2)a1=a2

つことである。同値どうちに、a1a2 なら f(a1)f(a2) である。

写像しゃぞうmap f:AB全射ぜんしゃsurjectionであるとは、任意にんいbBたいして、ある aA存在そんざいf(a)=bたすことである。これは f(A)=B同値どうちである。

写像しゃぞうmap f:AB全単射ぜんたんしゃbijectionであるとは、f単射たんしゃinjectionかつ全射ぜんしゃsurjectionであることである。

2Terms and definitions

A map写像しゃぞう f:AB is an injection単射たんしゃ if for all a1,a2A,

f(a1)=f(a2)a1=a2.

Equivalently, a1a2 implies f(a1)f(a2).

A map f:AB is a surjection全射ぜんしゃ if for every bB there exists aA such that f(a)=b. This is equivalent to f(A)=B.

A map f:AB is a bijection全単射ぜんたんしゃ if it is both an injection and a surjection.

3方針ほうしん

単射たんしゃinjectionしめすときは、f(a1)=f(a2)仮定かていして a1=a2みちびく。これは「出力しゅつりょくおなじなら、入力にゅうりょくおなじ」という方向ほうこう証明しょうめいである。

全射ぜんしゃsurjectionしめすときは、任意にんいbBり、f(a)=bたす aA構成こうせいする。ここでは終域しゅういきcodomain B任意にんいげんelementからはじめることが重要じゅうようである。

全単射ぜんたんしゃbijectionしめすには、単射たんしゃinjection全射ぜんしゃsurjection別々べつべつ確認かくにんするか、明示的めいじてき逆写像ぎゃくしゃぞうinverse map構成こうせいする。

data/lecture/math/discrete-math/写像の基本-講義.n.md

3Strategy

To prove injectivity単射性たんしゃせい, assume f(a1)=f(a2) and derive a1=a2. This proves the direction “same output implies same input.”

To prove surjectivity全射性ぜんしゃせい, take arbitrary bB and construct aA satisfying f(a)=b. The important point is to start with an arbitrary elementげん of the codomain終域しゅういき B.

To prove bijectivity全単射性ぜんたんしゃせい, either check injection and surjection separately, or construct an explicit inverse map逆写像ぎゃくしゃぞう.

data/lecture/math/discrete-math/写像の基本-講義.n.md

4直感的ちょっかんてき説明せつめい

単射たんしゃinjectionは、入力側にゅうりょくがわ区別くべつ保存ほぞんする。ことなる入力にゅうりょくinputおな出力しゅつりょくoutputつぶれないため、出力しゅつりょくoutputれば入力にゅうりょく区別くべつできる。

全射ぜんしゃsurjectionは、終域しゅういきcodomainおおう。終域しゅういきcodomain指定していしたげんelementが、実際じっさいなにかの入力にゅうりょくinputから到達とうたつされることを要求ようきゅうする。

全単射ぜんたんしゃbijectionは、つぶれもあまりもない対応たいおうcorrespondenceである。有限集合ゆうげんしゅうごうでは、全単射ぜんたんしゃbijection存在そんざいすることは両集合りょうしゅうごうげんelement個数こすうひとしいことと対応たいおうする。

矢印図やじるしずでは、単射たんしゃinjectionは 2 つの入力にゅうりょくおな出力しゅつりょく合流ごうりゅうしないこと、全射ぜんしゃsurjection終域しゅういきてん矢印やじるしすくなくとも 1 ぽんはいることとしてえる。

4Intuitive explanation

An injection単射たんしゃ preserves distinctions on the input side. Different inputs入力にゅうりょく do not collapse to the same output出力しゅつりょく, so the output can distinguish the input.

A surjection全射ぜんしゃ covers the codomain終域しゅういき. Every elementげん declared in the codomain must actually be reached from some input.

A bijection全単射ぜんたんしゃ is a correspondence対応たいおう with no collisions and no unused codomain elements. For finite sets, the existence of a bijection corresponds to the two sets having the same number of elements.

5有限集合ゆうげんしゅうごうでの個数こすう見方みかた

A,B有限集合ゆうげんしゅうごう場合ばあい単射たんしゃinjection AB存在そんざいするなら |A|[PARSE ERROR: Undefined("Command(\"le\")")]|B| である。ことなる入力にゅうりょくinputことなる出力しゅつりょくoutput必要ひつようとするからである。

全射ぜんしゃsurjection AB存在そんざいするなら |A|[PARSE ERROR: Undefined("Command(\"ge\")")]|B| である。終域しゅういきcodomainすべてをおおうには、すくなくとも Bげんelementかずだけ到達先とうたつさき必要ひつようだからである。

|A|=|B|有限集合ゆうげんしゅうごうでは、単射たんしゃinjectionなら全射ぜんしゃsurjectionであり、全射ぜんしゃsurjectionなら単射たんしゃinjectionである。ただし、この結論けつろん有限性ゆうげんせい使つかう。

有限集合ゆうげんしゅうごう定義域ていぎいきdomain終域しゅういきcodomain個数こすうおなじとき、単射たんしゃinjection全射ぜんしゃsurjection同値どうちになる。ただし、この個数こすう議論ぎろん有限ゆうげんかつおなおおきさの場合ばあいかぎって使つかう。

5Counting viewpoint for finite sets

When A,B are finite sets有限集合ゆうげんしゅうごう, the existence of an injection単射たんしゃ AB implies |A|[PARSE ERROR: Undefined("Command(\"le\")")]|B|, because distinct inputs入力にゅうりょく require distinct outputs出力しゅつりょく.

The existence of a surjection全射ぜんしゃ AB implies |A|[PARSE ERROR: Undefined("Command(\"ge\")")]|B|, because covering the whole codomain終域しゅういき requires at least as many reached values as elements of B.

For finite sets with |A|=|B|, injection implies surjection, and surjection implies injection. This conclusion uses finiteness.

6無限集合むげんしゅうごうでの注意ちゅうい

無限集合むげんしゅうごうでは、有限集合ゆうげんしゅうごう個数こすう直感ちょっかんがそのまま使つかえない。たとえば N={0,1,2,[PARSE ERROR: Undefined("Command(\"dots\")")]} とすると、nn+1NN単射たんしゃinjectionだが、0到達とうたつしないため全射ぜんしゃsurjectionではない。

6Warning for infinite sets

For infinite sets無限集合むげんしゅうごう, finite counting intuition does not directly apply. For example, if N={0,1,2,[PARSE ERROR: Undefined("Command(\"dots\")")]}, then nn+1 is an injection単射たんしゃ NN, but it is not a surjection全射ぜんしゃ because 0 is not reached.

7例題れいだい単射たんしゃinjection全射ぜんしゃsurjection判定はんていする

7.1問題もんだい

f:{1,2,3}{a,b,c}f(1)=af(2)=bf(3)=b定義ていぎする。f単射たんしゃinjectionか、全射ぜんしゃsurjectionか、全単射ぜんたんしゃbijectionかを判定はんていせよ。

7Worked example: decide injection単射たんしゃ and surjection全射ぜんしゃ

7.1Problem

Let f:{1,2,3}{a,b,c} be defined by f(1)=a, f(2)=b, and f(3)=b. Decide whether f is an injection単射たんしゃ, a surjection全射ぜんしゃ, or a bijection全単射ぜんたんしゃ.

7.2解説かいせつ

f(2)=b かつ f(3)=b であり、23 である。ことなる入力にゅうりょくinputおな出力しゅつりょくoutputおくられているので、f単射たんしゃinjectionではない。

また、終域しゅういきcodomainげんelement cたいして、f(x)=cたす x{1,2,3}存在そんざいしない。したがって f全射ぜんしゃsurjectionでもない。

全単射ぜんたんしゃbijection単射たんしゃinjectionかつ全射ぜんしゃsurjectionでなければならないので、f全単射ぜんたんしゃbijectionでもない。

7.2Explanation

We have f(2)=b and f(3)=b with 23. Different inputs入力にゅうりょく are sent to the same output出力しゅつりょく, so f is not an injection単射たんしゃ.

Also, for the codomain終域しゅういき element c, there is no x{1,2,3} such that f(x)=c. Therefore f is not a surjection全射ぜんしゃ.

Since a bijection全単射ぜんたんしゃ must be both injective and surjective, f is not a bijection.

8見分みわかた関連かんれんリンク

  • 単射たんしゃinjectionは「出力しゅつりょく衝突しょうとつがないか」を確認かくにんする。
  • 全射ぜんしゃsurjectionは「終域しゅういきcodomainとどかないげんelementがないか」を確認かくにんする。
  • 全単射ぜんたんしゃbijectionは「衝突しょうとつ未到達みとうたつもないか」を確認かくにんする。
  • 終域しゅういきcodomainえると、全射性ぜんしゃせいsurjectivity判定はんていわりうる。
data/exercise/math/discrete-math/写像と単射全射-基本演習.n.md data/lecture/math/discrete-math/写像の基本-講義.n.md data/lecture/math/discrete-math/合成写像と逆写像-講義.n.md

8How to identify them and related links

  • For an injection単射たんしゃ, check whether any output collision occurs.
  • For a surjection全射ぜんしゃ, check whether any codomain終域しゅういき element is missed.
  • For a bijection全単射ぜんたんしゃ, check for both no collisions and no missed codomain elements.
  • Changing the codomain can change whether surjectivity全射性ぜんしゃせい holds.
data/exercise/math/discrete-math/写像と単射全射-基本演習.n.md data/lecture/math/discrete-math/写像の基本-講義.n.md data/lecture/math/discrete-math/合成写像と逆写像-講義.n.md
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
タブを全て閉じる