MATH 5345H --- Week 2: Relations and the real numbers; Cartesian products and finite sets

← Back to Lecture Notes

0.1  (§3) Relations

  • •

    Def. A relation on A is a subset C⊂A×A. Write x⁢C⁢y for (x,y)∈C; read “x is in the relation C to y”.

    Note. Contrast with §2. The graph of a function A→A is also a subset of A×A, but a very special one: each x occurs exactly once as a first coordinate. Delete that condition and what remains is a relation. Nothing else is required — any subset will do.

  • •

    Rmk. Two families of relations carry the weight in this course:

    • –

      equivalence relations — used from §22 onwards (quotients);

    • –

      order relations — used from §14 onwards (the order topology).

Equivalence relations and partitions

  • •

    Def. C is an equivalence relation on A if for all x,y,z∈A:

    1. (1)

      (reflexivity) x⁢C⁢x;

    2. (2)

      (symmetry) x⁢C⁢y⇒y⁢C⁢x;

    3. (3)

      (transitivity) x⁢C⁢y and y⁢C⁢z ⇒ x⁢C⁢z.

  • •

    Notation. Write x∼y. The three conditions become x∼x; x∼y⇒y∼x; x∼y and y∼z⇒x∼z.

  • •

    Caution. Symmetry and transitivity do not give reflexivity. The empty relation on a nonempty set satisfies (2) and (3) and fails (1).

    Note. The tempting bogus argument: “x∼y gives y∼x, and transitivity then gives x∼x.” It assumes there is some y with x∼y. Worth putting on the board and letting them find the hole; it is Munkres Exercise 3.3.

  • •

    Def. For x∈A the equivalence class of x is

    Ex={y∈A∣y∼x}.

    Nonempty, since x∈Ex by reflexivity.

  • •

    ★ Lem. Two equivalence classes are either disjoint or equal.

    Proof. Suppose z∈Ex∩Ex′, so z∼x and z∼x′; by symmetry and transitivity x∼x′. For any w∈Ex we get w∼x∼x′, hence w∈Ex′; so Ex⊂Ex′. The situation is symmetric in x and x′, so the reverse inclusion holds too.

  • •

    Def. A partition of A is a collection of disjoint nonempty subsets whose union is A.

  • •

    ★ Thm. Equivalence relations on A and partitions of A determine one another:

    • –

      ∼ gives the partition 𝒜={Ex∣x∈A} (disjoint by the lemma, nonempty by reflexivity, covering A since x∈Ex);

    • –

      a partition 𝒟 gives x∼y iff x,y lie in the same element of 𝒟;

    • –

      the two constructions are mutually inverse.

    Proof. For the second bullet: symmetry is immediate; reflexivity holds because 𝒟 covers A; transitivity holds because distinct elements of 𝒟 are disjoint, so the element containing x is determined by x. The equivalence classes of this relation are exactly the members of 𝒟. For uniqueness, if ∼1 and ∼2 give the same partition then for each x the classes Ex1 and Ex2 are both the unique member of 𝒟 containing x, hence equal; so ∼1⁣=⁣∼2.

  • •

    Ex. On ℝ2, declare p∼q when |p|=|q|. Classes: circles centred at the origin, together with {0}.

  • •

    Ex. On ℝ2, declare (x0,y0)∼(x1,y1) when y0=y1. Classes: the horizontal lines. More generally y0−x02=y1−x12 gives the vertical translates of a parabola.

  • •

    Caution. The collection of all lines in the plane is not a partition: two distinct lines can meet. Disjointness is the condition that fails.

    Note. Do one example where the classes are visibly a partition and one where the proposed pieces overlap. The picture does more than the axioms here. Point forward: in §22 the set of equivalence classes becomes a space, and this bookkeeping becomes the quotient topology.

Order relations

  • •

    Def. C is an order relation (simple, or linear, order) on A if:

    1. (1)

      (comparability) x≠y⇒x⁢C⁢y or y⁢C⁢x;

    2. (2)

      (nonreflexivity) x⁢C⁢x holds for no x;

    3. (3)

      (transitivity) x⁢C⁢y and y⁢C⁢z ⇒ x⁢C⁢z.

  • •

    Notation. Write x<y. Then x≤y means x<y or x=y; y>x means x<y.

  • •

    Rmk. (2) and (3) together forbid x<y and y<x at once: transitivity would force x<x. So exactly one of x<y, x=y, y<x holds.

  • •

    Ex. The usual order on ℝ. A less familiar one: x≺y iff x2<y2, or x2=y2 and x<y.

  • •

    Ex. Relations satisfying (2) and (3) but not (1) — strict partial orders — are common; inclusion of subsets is one. [Mk §11]

  • •

    Def. For a<b the open interval (a,b)={x∣a<x<b}. If it is empty, a is the immediate predecessor of b and b the immediate successor of a.

  • •

    Def. (A,<A) and (B,<B) have the same order type if some bijection f:A→B satisfies a1<Aa2⇒f⁢(a1)<Bf⁢(a2).

  • •

    Ex. (−1,1) and ℝ have the same order type, via

    f⁢(x)=x1−x2.
  • •

    Def. Dictionary order on A×B:

    a1×b1<a2×b2iffa1<Aa2, or ⁢a1=a2⁢and⁢b1<Bb2.
  • •

    Ex. ℤ+×[0,1) in the dictionary order has the order type of [0,∞); [0,1)×ℤ+ does not — in the latter every element has an immediate successor.

    Note. Same two factors, order of the factors swapped, genuinely different order types. Draw the two pictures: a line broken into intervals versus a stack of copies of ℤ+. This is the example that makes §14 worth doing.

The least upper bound property

  • •

    Def. Let A0⊂A. An element b∈A is an upper bound for A0 if x≤b for all x∈A0; A0 is bounded above if one exists. A smallest upper bound is the least upper bound, supA0. Dually: lower bound, bounded below, infA0.

  • •

    Caution. supA0 need not lie in A0. If it does, it is the largest element of A0.

  • •

    ★ Def. An ordered set A has the least upper bound property if every nonempty subset that is bounded above has a least upper bound. Greatest lower bound property: dually.

  • •

    Thm. The two properties are equivalent.

  • •

    Ex. (−1,1) has the least upper bound property; a subset bounded above in (−1,1) has a real supremum, which must lie in (−1,1).

  • •

    Ex. B=(−1,0)∪(0,1) does not. The set {−1/2⁢n∣n∈ℤ+} is bounded above by every element of (0,1), and has no least upper bound in B: the candidate 0 has been removed.

    Note. One deleted point destroys the property. Keep this example — an ordered set with this property and no immediate successors is a linear continuum, and that is exactly what makes the intermediate value theorem work in §24.

0.2  (§4) The Integers and the Real Numbers

  • •

    Rmk. §§1–3 were the logical foundations: sets, functions, relations. Now the mathematical foundation — ℤ and ℝ — stated as axioms rather than constructed.

    Note. Two routes are available: build ℝ from set theory with bare hands, or assume it and list what you assumed. The first is honest logic and costs weeks; the second costs one blackboard. Take the second, say why, and move on.

  • •

    Def. A binary operation on A is a function A×A→A. Written infix: x+y, x⋅y, x∘y rather than +(x,y).

Assumption — there is a set ℝ with +, ⋅, and an order < such that:

  • •

    Algebraic.

    1. (1)

      + and ⋅ are associative;

    2. (2)

      + and ⋅ are commutative;

    3. (3)

      there are 0≠1 with x+0=x and x⋅1=x for all x;

    4. (4)

      every x has an additive inverse; every x≠0 has a multiplicative inverse;

    5. (5)

      x⋅(y+z)=x⋅y+x⋅z.

  • •

    Mixed.

    1. (6)

      x>y⇒x+z>y+z;  x>y and z>0⇒x⋅z>y⋅z.

  • •

    ★ Order.

    1. (7)

      < has the least upper bound property [Mk §3];

    2. (8)

      x<y⇒ there is z with x<z<y.

  • •

    Notation. −x, x−y, 1/x, z/x are defined from (1)–(5); the usual laws of signs and of fractions are then theorems, not axioms. Likewise the laws of inequalities follow once (6) is adjoined.

  • •

    Def. A set with (1)–(5) is a field; with (6) as well, an ordered field; a set with an order satisfying (7) and (8) is a linear continuum.

    Note. Split the list on the board into the algebraist’s half and the topologist’s half. Only (7) and (8) survive into this course — they involve no arithmetic at all, and they are exactly what §24 will use.

  • •

    Rmk. (8) is redundant: given x<y, the element z=(x+y)/(1+1) lies strictly between. It is listed separately only because it, with (7), is what the topology depends on.

  • •

    Notation. x is positive if x>0, negative if x<0. ℝ+ = positive reals; ℝ¯+ = nonnegative reals.

Defining the integers

  • •

    Def. A⊂ℝ is inductive if 1∈A and x∈A⇒x+1∈A.

  • •

    ★ Def. ℤ+=⋂A∈𝒜A, the intersection of all inductive subsets of ℝ.

    Note. The smallest inductive set. Nothing is being constructed — the positive integers are being carved out of a set we have already assumed. Say this; otherwise the definition looks like a trick.

  • •

    Rmk. ℝ+ is inductive, so ℤ+⊂ℝ+: positive integers really are positive. Also {x∣x≥1} is inductive, so 1 is the smallest element of ℤ+.

  • •

    Thm. Basic properties:

    • –

      ℤ+ is inductive;

    • –

      (induction) an inductive A⊂ℤ+ equals ℤ+.

    Note. The principle of induction is not an extra axiom here. It is immediate from the definition: ℤ+ is contained in every inductive set.

  • •

    Def. ℤ=ℤ+∪{0}∪(−ℤ+);  ℚ={p/q∣p,q∈ℤ,q≠0}. Sums, differences and products of integers are integers; quotients need not be.

  • •

    Rmk. No integer lies strictly between n and n+1.

  • •

    Notation. Sn={1,…,n−1}, the section of ℤ+ below n; so S1=∅ and Sn+1={1,…,n}.

Two alternative forms of induction

  • •

    ★ Thm. (Well-ordering) Every nonempty subset of ℤ+ has a smallest element.

    Proof. First show by induction on n that every nonempty subset of Sn+1={1,…,n} has a smallest element. For n=1 the only such subset is {1}. For the step, let C⊂{1,…,n+1} be nonempty: if C={n+1} we are done; otherwise C∩{1,…,n} is nonempty and its smallest element is smallest in C. Now take any nonempty D⊂ℤ+, pick n∈D, and apply this to D∩{1,…,n}, which is nonempty; its smallest element is smallest in D.

  • •

    Thm. (Strong induction) If A⊂ℤ+ and, for every n, Sn⊂A implies n∈A, then A=ℤ+.

    Proof. If not, well-ordering gives a smallest n∉A. Every positive integer below n lies in A, i.e. Sn⊂A, so the hypothesis forces n∈A — contradiction.

    Note. Note the direction of use: strong induction is proved from well-ordering, which is proved from ordinary induction. Worth drawing the arrow; students often assume the three are unrelated.

Where the least upper bound axiom is actually needed

  • •

    Rmk. Everything above used only (1)–(6). Axiom (7) has not yet been touched.

  • •

    ★ Thm. (Archimedean ordering property) ℤ+ has no upper bound in ℝ.

    Proof. Suppose it had one. By (7) it has a least upper bound b. Then b−1 is not an upper bound, so n>b−1 for some n∈ℤ+; hence n+1>b with n+1∈ℤ+, contradicting that b bounds ℤ+.

  • •

    Rmk. Other consequences of (7): the greatest lower bound property; existence of x for every x>0; and hence the existence of irrational numbers, e.g. 2∉ℚ.

    Note. This is the answer to “why assume something as strange as (7)?” Without it the positive integers could be bounded, square roots need not exist, and ℝ could be ℚ. Three sentences here buy a lot of goodwill.

  • •

    Caution. The familiar decimal symbols 2=1+1, 3=2+1, … do name the positive integers uniquely, but that is a fact we never need and will not prove.

0.3  (§5) Cartesian products

  • •

    Def. Indexing function for 𝒜: a surjection f:J→𝒜; write Aα=f⁢(α), family {Aα}α∈J. Not assumed injective: Aα=Aβ is allowed for α≠β.

  • •

    Notation. ⋂α∈JAα, ⋃α∈JAα; finite case A1∩⋯∩An.

  • •

    Def. n-tuple = function x:{1,…,n}→X, written (x1,…,xn); ∏i=1nAi;   Xn.

  • •

    Def. sequence = function x:ℕ→X, written (xi)i=1∞ (also called an ω-tuple);  ∏i=1∞Ai=A1×A2×⋯;  Xω.

  • •

    ★ Def. General product. J-tuple = function x:J→X, xα=x⁢(α).

    ∏α∈JAα={x:J→⋃α∈JAα|x(α)∈Aα∀α},XJ=∏α∈JX.

    Note. Stress: a point of an infinite product is a function. Everything about product topologies later reads more easily from this description.

0.4  (§6) Finite sets

  • •

    Def. Section of ℕ: {1,2,…,n}; for n=0 this is ∅.

  • •

    Lem. {1,…,m}↪{1,…,n} injective ⇒m≤n.

    Proof. Induction on n: delete f⁢(m)=k, use a bijection {1,…,n}−{k}→{1,…,n−1}.

  • •

    Cor. Hence there is no injective {1,…,m}→{1,…,n} when m>n. (Pigeonhole.)

  • •

    Prop. A bijection {1,…,m}→{1,…,n} forces m=n.

    Proof. Apply the lemma to f and to f−1.

  • •

    Cor. Hence there is no bijection {1,…,m}→{1,…,n} when m≠n.

  • •

    Def. A is finite of cardinality n if there is a bijection A→{1,…,n}. Cardinality is well defined. Ex. ∅ has cardinality 0; singletons have cardinality 1.

  • •

    Lem. A⊂{1,…,n} is finite, of cardinality ≤n; if A⊊{1,…,n} the cardinality is <n.

  • •

    ★ Thm. A finite set admits no bijection with a proper subset of itself.

  • •

    Cor. ℕ is not finite: f⁢(x)=x+1 is a bijection of ℕ with the proper subset ℕ−{1}.

  • •

    Cor. Any subset B of a finite set A is finite; if B⊊A then card⁢(B)<card⁢(A).

  • •

    Prop. TFAE: (1) A finite; (2) some {1,…,n}↠A; (3) some A↪{1,…,n}.

    Proof. (2)⇒(3): send x to min⁡g−1⁢(x).

  • •

    Prop. Finite unions and finite products of finite sets are finite.

0.5  (§7) Countable and uncountable sets

  • •

    Def. A is infinite if it is not finite. It is countably infinite if there is a bijection A→ℕ; countable if it is finite or countably infinite; uncountable otherwise.

    Note. Sections of ℕ are the model for finite; ℕ itself is the model for countably infinite. Same sentence, one word changed.

  • •

    Ex. ℤ is countably infinite: f⁢(n)=2⁢n for n>0 and f⁢(n)=−2⁢n+1 for n≤0 bijects ℤ→ℕ.

  • •

    Ex. ℕ×ℕ is countably infinite — count along the anti-diagonals. A clean proof is below; the picture is not the proof.

