Class Description

Textbook: The Tools of Mathematical Reasoning

Real Numbers, Rational Numbers, and Integers

  • = “for all”, “for each”
  • = “for some”, “there exists”
  • R = Set of all Real Numbers

Properties of the Real Numbers

  1. x,y,zR     (x+y)+z=x+(y+z)
  2. xRx+y=y+x
  3. 0R such that xR,x+0=x
  4. xR(x)R         x+(x)=0
  5. x,y,zR(xy)z=x(yz) Associative
  6. x,yR,xy=yx Commutative
  7. 1R such that xR,x1=x
  8. For any nonzero real number x, 1xR such that x1x=1
  9. x,y,zR,x(y+z)=xy+xz
  10. x,y,zR(y+z)x=yx+zx
  11. The sum or product of any two real numbers is also a real number.

Proposition 1

Proposition

Let xR, then x0=0

Proof

By property 3, 0+0=0.
Multiply both sides by x to get x(0+0)=x0
x0+x0=x0

Property 4 (x0) such that x0+(x0)=0
(x0+x0)+(x0)=(x0)+(x0)
x0+(x0+(x0))=0
x0+0=0
x0=0

Proposition 2

Proposition

Let a,bR. Assume that ab=0. Then a=0 or b=0

Proof

Either a=0 or a0

If a=0, then there is nothing to prove. So we shall suppose a0, and try to prove b=0

ab=0 and a0
By property 8 there is a real number 1a so that 1a=1
1a(ab)=1a0
(1aa)b=1a0
1b=0
Hence b=0. So a=0 or b=0.

Set of Integers

R has a subset called the set of integers, denoted by Z
Z={0,±1,±2,±3,±4,±5}

  • Z is closed under addition and multiplication
  • If xZ, and yZ, then x+yZ and xyZ

Abbreviations

In R, we can abbreviate a1b by ab if b0. a+(b) by ab.

Set of Rational Numbers

Q={ab:a,b,Z and b0}

  • Q is a subset of R

Question

  • Suppose x,yQ. Is it true that x+yQ?

Answer

Since xQ, there are integers a and b (b0) so that x=ab. Similarly there are integers c and d (d0) so that y=cd.
xy=ab+cd=adbd+bcbd
=ad+bcbd

  • b0 and d0, so by Prop 2, bd0.

  • bZ and dZ, so bdZ by closure.

  • aZ and dZ, so adZ by closure.

  • bZ and cZ, so bcZ by closure.

  • One more use of closure shows that ad+bcZ

  • Hence x+y is the ratio of two integers, with non-zero denominator.

  • Thus x+yQ. QED

  • Let x,yQ. Is it true that xyQ? Answer: Yes.

6.1: Division Algorithm and Well Ordering Principle

Let N={0,1,2,3,4,}

Well Ordering Principle

Every nonempty subset of sequence of non-negative integers has a least element. Example: N has a least element.

Division Algorithm

Statement

Let aZ,bZ and let b>0

There is a unique pair of integers q and r such that a=bq+r,    0r<b

q is the quotient and r is the remainder

Proof

Existence

First we need to prove that q and r exist such that a=bq+r    0r<b. After that we’ll prove that there is only one pair q and r that is unique for a certain a and b.

Define a set, S, as follows

S={abk:kZ,abkN}

In order to use the Well Ordering Principle (WOP), we need to show that S.

k:k<ab,kZ
There is at least one integer less than ab since b>0. If a<b, then the least integer would be 0.

k<ababk>ab(ab)
abk>aa
abk>0

Since kZ and a,bZ, by closure, abkZ. Since abk>0, abkS. Since SN, by the WOP, S has a least element.

Now we need to prove that 0r<b.

Let r denote the least element of S. Then since rS,qZ:r=abq

Since rS, we know that rN={0,1,2,3,}, so r0.

Now we just need to prove the second part of the inequality, r<b. Use a Proof by contradiction and assume the opposite: rb.

rbrb0
(abq)b0
rb=ab(q+1)0

If rb0, then rbS. If that were true, rb would be the least element in S, since bZ,b>0 and r0. This is a contradiction since r is the least element in S, and not rb.

Thus 0r<b.

Uniqueness

Prove that r and q are unique solutions to a=bq+r.

Define r and q
r=bq+t,    0r<b
Our goal is to show that r=r and q=q.

bq+r=a=bq+r
rr=b(qq)

This means that b|(rr), so b is a multiple of rr.

Also since 0r<b and 0r<b, b<rr<b.
b<rr<b
b<b(qq)<b
1<qq<1
Since qqZ, qq=0. So q=q.
bq+r=bq+r
r=r

Using the Division Algorithm

The Division Algorithm can reduce proofs about integers to finitely many cases.

We say that a|b, a divides b, if b is a multiple of a. q:b=aq+0,  qZ

