Question

In: Advanced Math

Prove that every natural number is odd or even.

Prove that every natural number is odd or even.

Solutions

Expert Solution

Modular arithmetic (MA) has the same axioms as first order Peano arithmetic except ∀x(Sx≠0)∀x(Sx≠0)is replaced with ∃x(Sx=0)∃x(Sx=0). MA has finite models and every infinite model of MA must have non-standard elements. In Even XOR Odd Infinities? I asked if every model of MA is exclusively even or exclusively odd. I asked if this statement is a theorem of MA:

1) ∃x(x≠0∧x+x=0)∨¯¯¯¯∃x(x+x=1)∃x(x≠0∧x+x=0)∨¯∃x(x+x=1)

The answer was no. Emil Jeřábek showed the 2-adic integers, Z2Z2, are a model of MA and the above statement is false in Z2Z2. Now, I am interested in whether the following statement is a theorem of first order PA:

2) ∀x(x=0∨(∃y(y≠0∧(x=y+y∨Sx=y+y))))∀x(x=0∨(∃y(y≠0∧(x=y+y∨Sx=y+y))))

Is statement (2) a theorem of first order PA? If so, does this mean any proof of (2) in first order PA must use the axiom ∀x(Sx≠0)∀x(Sx≠0)? Notice that statement (2) is false for −1−1 in Z2Z2 and (2) is not a theorem of MA. Is it possible there are non-standard models of PA with elements that are neither even nor odd?

I am accepting the answer that (2) is provable using induction. I want to show why.

Let P(x)=(x=0∨(∃y(y≠0∧(x=y+y∨sx=y+y)))P(x)=(x=0∨(∃y(y≠0∧(x=y+y∨sx=y+y))).

Obviously, P(0)P(0) is true. The induction schema also requires we prove ∀x(P(x)→P(S(x)))∀x(P(x)→P(S(x))). Notice I have defined two successor functions. sxsx is in the definition of P(x)P(x) and S(x)S(x) is used in the induction axiom. It is easier to break the proof into parts.

Consider the case where ∃y(sx=y+y)∃y(sx=y+y). Then we have (sx=y+y)→(S(x)=y+y)(sx=y+y)→(S(x)=y+y). Since the two successor functions are equal this part of the proof only requires the axiom of equality. This part of the proof works in both PA and MA.

Next, consider the case ∃y(y≠0∧x=y+y)∃y(y≠0∧x=y+y). Now:

(y≠0∧x=y+y)→(sy≠0∧sS(x)=sy+sy)(y≠0∧x=y+y)→(sy≠0∧sS(x)=sy+sy).

This can be proven in PA, but not in MA because of the sy≠0sy≠0 in the induction step. We can prove sy≠0sy≠0 in PA using the axiom ∀x(sx≠0)∀x(sx≠0). The rest of the statement can be proven using the axiom ∀x∀y(x+S(y)=S(x+y))∀x∀y(x+S(y)=S(x+y)). Combining the cases we have a proof of ∀x(P(x)→P(S(x)))∀x(P(x)→P(S(x))) in PA.

I find it interesting we need the axiom ∀x(sx≠0)∀x(sx≠0) to prove every natural number is even or odd.

Statement 2 is a theorem of first order PA. It is true for x=0x=0 and x=S0x=S0 by inspection. Then if it is true for kk, there is a witness yy and either yy or y+1y+1 is a witness for k+1k+1. Given that it is a theorem of PA, it is true for all nonstandard elements as well. Since we have a hard time describing a nonstandard element, we have a hard time deciding whether it is even or odd, but it is one of those.


Related Solutions

prove that every integer is either even or odd but never both.
prove that every integer is either even or odd but never both.
Use the Well-Ordering Principle of the natural numbers to prove that every positive rational number x...
Use the Well-Ordering Principle of the natural numbers to prove that every positive rational number x can be expressed as a fraction x = a/b where a and b are postive integers with no common factor.
prove that if an even integer n is subtracted from an odd integer m. then m...
prove that if an even integer n is subtracted from an odd integer m. then m - n is odd.
Write c code to determine if a binary number is even or odd. If it is...
Write c code to determine if a binary number is even or odd. If it is odd, it outputs 1, and if it is even, it outputs 0. It has to be less than 12 operations. The operations have to be logical, bitwise, and arithmetic.
Develop a C++ function to find the number of even and odd integers in a given...
Develop a C++ function to find the number of even and odd integers in a given array of integers Pass in an array of integers Pass in the size of the array of integers Pass in a reference parameter for the number of even values Pass in a reference parameter for the number of odd values The function doesn't return anything Develop a C++ program to test your function
Prove that every polynomial having real coefficients and odd degree has a real root
  Problem: Prove that every polynomial having real coefficients and odd degree has a real root This is a problem from a chapter 5.4 'applications of connectedness' in a book 'Principles of Topology(by Croom)' So you should prove by using the connectedness concept in Topology, maybe.
Write a function name as 'checkEvenOrOdd' that checks the input value is odd or even number....
Write a function name as 'checkEvenOrOdd' that checks the input value is odd or even number. The main function is given: int main(){     int number;     cout << "Check number input: ";     cin >> number;     cout << "The input number " << number << " is " << checkEvenOrOdd(number) << endl;     return 0; } simple c++ code please
A 2nd order homogeneous linear differential equation has odd-even parity. Prove that if one of its...
A 2nd order homogeneous linear differential equation has odd-even parity. Prove that if one of its solutions is an even function and the other can be constructed as an odd function.
Prove that every real number with a terminating binary representation (finite number
Prove that every real number with a terminating binary representation (finite number of digits to the right of the binary point) also has a terminating decimal representation (finite number of digits to the right of the decimal point).  
Counts the number of odd, even, and zero digits in an integer input value. Repeat until...
Counts the number of odd, even, and zero digits in an integer input value. Repeat until user does not want to continue. Develop the program in an incremental fashion. For example, write the part of the program, which inputs a single integer value and displays number of odd, even, and zero digits in that number. Submit your partial program for grading to make sure it works for the first few test cases. Below is an example execution of a partial...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT