markdown
Composite maps and inverse mapsmd 9b0d8c9
lecture/math/discrete-math/composition-and-inverse-maps.lecture.n.md
Download PDF

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

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

1Introduction

The key to a composite map合成写像ごうせいしゃぞう is to read a map写像しゃぞう as an operation. A map f:AB sends an elementげん of A to an element of B, and a map g:BC 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.

2Terms and definitions

Given maps f:AB and g:BC, define the composite map合成写像ごうせいしゃぞう gf:AC by

(gf)(a)=g(f(a)).

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

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

idA(a)=a.

For a map f:AB, if a map h:BA satisfies

hf=idA,fh=idB,

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

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

For a map写像しゃぞう f:AB,

idBf=f,fidA=f.

Indeed, for every aA,

(idBf)(a)=idB(f(a))=f(a),(fidA)(a)=f(idA(a))=f(a).

For f:AB, g:BC, and h:CD, composition also satisfies the associative law結合則けつごうそく

h(gf)=(hg)f,

because both sides send aA 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 gf versus fg.

4Method

For a composite map合成写像ごうせいしゃぞう, check the types first. In the standard typed compositionかた合成ごうせい used here, the maps are declared as f:AB and g:BC, 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 aA.

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:BA 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

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 gf.

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, gf and fg are not equal. Sometimes only one of them has compatible typesかた; if the types do not match, that composition is not defined.

6Rigorous explanation: inverse maps and bijections

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

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

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

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

Conversely, if f is a bijection全単射ぜんたんしゃ, then for every bB there exists aA 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 aA and bB,

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

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

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

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

h=hidB=h(fk)=(hf)k=idAk=k.

This uniqueness justifies the unambiguous notation f-1.

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

8.1Problem

Let A={1,2,3} and B={a,b,c}. Define f:AB 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.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-1f=idA,ff-1=idB.

9How to distinguish the ideas

  • In gf, 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:BA of f:AB, verify both gf=idA and fg=idB, not just one side.

10Proof supplement: why composition preserves injectivity and surjectivity

Let f:XY and g:YZ. If both f and g are injective単射たんしゃ, then gf is injective.

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

If both f and g are surjective全射ぜんしゃ, then gf is surjective. Take arbitrary zZ. Since g is surjective, there exists yY with g(y)=z. Since f is surjective, there exists xX with f(x)=y. Hence (gf)(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
タブを全て閉じる