I am struggling to define addition of objects which are similar to decimal-expansions.
In this post, we refer to the decimal-expansion-like things as "wumbers".
Our goal is to write something like:
$\forall v,w \in \mathbb{W}$, $\quad v + w = \text{<SOMETHING>}$.
For any natural numbers, you can pad the left of the associated string with any number of zeros you like.
$582 = 000582 = 0000000000000000000582$
However, my wumbers never stop having non-zero digits as you go farther and farther to the left. This is because a wumber is simply a sign (+ or -) and a function from $\mathbb{Z}$ to the symbols $\begin{Bmatrix} 0, 1, 2, 3, 4, 5, 6, 7, 8, 9\end{Bmatrix}$.
I am most of the way to defining a reasonable form of addition, but I could use some help filling in the gaps.
What is a "Wumber"?
Definition of Wumber
A wumber is an ordered pair $(F, S)$ such that $S$ is one of the symbols
"+"or `"-" and $F$ is a function from $\mathbb{Z}$ to the digits $\begin{Bmatrix} 0, 1, 2, 3, 4, 5, 6, 7, 8, 9\end{Bmatrix}$ such that $\not\exists z \in \mathbb{Z}: \forall Z \geq z, F(Z) = 9 \text{ or } \forall Z \leq z, F(Z) = 9$.
Definition of $\mathbb{W}$
$\mathbb{W}$ denotes the set of all wumbers.
Difference Between Wumbers and Decimal Expansions
The primary difference between the decimal-expansion of a real-number and a wumber is that the digits of a wumber are not eventually all zero as you go to the left.
There exists a wumber $W$ such that $\sum_{z \in \mathbb{Z}}^{\text{ }} 10^{z}*W(z)$ is not defined because the coefficient for very large powers of $10$ is not zero.
Definition of the degree of a Wumber
Let $\text{deg}$ be a mapping from the set of all wumbers $\mathbb{W}$ to the set $\mathbb{Z} \cup \begin{Bmatrix} \infty \end{Bmatrix}$ is defined as follows:
$\forall W \in \mathbb{W}$,
$\qquad \text{deg}(W) = $
$\qquad \qquad \begin{cases} \infty, & \text{if } \forall n \in \mathbb{Z} \exists m \in \mathbb{Z}: W(m) \neq 0 \\ \text{min} \begin{Bmatrix} n \in \mathbb{Z}: \forall m \geq n, \quad W(m) = 0 \end{Bmatrix} & \text{otherwise } \end{cases}$
Converting Wumbers to Real Numbers $(W^{\mathbb{R}})$
Let $W \in \mathbb{W}$.
If $\exists d \in \mathbb{Z}$ such that $d = \text{deg}(W)$ then
$W^{\mathbb{R}} = \sum_{z \in \mathbb{Z}}^{\text{ }} 10^{z}*W(z)$
$W^{\mathbb{R}}$ is the sum of $10^{k}*W(k)$ taken over all $k \in \mathbb{Z}$
Also, wumber $W$ is said to be a real wumber.
Converting Real Numbers to Wumbers $(x^{\mathbb{W}})$
For any real number $x$, $x^{\mathbb{W}}$ is the unique wumber $W$ such that $W^{\mathbb{R}} = x$
Definition of "Natural Wumber"
For any real wumber $W \in \mathbb{W}$, $W$ is natural if and only if $W^{\mathbb{R}}$ is a natural number.
How do we Add Wumbers?
An answer to this question is a non-trivial definition of addition which extends addition of real-numbers to $\mathbb{W}$.
$\forall V, W \in \mathbb{W}$ if $V$ and $W$ are real, then $V + W = V^{\mathbb{R}} + W^{\mathbb{R}}$
Example
$\qquad$ Let $W = (``+", F)$ such that $F$ is a mapping from $\mathbb{Z}$ to the digits $\begin{Bmatrix} 0, 1, 2, 3, 4, 5, 6, 7, 8, 9\end{Bmatrix}$ such that:
$\qquad\qquad$ $F[0] = 5$
$\qquad\qquad$ $F[1] = 1$
$\qquad\qquad$ $F[-1] = 2$
$\qquad\qquad$ $F[a] = 0 \forall a \in \mathbb{Z}: \geq 2$
$\qquad\qquad$ $F[b] = 0 \forall b \in \mathbb{Z}b \leq -2$
Then, $F^{\mathbb{R}} = 15.2$
$\qquad$ Let $V = ("-", G)$ such that $G$ is a mapping from $\mathbb{Z}$ to the digits $\begin{Bmatrix} 0, 1, 2, 3, 4, 5, 6, 7, 8, 9\end{Bmatrix}$ such that:
$\qquad\qquad$ $G[0] = 2$
$\qquad\qquad$ $G[1] = 4$
$\qquad\qquad$ $G[-1] = 6$
$\qquad\qquad$ $G[a] = 0$ $\forall a \in \mathbb{Z}: \geq 2$
$\qquad\qquad$ $G[b] = 0$ $\forall b \in \mathbb{Z}b \leq -2$
Then, $V^{\mathbb{R}} = 42.6$
So, $V + W = V^{\mathbb{R}} + W^{\mathbb{R}} = 42.6 + 15.2 = 57.8$.
The issue is when the co-efficient on large powers of $10$ are never eventually always zero...
If you add a non-real wumber $V$ to a real wumber $W$ to produce non-real wumber $X$ then for all sufficiently large indices $k$, the $X[k] = V[k]$
Suppose that we have $F$ from $\mathbb{Z}$ to the digits such that:
- $F(k) = 0$ for negative indices $k$
- $F(k) = 0$ for odd positive indices $k > 0$
- $F(k) = 1$ for even non-negative indices $k \geq 0$
Then $W = ("+", F(k))$ is a non-real wumber.
$W = \dots 101010101 \dots 10101.00000 \dots 0000 \dots$
You can add a number like $500$ or $\pi$ to a non-real wumber.
$W + 500 + \pi = \dots 101010101 \dots 1010604.14519 \dots [\text{ more digits of } \pi] \dots$
After we define how to add a real number to a wumber we could define how to add any arbitrary pair of wumbers.
If I ask you for the $k^{\text{th}}$ element of $V + W$ you should be able to:
- truncate $V$ at index $p$
- truncate $W$ at index $p$
- add the truncated wumbers together
- say that $\forall k, p \in \mathbb{Z}$ and $\forall V, W \in \mathbb{W}$, $(V + W)[k] = T(V, p)[k] + T(W, p)[k]$.
The truncation $T$ of wumber $V$ at index $k$ has the properties:
- $T(V, k)[z] = V[z]$ for all $z \in \mathbb{Z}$ if $z \leq k$
- $T(V, k)[z] = 0$ for all $z \in \mathbb{Z}$ if $z > k$
- $T(V, k)$ is a real-wumber even if $V$ is a non-real wumber.
Existence of a something we will call a "Common Additive"
Instead of greatest-common-factor we could have a "greatest-common-additive".
I am thinking that it is probably the case that $\forall V, W \in \mathbb{W}$, if $V$ and $W$ are non-real then $\exists X \in \mathbb{W}$ such that:
- $X$ is a non-real wumber.
- $V = X + V^{\prime}$
- $W = X + W^{\prime}$
- $V^{\prime}$ is a real wumber
- $W^{\prime}$ is a real wumber
Then, $V + W = (2*X) + (V^{\prime} + W^{\prime})$
- $(2*X)$ is a non-real wumber.
- $(V^{\prime} + W^{\prime})$ is a real wumber.
So, adding two non-real wumbers can be expressed as adding a real wumber to a non-real wumber.
I am not sure how we would define $(2*X)$ for non-real $X$.
Maybe if $X$ was a "binary wumber" (a mapping from $\mathbb{Z}$ to $\begin{Bmatrix} 0, 1\end{Bmatrix}$ then $\forall k \in (2*X)(k) = X(k - 1)$
How can we define the addition of two non-real wumbers?
Was there a Question in There Somewhere ?
An answer to this question is a non-trivial definition of addition which extends addition of real-numbers to $\mathbb{W}$.
How do you add two decimal expansions together when there exists non-zero co-efficient for $10^{k}$ where $k$ is very large.
Having done something similar a while back, what I did for my "wumbers"* is to say "I consider myself to know a wumber $x$ if: If someone gives me an $N>0$, I can give them the 'last' $N$ digits of $x$".
So, what's $a+b$ for arbitrary wumbers $a$ and $b$? Well, give me an $N$. Since $a$ and $b$ are wumbers, they can give me their last $N$ digits - those are just positive integers. Now, add those together, and throw away anything that overflows above $N$ digits. Those are the last $N$ digits of $(a+b)$. So by this I consider that I know the wumber $a+b$. Done!
Well, not actually "Done". See, there's a consistency requirement. If I ask for $N_1$ tail digits of $x$, and then ask for $N_2$ tail digits of the same wumber $x$, then, letting $N_0 = \min(N_1, N_2)$, I require that the two answers agree on their last $N_0$ digits. I forgot to mention that in my first paragraph, but if we don't require this then our wumbers could be thrashing around forever as we take longer and longer tails.
So to fully define $a+b$ you have to show that the consistency of $a$ and consistency of $b$ imply that our definition of $a+b$ is also consistent. Which is actually pretty easy.
(P.S. Just wait until you figure out how to multiply wumbers. You can use the same "consistent tails" definition to do it. Then see what $....999999 \ \ * \ \ ...99999$ is. It's fun!)
*I called my "wumbers" "infinite decimals" ($\mathbb D$), which I though was pretty clever sounding, but it actually sounds way too much like "infinitesimal" when you say it for it to be usable. But can I suggest that you include something in your name to specify that you are using base $10$? Because you can do this in other bases, but you get different structures (i.e. non-isomorphic rings) depending on which base you use.