Skip to main content

Church numerals continued

Japanese version

Last time, a circle was a symbol to represent a number. But, there is no such thing (a symbol to represent a number) in the Peano's axiom. Peano's axiom only define a Zero and a successor. we employed a square to represent Zero. But when we tell two numbers to a machine, we can not distinguish two numbers if we have only Zeros. See Figure 2. Therefore, we use a circle as a delimiter. One could say, we can use a space, but we also need to tell a space to a machine, otherwise any machine can not know a space exist. We need something like a number 0. 0 means ``there is nothing.'' If we write down nothing, how we could know something is missing. If we put 0, then we know nothing actively exists. 0 can represent ``existence of nothing.'' This is an excellent invention of human being.



By the way, speaking about space, there is no space character in Japanese. I think also Korean and Chinese do not have space character. Therefore, a processing of Asian text starts with finding words. A space character represents no character, but existence of no character makes so easy to find words. Space character is also a brilliant invention. I remind myself that Lao-tsu's ``usefulness of
uselessness.''

The Church numerals, one of the representations of numbers of lambda calculus, are defined as follows:

0 := λ f x. x
1 := λ f x. f x
2 := λ f x. f (f x)
3 := λ f x. f (f (f x))

It seems these are not numbers, but these satisfies Peno's axiom, therefore, these are numbers. Because no matter what it looks like, Peano's axiom defines what the number should be. If the condition is satisfied, they are numbers. That's the rule. If you closely look this numbers, the number of 'f' is represents the number. Zero has no `f,' 1 has one `f'. Two has two `f's . Three are also the same. This is the definition of Church numerals. As you see in Figure 3, this is almost the same as Figure 1's number. (Almost means both f and x are square. Different things should have different symbols. This is not good, but this is for computation.)


Marvin: What a long story to define just NUMBERS! You spent nine articles to define it. In the Wikipedia's lambda calculus page, when the Church numerals are defined, it has already defined all formal lambda expressions. You said just one is one square, two is two squares, ... this simple thing took so long. It is ok to explain something simple, but it is so pedantic. You have not even defined how to compute numbers. I have experienced five universes time. But this is too slow for me. So depressed.

But Marvin, this is the way I understand the Church number. I am a armature mathematician, so I could not understand if only the definitions of Peano's axiom is presented. It is so abstracted and dry for me.

Marvin: Doesn't matter. I am tired. You defined numbers. Now what? Roman number is better than this for computing. How can you write 2008? My co-processor will be depressed.

OK. We have now numbers, let's compute it... so functions.

Comments

Popular posts from this blog

Why A^{T}A is invertible? (2) Linear Algebra

Why A^{T}A has the inverse Let me explain why A^{T}A has the inverse, if the columns of A are independent. First, if a matrix is n by n, and all the columns are independent, then this is a square full rank matrix. Therefore, there is the inverse. So, the problem is when A is a m by n, rectangle matrix.  Strang's explanation is based on null space. Null space and column space are the fundamental of the linear algebra. This explanation is simple and clear. However, when I was a University student, I did not recall the explanation of the null space in my linear algebra class. Maybe I was careless. I regret that... Explanation based on null space This explanation is based on Strang's book. Column space and null space are the main characters. Let's start with this explanation. Assume  x  where x is in the null space of A .  The matrices ( A^{T} A ) and A share the null space as the following: This means, if x is in the null space of A , x is also in the null spa

Gauss's quote for positive, negative, and imaginary number

Recently I watched the following great videos about imaginary numbers by Welch Labs. https://youtu.be/T647CGsuOVU?list=PLiaHhY2iBX9g6KIvZ_703G3KJXapKkNaF I like this article about naming of math by Kalid Azad. https://betterexplained.com/articles/learning-tip-idea-name/ Both articles mentioned about Gauss, who suggested to use other names of positive, negative, and imaginary numbers. Gauss wrote these names are wrong and that is one of the reason people didn't get why negative times negative is positive, or, pure positive imaginary times pure positive imaginary is negative real number. I made a few videos about explaining why -1 * -1 = +1, too. Explanation: why -1 * -1 = +1 by pattern https://youtu.be/uD7JRdAzKP8 Explanation: why -1 * -1 = +1 by climbing a mountain https://youtu.be/uD7JRdAzKP8 But actually Gauss's insight is much powerful. The original is in the Gauß, Werke, Bd. 2, S. 178 . Hätte man +1, -1, √-1) nicht positiv, negative, imaginäre (oder gar um

Why parallelogram area is |ad-bc|?

Here is my question. The area of parallelogram is the difference of these two rectangles (red rectangle - blue rectangle). This is not intuitive for me. If you also think it is not so intuitive, you might interested in my slides. I try to explain this for hight school students. Slides:  A bit intuitive (for me) explanation of area of parallelogram  (to my site, external link) .