Example

Prove that the square of any integer can be expressed in one of the following forms: 4k+1 or 4k+0

nZ,n=(4q+r),r{0,1,2,3}

Case r = 0

n2=(4q+0)2=16q2
n2=4(4q2)
n2=4k+0,      k=4q2Z by closure

Case r = 1

n2=(4q+1)2=16q2+8q+1
n2=4(4q2+2q)+1
n2=4k+1,      k=4q2+2qZ by closure

Case r = 2

n2=(4q+2)2=16q2+16q+4
n2=4(4q2+4q+1)+0
n2=4k+0,      k=4q2+4q+1Z by closure

Case r = 3

n2=(4q+3)2=16q2+24q+9
n2=16q2+24q+2(4)+1
n2=4(4q2+6q+2)+1
n2=4k+1,      k=4q2+6q+2Z by closure

Thus since n2=4k+1 or n2=4k+0 for all values of r, we have proven that the square of any integer can be expressed in just those forms.

1.1: Language of Proofs

Proposition

  • Proposition: Sentence which has exactly one truth value
    • Not a proposition:
      • 45 (no verb in sentence)
      • 18|n (The truth of falsity depends on the value of n)
  • Predicate: A sentence whose truth value depends on values assigned to free variables
  • Propositions can be combined with logical operators like AND, OR, NOT, IF, THEN, IFF

Implication

PQ

  • P implies Q

  • If P then Q

  • P is sufficient for Q

  • P only if Q

  • Q when P

  • Q if P

  • P is called the hypothesis of the implication

  • Q is called the conclusion

pqpqTTTTFFFTTFFT
pq¬pq

  • Converse: QP

  • Contrapositive: ¬Q¬P

    • Has the same truth table as the regular PQ
  • Example

    • Theorem:
      If n=1an converges, then limnan=0

    • Contrapositive of Theorem:
      If limnan0, then n=1an diverges (Divergence Test)

    • Converse:
      If limnan=0, then n=1an converges (Not True)

DeMorgan’s Laws & Formulas

Let P and Q be propositions

  1. ¬(PQ) is logically equivalent to (¬P)(¬Q)
  2. ¬(PQ) is logically equivalent to (¬P)(¬Q)

Proof of 1.
pqpq¬(pq)TTTFTFTFFTTFFFFT

pq¬p¬q(¬p)(¬q)TTFFFTFFTFFTTFFFFTTT

Quantifiers

  • Universal Quantifier: = “for any”, “for all”, or “for each”
  • Existential Quantifier: = “there exists”, “for some”
    • ! = “there is a unique” or “there is exactly one”
  • Examples
    1. Some positive integers are both perfect squares and perfect cubes
    • xZ+|(yZ|x=y2)(wZ|x=w3)

Negating Quantifiers

¬(xP(x))x¬P(x)
¬(xP(x))x¬P(x)
¬(xP(x))  x  P(x)

Example

xR kR (x>0x=k2)
The negation of the above would be
¬(xR kR (x>0x=k2))
xR ¬(kR (x>0x=k2))
xR kR ¬(x>0x=k2))
Use Demorgan’s laws
xR kR ¬(x>0)¬(x=k2)

Since PQ¬PQ
xR kR (x>0xk2)

1.2: Direct Proofs

We can assume P to be true and show that Q is true.

2.1: More on Direct Proofs

Basic Properties of Real Numbers

For all real numbers a, b, and c

  1. Closure under addition and multiplication: a+bR,abR
  2. Associative Properties: (a+b)+c=a+(b+c) and (ab)c=a(bc)
  3. Commutative Properties: a+b=b+a and ab=ba
  4. Distributive Properties: a(b+c)=ab+ac
  5. Identities: 01,a+0=a,a1=a,a0=0
  6. Additive Inverses: !a=1a:a+(a)=0
  7. Subtraction: ba is defined to equal b+(a)
  8. Multiplicative Inverses: a0!a1=1a:aa1=a1a=1
  9. Division: a0ba=b1a

Additional Axioms for Real Numbers

  1. a,bR exactly one of a<b, a=b, or a>b is true
  2. a,b,cR   (A<b)(a+c<b+c)
  3. a,b,cR  (a<bc>0)ac<bc
  4. a,b,cR  (a<bc<0)ac>bc
  5. a,b,cR  (a<bb<c)a<c (Transitive)

Counterexamples

The negation of xS,P(x) is xS,¬P(x).
To disprove xS,P(x), we need only find one example of an x for which P(x) is false.

Prime Numbers

Definition: nZ+ is prime the following is true:
n1(xZ+x|n)(x=1x=n)

Double Implications

  • To prove PQ, you need to prove both PQ and QP

Uniqueness

To prove a property is unique for a certain object, assume that there are two objects with this property x and y and show that they are the same.

Example

