Fi & Lu Area Algebra Trigonometry Functions Complex Numbers Calculus Numbers
\(\DeclareMathOperator{\sgn}{sgn}\)
Having explored a wide variety of math concepts, Fi and Lu began to wonder what things should be called numbers. Of course there are the counting numbers: 0, 1, 2, 3,… which everyone recognizes as numbers. These numbers can be added and multiplied, but when we try to undo addition, we have to include negative numbers and so end up with all the integers. Similarly, when we then try to undo multiplication, we have to include fractions and so end up with all the rational numbers. We’ve seen how the rational numbers can be laid out on a line. And we’ve seen that there are points on that line that don’t correspond to rational numbers even though we can find rational numbers arbitrarily close. When we include all those points, we end up with the real numbers, and we call the line of real numbers the real line. Most everyone thinks that real numbers are numbers.
Later, Fi & Lu saw how to escape the real line and find complex numbers that also can be added and multiplied, subtracted and divided. But unlike real numbers, there isn’t a natural linear ordering of complex numbers. So are complex numbers still numbers?
Even the complex plane can be escaped, but we have to add two more dimensions and give up yet another property. Multiplication can no longer be commutative: \(a\times b\) is not always the same as \(b\times a\) for quaternions. So, are quaternions still numbers?
Mathematicians have listed various properties that numbers might possess, and named various structures that possess some or all of those properties. The structures comprise one or more sets of objects and one or more operators on those objects (such as addition (usually written as \(+\)), multiplication (usually written as \(\times\) or \(\cdot\) when not implicit), negation (aka additive inverse) (usually written \(-x\)), (multiplicative) inverse (often written \(x^{-1}\)), subtraction (usually written as \(-\)), and division (sometimes written as \(\div\) or \(/\)), as well as comparison operators (\(=\ \neq\ <\ \leq\ \geq\ \gt\))). Sometimes a set of objects has one or more special elements, such as an additive identity (usually written as \(0\)), or a multiplicative identity (usually written as \(1\)). Negation requires an additive identity, and inverse requires a multiplicative identity. Note that, typically, subtraction and division are not specifically included; rather subtraction is just addition with negation of the second argument, and division is just multiplication with the inverse of the second argument. Similarly, the equality operation (\(=\)) is implicit, and if there is an ordering, only ‘less than’ (\(<\)) is explicit, with all the others (\(\le\ \geq\ >\)) being implicit.
The below table lists a few common structure types. All the operators listed are associative, i.e., \(a+(b+c) = (a+b)+c\) and \(a\times(b\times c) = (a\times b)\times c\). And for the listed structures with both \(+\) and \(\times\), multiplication distributes over addition, i.e., \(a\times (b+c) = (a\times b) + (a\times c)\) and \((a+b)\times c = (a\times c) + (b\times c)\). The operators required to be commutative for the listed structures are listed as commutative operators; commutativity is not prohibited from other structures’ operators. Similarly, even if multiplicative inverses (\(x^{-1}\)) are not listed, some elements may still have inverses. Even when multiplicative inverses are listed, \(0\) never has a multiplicative inverse. So fields are division rings, and division rings are rings, while abelian groups are groups (so that using \(+\) for the operator is not required). You may note that a ring with just its addition operator forms an abelian group; and a division ring without its \(0\) and together with its multiplication operator forms a group.
| Structure Name: | Group | Abelian Group | Semiring | Ring | Division Ring | Field |
|---|---|---|---|---|---|---|
| Operators | \(\cdot\text{ or }\circ\text{ or }\times\) | \(+\) | \(+\ \times\) | \(+\ \times\) | \(+\ \times\) | \(+\ \times\) |
| Commutative Operators | \(+\) | \(+\) | \(+\) | \(+\) | \(+\) | \(+\ \times\) |
| Identities | \(e \text{ or } 1\) | \(0\) | \(0\ \ 1\) | \(0\ \ 1\) | \(0\ \ 1\) | \(0\ \ 1\) |
| Inverses of \(x\) | \(x^{-1}\) | \(-x\) | \(-x\) | \(-x\ \ x^{-1}\) | \(-x\ \ x^{-1}\) | |
| Example | Permutations of \(n\) objects, \(\mathrm{S}_n\) | Integers, \(\mathbb{Z}\) | Counting numbers, \(\mathbb{N}\) | \(n\times n\) matrices of reals, \(M_{n\times n}(\mathbb{R})\) | Quaternions, \(\mathbb{H}\) | Rational numbers, \(\mathbb{Q}\) |
You may have noticed that, except for \(\mathrm{S}_n\), all the examples above are infinite structures. Are there any finite structures whose elements could be called numbers? A clue emerges when we watch a 24-hour clock. The hour advances from 0 through 23 and then repeats. If we want to know the hour that is \(h\) hours in the future, we add \(h\) to the current hour and take the remainder when divided by 24.
More generally, we can choose any integer \(m > 0\) and represent each integer \(x\) with its remainder when divided by \(m\), written \(x\bmod m\). We can then modify addition and multiplication by replacing the usual result by its remainder when divided by \(m\). This is called clock arithmetic, more formally known as modular arithmetic with modulus \(m\). It’s not hard to see, at least for \(m > 1\), that the resulting structure comprising \(0\) through \(m-1\) is a ring, usually written as \(\mathbb{Z}/m\mathbb{Z}\). It turns out that if \(m\) is prime, it’s a field!
There are other finite fields. In fact, for any prime \(p\) and integer power \(n > 0\), there is exactly one field with \(p^n\) elements, \(\text{GF}(p^n)\). We've already seen that \(\text{GF}(p) = \mathbb{Z}/p\mathbb{Z}\); for \(n>1\), \(\text{GF}(p^n)\) is harder to describe, and we have a choice how to write the elements—while it’s natural to write \(0,1,\dots,p-1\) for the corresponding sums of repeated \(1\)s, we have choices for the other elements. Note that if you sum \(p\) copies of any element of \(\text{GF}(p^n)\), the result is \(0\); \(p\) is called the characteristic of the field.As an example, here are the addition and multiplication tables for a ring and a field, each with nine elements. If you look carefully at the tables for \(\text{GF}(9)\), you will find \(\mathbb{Z}/3\mathbb{Z}=\text{GF}(3)\) embedded in the upper left corner.
|
|
|
|
In school, we learn about decimals, which is a way of representing real numbers. Decimal representation is an example of positional notation, where the value of a digit depends on where it is placed. Decimal representation is also called base ten or radix ten, since each digit is worth ten times as much as it would be if it were one place to the right. We use a period (called a decimal point) to separate the one’s place from the tenth’s place. As you might guess, there’s nothing special about ten, and any integer base greater than one can be used as a radix, as long as you have radix-many symbols to serve as “digits”. The simplest radix is two (known as binary), for which we only need two symbols: 0 and 1 (called bits). The addition and multiplication tables are rather easy to memorize; the only downside is that you generally need over three times as many binary bits as decimal digits to represent the same number. For humans, we can group the bits in threes (for radix eight, or octal, using digits 0 through 7 as symbols) or fours (for radix sixteen, or hexadecimal, using digits 0 through 9 and letters a through f as the sixteen symbols). When it’s not obvious what the radix is, the radix as represented in decimal is subscripted to the representation, e.g., \(69_{16} = 105_{10}\) and \(105_8 = 69_{10}\).
You might note that plain positional notation can only represent nonnegative real numbers. Negative numbers are represented by preceding the corresponding positive number’s representation with a minus sign. What you might find amazing is that you can use \(i-1\) as a radix, and just the bits 0 and 1, to represent any complex number, with no other symbols required besides a radix point (typically a period or comma) to demarcate the one’s place. Doing arithmetic with this representation is a bit complicated, because two is represented as 1100, i.e., \(1+1=1100_{i-1}\). To get a sense of radix \(i-1\), we sequentially display on the complex plane below the first 257 nonnegative integers as written in binary but interpreted as radix \(i-1\).
Perhaps the first use of numbers is to answer “how many?”
The counting numbers (aka nonnegative integers aka natural numbers, \(\mathbb{N}\)) are the answers to such questions. But how many counting numbers are there? It can’t be one of the counting numbers; you might say infinity, but that just means that it’s not finite. If you have two infinite sets, it doesn’t tell you which one is bigger. What does it even mean for one set to be bigger than another? For finite sets, we can count the elements, and see which counting number is bigger. What about infinite sets?
Intuitively, there are more integers than counting numbers. After all, the integers comprise the counting numbers plus all the negative integers. But you can assign a different counting number to each integer: \(n\mapsto 2|n| + \lfloor(\sgn(n)+1)/2\rfloor\), with the counting number 1 unused, which would seem to mean that there are more counting numbers than integers. How can that be? We need a different notion.
We say that two sets have the same size if there is a one-to-one correspondence (a bijection) between their elements. For example, there are just as many integers as even integers, via the one-to-one correspondence \(n\mapsto 2n\). And there are just as many counting numbers as integers, via the one-to-one correspondence \(n\mapsto (2(n\bmod 2)-1)\lfloor (n+1)/2\rfloor\). The Schröder-Bernstein theorem states that if there exist injective functions \(f:A\rightarrow B\) and \(g:B\rightarrow A\), then there exists a bijective function \(h:A\rightarrow B\). This means that the intuitive notion of bigger than for infinite sets really means as big as or bigger than.
So how do we tell when one set is actually bigger than another? \(A\) is bigger than \(B\) if there’s an injection from \(B\) to \(A\) but every such injection leaves out some element of \(A\). For example, to show that the set of subsets of set \(B\), called the power set of \(B\) and written \( 2^B\), is bigger than \(B\), note that \(b\mapsto \{b\}\) is an injection from \(B\) to \(2^B\). But if \(f:B\rightarrow 2^B\) is any injection, then \({\{b\in B\ |\ b\notin f(b)\}}\) cannot be \(f(b)\) for any \(b\in B\), so \(f\) is not a bijection.
It’s natural to ask if there are any sets bigger than \(B\) but smaller than \(2^B\). The Generalized Continuum Hypothesis (GCH) says that there aren’t. It turns out that, with the usual axioms of set theory (Zermelo-Fraenkel, ZF), the GCH could be true or could be false, but its truth implies the Axiom of Choice (AC). AC states that for any collection of non-empty sets, there is another set containing one element from each set in the collection. When AC is added to ZF, the resulting set of axioms is called ZFC.
It is somewhat natural to define the counting numbers as sets. \(0 = \{\}\) and \(n+1 = n \cup \{n\}\). So, for example, \(1 = \{0\} = \{\{\}\}\) and \(2 = \{0,1\} = \{\{\},\{\{\}\}\}\). We can then take the union of all the counting numbers and get the first infinite ordinal, \(\omega\), which can also be thought of as the set of natural numbers, \(\mathbb{N}\). We call this an ordinal because it is naturally well-ordered by \(\subseteq\). In fact, each counting number can be considered to be an ordinal (a well-ordering type) as well as a cardinal (answering “how many?”); each finite cardinal is the answer to the self-referential question “how many elements do I have?” But infinite ordinals and cardinals differ. We call the cardinality of \(\omega\) (the first infinite ordinal) \(\aleph_0\) (pronounced “aleph naught” aka countable infinity). We can add \(1\) to \(\omega\) in the same way we did for finite ordinals, but \(\omega+1\) has the same cardinality as \(\omega\).
Successively bigger cardinals are numbered with successive ordinals, so the first uncountable cardinal is \(\aleph_1\). The number of real numbers is called the cardinality of the continuum and written as \(\mathfrak{c}\) or \(2^{\aleph_0}\). That the number of reals is \(2^{\aleph_0}\) is fairly clear when we represent real numbers in binary. Just taking reals in the interval (0,2], we use the nonterminating representation of each real to determine the unique infinite subset of \(\mathbb{N}\) which contains \(n\) exactly when the bit whose place value is \(2^{-n}\) is a \(1\). The conintuum hypothesis states that \(\mathfrak{c} = \aleph_1\).
The rational numbers are a subset of the real numbers. How many rational numbers are there? \(\aleph_0\), since we can enumerate all the rational numbers (uniquely written as \(\frac{n}{d}\) with \(d > 0\) and \(\gcd(n,d)=1\)) in order of \(\max(\left|n\right|,d)\). There’s an even larger subset of real numbers called algebraic real numbers. These are real zeroes of nonzero polynomials with integer coefficients. The rationals are all algebraic, as they are zeroes of \({dx-n}\). But some irrationals are also algebraic, e.g., \(\sqrt{2}\) is a zero of \({x^2-2}\). Since we can enumerate all polynomials with integer coefficients in order of the maximum of the degree of the polynomial and the absolute values of the coefficients, and there are at most \(d\) zeroes of a degree-\(d\) polynomial, there are still only \(\aleph_0\) algebraic reals. That means almost all real numbers are not algebraic; such real numbers are called transcendental.
But it’s actual much worse than that. A computable real number is one for which there is an algorithm that can compute the number to arbitrary precision, e.g., by enumerating the terms of its regular continued fraction. Many transcendental numbers fall into this category, but there are only countably many algorithms. Perhaps even worse, there are only countably many specifications, so almost all real numbers are essentially unknowable.
A function is injective if no two elements of its domain (i.e., its set of inputs) map to the same element of its codomain (i.e., its set of possible outputs). So there’s a one-to-one correspondence between the domain of the function and its range (i.e., its set of actual outputs). A function is surjective if its range and codomain are the same. A function is bijective if it is both injective and surjective. Such a function is a one-to-one correspondence, a bijection.
For \(\mathbb{Z}/m\mathbb{Z}\) to be a field, every nonzero element must have an inverse. If \(m\) is not prime, it is the product of two smaller nonzero integers: \(m=ab\). So, in \(\mathbb{Z}/m\mathbb{Z}\), \(ab=0\). If \(b\) had an inverse, we’d have \(a = abb^{-1} = 0b^{-1} = 0\), but \(a\) is a nonzero integer less than \(m\), so can’t be \(0\bmod m\). So there are nonzero elements without inverses, so \(\mathbb{Z}/m\mathbb{Z}\) is not a field.
But what if the modulus is prime?
It’s not hard to show that the greatest common divisor of two integers is a linear combination of those two integers. There’s a lovely proof of this:
In fact, the Euclidean algorithm, which Fi & Lu learned about when investigating Fibonacci numbers, can be extended to find \(u\) and \(v\) in addition to \(g\) when given \(a\) and \(b\):
| \(A,\ B \leftarrow a,\ b\) | |
| \(c,\ d,\ e,\ f\quad\leftarrow\quad 1,\ 0,\ 0,\ 1\) | Throughout:\(\quad a = cA+dB,\quad b = eA+fB\) |
| While \(b\neq 0\) : | |
| \(\quad q,\ r\quad\leftarrow\quad\text{quotient and remainder when}\ a\ \text{is divided by}\ b\) | \(a = qb+r\) |
| \(\quad a,\ c,\ d,\ b,\ e,\ f\quad\leftarrow\quad b,\ e,\ f,\ r,\ c-qe,\ d-qf\) | Decrease \(b\) |
| \(g,\ u,\ v\quad\leftarrow\quad a,\ c,\ d\) |
So, if \(p\) is prime, then \(\gcd(h,p)=1\ \text{for}\ 0 < h < p\), so \(1 = uh+vp\), so \(uh=1\bmod p\), i.e., \(u\) is the inverse of \(h\). So each nonzero element has an inverse, and so \(\mathbb{Z}/p\mathbb{Z}\) is a field, also known as the Galois field of order \(p\) or \(\text{GF}(p)\).
Why is the power set of \(B\) written as \(2^B\)? In set theory, the notation \(A^B\) means the set of functions from \(B\) to \(A\). Now every object in set theory is a set; \(2\) is actually the set \(\{0,1\}\). A function from \(B\) to \(\{0,1\}\) has a choice of 0 or 1 for each element of \(B\), just as a subset of \(B\) has a choice for exclusion or inclusion for each element of \(B\). So there's a one-to-one correspondence between functions from \(B\) to \(\{0,1\}\) and subsets of \(B\).
First, some notation:
Given ZF, the following axioms are equivalent:
When added to ZF, either of these give ZFC.
When we represent a positive real number in positional notation, we can always choose to use a nonterminating representation. Given a terminating representation, we append a radix point if not already present, then we append an infinite string of zeroes. Then, in radix \(b\), we replace the rightmost nonzero digit \(d\) with the digit \(d-1\) (or we remove it if the number was a nonnegative power of \(b\)) and then replace each \(0\) to the right with \(b-1\). For example, in binary, \(100\) can be replaced by \(11.11111\dots\), while in decimal \(100\) is replaced by \(99.9999\dots\).
Using nonterminating binary notation, we have a simple bijection between infinite subsets of \(\mathbb{N}\) and real numbers in (0,2]. Note that there are only \(\aleph_0\) finite subsets of \(\mathbb{N}\), as we can enumerate them in increasing order of maximum element.
A regular continued fraction is a radix-independent way of representing a real number that encodes good rational approximations. It is an integer giving the floor of the number followed by a possibly infinite sequence of positive integers: \[a_0 + \cfrac{1}{a_1 + \cfrac{1}{a_2 + \cfrac{1}{a_3 + \cfrac{1}{\dots}}}}\] A real number is rational exactly when its regular continued fraction terminates. If we truncate a continued fraction, the result is a rational that is a good approximation of the number, in fact a better rational approximation than any with a smaller denominator.
The following procedure computes the rational value of the truncated continued fraction:
Assuming you can compute exactly, successive terms of the regular continued fraction for the real number \(x_0\) are computed as follows: