• Keine Ergebnisse gefunden

General associativity for composition of maps

Im Dokument A version without solutions (Seite 143-164)

2. A closer look at induction

2.13. General associativity for composition of maps

2.13.1. Associativity of map composition

Recall that if f : X →Y and g : Y → Z are two maps, then thecomposition g◦ f of the maps gand f is defined to be the map

X →Z, x 7→ g(f (x)).

Now, if we have four sets X, Y, Z and W and three maps c : X → Y, b : Y → Z and a : Z → W, then we can build two possible compositions that use all three of these maps: namely, the two compositions (a◦b)◦c and a◦(b◦c). It turns out that these two compositions are the same map:73

73Of course, when some of the four sets X,Y, Z and W are equal, then more compositions can be built: For example, if Y= Z = W, then we can also build the composition(ba)cor the composition ((bb)a)c. But these compositions are not the same map as the two that we previously constructed.

Proposition 2.82. Let X, Y, Zand W be four sets. Letc : X →Y, b : Y → Z and a: Z →W be three maps. Then,

(a◦b)◦c =a◦(b◦c).

Proposition 2.82 is called theassociativity of map composition, and is proven straight-forwardly:

Proof of Proposition 2.82. Let x ∈ X. Then, the definition of b◦c yields(b◦c) (x) = b(c(x)). But the definition of (a◦b)◦c yields

((a◦b)◦c) (x) = (a◦b) (c(x)) =a(b(c(x))) (by the definition of a◦b). On the other hand, the definition ofa◦(b◦c) yields

(a◦(b◦c)) (x) =a

(b◦c) (x)

| {z }

=b(c(x))

=a(b(c(x))).

Comparing these two equalities, we obtain ((a◦b)◦c) (x) = (a◦(b◦c)) (x). Now, forget that we fixed x. We thus have shown that

((a◦b)◦c) (x) = (a◦(b◦c)) (x) for each x∈ X.

In other words,(a◦b)◦c =a◦(b◦c). This proves Proposition 2.82.

2.13.2. Composing more than 3 maps: exploration

Proposition 2.82 can be restated as follows: If a, b and c are three maps such that the compositions a◦b and b◦c are well-defined, then (a◦b)◦c = a◦(b◦c). This allows us to write “a◦b◦c” for each of the compositions (a◦b)◦c and a◦(b◦c) without having to disambiguate this expression by means of parentheses. It is natural to ask whether we can do the same thing for more than three maps. For example, let us consider four maps a, b, c and d for which the compositions a◦b, b◦cand c◦dare well-defined:

Example 2.83. Let X, Y, Z, W and U be five sets. Let d : X → Y, c : YZ, b : Z → W and a : W → U be four maps. Then, there we can construct five compositions that use all four of these maps; these five compositions are

((a◦b)◦c)◦d, (a◦(b◦c))◦d, (a◦b)◦(c◦d), (127) a◦((b◦c)◦d), a◦(b◦(c◦d)). (128) It turns out that these five compositions are all the same map. Indeed, this follows by combining the following observations:

• We have ((a◦b)◦c)◦d = (a◦(b◦c))◦ d (since Proposition 2.82 yields (a◦b)◦c= a◦(b◦c)).

• We have a◦((b◦c)◦d) = a◦(b◦(c◦d)) (since Proposition 2.82 yields (b◦c)◦d=b◦(c◦d)).

• We have (a◦(b◦c))◦d = a◦((b◦c)◦d) (by Proposition 2.82, applied to W, U, b◦c andd instead ofZ, W, b andc).

• We have ((a◦b)◦c)◦d = (a◦b)◦(c◦d) (by Proposition 2.82, applied to U, a◦b, cand d instead ofW, a, band c).

Hence, all five compositions are equal. Thus, we can write “a◦b◦c◦d” for each of these five compositions, again dropping the parentheses.

We shall refer to the five compositions listed in (127) and (128) as the “com-plete parenthesizations of a ◦b ◦c ◦ d”. Here, the word “parenthesization”

means a way to put parentheses into the expression “a◦b◦ c◦ d”, whereas the word “complete” means that these parentheses unambiguously determine which two maps any given ◦ sign is composing. (For example, the parenthe-sization “(a◦b◦c)◦d” is not complete, because the first ◦ sign in it could be either composing a with b or composing a with b◦c. But the parenthesization

“((a◦b)◦c)◦d” is complete, because its first ◦ sign composesaand b, whereas its second ◦ sign composes a◦b with c, and finally its third ◦ sign composes (a◦b)◦c withd.)

Thus, we have seen that all five complete parenthesizations of a◦b◦c◦d are the same map.

What happens if we compose more than four maps? Clearly, the more maps we have, the more complete parenthesizations can be constructed. We have good reasons to suspect that these parenthesizations will all be the same map (so we can again drop the parentheses); but if we try to prove it in the ad-hoc way we did in Example 2.83, then we have more and more work to do the more maps we are composing. Clearly, if we want to prove our suspicion for arbitrarily many maps, we need a more general approach.

2.13.3. Formalizing general associativity

So let us make a general statement; but first, let us formally define the notion of a

“complete parenthesization”:

Definition 2.84. Letnbe a positive integer. LetX1,X2, . . . ,Xn+1ben+1 sets. For each i ∈ {1, 2, . . . ,n}, let fi : Xi → Xi+1 be a map. Then, we want to define the notion of a complete parenthesization of fn ◦ fn1◦ · · · ◦ f1. We define this notion by recursion on n as follows:

• Forn=1, there is only one complete parenthesization of fn◦ fn1◦ · · · ◦f1, and this is simply the map f1 : X1 →X2.

• If n > 1, then the complete parenthesizations of fn◦ fn1◦ · · · ◦ f1 are all the maps of the formαβ, where

k is some element of{1, 2, . . . ,n−1};

α is a complete parenthesization of fn◦ fn1◦ · · · ◦ fk+1; β is a complete parenthesization of fk◦ fk1◦ · · · ◦ f1.

Example 2.85. Let us see what this definition yields for small values ofn:

• Forn =1, the only complete parenthesization of f1 is f1.

• For n=2, the only complete parenthesization of f2◦ f1 is the composition f2◦ f1(because here, the only possible values of k, αand βare 1, f2and f1, respectively).

• For n = 3, the complete parenthesizations of f3◦ f2◦ f1 are the two com-positions (f3f2)◦ f1 and f3◦(f2f1) (because here, the only possible values of k are 1 and 2, and each value of kuniquely determines α and β).

Proposition 2.82 shows that they are equal (as maps).

• For n = 4, the complete parenthesizations of f4◦ f3◦ f2◦ f1 are the five compositions

((f4◦ f3)◦ f2)◦ f1, (f4◦(f3◦ f2))◦ f1, (f4◦ f3)◦(f2◦ f1), f4◦((f3◦ f2)◦ f1), f4◦(f3◦(f2◦ f1)).

(These are exactly the five compositions listed in (127) and (128), except that the mapsd,c,b,aare now called f1, f2, f3, f4.) We have seen in Example 2.83 that these five compositions are equal as maps.

• Forn=5, the complete parenthesizations of f5◦ f4◦ f3◦ f2◦ f1are 14 com-positions, one of which is (f5◦ f4)◦(f3◦(f2◦ f1)). Again, it is laborious but not difficult to check that all the 14 compositions are equal as maps.

Now, we want to prove the following general statement:

Theorem 2.86. Let n be a positive integer. Let X1,X2, . . . ,Xn+1 be n+1 sets.

For each i ∈ {1, 2, . . . ,n}, let fi : Xi → Xi+1 be a map. Then, all complete parenthesizations of fn◦ fn1◦ · · · ◦ f1are the same map (from X1 toXn+1).

Theorem 2.86 is sometimes called the general associativity theorem, and is often proved in the context of monoids (see, e.g., [Artin10, Proposition 2.1.4]); while the

context is somewhat different from ours, the proofs usually given still apply in ours.

2.13.4. Defining the “canonical” composition C(fn, fn1, . . . ,f1)

We shall prove Theorem 2.86 in a slightly indirect way: We first define a specific complete parenthesization of fn◦ fn1◦ · · · ◦f1, which we shall callC(fn, fn1, . . . ,f1); then we will show that it satisfies certain equalities (Proposition 2.89), and then prove that every complete parenthesization of fn◦ fn1◦ · · · ◦ f1 equals this map C(fn, fn1, . . . ,f1) (Proposition 2.90). Each step of this strategy will rely on induc-tion.

We begin with the definition ofC(fn, fn1, . . . ,f1):

Definition 2.87. Let n be a positive integer. Let X1,X2, . . . ,Xn+1 be n+1 sets.

For each i ∈ {1, 2, . . . ,n}, let fi : Xi → Xi+1 be a map. Then, we want to define a map C(fn, fn1, . . . ,f1) : X1 →Xn+1. We define this map by recursion onnas follows:

• If n = 1, then we define C(fn, fn1, . . . ,f1) to be the map f1 : X1 → X2. (Note that in this case, C(fn, fn1, . . . , f1) = C(f1), because (fn, fn1, . . . ,f1) = (f1, f11, . . . , f1) = (f1).)

• Ifn>1, then we defineC(fn, fn1, . . . ,f1) : X1 →Xn+1 by

C(fn, fn1, . . . ,f1) = fn ◦C(fn1, fn2, . . . ,f1). (129)

Example 2.88. Consider the situation of Definition 2.87.

(a)If n=1, then

C(f1) = f1 (130)

(by the n =1 case of the definition).

(b)If n=2, then

C(f2, f1) = f2◦ C(f1)

| {z }

=f1

(by (130))

(by (129), applied to n =2)

= f2◦ f1. (131)

(c)If n=3, then

C(f3, f2, f1) = f3◦C(f2, f1)

| {z }

=f2f1 (by (131))

(by (129), applied to n=3)

= f3◦(f2◦ f1). (132)

(d)If n=4, then

C(f4, f3, f2, f1) = f4◦C(f3, f2, f1)

| {z }

=f3◦(f2f1) (by (132))

(by (129), applied to n=4)

= f4◦(f3◦(f2◦ f1)). (133) (e)For an arbitrary n≥1, we can informally write C(fn, fn1, . . . ,f1) as

C(fn, fn1, . . . ,f1) = fn◦(fn1◦(fn2◦(· · · ◦(f2◦ f1)· · ·))).

The right hand side of this equality is a complete parenthesization of fn◦ fn1

· · · ◦ f1, where all the parentheses are “concentrated as far right as possible”

(i.e., there is an opening parenthesis after each “◦” sign except for the last one;

and there are n−2 closing parentheses at the end of the expression). This is merely a visual restatement of the recursive definition of C(fn, fn1, . . . ,f1) we gave above.

2.13.5. The crucial property of C(fn, fn1, . . . ,f1)

The following proposition will be key to our proof of Theorem 2.86:

Proposition 2.89. Let n be a positive integer. Let X1,X2, . . . ,Xn+1 ben+1 sets.

For each i∈ {1, 2, . . . ,n}, let fi : Xi →Xi+1be a map. Then,

C(fn, fn1, . . . ,f1) = C(fn, fn1, . . . ,fk+1)◦C(fk, fk1, . . . ,f1) for each k∈ {1, 2, . . . ,n−1}.

Proof of Proposition 2.89. Forget that we fixed n, X1,X2, . . . ,Xn+1 and the maps fi. We shall prove Proposition 2.89 by induction onn: 74

Induction base: If n = 1, then {1, 2, . . . ,n−1} = {1, 2, . . . , 1−1} = ∅. Hence, if n = 1, then there exists no k ∈ {1, 2, . . . ,n−1}. Thus, if n = 1, then Proposition 2.89 is vacuously true (since Proposition 2.89 has a “for eachk ∈ {1, 2, . . . ,n−1}” clause). This completes the induction base.

Induction step: Let m ∈ Z1. Assume that Proposition 2.89 holds under the condition that n = m. We must now prove that Proposition 2.89 holds under the condition thatn =m+1. In other words, we must prove the following claim:

Claim 1: Let X1,X2, . . . ,X(m+1)+1 be (m+1) +1 sets. For each i ∈ {1, 2, . . . ,m+1}, let fi : Xi →Xi+1 be a map. Then,

C

fm+1, f(m+1)−1, . . . ,f1

=C

fm+1, f(m+1)−1, . . . , fk+1

◦C(fk, fk1, . . . ,f1)

74The induction principle that we are applying here is Theorem 2.53 withg = 1 (sinceZ≥1 is the set of all positive integers).

for eachk ∈ {1, 2, . . . ,(m+1)−1}.

[Proof of Claim 1: Letk ∈ {1, 2, . . . ,(m+1)−1}. Thus,k ∈ {1, 2, . . . ,(m+1)−1} = {1, 2, . . . ,m} (since(m+1)−1=m).

We know that X1,X2, . . . ,X(m+1)+1 are(m+1) +1 sets. In other words,

X1,X2, . . . ,Xm+2 are m+2 sets (since (m+1) +1 = m+2). We have m ∈ Z1, thusm≥1>0; hence, m+1>1. Thus, (129) (applied ton=m+1) yields

C

fm+1, f(m+1)−1, . . . , f1

= fm+1◦C

f(m+1)−1, f(m+1)−2, . . . ,f1

= fm+1◦C(fm, fm1, . . . , f1) (134) (since(m+1)−1 =mand (m+1)−2=m−1).

But we are in one of the following two cases:

Case 1: We havek=m.

Case 2: We havek6=m.

Let us first consider Case 1. In this case, we have k=m. Hence, C

fm+1, f(m+1)−1, . . . , fk+1

=C

fm+1, f(m+1)−1, . . . ,fm+1

=C(fm+1) = fm+1

(by (130), applied to Xm+1, Xm+2and fm+1 instead ofX1, X2 and f1), so that C

fm+1, f(m+1)−1, . . . ,fk+1

| {z }

=fm+1

◦C(fk, fk1, . . . , f1)

| {z }

=C(fm,fm−1,...,f1) (sincek=m)

= fm+1◦C(fm, fm1, . . . ,f1).

Comparing this with (134), we obtain C

fm+1, f(m+1)−1, . . . ,f1

=C

fm+1, f(m+1)−1, . . . , fk+1

◦C(fk, fk1, . . . ,f1). Hence, Claim 1 is proven in Case 1.

Let us now consider Case 2. In this case, we have k 6= m. Combining k ∈ {1, 2, . . . ,m} with k 6=m, we obtain

k∈ {1, 2, . . . ,m} \ {m} ={1, 2, . . . ,m−1}. Hence,k ≤m−1<m, so that m+1− k

|{z}<m

>m+1−m=1.

But we assumed that Proposition 2.89 holds under the condition that n = m.

Hence, we can apply Proposition 2.89 to minstead ofn. We thus obtain C(fm, fm1, . . . ,f1) =C(fm, fm1, . . . ,fk+1)◦C(fk, fk1, . . . ,f1) (sincek ∈ {1, 2, . . . ,m−1}). Now, (134) yields

C

fm+1, f(m+1)−1, . . . , f1

= fm+1◦ C(fm, fm1, . . . ,f1)

| {z }

=C(fm,fm−1,...,fk+1)◦C(fk,fk−1,...,f1)

= fm+1◦(C(fm, fm1, . . . ,fk+1)◦C(fk, fk1, . . . , f1)). (135)

On the other hand,m+1−k > 1. Hence, (129) (applied tom+1−k, Xk+i and fk+i instead ofn, Xi and fi) yields

C

fk+(m+1k), fk+((m+1k)−1), . . . ,fk+1

= fk+(m+1k)◦C

fk+((m+1k)−1), fk+((m+1k)−2), . . . ,fk+1

= fm+1C(fm, fm1, . . . ,fk+1)

sincek+ (m+1−k) = m+1 andk+ ((m+1−k)−1) = m and k+ ((m+1−k)−2) = m−1

. Sincek+ (m+1−k) =m+1 andk+ ((m+1−k)−1) = (m+1)−1, this rewrites as

C

fm+1, f(m+1)−1, . . . ,fk+1

= fm+1C(fm, fm1, . . . ,fk+1). Hence,

C

fm+1, f(m+1)−1, . . . ,fk+1

| {z }

=fm+1C(fm,fm−1,...,fk+1)

◦C(fk, fk1, . . . , f1)

= (fm+1◦C(fm, fm1, . . . , fk+1))◦C(fk, fk1, . . . ,f1)

= fm+1◦(C(fm, fm1, . . . , fk+1)◦C(fk, fk1, . . . ,f1))

(by Proposition 2.82, applied to X = X1, Y = Xk+1, Z = Xm+1, W = Xm+2, c = C(fk, fk1, . . . ,f1), b = C(fm, fm1, . . . , fk+1) and a = fm+1). Comparing this with (135), we obtain

C

fm+1, f(m+1)−1, . . . ,f1

=C

fm+1, f(m+1)−1, . . . , fk+1

◦C(fk, fk1, . . . ,f1). Hence, Claim 1 is proven in Case 2.

We have now proven Claim 1 in each of the two Cases 1 and 2. Since these two Cases cover all possibilities, we thus conclude that Claim 1 always holds.]

