TheoremBase

Proves by induction from 0 that every element is even or odd, excludes 2k=2l+1 by comparing k and l and cancelling (one case gives 0=2j+1, the other j+j=1), and derives the clause for natural numbers from these facts and 2·0=0.

Proof

Each result cited below is universally quantified over the data in its own statement, and is applied to the data named where it is cited.

Throughout, expressions are read in N0\mathbb{N}_{0} as in The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §overloading, and 1=S(0)1=S(0) by The Set of Natural Numbers and the Number One §one, where SS is the successor; 2∈N⊆N02\in\mathbb{N}\subseteq\mathbb{N}_{0} and 2=1+12=1+1 by Arithmetic and Order of the Natural Numbers §digits. Since 1∈N=N0∖{0}1\in\mathbb{N}=\mathbb{N}_{0}\setminus\{0\} by The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §sets, 1≠01\neq0.

Two identities. (I) By Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order §zero, applied to m=2m=2, 2⋅0=02\cdot0=0. (II) Let k∈N0k\in\mathbb{N}_{0}. By Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order §distributive, applied to 22, kk and 11 in place of kk, mm and nn, 2(k+1)=2k+2⋅12(k+1)=2k+2\cdot1; by Natural Numbers Are the Successors in Omega: One Is Least and Not a Successor of a Natural Number, the Successor Is Injective, and N Is Closed under Addition and Multiplication §plus-one, applied to n=2n=2, 2⋅1=22\cdot1=2; and 2=1+12=1+1, so by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §associative, applied to 2k2k, 11 and 11 in place of kk, mm and nn,

2(k+1)=2k+(1+1)=(2k+1)+1.2(k+1)=2k+(1+1)=(2k+1)+1 .

Clause exactly-one: every element is even or odd. Let E={n∈N0:n is even or odd}E=\{n\in\mathbb{N}_{0}:n\text{ is even or odd}\}, a set by Sets and Maps: Ordinary Notation §set-builder: by Even and Odd Natural Numbers with Zero §even and Even and Odd Natural Numbers with Zero §odd the property says that n=2kn=2k or n=2k+1n=2k+1 for some k∈N0k\in\mathbb{N}_{0}, which quantifies over sets only. We show N0⊆E\mathbb{N}_{0}\subseteq E by induction from 00, that is, by Omega Is the Least Inductive Class: It Is a Set, Induction from Zero, the Peano Properties, and Transitivity §induction applied to the class EE, the successor of n∈N0n\in\mathbb{N}_{0} being S(n)=n+1S(n)=n+1 by Natural Numbers Are the Successors in Omega: One Is Least and Not a Successor of a Natural Number, the Successor Is Injective, and N Is Closed under Addition and Multiplication §plus-one. By (I), 0=2⋅00=2\cdot0 with 0∈N00\in\mathbb{N}_{0}, so 00 is even by Even and Odd Natural Numbers with Zero §even and 0∈E0\in E. Let n∈En\in E. If nn is even, n=2kn=2k with k∈N0k\in\mathbb{N}_{0}, then n+1=2k+1n+1=2k+1 is odd by Even and Odd Natural Numbers with Zero §odd, with the same kk. If nn is odd, n=2k+1n=2k+1 with k∈N0k\in\mathbb{N}_{0}, then n+1=(2k+1)+1=2(k+1)n+1=(2k+1)+1=2(k+1) by (II), and k+1∈N0k+1\in\mathbb{N}_{0}, so n+1n+1 is even. In both cases n+1∈En+1\in E. Hence every n∈N0n\in\mathbb{N}_{0} is even or odd.

Clause exactly-one: not both. Suppose n∈N0n\in\mathbb{N}_{0} is both even and odd: n=2kn=2k and n=2l+1n=2l+1 with k,l∈N0k,l\in\mathbb{N}_{0}. The order of N0\mathbb{N}_{0} is a well-order by The Order on Omega Is a Well-Order with Membership as Its Strict Order, and Nothing Lies between n and Its Successor §well-order, hence a total order by Well-Orders on a Set §well-order, so k≤lk\le l or l≤kl\le k by Partial and Total Orders on a Set and the Associated Strict Relation §total.

