Building Functions
Chapter 1 made a function a set of pairs, and Chapter
4 cut sets into classes. This chapter builds new
functions from old ones: cut a function down to a
smaller domain, extend it, glue several together, factor
it through the quotient by “has the same value”, combine
functions by an operation, and apply one function again
and again. The motivating problem: shuffle a deck of
twelve cards by a fixed rule and repeat the shuffle;
must the deck come back to its starting order, and after
how many shuffles? The answer is in Section 5.4,
and it comes from the orbits of a permutation, which are
the classes of an equivalence relation. Along the way,
the subsets of a set turn out to be functions with
values
Each section teaches one method of proof. Section 5.1 defines a function by pieces and checks that the pieces agree where they overlap. Section 5.2 defines a function on a quotient by a rule on representatives and checks that the rule is constant on classes, which is the well-definedness check of Section 4.2 turned into a theorem. Section 5.3 proves that two objects are equal by computing one expression in two ways. Section 5.4 follows a point under repeated application of a map until the sequence repeats. The operations of Section 5.3 and the permutations of Section 5.4 are the first examples of the structures that Algebraic Preliminaries studies, and this chapter proves facts that book can cite.
What you need. Logic and
Proof, Chapters 1–8, and Sets and
Functions, Chapters 1–4 and Section 3.6. From
Logic and Proof: induction (Logic and Proof, Axiom 4.2.1),
squares and order (Logic and Proof, Theorem 2.4.5)
and the catalogue of what a proof may not do (Logic and Proof, Example (What is not allowed)).
From Chapter 1: equality of sets and subsets (Definition 1.2.1,
Definition 1.2.2),
the operations on sets, families and the laws of set
algebra (Definition 1.3.1,
Definition 1.3.4,
Theorem 1.3.1),
the method of uniqueness (Example (Method: existence and uniqueness)),
and divisibility is transitive (Proposition 1.1.1);
functions, the empty function, equality of functions and
what is not a function (Definition 1.5.1,
Proposition 1.5.2,
Proposition 1.5.1,
Example (First functions),
Example (Relations that are not functions));
injective, surjective and bijective maps and composition
(Definition 1.5.3,
Definition 1.5.4,
Definition 1.5.5,
Definition 1.5.2,
Proposition 1.5.3,
Theorem 1.5.4);
inverses (Definition 1.6.2,
Proposition 1.6.3,
Theorem 1.6.4,
Exercise (B2: The inverse of a composite));
images and preimages (Definition 1.7.1,
Definition 1.7.2,
Theorem 1.7.3,
Theorem 1.7.4).
From Chapter 2: the integers are closed under the
operations (Proposition 2.1.2),
well-ordering and induction (Theorem 2.1.3,
Theorem 2.2.1),
the division algorithm (Theorem 2.2.3),
definition by recursion, powers and sums (Theorem 2.3.1,
Definition 2.3.2,
Definition 2.3.1),
and finite sets: equinumerous and finite sets, the
uniqueness of the number of elements and the pigeonhole
principle (Definition 2.5.1,
Definition 2.5.2,
Corollary 2.5.4,
Corollary 2.5.3),
subsets and disjoint unions of finite sets (Proposition 2.5.6,
Proposition 2.5.5),
and Hilbert’s hotel (Example (Hilbert’s Hotel)).
From Chapter 3: the default-value repair in the
find-the-error exercise on subsets of countable sets (Exercise (C2: Find the error)),
the axiom of choice and right inverses of surjections
(Axiom 3.2.1,
Theorem 3.2.2),
the diagonal (Theorem 3.3.1,
Theorem 3.3.2,
Exercise (C2: Permutations of the naturals)),
the Schröder–Bernstein theorem (Theorem 3.4.3),
and, from Section 3.6, subsets as 0–1 functions (Theorem 3.6.4,
Corollary 3.6.5).
From Chapter 4: relations and their properties (Example (Method: proving or disproving a property of a relation)),
equivalence relations, classes, partitions and quotient
sets (Definition 4.2.1,
Definition 4.2.2,
Definition 4.2.3,
Definition 4.2.4,
Theorem 4.2.1),
congruence (Definition 4.2.5,
Proposition 4.2.5,
Proposition 4.2.4),
the fibers of a function as classes (Example (The fibers of a function)),
the check that a definition does not depend on the
representative (Example (Method: checking that a definition on classes is well defined)),
the reals modulo the integers and equal-size subsets as
quotients (Example (The reals modulo the integers),
Example (Same size, revisited)),
a quotient built from fractions (Exercise (B1: Fractions as classes)),
and the least common multiple as an order example (Example (The supremum under divisibility is the least common multiple)).
The arithmetic and order of
Time. About 25 hours on the core track (all of A, one B and one C per section, the exit checks); about 35 hours for everything.
Roadmap
- Restriction, extension and gluing.
Restriction to a subset, extension, the inclusion map; a
function defined on the pieces of a cover is one
function exactly when the pieces agree on the overlaps;
indicator functions, with the set operations as
arithmetic of indicators and the subsets of
as the functions ; the method: define a function by gluing. - Fibers and the canonical factorization. The fibers of a function partition its domain, and every function is a quotient map, then a bijection onto its image, then an inclusion; a function constant on classes factors through the quotient in exactly one way; the method: define a function on a quotient.
- Binary operations. An operation on
a set, closure, associativity, commutativity, identities
and inverses, with the uniqueness proofs; the operations
on the set of functions
defined pointwise, and composition as an operation on ; an operation that is constant on classes descends to the quotient; the method: compute one expression in two ways. - Permutations and iteration. The permutations of a set and their composites and inverses, iterates by recursion, orbits as the classes of an equivalence relation, fixed points, the decomposition of a permutation of a finite set into disjoint cycles, the number of shuffles after which a deck returns, and the eventually periodic orbits of a self-map of a finite set; the method: follow an orbit.
Named moves
Each is a method box in the section named at the end of its line; later sections, and the later chapters of this volume, use the move again. The first four below are this chapter’s; the last bullet names three earlier moves reused here as tools: Chapter 4’s well-definedness, Chapter 1’s uniqueness and Chapter 2’s pigeonhole principle.
- Define a function by gluing (Example (Method: define a function by gluing)). Name the pieces, check that they cover the domain, check that the formulas agree on each overlap, and conclude by the gluing theorem; prove injectivity across pieces too, not only inside each piece. (Section 5.1)
- Define a function on a quotient (Example (Method: define a function on a quotient)).
Write the function on
that the rule computes from a representative, check that it is constant on classes, and conclude that the induced function exists, is unique, and agrees with the rule. (Section 5.2) - Compute one expression in two ways (Example (Method: compute one expression in two ways)). To equate two objects known only through equations, reduce both to one expression and cite a hypothesis at each step. (Section 5.3)
- Follow an orbit (Example (Method: follow an orbit)). List the forward orbit of a point, use the pigeonhole principle to find a repeat in a finite set, take the first repeat, and carry the repeat through the structure of the map. (Section 5.4)
- Well-definedness (Example (Method: checking that a definition on classes is well defined)), from Section 4.2, is step 2 of the quotient box, and uniqueness (Example (Method: existence and uniqueness)), from Section 1.4, is the shape of the uniqueness proofs in Section 5.3. The pigeonhole principle (Corollary 2.5.3) is step 2 of the orbit box.
Threads
- Same value, same class. Section 4.2 observed that the fibers of a function are the classes of an equivalence relation (Example (The fibers of a function)). Section 5.2 turns the observation into a factorization theorem (Theorem 5.2.2), and Section 5.3 runs the same well-definedness check on pairs of classes to define an operation on a quotient (Proposition 5.3.6).
- Subsets are functions. Section 1.5
introduced the indicator of a subset, Section 3.6 proved
that
is a bijection (Theorem 3.6.4), and Section 5.1 makes it a calculus: intersections and complements of subsets are products and differences of indicators, and the indicator of a union is (a sum when the sets are disjoint) (Proposition 5.1.3). - Inverses. Section 1.6 showed that a function has at most one inverse. Section 5.3 shows that an element has at most one inverse for any associative operation with an identity (Proposition 5.3.2), of which composition of bijections is the case, and Section 5.4 puts this to work on the set of permutations.
- Orbits. The classes of “can be reached from” are the orbits of a permutation (Theorem 5.4.3), and each is a cycle (Proposition 5.4.4). The same idea, without invertibility, gives tails and cycles for an arbitrary self-map of a finite set (Proposition 5.4.7).
Summary
A function can be restricted to a subset, extended,
and glued from functions on the pieces of a cover that
agree on the overlaps (Theorem 5.1.2).
Subsets of
What is open: Zorn’s lemma, in Chapter 6. The permutations of a set with composition are the first example of the structures that Algebraic Preliminaries, Chapter 2 will study. Next, Chapter 6 states and uses Zorn’s lemma.
Terms
- associative, commutative:
properties of an operation
with , respectively , for all (Definition 5.3.2). - binary operation on a set
: a function ; the operation is closed on a subset if for all (Definition 5.3.1). - cycle: the permutation
that sends , and fixes every other point; disjoint cycles have disjoint sets of entries (Definition 5.4.4). - extension, restriction:
extends if ; is the function with its domain cut down to (Definition 5.1.1). - fiber of a function
over : the set (Example (The fibers of a function), Proposition 5.2.1). - fixed point of
: a point with (Definition 5.4.3). - identity (left, right, two-sided) of an operation; inverse of an element and invertible element (Definition 5.3.2).
- inclusion map
, (Definition 5.1.1). - indicator function
of : on , off (Definition 5.1.2). - iterate
: the -th composite of a self-map , by recursion; for a permutation, also (Definition 5.4.2). - orbit of
under a permutation : ; its length is its number of elements (Proposition 5.4.4); the forward orbit of under any self-map is (Definition 5.4.3). - permutation of
: a bijection ; is the set of them (Definition 5.4.1). - symmetric difference
: the elements in exactly one of and (Section 5.1, before Proposition 5.1.3).