markdown
合成写像と逆写像md 9b0d8c9
lecture/math/discrete-math/composition-and-inverse-maps.lecture.n.md
Download PDF

合成写像ごうせいしゃぞうcomposite mapと逆写像ぎゃくしゃぞうinverse map

date2026-07-14document_iddoc_6d2625a2f1f1a80f75bc4d220cdf8379description合成写像を操作の順序として説明し、恒等写像、逆写像、全単射との同値性を整理する講義である。prerequisites写像の基本 / 単射・全射・全単射type講義content_typelecturestatusactiverelateddata/lecture/math/discrete-math/discrete-mathematics-portal.lecture.n.md / data/lecture/math/discrete-math/map-basics.lecture.n.md / data/lecture/math/discrete-math/images-and-preimages-of-maps.lecture.n.md / data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md / data/exercise/math/discrete-math/maps-injections-and-surjections.exercise.n.md
mathdiscrete-mathcompositioninverse-maplecture

Composite maps合成写像ごうせいしゃぞう and inverse maps逆写像ぎゃくしゃぞう

1導入どうにゅう

合成写像ごうせいしゃぞうcomposite mapで重要じゅうようなのは、写像しゃぞうmapを操作そうさとして読よむことである。f:A→B は A の元げんelementを B の元げんelementへ送おくる操作そうさであり、g:B→C はその結果けっかをさらに C へ送おくる操作そうさである。この 2 つを続つづけて行おこなうのが合成写像ごうせいしゃぞうcomposite mapである。

逆写像ぎゃくしゃぞうinverse mapは、操作そうさを元もとに戻もどす操作そうさinverse operationである。ただし、戻もどすためには、入力にゅうりょくが潰つぶれておらず、出力側しゅつりょくがわに余あまりもないことが必要ひつようである。この条件じょうけんが全単射ぜんたんしゃbijectionである。

合成ごうせいcompositionでは順序じゅんじょが重要じゅうようで、先さきに適用てきようした写像しゃぞうmapの終域しゅういきcodomainが、次つぎの写像しゃぞうmapの定義域ていぎいきdomainに合あう必要ひつようがある。逆写像ぎゃくしゃぞうinverse mapは、この移動いどうをすべての入力にゅうりょくと出力しゅつりょくで戻もどせるときにだけ存在そんざいする。

1Introduction

The key to a composite map合成写像ごうせいしゃぞう is to read a map写像しゃぞう as an operation. A map f:A→B sends an element元げん of A to an element of B, and a map g:B→C sends that result further into C. Performing these two operations in sequence is composition.

An inverse map逆写像ぎゃくしゃぞう is an operation that restores the original input. To restore inputs, no two inputs may have collapsed to the same output, and no element of the output side may be left unused. This condition is exactly bijection全単射ぜんたんしゃ.

Order matters in composition合成ごうせい. The codomain終域しゅういき of the first map must match the domain定義域ていぎいき of the next map. An inverse map exists only when every input-output move can be undone in both directions.

2用語ようごと定義ていぎ

写像しゃぞうmap f:A→B と g:B→C が与あたえられたとき、合成写像ごうせいしゃぞうcomposite map g∘f:A→C を

(g∘f)(a)=g(f(a))

で定義ていぎする。記号きごう g∘f は、先さきに f を適用てきようし、次つぎに g を適用てきようすることを表あらわす。

集合しゅうごうset A 上うえの恒等写像こうとうしゃぞうidentity map idA:A→A は、

idA(a)=a

で定義ていぎされる写像しゃぞうmapである。

写像しゃぞうmap f:A→B に対たいして、写像しゃぞうmap h:B→A が

h∘f=idA,f∘h=idB

を満みたすとき、h を f の逆写像ぎゃくしゃぞうinverse mapといい、f-1 と書かく。

2Terms and definitions

Given maps f:A→B and g:B→C, define the composite map合成写像ごうせいしゃぞう g∘f:A→C by

