Tuesday, 6 August 2024

Tao Analysis I - 3.6.6

Exercise 3.6.6

Let A, B, C be sets. Show that the sets (AB)C and AB×C have equal cardinality by constructing an explicit bijection between the two sets. Conclude that (ab)c=abc for any natural numbers a, b, c. Use a similar argument to also conclude ab×ac=ab+c .


This stack exchange post helped with this exercise (link), as well as this solution (link).


Let's start with AB. This is a set of all the functions from B to A. Let's denote an element of this set f

fAB where f:BA

So f(b)=a where aA and bB.

Now (AB)C is the set of all functions from C to AB. Let's denote an element of this set g

g(AB)C where g:CAB

So g(c)=fc where cC and fcAB.


Let's now consider AB×C. This is a set of all the functions from B×C to A. Let's denote an element of this set h

hAB×C where h:B×CA

So h((b,c))=a where aA, and (b,c) is an ordered pair with bB,cC.


We need a bijection, let's call it Θ which maps (AB)C to AB×C. That is

Θ(g)=h

Noting that g takes one parameter c, and h takes two (b,c), helps suggest a possible mapping.

Θ(g)=g(c)(b):=h(b,c)

UNSURE

That is, Θ maps g(c)(AB)C to g(c)(b)AB×C which we define to be h(b,c)A.


We now need to show that Θ, as we have defined it, is indeed a bijection. 

Let's show Θ is surjective. For every h(b,c):=g(c)(b)AB×C there exists a g(c)(AB)C such that Θ(g(c))=g(c)(b)=h(b,c).  UNSURE

Let's now show Θ is injective. TODO


Tuesday, 16 July 2024

Tao Analysis I - 3.6.5

Exercise 3.6.5

Let A and B be sets. Show that A×B and B×A have equal cardinality by constructing an explicit bijection between the two sets. Then use Proposition 3.6.14 to conclude an alternate proof of Lemma 2.3.2.


Proposition 3.6.14 are the six proposals regarding cardinal arithmetic we saw in the previous exercise.

Let's remind ourselves of Lemma 2.3.2 (Multiplication is commutative): Let n,m be natural numbers. Then n×m=m×n.


Note that A and B are not specified to be finite. 

A possible bijection f between A×B and B×A is one which simply swaps the components of the ordered pair

f((a,b))=(b,a) for (a,b)A×B

This function is surjective because for every (b,a)B×A there exists an (a,b)A×B such that f((a,b))=(b,a). The function is injective because f((a,b))=f((a,b))=(b,a) implies (a,b)=(a,b).

Since a bijection exists between A×B and B×A, the two sets have the same cardinality (even if they are not finite).


Now, because there is a bijection between A×B and B×A, the two sets have the same cardinality. 

By Proposition 3.6.14 (e), the cardinality of the set A×B is #A×#B. Similarly the cardinality of the set B×A is #B×#A. Here #A and #B are natural numbers, and so requires the sets A and B to be finite.

If we name m=#A and n=#B, the equality of cardinality gives us m×n=n×m, proving Lemma 2.3.2.


Monday, 15 July 2024

Tao Analysis I - 3.6.4

Exercise 3.6.4

Prove Proposition 3.6.14.


Proposition 3.6.14 contains six proposals so let's look at each as we develop solutions to each.


(a) Let X be a finite set, and let x be an object which is not an element of X. Then X{x} is finite and #(X{x})=#(X)+1.

The finite set X has a cardinality of #X, which by Definition 3.6.10 is a natural number. This also means, by Definition 3.6.5, there is a bijection g:X{1,,#X}.

Since x is not in X, the bijection g doesn't map x to an element of {1,,#X}. We can define a new bijection h which maps just as g for xX, and maps x to #X+1, since #X+1 is not in {1,,#X}.