Now, we have proven Claim 1. In other words, we have proven that Proposition 2.89 holds under the condition that n =m+1. This completes the induction step.

Hence, Proposition 2.89 is proven by induction.

2.13.6. Proof of general associativity

Proposition 2.90. Let n be a positive integer. Let X1,X2, . . . ,Xn+1 ben+1 sets.

For each i ∈ {1, 2, . . . ,n}, let fi : XiXi+1 be a map. Then, every complete parenthesization of fn◦ fn1◦ · · · ◦ f1 equalsC(fn, fn1, . . . , f1).

Proof of Proposition 2.90. Forget that we fixed n, X1,X2, . . . ,Xn+1 and the maps fi. We shall prove Proposition 2.90 by strong induction on n: 75

75The induction principle that we are applying here is Theorem 2.60 withg = 1 (sinceZ≥1 is the set of all positive integers).

Induction step: Let m ∈ Z1. Assume that Proposition 2.90 holds under the con-dition that n <m. We must prove that Proposition 2.90 holds under the condition thatn =m. In other words, we must prove the following claim:

Claim 1: Let X1,X2, . . . ,Xm+1 be m+1 sets. For each i ∈ {1, 2, . . . ,m}, let fi : Xi → Xi+1 be a map. Then, every complete parenthesization of

fm◦ fm1◦ · · · ◦ f1equals C(fm, fm1, . . . ,f1).

[Proof of Claim 1: Let γ be a complete parenthesization of fm ◦ fm1◦ · · · ◦ f1. Thus, we must prove thatγ =C(fm, fm1, . . . ,f1).

We have m ∈ Z1, thus m ≥ 1. Hence, either m = 1 or m > 1. Thus, we are in one of the following two cases:

Case 1: We havem=1.

Case 2: We havem>1.

Let us first consider Case 1. In this case, we have m = 1. Thus, we have C(fm, fm1, . . . ,f1) = f1 (by the definition ofC(fm, fm1, . . . ,f1)).

Recall that m = 1. Thus, the definition of a “complete parenthesization of fm◦ fm1◦ · · · ◦ f1” shows that there is only one complete parenthesization of fm ◦ fm1◦ · · · ◦ f1, and this is simply the map f1 : X1 → X2. Hence, γ is simply the map f1 : X1 → X2 (since γ is a complete parenthesization of fm◦ fm1◦ · · · ◦ f1).

Thus, γ = f1 = C(fm, fm1, . . . ,f1) (since C(fm, fm1, . . . , f1) = f1). Thus, γ = C(fm, fm1, . . . ,f1)is proven in Case 1.

Now, let us consider Case 2. In this case, we have m > 1. Hence, the definition of a “complete parenthesization of fm◦ fm1◦ · · · ◦ f1” shows that any complete parenthesization of fm◦ fm1◦ · · · ◦ f1is a map of the form αβ, where

• kis some element of {1, 2, . . . ,m−1};

α is a complete parenthesization of fm◦ fm1◦ · · · ◦ fk+1;

β is a complete parenthesization of fk◦ fk1◦ · · · ◦ f1.

Thus, γ is a map of this form (since γ is a complete parenthesization of fm◦ fm1◦ · · · ◦ f1). In other words, we can write γ in the form γ = αβ, where k is some element of {1, 2, . . . ,m−1}, where α is a complete parenthesization of fm◦ fm1◦ · · · ◦ fk+1, and where βis a complete parenthesization of fk◦ fk1◦ · · · ◦ f1. Consider thesek, α and β.

We have k ∈ {1, 2, . . . ,m−1}, thus k ≤ m1 < m. Hence, we can apply Proposition 2.90 to n= k(since we assumed that Proposition 2.90 holds under the condition that n < m). We thus conclude that every complete parenthesization of fkfk1◦ · · · ◦ f1 equals C(fk, fk1, . . . ,f1). Hence, β equals C(fk, fk1, . . . ,f1) (since βis a complete parenthesization of fk◦ fk1◦ · · · ◦ f1). In other words,

β=C(fk, fk1, . . . ,f1). (136)

We have k ∈ {1, 2, . . . ,m−1}, thus k ≥1 and therefore m− k

|{z}1

≤ m−1 < m.

Hence, we can apply Proposition 2.90 to m−k, Xk+i and fk+i instead of n, Xi and fi (since we assumed that Proposition 2.90 holds under the condition that n <m).

We thus conclude that every complete parenthesization of fk+(mk)◦ fk+(mk1)

· · · ◦ fk+1 equals C

fk+(mk), fk+(mk1), . . . ,fk+1

.

Sincek+ (m−k) =m and k+ (m−k−1) = m−1, this rewrites as follows: Ev-ery complete parenthesization of fm◦ fm1◦ · · · ◦fk+1equalsC(fm, fm1, . . . ,fk+1). Thus, α equals C(fm, fm1, . . . ,fk+1) (since α is a complete parenthesization of

fm◦ fm1◦ · · · ◦ fk+1). In other words,

α=C(fm, fm1, . . . , fk+1). (137) But Proposition 2.89 (applied ton =m) yields

C(fm, fm1, . . . ,f1) =C(fm, fm1, . . . , fk+1)

| {z }

=α (by (137))

◦C(fk, fk1, . . . ,f1)

| {z }

=β (by (136))

=αβ =γ

(sinceγ=αβ), so thatγ=C(fm, fm1, . . . ,f1). Hence,γ=C(fm, fm1, . . . ,f1)is proven in Case 2.

We now have shown thatγ=C(fm, fm1, . . . , f1) in each of the two Cases 1 and 2. Since these two Cases cover all possibilities, this yields thatγ =C(fm, fm1, . . . ,f1) always holds.

Now, forget that we fixed γ. We thus have shown that γ = C(fm, fm1, . . . ,f1) whenever γ is a complete parenthesization of fm ◦ fm1◦ · · · ◦ f1. In other words, every complete parenthesization of fm ◦ fm1◦ · · · ◦ f1 equals C(fm, fm1, . . . , f1). This proves Claim 1.]

Now, we have proven Claim 1. In other words, we have proven that Proposition 2.90 holds under the condition that n = m. This completes the induction step.

Hence, Proposition 2.90 is proven by strong induction.

Proof of Theorem 2.86. Proposition 2.90 shows that every complete parenthesization of fn◦ fn1◦ · · · ◦ f1equalsC(fn, fn1, . . . ,f1). Thus, all complete parenthesizations of fnfn1◦ · · · ◦ f1are the same map. This proves Theorem 2.86.

2.13.7. Compositions of multiple maps without parentheses

Definition 2.91. Let n be a positive integer. Let X1,X2, . . . ,Xn+1 be n+1 sets.

For each i ∈ {1, 2, . . . ,n}, let fi : Xi → Xi+1 be a map. Then, the map C(fn, fn1, . . . , f1) : X1 → Xn+1 is denoted by fn◦ fn1◦ · · · ◦ f1 and called the composition of fn, fn1, . . . ,f1. This notation fn◦ fn1◦ · · · ◦ f1 may conflict with existing notations in two cases:

• In the case when n = 1, this notation fn ◦ fn1◦ · · · ◦ f1 simply becomes f1, which looks exactly like the map f1 itself. Fortunately, this conflict of notation is harmless, because the new meaning that we are giving to f1

in this case (namely, C(fn, fn1, . . . ,f1) = C(f1)) agrees with the map f1 (because of (130)).

• In the case when n = 2, this notation fn ◦ fn1◦ · · · ◦ f1 simply be-comes f2◦ f1, which looks exactly like the composition f2◦ f1 of the two maps f2 and f1. Fortunately, this conflict of notation is harmless, be-cause the new meaning that we are giving to f2◦ f1 in this case (namely, C(fn, fn1, . . . , f1) = C(f2, f1)) agrees with the latter composition (because of (131)).

Thus, in both cases, the conflict with existing notations is harmless (the con-flicting notations actually stand for the same thing).

Remark 2.92. Letn, X1,X2, . . . ,Xn+1and fibe as in Definition 2.91. Then, Propo-sition 2.90 shows that every complete parenthesization of fn ◦ fn1◦ · · · ◦ f1 equals C(fn, fn1, . . . ,f1). In other words, every complete parenthesization of fn◦ fn1◦ · · · ◦ f1 equals fn ◦ fn1◦ · · · ◦ f1 (because fn ◦ fn1◦ · · · ◦ f1 was de-fined to be C(fn, fn1, . . . ,f1) in Definition 2.91). In other words, we can drop the parentheses in every complete parenthesization of fn ◦ fn1◦ · · · ◦ f1. For example, forn =7, we get

(f7◦(f6◦ f5))◦(f4◦((f3◦ f2)◦ f1)) = f7◦ f6◦ f5◦ f4◦ f3◦ f2◦ f1, and a similar equality for any other complete parenthesization.

Definition 2.91 and Remark 2.92 finally give us the justification to write compo-sitions of multiple maps (like fn ◦ fn1◦ · · · ◦ f1 for n ≥ 1) without the need for parentheses. We shall now go one little step further and extend this notation to the case ofn =0 – that is, we shall define the composition ofnomaps:

Definition 2.93. Let n ∈ N. Let X1,X2, . . . ,Xn+1 be n+1 sets. For each i ∈ {1, 2, . . . ,n}, let fi : Xi →Xi+1 be a map. In Definition 2.91, we have defined the composition fn◦ fn1◦ · · · ◦ f1of fn, fn1, . . . ,f1when nis a positive integer. We shall now extend this definition to the case whenn=0 (so that it will be defined for alln ∈N, not just for all positive integersn). Namely, we extend it by setting fn◦ fn1◦ · · · ◦ f1 =idX1 whenn =0. (138) That is, we say that the composition of 0 maps is the identity map idX1 : X1 →X1. This composition of 0 maps is also known as theempty composition of maps. Thus, the empty composition of maps is defined to be idX1. (This is similar to the well-known conventions that a sum of 0 numbers is 0, and that a product of 0 numbers is 1.)

This definition is slightly dangerous, because it entails that the composition of 0 maps depends on the set X1, but of course the 0 maps being composed know nothing about this set X1. Thus, when we speak of an empty composition, we should always specify the set X1 or ensure that it is clear from the context. (See Definition 2.94 below for an example where it is clear from the context.)

2.13.8. Composition powers

Having defined the composition ofnmaps, we get the notion of composition pow-ers of maps for free:

Definition 2.94. Let n ∈ N. Let X be a set. Let f : X → X be a map. Then, fn shall denote the map

f ◦ f ◦ · · · ◦ f

| {z }

ntimes f

: X →X.

Thus, in particular,

f0= f ◦ f ◦ · · · ◦ f

| {z }

0 timesf

=idX (139)

(by Definition 2.93). Also, f1 = f, f2 = f ◦ f, f3 = f ◦ f ◦ f, etc.

The map fn is called the n-th composition powerof f (or simply the n-th power of f).

Before we study composition powers in detail, let us show a general rule that allows us to “split” compositions of maps:

Theorem 2.95. Let n ∈ N. Let X1,X2, . . . ,Xn+1 be n+1 sets. For each i ∈ {1, 2, . . . ,n}, let fi : Xi → Xi+1 be a map.

(a)We have

fn◦ fn1◦ · · · ◦ f1 = (fn◦ fn1◦ · · · ◦ fk+1)◦(fk◦ fk1◦ · · · ◦ f1) for each k∈ {0, 1, . . . ,n}.

(b)If n≥1, then

fn ◦ fn1◦ · · · ◦ f1 = fn◦(fn1◦ fn2◦ · · · ◦ f1). (c)If n≥1, then

fn ◦ fn1◦ · · · ◦ f1 = (fn ◦ fn1◦ · · · ◦ f2)◦ f1.

Proof of Theorem 2.95. (a) Let k ∈ {0, 1, . . . ,n}. We are in one of the following three cases:

Case 1: We havek=0.

Case 2: We havek=n.

Case 3: We have neitherk =0 nor k =n.

(Of course, Cases 1 and 2 overlap when n=0.)

Let us first consider Case 1. In this case, we have k= 0. Thus, fk◦ fk1◦ · · · ◦ f1 is an empty composition of maps, and therefore equals idX1. In other words, fk

fk1◦ · · · ◦ f1=idX1.

On the other hand, k = 0, so that k+1 = 1. Hence, fn ◦ fn1◦ · · · ◦ fk+1 = fn◦ fn1◦ · · · ◦ f1. Thus,

(fnfn1◦ · · · ◦ fk+1)

| {z }

=fnfn−1◦···◦f1

◦(fkfk1◦ · · · ◦ f1)

| {z }

=idX1

= (fn◦ fn1◦ · · · ◦ f1)◦idX1 = fn◦ fn1◦ · · · ◦ f1. In other words,

fn◦ fn1◦ · · · ◦ f1 = (fn◦ fn1◦ · · · ◦ fk+1)◦(fk◦ fk1◦ · · · ◦ f1). Hence, Theorem 2.95(a)is proven in Case 1.

Let us next consider Case 2. In this case, we havek=n. Thus, fn◦ fn1◦ · · · ◦fk+1

is an empty composition of maps, and therefore equals idXn+1. In other words, fn◦ fn1◦ · · · ◦ fk+1 =idXn+1. Thus,

(fn ◦ fn1◦ · · · ◦ fk+1)

| {z }

=idXn+1

◦(fk◦ fk1◦ · · · ◦ f1)

| {z }

=fnfn−1◦···◦f1 (sincek=n)

=idXn+1◦(fn◦ fn1◦ · · · ◦ f1) = fn◦ fn1◦ · · · ◦ f1. In other words,

fn◦ fn1◦ · · · ◦ f1 = (fn◦ fn1◦ · · · ◦ fk+1)◦(fk◦ fk1◦ · · · ◦ f1). Hence, Theorem 2.95(a)is proven in Case 2.

Let us finally consider Case 3. In this case, we have neither k = 0 nor k = n. In other words, we have k 6= 0 and k 6= n. Combining k ∈ {0, 1, . . . ,n} with k 6= 0, we findk ∈ {0, 1, . . . ,n} \ {0} ⊆ {1, 2, . . . ,n}. Combining this with k 6= n, we find k ∈ {1, 2, . . . ,n} \ {n} ⊆ {1, 2, . . . ,n−1}. Hence, 1 ≤ k ≤ n−1, so that n−1 ≥ 1 and thus n≥2≥1. Hence,nis a positive integer. Thus, Proposition 2.89 yields