(g∘f)(a)=g(f(a)).

The notation g∘f means that f is applied first and g is applied second.

The identity map恒等写像こうとうしゃぞう idA:A→A on a set A is the map defined by

idA(a)=a.

For a map f:A→B, if a map h:B→A satisfies

h∘f=idA,f∘h=idB,

then h is called the inverse map逆写像ぎゃくしゃぞう of f and is written f-1.

3基本法則きほんほうそく:恒等写像こうとうしゃぞうidentity mapと結合則けつごうそく

写像しゃぞうmap f:A→B に対たいして、

idB∘f=f,f∘idA=f

が成立せいりつする。実際じっさい、任意にんいの a∈A について

(idB∘f)(a)=idB(f(a))=f(a),(f∘idA)(a)=f(idA(a))=f(a)

である。

また、f:A→B、g:B→C、h:C→D に対たいして、合成ごうせいcompositionは結合則けつごうそくassociative law

h∘(g∘f)=(h∘g)∘f

を満みたす。どちらも a∈A を h(g(f(a))) へ送おくるからである。したがって、3 個こ以上いじょうの写像しゃぞうmapを合成ごうせいするとき、括弧かっこの付つけ方かたは結果けっかを変かえない。ただし、g∘f と f∘g のように順序じゅんじょorderを入いれ替かえることとは別べつである。

3Basic laws: identity maps恒等写像こうとうしゃぞう and associativity

For a map写像しゃぞう f:A→B,

idB∘f=f,f∘idA=f.

Indeed, for every a∈A,

(idB∘f)(a)=idB(f(a))=f(a),(f∘idA)(a)=f(idA(a))=f(a).

For f:A→B, g:B→C, and h:C→D, composition also satisfies the associative law結合則けつごうそく

h∘(g∘f)=(h∘g)∘f,

because both sides send a∈A to h(g(f(a))). Thus parentheses do not change the result when three or more maps are composed. This is different from changing the order, as in g∘f versus f∘g.

4方針ほうしん

合成写像ごうせいしゃぞうcomposite mapでは、型かたを先さきに確認かくにんする。この講義こうぎで扱あつかう標準的ひょうじゅんてきな型かた付つき合成ごうせいtyped compositionでは、f:A→B と g:B→C のように、f の終域しゅういきcodomainと g の定義域ていぎいきdomainを同おなじ集合しゅうごう B として宣言せんげんする。このとき f(a)∈B なので、すべての a∈A に g(f(a)) を適用てきようできる。

逆写像ぎゃくしゃぞうinverse mapでは、f-1 という記号きごうを書かく前まえに、f が全単射ぜんたんしゃbijectionであることを確認かくにんする。逆像ぎゃくぞうpreimage f-1(T) は任意にんいの写像しゃぞうmapで定義ていぎできるが、逆写像ぎゃくしゃぞうinverse map f-1:B→A は全単射ぜんたんしゃbijectionでなければ存在そんざいしない。

data/lecture/math/discrete-math/map-basics.lecture.n.md data/lecture/math/discrete-math/images-and-preimages-of-maps.lecture.n.md data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md

4Method

For a composite map合成写像ごうせいしゃぞう, check the types first. In the standard typed composition型かた付つき合成ごうせい used here, the maps are declared as f:A→B and g:B→C, so the codomain終域しゅういき of f is the same set B as the domain定義域ていぎいき of g. Then f(a)∈B ensures that g(f(a)) is defined for every a∈A.

For an inverse map逆写像ぎゃくしゃぞう, check that f is a bijection全単射ぜんたんしゃ before writing f-1 as a map. A preimage逆像ぎゃくぞう f-1(T) is defined for any map, but an inverse map f-1:B→A exists only when f is bijective.

data/lecture/math/discrete-math/map-basics.lecture.n.md data/lecture/math/discrete-math/images-and-preimages-of-maps.lecture.n.md data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md

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

合成写像ごうせいしゃぞうcomposite mapは、機械きかいを直列ちょくれつに接続せつぞくすることに対応たいおうする。最初さいしょの機械きかい f に入力にゅうりょくinput a を入いれると f(a) が出力しゅつりょくされる。次つぎの機械きかい g に f(a) を入いれると g(f(a)) が出力しゅつりょくされる。したがって全体ぜんたいの機械きかいは g∘f である。

逆写像ぎゃくしゃぞうinverse mapは、機械きかいの結果けっかから入力にゅうりょくを完全かんぜんに復元ふくげんする機械きかいである。もし 2 つの入力にゅうりょくが同おなじ出力しゅつりょくへ潰つぶれていれば、出力しゅつりょくだけを見みても元もとの入力にゅうりょくを選えらべない。もし終域しゅういきcodomainに届とどかない元げんelementがあれば、その元げんelementを戻もどす入力にゅうりょくが存在そんざいしない。

合成ごうせいcompositionは矢印やじるしを順じゅんにつなぐ操作そうさであり、一般いっぱんには g∘f と f∘g は同おなじではない。どちらか一方いっぽうしか型かたtypeが合あわないこともあり、型かたが合あわなければ、その合成ごうせいcompositionは定義ていぎできない。

5Intuitive explanation

A composite map合成写像ごうせいしゃぞう is like connecting machines in series. Put an input入力にゅうりょく a into the first machine f, and the output is f(a). Put that output into the second machine g, and the output is g(f(a)). The whole machine is therefore g∘f.

An inverse map逆写像ぎゃくしゃぞう is a machine that reconstructs the input from the result. If two inputs collapse to the same output, the output alone cannot tell which input was used. If some element of the codomain終域しゅういき is never reached, there is no input to send back from that element.

Composition connects arrows in sequence. In general, g∘f and f∘g are not equal. Sometimes only one of them has compatible types型かた; if the types do not match, that composition is not defined.

6厳密げんみつな説明せつめい:逆写像ぎゃくしゃぞうinverse mapと全単射ぜんたんしゃbijection

f:A→B が逆写像ぎゃくしゃぞうinverse map h:B→A を持もつとする。f(a1)=f(a2) なら、両辺りょうへんに h を適用てきようして

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

を得える。h∘f=idA より a1=a2 である。したがって f は単射たんしゃinjectionである。

また、任意にんいの b∈B に対たいして、a=h(b) と置おくと、f(a)=f(h(b))=b である。ここで f∘h=idB を用もちいた。したがって f は全射ぜんしゃsurjectionである。

逆ぎゃくに f が全単射ぜんたんしゃbijectionなら、任意にんいの b∈B に対たいして、f(a)=b を満みたす a∈A が存在そんざいし、しかも単射性たんしゃせいinjectivityにより一意いちいである。そこで f-1(b)=a と定義ていぎできる。この一意性いちいせいがなければ、逆写像ぎゃくしゃぞうinverse mapの値あたいvalueが決きまらない。

この定義ていぎから、任意にんいの a∈A と b∈B について

f-1(f(a))=a,f(f-1(b))=b

である。したがって f-1∘f=idA かつ f∘f-1=idB であり、構成こうせいした写像しゃぞうmapは実際じっさいに逆写像ぎゃくしゃぞうinverse mapである。

6Rigorous explanation: inverse maps and bijections

Suppose f:A→B has an inverse map逆写像ぎゃくしゃぞう h:B→A. If f(a1)=f(a2), then applying h to both sides gives

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

Since h∘f=idA, we get a1=a2. Hence f is an injection単射たんしゃ.

Also, for any b∈B, put a=h(b). Then f(a)=f(h(b))=b by f∘h=idB. Hence f is a surjection全射ぜんしゃ.

Conversely, if f is a bijection全単射ぜんたんしゃ, then for every b∈B there exists a∈A with f(a)=b, and injectivity単射性たんしゃせい makes this a unique. Therefore one can define f-1(b)=a. Without this uniqueness, the value of the inverse map would not be determined.

By this definition, for every a∈A and b∈B,

f-1(f(a))=a,f(f-1(b))=b.

Hence f-1∘f=idA and f∘f-1=idB, so the constructed map really is an inverse map.

7命題めいだい:逆写像ぎゃくしゃぞうinverse mapの一意性いちいせい

写像しゃぞうmap f:A→B の逆写像ぎゃくしゃぞうinverse mapが存在そんざいするなら、それは一意いちいである。実際じっさい、h,k:B→A がともに f の逆写像ぎゃくしゃぞうinverse mapなら、結合則けつごうそくassociative lawと恒等則こうとうそくidentity lawsより

h=h∘idB=h∘(f∘k)=(h∘f)∘k=idA∘k=k

である。この一意性いちいせいにより、逆写像ぎゃくしゃぞうinverse mapを f-1 と一意いちいに表あらわせる。

7Proposition: uniqueness of an inverse map逆写像ぎゃくしゃぞう

If a map写像しゃぞう f:A→B has an inverse map逆写像ぎゃくしゃぞう, that inverse is unique. Indeed, if h,k:B→A are both inverse maps of f, the associative law結合則けつごうそく and identity laws恒等則こうとうそく give

h=h∘idB=h∘(f∘k)=(h∘f)∘k=idA∘k=k.

This uniqueness justifies the unambiguous notation f-1.

8例題れいだい:逆写像ぎゃくしゃぞうinverse mapと両側りょうがわの確認かくにん

8Worked example: an inverse map逆写像ぎゃくしゃぞう and two-sided verification

8.1問題もんだい

A={1,2,3}、B={a,b,c} とし、f:A→B を

f(1)=b,f(2)=c,f(3)=a

で定義ていぎする。f が全単射ぜんたんしゃbijectionであることを確認かくにんし、逆写像ぎゃくしゃぞうinverse mapを求もとめ、両側りょうがわの合成ごうせいcompositionが恒等写像こうとうしゃぞうidentity mapになることを確たしかめよ。

8.1Problem

Let A={1,2,3} and B={a,b,c}. Define f:A→B by

f(1)=b,f(2)=c,f(3)=a.

Check that f is a bijection全単射ぜんたんしゃ, find its inverse map逆写像ぎゃくしゃぞう, and verify that both composites are identity maps恒等写像こうとうしゃぞう.

8.2解説かいせつ

f(1),f(2),f(3) はそれぞれ b,c,a であり、互たがいに異ことなる。したがって異ことなる入力にゅうりょくinputは異ことなる出力しゅつりょくoutputへ送おくられるので、f は単射たんしゃinjectionである。

また、終域しゅういきcodomain B={a,b,c} の全すべての元げんelementが f の値あたいvalueとして現あらわれる。したがって f は全射ぜんしゃsurjectionである。よって f は全単射ぜんたんしゃbijectionである。

逆写像ぎゃくしゃぞうinverse mapは、矢印やじるしを逆向ぎゃくむきに読よむことで

f-1(a)=3,f-1(b)=1,f-1(c)=2

となる。さらに x=1,2,3 のそれぞれについて f-1(f(x))=x であり、y=a,b,c のそれぞれについて f(f-1(y))=y である。したがって

f-1∘f=idA,f∘f-1=idB

が確たしかめられる。

8.2Explanation

The values f(1),f(2),f(3) are b,c,a, and they are distinct. Thus distinct inputs入力にゅうりょく are sent to distinct outputs出力しゅつりょく, so f is an injection単射たんしゃ.

Every element元げん of the codomain終域しゅういき B={a,b,c} appears as a value of f. Therefore f is a surjection全射ぜんしゃ. Hence f is a bijection全単射ぜんたんしゃ.

