1. Let us first define: The set of propositional formulae of, say, set theory, denoted here by Prop , is the smallest set such that

(1) Every Boolean variable is in Prop (cf. 1.1.1.26 )

(2) If images and images are in Prop , then so are (¬ images ) and ( images ) —where I used Images as an abbreviation of any member of {⋀, ⋁, →, ≡}.

If we call WFF the set of all formulae of set theory as defined in 1.1.1.3 , then show that WFF = Prop .

Hint. This involves two structural inductions, one each over WFF and Prop .

   2. Prove the general case of proof by cases (cf. 1.1.1.48 ): images → images , images → images ⊢ images ⋁ images → images ⋁ images .

   3. Let us prove ⊢ x = y . By way of contradiction, let us assume ¬ x = y (i.e., x ≠ y ). Using substitution ( 1.1.1.42 ) we obtain ¬ x = x which along with axiom (v) ( 1.1.1.38 ) and tautological implication yields the contradiction x = x ⋀ ¬ x = x . Done.

Hm. There is something very wrong here! Clearly, x = y is not true, hence a proof of it must be impossible (cf. soundness, p. 20 ). What exactly went wrong with our “proof”?

   4. Verify that for any (formal) function f [ x ] we have ⊢ x = y → f [ x ] = f [ y ].

Hint. Start with (vi) of 1.1.1.38 taking as “ images [ z ]” the formula f [ x ] = f [ z ].

   5. Give the missing details of Example 1.1.2.14 .

   6. This is a useful but simple exercise! For all sets A, B, C prove:

(i)    A ⋃ A = A                                          and A ⋂ A = A

(ii)   A ⋃ ( A ⋂ B ) = A                                and A ⋂ ( A ⋃ B ) = A

(iii)   A ⋃ ( B ⋂ C ) = ( A ⋃ B ) ⋂ ( A ⋃ C ) and A ⋂ ( B ⋃ C ) = ( A ⋂ B ) ⋃ ( A ⋂ C )

(iv)   A ⊆ B ≡ A ⋃ B = B                           and A ⊆ B ≡ A ⋂ B = A

   7. Compute ∪{2}.

   8. Compute ∩ images .

   9. Compute ∩{7}.

10. Use induction on n ≥ 2 to prove that if images x 1 , x 2 ,..., x n images = images y 1 , y 2 ,..., y n images , then, for i = 1,..., n , we have x i \= y i .

11. Can A n be also defined as

A 1 = A

  and, for n ≥ 1

A n +1 \= A × A n

Why?

12. What is A × 1? Why?

13. Prove that A × images = images × A = images .

14. Prove that A × B = images iff A = images or B = images .

15. What is images ( A ) if A is an urelement?

16. Assume an intuitive understanding of “the set A has n elements”. Prove by induction on n that 2 A has 2 n elements. This motivates the notation “2 A ”.

Hint. Show carefully that adding one new element to A doubles the number of its subsets.

17. Show that for any function f : A → B , f ( a ) ↑≡ f → ({ a }) = images ; and f is onto iff (∀ x Images B ) f ← ({ x }) ≠ images .

18. Show by an example that function composition is not commutative. That is, in general, ( gf ) ≠ ( fg ).

19. For any function g and sets X and Y , we have g ← ( X − Y ) = g ← ( X ) − g ← ( Y ).

20. Let f : X → Y be given as well as A ⊆ Y and B ⊆ Y . Prove that

  • f ← ( A ⋃ B ) = f ← ( A ) ⋃ f ← ( B )
  • f ← ( A ⋂ B ) = f ← ( A ) ⋂ f ← ( B )

21. Let f : X → Y be given as well as A ⊆ X and B ⊆ X . Prove that

  • f → ( A ⋃ B ) = f → ( A ) ⋃ f → ( B )
  • f → ( A ⋂ B ) ⊆ f → ( A ) ⋂ f → ( B )
  • B ⊆ A implies that f → ( A − B ) ⊇ f → ( A ) − f → ( B )

22. Let f : X → Y be given as well as A ⊆ X and B ⊆ Y . Prove that

  • f → images f ← ( B ) images ⊆ B
  • f ← images f → ( A ) images ⊇ A

23. Let the relation R : images A i → A k be given by

R = { images images a 1 ,..., a k ,..., a n images , a k images : a j Images A j , for j = 1, ..., n }

(1) Prove that R is a total function. We call it the k -th Cartesian projection function of images A i , and often denote it by images .

(2) Prove that if f : B → images A i is a ( vector - or tuple-valued ) function, then we may decompose it into n functions , f i , for i = 1, ..., n : f i : B → A i , so that, for all a Images dom( f ), we have f ( a ) = images f 1 ( a ),..., f n ( a ) images .

We say that the f i is the i -th component or projection of the tuple-valued (vector-valued) function f .

Hint. Consider ( images f ) (i.e., f Images images ).

24. Prove Theorem 1.2.0.19 .