Prove the following statement:
xRyRx+y=y+x=y
We will prove that this additive property is unique to just one number.

  1. Let aR be such that a+w=w+a=w,  wR
  2. Let bR be such that b+w=w+b=w,  wR
  • a+b=b by line 1
  • a+b=a by line 2
  • Thus we can conclude that a=b and that only one unique number has the additive property we were interested in

2.2: Indirect Proofs

Note: means therefore and means because

Proof by Contradiction

To prove statement P is to assume ¬P and then derive a statement of the form Q(¬Q). If ¬P implies a falsehood, then ¬(¬P), which means P itself is true.

Proof by Contrapositive

¬Q¬PPQ

2.3: Two Important Theorems

Theorem:  2  is irrational

Let 2 denote the positive real number y satisfying y2=2.

Suppose BWOC (By way of contradiction),
2Qa,bN:2=ab

If we cancel common factors so no integer divides both a and b except ±1, we can say 2=pq, where p,qZ and they share no common factors.

2=p2q22q2=p2
2|p22|p, p=2t, tZ
p is even since p2 is even.

2q2=(2t)2
2q2=4t2
q2=2t22|q22|q

2|p2|q, contradicting our choice of p and q sharing no common factors.

Thus 2Q

Greatest Common Divisor (GCD)

Let a,bZ and a0b0.
S={xZ:x|ax|b}
S is the set of common integer divisors of a and b

a,bZ:1SS
If |k|>max(a,b), then kakb, so kS
So S is finite and S has a maximum element.

Define GCD as the following:
gcd(a,b)=max(S)

If a=b=0, we define gcd(0,0)=0

Bézout’s Lemma

Lemma: Let a,bZ. Then m,nZ:gcd(a,b)=am+bn

Proof

Case 1
a=b=0
gcd(0,0)=0=a0+b0
Case 2
a=0b0
gcd(0,b)=|b|
Case 3
a0b=0

  • Same as Case 2

Case 4
T={xN:u,vZ:x=au+bv}
a2+b2=a(a)+b(b)>0
a2+b2T
TTNd=min(T)

  • By the Well Ordering Principle (WOP), the set T has a minimum element.

  • Now we show that d|a
    a=dq+r   q,rZ,   0r<d
    dTs,tZ:d=as+bt

  • If r0, then rN and r=adq=a(as+bt)q=a(1qs)+b(tq), so that rT

  • But r<d, so this would contradict that d=min(T), since r<d. Hence r=0 must be true and d|a. Similarly d|b

  • We’ve shown that d|ad|b. Now we show that d is the greatest of the common divisors of a and b. Let c be another common divisor of b and a
    cZ:c|ac|b
    w,zZ:q=cz, b=cw
    d=as+bt=(cz)s+(cw)t

  • Since d>0, this means cd since c is a divisor of d. So d is the greatest common divisor of a and b

Euclid’s Lemma

Let a,bZ and let p be a prime number. If p|ab, then p|ap|b

Proof

If p|a, then we are done, so suppose pa and try to show p|b.
If pa and p is prime, then gcd(a,p)=1
By Bézout’s Theorem, m,nZ so that am+pn=1
xZ:px=ab
b(am+pn)=1b
(ba)m+pnb=b
(px)m+pnb=b
p(xm+nb)=b
xm+nbZ, so p|b, as desired.

2.4: Statements Including Mixed Quantifiers

To prove a statement of the form xS  yT  P(x,y), we let x be an arbitrary element of S, and we try to find yT for which P(x,y) is true.

Example

Let R+ = set of positive real numbers.
Prove that ϵR+  δR+ such that |4x12|<ϵ, whenever 0<|x3|<δ.

Proof

Let ϵR+ be given.
Choose δ=ϵ4. Now, if 0<|x3|<ϵ4, then |4x12|=4|x3|<4ϵ4=ϵ
So that |4x12<ϵ as desired.

To prove a statement of the form xS  yT  P(x,y), we carefully choose xS and try to show that yT, P(x,y) holds.

Example

Prove that xZ such that yR, xyZ.

Proof

Put x=0Z, yR,xy=0y=0Z, as desired.

Changing the order of mixed quantifiers changes the meaning of the statement.

Epsilon Delta Definition of Limit

We say limxcf(x)=L if ϵR+δR+ such that (0<|xc|<δ)(|f(x)L|)<ϵ

Triangle Inequality

x,yR,|x+y||x|+|y|

Proposition

Suppose limxcf(x)=L and limxcg(x)=M=L, then limxc(f(x)+g(x))=limxcf(x)+limxcg(x)

Proof

We want ϵR+δR+, so that (f+g)(x)(L+M)<ϵ whenever 0<|xc<δ. We let ϵR+ be given.