The inverse map逆写像ぎゃくしゃぞう is obtained by reading the arrows backward:

f-1(a)=3,f-1(b)=1,f-1(c)=2.

For each x=1,2,3, one has f-1(f(x))=x, and for each y=a,b,c, one has f(f-1(y))=y. Therefore

f-1∘f=idA,f∘f-1=idB.

9見分みわけ方かた

  • g∘f は先さきに f、後あとに g を適用てきようする。
  • 合成写像ごうせいしゃぞうcomposite map を作つくる前まえに、出力しゅつりょくと次つぎの入力にゅうりょくの型かたが合あうかを確認かくにんする。
  • 逆写像ぎゃくしゃぞうinverse map は全単射ぜんたんしゃbijectionのときにだけ存在そんざいする。
  • 逆像ぎゃくぞうpreimage と逆写像ぎゃくしゃぞうinverse mapを混同こんどうしない。

見分みわけるときは、まず定義域ていぎいきdomainと終域しゅういきcodomainを確認かくにんする。逆写像ぎゃくしゃぞうinverse mapの候補こうほ g:B→A については、片側かたがわだけでなく g∘f=idA と f∘g=idB の両方りょうほうを確認かくにんする。

9How to distinguish the ideas

  • In g∘f, f is applied first and g is applied second.
  • Before forming a composite map合成写像ごうせいしゃぞう, check that the output type and the next input type match.
  • An inverse map逆写像ぎゃくしゃぞう exists only for a bijection全単射ぜんたんしゃ.
  • Do not confuse a preimage逆像ぎゃくぞう with an inverse map逆写像ぎゃくしゃぞう.

First check the domain定義域ていぎいき and codomain終域しゅういき. For a candidate inverse g:B→A of f:A→B, verify both g∘f=idA and f∘g=idB, not just one side.

10証明しょうめい補足ほそく:合成ごうせいで単射たんしゃ・全射ぜんしゃが保存ほぞんされる理由りゆう

f:X→Y、g:Y→Z とする。f と g がともに単射たんしゃinjectiveなら、g∘f も単射たんしゃである。

証明しょうめいする。(g∘f)(x1)=(g∘f)(x2) とする。これは g(f(x1))=g(f(x2)) である。g が単射たんしゃなので f(x1)=f(x2) である。さらに f が単射たんしゃなので x1=x2 である。したがって g∘f は単射たんしゃである。

f と g がともに全射ぜんしゃsurjectiveなら、g∘f も全射ぜんしゃである。z∈Z を任意にんいに取とる。g が全射ぜんしゃなので、ある y∈Y が存在そんざいして g(y)=z である。さらに f が全射ぜんしゃなので、ある x∈X が存在そんざいして f(x)=y である。よって (g∘f)(x)=z である。

この二ふたつを組くみ合あわせると、全単射ぜんたんしゃbijection の合成ごうせいはまた全単射ぜんたんしゃである。逆写像ぎゃくしゃぞうが存在そんざいすることも、単射たんしゃと全射ぜんしゃが同時どうじに成立せいりつすることの言いい換かえである。

10Proof supplement: why composition preserves injectivity and surjectivity

Let f:X→Y and g:Y→Z. If both f and g are injective単射たんしゃ, then g∘f is injective.

To prove this, assume (g∘f)(x1)=(g∘f)(x2). This means g(f(x1))=g(f(x2)). Since g is injective, f(x1)=f(x2). Since f is injective, x1=x2. Therefore g∘f is injective.

If both f and g are surjective全射ぜんしゃ, then g∘f is surjective. Take arbitrary z∈Z. Since g is surjective, there exists y∈Y with g(y)=z. Since f is surjective, there exists x∈X with f(x)=y. Hence (g∘f)(x)=z.

Combining these two statements, the composite of bijections全単射ぜんたんしゃ is again a bijection. The existence of an inverse map is another way to say that injectivity and surjectivity hold at the same time.

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
タブを全て閉じる