Case k≤lk\le l. By Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §difference, applied to m=km=k and n=ln=l, there is j∈N0j\in\mathbb{N}_{0} with k+j=lk+j=l. Then, by Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order §distributive (applied to 22, kk, jj) and Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §associative (applied to 2k2k, 2j2j, 11), 2l+1=(2k+2j)+1=2k+(2j+1)2l+1=(2k+2j)+1=2k+(2j+1), while 2k=2k+02k=2k+0 by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §zero. So 2k+0=2k+(2j+1)2k+0=2k+(2j+1), and Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §cancellation, applied to 2k2k, 00 and 2j+12j+1 in place of kk, mm and nn, gives 0=2j+10=2j+1. By Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §zero-sum, applied to m=2jm=2j and n=1n=1, 1=01=0, a contradiction.

Case l≤kl\le k. By Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §difference, applied to m=lm=l and n=kn=k, there is j∈N0j\in\mathbb{N}_{0} with l+j=kl+j=k. Then 2l+2j=2k=2l+12l+2j=2k=2l+1 by Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order §distributive (applied to 22, ll, jj), and Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §cancellation, applied to 2l2l, 2j2j and 11 in place of kk, mm and nn, gives 2j=12j=1. If j=0j=0, then 2j=2⋅0=02j=2\cdot0=0 by (I), so 1=01=0, a contradiction. Hence j≠0j\neq0, so j∈N0∖{0}=Nj\in\mathbb{N}_{0}\setminus\{0\}=\mathbb{N}. Moreover, by Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order §distributive (its second identity, applied to 11, 11 and jj in place of mm, nn and kk) and Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order §one (applied to m=jm=j, with S(0)=1S(0)=1), 2j=(1+1)j=1⋅j+1⋅j=j+j2j=(1+1)j=1\cdot j+1\cdot j=j+j. So j+j=1j+j=1 with j∈Nj\in\mathbb{N}, contradicting A Sum of Natural Numbers Exceeds Each Summand and Is Not One §not-one applied to a=ja=j and b=jb=j.

Hence no n∈N0n\in\mathbb{N}_{0} is both even and odd, which with the paragraph proving that every element is even or odd proves the clause exactly-one.

Clause naturals. Let n∈Nn\in\mathbb{N}; then n∈N0n\in\mathbb{N}_{0} and n≠0n\neq0, as N=N0∖{0}\mathbb{N}=\mathbb{N}_{0}\setminus\{0\}.

Even. If n=2qn=2q with q∈Nq\in\mathbb{N}, then q∈N0q\in\mathbb{N}_{0}, so nn is even by Even and Odd Natural Numbers with Zero §even. Conversely, if nn is even, n=2kn=2k with k∈N0k\in\mathbb{N}_{0}, then k≠0k\neq0, since k=0k=0 would give n=2⋅0=0n=2\cdot0=0 by (I); so q=k∈Nq=k\in\mathbb{N} and n=2qn=2q.

Odd. If nn is odd, n=2k+1n=2k+1 with k∈N0k\in\mathbb{N}_{0}, then n+1=(2k+1)+1=2(k+1)n+1=(2k+1)+1=2(k+1) by (II). Here k+1≠0k+1\neq0, since k+1=0k+1=0 would give 1=01=0 by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §zero-sum applied to m=km=k and n=1n=1; so q=k+1∈N0∖{0}=Nq=k+1\in\mathbb{N}_{0}\setminus\{0\}=\mathbb{N} and n+1=2qn+1=2q. Conversely, let n+1=2qn+1=2q with q∈Nq\in\mathbb{N}. By the clause exactly-one, proved above, nn is even or odd. If nn were even, n=2kn=2k with k∈N0k\in\mathbb{N}_{0}, then n+1=2k+1n+1=2k+1 would be odd by Even and Odd Natural Numbers with Zero §odd, and also even by Even and Odd Natural Numbers with Zero §even, since n+1=2qn+1=2q with q∈N⊆N0q\in\mathbb{N}\subseteq\mathbb{N}_{0}; this contradicts the clause exactly-one, proved above, for the element n+1n+1 of N0\mathbb{N}_{0}. Hence nn is odd.

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…