Since limxcf(x)=L, δR, so that f(x)L<ϵ2 whenever 0<|xc|<δ1
Since limxcf(x)=M, δR, so that f(x)M<ϵ2 whenever 0<|xc|<δ2

Let δ=min(δ1,δ2
(f(x)+g(x))(L+M)∣=|f(x)+g(x)LM|
|(f(x)L)+(g(x)M)||f(x)L|+|g(x)M|<ϵ2+ϵ2=ϵ

3.1: Mathematical Induction

Weak Induction Law

Suppose SN has the following 2 properties

  1. 1S
  2. nSn+1S

Then S=N

Proof

Let T = set of positive integers NOT in S
Suppose BWOC, that T
TN, so by the Well-Ordering Principle, T has a least element, m.
By 1. m1, so m>1. Then m1N
m1<m, and m is the least element of T, so m1S
By 2. (m1)+1S, i.e. mS, but this contradicts our choice of m.
So we must have that T is empty, and S=N

Example 1

  • Prove that the following is true:
    i=1nn(n+1)2  nN

  • Base Case: n=1
    n=11i=1=1(1+1)2=22=1

    so the result is true when n = 1

  • Inductive Hypothesis: Suppose that i=1mi=m(m+1)2 for some mN

    • We will prove that i=1m+1i=(m+1)((m+1)+1)2=(m+1)(m+2)2

    i=1m+1=(i=1mi)+(m+1)=m(m+1)2+(m+1)=(m+1)(m+2)2

    • So by induction i=1ni=n(n+1)2  nN

Example 2

  • Prove that for all integers n with n4, we have 2n<n!

  • We proceed by induction

  • Base Case: n=4
    24=16
    4!=1234=24

  • Inductive Hypothesis: Suppose that 2m<m! for some integer m4.

  • We show that 2m+1<(m+1)!
    2m+1=2m21<m!2<since m4, so 2<m+1m!(m+1)=(m+1)!

  • So by induction, 2n<n! for all integers n4

Strong Induction Law

Let S be a subset of N, and suppose S has the following true properties:

  1. 1S
  2. ({1,2,3,4n}S)n+1S
    Then S=N

Proof

Let T={kN:{1,2,3,4k}S}
(If kT, then kS, i.e. TS)
1S, so {1}S, and so 1T
Now if kT, then {1,2,3k}S
So by 2. k+1S
But then {1,2,3k,(k+1)}S, so k+1T
So 1T and (kT)(k+1T). So by Weak Induction, T=N. It follows that S=N

The difference between Weak Induction and Strong Induction is that Weak Induction only assumes P(n) to be true and then shows that P(n+1). However, Strong Induction has a “stronger” assumption by assuming that P is true for all elements before n. Strong Induction assumes that P(1),P(2),P(n) are all true. Then Strong Induction shows that P(n+1) is true based on this assumption.

Proposition

Let nN, n1. Then n is a product of prime numbers.

Proof

  • Base Case: n=2
    2 is prime, so 2 is its own prime factorization.

  • Inductive Hypothesis: Suppose the numbers 2,3,4,5,6m are all products of primes. We must show that m+1 is also a product of primes.

  • Since m+1>1 either m+1 is prime or m+1 is composite.

  • If m+1 is prime, it is its own prime factorization.

  • Else m+1 is composite.
    a,bN  s.t.m+1=ab
    a{2,3,4,m}
    b{2,3,4,m}

  • By IH (Inductive Hypothesis), a=i=1spi and b=j=1tqj where each pi and qj is prime.
    m+1=ab=(i=1spi)(j=1tqj)

This is an example of where strong induction is useful and not weak.

4.1: The Language of Sets

  • A Set is a collection of objects
    • Order doesn’t matter
    • No duplicate elements
  • xA means X is an element of A
  • #A is the cardinality (# of elements)

Set Builder Notation

{varabie:condition}
{xA|P(x)}

Subset

If A and B are sets, we write AB if xA,xB

ABBAA=B

AB means xA s.t. xB

If we want to prove AB, then we can use the following skeleton:
Let xA

Then check that x also satisfies the membership criteria of B
Hence xB

Example

  1. Let A={xZ:aZ so that x=a2}
    Let B={xZ:x0(mod4)x1(mod4)}
    Prove AB
    Let xA. Then xZ, and aZ so that x=a2.
    By the division algorithm, we can write a=4q+r,  qZ,  r{0,1,2,3}
    If r=0, then x=a2=(4q)2=4(4q2)+0, so x leaves remainder 0 on division by 4
    If r=1, then x=a2=(4q+1)2=4(4q2+2q)+1, so x leaves remainder 1 on division by 4
    If r=2, then x=a2=(4q+2)2=4(4q2+4q+1), so x leaves remainder 0 on division by 4
    If r=3, then x=a2=(4q+3)2=4(4q2+6q+2)+1, so x leaves remainder 1 on division by 4

    In each case x0(mod4)x1(mod4). Thus xB, and it follows that AB

  2. Let A={xZ:aZ so that x=a2}
    Let B={xZ:x0(mod4)x1(mod4)}
    Prove BA

    Consider 32Z
    32=4(8)+0, so 320(mod4), and we see that 32B
    52=25<32, and 62=36>32, so 5<32<6, and 32A

    1. Let A and B be sets. A=B, if (AB){BA}
      Equivalent to xAxB
      Let C={xZ:x is odd}
      Let D={xZ:x1(mod4)x3(mod4)}
      Prove C=D

    x \in \mathbb{Z}, and\exists x = 2q + 1.Provethatx = 4t + 1 \lor x = 4+3.SupposebyBWC,supposethatxdoesnotleaveremainder3or1.Intheend,xisfoundtobeeven,whichisacontradictionsincex$ is supposed to be odd.

    Prove the converse:

  • Let xD. Then Z and x1(mod4)x3(mod4)
  • If x1(mod4), then x=4t+1, for some t2
  • x is still odd
  • If x3(mod4) and x=4t+3, for some tZ, x is still odd. In both cases, xC

Proposition

Let A,B,C be sets.
Suppose ABBC. Is it true that AC?

What Sets Can’t Be

Let S be a set
Call S normal if SS
Let X=set of all normal sets
Is x itself normal?

Midterm 1 Review

Problem 2

Prove that 6|13n7n

Inductive Hypothesis

Strong Induction

Assume that for  k=1,2,3m,  6|13k7k,

Weak Induction

Assume that for some mN,  6|13m7m

Show that 6|13m+17m+1

Problem 3

Show by induction that nN  i=1ni2=n(n+1)(2n+1)6

Base Case

i=11i2=12=1,  1(1+1)(2(1)+16=1

Inductive Hypothesis

Weak Induction

Suppose that for some mN,  i=1mi2=m(m+1)(2m+1)6
We will prove that i=1m+1i2=(m+1)(m+2)(2m+36

4.2: Set Operations

Let A and B be sets.

Union

AB={x:xAxB}

Commutative since or is commutative

Intersection

AB={x:xAxB}

Commutative since and is commutative

Relative Complement or Set Difference

AB={x:xAxB}

Not commutative

Example

Let A={0,πe,i,1}
Let B={π,e,2,3}

a. AB={0,π,e,i,1,2,3}
b. AB={π,e}
c. AB={0,i,1}

Universal Set

UA=AC

Proposition

  1. AB=BA
  2. aB=BA
  3. (AB)C=A(BC)
  4. (AB)C=A(BC)
  5. A=
  6. A=A
  7. A(BC)=(AB)(AC)
  8. A(BC)=(AB)(AC)

Proof of 8

A(BC)={x:xAxBC}
={x:xA(xBxC)}
={x:(xAxB)(xAxC)}
=(AB)(AC)

Cardinality

If A and B are finite sets, then #(AB)=#A+#B#(AB)

Cartesian Product

The Cartesian product A×B:
A×B={(a,b):aA,bB}

Power Set

If X is a set, then P(X)={A:AX} is called the power set

Example

x={a,b}
P(X)={,{a},{b},{a,b}}

Proposition

Let A and B be sets.
(AB)(P(A)P(B))

Proof:

Prove (AB)(P(A)P(B))
CP(A)CA
ABCB by transitivity
CBCP(B)

Prove the converse
AAAP(A)
AP(B)AB

DeMorgan’s Laws

  1. A(BC)=(AB)(AC)
  2. A(BC)=(AB)(AC)

Proof of 1

xA(x(BC))
xA¬(xBxC)
xAxBxC
(xAxB)(xCxA)
ABAC

Converse
(AB)(AC)
x(AB)x(AC)
xAxBxAxC
xA¬(xbxC)
xAx(BC)
ABC

4.3: Arbitrary Unions and Intersections

(AB)C=A(BC)
(AB)C=A(BC)
so we can just write ABC and ABC without parentheses.

Definitions

Let A1,A2,A3,,An,   nN be sets

  1. i=1nAi=A1A2A3An
  2. i=1nAi=A1A2A3An

Proposition

Let nN, and B1,B2,B3,Bn be sets.

  1. A(i=1nBi)=i=1n(ABi)
  2. A(i=1nBi)=i=1n(ABi)
  3. A(i=1nBi)=i=1n(ABi)
  4. A(i=1nBi)=i=1n(ABi)

Proof of 2

Base Case: n=1
i=11(ABi)=AB1=A(i=11Bi)

Inductive Hypothesis:
Suppose that for some mN, A(i=1mBi) holds
Let B1,B2,B3,Bn be sets
A(i=1m+1Bi)=A(i=1mBiBm+1)
A(i=1mBi)(ABm+1)
i=1m(ABi)(ABm+1)=i=1m+1(ABi)

5.3: Injective and Surjective Functions

Definition

Let X,Y be sets, and let f:XY

  1. f is one-to-one (1-1) or injective if
    (x1,x2X)[f(x1)=f(x2)x1=x22]
    the contrapositive of the above is also true

  2. f is onto or surjective if
    (yY)(xX)[y=f(x)]

  3. f is bijective f is both injective and bijective.

Theorem 5.3.10

Let X,Y,Z be sets. Let f:XY and g:YZ

  1. If f and g are both 1-1, then gf is also 1-1
  2. If f and g are both onto, then gf is also onto
  3. If f and g are both bijections, then gf is also a bijection
  4. If gf is 1-1, then f is 1-1, but g is not necessarily 1-1
  5. If gf is onto, then g is onto, but f is not necessarily onto

5.4: Invertible Functions

Definition

Let X,Y be sets, and let f:XY. We say that f is invertible if there exists a function g:YX such that for all xX and for all yY
y=f(x)x=g(y)

Proposition 5.4.3

Let X and Y be sets, and let f:XY and g:YX. Then f is invertible and g is an inverse function of f iff gf=IX and fg=IY

Theorem 5.4.7

Let X,Y be sets and let f:XY

  1. f is invertible iff f is a bijection
  2. If f is invertible, then its inverse function is unique

7.1: Relations

Definitions

Let A and B be sets, and let RA×B be a relation from A to B. For aA and bB,

aRb    iff (a,b)R
ab    iff (a,b)R

7.2: Equivalence Relations

Definition

Let is a relation on a set A

  1. is reflexive if (aA)(aa)
  2. is symmetric if (a,bA)(abba)
  3. is transitive if (a,b,cA)[(abbc)ac]
  4. is an equivalence relation if is reflexive, symmetric, and transitive

8.1: Introduction to Finite and Infinite Sets

Am={1,2,,m}={iN:im}
A0=

Definition 8.1.2

  1. X is equinumerous with Y, denoted XY, if there exists a bijection f:XY

  2. X is finite if X= or there exists mN such that AmX. In other words there exists a bijection f:{1,2,3,,m}X

  3. If AmX, then the cardinality of X is n, denoted as #X=n. We define #=0

  4. We say X is infinite if X is not finite.

is an equivalence relation on the collection of all nonempty sets.

Example

Show NZ

First, define f:NZ for all nN
f(n)={n2 n is even (n1)2 n is odd 

Show f is 1-1.
Define n1,n2N and suppose f(n2)=f(n1)
If both are even, then
n12=n22n1=n2
If both n1 and n2 are odd,
(n11)2=(n21)2
One can’t be odd and one even.

Show f is onto.
Suppose nZ If n1, then f(2n)=2n2=n
If n0
f(2n+1)=(2n+1)12=n
nim(f) nZ, so f is onto.

8.2: Finite Sets

Recall: Let A be a set. nN, let In={1,2,3,n}

  1. We say A is finite if A= or nN s.t. f:AIn (bijection)
    #A=0 or #A=n

  2. Every subset of a finite set is finite.

  3. If A and B are finite sets, and AB=, then #(AB)=#A+#B

Pigeonhole Principle

If n+1 or more pigeons are placed into n pigeonholes, then at least one pigeonhole will contain more than 1 pigeon

Example 1

Choose 5 points interior to a 2m by 2m square. Prove that among these 5 there is a pair such that the distance between the two points in the pair is 2 m.

Answer: Divide square into four 1×1 square. Notice that there must be one square with 2 points. The greatest distance between any two points in one of the sub squares is just the diagonal 2.

Example 2

Show there is a multiple of 7 whose decimal digits are all 1’s or 0’s

Consider 1,11,111,1111,11111,111111,1111111,11111111
2 numbers on this list must leave the same remainder upon division by 7

Say there are

aj=1111j-ones

ak=1111k-ones    k>j

Then 7|akaj since akajmod7
Thus the akaj have only 0 and 1 as digits.

More on Finite Sets

  1. Suppose A1,A2,A3,,An are pairwise disjoint sets (AiAj=, whenever ij)
    Then #(i=1nAi)=i=1n(#Ai)

  2. Let A and B be finite sets. Then #(AB)=#A+#B#(AB)

#(A×B)=(#A)(#B)

8.3: Infinite Sets

Definitions

  1. The set X is denumerable or enumerable or countably infinite if there is a bijection f:NX and f is onto and 1-1.
    NX
  2. The set X is countable if X is finite or denumerable.
  3. The set X is uncountable if X is not countable, if X is infinite and not denumerable

Theorem

Let A be a nonempty set. Suppose g:NA is surjective. Then A is countable.

Proof

Either A is finite or it is not

If A is finite, there is nothing to prove, since A is obviously countable. So suppose A is infinite.

We must construct a bijection from NA to show that A is countable (countably infinite).

Put f(1)=g(1)

Suppose inductively, that we have defined f(1),f(2),f(3),,f(n) so that f(i)f(j) whenever ij

i,j{1,2,3,,n}
{g(1),g(2),g(3),,g(n)}{f(1),f(2),f(3),,f(n)}

Define f(n+1)

Bn={f(1),f(2),f(3),f(n)} is finite and A is infinite, so a B is nonempty

Then X={mN:g(m)Bn} is also nonempty, since g is surjective.

Then X is a nonempty subset of N. Then by the Well-Ordering Principle, X has a least element, say m0=min(X)

Let f(n+1)=g(m0)
f(n+1)f(i) i{1,2,3,..,n}

{g(1),,g(n)}Bnm0n+1

g(n+1){f(1),f(2),f(3),,f(n),f(n+1)}

a,bN ,a<bf(a)f(b)
So f is injective.

We have defined an injective function f so that we don’t have “duplicate” values of g(x) (A) in the codomain of f

Let cA
g is surjective xN s.t. c=g(x)
{g(1),g(2),,g(x)}{f(1),f(2),f(3),,f(x)}t{1,2,3,,x} s.t. g(x)=f(t)

cimg(f)f is surjective 

Proposition

Let A be a nonempty countable set. Then g:NA such that g is surjective.

Proof

Note: Im={1,2,3,,m}

If A is countably infinite, then f:AN which is bijective. Then f1:NA is also bijective and thus surjective.

If A is finite, then f:ImA for some mN
g:NA
x{f(x)1xmf(1)x>m

Proposition

Let A and B be denumerable sets (countably infinite). Then AB is also enumerable.

Proof

If A and B are denumerable, then f:NA and g:NB which are also bijections.

Define the following:
h:NAB
x{f(x/2) x is eveng(x+12)x is odd

Let yAB

If yA, then y=f(x) for some xN, (f is surjective)
h(2x)=f(2x2)=f(x)=y

If yB, then y=g(x) for some xN, (g is surjective)
h(2x1)=f((2x1)+12)=g(x)=y

In either case, g(x)=y, so yim(h), and h is surjective.

By the previous theorem, AB is denumerable.

Corollary

If A1,A2,A3,..,An are all countable, then i=1nAi is also countable.

Proposition

N×N is countable

g:NN×N
x{(m,n) if x=2m3n(1,1) else

Fundamental Theorem of Arithmetic

Let nN{1}. Then n is a “product” of prime numbers (i.e. n is either prime itself or a product of primes). Moreover, this prime factorization is unique.

Proof (Existence)

We can use induction to prove the existence of a prime factorization.

See this proof

Proof (Uniqueness)

Lemma: Let a1,a2,a3,,anZ. Let p be prime and suppose p|(i=1nai), then p|ai for some i{1,2,3,,n}. (Based on Euclid’s Lemma by induction)

Now suppose n=p1p2p3ps and n=q1q2q3qs are both prime factorizations of n (qi and pi are always prime).

Assume without loss of generality (WLOG), st

p1(p2 p3...ps)=q1 q2 q3qt
p1|q1 q2 q3 qt

By Euclid’s Lemma p1|qi for some i{1,2,3,,t}. By reordering the qi's, WLOG, we can assume that p1|q1.
But p1=q1, since the only positive integer factors of q1 are 1 and q1, but p1 is prime p11.

p1 p2 p3...ps=q1 q2 q3qt
p1=q1, so
p2 p3...ps=q2 q3qt

We can use the same technique to show that p2=q2, p3=q3, and so on.

After s repetitions, we get pi=qi for i=1,2,3,,s

Now we need to show that s=t

We assumed st. Suppose BWOC s<t

p1 p2 ps=n=q1 q2 q3 qs qs+1 qs+2 qt
But pi=qi for i{1,2,,s}, so
1=qs+1 qs+2 qt
This is a impossible since qj2 for all j. So s=t

Proof that  Q  is countable

Proposition

N×N is countable

Proof

Define g:NN×N

x{(m,n)x=2m3n(1,1)else

Example: g(96)=g(2531)=(5,1)

Uniqueness of prime factorization guarantees there’s only one way to write x as a prime factorization of 2 and 3, so this means the function is well defined. Let (x,y)N×N. Then g(2x3y)=(x,y), so g is surjective.

Continuing Proof

Now let Q+={ab:a,bN}
h:N×NQ+
(a,b)ab
h is surjective. Then (hg):NQ is surjective (composition of surjective functions is surjective). So Q+ is countable.

Put Q={ab:a,bN}
QQ+, so Q is also countable. (Construct bijection between them to show that they are equiponent (e.g. f(x)=x))

{0} is clearly countable.

Q=Q{0}Q+
So Q is countable!

Example

Is it true that if A and B are countable sets, then so is A×B?

If A=B= , then answer is yes, since A×B=. So assume A and B are nonempty.

Since A and B are also countable, there are surjections f:NA and g:NB

We will use the fact that N×N is countable.

h:N×NA×B
(x,y)(f(x),g(y))

h is surjective:
Let (a,b)A×B
f is surjective (cN)(f(c)=a)
g is surjective (dN)(f(d)=b)

h((c,d))=(f(c),g(d))=(a,b)
(a,b)im(h)
So h is surjective.

Now since N×N is countable, there is a surjection
t:NN×N

ht:NA×B
ht is also a surjection, so A×B is also countable.

Proposition

Let A and B be sets with A being countable. Let BA. Then B is also countable.

Proof

If B=, then B is finite and thus countable. Assume B

Since A is countable, there is a surjection
f:NA

Fix bB. Define
g:NB
n{f(n)f(n)Bbf(n)B
Let bB. Since f is surjective, xN with
f(x)=yB

Then g(x)=f(x)=y, so yim(g), so g is surjective.

B is countable

Corollary

Let X be a set and suppose YX

If Y is uncountable, then X is uncountable.

Theorem (Cantor): [0,1)  is uncountable.

Proof

Suppose BWOC, that [0,1) is countable.

In this case, there would exist a surjection f:N[0,1)
Super scripts are not exponents, 0.abcd denotes decimal expansion of a numer
f(2)=0.d11d21d31
f(2)=0.d12d22d32
f(3)=0.d13d23d33
f(4)=0.d14d24d34
dit{0,1,2,3,9}

Consider the following number
r=0.r1r2r3r4
r={4dii45dii4

(nN)(f(n)rn)
since
(nN)rndnn

So rim(f), contradicting surjectivity of f.

Hence [0,1) is uncountable.

Corollary

R is uncountable

Proof

[0,1)R

Groups

Definitions

Let G be a set.

An operation, , on G is a function :G×GX
where X is a set. We write gh instead of (g,h).

We say that is closed if im()G

Addition is closed
+:Z×Z
Multiplication is closed
:Z×Z
Division is not closed
/:(Z{0})×(Z{0})

Identity

ax=b
a1(ax)=a1b
(a1a)x=a1b
ex=a1b
where e is the identity element
x=a1b

Property of a Group

Let G be a set and let be a closed operation on G.

We say that (G,) is a group if

  1. Commutative: (a,b,cG)(a(bc)=(ab)c)
  2. Identity Element: (eG)(aG   ae=ea=a)
  3. Inverse: (aG   a1G)(aa1=a1a=e)
  4. (If a,b,G   ab=ba, then the group is an abellian group)

Examples of a Group

  1. (Z,+)
  2. (Q{0},)
  3. (V,+), where V is only R-vector space
  4. (R,+)
  5. (R{0},)

Is the Identity Element Unique?

Suppose that
aG   ae=ea=a
aG   ad=da=a
de=d

de=e

d=e
Thus the identity is unique.

Is the Inverse Unique

Suppose ba=ab=e and ca=ac=e (i.e. both b and c are inverses of a

bac=(ba)c=ec=c
bac=b(ac)=be=b

b=c
a1 is unique

Notation

We often just write “let G be a group” and use multiplication for the operation on G, even if the operation isn’t traditional multiplication

ab instead of ab
a+b instead of ab sometimes when group is abelian

Examples of Finite Groups

Fix nN. Then Z/nZ={[0],[1],[2],[n1]} with
[a]+[b]=[a+b]
forms a group

  • [0] is the identity
  • [a] is the inverse of a

Example of Non-Abelian Groups

G={[abcd]:abbc0}

Example of Non-Abelian Groups

Let X={1,2,3}
Let S3={f:f:XX and f is bijective}

f1=(123123)
means f1(1)=1,  f1(2)=2,  f1(3)=3

f2=(123132)
means f2(1)=1,  f1(2)=3,  f1(3)=2

f3=(123231)
f4=(123321)
f5=(123312)
f6=(123213)

f1,f2,f3,f4,f5,f6S3
If f,gS3
fg=gf is not true in general, so the group is not abelian.

More generally, if X is any nonempty set,
Sym(X)={f:f:XX,  f is bijective }
is the symmetric group with composition of functions as its operation.

More Definitions

  • If (G,) is a group and HG is nonempty, we say that H is a subgroup of G if the restriction of to H×H makes H into a group itself.
  • Equivalently, if G is a group and HG is nonempty, then H is a subgroup if a,bH, ab1H

Homomorphisms and Isomorphisms

Let G1 and G2 be groups. We say that ϕ:G1G2 is a homomorphism if
a,b,G1    ϕ(ab)=ϕ(a)ϕ(b)

If ϕ is also bijective, it is instead called an isomorphism