25. Suppose that f : A → B . Then ( 1 B f ) = f and ( f 1 A ) = f .

26. Let f : A → B be a 1-1 correspondence. Then show that g = f −1 : B → A is a 1-1 correspondence as well and ( fg ) = 1 B while ( gf ) = 1 A .

27. Consider f : A → B , g : B → A and h : B → A such that ( fg ) = 1 B and ( hf ) = 1 A hold.

Show that f is a 1-1 correspondence and that g = h = f −1 .

Hint. Start with expanding ( h ( fg )) = ( h 1 B ), using associativity and Exercise 25 .

28. Let f : A → B be a 1-1 correspondence and g : B → A be a function for which ( gf ) = 1 A . Then show that g = f −1 and therefore ( fg ) = 1 B as well.

29. Let f : A → B be a 1-1 correspondence and g : B → A be a function for which ( fg ) = 1 B . Then show that g = f −1 and therefore ( gf ) = 1 A as well.

images    Exercises 27 , 28 and 29 show that if an f has both a left and a right inverse, then the two are equal to f −1 and in fact f is a 1-1 correspondence. Moreover, a 1-1 correspondence has a unique left and right inverse, equal in each case to f −1 .

This unique inverse is called—for 1-1 correspondences—“the” (two-sided) inverse.   images

30. Prove that R is transitive iff R 2 ⊆ R .

31. Prove that if A ∼ B and B ∼ C then A ∼ C .

32. Prove, for any two functions f and g , that f = g (as sets of tuples) iff (∀ x )( f ( x ) ≃ g ( x )).

33. Prove the claims made in Remark 1.2.0.31 .

34. Let f : A → B and g : B → C be onto functions. Show that ( gf ) : A → C is onto.

Hint. An h : X → Y is onto iff for any b Images Y , the “equation” h ( x ) = b has a solution.

35 . Revisit Theorem 1.3.0.42 and give it a mathematical proof, using tools from Section 1.4 . Specifically, if A ⊆ images is infinite, define by recursion the function f by f (0) = min A and f ( n + 1) = min( A − { f (0),..., f ( n )}) and prove that dom( f ) = images , ran( f ) = A and f is 1-1.

36. Prove that the range of f : images × images → images given by f ( x , y ) = 2 x 3 y is infinite.

37. Prove that there is a 1-1 correspondence that corresponds each S ⊆ images to χ S .

38. Let A and B be enumerable. Then 2 A ∼ 2 B .

Hint. Let f : images → A and g : images → B be 1-1 correspondences. Define F : 2 A → 2 B so that F ( images ) = images and F sends the set { f ( i 0 ), f ( i 1 ), f ( i 2 ), f ( i 3 ),...} to the set { g ( i 0 ), g ( i 1 ), g ( i 2 ), g ( i 3 ),...}. Argue that F is total, 1-1, and onto.

39. Refer to 1.6.0.19 . Define the simple arithmetic terms of that example differently: Let us start with the alphabet of symbols A = {1, 2, 3, +, ×, (,)}. We let images = {1, 2, 3} and images consist of just two string operations:

Images

Images

Prove that images , images is unambiguous and thus EV , defined as in 1.6.0.19 , over C1( images , images ) exists and is unique.

Toward a proof of lack of ambiguity you may want to prove a couple of lemmata:

(a) Every member of C1( images , images ) has an equal number of left and right brackets.

(b) Every proper non-empty string prefix of an A Images C1( images , images ) has an excess of left brackets.

(c) Every A Images C1( images , images ) has unique i.p. and 1, 2, 3 have no i.p.

40. Prove, as Euclid did, that every natural number n > 1 is a product of primes in a unique way, except for permutation of factors.

Hint. Use strong induction and 1.4.1.3 .

41. Prove that if R : A → A is reflexive and also satisfies, for all x , y and z ,

xRy ⋀ xRz → yRz

then it is also symmetric and transitive, hence an equivalence relation.

42. Prove, by induction on n , that for any relation R on a set A we have

(1) R m Images R n = R m + n

(2) ( R m ) n = R mn

43. Suppose that R is on a finite set of n elements. Prove that R + = images .

Hint. Cf. 1.6.0.22 . Prove the redundancy of all terms beyond R n in this case.

44. Suppose that R , defined on a finite set of n elements, is reflexive. Prove that R + = R n −1 .

Hint. Prove the redundancy of all terms but R n −1 in this case.

45. Let m > 1 be an integer. Prove that any integer n > 0 can be uniquely written as n = mq + r , where 0 < r ≤ m .

Hint. Note the inequalities! Either imitate the proof given in 1.4.3.1 , or base a proof on the result of 1.4.3.1 .

46. ( m - ary notation. ) Prove that every integer n ≥ 0 has a unique representation as

Images

where 0 ≤ d i < m for all i = 0,..., r . (1) is called the m -ary notation of n , and the d i are the m -ary digits.

47. ( m - adic notation .) Prove that every integer n > 0 has a unique representation as

Images