This h is a bijection from X{x} to {1,,#X+1}. This means X{x} has a cardinality #X+1, and because this is a natural number (successor to #X), it is also a finite set.


(b) Let X and Y be finite sets. Then XY is finite and #(XY)#(X)+#(Y). If in addition X and Y are disjoint (i.e., XY=), then #(XY)=#(X)+#(Y).

There are two cases to consider, X and Y are disjoint, and X and Y are not disjoint.

Let's consider the disjoint case first. 

Since both sets are finite, their cardinalities #X and #Y are natural numbers (Definition 3.6.10). This means there exist bijections (Definition 3.6.5) f:X{1,,#X} and g:Y{#X+1,,#X+#Y}. Since the two sets are disjoint, they share no common elements, and so we can define a new bijection h:XY{1,,#X+#Y}. Thus, if X and Y are disjoint, then #(X+Y)=#X+#Y.

Now consider the non-disjoint case.

Since both sets are finite, their cardinalities #X and #Y are natural numbers. This means there exist bijections f:X{1,,#X} and g:Y{#X+1,,#X+#Y}

Here X and Y do share at least one common element. That means there exists an xX that is also in Y. Therefore, a bijection h:XY{1,,m} requires m<#X+#Y.

To see this more clearly, consider Y=YX, the set Y without any elements that are also in X. Therefore the cardinality of Y is #Y<#Y. We have (XY)=(XY) and so #(XY)=#X+#Y<#X+#Y

Thus, in the general case, #(XY)#(X)+#(Y).


(c) Let X be a finite set, and let Y be a subset of X. Then Y is finite, and #(Y)#(X). If in addition YX (i.e., Y is a proper subset of X), then we have #(Y)<#(X).

X is a finite set so it has a natural number cardinality #X, and there is a bijection f:X{1,,#X}

If Y is a subset of X, then it is finite too. We can define a function g with domain YX  and which maps as g(y)=f(y) . Since f is a bijection, so is g

This g is bijective with g:Y{1,,#Y}, where #Y#X because the domain of g is some or all of X. That is, #(Y)#(X).

In the case Y is a proper subset of X, then there is at least one element of X that is not in Y. And so the domain of g is not equal to the domain of f. This means g is bijective with g:Y{1,,#Y} where now #Y<#X because the domain of g is some but not all of X. That is, #(Y)<#(X).


(d) If X is a finite set, and f:XY is a function, then f(X) is a finite set with #(f(X))#(X). One has equality #(f(X))=#(X) if and only if f is one-to-one.

The definition of a function f:XY requires it to map each element of X to a single element of Y. Furthermore, for each element yf(X), there exists an xX such that f(x)=y

There are two cases: there could be a unique x for each yf(X), or there could be more than one element of X that maps to yf(X).

In the case there is a unique x for each yf(X), the function f is one-to-one, a bijection, and so #f(X)=#X.

In the case there is more than one element of X that map to the same yf(X), the function f is not one-to-one. In this case there is a bijection between f(X) and {1,,m}, where m<#X.

Thus in general, #f(X)#X.


(e) Let X and Y be finite sets. Then Cartesian product X×Y is finite and #(X×Y)=#(X)×#(Y).

Consider X={x1,x2,,xm} where m=#X, and Y={y1,y2,,yn} where n=#Y. Since both sets are finite, m and n are natural numbers.

The Cartesian product is the set of ordered pairs, 

X×Y={(x1,y1),(x1,y2),,(x1,yn),(x2,y1),(x2,y2),,(x2,yn),(xm,y1),(xm,y2),,(xm,yn)}

For each of the m elements of X there are n elements of the form (xi,yj) in X×Y. All of these elements are unique because each element of X and Y is unique. 

Therefore, there are m×n elements of X×Y, which is #X×#Y. This is a natural number, and so the cartesian product is finite.


(f) Let X and Y be finite sets. Then the set YX (defined in Axiom 3.11) is finite and #(YX)=#(Y)#(X).

Let's remind ourselves of Axiom 3.1.1

(Power set axiom).  Let X and Y be sets. Then there exists a set, denoted YX, which consists of all the functions from X to Y.


We'll prove this proposition by induction.

Let P(n) be the statement: #(YX)=#(Y)#(X) where n=#X.

For the base case n=1, we have X={x1}, a singleton set. The power set YX is the set of all functions from X={x1} to Y. Since there is only one element of X, there are #Y possible functions from X to Y. That is, #(YX)=#Y#(X)=#Y1=#Y, and so the base case P(1) is true.

Let's now assume P(n) is true, and show P(n+1) is true. The statement P(n) is #(YX)=#(Y)#(X) where n=#X

If we extend the set X with an element it doesn't currently have x, we have X=X{x}, and #X=n+1. The addition of one extra element to X means that for each of the existing functions fX×Y, there are an additional #Y new possible functions fX×Y.

More specifically, each function fX×Y can be extended to map x to any one of #Y elements of Y.

Thus #(YX)=#Y×#Y#X=#Y#X+1, and so P(n+1) is true.

We have shown by induction that #(YX)=#(Y)#(X).

Since X and Y are finite, then #X, #Y and #X+1 are natural numbers. This means the cardinality of the power set is also a natural number, and so is finite too.

Saturday, 8 June 2024

Tao Analysis I - 3.6.3

Exercise 3.6.3

Let n be a natural number, and let f:{iin}N be a function. Show that there exists a natural number M such that f(i)M for all 1in. (Hint: induct on n. You may also want to peel at Lemma 5.1.14.). Thus finite subsets of the natural numbers are bounded. Use this to give an alternate proof of Theorem 3.6.12 that does not use Lemma 3.6.9.


Let's remind ourselves of Theorem 3.6.12:

The set of natural numbers N is infinite.


Solution Part 1

We will use induction on n. Consider the statement P(n),

P(n): there exists an MN such that for all i{1n} we have f(i)M

Consider the base case P(0), which states there exists a natural number M such that f(i)M for i. This is vacuously true.

To avoid any doubt, let's consider P(1) as a base case. It states there exists a natural number M such that f(i)M for i{1}. Since f maps to N, f(i) is a (finite) natural number. We can choose M=f(1), thus identifying an M which satisfies the statement, making P(1) true.

Now let's assume P(n) is true as the inductive hypothesis. We need to show P(n++) is true. Consider f(n++). Again, since f maps to N, we have f(n++) as a finite natural number. We can select X=f(n++) so that f(n++)X. By the inductive hypothesis, we know there exists a natural number Y such that f(i)Y for 1in. We can choose the larger of the two, M=max(X,Y), so that f(i)M for 1i(n++). Thus P(n++) is true.

By induction we have shown there exists a natural number M such that f(i)M for all 1in. That is, finite subsets of the natural numbers, here {f(i)}, are bounded.


Solution Part 2

Let's write out what we have just shown: If a subset of the natural numbers N is finite, then it is bounded.

The contrapositive is: If a subset of the natural numbers is not bounded, then it is not finite.

Consider the set of natural numbers N, which is a subset of N. Let's assume it is finite. That means it must be bounded, as we have shown above. Let's say M is the largest element in that set. This M is a natural number, and by the Peano axioms, has a successor M+1 which is also a natural number in N. Therefore M can not be the largest element of the set. We have shown that N is not bounded. By the above contrapositive statement, it is therefore not finite.

Friday, 7 June 2024

Tao Analysis I - 3.6.2

Exercise 3.6.2

Show that a set X has cardinality 0 if and only if X is the empty set.


Let's remind ourselves of the definitions of cardinality.

Def 3.6.1 (Equal cardinality) We say that two sets X and Y have equal cardinality iff there exists a bijection f:XY from X to Y.

Def 3.6.5 Let n be a natural number. A set X is said to have cardinality n, iff it has equal cardinality with {iN:1in}. We also say that X has n elements iff it has cardinality n.


We need to show both of the following:

  • If a set is the empty set then it has cardinality 0.
  • If a set has cardinality 0, it must be the empty set.


Show X=#X=0

We assume X=. The only set it has a bijection with is the empty set (link). This existence of a bijection is sufficient for Def 3.6.1. By Def 3.6.5 this cardinality is 0, because the empty set has a bijection with the set {iN:1in} with n=0.

Thus we have shown X=#X=0.


Show #X=0X=

If a set X has cardinality 0, then by Def 3.6.5 it has cardinality equal to to the set {iN:1in} where n=0. This is the empty set.

Thus we have shown #X=0X=.


By showing both statements, we have shown that a set X has cardinality 0 if and only if X is the empty set.


Tao Analysis I - 3.6.1

Exercise 3.6.1

Prove Proposition 3.6.4. 

Proposition 3.6.4 Let X, Y, Z be sets. 

  • Then X has equal cardinality with X
  • If X has equal cardinality with Y, then Y has equal cardinality with X.
  • If X has equal cardinality with Y and Y has equal cardinality with Z, then X has equal cardinality with Z.


Discussion

The first part of the proposition says that cardinality is symmetric. The second says it is reflective. The third says it is transitive. These are the requirements of an equivalence relation.

We will use properties of bijective functions that we have previously established - that they are symmetric, reflexive and transitive (link).


Reflexive

Let's start with Definition 3.6.1, which says two sets X and Y have equal cardinality iff there exists a bijection f:XY from X to Y.

We already know that bijections are reflexive, and so #X=#X.


Symmetric

We know bijections are symmetric, and so if #X=#Y#Y=#X.


Transitive

We know bijections are transitive. That is, the composition of two bijections is also a bijection.  And so (#X=#Y)(#Y=#Z)#X=#Z.


Tuesday, 4 June 2024

Tao Analysis I - 3.5.13

Exercise 3.5.13

The purpose of this exercise is to show that there is essentially only one version of the natural number system in set theory (cf. the discussion in Remark 2.1.12). Suppose we have a set N of “alternative natural numbers”, an “alternative zero” 0 , and an “alternative increment operation” which takes any alternative natural number nN and returns another alternative natural number n++N, such that the Peano axioms (Axioms2.1-2.5) all hold with the natural numbers, zero, and increment replaced by their alternative counterparts. 

Show that there exists a bijection f:NN from the natural numbers to the alternative natural numbers such that f(0)=0 , and such that for any nN and nN, we have f(n)=n if and only if f(n++)=n++. (Hint: use Exercise 3.5.12)


Discussion

The overall aim is to show that two number systems, N and N, if they both obey the same Peano Axioms, are equivalent. To do this we need to demonstrate there exists a bijection from one to the other. To show bijectivity, we need to show both injectivity and surjectivity.

Let's remind ourselves of the Peano Axioms:

  • Axiom 2.1 0 is a natural number.
  • Axiom 2.2 If n is a natural number, then n++ is a natural number.
  • Axiom 2.3 0 is not the successor of any natural number.
  • Axiom 2.4 Different numbers have different successors.
  • Axiom 2.5 Principle of mathematical induction. If P(n) is true, and P(n) implies P(n++) then P(n) is true for all natural numbers.


Solution

Exercise 3.5.12 tells us there exists a function

f:NN where {f(0)=0f(n++)=g(n,f(n)),nN

where g:N×NN is a well-defined function. Let's define g as follows:

g(n,n)=n++

This g passes the vertical line test due to Peano Axiom 2.4.

Our function f is thus defined as:

f:NN where {f(0)=0f(n++)=f(n)++,nN


Let's show f is surjective by induction. We can use induction as Peano Axiom 2.5 holds for N.

Consider the statement

S(k):kN such that f(k)=kN

The base case S(0) is true because f is defined such that f(0)=0.

For the inductive hypothesis, assume S(k) is true. We need to show S(k++) is true. 

Consider f(k++), which by definition of f is f(k++)=f(k)++. By the inductive hypothesis, f(k)=k. This gives us f(k++)=k++, and so S(k++) is true.

By induction we have shown f is surjective.


Let's show f is injective by induction. We can use induction as Peano Axiom 2.5 holds for N.

Consider the statement

P(k):f(a)=f(b)a=b, for a,b{0,,k}

The base case P(0) is true because we have a singleton domain {0} and so a=b trivially.

For the inductive hypothesis, assume P(k) is true. We need to show P(k++) is true.

Consider f(k++)=f(b) where b{0,,k++}. By definition of f, we have

f(k++)=f(k)++

Similarly, 

f(b)=f(c)++

where c++=b

Therefore, f(k)++=f(c)++. By axiom 2.4, f(k)=f(c), and by the inductive hypothesis k=c, because both k and c are in {0,,k}, and so k++=b. Thus P(k++) is true.

By induction we have shown f is injective.


We have shown there exists a function f which is a bijection between N and N, thus showing two natural number systems are equivalent if they both conform to the Peano Axioms.


Finally we need to confirm that f(n)=nf(n++)=n++. We do this by proving both

  • f(n)=nf(n++)=n++
  • f(n++)=n++f(n)=n

Consider f(n++)=n++. By definition of f we know f(n++)=f(n)++. By Axiom 2.4 this means f(n)=n. So f(n++)=n++f(n)=n.

Now consider f(n)=n. Again by Axiom 2.4, this gives us f(n)++=n++. By the definition of f, this means f(n++)=n++.

Thus, f(n)=nf(n++)=n++.

Wednesday, 8 May 2024

Tao Analysis I - 3.5.12 (i)

Exercise 3.5.12 (i)

This exercise will establish a rigorous version of Proposition 2.1.16 that avoids circularity (in particular, avoiding the use of any object that required Proposition 2.1.16 to construct).

(i) Let X be a set, let f:N×XX be a function, and let c be an element of X. Show that there exists a function a:XX such that

a(0)=c

and

a(n++)=f(n,a(n)) for all nN

and furthermore that this function is unique. (Hint: first show inductively, by a modification of the proof of Lemma 3.5.11, that for every natural number NN, there exists a unique function aN:{nN:nN}X such that aN(0)=c and aN(n++)=f(n,aN(n)) for all nN such that n<N.)


Discussion

I found this exercise tricky because it needs clarity on what we need to do and show. This answer on math stack exchange is helpful on proof strategy (link).

It is also worth pondering on the point of the exercise. It shows that some recursively defined functions can be valid functions. Without proof we can't assume a function defined in terms of itself is a valid function. 


Exploration

To clarify the objects we're dealing with let's write out some examples.

For N=0, we have aN as

a0:{0}X where a0(0)=c

Note that a0 is a function, defined over the domain {0}, the subscript zero is not a parameter or input to that function.

Our definition of aN must conform to the two conditions:

  • aN(0)=c
  • aN(n++)=f(n,aN(n)) for all nN such that n<N

Our a0 meets the first condition by its own definition.

What about the second condition? The second condition is vacuously true because there are no nN such that n<N=0.

For N=1, we have aN as

a1:{0,1}X where {a1(0)=ca1(1)=f(0,a1(0))=f(0,a0(0))

Here a1(0) is trivially defined to be c, and a1(1) maps to a unique element of X because f is given as a well-defined function. Thus a1 is also a well-defined function.

For N=2, we have aN as

a2:{0,1,2}X where {a2(0)=ca2(1)=f(0,a2(0))=f(0,a1(0))a2(2)=f(1,a2(1))=f(1,a1(1))

Note how we choose to define a1(0)=a0(0)=c, and a2(1)=a1(1) , and in general

aN(n)=aN1(n)

because we want each aN to be equal to all previous aM over their shared domain {0,,M}, where M<N,nN.

So in general we have aN as

aN:{0,,N}X where {aN(0)=caN(n++)=f(n,aN(n))=f(n,aN1(n))

where n<N.

On the question of uniqueness, each aN is unique if f is unique, which it is because we are told it is a well-defined function.


Solution

To show that for every natural number NN there exists a unique function aN as defined in the question, we will use induction on N

Consider the statement P(N): there is a unique function aN:{nN:nN}X which meets the two conditions:

  • aN(0)=c
  • aN(n++)=f(n,aN(n)) for all nN such that n<N

Base case P(0): We can define a function a0:{0}X where a0(0)=c.

This meets the first condition by definition, and the second condition is vacuously true because there is no nN such that n<N=0.

This a0:{0}X is also unique. If there were another function b0:{0}X which met the same conditions, it would mean b0(0)=c. Since they map every element of the domain, in this case {0}, to the same cX, the two functions are equal.

Inductive Hypothesis P(N): We will assume the function aN:{0,,N}X exists, meets the two conditions, and is unique.

Inductive Step P(N++): We need to show aN+1 exists, meets the two conditions, and is unique. Let's define it as follows:

aN+1:{0,,N+1}X where {aN+1(0)=caN+1(n++)=f(n,aN++(n))=f(n,aN(n))

where n<N+1.

By its definition it meets the first condition, aN+1(0)=c. The second condition is met because we chose to define aN to equal aN1 over their shared domain {0,,N1}, which gives us f(n,aN++(n))=f(n,aN(n)), which in turn means aN+1 exists.

The inductive hypothesis tells us aN exists and is unique. This means f(n,aN(n)) is unique because f is a well-defined function. So if f(n,aN(n))  exists and is unique, we have shown aN+1 exists and is unique.

Thus, by induction, a unique aN exists for all NN

This means there exists a function a:XX such that

a(0)=c

and

a(n++)=f(n,a(n)) for all nN

and furthermore that this function is unique.


Sunday, 5 May 2024

Tao Analysis I 3.5.11

Exercise 3.5.11

Show that Axiom 3.11 can in fact be deduced from Lemma 3.4.10 and the other axioms of set theory, and thus Lemma 3.4.10 can be used as an alternate formulation of the power set axiom. (Hint: for any two sets X and Y , use Lemma 3.4.10 and the axiom of specification to construct the set of all subsets of X×Y which obey the vertical line test. Then use Exercise 3.5.10 and the axiom of replacement.)


Let's remind ourselves of Axiom 3.11

Axiom 3.11 (Power set axiom). Let X and Y be sets.Then there exists a set, denoted YX, which consists of all the functions from X to Y, thus

fYXf:XY


And also remind ourselves of Lemma 3.4.10

Lemma 3.4.10. Let X be a set. Then the set {Y:YX} is a set. That is to say, there exists a set Z such that YZYX for all objects Y.


Discussion

Interestingly, most people in my experience, think of the "power set axiom" as that described in Lemma 3.4.10 and not the formulation in Axion 3.11.


Solution

For any two sets X and Y we can form the cartesian product, X×Y as per Definition 3.5.4.

Now we apply Lemma 3.4.10 to X×Y to form the set of all subsets of X×Y, which we can call P(X×Y).

Not every set in P(X×Y) will obey the vertical line test, so we can use the axiom of specification to filter out those that do, to form a set Z

Z={GP(X×Y):G obeys the vertical line test}

The elements G of Z are all the graphs from XY which obey the vertical line test.

We can use the axiom of replacement on Z to replace each element G with an ordered triple (X,Y,G), which we can do because for each G there is a unique (X,Y,G)

This gives us a set of all the ordered triples (X,Y,G) where G is a graph from X to Y which obeys the vertical line test. Thus, by exercise 3.5.10 part (iii), this is a set of all the functions from X to Y.


Thursday, 2 May 2024

Tao Analysis I - 3.5.10

Exercise 3.5.10

If f:XY is a function, define the graph of f to be the subset of X×Y defined by {(x,f(x)):xX}.

(i) Show that two functions f:XY, f~:XY are equal if and only if they have the same graph.

(ii) Conversely, if G is any subset of X×Y with the property that for each xX, the set {yY:(x,y)G} has exactly one element (G obeys the vertical line test), show that there is exactly one function f:XY whose graph is equal to G.

(iii) Suppose we define a function f to be an ordered triple f=(X,Y,G), where X, Y are sets, and G is a subset of X×Y that obeys the vertical line test. We then define the domain of such a triple to be X, the codomain to be Y, and for every xX, we define f(x) to be the unique yY such that (x,y)G. Show that this definition is compatible with Definition 3.3.1 in the sense that every choice of domain X, codomain Y, and property P(x,y) obeying the vertical line test produces a function as defined here that obeys all the properties required of it in that definition, and is also similarly compatible with Definition 3.3.8.


Exploration

It is worth thinking a little about what the graph is and isn't. The graph is all the mappings from xX to f(x)Y. It is an important and very informative part of the definition of a function, alongside specifying the domain and co-domain. A graph on its own is not technically the same as a function.


Part (i)

We need to show the following two statements:

  • Two functions are equal they have the same graph.
  • Two functions with the same graph  they are equal.


Let's start with the first statement. Consider two functions f1:XY and f2:XY. If these two functions are equal, they have the same domain, same co-domain and the same mapping between the two. This last requirement is f1(x)=f2(x) for every xX.

The graph of f1 is {(x,f1(x)):xX}.

The graph of f2 is {(x,f2(x)):xX}

Since the two functions are the same, we have f1(x)=f2(x) for all xX, and so the graphs of f1 and f2 are the same.


Let's now consider the second statement. If we have two functions f1:XY and f2:XY with the same graph, we have:

{(x,f1(x)):xX}={(x,f2(x)):xX}

This means the two functions map each xX to the same element of the co-domain, that is, f1(x)=f2(x) for all xX. We are given that the two function share the same domain, X, and also the same co-domain, Y. Together, this allows us to say the two functions are equal. 


Having shown both statements, we have proven that two functions f:XY, f~:XY are equal if and only if they have the same graph.


Part (ii)

Let's first show the existence of f:XY. We can define a function f with the following properties:

  • it has a domain X
  • it has a co-domain Y
  • it maps each xX to a unique yY as f(x)=y

We need to show that the mapping is unique, that is, for every xX there is only one yY, the vertical line test. We are given that for each xX the set {yY:(x,y)G} has exactly one element, which is equivalent to the vertical line test.

Thus the function f(x)=y exists, and has a graph {(x,f(x)):xX}

Now let's show the function f:XY is unique. Consider two functions f1:XY and f2:XY which meet the given criteria, that is, both have a graph equal to GX×Y. We have shown in part (i) that two functions which the same graph are equal. Therefore f1=f2

We have shown there is exactly one function f:XY whose graph is equal to G.


Part (iii)

Let's remind ourselves of Definition 3.3.1:

Definition 3.3.1 (Functions). Let X, Y be sets, and let P(x,y) be a property pertaining to an object xX and an object yY, such that for every xX, there is exactly one yY for which P(x,y) is true (vertical line test). Then we define the function f:XY defined by P on the domain X and codomain Y to be the object, which, given any input xX, assigns an output f(x)Y, defined to be the unique object f(x)Y for which P(x,f(x)) is true. Thus, for any xX and yY,

y=f(x)P(x,y) is true

Let's also remind ourselves of Definition 3.3.8:

Definition 3.3.8 (Equality of functions). Two functions f"XY, g:XtoY are said to be equal if their domains and codomains agree, and furthermore that f(x)=g(x) for all xX


Let's be clear about what is required of us. We need to show that:

  • A function defined with a domain X, codomain Y and property P(x,y) as per Definition 3.3.1 produces a function as defined by the ordered triple (X,Y,G)
  • Such a function defined by the ordered triple (X,Y,G) obeys the properties as required by Definition 3.3.1 and 3.3.8.


Let's consider the first objective.

For a given domain X and codomain Y, we can form a unique ordered pair (X,Y). Now a function, as per Definition 3.3.1, has a property P(x,y) which for any xX is true for exactly one yY (vertical line test). Thus we can form a set GX×Y such that G obeys the vertical line test. To do this we can use the Axiom of Replacement on the set X and replace each x with the ordered pair (x,y) such that P(x,y) is true, which we know is only true for one y for each x. Then we can form an ordered triple (X,Y,G) which is unique to the domain X, codomain Y and property P(x,y).


Let's now consider the second objective.

The properties of Definition 3.3.1 are met by virtue of how we constructed (X,Y,G). For example, we know G obeys the vertical line test because it is constructed using P(x,y) which by definition must obey the vertical line test.

Definition 3.3.8 states that two functions are the same if they have the same domain, codomain and map elements from the domain to the codomain in the same way. If we have two functions (X,Y,G) and (X,Y,G), these ordered n-tuples are only equal if X=X, Y=Y and G=G. That is, the domains are the same,  the codomains are the same, and the. graphs are the same. We have already shown in part (i) that equal graphs implies equal functions.


Saturday, 27 April 2024

Tao Analysis I - 3.5.9

Exercise 3.5.9

Suppose that I and J are two sets, and for all αI let Aα be a set, and for all βJ let Bβ be a set. Show that

(αIAα)(βJBβ)=(α,β)I×J(AαBβ)

What happens if one interchanges all the union and intersection symbols here?


Solution Strategy

For this solution I wanted to develop the proof using only a chain of equivalences , rather than the more verbose approach of proving one direction , and the other direction .

This math stack exchange answer helped clarify this approach, which is still unfamiliar to me (link). 

In addition this wikipedia article on manipulating prenex normal form is useful (link).


Solution Part One

Let's start with the LHS.

x(αIAα)(βJBβ)x(αIAα)x(βJBβ)

Using the definition of the union of sets, this means both of the following are true:

  • x is an element of at least one Aα
  • x is an element of at least one Bβ

For the next step we have to take care with the use of the existential quantifier.

x(αIAα)(βJBβ)(αI)[xAα](βJ)[xBβ]

This is essentially writing out what we have written in the bullet points.

If there exists an αI and a βJ which meet certain conditions,  then there exists an (α,β)I×J where the same conditions are met. That is,

x(αIAα)(βJBβ)(αI)[xAα](βJ)[xBβ]((α,β)I×J)[xAαxBβ]((α,β)I×J)[xAαBβ]x(α,β)I×J(AαBβ)

Thus, we have shown

(αIAα)(βJBβ)=(α,β)I×J(AαBβ)


Solution Part Two

Now consider what happens if we interchange the union and intersection symbols. We have a new proposal to show:

(αIAα)(βJBβ)=(α,β)I×J(AαBβ)

The proof is almost the same, so we'll only write down the essence of it.

Let's start with the LHS.

(αIAα)(βJBβ)x(αIAα)x(βJBβ)

Using the definition of the intersection of sets, this means either or both of the following are true:

  • x is an element of every Aα
  • x is an element of every Bβ

For the next step we have to take care with the use of the "for all" quantifier.

x(αIAα)(βJBβ)(αI)[xAα](βJ)[xBβ]

We continue in a similar manner to the above,

x(αIAα)(βJBβ)(αI)[xAα](βJ)[xBβ]((α,β)I×J)[xAαxBβ]((α,β)I×J)[xAαBβ]x(α,β)I×J(AαBβ)

Thus, we have shown

(αIAα)(βJBβ)=(α,β)I×J(AαBβ)


Thursday, 25 April 2024

Tao Analysis I - 3.5.8

Exercise 3.5.8

Let X1,,Xn be sets. Show that the Cartesian product i=1nXi is empty if and only if at least one of the Xi is empty.


Let's remind ourselves of Definition 3.5.6 for Cartesian products. 

If (Xi)1in is an ordered n-tuple of sets, we define their Cartesian product as

1inXi:={(xi)1in:xiXi for all 1in}


We need to how both of the following:

  • i=1nXi=Xi=
  • Xi=i=1nXi=


Let's start with the second statement as it is easier to prove. If at least one Xi is empty, let's call it Xj then there is no xj=∈Xi. This means the ntuple (xi)1in can't be formed with n components. Thus the cartesian product, a set, is empty.

Now let's consider the first statement. The cartesian product is empty only if the n-tuples can't be formed with n components. This only happens if one of the Xi is empty. 


By proving both statements, we have shown the Cartesian product i=1nXi is empty if and only if at least one of the Xi is empty.


Tao Analysis I - 3.5.7

Exercise 3.5.7

Let X, Y be sets, and let πX×YX:X×YX and πX×YY:X×YY be the maps πX×YX(x,y):=x and πX×YY(x,y):=y; these maps are known as the co-ordinate functions on X×Y. Show that for any functions f:ZX and g:ZY, there exists a unique function h:ZX×Y such that πX×YXh=f and πX×YYh=g. (Compare this to the last part of Exercise 3.3.8, and to Exercise 3.1.7.) This function h is known as the pairing of f and g and is denoted h=(f,g).


Exploration

Lt's illustrate some of these new ideas with a small example.

Consider X={x1,x2} and Y={y1}. The cartesian product is therefore X×Y={(x1,y1),(x2,y1)}.

The function πX×YX:X×YX maps from the cartesian product, the set of ordered n-tuples, to the codomain which is the set X. An example of the mapping πX×YX(x,y):=x is

πX×YX(x2,y1)=x2

The map essentially extracts the "first coordinate" from the pair in the ordered 2-tuple.

Similarly, an example of the mapping for the other function, πX×YY(x,y):=y, is

πX×YY(x2,y1):=y1

This extracts the "second coordinate" from the ordered 2-tuple.


Let's draw a picture to illustrate the described functions f:ZXg:ZY, and h:ZX×Y.

Our aim is to show that for any f and g, the function h exists and is unique, given the constraints πX×YXh=f and πX×YYh=g.


Solution Part One

For exercises that ask us to prove a set exists, we typically construct the set from the axioms of set theory. However, to show a function exists is a little different as Tao discusses in his book. He writes, in Remark 3.3.2, that the existence of functions could have been made axiomatic, but they aren't because they can be constructed using ordered triple (domain, codomain, graph/mapping) and the operations of axiomatic set theory.

For our purposes, to show a function exists, we need to make clear its domain and codomain, and then ensure the mapping is well-defined, it conforms to the requirement that each element of the domain maps to only one element of the codomain, the "vertical line test".

It is suggested there might exist a function h:ZX×Y such that the following two conditions are met:

zZ[πX×YX(h(z))=f(z)]

zZ[πX×YY(h(z))=g(z)]

Let's assume such a function does exist. What form does it take?

We know that for all zZ, h(z) takes the form of an ordered pair (h1(z),h2(z)) where h1(z)X and h2(z)Y. That is, h1:ZX and h2:ZY.

What is h1(z) and h2(z)?

We use the two conditions to answer this:

πX×YX(h(z))=h1(z)=f(z)

πX×YY(h(z))=h2(z)=g(z)

So we have

h(z)=(f(z),g(z))

We have shown that if there exists a function h:zX×Y that conforms to the two conditions above, then it must be of the unique form h(z)=(f(z),g(z))

To show existence, we use the definition of the function we derived h(z)=(f(z),g(z)) and show it conforms to any required constrains, and is well-behaved as a function:

  • the domain of h is Z
  • the codomain of h is X×Y
  • the first condition is met, πX×YX(h(z))=πX×YX(f(z),g(z))=f(z)
  • the second condition is met, πX×YY(h(z))=πX×YY(f(z),g(z))=g(z)
  • h(z)=(f(z),g(z)) is unique to z because both f and g are well-defined functions, where f(z) is unique to z, g(z) is unique to z, and so h(z)=(f(z),g(z)) is also unique to z.

This solution was helped by this answer (link).


Solution Part Two

We are asked to compare this result with last part of Exercise 3.3.8, and to Exercise 3.1.7.

Drawing pictures is the easiest way to show the similarities between the sets and functions in these exercises.

In the following we can see there is a duality between the existence of a unique function that maps to X×Y in the first instance, and maps from XY in the second.


And in the following we can see similar duality regarding intersection and union where the function is replaced by a predicate "is a subset of".


Apparently this nudge by Tao relates to category theory, something beyond this book, but discussed here (link).


Sunday, 31 March 2024

Tao Analysis I - 3.5.6

Exercise 3.5.6

Let A, B, C, D be non-empty sets. Show that A×BC×D if and only if AC and BD, and that A×B=C×D if and only if A=C and B=D

What happens if some or all of the hypotheses that the A, B, C, D are non-empty are removed?


Show A×BC×DAC and BD

To show A×BC×D if and only if AC and BD we need to prove the following two statements:

  • A×BC×DACBD
  • ACBDA×BC×D


Let's start with the second statement as it easier to prove.

ACBDA×BC×D

We need to show - is a statement I was advised by a mathematician friend to get into the habit of writing - (aA,bB)[(a,b)C×D].

Given A and B are assumed non-empty, we can always pick an element aA and bB to form a tuple (a,b).

By assumption, AC and BD, and so we can deduce aC and bD. So the tuple (a,b) is in C×D by definition of cartesian products. Thus we have shown ACBDA×BC×D.


Now let's consider the first statement.

A×BC×DACBD

We need to show (aA)[aC] and (bB)[bD].

Since A and B are assumed non-empty, we can always pick an arbitrary aA and bB to form a tuple (a,b).

By definition of cartesian products, (a,b)A×B. By hypothesis A×BB×D, and so (a,b)C×D

Again, by definition of cartesian products, this means aCbD. Thus we have shown A×BC×DACBD.


By showing both statements, we have shown A×BC×DAC and BD. .


Show A×B=C×DA=C and B=D

To show A×B=C×D if and only if A=C and B=D we need to prove the following two statements:

  • A×B=C×DA=CB=D
  • A=CB=DA×B=C×D


Again, let's start with the second statement as it is easier to prove.

A=CB=DA×B=C×D

We need to show (aA,bB)[(a,b)C×D] and (cC,dD)[(c,d)A×B].

Since A and B are assumed non-empty, we can always pick an arbitrary aA and bB to form a tuple (a,b). By definition of cartesian products, (a,b)A×B. By hypothesis, A=C and B=D, and so we can deduce aC and bD. And so (a,b)C×D by definition of cartesian products. This gives us A×BC×D.

To show A×B=C×D, we also need to show C×DA×D.

Since C and D are assumed non-empty, we can always pick an arbitrary cC and dD to form a tuple (c,d). The same argument as for (a,b) gives us C×DA×D.

So we have shown A=CB=DA×B=C×D.


Now consider the first statement.

A×B=C×DA=CB=D

We need to show (aA)[aC], (bB)[bD], (cC)[cA], and (dD)[dB].

Since A and B are assumed non-empty, we can always pick an arbitrary aA and bB to form a tuple (a,b). By definition of cartesian products (a,b)A×B. By hypothesis A×B=C×D, and so (a,b)C×D. By definition of cartesian products, we deduce aC and bD.

We have shown (aA)[aC] and (bB)[bD]. We still need to show (cC)[cA], and (dD)[dB].

Since C and D are assumed non-empty, we can always pick an arbitrary cC and dD to form a tuple (c,d). A symmetric argument to that for (a,b) gives us cA and dB.

So we have shown A×B=C×DA=CB=D.


By showing both statements, we have proven A×B=C×DA=CB=D.


Removing The Non-Empty Set Assumptions

Consider the first proposal:

A×BC×DACBD

If only A=, then A×B=, which is a subset of any set, not just C×D. There is therefore no relationship between B, C, and D required to make the LHS true. The proposal is therefore not always true.

Because B is symmetric to A, if only B=, the proposal also fails.

However, if both A= and B=, then the proposal holds.


Now consider the second proposal:

A×B=C×DA=CB=D

If only A=, then A=C=, and the statement becomes ==B=D. The LHS is true regardless of any relationship between B and D, so the proposal is not always true. By symmetry, this applies to B= too.

If only both A=B=, then A=C= and B=D=, and the statement becomes ===, which is fine. By symmetry, this applies to C=D too.

If however, only A=C= then the statement becomes ==B=D. The LHS can be true regardless of B and D, and so the proposal is not always true.

By symmetry, this applies to B=D too.

If all A=B=C=D= then the proposal holds.

Note - we can intuitively think of ×A as multiplying by zero, and this "losing information" about A.


Wednesday, 27 March 2024

Tao Analysis I - 3.5.5

Exercise 3.5.5

Let A, B, C, D be sets. Show that (A×B)(C×D)=(AC)×(BD).

Is it true that (A×B)(C×D)=(AC)×(BD)?

Is it true that (A×B)(C×D)=(AC)×(BD)?


Let's draw a picture to help clarify our thinking.

We can see visually that:

  • (A×B)(C×D)=(AC)×(BD).
  • (AC)×(BD) contains (c,b) where cC,bB, but (A×B)(C×D) does not.
  • (A×B)(C×D) contains (a,e) where aA,eBD, but (AC)×(BD) does not.


Show (A×B)(C×D)=(AC)×(BD)

Let's write out what (A×B)(C×D) means,

(x,y)(A×B)(C×D)(x,y){(a,b):aA,bB}(x,y){(c,d):cC,dD}

We can see that x must be in both A and C, and y must be in both B and D.

Therefore, the RHS is equivalent to

(x,y){(s,t):sAC,tBD}

Thus we have shown (A×B)(C×D)=(AC)×(BD).


Is it true that (A×B)(C×D)=(AC)×(BD)?

Let's write out what (A×B)(C×D) means,

(x,y)(A×B)(C×D)(x,y){(a,b):aA,bB}(x,y){(c,d):cD,dD}

Here we need to be careful about what this means. It means that

(xAyB)(xCyD)

Note in particular that (c,b):cC,bB is not compatible with this, and is therefore not in the set (A×B)(C×D)

Let's consider the other set, (AC)×(BD). This means

(x,y)(AC)×(BD)(x,y){(a,b):aAC,bBD}

This time, the ordered pair (c,b):cC,bB  is in this set.

Therefore the two are not equivalent, (A×B)(C×D)(AC)×(BD).

A counter-example can illustrate this. Consider A={1},B={2},C={3},D={4}

Then  (A×B)(C×D)={(1,2),(3,4)}, and (AC)×(BD)={(1,2),(1,4),(3,2),(3,4)}, a different set. The latter contains (3,2), the former does not.


Is it true that (A×B)(C×D)=(AC)×(BD)?

Let's write out what (A×B)(C×D) means,

(x,y)(A×B)(C×D)(x,y){(a,b):aA,bB}(x,y){(c,d):cC,dD}

Again, with some care, we establish what this means. (revision on negating statements)

(xAyB)(xCyD)

Consider the ordered pair (a,e):aA,eBD. This satisfies the above condition, so is a member of the set (A×B)(C×D)

Now let's consider the other set, (AC)×(BD). This means

(x,y)(AC)×(BD)(x,y){(a,b):aAaC,bBbD}

That is, xAxCyByD.

The ordered pair (a,e):aA,eBD is not in this set.

Therefore the two are not equivalent, (A×B)(C×D)(AC)×(BD).

Again, a counter-example will illustrate this. Consider A={1},B={2,3},C={4},D={3,5}

Then, (A×B)(C×D)={(1,2),(1,3)}, and (AC)×(BD)={(1,2)}, a different set. The former contains {1,3}, the latter does not.


Tao Analysis I - 3.5.4

Exercise 3.5.4

Let A, B, C be sets. Show that A×(BC)=(A×B)(A×C), that A×(BC)=(A×B)(A×C), and that A×(BC)=(A×B)(A×C).


Show A×(BC)=(A×B)(A×C)

Let's write out what A×(BC) means,

(a,d)A×(BC)(a,d){(x,y):xA,yBC}

The RHS is equivalent to

(a,d){(x,y):xA,yB}(a,d){(x,y):xA,yC}

Which is equivalent to

(a,d)A×(BC)(a,d)(A×B)(A×C)

Thus, we have shown A×(BC)=(A×B)(A×C).


Show A×(BC)=(A×B)(A×C)

Let's write out what A×(BC) means

(a,d)A×(BC)(a,d){(x,y):xA,yBC}

The RHS is equivalent to

(a,d){(x,y):xA,yB}(a,d){(x,y):xA,yC}

Which is equivalent to

(a,d)A×(BC)(a,d)(A×B)(A×C)

Thus, we have shown A×(BC)=(A×B)(A×C).


Show A×(BC)=(A×B)(A×C)

Let's write out what A×(BC) means

(a,d)A×(BC)(a,d){(x,y):xA,yBC}

The RHS is equivalent to

(a,d){(x,y):xA,yB}(a,d){(x,y):xA,yC}

Which is equivalent to

(a,d)A×(BC)(a,d)(A×B)(A×C)

Thus, we have shown A×(BC)=(A×B)(A×C).


Tao Analysis I - 3.5.3

Exercise 3.5.3

Show that the definitions of equality for ordered pair and ordered n-tuple are consistent with the reflexivity, symmetry, and transitivity axioms, in the sense that if these axioms are assumed to hold for the individual components x, y of an ordered pair (x,y), then they hold for the ordered pair itself.


The approach is the same for both ordered pair and ntuple but for clarity we'll do the special easier case of an ordered pair first, then do the more general n-tuple.


Ordered Pair

Two ordered pairs (x,y) and (x,y) are equal if and only if x=x and y=y, by Definition 3.5.1.

Let's consider reflexivity, A=BB=A. So let's assume (x,y)=(x,y). This means x=x and y=y. Since reflexivity holds for x,y,x,y, we can say x=x and y=y, which is equivalent to (x,y)=(x,y). Thus we have shown reflexivity, (x,y)=(x,y)(x,y)=(x,y).

Now let's consider symmetry, (x,y)=(x,y). This is true because we know the components obey the equivalence property x=x and y=y, which means the ordered pair is equal to itself by definition 3.5.1.

Finally, consider transitivity, A=BB=CA=C. Let's start with (x,y)=(x,y) and (x,y)=(x,y). Using definition 3.5.1, we know that x=x,y=y and also x=x,y=y. Since these individual components obey the equivalence property of transitivity, we can say x=x,y=y. By definition 3.5.1 this tells us (x,y)=(x,y). We have shown ordered pairs obey transitivity, (x,y)=(x,y) and (x,y)=(x,y) implies (x,y)=(x,y).


n-Tuples

Definition 3.5.6 generalises equality of ordered pairs to n-tuples:

Two ordered n-tuples (xi)1in and (yi)1in are said to be equal iff xi=yi for all 1in.

Let's consider reflexivity, A=BB=A. Given two equal n-tuples, (xi)1in=(yi)1in, we know by the above definition 3.5.1 that xi=yi for all 1in. Since these individual components xi and yi obey reflexivity, we can say yi=xi for all 1in. This is equivalent to (yi)1in=(xi)1in, thus we have shown reflexivity.

Let's now consider symmetry, (xi)1in=(xi)1in. For this to be true we must have xi=xi for all 1in. This is indeed the case as the individual components xi obey symmetry. This we have shown symmetry.

Finally, consider transitivity, A=BB=CA=C. Let's start with (xi)1in=(yi)1in, and (yi)1in=(zi)1in. This tells us xi=yi for all 1in, and yi=zi for all 1in. Since these individual elements obey transitivity, we have xi=zi for all 1in. This is equivalent to (xi)1in=(zi)1in. Thus, we have shown transitivity. .


Monday, 25 March 2024

Tao Analysis I - 3.5.2

Exercise 3.5.2

Suppose we define an ordered n-tuple to be a surjective function x:{iN:1in}X whose codomain is some arbitrary set X (so different ordered n-tuples are allowed to have different ranges); we then write xi for x(i) and also write x as (xi)1in. Using this definition, verify that we have (xi)1in=(yi)1in if and only if xi=yi for all 1in

Also, show that if (Xi)1in are an ordered n-tuple of sets, then the Cartesian product, as defined in Definition 3.5.6, is indeed a set. (Hint: use Exercise 3.4.7 and the axiom of specification.)


Let's remind ourselves of Definition 3.5.6 (Ordered n-tuple and n-fold Cartesian product):

Let n be a natural number. An ordered n-tuple (xi)1in (also denoted (x1,,xn)) is a collection of objects xi , one for every natural number i between 1 and n; we refer to xi as the ith component of the ordered n-tuple.

Two ordered n-tuples (xi)1in and (yi)1in are said to be equal iff xi=yi for all 1in.

If (Xi)1in is an ordered n-tuple of sets, we define their Cartesian product 1inXi (also denoted i=1nXi or X1××Xn) by

1inXi:={(xi)1in:xiXi for all 1in}


Exploration

The terminology here is quite dense and confusing, so let's illustrate it with small examples to help clarify our thinking.

Let's start with the idea of an n-tuple as a function. The following shows a function which maps from a domain {1,2,3} to a codomain {a,b,c}

Specifically, the function maps 1 to a, 2 to b, and 3 to c

To fully describe this function, we can list the output values as an ordered n-tuple, (a,b,c)

However, to do this we also need to know which elements of the domain these output values correspond to, and for this we need to order the domain too. We can do this simply as iN:1i3, which gives 1, then 2, then 3, in that order.

To illustrate the notation, we can write fi for f(i), that is f2 for f(2). We can also write simply f for (fi)1i3.


Part One

We need to show that (xi)1in=(yi)1in if and only if xi=yi for all 1in. To do this we need to show both:

  • (xi)1in=(yi)1inxi=yi for all 1in
  • xi=yi for all 1in(xi)1in=(yi)1in

The first statement assumes the two functions x and y are equal. Functions are equal if they have the same domain, codomain, and also map the same inputs to the same outputs. This last requirement can be written as x(i)=y(i) for all 1in, which is what we needed to show.

The second statement assumes the two functions map the same inputs to the same outputs, x(i)=y(i). The domain is the same because it is defined for both as iN:1in. The range is the same because x(i)=y(i) for all 1in. Since the function is surjective, the range is also the domain. Thus we have demonstrated the three requirements for the functions to be equal, (xi)1in=(yi)1in.

Having shown both implications, we have proved that (xi)1in=(yi)1in if and only if xi=yi for all 1in.


Part Two - Exploration

I found this quote difficult so I began with an example illustration of some of the objects involved in the exercise.

An ordered n-tuple of sets, is a tuple with sets as elements. For example, a 2-tuple (X1,X2), where X1 and X2 are sets, not primitive objects like natural numbers. 

To illustrate, the cartesian product of those sets, let's fill in the content of those sets. For example, X1={a,b}, and X2={c}. The cartesian product is a set of 2-tuples, as per definition 3.5.6, which here is

1i2Xi={(a,c),(b,c)}

It is worth being clear that the cartesian product is a set of ordered n-tuples.

Let's think about how we might construct the cartesian product:

  • we can form the union of the original sets, X1,X2={a,b,c}
  • each element of the cartesian product is a 2-tuple (x1,x2) where x1X1,x2X2
  • that 2-tuple is a partial function from the domain {1,2} to the codomain {a,b,c}
  • the collection of all such partial functions is a set by exercise 3.4.7
  • we can select from that set, using the axiom of specification, just those partial functions that meet our needs: have a domain {1,2}, have codomain {a,b,c}, map i to xiXi, and are surjective, which gives us the set {(a,c),(b,c)}
  • the resulting set is the desired cartesian product


Part Two -  Solution

The exercise hints at using the axiom of specification, which can only be applied to one set. This suggests we need to form a single set from the n sets Xi, where 1in.

Let's begin with the union of those sets,

Y=1inXi

Thus, any element of any Xi is a member of Y. And so this set Y is useful because we can use its elements to build the cartesian product's tuples.

Now, consider a partial function from {1in}Y. This is a function which maps from a subset of the domain {1in} to a subset of the codomain Y. The collection of all such partial functions is a set, a result proved in Exercise 3.4.7. Let's call this set F.

Some, but not all, elements of this set F are functions, n-tuples, that are the elements of the cartesian product. We can select them using the Axiom of Specification to form the set C, using a statement S.

C={fF:S(f) is true}

here the statement S(f) is

S(f):domf={1in}codomainf=Yf(i)Xif is surjective

That is, the statement S(f) is true is the function fF has a domain \{1 \leq i \leq n\}, has a codomain Y=Xi, maps as f(i)Xi, and is surjective.

The resulting set C contains only the elements of the cartesian product 1inXi, as per Definition 3.5.6.

We have shown the cartesian product is a set by constructing it using the axioms, as above.

Wednesday, 20 March 2024

Tao Analysis I - 3.5.1

Exercise 3.5.1

(i) Suppose we define the ordered pair (x,y) for any objects x and y by the formula (x,y):={{x},{x,y}}. Show that such a definition (known as the Kuratowski definition of an ordered pair) indeed obeys the property (3.5).

(ii) Suppose we instead define an ordered pair using the alternate definition (x,y):={x,{x,y}}. Show that this definition (known as the short definition of an ordered pair) also verifies (3.5) and is thus also an acceptable definition of ordered pair. (Warning: this is tricky; one needs the axiom of regularity, and in particular Exercise 3.2.2.)

(iii) Show that regardless of the definition of ordered pair, the Cartesian product X×Y of any two sets X,Y is again a set. (Hint: first use the axiom of replacement to show that for any xX, that {(x,y):yY} is a set, and then apply the axiom of union.)


Let's remind ourselves of property (3.5):

Two ordered pairs (x,y) and (x,y) are considered equal if and only if both their components match, i.e.,

(x,y)=(x,y)(x=xy=y)


Part (i)

Let's consider two ordered pairs, (x,y) and (a,b). Let's write these in the form of the Kuratowski definition.

(x,y):={{x},{x,y}}

(a,b):={{a},{a,b}}

For the two ordered pairs to be equal, the two sets, {{x},{x,y}} and {{a},{a,b}}, must be equal. Two sets are equal if every member of one is also a member of the other.

This means the following four statements must be true:

  • {x}{{a},{a,b}}
  • {x,y}{{a},{a,b}}
  • {a}{{x},{x,y}}
  • {a,b}{{x},{x,y}}

Each of these statements implies the following, listed in corresponding order:

  • (x=a)(x=a=b)
  • (x=ay=b)(x=by=a)
  • (a=x)(a=x=y)
  • (a=xb=y)(a=yb=x)

These make use of the fact that a set with two (distinct) elements can't equal a singleton set. That is, {x}{a,b}, unless a=b, in which case {a,b}={a}={b}, a singleton set.

These last four statements are only all true if:

(x=a)(y=b)

This is because the first and third statements set x=a in all cases. Then the second and fourth statements set b=y, or the case where x=y=a=b.

This shows the Kuratowski definition of an ordered pair obeys property 3.5.


Part (ii)

We take a similar approach to the above. 

Before we do, let's remind ourselves of the result of Exercise 3.2.2:

  • If A is a set, then AA
  • If A and B are sets, then either AB or BA, or both.

Let's consider two ordered pairs, (x,y) and (a,b). Let's write these in the form of the "short" definition.

(x,y):={x,{x,y}}

(a,b):={a,{a,b}}

For the two ordered pairs to be equal, the two sets, {x,{x,y}} and {a,{a,b}}, must be equal. Two sets are equal if every member of one is also a member of the other.

This means the following four statements must be true:

  • x{a,{a,b}}
  • {x,y}{a,{a,b}}
  • a{x,{x,y}}
  • {a,b}{x,{x,y}}

Each of these statements implies the following, listed in corresponding order:

  • (x=a)(x={a,b})
  • (x=ay=b)(a={x,y})
  • (a=x)(a={x,y})
  • (a=xb=y)(x={a,b})

This requires more work to resolve. We start with two cases, x=a suggested by the first and third statements,  or xa.

case x=a

The first statement then suggests x=a={a,b}. However, this is ruled out by the axiom of regularity. If x=a is a fundamental object, then it cannot be a set {a,b}. If x=a is a set, then it cannot be a member of {a,b} by the axiom of regularity.

Similarly,  the second statement suggests a={x,y}, which is ruled out by the axiom of regularity, following a similar argument as above. This leaves x=ay=b. That is, y=b.

The third statement suggests a={x,y}, also ruled out by the axiom of regularity.

The fourth statement suggests x={a,b}, which is ruled out by the axiom of regularity, leaving b=y.

So the case x=a leaves only b=y.

case xa

Since xa, all four statements tell us the following two statements must be true:

  • a={x,y}
  • x={a,b}

This is ruled out by the axiom of regularity in the second form presented above: if A and B are sets, then either AB or BA, or both. So x must not be an element of {x,y}, a must not be an element of {a,b}

So the case xa is ruled out.

Considering both cases leaves us with

(x=a)(y=b)

This shows the "short" definition of an ordered pair obeys property 3.5.


Part (iii)

For any two sets, X and Y, we want to show that the cartesian product X×Y is also a set.

Fix an xX and apply the Axiom of Replacement to Y as follows. Consider the statement P:

P(y,(xy)):(x,y) is an ordered pair with yY

This statement P is true if (x,y) is an ordered pair with yY. For every yY it is true for at most one ordered pair (x,y), therefore it is suitable for use by the Axiom of Replacement. This gives us a new set S of ordered pairs:

Sx={(x,y):yY}

Remember, x is fixed.

Now we need to iterate over xX and we can do this using the Axiom of Union, which defines the following set:

T=xXSx={(x,y):xX,yY}

This set T contains all the combinations of xX and yY in the form of ordered pairs (x,y)

This is the Cartesian product X×Y, and is a set by the axioms of construction we used.


Update to Part (iii)

This discussion (link) has clarified an important point and is worth discussing here.

The axiom of union is quite intuitive, which is good, but does risk us overlooking some details.

The detail I had glossed over is that the union S requires S to be a set (of sets). Ensuring that S is a set is something I had glossed over, so the following approach is a little more rigorous.

Step 1:

  • Fix an xX and use the axiom of replacement on Y. Use the statement P(x,(x,y)):(x,y) is an ordered pair for yY which is true for at most one ordered pair (x,y) for each yY. This gives us a set Sx={(x,y):yY}. That is, the set exists due to the axiom of replacement.

Step 2:

  • Now use the axiom of replacement again, this time on Y. Use the statement Q(x,Sx):Sx is the set of ordered pairs {(x,y):yY} for xX) which is true for at most one Sx for each xX. This gives us a set of sets S={Sx:xX}. Again, this set exists due to the axiom of replacement.

Step 3:

  • Now we know S exists, we can use the axion of union, S={(x,y):(x,y)Sx}. This is equivalent to S={(x,y):xX,yY}=X×Y, as required.

Sunday, 17 March 2024

Tao Analysis I - 3.4.11

Exercise 3.4.11

Let X be a set, let I be an on-empty set, and for all αI let Aα be a subset of X.

Show that

XαIAα=αI(XAα)

and

XαIAα=αI(XAα)



Part One

Let's start by considering αIAα. By definition we have

xαIAα(xAα for some αI)

If x is not in αIAα, then we have

xαIAα(xAα for all αI)

Note the quantifier changes from "for some" to "for all" when negated.

So,  xXαIAα means

(xX)(xαIAα)

That is,

(xX)(xAα for all αI)

That means xX and also xAα for each and every Aα. This is equivalent to

xαI(XAα)

We have shown,

XαIAα=αI(XAα)


Part Two

The approach is similar to Part One.

Let's start by considering αIAα. By definition we have

xαIAα(xAα for all αI)

If x is not in αIAα, then we have

xαIAα(xAα for some αI)

Note the quantifier changes from "for all" to "for some" when negated. It might be easier to read "for some" as "at least one" in this example.

So,  xXαIAα means

(xX)(xαIAα)

That is,

(xX)(xAα for some αI)

That means xX and also xAα for some Aα. This is equivalent to

xαI(XAα)

We have shown,

XαIAα=αI(XAα)


Saturday, 16 March 2024

Tao Analysis I - 3.4.10

Exercise 3.4.10

Suppose that I and J are two sets, and for all αIJ let Aα be a set. Show that

(αIAα)(αJAα)=αIJAα

If I and I are non-empty, show that

(αIAα)(αJAα)=αIJAα


Union of Unions

Let's first consider the set (αIAα). By definition (3.2), we have

x(αIAα)xAα for some αI

Similarly, 

x(αJAα)xAα for some αJ

Now, by definition of pairwise union, if xXY(xY)(xY). So we have,

x(αIAα)(αJAα)(xAα for some αI)(xAα for some αJ)

The two membership conditions are combined in disjunction.

The RHS is equivalent to (xAα for some αIJ). This is the definition of αIJAα.

Thus, we have shown

(αIAα)(αJAα)=αIJAα


Intersection of Intersections

Let's consider the set (αIAα). By definition (3.4), we have

x(αIAα)xAα for all αI

Similarly,

x(αJAα)xAα for all αJ

Now, by definition of pairwise intersection, xXY(xY)(xY). So we have,

x(αIAα)(αJAα)(xAα for all αI)(xAα for all αJ)

The two membership conditions are combined in conjunction.

The RHS is equivalent to (xAα for all αIJ). This is the definition of αIJAα.

Thus, we have shown

(αIAα)(αJAα)=αIJAα


Tao Analysis I - 3.4.9

Exercise 3.4.9

Show that if β and β are two elements of a set I, and to each αI we assign a set Aα, then

{xAβ:xAα for all αI}={xAβ:xAα for all αI}

and so the definition of αIAα defined in (3.3) does not depend on β.

Also explain why (3.4) is true.


Let's remind ourselves what the more general definition of intersection (3.3) says:

Given any non-empty set I , and given an assignment of a set Aα to each αI, we can define the intersection αIAα by first choosing some element β of I (which we can do since I is non-empty), and setting

αIAα:={xAβ:xAα for all αI}

which is a set by the axiom of specification.


Thoughts

Since the intersection contains only elements which are members of all Aα, it doesn't matter which β is chosen to select one Aα=β

Another way to think about this is that, it is impossible to pick a bad Aβ because if an element is not in Aβ then it can't be in the intersection.

Another point worth making is that the definition looks over-complicated. Why can't be as simple as the following?

αIAα:={x:xAα for all αI}

The reason is that defining sets using logical statements can lead to paradoxes, as Tao introduced earlier. However, defining sets as subsets of known sets guarantees they are sets.


Solution

To show the two sets are equivalent, we need to show an element of one is also an element of the other.

If x{xAβ:xAα for all αI} then it must conform to the membership condition xAα for all αI.

Since Aβ is one of the Aα, then xAβ

So we have xAβ, and also xAα for all αI. This is equivalent to  x{xAβ:xAα for all αI}. This is the definition of the second set.

By a symmetric argument, if x is a member of the second set, it is also a member of the first.

Thus we have shown the two sets are equivalent. .


Now let's consider why (3.4) is true. Let's restate (3.4):

yαIAα(yAα for all αI)

Let's show this in the usual manner, that each statement implies the other.

If  yαIAα, then by definition (3.3) of the intersection of a family of sets, we have y{xAβ:xAα for all αI}. This means y must conform to the membership condition yAα for all αI. We have shown

yαIAαyAα for all αI

Now the converse, if yAα for all αI is true then the membership condition {yAβ:yAα for all αI} for the intersection is met, noting that Aβ is one of the Aα. Thus we have shown

yAα for all αIyαIAα

By showing both implications, we have shown that (3.4) is true.

Tao Analysis I - 3.4.8

Exercise 3.4.8

Show that Axiom 3.5 can be deduced from Axiom 3.1, Axiom 3.4, and Axiom 3.12.


Let's remind ourselves of these axioms.

Axiom 3.5 (Pairwise union). Given any two sets A, B, there exists a set AB, called the union of A and B, which consists of all the elements which belong to A or B or both. In other words, for any object x,

xAB(xAxB)

Axiom 3.1 (Sets are objects). If A is a set, then A is also an object. In particular, given two sets A and B, it is meaningful to ask whether A is also an element of B.

Axiom 3.4 (Singleton sets and pair sets). If a is an object, then there exists a set {a} whose only element is a, i.e., for every object y, we have y{a} if and only if y=a; we refer to {a} as the singleton set whose element is a. Furthermore, if a and b are objects, then there exists a set {a,b} whose only elements are a and b; i.e., for every object y, we have y{a,b} if and only if y=a or y=b; we refer to this set as the pair set formed by a and b.

Axiom 3.12 (Union). Let A be a set, all of whose elements are themselves sets. Then there exists a set A whose elements are precisely those objects which are elements of the elements of A, thus for all objects x

xA(xS for some SA)


Thoughts

The Axiom of Union 3.12 is a generalisation of Axiom of Pairwise Union 3.5. 

This suggests we should apply the given constraints to Axiom 3.12 to yield 3.5.


Solution

Consider two sets, A and B

Axiom 3.1 tells us these sets are objects. As such they can be considered elements of other sets.

Axiom 3.4 for pair sets tells us that two objects A and B, then there exists a s set C={A,B} whose only elements are A and B. In our case, A and B are also sets themselves.

Axion 3.12 tells us that there exists a set C whose elements are precisely those objects which are elements of the elements of C. That is,  the elements of C are the elements of A or B, or both.

x{A,B}(xAxB)

This is the definition of a pairwise set of A and B, this Axiom 3.5 follows from Axions 3.1, 3.4 and 3.12.