1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Juli2301 [7.4K]
3 years ago
8

What is 2 + 2? Its kinda important. for a very important school project.

Mathematics
2 answers:
Agata [3.3K]3 years ago
5 0

I do not know how to solve this incredibly difficult question. The complexity rivals those of the millennial problems. Instead, I’ll let reddit user u/sellopou speak his words.

Take a computational approach to the problem. Specifically, consider the encoding of natural numbers in the simply-typed lambda calculus called Church numerals. In this encoding, the number 2 is represented by a function that looks like this:

2 ≡ λf.λx.f (f x)  

In other words, the number two is a function that takes a function and some value (let's assume that we're comfortable with currying here), and applies the function twice to the value. In general, a number n is represented by a function that takes a function and some value and applies f to the value n times.

Using the Church encoding, you can define operations on the numbers as well. In this case, you're interested in plus, which takes two numbers and returns a number

plus ≡ λm.λn.λf.λx.???  

So what's in the body? Well, the body has to be n + m applications of f to the value x. If we pass f and x to n, we get n applications–call that r, and if we apply m to f and r, that'll be m + n applications of f:

plus ≡ λm.λn.λf.λx.m f (n f x)  

So the expression 2 + 2 using this encoding is:

plus 2 2 ≡ (λm.λn.λf.λx.m f (n f x)) (λf.λx.f (f x)) (λf.λx.f (f x))  

Now β-reduce until you get the result:

plus 2 2 ≡ (λm.λn.λf.λx.m f (n f x)) (λf.λx.f (f x)) (λf.λx.f (f x))  

        ↦ (λn.λf.λx.(λf.λx.f (f x)) f (n f x)) (λf.λx.f (f x))  

        ↦ (λf.λx.(λf.λx.f (f x)) f ((λf.λx.f (f x)) f x))  

        ↦ (λf.λx.(λx.f (f x)) ((λf.λx.f (f x)) f x))  

        ↦ (λf.λx.(λx.f (f x)) ((λx.f (f x)) x))  

        ↦ (λf.λx.(λx.f (f x)) (f (f x)))  

        ↦ (λf.λx.f (f (f (f x))))  

        ≡ 4.  

But now, let's bust out of this theoretical prison and say we have a number 0 in some representation that we can actually work with, as well as a function add1 that knows how to increment a number in that representation. Well, then we can get a useable representation out of our church numeral, by applying to the numeral to add1 and the value:

4 add1 0 = 4  

vladimir1956 [14]3 years ago
4 0
I mean you could know this but 2+2 is 4 you add two and two and get four.
You might be interested in
Marcus will deposit $500 into account A which earns 3.5% annual simple interest . He will deposit $325 into account B which earn
podryga [215]
Amount which is closest to the total balance of these two accounts at the end of the second year is $882.08
4 0
3 years ago
100204180 translate into words
Margaret [11]

one hundred million, two hundred and four thousand, one hundred eighty

8 0
3 years ago
Read 2 more answers
Find three rational numbers between -2 and 1 ?
netineya [11]

Answer:

-19/10,-18/10,-17/10

Step-by-step explanation:

multiply the both numbers up and down by 10.

then find the numbers

5 0
3 years ago
Read 2 more answers
Find the sum of the first 10 terms. 0.5, 0.9, 1.3, 1.7....
elena-s [515]

Answer: the 10th term is 4.1

Step-by-step explanation:

The sum is +0.4 each time.

1=0.5

2=0.9

3=1.3

4=1.7

5=2.1

6=2.5

7=2.9

8=3.3

9=3.7

10=4.1

8 0
3 years ago
Read 2 more answers
3 less than "x"is equal to 13
kodGreya [7K]
3 < 13





Hope this helpsss
6 0
3 years ago
Read 2 more answers
Other questions:
  • 100/100 as a percent and 1/1
    6·2 answers
  • How do you solve -3(x - 1) + 8(x - 3) = 6x + 7 -5x
    11·2 answers
  • Triangle after 90 degree rotation
    14·1 answer
  • John, Rick, and Molli paint a room in 3 hours. John can paint a room in 9 hours, and Rick can do it in 11 hours. How long does i
    13·1 answer
  • Roland needs 88 sheets of fabric that are each 4545 yard long. Use the drop-down menus to complete the equation. CLEAR CHECK 8 s
    12·2 answers
  • At a local pet rescue center, 20% of the animals are cats and the rest are dogs. If there are 90 animals at the shelter, how man
    5·1 answer
  • John bought a box of popcorn for $3.50 and three medium drinks. Define a variable and write an expression to represent the total
    8·1 answer
  • What is the sum (2/5x+5/8) (1/5x-1/4)?
    12·2 answers
  • Pls help extra points and mark brainlist
    14·1 answer
  • Which of the following is a function?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!