where 0 < d i ≤ m for all i = 0,..., r . (2) is called the m -adic notation of n [cf. Smullyan (1961); Bennett (1962)], and the d i are the m -adic digits.

48. Prove that for any set X , we have X images 2 x .

11 “The reader who has taken Euclidean geometry in high school will be familiar with this parallel: The terms “point”, “line”, and “plane” are not defined either, but we get to know them intimately through their properties that we develop through mathematical proofs, starting from Euclid’s axioms.

12 In axiomatic set theory a “class” is a kind of collection that may be so “large” that it technically fails to be a set. The axioms force sets to be “small” classes.

13 More accurately, a “statement” and a formula are two different things. However, the latter mathematically “encodes” the former.

14 Despite the dangers this entails, as Gödel’s incompleteness theorems exposed [Gödel (1931)], modern mathematicians are confident that their subject and tools have matured enough, to the point that one can safely apply logic, once again, post-Gödel, informally. For example, Kunen states in his article on set-theoretic combinatorics, Kunen (1978), “A knowledge of [formal] logic is neither necessary, nor even desirable”.

15 Notation for objects such as {...} and x ∪ y will be reviewed shortly.

16 I.e., to stand for one. Thus, the expression “(¬ Images )” is constructed by writing “(”, followed by writing “¬”, followed by writing in full whatever Images names, and finally writing “)”.

17 For example, in x = x the variable x has two occurrences.

18 A fact demonstrated strongly by the explicit form of the sum, 1 + 2 + 3.

19 “Some” includes “none” and “all” as special cases.

20 “Binary” since they each glue two subformulae.

21 if and only if

22 Other approaches to “implication” are possible. For example, the Intuitionists have a different understanding for → than that of the majority of mathematicians, who adopt the classical definition above.

23 A synonym of “iff”.

24 The verb “holds” means “is true”.

25 That is, “for every value of y, a value of x exists”. The mathematician is used to the sloppy language that omits “ value of ”. It is clear that he does not refer to the variables themselves, but rather refers to their values.

26 That is, not rational. A rational number has the form, by definition, p / q where both p and q ≠ 0 are integers.

27 This is a sufficient and straightforward overkill. In principle, we only need to rename those bound variables that are referenced in those quantifiers that will capture a variable in t , if we do nothing.

28 They express universal truths of logic , that is.

29 Strictly speaking, formula-forms or formula-schemata, since these formulae will contain, as subformulae, formula-names of unspecified formulae (such as Images ), arbitrary (object) variables, function names, etc.

30 “In principle”: The set of theorems of an interesting theory such as arithmetic, Euclidean geometry, or set theory is infinite.

31 By Gödel’s completeness theorem, Gödel (1930), the hedging “for which ⊢ Images ” is redundant.

32 The word “assumed” was inserted for emphasis: x = x in this argument is a Boolean variable. We are not looking for its intrinsic value, rather we are taking turns to consider each of its “possible” values, f and t . The argument skipped the first value because it trivially makes (2) true.

33 Often used by Euclid, for example.

34 The mathematician and computer scientist will rather say “we obtain Images ” to indicate he proved so, without using the provability symbol ⊢. He will also let the context fend for itself as to what the assumptions were; here no nonlogical assumptions were made.

35 The converse of the implication Images → Images is Images → Images .

36 Let’s face it: naïve set theory is not exactly clear as to what a set is, nor does it care.

37 We do not pin it down.

38 Such atomic elements are called urelements in the literature.

39 Knowledge of induction, as well as of everything else in this review is presupposed; this is only a review! Induction will be our review-subject in Section 1.4.

40 All reasonable axioms are based on intuitively acceptable concepts. The idea that sets are formed by stages led to many nice axioms of axiomatic set theory.

41 See also Section 1.3 to appreciate that not all infinities are equal in size.

42 Here we view every variable of R as input; output is t or f . Cf. discussion on p. 42 .

43 Recall that this is an intuitive argument showing the (ironic) indebtedness of Russell’s argument to Cantor’s original diagonalization method. Thus we will not be splitting hairs about qualms such as: “Hmm, is this characteristic function defined over the collection of all sets ? Can we do that?” Yes, because this is only a qualitative argument to tease out the diagonal argument that was hidden in Russell’s proof.

44 Some bigger sets that have the properties (a) and (b) include Images , the set of all integers; Images , the set of all rational numbers; Images , the set of all real numbers; and more.

45 The set of texts on the subject of the theory of computation, which seriously propose the above erroneous “proof” of existence is non-empty.

46 An r -ary operation (rule) is an ( r + 1)-ary relation; cf. 1.6.0.5.

47 To plot f ( x ) you plot the pairs ( x, y ) such that y = f ( x ); hence the terminology “graph”.

48 The “ g -function” in (5) is G ( x , Image n , Z ) ≃ Z ∪ Image , where Z is a set argument. If the right field of the original h and g is a set B, then Z takes its values from Image ( Image n + 1 × B ).