Courses / Philosophy I
Logic

Relations, Functions and Power Sets

Philosophy I 375 words Free to read

Structure From Bare Collections

Sets alone have no structure, but structure can be built from them.

The ordered pair (a,b)(a, b) is the first step, and unlike a set it is sensitive to order: (1,2)(2,1)(1, 2) \neq (2, 1). The Cartesian product A×BA \times B is the set of all ordered pairs with first element from AA and second from BB, so A×B=AB|A \times B| = |A| \cdot |B|.

A relation from AA to BB is any subset of A×BA \times B, nothing more. Relations on a single set are classified by three properties:

PropertyHolds when
ReflexiveEvery element relates to itself
SymmetricIf aa relates to bb then bb relates to aa
TransitiveIf aa to bb and bb to cc then aa to cc

A relation with all three is an equivalence relation, and it partitions the set into disjoint equivalence classes. "Has the same birthday as" is an equivalence relation; "is taller than" is transitive but neither reflexive nor symmetric.

A function from AA to BB is a relation assigning exactly one element of BB to each element of AA. It is injective if distinct inputs give distinct outputs, surjective if every element of BB is hit, and bijective if both.

Two counting results carry surprising weight. The power set P(A)\mathcal{P}(A) is the set of all subsets of AA, and

P(A)=2A|\mathcal{P}(A)| = 2^{|A|}

because each element is independently in or out. A 3-element set has 8 subsets. And the number of functions from AA to BB is BA|B|^{|A|}, since each of the A|A| inputs independently gets one of B|B| outputs.

Cantor's theorem says P(A)>A|\mathcal{P}(A)| > |A| for every set, finite or infinite. Since 2n>n2^n > n always, there is no largest set and no largest infinity, the power set of any infinity is a strictly bigger one. This is where set theory stops being bookkeeping and starts producing results nobody expected.

Common pitfall: thinking every relation is a function. A function must assign exactly one output to each input, no more, no fewer. "Is a parent of" relates one person to several children, so it is a perfectly good relation and not a function at all.
Relations, Functions and Power Sets

Practise this lesson

Try the questions below, free, answers included. The full set, with its interactive scenes, is in the Tryals app.

11practice questions
2interactive scenes

Logic