C(fn, fn1, . . . ,f1) =C(fn, fn1, . . . , fk+1)◦C(fk, fk1, . . . ,f1). (140) Now, k is a positive integer (since k ∈ {1, 2, . . . ,n−1}). Hence, Definition 2.91 (applied to kinstead ofn) yields

fk◦ fk1◦ · · · ◦ f1=C(fk, fk1, . . . , f1). (141)

Also, n−k is an integer satisfying n− k

|{z}n1

≥ n−(n−1) = 1. Hence, n−k is a positive integer. Thus, Definition 2.91 (applied ton−k, Xk+i and fk+i instead ofn, Xi and fi) yields

fk+(nk) ◦ fk+(nk1)◦ · · · ◦ fk+1 =C

fk+(nk), fk+(nk1), . . . ,fk+1

. In view of k+ (n−k) =n and k+ (n−k−1) = n−1, this rewrites as follows:

fn◦ fn1◦ · · · ◦ fk+1=C(fn, fn1, . . . , fk+1). (142) Butnis a positive integer. Thus, Definition 2.91 yields

fnfn1◦ · · · ◦ f1 =C(fn, fn1, . . . ,f1)

=C(fn, fn1, . . . ,fk+1)

| {z }

=fnfn−1◦···◦fk+1 (by (142))

◦C(fk, fk1, . . . , f1)

| {z }

=fkfk−1◦···◦f1 (by (141))

(by (140))

= (fnfn1◦ · · · ◦ fk+1)◦(fkfk1◦ · · · ◦ f1). Hence, Theorem 2.95(a)is proven in Case 3.

We have now proven Theorem 2.95(a)in each of the three Cases 1, 2 and 3. Since these three Cases cover all possibilities, we thus conclude that Theorem 2.95 (a) always holds.

(b) Assume that n ≥ 1. Hence, n−1 ≥ 0, so that n−1 ∈ {0, 1, . . . ,n} (since n−1≤n). Hence, Theorem 2.95(a)(applied to k=n−1) yields

fn◦ fn1◦ · · · ◦ f1 =fn◦ fn1◦ · · · ◦ f(n1)+1

| {z }

=fnfn−1◦···◦fn=fn

fn1◦ f(n1)−1◦ · · · ◦ f1

| {z }

=fn−1fn−2◦···◦f1

= fn◦(fn1◦ fn2◦ · · · ◦ f1). This proves Theorem 2.95(b).

(c)Assume thatn ≥1. Hence, 1∈ {0, 1, . . . ,n}. Hence, Theorem 2.95(a)(applied tok=1) yields

fn◦ fn1◦ · · · ◦ f1 = (fn◦ fn1◦ · · · ◦ f1+1)

| {z }

=fnfn−1◦···◦f2

◦(f1◦ f11◦ · · · ◦ f1)

| {z }

=f1

= (fn◦ fn1◦ · · · ◦ f2)◦ f1. This proves Theorem 2.95(c).

We can draw some consequences about composition powers of maps from The-orem 2.95:

Proposition 2.96. Let X be a set. Let f : X → X be a map. Let n be a positive integer.

(a)We have fn = f ◦ f◦(n1). (b)We have fn = f◦(n1)◦ f.

Proof of Proposition 2.96. The definition of fn yields fn = f ◦ f ◦ · · · ◦ f

In view of (a+b)−b =a, this rewrites as

f ◦ f ◦ · · · ◦ f

| {z }

a+btimes f

=

f ◦ f ◦ · · · ◦ f

| {z }

atimes f

◦

f ◦ f ◦ · · · ◦ f

| {z }

btimes f

. (145)

But the definition of fa yields

fa = f ◦ f ◦ · · · ◦ f

| {z }

atimes f

. (146)

Also, the definition of fb yields

fb = f ◦ f ◦ · · · ◦ f

| {z }

btimes f

. (147)

Finally, the definition of f◦(a+b) yields

f◦(a+b) = f ◦ f ◦ · · · ◦ f

| {z }

a+btimes f

. (148)

In view of these three equalities (146), (147) and (148), we can rewrite the equality (145) as f◦(a+b) = fa◦ fb. This proves Proposition 2.97(a).

(Alternatively, it is easy to prove Proposition 2.97(a)by induction ona.) (b)Let a∈ N. We claim that

f◦(ab) = (fa)b for everyb ∈ N. (149) We shall prove (149) by induction onb:

Induction base: We have a·0=0 and thus f◦(a·0) = f0=idX(by (139)). Compar-ing this with(fa)0 =idX (which follows from (139), applied to fa instead of f), we obtain f◦(a·0) = (fa)0. In other words, (149) holds for b = 0. This completes the induction base.

Induction step: Let m ∈ N. Assume that (149) holds for b = m. We must prove that (149) holds for b=m+1.

We have assumed that (149) holds forb = m. In other words, we have f◦(am) = (fa)m.

But m+1 is a positive integer (since m+1 > m ≥ 0). Hence, Proposition 2.96 (b)(applied to m+1 and fa instead ofnand f) yields