The countability criterion

  • •

    ★ Thm. For B≠∅, TFAE:

    1. (1)

      B is countable;

    2. (2)

      there is a surjection ℕ↠B;

    3. (3)

      there is an injection B↪ℕ.

    Proof. (1)⇒(2): if B is countably infinite this is the definition; if B is finite, extend a bijection {1,…,n}→B to all of ℕ by sending everything above n to h⁢(1). (2)⇒(3): g⁢(b)=min⁡f−1⁢({b}), as in §6. (3)⇒(1): restricting the range, B bijects with a subset of ℕ, so it is enough to know every subset of ℕ is countable — the lemma below.

    Note. This is the workhorse. After this, nothing is proved by exhibiting a bijection; everything is proved by exhibiting a surjection from ℕ or an injection into it. Say so explicitly.

  • •

    ★ Lem. An infinite subset C⊂ℕ is countably infinite.

    Proof. Define h:ℕ→C by h⁢(1)=min⁡C and

    h⁢(n)=min⁡[C−h⁢({1,…,n−1})].

    The set being minimised is nonempty — otherwise h would surject {1,…,n−1} onto C, making C finite — so h is defined, using well-ordering at each step. Injective: for m<n, h⁢(m)∈h⁢({1,…,n−1}) while h⁢(n)∉ it. Surjective: given c∈C, the image h⁢(ℕ) is infinite, hence not contained in {1,…,c}, so h⁢(n)>c for some n; take m least with h⁢(m)>c. Then h⁢(i)<c for i<m, so c∉h⁢({1,…,m−1}), whence h⁢(m)≤c. So h⁢(m)=c.

  • •

    Caution. The definition of h above is not a proof by induction. Induction proves a statement about a function already defined; here the function is being brought into existence. What licenses it is the principle of recursive definition: if a formula gives h⁢(1) uniquely, and for i>1 gives h⁢(i) uniquely from the values h⁢(1),…,h⁢(i−1), then it determines a unique h:ℕ→A. [Mk §8]

    Note. Not all recursions are legitimate: “h⁢(i)=min⁡[C−h⁢({1,…,i+1})]” asserts that h⁢(i) is not in a set it belongs to. Same shape as the barber who shaves exactly the men who do not shave themselves. Worth one minute — it is the difference between a definition and a wish.

Closure properties

  • •

    Cor. A subset of a countable set is countable.

    Proof. Restrict the injection into ℕ.

  • •

    ★ Cor. ℕ×ℕ is countably infinite.

    Proof. f⁢(n,m)=2n⁢3m is injective: 2n⁢3m=2p⁢3q with n<p gives 3m=2p−n⁢3q, and the left side is odd, so n=p; then 3m=3q forces m=q. Apply the criterion.

    Note. The anti-diagonal bijection is prettier but fiddly to verify. Unique factorisation makes it a one-liner — and it generalises immediately to ℕk.

  • •

    Ex. ℚ+ is countably infinite: g⁢(n,m)=m/n surjects ℕ×ℕ→ℚ+, and ℚ+⊃ℕ is infinite. Same argument for ℚ.

    Note. The rationals are dense in ℝ and yet no more numerous than ℕ. Students find this the first genuinely surprising statement of the course; let it land before moving on.

  • •

    ★ Thm. A countable union of countable sets is countable.

    Proof. Index the family by J⊂ℕ and choose surjections fn:ℕ→An and g:ℕ→J. Then h⁢(k,m)=fg⁢(k)⁢(m) surjects ℕ×ℕ onto ⋃n∈JAn, and ℕ×ℕ↔ℕ.

  • •

    Caution. The word choose there is doing real work: infinitely many fn are selected at once. This is an appeal to the axiom of choice. [Mk §9]

  • •

    Thm. A finite product of countable sets is countable.

    Proof. For two factors, h⁢(n,m)=(f⁢(n),g⁢(m)) surjects ℕ×ℕ→A×B; then induct using A1×⋯×An↔(A1×⋯×An−1)×An.

  • •

    Caution. Finite is essential — see the next theorem.

An uncountable set

  • •

    ★ Thm. Let X={0,1}. Then Xω is uncountable.

    Proof. (Cantor diagonal.) Let g:ℕ→Xω be any function and write g⁢(n)=(xn⁢1,xn⁢2,xn⁢3,…). Define y=(y1,y2,…) by

    yn={0if ⁢xn⁢n=1,1if ⁢xn⁢n=0.

    Then y∈Xω and y≠g⁢(n) for every n, since the two differ in coordinate n. So g is not surjective, and by the criterion Xω is not countable.

    Note. Draw the array and circle the diagonal. Emphasise that no cleverness in choosing g can help — the argument defeats every g at once. That uniformity is the point, and it is the same move that will reappear for the uncountability of ℝ.

  • •

    Rmk. So countable products of countable sets need not be countable, in sharp contrast to finite products. [Mk §19] — the same contrast reappears for product topologies, where the box and product topologies agree on finite products and diverge on infinite ones.

  • •

    Rmk. ℝ is uncountable, by essentially the same diagonal argument applied to decimal expansions.