This note collects the definitions used in Tool 02. It relies on the logic of the previous note: each definition below is a statement built from connectives and quantifiers.
Sets
We write x∈A when x is an element of the set A, and x∈/A otherwise.
- A⊆B (A is a subset of B) means ∀x(x∈A→x∈B).
- A=B means that A and B have the same elements, that is, A⊆B and B⊆A.
- The empty set ∅ has no elements. It is a subset of every set, vacuously.
- When all sets under discussion lie inside a fixed universe U, the complement of A is Ac={x∈U:x∈/A}.
The set operations are defined by connectives applied to membership:
| Set | Its elements x satisfy |
|---|
| A∪B (union) | x∈A∨x∈B |
| A∩B (intersection) | x∈A∧x∈B |
| A∖B (difference) | x∈A∧x∈/B |
| A△B (symmetric difference) | x lies in exactly one of A and B |
| Ac (complement) | x∈U∧x∈/A |
Equivalently, A△B=(A∖B)∪(B∖A).
Because each operation is a connective in disguise, set identities mirror logical equivalences. For example, De Morgan’s laws become (A∪B)c=Ac∩Bc and (A∩B)c=Ac∪Bc.
Venn regions. With three sets A, B, C inside U, every element of U lies in exactly one of 23=8 regions, according to whether or not it is in A, in B and in C. Whether an element belongs to a set built from A, B and C depends only on its region. So two such expressions are equal for every choice of A, B, C exactly when they shade the same regions. The regions play the role of the rows of a truth table. If the two sides differ on a region, any element placed in that region is a counterexample.
Ordered pairs and Cartesian products
An ordered pair (a,b) records two objects in order: (a,b)=(c,d) exactly when a=c and b=d. In particular, (a,b)=(b,a) when a=b.
The Cartesian product of A and B is
A×B={(a,b):a∈A, b∈B}.
For finite sets, ∣A×B∣=∣A∣⋅∣B∣. In general A×B=B×A.
Power sets
The power set of A is the set of all subsets of A:
P(A)={X:X⊆A}.
Its elements are sets. Both ∅ and A belong to P(A). For finite A, ∣P(A)∣=2∣A∣, since a subset is fixed by deciding, element by element, whether to include it.
Keep two distinctions in view. First, the element a and the set {a} are different objects, linked by membership and inclusion: a∈A exactly when {a}⊆A, that is, when {a}∈P(A). Second, ∅⊆A always holds, while ∅∈A usually does not.
Relations
A relation on a set S is a subset R⊆S×S. We write (x,y)∈R, or xRy. A finite relation can be drawn as a directed graph: an arrow from x to y when (x,y)∈R, and a loop at x when (x,x)∈R.
| Property | Definition | In the graph |
|---|
| reflexive | ∀x:(x,x)∈R | every node has a loop |
| symmetric | ∀x∀y:(x,y)∈R→(y,x)∈R | every arrow has a reverse arrow |
| antisymmetric | ∀x∀y:(x,y)∈R∧(y,x)∈R→x=y | no two distinct nodes are joined in both directions |
| transitive | ∀x∀y∀z:(x,y)∈R∧(y,z)∈R→(x,z)∈R | every two-step path has a direct arrow |
| complete | ∀x∀y:(x,y)∈R∨(y,x)∈R | every pair of nodes, and every node with itself, is joined in at least one direction |
Some texts call a complete relation total or connected; complete is the term used in economics.
Two remarks help with the exercises.
- Symmetric and antisymmetric are not opposites. A relation can have both properties or neither.
- Symmetry, antisymmetry and transitivity all have the form ∀… (hypothesis→conclusion). Such a statement can hold vacuously: if no choice of the variables satisfies the hypothesis, there is nothing to check. The empty relation, for example, is symmetric, antisymmetric and transitive. This does not make the properties automatic: each one fails as soon as a single choice of the variables satisfies its hypothesis but not its conclusion.
Named classes of relations.
- An equivalence relation is reflexive, symmetric and transitive. The equivalence class of x is [x]={y∈S:(x,y)∈R}. The distinct classes partition S: every element of S lies in exactly one class.
- A preorder is reflexive and transitive. A partial order is a preorder that is also antisymmetric. A total order is a partial order that is also complete.
- In economics, a preference relation ≿ on a set of bundles is called rational if it is complete and transitive. Here x≿y reads “x is at least as good as y”. Strict preference x≻y means x≿y and not y≿x, and indifference x∼y means both x≿y and y≿x.
Functions
A function f:A→B assigns to each x∈A exactly one element f(x)∈B. The set A is the domain and B the codomain. In an arrow diagram, exactly one arrow leaves each element of A; an element of B may receive any number of arrows, including none.
Images and preimages. For C⊆A and D⊆B:
f(C)={f(x):x∈C}⊆B,f−1(D)={x∈A:f(x)∈D}⊆A.
f(C) is the image of C, and f(A) is the range of f. f−1(D) is the preimage of D. The preimage is defined for every function: the notation does not assume that f has an inverse.
Injective, surjective, bijective.
- f is injective (one-to-one) if ∀x,x′∈A:f(x)=f(x′)→x=x′. In the diagram, no element of B receives more than one arrow.
- f is surjective (onto) if ∀y∈B∃x∈A:f(x)=y, that is, f(A)=B. Every element of B receives at least one arrow.
- f is bijective if it is both. Every element of B receives exactly one arrow.
Composition. For f:A→B and g:B→C, the composite g∘f:A→C is defined by (g∘f)(x)=g(f(x)). For f:A→A, the composite f∘f is defined, and f∘f=f means f(f(x))=f(x) for every x∈A. Two special functions on A are the identity, f(x)=x for every x, and the constant functions, f(x)=c for every x and some fixed c.
The pigeonhole principle. If m objects are placed in n boxes and m>n, then some box contains at least two objects.
Test these definitions in Tool 02. Some of its exercises ask for a relation or function with a given list of properties, and some of those lists cannot be met. Showing why is part of the exercise.