(fa)◦(m+1) = (fa)◦((m+1)−1)◦ fa = (fa)m◦ fa (150) (since(m+1)−1 =m).

Buta(m+1) =am+a. Thus,

f◦(a(m+1)) = f◦(am+a) = f◦(am)

| {z }

=(f◦a)◦m

◦fa

by Proposition 2.97(a)

(applied to am and ainstead of aand b)

= (fa)m ◦ fa = (fa)◦(m+1) (by (150)).

In other words, (149) holds forb =m+1. This completes the induction step. Thus, (149) is proven by induction. Hence, Proposition 2.97(b)is proven.

Note that Proposition 2.97 is similar to the rules of exponents na+b =nanb and nab= (na)b

that hold for n ∈ Q and a,b ∈ N(and for various other situations). Can we find similar analogues for other rules of exponents, such as(mn)a =mana? The simplest analogue one could think of for this rule would be (f ◦g)a = fa◦ga; but this does not hold in general (unless a≤1). However, it turns out that this does hold if we assume that f ◦g =g◦ f (which is not automatically true, unlike the analogous equalitymn =nm for integers). Let us prove this:

Proposition 2.98. Let X be a set. Let f : X → X and g : X → X be two maps such that f ◦g =g◦ f. Then:

(a)We have f ◦gb =gb◦ f for each b ∈N.

(b)We have fa◦gb =gb◦ fa for eacha ∈Nand b ∈N.

(c)We have (f ◦g)a = fa◦ga for each a∈ N.

Example 2.99. Let us see why the requirement f ◦g = g◦ f is needed in Propo-sition 2.98:

Let X be the set Z. Let f : X → X be the map that sends every integer x to −x. Let g : X → X be the map that sends every integer x to 1−x. Then, f2=idX (since f2(x) = f (f (x)) = −(−x) = xfor eachx ∈ X) andg2 =idX (since g2(x) = g(g(x)) = 1−(1−x) = x for each x ∈ X). But the map f ◦g satisfies (f ◦g) (x) = f(g(x)) = −(1−x) = x−1 for each x ∈ X. Hence, (f ◦g)2(x) = (f ◦g) ((f ◦g) (x)) = (x−1)−1 = x−2 for each x ∈ X. Thus, (f ◦g)2 6= idX. Comparing this with f2

|{z}

=idX

◦ g2

|{z}

=idX

= idX◦idX = idX, we obtain (f ◦g)26= f2◦g2. This shows that Proposition 2.98(c)would not hold without the requirement f ◦g =g◦ f.

Proof of Proposition 2.98. (a)We claim that

f ◦gb =gb◦ f for eachb ∈ N. (151)

Indeed, let us prove (151) by induction onb:

Induction base: We have g0 = idX (by (139), applied to g instead of f). Hence, f ◦ g0

|{z}

=idX

= f ◦idX = f and g0

|{z}

=idX

f =idXf = f. Comparing these two equalities, we obtain f ◦g0 = g0◦ f. In other words, (151) holds for b = 0. This completes the induction base.

Induction step: Let m ∈ N. Assume that (151) holds for b = m. We must prove that (151) holds for b=m+1.

We have assumed that (151) holds forb =m. In other words,

f ◦gm =gm◦ f. (152)

Proposition 2.82 (applied to Y = X, Z = X, W = X, c = g, b = gm and a = f) yields

(f ◦gm)◦g = f ◦(gm◦g). (153) Proposition 2.97(a)(applied to g, m and 1 instead of f, aand b) yields

g◦(m+1) =gm◦ g1

|{z}=g

=gm◦g. (154)

Hence,

f ◦g◦(m+1)

| {z }

=g◦mg

= f ◦(gm◦g) = (f ◦gm)

| {z }

=g◦mf (by (152))

◦g (by (153))

= (gm◦ f)◦g= gm ◦(f ◦g)

| {z }

=gf

by Proposition 2.82 (applied

toY= X, Z =X,W = X, c =g, b = f and a =gm)

=gm◦(g◦ f). (155)

On the other hand, Proposition 2.82 (applied toY = X, Z = X, W = X, c = f, b =g and a=gm) yields

(gm◦g)◦ f = gm ◦(g◦ f). Comparing this with (155), we obtain

f ◦g◦(m+1) = (gm◦g)

| {z }

=g◦(m+1) (by (154))

◦f = g◦(m+1)◦ f.

In other words, (151) holds forb =m+1. This completes the induction step. Thus, (151) is proven by induction.

Therefore, Proposition 2.98(a) follows.

(b) Let a ∈ N and b ∈ N. From f ◦g = g◦ f, we obtain g◦ f = f ◦g. Hence, Proposition 2.98 (a) (applied to g, f and a instead of f, g and b) yields g◦ fa = fa◦g. In other words, fa◦g = g◦ fa. Hence, Proposition 2.98 (a) (applied to fa instead of f) yields fa◦gb =gb◦ fa. This proves Proposition 2.98(b).

(c)We claim that

(f ◦g)a = fa◦ga for each a ∈N. (156) Indeed, let us prove (156) by induction ona:

Induction base: From (139), we obtain f0 = idX and g0 = idX and (f ◦g)0 = idX. Thus,

Induction base: From (139), we obtain f0 = idX and g0 = idX and (f ◦g)0 = idX. Thus,

Im Dokument A version without solutions (Seite 143-164)