markdown
Basics of mapsmd e9819e1
lecture/math/discrete-math/map-basics.lecture.n.md
Download PDF

Basics of maps写像しゃぞう

date2026-07-14document_iddoc_1f3be400960b5a702189f4e26e4e23f4description写像を、各入力にただ一つの出力を割り当てる特別な関係として定義し、定義域、終域、値域、像、逆像を整理する講義である。prerequisites集合の基本 / 直積集合の基本 / 関係の基本type講義content_typelecturestatusactiverelateddata/lecture/math/discrete-math/discrete-mathematics-portal.lecture.n.md / data/lecture/math/discrete-math/relation-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/lecture/math/discrete-math/composition-and-inverse-maps.lecture.n.md / data/exercise/math/discrete-math/maps-injections-and-surjections.exercise.n.md
mathdiscrete-mathmapfunctionlecture

1Introduction

The first question for a map写像しゃぞう is whether each input入力にゅうりょく determines a unique output出力しゅつりょく. A map is a special kind of relation関係かんけい, but it has stronger conditions than an arbitrary relation.

This condition is what makes the notation f(a) meaningful. If one a had several outputs, f(a) would not be a single valueあたい. If it had no output, f(a) would be undefined.

What a map requires is exactly one output for each input. Different inputs may have the same output. The additional condition that different inputs have different outputs will later be called injectivity単射たんしゃ.

2Terms and definition

For sets集合しゅうごう A,B, a map写像しゃぞう f:AB is a rule assigning to each aA a unique element bB.

The set A is the domain定義域ていぎいき, and B is the codomain終域しゅういき. The assigned valueあたい is written f(a). The range値域ちいき, or imageぞう, is the set of outputs出力しゅつりょく that actually appear:

f(A)={f(a)aA}.

Always f(A)B.

3Imagesぞう and preimages逆像ぎゃくぞう

For a subset部分集合ぶぶんしゅうごう SA, the imageぞう of S is

f(S)={f(a)aS}.

For a subset TB, the preimage逆像ぎゃくぞう is

f-1(T)={aAf(a)T}.

The notation f-1(T) does not assume that an inverse map逆写像ぎゃくしゃぞう exists. A preimage is defined for every map写像しゃぞう.

4Strategy

To check whether a relation is a map写像しゃぞう, separate two requirements.

  1. For every aA, at least one output出力しゅつりょく exists.
  2. For every aA, at most one output exists.

If both hold, each input has exactly one output, and the relation is a map. From the relation関係かんけい viewpoint, f is a subset部分集合ぶぶんしゅうごう of A×B such that for every aA there is exactly one b with (a,b)f.

data/lecture/math/discrete-math/relation-basics.lecture.n.md

5Intuitive explanation

A map写像しゃぞう can be pictured as drawing one arrow from each elementげん on the input side to the output side. The defining condition is that exactly one arrow leaves every input入力にゅうりょく.

An element on the output side may have no incoming arrows, or it may have several incoming arrows. That is not a problem for being a map. Additional restrictions on these incoming arrows lead to injections単射たんしゃ and surjections全射ぜんしゃ.

In the machine picture, the assignment from inputs to outputs may vary. What remains fixed is that every element of the domain定義域ていぎいき is processed exactly once and that every resulting output lies in the codomain終域しゅういき.

data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md

6Precise explanation

For a map写像しゃぞう f:AB, imagesぞう and preimages逆像ぎゃくぞう go in opposite directions. An image sends a subset部分集合ぶぶんしゅうごう of the A side to the B side:

SAf(S)B.

A preimage sends a subset of the B side back to the A side:

TBf-1(T)A.

A preimage is defined even when the map is neither an injection単射たんしゃ nor a surjection全射ぜんしゃ.

7Worked example: distinguish codomain終域しゅういき and range値域ちいき

7.1Problem

Define f:{1,2,3}{a,b,c,d} by f(1)=a, f(2)=b, and f(3)=b. Find the codomain終域しゅういき and the range値域ちいき.

7.2Explanation

The codomain終域しゅういき is the set集合しゅうごう specified in advance as part of the type of the map写像しゃぞう. Therefore the codomain is {a,b,c,d}.

The range値域ちいき is the set of outputs出力しゅつりょく that actually occur as values. In this example only a and b occur, so

f({1,2,3})={a,b}.

The elements c,d are in the codomain, but not in the range.

When checking a proposed map, do not rely only on a table or arrow diagram: identify the domain定義域ていぎいき, codomain, and assignment rule explicitly. If some input has no value or has two values, the proposed relation is not a map.

8What changes and what is preserved

Injectivity単射性たんしゃせい means that different inputs入力にゅうりょく are sent to different outputs出力しゅつりょく. Surjectivity全射性ぜんしゃせい means that every element of the codomain終域しゅういき is the valueあたい of at least one input, equivalently f(A)=B. The following table compares how changing the domain定義域ていぎいき or codomain affects these properties.

ChangeWhat changesWhat is preserved
Enlarging the codomain終域しゅういきwhether surjectivity全射性ぜんしゃせい holdsthe valueあたい of each input入力にゅうりょく
Restricting the domain定義域ていぎいきthe range値域ちいき; a non-injective map may become an injection単射たんしゃthe values of the remaining inputs; an injection remains injective

Enlarging or narrowing the codomain終域しゅういき can change whether the same assignment rule is surjective全射ぜんしゃ. The imageぞう, by contrast, is determined by the domain and the assignment rule.

There is one necessary qualification when narrowing the codomain: the new codomain must still contain the range値域ちいき f(A). If an element of f(A) is removed, some input value lies outside the declared codomain, so the rule no longer defines a map of that type.

9How to check and related links

  • If every input入力にゅうりょく has exactly one output出力しゅつりょく, it is a map写像しゃぞう.
  • If one input has multiple outputs, it is not a map.
  • The codomain終域しゅういき is the declared set of possible outputs.
  • The range値域ちいき is the set of outputs actually reached.
  • A preimage逆像ぎゃくぞう is defined even when no inverse map逆写像ぎゃくしゃぞう exists.
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/lecture/math/discrete-math/composition-and-inverse-maps.lecture.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
タブを全て閉じる