Sections 5.1 and 5.2 built new functions from old
ones by cutting, gluing and factoring. This section
looks at functions of a special shape: functions that
take two elements of a set and return a third element of
the same set, such as on , on and on the functions
from a set to itself. We name the properties such an
operation may have, one at a time, and ask what each
property buys on its own. The central answers,
uniqueness of identities and of inverses, are short
proofs by one method, computing a single expression in
two ways; the rest are proved by checking candidates.
All of them work at once for numbers, for sets, for
functions and for the hours of the clock.
Brackets
Nobody writes brackets in : whether we add
first or
first, the
answer is .
Subtraction is different. Reading from the left
gives , and from the right gives . Powers
behave like subtraction: ,
while . School arithmetic settles this by
convention (subtraction from the left, towers of powers
from the top), and a convention is needed exactly
because the bracketing changes the answer.
The same questions arise far from numbers. For
subsets of a set ,
is the same set as ? For functions from to itself, is the
same function as ? On the clock of Section 4.2, is
there an hour that changes nothing when added, as does for integers, and
can every hour be undone?
Each of these questions asks whether some rule of
arithmetic holds for some way of combining two things
into a third. The aim of this section is to separate the
rules and to find out what each rule gives on its own.
Here is a test question to keep in mind: can a set with
an operation have two different elements that both
behave like ? For
on the answer seems
obvious, but the reason is not; the answer comes in the
subsection “One identity, one inverse”.
Operations
The first thing to fix is what counts as a way of
combining two things. Two natural candidates fail.
Subtraction on
takes the pair to , which is not in . Division on has no value at all
at the pair .
The first fails because a value leaves the set; the
second fails because a pair has no value. A way of
combining must give every pair a value,
and the value must lie in the set.
Those are the two halves of being a function with domain
and
codomain (Definition 1.5.1).
An operation on a set combines any two of its
elements into a third element of the same set.
Definition
5.3.1 (Binary Operation)
Let be a set.
A binary operation on , or an
operation on , is a function Its value at is written rather than .
A subset is closed under if
for all .
In words: the definition asks for a function, so each
pair of
elements of , in
this order, has exactly one value, and
that value lies in . The order matters,
since and
are
different pairs and may have different values; . The
letter is a
name for the operation, like for a function. In
examples it is replaced by a familiar symbol, , , , .
If is closed
under , then
the restriction of to , with codomain
, is an operation
on : restriction
to a subset of the domain (Definition 5.1.1)
gives a function , and closure says its values lie in , so may serve as the
codomain. We keep the symbol for the restricted
operation.
Example
(Operations)
Decide which of the following are operations on the
set named, and which subsets named are closed.
- (a) , and on ; the average and on .
- (b) , and the symmetric
difference of Section 5.1
on .
- (c) Composition
on , the set of all
functions .
- (d) and on , for .
- (e) Division on
; and the subset of , under and under .
Solution.
(a) Each rule
gives every pair of integers one integer, and every pair
of reals one real, so each is an operation. The average
is an operation on but not on : .
(b) For , the
sets ,
and are again
subsets of (Definition 1.3.1),
so each is an operation on .
(c) For , the
composite
is a function (Definition 1.5.2),
so is an operation on .
(d) Both rules
read representatives of classes; Proposition 4.2.5
proved that they are well defined, that is, that each
pair of classes gets exactly one class. So both are
operations on .
(e) If , then is defined and , so division is
an operation on . The positive integers are
closed under ,
since a sum of positive integers is positive. They are
not closed under :
, and .
Part (d) is the reason this section returns to
quotients at its end: an operation on classes is a rule
on representatives together with a proof of
well-definedness. Part (e) shows that a rule that fails
on one set may succeed on a smaller one; the pairs that
caused trouble for division, those with second entry
, have been
removed.
Quick check. Is an operation on ? Are the
even integers closed under ? The odd integers?
Solution. Yes: for , , so the value lies in . Yes: . No:
is odd and is not.
Properties
The questions of the hook are now questions about an
operation on a
set . Each asks
whether an equation holds for every choice of elements,
or whether some element has a special behavior.
Definition
5.3.2 (Associative, Commutative, Identity,
Inverse)
Let be an
operation on a set .
- (a) is
associative if for all .
- (b) is
commutative if
for all .
- (c) An element is a left
identity of if for
every ; a right identity if for
every ; and an identity if it is
both.
- (d) Suppose has an identity
, and let . An element is an
inverse of if
and . The element is
invertible if it has an inverse.
In words: associativity says brackets may be moved;
commutativity says the two inputs may be swapped. A left
or right identity is an element that changes nothing,
from the side named; an identity must change nothing
from both sides and must do so for
every element. An inverse of undoes , again from both sides,
and it is defined only relative to an identity. Clause
(d) says “an inverse”, not “the inverse”: nothing in the
definition says there is only one.
For on , all four hold: is associative and
commutative, is
an identity, and
is an inverse of .
For on , is an identity, and
only and are invertible. For
on , is an identity,
since .
Deciding whether an operation has a property is the
work of Section 4.1’s method for relations (Example (Method: proving or disproving a property of a relation)):
a property that says “for all” is proved by taking
arbitrary elements, and a failure needs one witness,
checked. For an identity the quantifiers are the other
way round, “there is an such that for every
”, so a proof
names one and
checks it against every , and a refutation must
show that every candidate fails at some .
Example
(A right identity that is not an identity)
Decide whether subtraction on is associative, and
find its left and right identities.
Solution. Not associative.
The triple
of the hook is a witness: and .
A right identity. For every , , so is a right
identity.
Not a left identity. , so
fails at .
No left identity at all. Suppose is a left identity, so
for every
. At this gives ; at it gives , so . Then , which is false. So
no integer is a left identity, and subtraction has no
identity.
The refutation of “there is a left identity” did not
test candidates one by one. It assumed a left identity
, used the
hypothesis “for every ” at two well-chosen
values of , and
reached two incompatible values for .
Quick check. Is the average on associative? Is it
commutative? Has it an identity?
Solution. Not associative: , while . Commutative: . No
identity: if for every , then for every , so and , which is
false.
Quick check. Consider on and on . Is each associative?
Commutative? Has it an identity?
Solution. Both are associative,
since and are both the largest of , and both are
commutative. On , is an identity: since . On
there is none: an identity would need ,
but . The same rule, on a larger set, loses its
identity.
One
identity, one inverse
Back to the test question of the hook. An operation
may have several left identities: for on a
set with two elements, every element is a left identity
(Exercise A1 (c)). But an element that is an identity
from both sides is never shared.
Proposition
5.3.1 (An Identity Is Unique)
Let be an
operation on a set . If is a left identity and
is a right
identity of ,
then . In
particular,
has at most one identity.
Idea (Scratch work). Two
candidates, so this is the uniqueness half of Example (Method: existence and uniqueness):
two names, about which we know only the defining
equations, to be shown equal. The givens are equations
about products; the goal mentions no product at all. The
gap is to find one product that both givens can
simplify.
|
for every ;
for every |
|
| the givens speak about products; the goal about two
elements |
one product that each given simplifies |
| the product : the first given at makes it ; the second at
makes it
|
|
The last row closes the gap: the product , with one
candidate on each side, is the expression both givens
can reach.
Proof. Since is a right
identity, the case of its defining equation gives . Since
is a left
identity, the case gives . Hence .
If and are both
identities, then
is a left identity and a right identity,
so . This
proves the proposition.
Neither associativity nor commutativity was used: the
proof applies two hypotheses once each, to the single
product . So the answer to the test question is
no, for every operation whatsoever. Because of the
proposition, we may speak of the
identity of
when there is one.
The proof is an instance of a move that runs through
this section and the next.
Example
(Method: compute one expression in two ways)
Template. To prove when and are known only through
equations: (1) find one expression that the equations
about reduce to
, and the
equations about
reduce to ; (2)
write the chain , citing a hypothesis at each
“”.
When to use it. Uniqueness of
identities and of inverses, cancellation, and any goal
equating two objects given by equations.
The usual failure. Assuming somewhere in the
chain (entry (N9) of Logic and Proof, Example (What is not allowed));
using associativity or commutativity that was not given;
a bracket moved silently.
Inverses are the second test of the method. Here
associativity is needed, and the proof shows exactly
where.
Proposition
5.3.2 (Inverses Are Unique for an Associative
Operation)
Let be an
associative operation on a set with identity , and let . If and , then . In particular,
has at most one
inverse.
Proof. Using that is an identity, then
, then
associativity, then , and finally that is an identity again:
If and
are both inverses
of , then in
particular and , so . This proves the proposition.
For an associative operation with identity, the
inverse of an invertible is therefore unique,
and we write it . For an operation
written , the
inverse is written instead. The
proposition is a little stronger than uniqueness: an
element with some
such that and some
such that has , and then is an inverse of , so is invertible. This is
the same computation as Proposition 1.6.3
for functions, now done for any associative
operation.
Without associativity the conclusion can fail, and a
three-element table shows it.
Example
(Without associativity, two inverses)
Let with three different elements, and define
by the table
below: the entry in row and column is .
Show that
is a commutative operation with identity , that has two different
inverses, and that is not
associative.
Solution. The table gives each of
the nine pairs exactly one value in , so is an operation on
. The table is
symmetric about its diagonal, which says for
all : is commutative. The
row and the column of repeat the headings, so
for every : is the identity.
Since , the element is an inverse of
itself; since , the element is another inverse of
, and .
Finally, , while . These differ, so is not
associative.
The last line is Proposition 5.3.2’s
chain, run on , ,
, breaking at
the one step that used associativity.
With uniqueness in hand, the rules that school
algebra uses for inverses of numbers can be proved for
any associative operation. The method for each is the
same: name a candidate, check it on both sides, and let
uniqueness do the rest.
Proposition
5.3.3 (Inverses of Products)
Let be an
associative operation on a set with identity .
- (a) is invertible, and
.
- (b) If is invertible, then so
is , and
.
- (c) If and are invertible, then so
is , and
.
Proof. In each part we show that
the candidate is an inverse by checking both equations
of Definition 5.3.2
(d); then it is the inverse by Proposition 5.3.2.
(a) , since
is an identity, and this one equation is both required
equations.
(b) The two equations and
,
which say that is an inverse of
, also say that
is an inverse of
.
(c) Using associativity twice to regroup,
then the defining equation of , the identity, and
the defining equation of : In the same way, . This
proves the proposition.
In (c) the order reverses: to undo “first , then ”, one undoes first. The display
moved brackets one step at a time; Exercise C1 shows
that for four factors every bracketing gives the same
element.
Quick check. Which elements of
are
invertible under ? Which are
invertible under ?
Solution. Both operations have
identity :
, and and .
Under , if
, then , so : only is invertible.
Under ,
, so every
is invertible and
is its own inverse.
Operations
on functions
An operation on a set gives an operation on
every set of functions into , by combining values
point by point. This is how and are defined for
real functions, and it carries each property of the
operation on over
to the functions.
Proposition
5.3.4 (Pointwise Operations)
Let be an
operation on a set , and let be a set. For , define
by This is an operation on , the
pointwise operation, and:
- (a) if is associative, or
commutative, on ,
then so is the pointwise operation on ;
- (b) if is an identity of , then the constant
function , , is an identity of the pointwise
operation;
- (c) if is associative with
identity , then
is
invertible if and only if every value is invertible in
, and then the
inverse of is
.
Idea. An equation between functions
is checked value by value (Proposition 1.5.1),
and at the point
each law for the pointwise operation is the same law for
, applied to
the values ,
, .
Proof. For , the value is one
element of , so
is a
function ,
and is an operation on . Each equation below
is between functions , so by Proposition 1.5.1
it suffices to compare values at an arbitrary .
(a) By the definition, used twice on each
side, and associativity in , Likewise when is commutative.
(b) and .
(c) Let be an inverse of , so , the identity being by (b) and Proposition 5.3.1.
Evaluating at
gives , so is an inverse of
. If every
is invertible,
its inverse is unique (Proposition 5.3.2),
so defines a function . Then
, and likewise , so
is an inverse of
. The pointwise
operation is associative by (a), so this inverse is the
only one, by Proposition 5.3.2.
This proves the proposition.
Part (c) needs every value to be invertible, not just
most of them. On with pointwise
, the identity
is the constant ; the function is not
invertible, because its value at has no multiplicative
inverse, although every other value has one.
Warning (Iterate or product?). On
the
symbol could
mean two different functions: the pointwise product
, or the composite . For the first is
and the second is . In this book always means the
-th iterate, composed with itself
times, defined in
Section 5.4. A pointwise product is written , and a
pointwise power is written out, . For the
same reason
standing alone always means the inverse function, while
for a set
is still the
preimage of Definition 1.7.2,
defined for every ; the inverse of under pointwise , when it exists, is
written .
Indicators are a first instance. The set is closed under
multiplication of numbers, so is an operation on
, and
pointwise multiplication is an operation on . By Proposition 5.1.3
(a), : on indicators, the pointwise
product is intersection. The identity
of pointwise
is the constant function , which is , matching for .
The second instance is composition. On , any two functions
can be composed in either order, and composition is an
operation (Example (Operations)
(c)).
Proposition
5.3.5 (Composition on X^X)
Let be a set.
Composition is an associative operation on with identity . An element is invertible
under if and
only if is
bijective, and then its inverse under is the inverse
function . If
has two different
elements, then is not commutative
on .
Proof. Associativity and are Proposition 1.5.3,
with all four sets equal to . Under , an inverse of
in the sense of
Definition 5.3.2
(d) is a
with , which is exactly a two-sided inverse
of in the sense
of Definition 1.6.2.
By Theorem 1.6.4,
has one if and
only if is
bijective, and it is then the inverse function , which is unique
by Proposition 1.6.3.
Now let with , and let be the constant functions with values
and . For every , and . So and
, and these differ, since their values at
differ (Proposition 1.5.1).
This proves the proposition.
So the invertible elements of under composition are
exactly the bijections from to itself, the subject
of Section 5.4. For them, Proposition 5.3.3
(c) says . That rule appeared as
Exercise B2 of Section 1.6 (Exercise (B2: The inverse of a composite));
here it is proved once, for every associative operation,
and the rule for bijections of a set to itself is one
case of it (Exercise B2 of Section 1.6 allows three
different sets).
Quick check. In , find the
inverse of under composition, and its inverse under
pointwise .
Solution. Under : , since
and . Under pointwise , whose identity is the
constant : , since
. The two inverses are different functions;
“the inverse” always names its operation.
Operations
on a quotient
The clock adds hours, and Section 4.2 checked that
the addition is well defined (Proposition 4.2.5).
Every operation that respects an equivalence relation
passes to the quotient in the same way, and it takes its
properties with it.
Proposition
5.3.6 (Operations on a Quotient)
Let be an
operation on a set , and let be an equivalence
relation on such
that, for all , Then is a well-defined
operation on , and the
quotient map satisfies . Moreover:
- (a) if is associative, or
commutative, then so is the operation on ;
- (b) if is an identity of , then is an identity of the
operation on ;
- (c) if is an inverse of , then is an inverse of
.
Proof. Well defined. Every
class is for
some (Definition 4.2.4),
so the rule gives every pair of classes a value, and the
value
lies in .
Let
and .
By Theorem 4.2.1
(b),
and ,
so by hypothesis, and by Theorem 4.2.1
(b) again. So the value does not depend on the
representatives, and is an operation on
. The
equation is the
definition.
(a) Let three classes be given, with
representatives . Applying the definition twice on each side
and associativity in , Likewise
when is
commutative.
(b) and , for every class .
(c) and , and is the identity by
(b). This proves the proposition.
The hypothesis on is the whole
content: it says that does not see the
difference between equivalent elements. For with congruence
modulo , it is
exactly Proposition 4.2.5,
for and for . So inherits from : addition is
associative and commutative with identity , every class has the inverse and we write , and
multiplication is associative and commutative with
identity . On
the clock, , so : the hour that undoes nine hours is three
hours.
Part (c) goes one way only. The quotient can have
inverses that
lacks: in ,
,
so is
invertible under multiplication, while no integer has , since is odd.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) Which of the
following are operations: subtraction on ; subtraction on ; on
; on ?
- (b) Write the table
of on . Find the identity and the inverse of
each class.
- (c) Let be a set with at least
two elements, and let . Find all left identities and all
right identities of .
- (d) State the
template of the method of computing one expression in
two ways, and say which expression it computes in the
proof of Proposition 5.3.2.
Solution.
(a) Subtraction
on : no, .
Subtraction on :
yes. Division on : yes, since is defined and
non-zero for . Division on : no, .
(b) By the rule
, reducing with Proposition 4.2.4
(, ):
|
|
|
|
|
|
|
|
|
|
|
|
The row and column of repeat the headings,
so is the
identity. Reading off the entries : , , .
(c) Every is a left
identity, since for every . No element is a right
identity: for , pick with (there is one, since has at least two
elements); then . So left identities need not be unique
when there is no right identity; Proposition 5.3.1
needs one of each.
(d) To prove
for objects
known only through equations, find one expression that
the equations about reduce to and those about reduce to , and write
with a reason at each step (Example (Method: compute one expression in two ways)).
In Proposition 5.3.2
the expression is , which equals as written and,
regrouped as , equals .
B. Practice
Exercise
(B1: Deciding properties)
On , let
. Determine whether is associative and
whether it is commutative, find its identity, and find
which elements are invertible, with their inverses.
Justify your answer.
Solution. Associative.
Expanding both sides, The two results agree, so is associative.
(Both are unchanged by any rearrangement of .)
Commutative. .
Identity. , and by
commutativity; so
is the identity, unique by Proposition 5.3.1.
Inverses. We need with (the other
side follows by commutativity), that is, . If , this has the
solution : indeed . If , then for every , so has no inverse. So
every is
invertible, with inverse under , and is not.
A remark. . For , is
the indicator rule for a union, Proposition 5.1.3
(c): .
Exercise
(B2: Every square is the identity)
Let be an
associative operation on a set with identity , such that for every
. Prove that
is
commutative. Check the hypothesis for on .
Solution. Let . The equation
says
that is an
inverse of itself, from both sides; by Proposition 5.3.2,
. Now let
. By the
hypothesis applied to , and by Proposition 5.3.3
(c), For : it is
associative (Example (Symmetric difference is associative))
with identity , and
for every (the Quick check after Proposition 5.3.3).
So is
commutative, which can also be read off its definition,
since is symmetric in and .
Exercise
(B3: Two kinds of inverse)
In ,
find, if they exist, the inverses of under
composition and under pointwise , and the inverses of
under
composition and under pointwise . Justify each
answer.
Solution. under . Let , the real cube root. Then
and , so
is the inverse (Proposition 5.3.5).
under
. The
identity is ,
and is the inverse: at every (Proposition 5.3.4
(c)).
under
. None:
,
so is not
injective, hence not bijective, hence not invertible
under by Proposition 5.3.5.
under
. None:
the value
has no inverse under multiplication of reals (), so
by Proposition 5.3.4
(c) is not
invertible.
Exercise
(B4: Prove or disprove)
Prove or disprove each statement. Throughout, is an operation on a
set .
- (a) Every left
identity of
equals every right identity of .
- (b) has at most one left
identity.
- (c) If is associative with
identity, is
invertible and , then .
- (d) If is associative with
identity and
, then
.
- (e) A commutative
operation with an identity is associative.
Solution.
(a) True. This is
Proposition 5.3.1.
(b) False. For
on , both and are left identities, as
in Exercise A1 (c).
(c) True, by
computing , regrouped as ,
in two ways (Example (Method: compute one expression in two ways)),
with associativity at the second and fourth steps:
(d) False. Take
under
composition, associative with identity (Proposition 5.3.5).
Let , and for , : the
successor map of Section 1.6 and a left inverse of it.
Then , since . But , so . With and , and .
(e) False. The
operation of Example (Without associativity, two inverses)
is commutative with identity , and not
associative.
C. Going deeper
Exercise
(C1: Four factors)
Let be an
associative operation on a set , and let . Writing
for , show that the
five bracketings are all equal.
Solution. We show that each equals
. Each step
is one use of associativity, , with chosen as
stated.
- : associativity with , , gives , and then
both sides are that element times .
- : associativity with , , .
- : associativity with , , ; and by
the first item.
- : associativity with , , ; and by
the second item.
So all five bracketings are equal. That every
bracketing of any finite number of factors gives the
same element is true as well; its proof is an induction
on the number of factors, not carried out here, and this
chapter regroups longer composites only by repeated use
of the three-factor law.
Exercise
(C2: Find the error)
Let be an
operation on a set with identity . A student argues:
- Let and be inverses of . (2) Then and , so . (3)
Cancelling on the
left, . (4)
Hence an element has at most one inverse.
- (a) Which line
fails, and which hypothesis does it hide?
- (b) Show that
without that hypothesis the step of the failing line is
false.
Solution.
(a) Line (3)
fails. “Cancelling ” is the statement of
Exercise B4 (c), which holds when is associative and
is invertible;
its proof regroups as ,
and that is associativity. The statement here does not
assume associativity, so line (3) cites a fact that is
not available: entry (N9) of Logic and Proof, Example (What is not allowed).
Lines (1) and (2) are correct, and with associativity
added the argument becomes a correct proof of Proposition 5.3.2.
(b) In Example (Without associativity, two inverses),
which has an identity and is not associative, ,
so , and yet . Cancelling on the left is false
there, and so is the conclusion (4): has the two inverses
and .
Marking scheme. (10 points)
- 3: names line (3) as the step that fails.
- 3: names associativity as the hidden hypothesis, and
says where cancellation uses it.
- 4: gives an operation with identity, not
associative, and an invertible element
with and
(for
instance two
inverses of ),
each equation checked.
A different counterexample to cancellation earns the
4 points if its table is given and the failure of
associativity is shown. Fatal errors (0 for the step):
naming line (2) or line (4); a counterexample that is
associative, or that has no identity, or whose element
is not
invertible.
Exercise
(C3: Transport by a bijection)
Let be a bijection, and let be an operation on
. For , define
- (a) Show that is an operation on
with for all .
- (b) Show that is associative if
and only if
is.
- (c) Compute for , and
.
Solution.
(a) The inverse
function exists by Theorem 1.6.4,
so the right-hand side is one element of for each pair, and
is an
operation on .
Applying
and using (Definition 1.6.2)
gives .
(b) Let be associative and
. By
(a), applied twice on each side, and is injective, so
. Let be associative and
.
Since is
surjective, , , for some , and the
same display read from the outside in gives .
(c) , since , so
(Definition 1.6.2).
Hence the operation of Exercise B1. Its identity
and
its one non-invertible element are the
images of the identity and of the
non-invertible of
multiplication.