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.