Concept stop · What is it?

Mappings

In the Chinese book: 映射

Every element of A fires exactly one arrow. That is a mapping.

📖 §1.1 of 《函数与函数方程》M12 Correspondence and Pairing line

Before this stop, visit:Elements and Sets (Concept)

Hands first, words secondClick an element of , then an element of , to draw an arrow. Right now the picture is not a mapping. Add one arrow to make it a mapping, then try to light up “Injective” and “Surjective” at the same time.

Loading figure…

Try this

  1. Give every element of exactly one arrow and “A mapping?” turns to ✓. What happens if some element has no arrow, or (switch on “Allow several arrows”) has two?
  2. If some element of receives no arrow at all, is it still a mapping? What if two 's hit the same ?
  3. Set to and to and try to draw an injection. Can you? Now swap the sizes and try to draw a surjection.
  4. Look at the counting panel: when , how are the numbers of injections, surjections and bijections related?

Let and be two sets. If, under some rule of correspondence , every element of corresponds to a unique element of , we say is a mapping from to , and write . Then is called the image of , and a preimage of . In an arrow diagram this is a single sentence:

Now look at where the arrows land. If every element of is hit at most once, the mapping is an injection; if every element of is hit at least once, it is a surjection; if both, it is a bijection (a one-to-one correspondence).

Predict first

has elements and has . How many different mappings are there from to ?

Choose an answer first; then you can see the result.

Why: counting mappings means counting choices

Example: A = {a₁, a₂, a₃}, B = {b₁, b₂}

Step 1 / 5
Loading figure…
  1. a₁ chooses first

    A mapping just picks one image for each element of . can pick or : choices.

The same reasoning gives two facts you will use again and again: if there is an injection from to , then ; if there is a surjection from to , then . So to prove that two finite sets have the same number of elements, it is enough to build a bijection between them. This is where “correspondence and pairing” starts.

For example, every subset of corresponds to a mapping : if , and otherwise. This is a one-to-one correspondence between subsets and mappings, so has subsets.

Loading figure…
Read as and as : this diagram is the subset . Draw the mapping for the subset .

Remove one condition

Break it

Counterexample lab: remove one condition

Conclusion: if is an injection, it is also a surjection

. Draw an injection: three arrows land on three different elements, and has only three elements, so every one of them is hit. It is automatically a surjection.

Loading figure…

Practice

Exercise 1Basic

and . How many mappings are there from to ?

Exercise 2Basic

and . How many injections are there from to ?

Exercise 3Advanced

and . How many surjections are there from to ?

Exercise 4Challenge

Let . How many mappings satisfy for every ?

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

Base and exponent swapped when counting mappings

The wrong step: and , so there are mappings from to .
What went wrong? Think first, then open

Diagnosis The elements of are the ones making choices: each picks an image from the elements of , and choices are made. That is , not .

The right step: The number of mappings is . To remember it: the exponent is “how many choices are made” (the size of ), the base is “how many options each choice has” (the size of ).

“Whoever makes the choices is the exponent”

Exhibit

Checking “is there an arrow?” but not “how many arrows?”

The wrong step: , , with , , . Every element of has an image, so this is a mapping.
What went wrong? Think first, then open

Diagnosis A mapping needs every element of to have a unique image. Here goes to both and , so its image is not unique.

The right step: Check both: every element of has at least one arrow (none left out) and at most one arrow (none doubled). How often an element of is hit, or whether it is hit at all, has nothing to do with being a mapping.

“On the A side, none missing and none doubled; on the B side, anything goes”