Advertisement
se7enek

Untitled

Oct 29th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. The first question we should be asking ourselves is: What does 2+2=4 actually mean? What is 2? What is 4? What is +? And what is =? More generally, what is a Natural Number? And how are operations and relations defined over them?
  2.  
  3. Equality
  4.  
  5. You probably already know this, but I have to state it anyway. My answer needs to be logically closed (just be thankful I didn’t start from ZFC axioms, but whatever…). Anyway, equality is a relation between two things. Sure, but what is a relation?
  6.  
  7. A binary relation R between sets A and B is defined as follows:
  8.  
  9. R⊆A×B
  10.  
  11. Where × is the cartesian product. So aRb is true if and only if (a,b)∈R.
  12.  
  13. Equality = is a relation with the following properties:
  14.  
  15. Reflexivity: ∀x:x=x
  16. Symmetry: ∀x,y:x=y⟹y=x
  17. Transitivity: ∀x,y,z:((x=y∧y=z)⟹x=z)
  18. Natural Numbers: The most beautifully unnatural thing ever
  19.  
  20. If you ask someone what is a Natural Number, you will usually hear “1,2,3,…” as if that settled the matter. The actual definition removes the ambiguity and makes the matter a lot more attractive. So, what are Natural Numbers?
  21.  
  22. The(∗) set N whose elements proves to respect the Peano Axioms is the set of Natural Numbers. Equality is defined over this set, meaning the Natural Numbers are closed under equality (obviously). Here are the Peano Axioms:
  23.  
  24. 0∈N
  25. The successor function S:N→N has the following properties:
  26. ∀n∈N:S(n)∈N
  27. ∀n,m∈N:m=n⟺S(n)=S(m)
  28. ∄n∈N:S(n)=0
  29. Are we done? Well, let’s see what these axioms imply. The first thing we are told is that 0 is a Natural Number. By axiom 2a, S(0) is also in N. So is S(S(0)), S(S(S(0))) and S(S(…S(S(0)))). This looks like some kind of “line structure”, as if the set would admit a total order. But what if ∃n∈N,n≠0:(∄m∈N:S(m)=n)? That is, could there be a Natural Number that is not the successor of any Natural Number? Let’s see. Take the set:
  30.  
  31. M={0,S(0),S(S(0)),...,z,S(z),S(S(z)),...}
  32.  
  33. That is, the set including 0 and all of its successors and z and all of its successors. It has the aforementioned property that z is not the successor of any other Natural Number. Does M verify the axioms? Well, axiom 1 is trivially verified by looking at it. Axiom 2a is also verified: by how we defined the set, it turns out to be closed under the successor function. Similarly, 2b and 2c are also true of M. The set I constructed above has two totally independent “lines” (call them the 0 line and the z line) and therefore does not allow for a total order.
  34.  
  35. But…but…this isn’t what we want.
  36.  
  37. Natural Numbers arose as an intuitive way to understand some aspects of reality first, and it wasn’t until much, much later that the definition was captured formally. And we already had the intuitive grasp of how they should behave. In order to avoid M, we require an additional axiom.
  38.  
  39. Axiom of Induction: (0∈X∧(∀n∈N:n∈X⟹S(n)∈X)⟹N⊆X
  40. This implies that every Natural Number, except 0, is the successor of another Natural Number. With the axiom of induction, a total (or sometimes called linear) order can be induced in N. Since it isn’t of much relevance in this answer, we won’t formally define the notion of total order.
  41.  
  42. Most readers who got to this point can see 2=S(S(0)) and 4=S(S(S(S(0)))), but in order to attain to mathematical formalisms, how can we construct N purely from set theoretic notions?
  43.  
  44. The Von Neumann Construction of the Natural Numbers
  45.  
  46. I’ll show how such feat can be accomplished. Define 0={} and S(n)=n∪{n}. Then:
  47.  
  48. S(0)={{}}
  49.  
  50. S(S(0))={{},{{}}}
  51.  
  52. S(S(S(0)))={{},{{}},{{},{{}}}}
  53.  
  54. (…)
  55.  
  56. I hope I didn’t miss anything in there, that’s pretty confusing in La. Anyhow, the idea is that the successor of n will contain every previous Natural Number, including n. It is easier to see that if we write it like this:
  57.  
  58. 0={}
  59.  
  60. 1=S(0)={0}
  61.  
  62. 2=S(S(0))={0,1}
  63.  
  64. 3=S(S(S(0)))={0,1,2}
  65.  
  66. (…)
  67.  
  68. As you can see, there are many sets which comply with the Peano Axioms, which we call “representations” or models of the abstract object N. That is, the sets are defined by different means, but semantically, they are exactly the same.
  69.  
  70. Enough with Natural Numbers themselves. Let’s go to the only thing left undefined: +
  71.  
  72. Addition on the Natural Numbers
  73.  
  74. Define an operation + over N as:
  75.  
  76. ∀n∈N:n+0=n
  77.  
  78. ∀a,b∈N:S(a+b)=a+S(b)
  79.  
  80. Sure enough, that implies that S(n)=n+1, since n+1=n+S(0) and by definition n+S(0)=S(n+0)=S(n). Is + associative and commutative as we would expect? Of course! And, as if that wasn’t enough beauty, we will use the Axiom of Induction. First, we need to know if ∀n∈N:0+n=n:
  81.  
  82. 0 is the additive identity:
  83. Define the predicate P(n) as ∀n∈N:0+n=n. P(0) clearly holds: 0+0=0 by the first definition. By the Axiom of Induction:
  84.  
  85. n+0=0+n⟹
  86.  
  87. S(n+0)=S(0+n)⟹
  88.  
  89. S(n)=0+S(n)⟹
  90.  
  91. ∀n∈N:0+n=n
  92.  
  93. Associativity:
  94. Define P(c) as ∀a,b∈N:(a+b)+c=a+(b+c)
  95.  
  96. P(0):
  97.  
  98. (a+b)+0=a+b
  99.  
  100. a+(b+0)=a+b
  101.  
  102. Now we have to show that:
  103.  
  104. P(c)⟹P(S(c)):
  105.  
  106. Assume P(c):
  107.  
  108. (a+b)+c=a+(b+c)⟹
  109.  
  110. S((a+b)+c)=S(a+(b+c))⟹
  111.  
  112. (a+b)+S(c)=a+S(b+c)⟹
  113.  
  114. (a+b)+S(c)=a+(b+S(c))
  115.  
  116. Commutativity:
  117. Give the name P(ℓ) (ℓ∈N) to the predicate ∀n∈N:n+ℓ=ℓ+n. For ℓ=1:
  118.  
  119. P(1):
  120.  
  121. We will use 1 (since we’ve already shown 0 commutes with everything) as the base case and prove P(1) with induction over G(a):a+1=1+a. G(0) is of course trivial. Now let’s prove G(a)⟹G(a+1).
  122.  
  123. S(a)+1=S(a)+S(0)⟹
  124.  
  125. S(a)+1=S(S(a)+0)⟹
  126.  
  127. S(a)+1=S(a+1)⟹
  128.  
  129. By the induction hypothesis:
  130.  
  131. S(a)+1=S(1+a)⟹
  132.  
  133. S(a)+1=1+S(a)
  134.  
  135. The base case is done, inductive step to go!
  136.  
  137. P(ℓ)⟹P(S(ℓ)):
  138.  
  139. Assume P(ℓ):
  140.  
  141. n+ℓ=ℓ+n⟹
  142.  
  143. S(n+ℓ)=S(ℓ+n)⟹
  144.  
  145. n+S(ℓ)=ℓ+S(n)⟹
  146.  
  147. n+ℓ+1=ℓ+n+1
  148.  
  149. By the base case (1 commutes with everything):
  150.  
  151. n+ℓ+1=ℓ+1+n
  152.  
  153. n+S(ℓ)=S(ℓ)+n
  154.  
  155. And we’ve proven our favorite properties of addition directly from the definition!
  156.  
  157. The Actual Question
  158.  
  159. Now, I’ll prove 2+2=4. It’s a bit boring, but hopefully the way was somehow enlightening. Anyhow, 2=S(S(0)) and 4=S(S(S(S(0)))).
  160.  
  161. 2+2=S(S(0))+S(S(0))⟹
  162.  
  163. 2+2=S(S(S(0))+S(0))⟹
  164.  
  165. 2+2=S(S(S(0))+1)⟹
  166.  
  167. 2+2=S(S(S(S(0))))=4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement