LOGIC AND SET THEORY - HOMEWORK Question 1. n + 1 Unknown - either n or n 1, depending on whether { } A

Size: px
Start display at page:

Download "LOGIC AND SET THEORY - HOMEWORK Question 1. n + 1 Unknown - either n or n 1, depending on whether { } A"

Transcription

1 LOGIC AND SET THEORY - HOMEWORK 1 OHAD LUTZKY, MAAYAN KESHET 1. Question 1 In the order A B, A B, A B =, Yes, no, yes No, yes, no Yes, no, yes Same as 1 Yes, no, yes No, yes, no 2. Question 2 n 0 n + 1 Unknown - either n or n 1, depending on whether { } A n + n 2 n One set with two elements, for which each element is a subset of it, is {, { }} Part A. 3. Question 3 Proof. We will show mutual containment, from left to right. a A (B C) a A and a B C a A and (a B or a C) (a A and a B) or (a A and a C) a (A B) (A C) 3.2. Part B. Proof. We will show mutual containment, from left to right. a A (B C) a A or a B C a A or (a B and a C) (a A or a B) and (a A or a C) a (A B) (A C) 1

2 2 OHAD LUTZKY, MAAYAN KESHET 4. Question Part A. The claim is true. Proof. We know that X X, Y Y. This means that, for any x, if x X then x X, and if x Y then x Y. Now, if z X + Y, this means (by the definition of X + Y that z = x + y such that x X, y Y. However, as we ve shown, that means x X and y Y, therefore z = x + y such that x X and y Y, which means that z X + Y Part B. The claim is false. Take X to be the real numbers and Y to be the imaginary. Take X to be X { 1} and Y to be Y {1}. Obviously, X X, Y Y. But X + Y = C, and X + Y = C as well, so X + Y = X + Y, and the claim is false Part A. The claim is true. 5. Question 5 Proof. We will show mutual containment. X (A) (B) X A B x X x A and x B X A and X B X (A) and X (B) X (A) (B) 5.2. Part B. The claim is true. Proof. First we ll show WLOG that if A B, then (A B) = (A) (B). If A B, then if x A then x B. Therefore, if x A B, then either x B, or x A - but as we ve shown, this means x B. Therefore A B B, and since B A B, we ve shown A B = B. Thus what we have left to prove is (B) = (A) (B). Again, (B) (A) (B), so we only have to show the reverse containment. X (A) X A, which means that if x X, then x A. However, we know that A B, so we have x B, so we have X B and therefore X (B). We ve shown that (A) (B), and as we ve seen, this shows that (A) (B) (B). All in all, we ve shown that (A B) = (A) (B). Now we will show the other direction - if (A B) = (A) (B), then either A B or B A. Assume by negation that A B and B A. Therefore there exists a A \ B and b B \ A. Examine the set F = {a, b}. a A, b B, therefore F A B, meaning F (A B). Therefore, either F (A) or F (B), meaning either F A or F B. F A, because b F and b / A, therefore F B. But F B, because a F and a / B. We have a contradiction to the assumption, and therefore it is false - either A B, or B A. 1 If there s anything wrong with that example, replace real with even, imaginary with odd, 1 with 0, 1 with 1, and C with Z.

3 LOGIC AND SET THEORY - HOMEWORK Part C. The claim is not true. Take A to be the even numbers and B the odd. No even number is odd or vice versa, therefore A \ B =. For any set G, G, and therefore (G). Therefore (A \ B), (A), and (B). However, this means that / (A) \ (B), and therefore (A) \ (B) (A \ B), and the claim is false Part A. The claim is true. 6. Question 6 Proof. We will prove that i N Π i i N Σ i, and without loss of generality, this will show us the opposite containment as well - and thus we have set equality. Let us take x such that x i N Π i. This means that there exists an i such that x Π i. We know that Π i i+1, which tells us that for j = i + 1, x j. We also know that i Σ i, so since x j, we now have x Σ j. We have shown, therefore, that there exists a j such that x Σ j, which means that x i N Σ i Part B. Not true. As a counterexample, take X = R. Now we ll define the sets Π, Σ, : Σ i = {0, 1, 2,..., 2i}, Π i = Σ i = {0, 1, 2,..., 2i, 2i+1}. The conditions of the question hold: Π i = Σ i = {0, 1, 2,..., 2i, 2i+1} = {0, 1, 2,..., 2i} {2i+1} = i {2i + 1}, so we have i Π i and i Σ i, and identically - Π i i+1 and Σ i i+1. Now, assume by negation that i N i = X. 2 X (for our choice X = R), therefore there exists some i for which 2 i, which is absurd since we ve constructed i out of natural numbers only. Therefore it cannot be that i N i = X.

4 LOGIC AND SET THEORY - HW 2 OHAD LUTZKY, MAAYAN KESHET 1.1. Part A. a, b = {{a}, {a, b}} 1. Question (i). a, b = {a} {a, b} = {a, b} (ii). a, b = {a} {a, b} = {a} 1.2. Part B (i). This implementation meets the demand. First we ll prove that a = a and then we ll prove that b = b. Proof. {{a}, {a, {b}}} = {{a }, {a, {b }}}. Therefore, {a} {{a }, {a, {b }}}, which means that either {a} = {a } and we re done or that {a} = {a, {b }}, which means either {a} = {a } and we re done or a = {b }. If a = {b } then {{a}, {a, {b}}} = {{a }, {a, a}} which means that either {a} = {a } and we re done or that {a} = {a, a}, which by itself means {a} = {a } a = a. Therefore a = a. Now we ll prove the same for b and b. {{a}, {a, {b}}} = {{a }, {a, {b }}}. Therefore, {a, {b}} {{a }, {a, {b }}}, which means that either {a, {b}} = {a } or {a, {b}} = {a, {b }}. If {a, {b}} = {a } then {b} = a = a. Therefore, {{a}, {a, {b}}} = {{a}, {a, a }} = {{a }, {a, a }} = {{a }}. Therefore {{a}, {a, {b}}} = {{a }} = {{a }, {a, {b }}} {a } = {a, {b }} {b } = a = {b} b = b. If {a, {b}} = {a, {b }} then {b} {a, {b }}. Therefore, either {b} = {b } and we re done or {b} = a = a and as we have shown before {b} = a = a b = b (ii). This implementation meets the demand. Proof. Let a, b o = {{a}, {a, b}} be the original model we used for order pairs. Therefore, with this model, a, b = { a, b o }. Obviously, if a = a, b = b, then a, b = a, b, so we ll show the other direction. Assume a, b = a, b. Therefore, { a, b o } = { a, b o }, which means that a, b o = a, b o. As proved in class, this means that a = a, b = b (iii). This implementation does not meet the demand. For a = {0}, b = 1, a = {1}, b = 0, we have a, b = a, b = {{0}, {1}} Part C (i). Proof. Note that {a, {b}} (B) A. This shows that {{a, {b}} ( (B) A), which in turn shows that {{a}, {a, {b}}} (A (B)) (A). Therefore, { } A B = {{a}, {a, {b}}} ( (A) (A (B))) a A, b B 1

5 2 OHAD LUTZKY, MAAYAN KESHET (ii). Proof. If we define o to be a cartesian product of two sets using, o, then we ve shown in class that for any two sets A, B, there exists a set X = A o B. By the base assumption of the existence of the powerset of each set, we know there exists (X). For our current ordered pair model, a, b = { a, b o } (X), therefore the following set exists: A B = { } { a, b o } (X) a A, b B 2.1. Part A. The set does not exist. 2. Question 2 Proof. Let P be the universal set of powersets, P = { (A) : A is a set}. Let P 0 = { (X) P : (X) / X} Assume (P 0 ) P 0. Therefore, by definition of P 0, (P 0 ) / P 0. Therefore, again by definition of P 0, (P 0 ) P 0. We have a contradiction, therefore P cannot exist Part B. This set does not exist. Proof. Let R = {R A B : A, B are sets} be the set of all relations. Therefore exists the set R, which - since A, B can be any sets, and we join all subsets, is U U, U being the universal set. But then exists dom(u U) = U, which we have proven not to exist Part A. This part is true. 3. Question 3 Proof. x R 1 (B 1 B 2 ). This is true iff exists y B 1 B 2 such that (x, y) R, which in turn is true iff exists such a y either in B 1 or B 2. This is true iff x R 1 (B 1 ) or x R 1 (B 2 ), or in other words, x R 1 (B 1 ) R 1 (B 2 ) Part B. This part is false. Assume A = {0}, B = {0, 1}, R = { 0, 0, 0, 1 }, and take B 1 = {0}, B 2 = {1}. Therefore, R 1 (B 1 ) = R 1 (B 2 ) = {0}, however R 1 (B 1 B 2 ) = R 1 ( ) =. 4. Question Part A. This part is false. Take A = {1, 2}, R 1 = { 1, 1, 1, 2, 1, 3 } and R 2 = { 2, 2, 2, 1, 1, 1 }. It s easy to see that R 1 R 2 isn t antisymmetric.

6 LOGIC AND SET THEORY - HW Part B. This part is true. Proof. Assuming R 1, R 2 are partial orders over A, we will show that R 1 R 2 is a partial order. Reflexivity: R 1 is a P.O. over A 2, therefore it is reflexive, and a A a, a R 1. Similarily, R 2 is a P.O. over A 2, thus a A a, a R 2. So we have a A a, a R 1 R 2. Antisymmetry: If x, y, y, x R 1 R 2, then x, y, y, x R 1, therefore since R 1 is antisymmetric, x = y Transitivity: If x, y, y, z R 1 R 2, then x, y, y, z R 1, so by transitivity of R 1, x, z R 1, and x, y, y, z R 2, so similarily x, z R 2, therefore x, z R 1 R Part C. This part is true. Proof. Assume by negation R 1 R 2. R 1 R 2, therefore R 1 R 2. Therefore exists R 2 a, b / R 1. a, b R 2, therefore a, b A. R 1 is a F.O. over A, therefore either a, b or b, a R 1, and we ve already ruled out a, b, so b, a R 1. However, R 1 R 2, therefore b, a R 2, and since also a, b R 2, we have a = b, by antisymmetry of R 2. Therefore, by reflexivity of R 1, a, b R 1, in contradiction to the assumption. Therefore R 1 = R Part A. This claim is true. 5. Question 5 Proof. Assume by negation m, n A, m n are both a minimum element in A. Because m is a minimum element, by defenition (m, n) R. Similarly, because n is a minimum element, by defenition (n, m) R contradiction, because R is antisymmetric. Therefore m = n Part B. This part is false. Take A = Z {0.5} and R = {(a, b) Z 2 : a b} {(0.5, 0.5)}. 0.5 is uniquely minimal, but not a minimum - (0, 0.5) / R Part C. Proof. We ll prove by induction on A. For A = 1, a being the single element of the set, the only possible relation is a, a, therefore a is minimal, and we re done. Now, assuming the claim is true for A = n, we ll prove for A = n + 1. We know A is finite, therefore there is a 1-1 function from A on {1,..., n}, n being A. Let a i be the inverse of one such function (it is 1-1 and on, so it has an inverse function). Let A = A \ a 1, R = R \ { x, y x = a 1 or y = a 1 }. A would be n, therefore there is a minimal element a k of A by R, and k 1 (because a 1 isn t in A ). Now we will check minimality for a 1 and a k by looking at all possible options: If neither a 1, a k nor a k, a 1 are in R, then a k is minimal (and so is a 1 ), so we re done. If a k, a 1 R, then by antisymmetry a 1, a k / R, and thus a k is minimal. If a 1, a k R, we ll show a 1 is minimal: Assume by negation it is not, therefore there exists A a j a 1, a k such that a j, a 1 R. By transitivity of R, a j, a k R, and by definition of R, a j, a k R, in contradiction with a k being minimal in A by R.

7 4 OHAD LUTZKY, MAAYAN KESHET 6.1. Part A. The claim is true. 6. Question 6 Proof. R is an equivelance, we ll show that it is a sharing relation. Assume that a, b, a, c R. By symmetry, b, a R as well, and by transitivity, b, c R Part B. The claim is true. Proof. Reflexivity we already have, so we ll show symmetry and transitivity. Symmetry: Assume a, b A, a, b R. Because of reflexivity, we have that a, a, b, b R. Since a, b, a, a R, by sharing we have that b, a R. Transitivity: Assume a, b, c A, a, b, b, c R. By reflexivity we have that a, a, b, b, c, c R, and by symmetry (we ve proven), we have that b, a R. Therefore, by sharing we have that a, c R Part C. The claim is false. { 1, 3, 1, 2, 2, 3 } is a sharing relation, but it is not symmetric.

8 LOGIC AND SET THEORY HW 3 OHAD LUTZKY, MAAYAN KESHET 1. Question Part A. We need to prove that L = { (a, a) A 2 a range (R) } R 1 R Proof. (a, a) L, therefore a range(r). Therefore exists b such that (b, a) R, which means (a, b) R 1. We ve shown that there exists a shared b such that (a, b) R 1, (b, a) R, therefore (a, a) R 1 R Part B. We need to prove that L = { (a, a) A 2 a dom(r) } R R 1. Proof. (a, a) L, therefore a dom(r). Therefore exists b such that (a, b) R, which means (b, a) R 1. Therefore, as before, (a, a) R R Part C. The assumption that for each a A there is at most one b so (a, b) R can be expressed thus: If (a, b), (a, b ) R, then b = b. Now we want to show equality - we ve shown one direction in (??), so we we ll show the other - that is, that R 1 R L. Proof. (a, b) R 1 R. Therefore there exists c such that (a, c) R 1, (c, b) R. We then know that (c, a) R, and since also (c, b) R, then by the assumption, a = b. Furthermore, (c, a) R, which means that a range(r), and thus (a, b) L Part D. Assume that if (a, b), (a, b) R then a = a. Then the claim is true. Again, we only have to show that R R 1 L. Proof. (a, b) R R 1, therefore exists c so (a, c) R, (c, b) R 1. Then (b, c) R, and by our assumption, we have a = b. Furthermore, (a, c) R, which means that a dom(r), and altogether we have (a, b) L. 2. Question Part A. No, take R = {(1, 1), (1, 2), (2, 1), (2, 2)} and S = {(2, 2), (2, 3), (3, 2), (3, 3)}. R and S are equivalences, but (1, 2), (2, 3) R S (1, 3) / A B Part B. Yes, R S is an equivalence. Proof. Reflexivity: a A and R, S are equivalences (a, a) R, S (a, a) R S. Symmetry: (a, b) R S (a, b) R, S (b, a) R, S (b, a) R S. Transitivity: (a, b), (b, c) R S (a, b), (b, c) R, S (a, c) R, S (a, c) R S. 1

9 2 OHAD LUTZKY, MAAYAN KESHET 2.3. Part C. Yes, R 1 is an equivalence. Proof. Reflexivity: a A (a, a) R (a, a) R 1. Symmetry: (a, b) R 1 (b, a) R and by symmetry of R, (a, b) R (b, a) R 1. Transitivity: (a, b), (b, c) R 1 (b, a), (c, b) R and by symmetry of R, (a, b), (b, c) R and because of transitivity of R, (a, c) R and by symmetry of R, (c, a) R (a, c) R Part D. The claim is false. Take R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)}, S 1 = {(1, 1), (2, 2), (3, 3), (2, 3), (3, 2)}, therefore R S 1 = {(1, 1), (2, 2), (3, 3), (1, 2), (1, 3), (2, 1), (3, 2), (3, 3)} and (3, 1) / R S Part E. The claim is true. Proof. First we ll prove that if R S, then A/R A/S. We know that R S, so we ll assume WLOG that there is a pair a, b A such that (a, b) R \ S. Therefore, b [a] R, b / [a] S. By definition, [a] R A/R, and we ll show that [a] R / A/S. Assume by negation that in fact [a] R A/S. We know [a] S A/S, and we know 1 that A/S is a division. Since a [a] R, [a] S, then [a] R [a] S, and by definition of a division this is only possible if [a] R = [a] S. And since b [a] R, we have that b [a] S, and therefore (a, b) S, in contradiction to the assumption. Therefore, A/R A/S. Now we ll prove that if A/R A/S, then R S. We ll assume WLOG that there exists a A such that [a] R A/R but [a] R / A/S. By definition of A/S, [a] S A/S, and since [a] R / A/S this means that [a] R [a] S. Then, again WLOG, we ll assume that there exists b [a] R \ [a] S, and therefore (a, b) R \ S Part C. 3. Question 4 Proof. First we ll show that E A/R R: Assume (a, b) E A/R. Therefore exists a set p A/R such that a, b p. p could be written as [a] R, and we have that b [a] R, therefore (a, b) R. Now we ll show that R E A/R. Assume (a, b) R, therefore exists [a] R A/R, and b [a] R. Assign p = [a] R, and you have that there exists p such that a, b p and p A/R, therefore (a, b) E A/R Part D. Lemma 1. Assume P is a division of A, B P, and a B. Then B = [a] EP. Proof of Lemma??. Assume b B. Then by definition of E P, (a, b) E P, and therefore b [a] EP. We ve shown B [a] EP. Now assume c [a] EP. This means that (a, c) E P, and since P is a division over A, then E P A A, and therefore c A. Now, by definition of E P, this means that there is B P such that a, c P, and since a B, then B B. 1 See question 4A

10 LOGIC AND SET THEORY HW 3 3 And by definition of a division, this means that B = B. Therefore, c B. We ve shown [a] EP B. We have thus shown that B = [a] EP. Proof of??. Assume B P, and a B, then by Lemma??, B = [a] EP. Therefore B A/E P. We ve shown P A/E P. Assume a A, therefore [a] EP A/E P. By definition of a division, we know that P = A, therefore there exists B P such that a B. By Lemma??, B = [a] EP, and thus [a] EP P. We ve shown that A/E P P. We have thus shown that P = A/E P. 4. Question Part A. The claim is false. Take A = {0}, B = {0, 1}, F = {f 1 : x 0, f 2 : x 1}. f 1, f 2 are not onto B, and yet F covers B Part B. The claim is true. Proof. Let f be onto B. Therefore, for each b B, there is a A such that f(a) = b, therefore F covers B Part C. The claim is false. Take A = {0, 1}, B = {0}, F = {f 1 : x 0}. C 0 = {f 1 }, but f 1 (0) = f 1 (1), so f 1 isn t Part D. The claim is false. Take A = B = {0, 1}, F = {f 1 : x x, f 2 : x 1 x}. f 1, f 2 are 1-1, but C 0 = Question Part A. The claim is false. Take i = 1, j = 3, f 2 : x 2, f 3 : x 3. Obviously, (f 2, f 3 ) R 3. Assume by negation that f(2, f 3 ) R 1 R 3, then exists z such that (f 2, z) R 1, therefore f 2 N N 1, which it clearly isn t Part B. The claim is true. Proof. We will begin by making a simplification of the definition of R i. By definition, Therefore, N N i = { f N N For all k N, f(k) i } R i = { (f, g) N N N N For all k N, f(k) g(k) i } Now we will show that R j R i R i. Assume (f, g) R j R i, therefore there exists z such that (f, z) R j, (z, g) R i. This means that for any k N, f(k) z(k) j and z(k) g(k) i. By transitivity of the relation, we have that f(k) g(k) i, therefore (f, g) R i. Now we will show that R i R j R i. Assume (f, g) R i, therefore for all k N, f(k) g(k) i. Especially, f(k) f(k) i, and since i j, f(k) f(k) j, and therefore (f, f) R j. Since (f, g) R i as well, we have that (f, g) R i R j.

11 LOGIC AND SET THEORY - HW 4 OHAD LUTZKY, MAAYAN KESHET 1. Question 1 B = {0}, F = {x x + 2} 2.1. Part A. This claim is true. 2. Question 3 Proof. Mark a 1, a 2,..., a n+k = σ 1,..., σ n, τ 1,..., τ k. σ 1,..., σ n is a creation sequence, therefore for any 1 i n, either σ i B or σ i = f(σ k, σ l, σ m,... ) such that f F and k, l, m, < i. Therefore, for any such i, either a i B or a i = f(a k, a l, a m,... ) such that f F and k, l, m, < i. Similarily, τ 1,..., τ k is a creation sequence, so for all n + 1 i n + k, either a i B or a i = f(a k, a l, a m,... ) such that n + 1 k, l, m, i, and privately k, l, m, < i. Therefore a 1,..., a n+k is a creation sequence Part B. This claim is true, and the previous proof holds with a slight change - replace all occurences of n with Part C. This claim is true, and the previous proof holds with alterations. Despite the intertwining of the series, the claim that each a i is still either an element of B or a function of previous elements holds Part D. This claim is false. Take B = {0}, F = {x x + 1}, n = 1, σ 1 = 0, k = 3, τ 1 = 0, τ 2 = 1, τ 3 = 2. Then the proposed sequence is 0, 2, 1, 0 and the second entry, 2, is not in the base and not a function of Question Part A. The claim is false. Let Y = N, B = {{n} (N) n N}. We will show that B = N and N / X B,F. Proof. First we will show that B = N. B N: By definition of B, if n A and A B, then A = {n} and n N. So we will show that N B. If n N, then {n} (N), and again by definition of B, {n} B, therefore n B. We have shown that B = N. Now we will show that N / X B,F. We will do this by showing that for any A X B,F, A is finite. For the base, this is shown by definition, because each element b B = {n}, and is therefore finite. As for F, we have shown in class that for any two finite sets a, b, a b and a b are finite. Therefore any A X B,F is finite. Seeing as N is not finite, then N / X B,F. 1

12 2 OHAD LUTZKY, MAAYAN KESHET 3.2. Part B. The claim is false. Select Y = N, B = {N \ {n} (N) n N}. We will show that B / X B,F. Claim 1. B = Proof of Claim??. Assume by negation that there exists b B. Therefore b N and for any A B, b A. But by definition of B, N \ {b} B, therefore b / B. Lemma 1. Assume C N is a finite set, then N \ C is infinite. Proof of Lemma??. We have shown in class that for any finite set C N, there is a maximal element max C. Define f : N N \ C such that f(i) = max(c) i. Obviously, max(c) i N \ C. We will now show f is 1-1. Assume there exist i 1, i 2 N such that f(i 1 ) = f(i 2 ). Then max(c) i 1 = max(c) i 2, and we have that i 1 = i 2. We have shown a 1-1 function from N to N \ C, therefore N \ C is infinite. Claim 2. Assume B = {N \ {n} (N) n N}, F = {f, f } and let K = {N \ C (N) C N is finite }, then X B,F K. Proof of Claim??. Base: Each A B is explicitly defined as N \ {n}, {n} obviously being finite. Therefore B K. Closure: Assume A 1, A 2 K. Then by definition, A 1 = N \ C 1, A 2 = N \ C 2, and C 1, C 2 are finite. Therefore: f : By De-Morgan s laws, f (A 1, A 2 ) = (N\C 1 ) (N\C 2 = N\(C 1 C 2 ), and as we ve shown in class that, seeing as C 1, C 2 are finite, so is C 1 C 2. f : By De-Morgan s laws, f (A 1, A 2 ) = (N\C 1 ) (N\C 2 = N\(C 1 C 2 ), and as we ve shown in class that, seeing as C 1, C 2 are finite, so is C 1 C 2. Proof of Part??. We ve shown that B =, therefore B is finite. Therefore, by Lemma??, cannot be written as N \ C, C being finite, therefore B / K. And by Claim??, X B,F K, therefore B / X B,F. 4. Question 6 Proof. Let B v = {v}, F = {f σi Σ Σ σ i Σ, f σi (w) = wσ i }. Then by definition, Cone(v) = X Bv,F. We ll also mark K v = {w Σ Exists u Σ such that w = vu}. We now need to show that Cone(v) = K v. We ll show that K v Cone(v). Assume w K v, then by definition there exists a word u Σ such that w = vu. u Σ, so it can be written u = σ 1 σ 2... σ n, σ i Σ. We will show a creation sequence for vu in X Bv,F : a 1 : v Base a 2 : vσ 1 f σ1 (a 1 ) a 3 : vσ 1 σ 2 f σ2 (a 2 ). a n : vσ 1 σ 2... σ n f σn (a n 1 )

13 LOGIC AND SET THEORY - HW 4 3 Therefore vu X Bv,F, which means w Cone(v). We have shown that K v Cone(v). We will now show that Cone(v) K v by induction. Base: v = vɛ, ɛ Σ 1, therefore v K v. Closure: w K v, therefore w = vu for some u Σ. For any σ i Σ, f σi (w) = vuσ i. By definition of Σ, uσ i Σ, therefore vuσ i = f σi (w) K v. We have shown that Cone(v) = K v. 5. Question Part A. The claim is true. We will show a creation sequence for [ 7, ) in I A,P. a 1 : [ 7, 0] a 2 : [0, ) Base Base a 3 : [ 7, ) f(a 1, a 2 ) 5.2. Part B. The claim is false. Proof. Let Y = {[a, b] (R) a, b Q, a b} {[a, ) (R) a Q, a 0}. We will show that I A,P Y by induction. Obviously, [7, ) / Y, therefore [7, ) / I A,P. Base: If Z = [a, b] A, therefore Z Y (we defined the compact segments identically). If Z = [0, ), then since 0 0, Z Y again. Closure: Assume Z 1, Z 2 Y. We will show that f(z 1, Z 2 ) Y. If Z 1 = [a, ), Z 2 = [b, c] or Z 2 = [b, ), then since b Q, b, and thus f(z 1, Z 2 ) = Z 1 Y. If Z 1 = [a, b], If Z 2 = [c, d] or [c, ), and c b, then f(z 1, Z 2 ) = Z 1 Y. If Z 2 = [b, c] then f(z 1, Z 2 ) = [a, c] Y. If Z 2 = [b, ) then since Z 2 Y, b 0, and since Z 1 Y, a b, and therefore a 0. f(z 1, Z 2 ) = [a, ), and since a 0, we have f(z 1, Z 2 ) Y Part C. Reflextivity: True. Proof. Take a A. a a and min(a) = min(a). Therefore, a is a prefix of a (a, a) S. Symmetry: False. Take a = [4, 5], b = [1, 5].a = [4, 5] [1, 5] = b and max(a) = 5 = max(b). Therefore, a is a suffix of b (a, b) S. But, b = [1, 5] [4, 5] = a b is neither a prefix nor a suffix of a. (b, a) S. Anti-Symmetry: True. Proof. Assume (a, b), (b, a) S. We ll show a = b. (a, b) S a b and (b, a) S b a. Therefore, a = b. 1 It was not explicitly specified that the empty work ɛ Σ, but the claim is false otherwise

14 4 OHAD LUTZKY, MAAYAN KESHET Transitivity: False. Take a = [2, 3], b = [1, 3], c = [1, 4] A. a = [2, 3] [1, 3] = b and max(a) = 3 = max(b). Therefore, a is a suffix of b (a, b) S. b = [1, 3] [1, 4] = c and min(b) = 1 = min(c). Therefore b is a prefix of c (b, c) S. But min(a) = 2 1 = min(c) and max(a) = 3 4 = max(c) a is neither a prefix nor a suffix of c (a, c) S.

15 LOGIC & SET THEORY HW 5 OHAD LUTZKY, MAAYAN KESHET 1.1. B A. 1. Question 1 Proof. Assume there exists a subset B A such that B N. Therefore there exists a function f : N B such that f is 1-1 and onto B. Since B A, then f is privately also a 1-1 function f : N A A C. Proof. Let f : N A be a 1-1 function. Therefore, for any a Range(f), we can uniquely define f 1 (a) (since f is 1-1, there exists only one pair (b, a), therefore f 1 = b is well-defined). We will therefore define a function g : A A that maps any a Range(f) to its following element, and any other a to itself. Formally, (1) g(a) = { f(f 1 (a) + 1), a Range(f) a, a / Range(f) It s easy to see from (??) that g is well-defined as a function - for every a A we define a unique g(a). Furthermore, g is 1-1: Assume g(a) = g(b). Therefore, If a / Range(f), then trivially g(a) = g(b) = a = b. If a Range(f), then g(a) = f(... ), therefore also g(a) Range(f). In this case, g(b) Range(f) as well, and thus - by definition of g, b Range(f) (because otherwise, if b / Range(f), then neither is g(b)). Therefore we have that f(f 1 (a) + 1) = f(f 1 (b) + 1), and because f is 1-1, we have that f 1 (a) = f 1 (b), and then since f is a function, f 1 is 1-1, and thus a = b. All that remains is to show that g isn t onto A. We will show that there is no k A such that g(k) = f(0). For any k A, If k / Range(f), then g(k) = k / Range(f), and privately g(k) f(0). If k Range(f), then g(k) = f(f 1 (k) + 1). Seeing as dom(f) = N, then f 1 (k) 0, thus f 1 (k) + 1 > 0, therefore g(k) f(0). All in all, we ve shown a 1-1 function g : A A that is not onto A C B. Proof. Assume there exists a function g : A A which is 1-1 but not onto A. Therefore exists some ã A \ Range(g). Define therefore a function f : N A as such: (2) f(i) = { ã, i = 0 g(f(i 1)), i 1 Now define B = Range(f). Obviously f is onto B, and since g : A A, then B A. All that remains is to show that f is 1-1. We ll prove by induction on i: 1

16 2 OHAD LUTZKY, MAAYAN KESHET Base: (i = 0) If f(0) = f(x), then f(x) = ã / Range(g), and therefore by (??), x = 0. Closure: Assume that if for any x, f(i) = f(x) then x = i. Therefore, if f(i+1) = f(y), then g(f(y 1)) = g(f(i)), and since g is 1-1, f(y 1) = f(i), and by the inductive assumption, i = y 1, which means that y = i + 1. We ve shown a function f : N B A such that f is 1-1 and onto B, therefore B N. 2. Question Part A. The set is countable. It s obvious that the given set A is of same cardinality as N N, because for each relation R we are given, since it has only one pair, it can be written {(a, b)}, so we can map using the function f : A N N : {(a, b)} (a, b). Obviously this function is 1-1 and onto N N, because each pair can be created and different pairs are created by different elements of A. All that remains is to show that N N is countable. We will write the elements of N N: (0, 0) (0, 1) (0, 2)... (1, 0) (1, 1) (1, 2)... (2, 0) (2, 1) (2, 2) We can count members of N N by following the top-right to bottom-left diagonals. That is, the enumeration is (0, 0), (0, 1), (1, 0), (0, 2), (1, 1), (2, 0),.... It s clear to see that we arrive at every single pair in N N in finite time: In level 0, we count (0, 0), in level 1 we count (0, 1), (1, 0), in level i we count (0, i), (1, i 1), (2, i 2),..., (i, 0) - that is, in level i we count all of the vectors (a, b) such that a + b = i. Therefore, we arrive at each (a, b) no later than at level a + b, and thus before each element (a, b) we count only a finite number of elements. Thus N N is countable. A is also infinite. This is because f : i {(i, 0)} is clearly a 1-1 function from N to A Part B. The set is countable. We will first count the empty set. Then we will count {(0, 0)}. Then we will count all of the relations R that, for each pair (a, b) R, a + b 1. At each stage i we will count all of the relations R such that for each pair (a, b) R, a + b i. As we can see from the table in the previous part, that all of the possible pairs in this set are from the triangle between (i, 0), (0, 0), (0, i), and there are S = i k=1 k elements in this triangle, and thus 2S possible relations as such. Since i is finite, so are S and 2 S, and thus at each stage we count only a finite number of elements. For each relation in the set, we are given that it contains a finite number of pairs, therefore, if sorted by sum ((a, b) a+b), they have a maximum sum a + b, and thus we will reach them in the finite stage a + b. Therefore, we reach each relation in the set in a finite number of steps. The set is also infinite, we can use the same function as in Part A Part C. The set is non-countable. This is because each element of it is any possible R N N. Therefore this set is precisely (N N). Seeing as N N is infinite (and countable), then (N N) is, as we ve learnt in class, uncountable Part A. 3. Question 3 Lemma 1. If A is countable and F is finite, then F (A) is countable.

17 LOGIC & SET THEORY HW 5 3 Proof of Lemma??. A is countable, therefore A = {a 0, a 1, a 2,... }. F is finite, therefore F = {f 1, f 2, f 3,..., f p }. We will count the elements of F (A) by function: For each function we will iterate diagonally over possible values ) of indexes of a. That is, at step j, first we will count all f 1 (a i1, a i2,..., a in(f1 such that n(f 1) ) k=1 i k = j. We will then do the same for f 2, f 3, and so on until f p, and then move on to step j + 1. It s clear that there are a finite number of such vectors for which the sum of the indexes is less than j for any finite j, and since we have a finite number of functions, then each step will count a finite number of elements in F (A), and we ve generated all possible values of F resulting from A, thus F (A) has been counted and is, as such, countable. Proof of Part A. We will prove by induction. Base: For i = 0, D 0 = B, and as we are given, is countable. Closure: Assume that D i is countable. By Lemma??, F (D i ) is also countable, and as we ve seen in class, a union of two countable sets is countable Part B. Proof. Assume x X B,F. Therefore, x has a finite creation sequence {x i } such that for each i, either x i B or x i = f ( x j1, x j2,..., x jn(f) ) such that f F and for all k, j k < i. There also exists a finite n such that x = x n. Now, if x B, then trivially x i N Di. Otherwise, by the construction of F, for each x i there exists j such that x i D j. Therefore, there exists such j that all x i fori n D j, and therefore x n = x D j+1, and thus x n i N Di. Now assume x i N Di. Therefore there exists such j that x D j. By the construction of F (D i ), for every i, D i is comprised of elements x i such that either x i B or x i = f ( x j1, x j2,..., x jn(f) ) such that f F and for all k, jk < i. Therefore this holds true for x n as well, and the relevant x i are a proper creation sequence for x i in X B,F Part C. We have shown that under the given conditions, D i is countable for any i. Therefore i N Di is a countable union of countable sets, and as we ve shown in class - it is therefore itself countable. And as we ve shown, it is equal to X B,F, so it, in turn, is also countable. 4. Question Part A. The claim is false. Take A = Z, C = N, B = N, D = Z. We ve already shown all of these sets to be infinite and countable, thus all of equal cardinality. As we know, N Z, therefore C \D =, which is finite. However, A\B = Z\N = Z. We will show that Z N - take f : ( z) z. f is trivially 1-1 and onto N, therefore A \ B N, and the claim is false Part B. The claim is true. Proof. We know that A C, B D. Therefore there exist functions f : A C, g : B D that are both 1-1 and onto C, D respectively. Consider the function h : B A D C. For every function x B A, h(x) = h x such that h x (c) = g(x(f 1 (c))). It will now suffice to show that h is 1-1, because a function j : D C B A can be build, and WLOG it will also be 1-1, and by the Cantor-Bernstein theorem we will have cardinality equivelance.

18 4 OHAD LUTZKY, MAAYAN KESHET Assume that h(x) = h(y), therefore h x = h y, which means that for all c C, h x (c) = h y (c). Therefore g(x(f 1 (c))) = g(y(f 1 (c))). We know that g is 1-1, therefore x(f 1 (c)) = y(f 1 (c)). Since f is 1-1 and onto C, then f 1 is onto A, therefore the equality holds for every a A, so for every a, x(a) = y(a), therefore x = y. We have therefore shown one 1-1 function in one direction, and by symmetry we have one in the other, and thus B A D C Part C. The claim is true. Proof. Let us define f : ( A B) C A (B C), such that for all x ( A B) C, f(x) = f x : B C A, such that f x (b, c) = (x(c))(b). f is 1-1: Assume f(x) = f(y), therefore f x = f y. Thus for all pairs b, c B C, (x(c))(b) = (y(c))(b). Since this holds for every b B (because for each such b there is a pair (b, c) B C), then x(c) = y(c). Since this holds for every c C (same reason), then x = y. Let us define g : A (B C) ( A B) C, such that for all x A (B C), g(x) = g x : C A B, g x (c) = g x,c : B A, and g x,c (a) = (x(b, c))(a). We will show that g is 1-1. Assume g(x) = g(y), therefore g x = g y. Thus for all c C, g x (c) = g y (c), so g x,c = g y,c. Therefore for all a A, g x,c (a) = g y,c (a). So we have that for all a, b, c A, B, C, (x(b, c))(a) = (y(b, c))(a), and this is only possible if for all (b, c) B C, x(b, c) = y(b, c), so x = y. We ve shown a 1-1 function in each direction, so by the Cantor-Bernstein theorem, the sets are of equal cardinality Part D. The claim is false. Assume B = C = 0, A = 0, 1. Then A B has exactly two functions - constant 0 and constant 1, that is, A B = {f 0, f 1 }. Since B = C, also A C = {f 0, f 1 }, and thus A B A C = {(f 0, f 0 ), (f 0, f 1 ), (f 1, f 1 ), (f 1, f 0 )}, and A B A C = 4. However, B = C, therefore B C = B, and thus A B C = A B, so as we ve shown, A B C = A B = A. A is uncountable. 5. Question 5 Proof. Assume by contrast that A is countable. Therefore there exists f : N A which is 1-1 and onto A. Also, let B the set of infinte binary vectors with an infinite number of 1s and an infinite number of 0s. We will show a 1-1 function from B onto A: k : A B will be defined as k(x) = b such that b i = 1 i X. Because X is infinite, and for each i X, b i = 1, then b has an infinite number of 1s. Because N \ X is infinite, and for each i N \ X, i / X then b i = 0, then b has an infinite number of 0s. Therefore b B. Clearly this function is 1-1, because if WLOG a X 1, a / X 2, then f(x 1 ) a = 1 0 = f(x 2 ) a. It is also onto B because any vector B B can be represented by an appropriate set X for which every i that b i = 1 maintains i X. Again, by the same argument, since b has infinite 1s and 0s, both X and N \ X will be infinite. Now, we ve assumed that f is 1-1 and onto A, and proven that k is 1-1 and onto B. Therefore h = f k is 1-1 and onto B. Examine the values of h: (We don t know what they are, because f is unknown. We do know they re binary vectors though)

19 LOGIC & SET THEORY HW 5 5 h(0) = b 00 b 01 b 02 b 03 b 04 b 05 b 06 b h(1) = b 10 b 11 b 12 b 13 b 14 b 15 b 16 b h(2) = b 20 b 21 b 22 b 23 b 24 b 25 b 26 b Consider the following vector h : h = b 00 01b 13 01b As we ve shown, h is onto B. h B, seeing as it clearly has an infinite number of 0s and 1s. Therefore there exists i such that h = h(i). However, h(i) 3i = b i,3i, whereas h 3i = b i,3i, therefore for any i N, h h(i). This is in contradiction to h being onto B, which is only possible if our original assumption that f is onto A was false. Therefore A cannot be countable B. B is countable. Proof. We will use the same function k we ve defined before, only this time it will have the domain B, and the range B, which will be the binary vectors with a finite number of 0s. Because of the same arguments as before, k will be 1-1 and onto B - 0s are for i N \ X, and there are a finite number of those. Therefore, B B. All that remains is to show that B is countable. We can do this by counting the negatives in ordinary binary order, starting from the end, that is , , , , , ,.... Each vector with a finite number of 0s has a maximal index i M = argmax i N (b i = 0) Therefore the vector 1111 }{{... 1 } will be counted after it, and will be counted i M +1 at step 2 i M +1, then all vectors with a finite number of 0s are reached in a finite number of steps.

20 LOGIC AND SET THEORY HW 6 OHAD LUTZKY, MAAYAN KESHET 1. Question 1 Claim 1. Let X B,F Z be an inductively defined group, and x Z. Then x X B,F iff x has a creation sequence in X B,F. Because WFF was defined inductively as a subset of (Symb V ar), then the claim immediately answers question 1. Proof of Claim??. First direction: By structure induction. Let Y = {z Z z has a creation sequence in X B,F } Then we will show that X B,F Y. Basis: All y B have a trivial finite creation sequence: y (Base) Closure: We will show that Y is closed under F. Assume f i F is an m- valued function, y 1,..., y m Y, then y 1,..., y m each have some creation sequence s(y j ). As we ve shown in a previous homework exercise, concatenation of creation sequences yields a valid creation sequence. Therefore, we will take the concatenation s(y 1 ) s(y 2 )... s(y m ) f i (y 1,..., y m ). This is a valid creation sequence from the first entry in s(y 1 ) to the last entry of s(y m ) we have already shown validity, and the new entry f(... ) is valid because it is a function of y 1,..., y m, all of which are previous entries in the creation sequence. This creation sequence is finite because s(y j ) are all, by the inductive assumption, finite, and we ve only added 1 entry. Second direction: By induction on the length of the creation series. For the case where the length of the creation series is 1, we have already shown in a previous exercise that the creation series must be a single element of B, and is thus trivially a member of X B,F. Now, assume the claim is true for all creation series of length k, and we will show for length k + 1. Let s 1, s 2,..., s k, s k+1 be a creation series. Then each prefix s 1,..., s j such that j k is a creation series (we ve shown prefixes of creation sequences to be themselves valid creation sequences) of length j k, therefore by the inductive assumption, s 1,..., s k X B,F. Now, seeing as s 1,..., s k, s k+1 is also a valid creation sequence, then there are two options: If s k+1 B, then trivially s k+1 X B,F. Therefore we only need to show for the case that s k+1 = f i (s j1, s j2,..., s jm ) where f i F is an m-valued function. But this is also trivial, seeing as by definition, X B,F is closed under F Part A. 2. Question 2 1

21 2 OHAD LUTZKY, MAAYAN KESHET Proof. Let validpar be the property described i.e., validpar(ϕ) means that between any pair of parentheses of the form )w( in ϕ, w contains at least one connector. Formally, if we enumerate all parentheses in ϕ like so ϕ = ( 0 ( 1 ) 2 ) 3 ( 4 ) 5, and let # () (ϕ) be their count (6 in this case), then for all i < # () such that ) i is in ϕ (that is, the ith bracket is a closing bracket), then between it and ( i+1 there is a connector. Let Y = {ϕ (Symb V ar) validpar(ϕ)}. We will show by structure induction on WFF that WFF Y. Basis: For each i N, p i has no parentheses, then the claim is trivially held for those. Identically, it holds for T and F. Closure: Assume ϕ 1, ϕ 2 Y, and we will show that f (ϕ 1 ), f (ϕ 1, ϕ 2 ) Y. The claim is trivial for f (ϕ 1 ) = ϕ 1 we haven t added any new parentheses, and the claim already holds (by assumption) for ϕ 1. As for f (ϕ 1, ϕ 2 ) = (ϕ 1 ϕ 2 ), we must check for every closing bracket, that between it and the nearest following open bracket there is a connector. Let ) i be a closing bracket in ϕ 1 (if any exist). By the assumption, either there is a connector between ) i and ( i+1, or there is no ( i+1 in ϕ 1. In this case, the first following opening bracket, if any, will be in ϕ 2 and this will follow the connector. For every closing bracket in ϕ 2, again, since ϕ 2 maintains the inductive assumption, then each closing bracket in ϕ 2 is either followed by no opening bracket at all (not in ϕ 2, and we haven t added any), or is followed by a connector first Part B. Proof. Let onemorevar be the property described i.e., onemorevar(ϕ) means that # var (ϕ) = # con2 (ϕ). Let Y = {ϕ (Symb V ar) onemorevar(ϕ)}, and we will show that WFF Y by structure induction. Basis: For all atomic formulae ϕ WFF, # var (ϕ) = 1 whereas # con2 (ϕ) = 0, so the claim holds. Closure: We need to show that Y is closed under the following functions: Assuming ϕ Y, we can see that ϕ maintains # var (ϕ) = # var ( ϕ), # con2 (ϕ) = # con2 ( ϕ), as we ve only added one connector which is unary, therefore ϕ Y as well. Assuming ϕ 1, ϕ 2 Y, we have by definition of Y that # var (ϕ 1 ) = # con2 (ϕ 1 ) + 1, and # var (ϕ 2 ) = # con2 (ϕ 2 ) + 1. Examine ϕ 1 ϕ 2. It has all of the variables of ϕ 1 and ϕ 2, with no added variables, therefore # var (ϕ 1 ϕ 2 ) = # var (ϕ 1 ) + # var (ϕ 2 ). But by the assumption, this is equal to # con2 (ϕ 1 ) # con2 (ϕ 2 ) + 1. The number of binary connectors in ϕ 1 ϕ 2 is, plainly, # var (ϕ 1 )+# var (ϕ 2 )+1 (the causing the +1), so we have that # var (ϕ 1 ϕ 2 ) = # con2 (ϕ 1 ϕ 2 ) Question Part A. The claim is false. Take the example ϕ = p 0 p 0 p 0 p 0 - we must show that ϕ P OL, and that the longest chain of binary connectors in ϕ is not a prefix of ϕ. The latter is trivial the longest chain of connectors in ϕ is, which is clearly not a prefix of ϕ. All that remains is to show a creation sequence for ϕ over P OL, and by claim?? we will have vp P OL, thus ϕ will be a less counter example to the claim.

22 LOGIC AND SET THEORY HW 6 3 The following creation sequence will be appropriate: 1. p 0 (base) 2. p 0 (base) 3. p 0 p 0 ( 1, 2) 4. p 0 p 0 ( 3, 1) 5. p 0 p 0 p 0 p 0 ( 1, 4) 3.2. Part B. Claim 2. If ϕ P OL, then # var (ϕ) = # con2 (ϕ) + 1. Claim 3. If ψ P OL, and ϕ is a proper 1 prefix of ψ, then # var (ϕ) # con2 (ϕ)+1. Proof. Proof of Claim?? Let Y = {ψ (Symb V ar) # var (ψ) = # con2 (ψ) + 1}. We will show by strctural induction that P OL Y, and therefore for any ψ P OL, # var (ψ) = # con2 (ψ) + 1. Basis: For any atom p i V ar, # var (p i ) = 1, and # con2 (p i ) = 0, therefore the property is maintained. The same holds for T, F. Closure: We have to prove for both the unary and binary operations: Assume ϕ Y, and examine ϕ. Clearly we have added nothing but a unary connector, and removed nothing, thus # var ( ϕ) = # var (ϕ), # con2 ( ϕ) = # var (ϕ) By the inductive assumption # var ( ϕ) = # con2 ( ϕ) + 1, therefore ϕ Y. Assume ϕ, ψ Y, and examine α = ϕψ. We have clearly retained all previous variables and binary connectors, and added one. Thus, # con2 (α) = 1 + # con2 (ϕ) + # con2 (ψ) and # var (α) = # var (ϕ) + # var (ψ). But by the inductive assumption, # var (ϕ) + # var (ψ) = # con2 (ϕ) + # con2 (ψ) + 2 = # con2 (α) + 1 Therefore α Y. We have shown that P OL Y. Proof. Proof of Claim?? Let lackingprefix be the described property that is, lackingprefix(ψ) means that if ϕ is a proper prefix of ψ, then # var (ϕ) < # con2 (ϕ) + 1. Let Y = {ψ P OL lackingprefix(ψ)}, then we will show that Y P OL by structural induction. Note that we assume Y P OL, therefore we will have Y = P OL. Basis: All atoms p i, as well as T, F, have no proper prefixes, therefore the property holds trivially. Closure: We have to prove for both the unary and binary operations: Assume ψ Y, and examine ψ. Then there are two options for a proper prefix: If the proper prefix is simply, then obviously # var ( ) = 0 < 1 = # con2 ( ) + 1. Any other proper prefix ϕ of ψ can clearly be written as ϕ, ϕ being a proper prefix of ψ. By the assumption, ψ Y and therefore # var (ϕ) < # con2 (ϕ) + 1. But, once again, # var (ϕ) = # var ( ϕ), # con2 (ϕ) = # con2 ( ϕ), and all in all - lackingpref ix( ψ). Therefore ψ Y. Assume ψ 1, ψ 2 Y, and examine ψ 1 ψ 2. Let ϕ be a proper prefix of ψ 1 ψ 2, then there are the following options: If ϕ =, then # var ( ) = 0 < # con2 ( ) + 1 = 2. Then ϕ Y. 1 We will say that ϕ is a proper prefix of ψ if ϕ σ, ϕ ψ, and ϕ is a prefix of ψ.

23 4 OHAD LUTZKY, MAAYAN KESHET If ϕ = ϕ 1, ϕ 1 being a proper prefix of ψ 1, then obviously # var (ϕ) = # var (ϕ 1 ), and # con2 (ϕ) = # con2 (ϕ 1 ) + 1. By the inductive assumption, lackingprefix(ψ 1 ), therefore # var (ϕ 1 ) < # con2 (ϕ 1 ) + 1. All in all, we have that # var (ϕ) = # var (ϕ 1 ) < # con2 (ϕ 1 ) + 1 = # con2 (ϕ) < # con2 (ϕ) + 1 If ϕ = ψ 1, then # var (ϕ) = # var (ψ 1 ), # con2 (ϕ) = # con2 (ψ 1 ) + 1. But ψ 1 Y, therefore ψ 1 P OL, and by Claim??, # var (ψ 1 ) = # con2 (ψ 1 ) + 1. All in all, we have that # var (ϕ) = # var (ψ 1 ) = # con2 (ψ 1 ) + 1 = # con2 (ϕ) < # con2 (ϕ) + 1 If ϕ = ψ 1 ϕ 2, ϕ 2 being a proper prefix of ψ 2, then # var (ϕ) = # var (ψ 1 ) + # var (ϕ 2 ), # con2 (ϕ) = 1 + # con2 (ψ 1 ) + # con2 (ϕ 2 ). Again, ψ 1 P OL, therefore # var (ψ 1 ) = # con2 (ψ 1 ) + 1, and lackingprefix(ψ 2 ), thus # var (ϕ 2 ) < # con2 (ϕ 2 ) + 1. All in all, # var (ϕ) = = # var (ψ 1 ) + # var (ϕ 2 ) = # con2 (ψ 1 ) + 1# var (ϕ 2 ) < # con2 (ψ 1 ) + # con2 (ϕ 2 ) = # con2 (ϕ) + 1 We have shown that Y = P OL, therefore for every prefix ϕ of a prefix formula ψ P OL, # var (ϕ) < # con2 (ψ) + 1. Proof of??. Assume ϕ, ψ P OL, and that ϕ is a prefix of ψ. We need to show that ϕ = ψ. Assume by contrast that ϕ ψ, then by Claim??, # var (ϕ) # con2 (ϕ)+1, and then by reversal of Claim??, ϕ / P OL Part C. Proof. Let X be either P OL or WFF. In either case, X is infinite: V ar X, and V ar is infinite. Furthermore, X is countable: X is, in both cases, an inductive set with a countable basis (V ar is defined as an enumeration of the atomic formulae p i, and the addition of T, F, by the infinite hotel theorem, keeps it countable), and a finite closure ( F = 4 in both cases), and thus by a theorem we ve shown in HW 5, X is countable. We ve shown both P OL and WFFto be infinite and countable. Thus we have P OL N, WFF N, and therefore P OL WFF Part A. 4. Question 4 Proof. We need to show that WFF is closed under the subst function. We will show this by structure induction: Basis: If ϕ = p i, then for any substitution s, subst(ϕ, s) = s(p i ). By definition, s(p i ) WFF. If ϕ T, F, then for any substitution s, subst(ϕ, s) = ϕ, and by the assumption ϕ WFF. Closure: We need to show that WFF is closed under subst, for both binary and unary functions on formulae in WFF: Assume ϕ WFF, and that for any substitution s, subst(ϕ, s) WFF. Then subst( ϕ, s) = subst(ϕ, s), and since subst(ϕ, s) WFF, by definition of WFF, subst(ϕ, s) WFF.

24 LOGIC AND SET THEORY HW 6 5 Assume ϕ 1, ϕ 2 WFF, and that for any s : V ar WFF, both subst(ϕ 1, s) WFF and subst(ϕ 2, s) WFF. Then subst((ϕ 1 ϕ 2 ), s) = (subst(ϕ 1, s) subst(ϕ 2, s)) By definition of WFF, since by the assumption both subst(ϕ 1, s) and subst(ϕ 2, s) WFF, then so is (subst(ϕ 1, s) subst(ϕ 2, s)) Part B. The claim is false. Take s = s T, that is, s(p i ) = T for any natural i, and take t = I, that is, s(p i ) = p i for any natural i. Then take ϕ = T. By definition of subst, subst(ϕ, s) = subst(ϕ, t) = T, yet clearly s t Parts C,D. Definition. Let P n i=0 = {p 0, p 1, p 2,..., p n }. Let P i=0 = {p 0, p 1, p 2, p 3,... } = V ar. Claim 4. For any natural n or n =, subst 2 (P n i=0, s T ) = {T}. Proof of Claim??. Assume ϕ subst 2 (Pi=0 n, s). Then there exists ψ Pn i=0 such that ϕ = subst(ψ, s T ). But by definition of Pi=0 n, the only possible values for ψ are p i, and subst(p i, s T ) = s T (p i ) = T for any p i of these. Then ϕ = T, so subst 2 (Pi=0 n, s) {T}. As we ve shown, T subst 2(Pi=0 n, s), therefore {T} subst 2 (Pi=0 n, s). Both claims C and D are false. Counterexample for Part C: Take s = s T, Σ = Pi=0 42. Clearly, Σ is finite, and furthermore Σ = 42. However, by Claim??, subst 2 (Σ, s) = 1, thus Σ subst 2 (Σ, s). Counterexample for Part D: Take s = s T, Σ = Pi=0. As we ve shown in class, Σ = V ar is infinite. However, by Claim??, subst 2 (Σ, s) = 1, thus Σ subst 2 (Σ, s).

25 LOGIC & SET THEORY HW 7 OHAD LUTZKY 2.1. Part A. 2. Question 2 Proof. Basis: For k = 0, Σ =, then Σ = F. Take any assignment z, then it trivially does not satisfy Σ. Also, trivially there does not exist ϕ Σ which z satisfies. Closure: Assume the claim holds for Σ = k, we ll show it for Σ = k + 1. First direction: Assume there exists ϕ Σ such that z ϕ. Seeing as Σ = {ϕ 0,..., ϕ k 1, ϕ k }, either ϕ = ϕ k or ϕ = ϕ i where i < k. Assume the former, then by T T, z must satisfy Σ = ( {ϕ 0,..., ϕ k 1 } ϕ k ). If we assume the latter, then by the inductive assumption, since there exists ϕ i {ϕ 0,..., ϕ k 1 which z satisfies, then z satisfies {ϕ 0,..., ϕ k 1 }, and thus by T T it satisfies Σ. Second direction: Assume that z satisfies Σ. Then by T T, it either satisfies ϕ k or it satisfies {ϕ 0,..., ϕ k 1 } (or both). If we assume the former, then we re done - we ve found a formula in Σ which z satisfies. Assume then, that z does not satisfy ϕ k. Then by T T, as we ve said, it must satisfy {ϕ 0,..., ϕ k 1 }. But by the inductive assumption, this means that there exists ϕ i with i < k such that z satisfies ϕ i. Obviously, ϕ i Σ, and we re done Part B. Proof. Basis: For k = 0, Σ =, then Σ = T. Take any assignment z, then it trivially satisfies Σ. Also, trivially it satisfies every formula in Σ, so z Σ. Closure: Assume the claim holds for Σ = k, we ll show it for Σ = k + 1. First direction: Assume that z Σ. Then for every ϕ Σ, z satisfies ϕ. Privately, z also satisfies {ϕ 0,..., ϕ k 1 }, and thus by the inductive assumption it satisfies {ϕ 0,..., ϕ k 1 }. Also, it privately satisfies ϕ k. Thus, by T T, it satisfies Σ. Second direction: Assume that z satisfies Σ. Then by T T, it both satisfies ϕ k and {ϕ 0,..., ϕ k 1 }. By the inductive assumption, this means that it also satisfies {ϕ 0,..., ϕ k 1 }, and altogether we ve shown that it satisfies every formula in Σ, that is, z Σ Part C. Proof. Assume z satisfies k 1 i=0 ( ϕ i). Then by Part B, it satisfies ϕ i for all i < k. By T T, that means that it does not satisfy ϕ i for all i < k, and then by Part A, that means that it does not satisfy k 1 i=0 ϕ i. But, again by T T, we have that z satisfies k 1 i=0 ϕ i. 1

26 2 OHAD LUTZKY Reversal of the proverbial arrows will give us the other direction, and thus we have shown logical equivelance of the two formulae Part D. Proof. Assume z satisfies k 1 i=0 ( ϕ i). Then by T T, it does not satisfy k 1 i=0 ( ϕ i). By Part B, this means that there exists ϕ i with i < k such that z does not satisfy ϕ i. Therefore, by T T, there exists ϕ i such that z does satisfy ϕ i, and then by Part A, this means that z satisfies k 1 i=0 ( ϕ i). Reversal of the proverbial arrows will give us the other direction, and thus we have shown logical equivelance of the two formulae. 3. Question Part A. The claim is false. is trivially, antisymmetric with respect to any assignment, but is also emptily satisfiable by any assignment Part B. The claim is false. Take Σ 1 =, Σ 2 = {ϕ 0 }. As in part A, L(Σ 1 ) = ASS, but for any assignment z, there does not exist α Σ 2 such that z(α) z(ϕ 0 ), since only ϕ 0 Σ 2, thus L(Σ 2 ) =. In summary, L(Σ 1 ) = ASS, L(Σ 2 ) =, Σ 1 Σ 2 = Σ 2, L(Σ 2 ) = L(Σ 2 ) = L(Σ 1 ) L(Σ 2 ) = ASS Part A. 4. Question 4 Lemma 1 (The Chocolate Chip Cookie lemma). If A, B (WFF), α WFF, and A B α, then A α and B α. Proof of Lemma??. It suffices to show that A α, and then symmetrically, B α. We must therefore show that for each z ASS, z A z α 1. But z A means that for any ϕ A, z ϕ. Privately, this holds for ϕ A B A, therefore z A B. But by the assumption, this means that z α. Thus A α. Proof of 4A. Assume T, T are theories. If T T α, then by the Chocolate Chip Cookie Lemma (??), both T α and T α. But T, T are theories, thus α T, α T, or in other words (symbols), α T T. We have shown that if T T α, then α T T, so T T is a theory Part B. Proof. Assume by contrast that neither T T nor T T. Therefore exist α T \ T, β T \ T, and thus α, β T T. Then any assignment which satisfies T T would have to satisfy α, β, and so by T T, it satisfies α β, or in other words T T α β. But T T is a theory, so α β T T, meaning α β T or α β T. Assume the former, then any assignment which satisfies T must satisfy α β, and by T T, to do this it must satisfy β, meaning T β. Thus β T, in contrast to the assumption. If we assume the latter, that is, α β T, then we identically reach the conclusion that α T, again in contrast to the assumption. Thus either T T, ort T. 1 We denote z satisfies ϕ WFF or z satisfies Σ (WFF) by z ϕ, z Σ respectively.

Notes on ordinals and cardinals

Notes on ordinals and cardinals Notes on ordinals and cardinals Reed Solomon 1 Background Terminology We will use the following notation for the common number systems: N = {0, 1, 2,...} = the natural numbers Z = {..., 2, 1, 0, 1, 2,...}

More information

In N we can do addition, but in order to do subtraction we need to extend N to the integers

In N we can do addition, but in order to do subtraction we need to extend N to the integers Chapter The Real Numbers.. Some Preliminaries Discussion: The Irrationality of 2. We begin with the natural numbers N = {, 2, 3, }. In N we can do addition, but in order to do subtraction we need to extend

More information

In N we can do addition, but in order to do subtraction we need to extend N to the integers

In N we can do addition, but in order to do subtraction we need to extend N to the integers Chapter 1 The Real Numbers 1.1. Some Preliminaries Discussion: The Irrationality of 2. We begin with the natural numbers N = {1, 2, 3, }. In N we can do addition, but in order to do subtraction we need

More information

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Chapter : Logic Topics:. Statements, Negation, and Compound Statements.2 Truth Tables and Logical Equivalences.3

More information

Chapter 1. Sets and Mappings

Chapter 1. Sets and Mappings Chapter 1. Sets and Mappings 1. Sets A set is considered to be a collection of objects (elements). If A is a set and x is an element of the set A, we say x is a member of A or x belongs to A, and we write

More information

Axioms of separation

Axioms of separation Axioms of separation These notes discuss the same topic as Sections 31, 32, 33, 34, 35, and also 7, 10 of Munkres book. Some notions (hereditarily normal, perfectly normal, collectionwise normal, monotonically

More information

MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017

MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017 MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017 Definition: A set A is finite if there exists a nonnegative integer c such that there exists a bijection from A

More information

0 Sets and Induction. Sets

0 Sets and Induction. Sets 0 Sets and Induction Sets A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a A to denote that a is an element of the set

More information

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is 1. Describe the elements of the set (Z Q) R N. Is this set countable or uncountable? Solution: The set is equal to {(x, y) x Z, y N} = Z N. Since the Cartesian product of two denumerable sets is denumerable,

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

Foundations Revision Notes

Foundations Revision Notes oundations Revision Notes hese notes are designed as an aid not a substitute for revision. A lot of proofs have not been included because you should have them in your notes, should you need them. Also,

More information

One-to-one functions and onto functions

One-to-one functions and onto functions MA 3362 Lecture 7 - One-to-one and Onto Wednesday, October 22, 2008. Objectives: Formalize definitions of one-to-one and onto One-to-one functions and onto functions At the level of set theory, there are

More information

A Logician s Toolbox

A Logician s Toolbox A Logician s Toolbox 461: An Introduction to Mathematical Logic Spring 2009 We recast/introduce notions which arise everywhere in mathematics. All proofs are left as exercises. 0 Notations from set theory

More information

Meta-logic derivation rules

Meta-logic derivation rules Meta-logic derivation rules Hans Halvorson February 19, 2013 Recall that the goal of this course is to learn how to prove things about (as opposed to by means of ) classical first-order logic. So, we will

More information

Chapter 1 : The language of mathematics.

Chapter 1 : The language of mathematics. MAT 200, Logic, Language and Proof, Fall 2015 Summary Chapter 1 : The language of mathematics. Definition. A proposition is a sentence which is either true or false. Truth table for the connective or :

More information

Solution. 1 Solutions of Homework 1. 2 Homework 2. Sangchul Lee. February 19, Problem 1.2

Solution. 1 Solutions of Homework 1. 2 Homework 2. Sangchul Lee. February 19, Problem 1.2 Solution Sangchul Lee February 19, 2018 1 Solutions of Homework 1 Problem 1.2 Let A and B be nonempty subsets of R + :: {x R : x > 0} which are bounded above. Let us define C = {xy : x A and y B} Show

More information

Functions and cardinality (solutions) sections A and F TA: Clive Newstead 6 th May 2014

Functions and cardinality (solutions) sections A and F TA: Clive Newstead 6 th May 2014 Functions and cardinality (solutions) 21-127 sections A and F TA: Clive Newstead 6 th May 2014 What follows is a somewhat hastily written collection of solutions for my review sheet. I have omitted some

More information

Mathematics 220 Workshop Cardinality. Some harder problems on cardinality.

Mathematics 220 Workshop Cardinality. Some harder problems on cardinality. Some harder problems on cardinality. These are two series of problems with specific goals: the first goal is to prove that the cardinality of the set of irrational numbers is continuum, and the second

More information

Date: October 24, 2008, Friday Time: 10:40-12:30. Math 123 Abstract Mathematics I Midterm Exam I Solutions TOTAL

Date: October 24, 2008, Friday Time: 10:40-12:30. Math 123 Abstract Mathematics I Midterm Exam I Solutions TOTAL Date: October 24, 2008, Friday Time: 10:40-12:30 Ali Sinan Sertöz Math 123 Abstract Mathematics I Midterm Exam I Solutions 1 2 3 4 5 TOTAL 20 20 20 20 20 100 Please do not write anything inside the above

More information

ECARES Université Libre de Bruxelles MATH CAMP Basic Topology

ECARES Université Libre de Bruxelles MATH CAMP Basic Topology ECARES Université Libre de Bruxelles MATH CAMP 03 Basic Topology Marjorie Gassner Contents: - Subsets, Cartesian products, de Morgan laws - Ordered sets, bounds, supremum, infimum - Functions, image, preimage,

More information

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition. Math 231 Exam Practice Problem Solutions WARNING: This is not a sample test. Problems on the exams may or may not be similar to these problems. These problems are just intended to focus your study of the

More information

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010) http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product

More information

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9

MAT 570 REAL ANALYSIS LECTURE NOTES. Contents. 1. Sets Functions Countability Axiom of choice Equivalence relations 9 MAT 570 REAL ANALYSIS LECTURE NOTES PROFESSOR: JOHN QUIGG SEMESTER: FALL 204 Contents. Sets 2 2. Functions 5 3. Countability 7 4. Axiom of choice 8 5. Equivalence relations 9 6. Real numbers 9 7. Extended

More information

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality Math 336-Modern Algebra Lecture 08 9/26/4. Cardinality I started talking about cardinality last time, and you did some stuff with it in the Homework, so let s continue. I said that two sets have the same

More information

Let us first solve the midterm problem 4 before we bring up the related issues.

Let us first solve the midterm problem 4 before we bring up the related issues. Math 310 Class Notes 6: Countability Let us first solve the midterm problem 4 before we bring up the related issues. Theorem 1. Let I n := {k N : k n}. Let f : I n N be a one-toone function and let Im(f)

More information

Herbrand Theorem, Equality, and Compactness

Herbrand Theorem, Equality, and Compactness CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Herbrand Theorem, Equality, and Compactness The Herbrand Theorem We now consider a complete method for proving the unsatisfiability of sets of first-order

More information

Theorems. Theorem 1.11: Greatest-Lower-Bound Property. Theorem 1.20: The Archimedean property of. Theorem 1.21: -th Root of Real Numbers

Theorems. Theorem 1.11: Greatest-Lower-Bound Property. Theorem 1.20: The Archimedean property of. Theorem 1.21: -th Root of Real Numbers Page 1 Theorems Wednesday, May 9, 2018 12:53 AM Theorem 1.11: Greatest-Lower-Bound Property Suppose is an ordered set with the least-upper-bound property Suppose, and is bounded below be the set of lower

More information

CITS2211 Discrete Structures (2017) Cardinality and Countability

CITS2211 Discrete Structures (2017) Cardinality and Countability CITS2211 Discrete Structures (2017) Cardinality and Countability Highlights What is cardinality? Is it the same as size? Types of cardinality and infinite sets Reading Sections 45 and 81 84 of Mathematics

More information

MAT115A-21 COMPLETE LECTURE NOTES

MAT115A-21 COMPLETE LECTURE NOTES MAT115A-21 COMPLETE LECTURE NOTES NATHANIEL GALLUP 1. Introduction Number theory begins as the study of the natural numbers the integers N = {1, 2, 3,...}, Z = { 3, 2, 1, 0, 1, 2, 3,...}, and sometimes

More information

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations D. R. Wilkins Academic Year 1996-7 1 Number Systems and Matrix Algebra Integers The whole numbers 0, ±1, ±2, ±3, ±4,...

More information

Math 455 Some notes on Cardinality and Transfinite Induction

Math 455 Some notes on Cardinality and Transfinite Induction Math 455 Some notes on Cardinality and Transfinite Induction (David Ross, UH-Manoa Dept. of Mathematics) 1 Cardinality Recall the following notions: function, relation, one-to-one, onto, on-to-one correspondence,

More information

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero Chapter Limits of Sequences Calculus Student: lim s n = 0 means the s n are getting closer and closer to zero but never gets there. Instructor: ARGHHHHH! Exercise. Think of a better response for the instructor.

More information

6 CARDINALITY OF SETS

6 CARDINALITY OF SETS 6 CARDINALITY OF SETS MATH10111 - Foundations of Pure Mathematics We all have an idea of what it means to count a finite collection of objects, but we must be careful to define rigorously what it means

More information

Outline Inverse of a Relation Properties of Relations. Relations. Alice E. Fischer. April, 2018

Outline Inverse of a Relation Properties of Relations. Relations. Alice E. Fischer. April, 2018 Relations Alice E. Fischer April, 2018 1 Inverse of a Relation 2 Properties of Relations The Inverse of a Relation Let R be a relation from A to B. Define the inverse relation, R 1 from B to A as follows.

More information

Topology. Xiaolong Han. Department of Mathematics, California State University, Northridge, CA 91330, USA address:

Topology. Xiaolong Han. Department of Mathematics, California State University, Northridge, CA 91330, USA  address: Topology Xiaolong Han Department of Mathematics, California State University, Northridge, CA 91330, USA E-mail address: Xiaolong.Han@csun.edu Remark. You are entitled to a reward of 1 point toward a homework

More information

Solutions to Homework Assignment 2

Solutions to Homework Assignment 2 Solutions to Homework Assignment Real Analysis I February, 03 Notes: (a) Be aware that there maybe some typos in the solutions. If you find any, please let me know. (b) As is usual in proofs, most problems

More information

CS 455/555: Mathematical preliminaries

CS 455/555: Mathematical preliminaries CS 455/555: Mathematical preliminaries Stefan D. Bruda Winter 2019 SETS AND RELATIONS Sets: Operations: intersection, union, difference, Cartesian product Big, powerset (2 A ) Partition (π 2 A, π, i j

More information

Week Some Warm-up Questions

Week Some Warm-up Questions 1 Some Warm-up Questions Week 1-2 Abstraction: The process going from specific cases to general problem. Proof: A sequence of arguments to show certain conclusion to be true. If... then... : The part after

More information

Introduction to Real Analysis

Introduction to Real Analysis Christopher Heil Introduction to Real Analysis Chapter 0 Online Expanded Chapter on Notation and Preliminaries Last Updated: January 9, 2018 c 2018 by Christopher Heil Chapter 0 Notation and Preliminaries:

More information

Introduction to Proofs in Analysis. updated December 5, By Edoh Y. Amiran Following the outline of notes by Donald Chalice INTRODUCTION

Introduction to Proofs in Analysis. updated December 5, By Edoh Y. Amiran Following the outline of notes by Donald Chalice INTRODUCTION Introduction to Proofs in Analysis updated December 5, 2016 By Edoh Y. Amiran Following the outline of notes by Donald Chalice INTRODUCTION Purpose. These notes intend to introduce four main notions from

More information

General Notation. Exercises and Problems

General Notation. Exercises and Problems Exercises and Problems The text contains both Exercises and Problems. The exercises are incorporated into the development of the theory in each section. Additional Problems appear at the end of most sections.

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations

UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS MATH 122: Logic and Foundations UNIVERSITY OF VICTORIA DECEMBER EXAMINATIONS 2013 MATH 122: Logic and Foundations Instructor and section (check one): K. Mynhardt [A01] CRN 12132 G. MacGillivray [A02] CRN 12133 NAME: V00#: Duration: 3

More information

1 Basic Combinatorics

1 Basic Combinatorics 1 Basic Combinatorics 1.1 Sets and sequences Sets. A set is an unordered collection of distinct objects. The objects are called elements of the set. We use braces to denote a set, for example, the set

More information

Sets, Structures, Numbers

Sets, Structures, Numbers Chapter 1 Sets, Structures, Numbers Abstract In this chapter we shall introduce most of the background needed to develop the foundations of mathematical analysis. We start with sets and algebraic structures.

More information

5 Set Operations, Functions, and Counting

5 Set Operations, Functions, and Counting 5 Set Operations, Functions, and Counting Let N denote the positive integers, N 0 := N {0} be the non-negative integers and Z = N 0 ( N) the positive and negative integers including 0, Q the rational numbers,

More information

A BRIEF INTRODUCTION TO ZFC. Contents. 1. Motivation and Russel s Paradox

A BRIEF INTRODUCTION TO ZFC. Contents. 1. Motivation and Russel s Paradox A BRIEF INTRODUCTION TO ZFC CHRISTOPHER WILSON Abstract. We present a basic axiomatic development of Zermelo-Fraenkel and Choice set theory, commonly abbreviated ZFC. This paper is aimed in particular

More information

Boolean Algebras. Chapter 2

Boolean Algebras. Chapter 2 Chapter 2 Boolean Algebras Let X be an arbitrary set and let P(X) be the class of all subsets of X (the power set of X). Three natural set-theoretic operations on P(X) are the binary operations of union

More information

2.23 Theorem. Let A and B be sets in a metric space. If A B, then L(A) L(B).

2.23 Theorem. Let A and B be sets in a metric space. If A B, then L(A) L(B). 2.23 Theorem. Let A and B be sets in a metric space. If A B, then L(A) L(B). 2.24 Theorem. Let A and B be sets in a metric space. Then L(A B) = L(A) L(B). It is worth noting that you can t replace union

More information

MATH NEW HOMEWORK AND SOLUTIONS TO PREVIOUS HOMEWORKS AND EXAMS

MATH NEW HOMEWORK AND SOLUTIONS TO PREVIOUS HOMEWORKS AND EXAMS MATH. 4433. NEW HOMEWORK AND SOLUTIONS TO PREVIOUS HOMEWORKS AND EXAMS TOMASZ PRZEBINDA. Final project, due 0:00 am, /0/208 via e-mail.. State the Fundamental Theorem of Algebra. Recall that a subset K

More information

ASSIGNMENT 1 SOLUTIONS

ASSIGNMENT 1 SOLUTIONS MATH 271 ASSIGNMENT 1 SOLUTIONS 1. (a) Let S be the statement For all integers n, if n is even then 3n 11 is odd. Is S true? Give a proof or counterexample. (b) Write out the contrapositive of statement

More information

SETS AND FUNCTIONS JOSHUA BALLEW

SETS AND FUNCTIONS JOSHUA BALLEW SETS AND FUNCTIONS JOSHUA BALLEW 1. Sets As a review, we begin by considering a naive look at set theory. For our purposes, we define a set as a collection of objects. Except for certain sets like N, Z,

More information

Cardinality and ordinal numbers

Cardinality and ordinal numbers Cardinality and ordinal numbers The cardinality A of a finite set A is simply the number of elements in it. When it comes to infinite sets, we no longer can speak of the number of elements in such a set.

More information

MA 1124 Solutions 14 th May 2012

MA 1124 Solutions 14 th May 2012 MA 1124 Solutions 14 th May 2012 1 (a) Use True/False Tables to prove (i) P = Q Q = P The definition of P = Q is given by P Q P = Q T T T T F F F T T F F T So Q P Q = P F F T T F F F T T T T T Since the

More information

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Section 2.1 Introduction Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Important for counting. Programming languages have set operations. Set theory

More information

Countability. 1 Motivation. 2 Counting

Countability. 1 Motivation. 2 Counting Countability 1 Motivation In topology as well as other areas of mathematics, we deal with a lot of infinite sets. However, as we will gradually discover, some infinite sets are bigger than others. Countably

More information

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati Important 1. No questions about the paper will be entertained during

More information

Short notes on Axioms of set theory, Well orderings and Ordinal Numbers

Short notes on Axioms of set theory, Well orderings and Ordinal Numbers Short notes on Axioms of set theory, Well orderings and Ordinal Numbers August 29, 2013 1 Logic and Notation Any formula in Mathematics can be stated using the symbols and the variables,,,, =, (, ) v j

More information

= ϕ r cos θ. 0 cos ξ sin ξ and sin ξ cos ξ. sin ξ 0 cos ξ

= ϕ r cos θ. 0 cos ξ sin ξ and sin ξ cos ξ. sin ξ 0 cos ξ 8. The Banach-Tarski paradox May, 2012 The Banach-Tarski paradox is that a unit ball in Euclidean -space can be decomposed into finitely many parts which can then be reassembled to form two unit balls

More information

Introductory Analysis I Fall 2014 Homework #5 Solutions

Introductory Analysis I Fall 2014 Homework #5 Solutions Introductory Analysis I Fall 2014 Homework #5 Solutions 6. Let M be a metric space, let C D M. Now we can think of C as a subset of the metric space M or as a subspace of the metric space D (D being a

More information

ABOUT THE CLASS AND NOTES ON SET THEORY

ABOUT THE CLASS AND NOTES ON SET THEORY ABOUT THE CLASS AND NOTES ON SET THEORY About the Class Evaluation. Final grade will be based 25%, 25%, 25%, 25%, on homework, midterm 1, midterm 2, final exam. Exam dates. Midterm 1: Oct 4. Midterm 2:

More information

NOTES ON WELL ORDERING AND ORDINAL NUMBERS. 1. Logic and Notation Any formula in Mathematics can be stated using the symbols

NOTES ON WELL ORDERING AND ORDINAL NUMBERS. 1. Logic and Notation Any formula in Mathematics can be stated using the symbols NOTES ON WELL ORDERING AND ORDINAL NUMBERS TH. SCHLUMPRECHT 1. Logic and Notation Any formula in Mathematics can be stated using the symbols,,,, =, (, ) and the variables v j : where j is a natural number.

More information

Foundations of Mathematics

Foundations of Mathematics Foundations of Mathematics L. Pedro Poitevin 1. Preliminaries 1.1. Sets We will naively think of a set as a collection of mathematical objects, called its elements or members. To indicate that an object

More information

Introduction to Proofs

Introduction to Proofs Introduction to Proofs Notes by Dr. Lynne H. Walling and Dr. Steffi Zegowitz September 018 The Introduction to Proofs course is organised into the following nine sections. 1. Introduction: sets and functions

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to

More information

Math 105A HW 1 Solutions

Math 105A HW 1 Solutions Sect. 1.1.3: # 2, 3 (Page 7-8 Math 105A HW 1 Solutions 2(a ( Statement: Each positive integers has a unique prime factorization. n N: n = 1 or ( R N, p 1,..., p R P such that n = p 1 p R and ( n, R, S

More information

Chapter 1. Logic and Proof

Chapter 1. Logic and Proof Chapter 1. Logic and Proof 1.1 Remark: A little over 100 years ago, it was found that some mathematical proofs contained paradoxes, and these paradoxes could be used to prove statements that were known

More information

Homework #5 Solutions

Homework #5 Solutions Homework #5 Solutions p 83, #16. In order to find a chain a 1 a 2 a n of subgroups of Z 240 with n as large as possible, we start at the top with a n = 1 so that a n = Z 240. In general, given a i we will

More information

Economics 204 Summer/Fall 2011 Lecture 2 Tuesday July 26, 2011 N Now, on the main diagonal, change all the 0s to 1s and vice versa:

Economics 204 Summer/Fall 2011 Lecture 2 Tuesday July 26, 2011 N Now, on the main diagonal, change all the 0s to 1s and vice versa: Economics 04 Summer/Fall 011 Lecture Tuesday July 6, 011 Section 1.4. Cardinality (cont.) Theorem 1 (Cantor) N, the set of all subsets of N, is not countable. Proof: Suppose N is countable. Then there

More information

Some. AWESOME Great Theoretical Ideas in Computer Science about Generating Functions Probability

Some. AWESOME Great Theoretical Ideas in Computer Science about Generating Functions Probability 15-251 Some AWESOME Great Theoretical Ideas in Computer Science about Generating Functions Probability 15-251 Some AWESOME Great Theoretical Ideas in Computer Science about Generating Functions Infinity

More information

(2) Generalize De Morgan s laws for n sets and prove the laws by induction. 1

(2) Generalize De Morgan s laws for n sets and prove the laws by induction. 1 ARS DIGITA UNIVERSITY MONTH 2: DISCRETE MATHEMATICS PROFESSOR SHAI SIMONSON PROBLEM SET 2 SOLUTIONS SET, FUNCTIONS, BIG-O, RATES OF GROWTH (1) Prove by formal logic: (a) The complement of the union of

More information

1 of 8 7/15/2009 3:43 PM Virtual Laboratories > 1. Foundations > 1 2 3 4 5 6 7 8 9 6. Cardinality Definitions and Preliminary Examples Suppose that S is a non-empty collection of sets. We define a relation

More information

A Short Review of Cardinality

A Short Review of Cardinality Christopher Heil A Short Review of Cardinality November 14, 2017 c 2017 Christopher Heil Chapter 1 Cardinality We will give a short review of the definition of cardinality and prove some facts about the

More information

On Transfinite Cardinal Numbers

On Transfinite Cardinal Numbers IOSR Journal of Mathematics (IOSR-JM) e-issn: 2278-5728, p-issn: 2319-765X. Volume 14, Issue 4 Ver. IV (Jul - Aug 2018), PP 17-21 www.iosrjournals.org On Transfinite Cardinal Numbers J N Salunke* and B

More information

MATH 61-02: PRACTICE PROBLEMS FOR FINAL EXAM

MATH 61-02: PRACTICE PROBLEMS FOR FINAL EXAM MATH 61-02: PRACTICE PROBLEMS FOR FINAL EXAM (FP1) The exclusive or operation, denoted by and sometimes known as XOR, is defined so that P Q is true iff P is true or Q is true, but not both. Prove (through

More information

6 Cosets & Factor Groups

6 Cosets & Factor Groups 6 Cosets & Factor Groups The course becomes markedly more abstract at this point. Our primary goal is to break apart a group into subsets such that the set of subsets inherits a natural group structure.

More information

Mathematical Preliminaries. Sipser pages 1-28

Mathematical Preliminaries. Sipser pages 1-28 Mathematical Preliminaries Sipser pages 1-28 Mathematical Preliminaries This course is about the fundamental capabilities and limitations of computers. It has 3 parts 1. Automata Models of computation

More information

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 1. I. Foundational material

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 1. I. Foundational material SOLUTIONS TO EXERCISES FOR MATHEMATICS 205A Part 1 Fall 2014 I. Foundational material I.1 : Basic set theory Problems from Munkres, 9, p. 64 2. (a (c For each of the first three parts, choose a 1 1 correspondence

More information

The predicate calculus is complete

The predicate calculus is complete The predicate calculus is complete Hans Halvorson The first thing we need to do is to precisify the inference rules UI and EE. To this end, we will use A(c) to denote a sentence containing the name c,

More information

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k. Complexity Theory Problems are divided into complexity classes. Informally: So far in this course, almost all algorithms had polynomial running time, i.e., on inputs of size n, worst-case running time

More information

Finite and Infinite Sets

Finite and Infinite Sets Chapter 9 Finite and Infinite Sets 9. Finite Sets Preview Activity (Equivalent Sets, Part ). Let A and B be sets and let f be a function from A to B..f W A! B/. Carefully complete each of the following

More information

Lecture Notes in Advanced Calculus 1 (80315) Raz Kupferman Institute of Mathematics The Hebrew University

Lecture Notes in Advanced Calculus 1 (80315) Raz Kupferman Institute of Mathematics The Hebrew University Lecture Notes in Advanced Calculus 1 (80315) Raz Kupferman Institute of Mathematics The Hebrew University February 7, 2007 2 Contents 1 Metric Spaces 1 1.1 Basic definitions...........................

More information

MATH 201 Solutions: TEST 3-A (in class)

MATH 201 Solutions: TEST 3-A (in class) MATH 201 Solutions: TEST 3-A (in class) (revised) God created infinity, and man, unable to understand infinity, had to invent finite sets. - Gian Carlo Rota Part I [5 pts each] 1. Let X be a set. Define

More information

POL502: Foundations. Kosuke Imai Department of Politics, Princeton University. October 10, 2005

POL502: Foundations. Kosuke Imai Department of Politics, Princeton University. October 10, 2005 POL502: Foundations Kosuke Imai Department of Politics, Princeton University October 10, 2005 Our first task is to develop the foundations that are necessary for the materials covered in this course. 1

More information

CSCI3390-Lecture 6: An Undecidable Problem

CSCI3390-Lecture 6: An Undecidable Problem CSCI3390-Lecture 6: An Undecidable Problem September 21, 2018 1 Summary The language L T M recognized by the universal Turing machine is not decidable. Thus there is no algorithm that determines, yes or

More information

Part II. Logic and Set Theory. Year

Part II. Logic and Set Theory. Year Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]

More information

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS. 4 Functions Before studying functions we will first quickly define a more general idea, namely the notion of a relation. A function turns out to be a special type of relation. Definition: Let S and T be

More information

MATH FINAL EXAM REVIEW HINTS

MATH FINAL EXAM REVIEW HINTS MATH 109 - FINAL EXAM REVIEW HINTS Answer: Answer: 1. Cardinality (1) Let a < b be two real numbers and define f : (0, 1) (a, b) by f(t) = (1 t)a + tb. (a) Prove that f is a bijection. (b) Prove that any

More information

Basics of Model Theory

Basics of Model Theory Chapter udf Basics of Model Theory bas.1 Reducts and Expansions mod:bas:red: defn:reduct mod:bas:red: prop:reduct Often it is useful or necessary to compare languages which have symbols in common, as well

More information

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

1. (B) The union of sets A and B is the set whose elements belong to at least one of A 1. (B) The union of sets A and B is the set whose elements belong to at least one of A or B. Thus, A B = { 2, 1, 0, 1, 2, 5}. 2. (A) The intersection of sets A and B is the set whose elements belong to

More information

2. Metric Spaces. 2.1 Definitions etc.

2. Metric Spaces. 2.1 Definitions etc. 2. Metric Spaces 2.1 Definitions etc. The procedure in Section for regarding R as a topological space may be generalized to many other sets in which there is some kind of distance (formally, sets with

More information

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them:

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them: Completeness in the Monadic Predicate Calculus We have a system of eight rules of proof. Let's list them: PI At any stage of a derivation, you may write down a sentence φ with {φ} as its premiss set. TC

More information

Exercises for Unit VI (Infinite constructions in set theory)

Exercises for Unit VI (Infinite constructions in set theory) Exercises for Unit VI (Infinite constructions in set theory) VI.1 : Indexed families and set theoretic operations (Halmos, 4, 8 9; Lipschutz, 5.3 5.4) Lipschutz : 5.3 5.6, 5.29 5.32, 9.14 1. Generalize

More information

Sets, Models and Proofs. I. Moerdijk and J. van Oosten Department of Mathematics Utrecht University

Sets, Models and Proofs. I. Moerdijk and J. van Oosten Department of Mathematics Utrecht University Sets, Models and Proofs I. Moerdijk and J. van Oosten Department of Mathematics Utrecht University 2000; revised, 2006 Contents 1 Sets 1 1.1 Cardinal Numbers........................ 2 1.1.1 The Continuum

More information

(i) By Corollary 1.3 (a) on P. 88, we know that the predicate. Q(x, y, z) S 1 (x, (z) 1, y, (z) 2 )

(i) By Corollary 1.3 (a) on P. 88, we know that the predicate. Q(x, y, z) S 1 (x, (z) 1, y, (z) 2 ) COMPUTABILITY: ANSWERS TO SOME EXERCISES IN CHAPTER 5 AND 6 5.1.5, P. 90. 1. This exercise is important for several reasons. For example, it tells us that taking inverses is an effect operation; see Example

More information

Assignment #2 COMP 3200 Spring 2012 Prof. Stucki

Assignment #2 COMP 3200 Spring 2012 Prof. Stucki Assignment #2 COMP 3200 Spring 2012 Prof. Stucki 1) Construct deterministic finite automata accepting each of the following languages. In (a)-(c) the alphabet is = {0,1}. In (d)-(e) the alphabet is ASCII

More information

Transformational programming and forests

Transformational programming and forests Transformational programming and forests AB18 1 A. Bijlsma Eindhoven University of Technology Department of Mathematics and Computing Science P.O. Box 513, 5600 MB Eindhoven, The Netherlands Introduction

More information

Real Analysis - Notes and After Notes Fall 2008

Real Analysis - Notes and After Notes Fall 2008 Real Analysis - Notes and After Notes Fall 2008 October 29, 2008 1 Introduction into proof August 20, 2008 First we will go through some simple proofs to learn how one writes a rigorous proof. Let start

More information

Notes on Ordered Sets

Notes on Ordered Sets Notes on Ordered Sets Mariusz Wodzicki September 10, 2013 1 Vocabulary 1.1 Definitions Definition 1.1 A binary relation on a set S is said to be a partial order if it is reflexive, x x, weakly antisymmetric,

More information

Clearly C B, for every C Q. Suppose that we may find v 1, v 2,..., v n

Clearly C B, for every C Q. Suppose that we may find v 1, v 2,..., v n 10. Algebraic closure Definition 10.1. Let K be a field. The algebraic closure of K, denoted K, is an algebraic field extension L/K such that every polynomial in K[x] splits in L. We say that K is algebraically

More information