\(\begin{array}{c|c}
t & x \'"`UNIQ-MathJax1-QINU`"'===
The venn diagram in Figure 1.1 shows how the proposition \(f = \texttt{((u)(v))}\) can be expanded over the universe of discourse \([u, v]\!\) to produce a logically equivalent exclusive disjunction, namely, \(\texttt{uv~+~u(v)~+~(u)v}.\)
o---------------------------------------o
| |
| o |
| /%\ |
| /%%%\ |
| /%%%%%\ |
| o%%%%%%%o |
| /%\%%%%%/%\ |
| /%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| /%\%%%%%/%\%%%%%/%\ |
| /%%%\%%%/%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o%%%%%%%o |
| /%\%%%%%/%\%%%%%/%\%%%%%/%\ |
| /%%%\%%%/%%%\%%%/%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\%/%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o%%%%%%%o%%%%%%%o |
| |\%%%%%/%\%%%%%/ \%%%%%/%\%%%%%/| |
| | \%%%/%%%\%%%/ \%%%/%%%\%%%/ | |
| | \%/%%%%%\%/ \%/%%%%%\%/ | |
| | o%%%%%%%o o%%%%%%%o | |
| | |\%%%%%/ \ / \%%%%%/| | |
| | | \%%%/ \ / \%%%/ | | |
| | u | \%/ \ / \%/ | v | |
| o---+---o o o---+---o |
| | \ / \ / | |
| | \ / \ / | |
| | du \ / \ / dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.1. f = ((u)(v))
|
Figure 1.2 expands \(\operatorname{E}f = \texttt{((u + du)(v + dv))}\) over \([u, v]\!\) to give:
\(\texttt{uv~(du~dv) ~+~ u(v)~(du (dv)) ~+~ (u)v~((du) dv) ~+~ (u)(v)~((du)(dv))}\)
|
o---------------------------------------o
| |
| o |
| /%\ |
| /%%%\ |
| /%%%%%\ |
| o%%%%%%%o |
| /%\%%%%%/%\ |
| /%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| /%\%%%%%/ \%%%%%/%\ |
| /%%%\%%%/ \%%%/%%%\ |
| /%%%%%\%/ \%/%%%%%\ |
| o%%%%%%%o o%%%%%%%o |
| /%\%%%%%/%\ /%\%%%%%/%\ |
| /%%%\%%%/%%%\ /%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\ /%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o%%%%%%%o%%%%%%%o |
| |\%%%%%/ \%%%%%/%\%%%%%/ \%%%%%/| |
| | \%%%/ \%%%/%%%\%%%/ \%%%/ | |
| | \%/ \%/%%%%%\%/ \%/ | |
| | o o%%%%%%%o o | |
| | |\ /%\%%%%%/%\ /| | |
| | | \ /%%%\%%%/%%%\ / | | |
| | u | \ /%%%%%\%/%%%%%\ / | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.2. Ef = ((u + du)(v + dv))
|
Figure 1.3 expands \(\operatorname{D}f = f + \operatorname{E}f\) over \([u, v]\!\) to produce:
\(\texttt{uv~du~dv ~+~ u(v)~du(dv) ~+~ (u)v~(du)dv ~+~ (u)(v)~((du)(dv))}\)
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| / \ / \ |
| / \ / \ |
| / \ / \ |
| o o o |
| / \ /%\ / \ |
| / \ /%%%\ / \ |
| / \ /%%%%%\ / \ |
| o o%%%%%%%o o |
| / \ / \%%%%%/ \ / \ |
| / \ / \%%%/ \ / \ |
| / \ / \%/ \ / \ |
| o o o o o |
| |\ /%\ /%\ /%\ /| |
| | \ /%%%\ /%%%\ /%%%\ / | |
| | \ /%%%%%\ /%%%%%\ /%%%%%\ / | |
| | o%%%%%%%o%%%%%%%o%%%%%%%o | |
| | |\%%%%%/%\%%%%%/%\%%%%%/| | |
| | | \%%%/%%%\%%%/%%%\%%%/ | | |
| | u | \%/%%%%%\%/%%%%%\%/ | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.3. Df = f + Ef
|
I'll break this here in case anyone wants to try and do the work for \(g\!\) on their own.
Computation Summary \[g(u, v) = \texttt{((u,~v))}\]
The venn diagram in Figure 2.1 shows how the proposition \(g = \texttt{((u,~v))}\) can be expanded over the universe of discourse \([u, v]\!\) to produce a logically equivalent exclusive disjunction, namely, \(\texttt{uv ~+~ (u)(v)}.\)
o---------------------------------------o
| |
| o |
| /%\ |
| /%%%\ |
| /%%%%%\ |
| o%%%%%%%o |
| /%\%%%%%/%\ |
| /%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| / \%%%%%/%\%%%%%/ \ |
| / \%%%/%%%\%%%/ \ |
| / \%/%%%%%\%/ \ |
| o o%%%%%%%o o |
| / \ / \%%%%%/ \ / \ |
| / \ / \%%%/ \ / \ |
| / \ / \%/ \ / \ |
| o o o o o |
| |\ / \ /%\ / \ /| |
| | \ / \ /%%%\ / \ / | |
| | \ / \ /%%%%%\ / \ / | |
| | o o%%%%%%%o o | |
| | |\ /%\%%%%%/%\ /| | |
| | | \ /%%%\%%%/%%%\ / | | |
| | u | \ /%%%%%\%/%%%%%\ / | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/%\%%%%%/ | |
| | \%%%/%%%\%%%/ | |
| | du \%/%%%%%\%/ dv | |
| o-------o%%%%%%%o-------o |
| \%%%%%/ |
| \%%%/ |
| \%/ |
| o |
| |
o---------------------------------------o
Figure 2.1. g = ((u, v))
|
Figure 2.2 expands \(\operatorname{E}g = \texttt{((u + du,~v + dv))}\) over \([u, v]\!\) to give:
\(\texttt{uv~((du,~dv)) ~+~ u(v)~(du,~dv) ~+~ (u)v~(du,~dv) ~+~ (u)(v)~((du,~dv))}\)
|
o---------------------------------------o
| |
| o |
| /%\ |
| /%%%\ |
| /%%%%%\ |
| o%%%%%%%o |
| / \%%%%%/ \ |
| / \%%%/ \ |
| / \%/ \ |
| o o o |
| /%\ /%\ /%\ |
| /%%%\ /%%%\ /%%%\ |
| /%%%%%\ /%%%%%\ /%%%%%\ |
| o%%%%%%%o%%%%%%%o%%%%%%%o |
| / \%%%%%/ \%%%%%/ \%%%%%/ \ |
| / \%%%/ \%%%/ \%%%/ \ |
| / \%/ \%/ \%/ \ |
| o o o o o |
| |\ /%\ /%\ /%\ /| |
| | \ /%%%\ /%%%\ /%%%\ / | |
| | \ /%%%%%\ /%%%%%\ /%%%%%\ / | |
| | o%%%%%%%o%%%%%%%o%%%%%%%o | |
| | |\%%%%%/ \%%%%%/ \%%%%%/| | |
| | | \%%%/ \%%%/ \%%%/ | | |
| | u | \%/ \%/ \%/ | v | |
| o---+---o o o---+---o |
| | \ /%\ / | |
| | \ /%%%\ / | |
| | du \ /%%%%%\ / dv | |
| o-------o%%%%%%%o-------o |
| \%%%%%/ |
| \%%%/ |
| \%/ |
| o |
| |
o---------------------------------------o
Figure 2.2. Eg = ((u + du, v + dv))
|
Figure 2.3 expands \(\operatorname{D}g = g + \operatorname{E}g\) over \([u, v]\!\) to yield the form:
\(\texttt{uv~(du,~dv) ~+~ u(v)~(du,~dv) ~+~ (u)v~(du,~dv) ~+~ (u)(v)~(du,~dv)}\!\)
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| /%\ /%\ |
| /%%%\ /%%%\ |
| /%%%%%\ /%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| /%\%%%%%/ \%%%%%/%\ |
| /%%%\%%%/ \%%%/%%%\ |
| /%%%%%\%/ \%/%%%%%\ |
| o%%%%%%%o o%%%%%%%o |
| / \%%%%%/ \ / \%%%%%/ \ |
| / \%%%/ \ / \%%%/ \ |
| / \%/ \ / \%/ \ |
| o o o o o |
| |\ /%\ / \ /%\ /| |
| | \ /%%%\ / \ /%%%\ / | |
| | \ /%%%%%\ / \ /%%%%%\ / | |
| | o%%%%%%%o o%%%%%%%o | |
| | |\%%%%%/%\ /%\%%%%%/| | |
| | | \%%%/%%%\ /%%%\%%%/ | | |
| | u | \%/%%%%%\ /%%%%%\%/ | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 2.3. Dg = g + Eg
|
Differential : Locally Linear Approximation
|
'Tis a derivative from me to mine,
And only that I stand for.
|
|
— Winter's Tale, 3.2.43–44
|
We've talked about differentials long enough that I think it's way past time we met with some.
When the term is being used with its more exact sense, a differential is a locally linear approximation to a function, in the context of this logical discussion, then, a locally linear approximation to a proposition.
Recall the form of the current example:
\(\begin{array}{lllll}
F & = & (f, g) & = & ( ~\texttt{((u)(v))}~ , ~\texttt{((u,~v))}~ ).
\end{array}\)
|
To speed things along, I will skip a mass of motivating discussion and just exhibit the simplest form of a differential \(\operatorname{d}F\!\) for the current example of a logical transformation \(F,\!\) after which the majority of the easiest questions will have been answered in visually intuitive terms.
For \(F = (f, g)\!\) we have \(\operatorname{d}F = (\operatorname{d}f, \operatorname{d}g),\) and so we can proceed componentwise, patching the pieces back together at the end.
We have prepared the ground already by computing these terms:
\(\begin{array}{lll}
\operatorname{E}f & = & \texttt{(( u + du )( v + dv ))}
\\ \\
\operatorname{E}g & = & \texttt{(( u + du ,~ v + dv ))}
\\ \\
\operatorname{D}f & = & \texttt{((u)(v)) ~+~ (( u + du )( v + dv ))}
\\ \\
\operatorname{D}g & = & \texttt{((u,~v)) ~+~ (( u + du ,~ v + dv ))}
\end{array}\!\)
|
As a matter of fact, computing the symmetric differences \(\operatorname{D}f = f + \operatorname{E}f\) and \(\operatorname{D}g = g + \operatorname{E}g\) has already taken care of the localizing part of the task by subtracting out the forms of \(f\!\) and \(g\!\) from the forms of \(\operatorname{E}f\) and \(\operatorname{E}g,\) respectively. Thus all we have left to do is to decide what linear propositions best approximate the difference maps \(\operatorname{D}f\) and \(\operatorname{D}g,\) respectively.
This raises the question: What is a linear proposition?
The answer that makes the most sense in this context is this: A proposition is just a boolean-valued function, so a linear proposition is a linear function into the boolean space \(\mathbb{B}.\)
In particular, the linear functions that we want will be linear functions in the differential variables \(du\!\) and \(dv.\!\)
As it turns out, there are just four linear propositions in the associated differential universe \(\operatorname{d}U^\bullet = [du, dv],\) and these are the propositions that are commonly denoted\[\texttt{0}, \texttt{du}, \texttt{dv}, \texttt{du + dv},\] in other words, \(\texttt{()}, \texttt{du}, \texttt{dv}, \texttt{(du, dv)}.\)
Notions of Approximation
|
for equalities are so weighed
that curiosity in neither can
make choice of either's moiety.
|
|
— King Lear, Sc.1.5–7 (Quarto)
|
|
for qualities are so weighed
that curiosity in neither can
make choice of either's moiety.
|
|
— King Lear, 1.1.5–6 (Folio)
|
Justifying a notion of approximation is a little more involved in general, and especially in these discrete logical spaces, than it would be expedient for people in a hurry to tangle with right now. I will just say that there are naive or obvious notions and there are sophisticated or subtle notions that we might choose among. The later would engage us in trying to construct proper logical analogues of Lie derivatives, and so let's save that for when we have become subtle or sophisticated or both. Against or toward that day, as you wish, let's begin with an option in plain view.
Figure 1.4 illustrates one way of ranging over the cells of the underlying universe \(U^\bullet = [u, v]\!\) and selecting at each cell the linear proposition in \(\operatorname{d}U^\bullet = [du, dv]\) that best approximates the patch of the difference map \(\operatorname{D}f\) that is located there, yielding the following formula for the differential \(\operatorname{d}f.\)
\(\operatorname{d}f ~=~ \texttt{uv} \cdot \texttt{0} ~+~ \texttt{u(v)} \cdot \texttt{du} ~+~ \texttt{(u)v} \cdot \texttt{dv} ~+~ \texttt{(u)(v)} \cdot \texttt{(du, dv)}\)
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| / \ / \ |
| / \ / \ |
| / \ / \ |
| o o o |
| / \ / \ / \ |
| / \ / \ / \ |
| / \ / \ / \ |
| o o o o |
| / \ /%\ /%\ / \ |
| / \ /%%%\ /%%%\ / \ |
| / \ /%%%%%\ /%%%%%\ / \ |
| o o%%%%%%%o%%%%%%%o o |
| |\ /%\%%%%%/ \%%%%%/%\ /| |
| | \ /%%%\%%%/ \%%%/%%%\ / | |
| | \ /%%%%%\%/ \%/%%%%%\ / | |
| | o%%%%%%%o o%%%%%%%o | |
| | |\%%%%%/%\ /%\%%%%%/| | |
| | | \%%%/%%%\ /%%%\%%%/ | | |
| | u | \%/%%%%%\ /%%%%%\%/ | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.4. df = linear approx to Df
|
Figure 2.4 illustrates one way of ranging over the cells of the underlying universe \(U^\bullet = [u, v]\!\) and selecting at each cell the linear proposition in \(\operatorname{d}U^\bullet = [du, dv]\) that best approximates the patch of the difference map \(\operatorname{D}g\) that is located there, yielding the following formula for the differential \(\operatorname{d}g.\!\)
\(\operatorname{d}g ~=~ \texttt{uv} \cdot \texttt{(du, dv)} ~+~ \texttt{u(v)} \cdot \texttt{(du, dv)} ~+~ \texttt{(u)v} \cdot \texttt{(du, dv)} ~+~ \texttt{(u)(v)} \cdot \texttt{(du, dv)}\)
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| /%\ /%\ |
| /%%%\ /%%%\ |
| /%%%%%\ /%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| /%\%%%%%/ \%%%%%/%\ |
| /%%%\%%%/ \%%%/%%%\ |
| /%%%%%\%/ \%/%%%%%\ |
| o%%%%%%%o o%%%%%%%o |
| / \%%%%%/ \ / \%%%%%/ \ |
| / \%%%/ \ / \%%%/ \ |
| / \%/ \ / \%/ \ |
| o o o o o |
| |\ /%\ / \ /%\ /| |
| | \ /%%%\ / \ /%%%\ / | |
| | \ /%%%%%\ / \ /%%%%%\ / | |
| | o%%%%%%%o o%%%%%%%o | |
| | |\%%%%%/%\ /%\%%%%%/| | |
| | | \%%%/%%%\ /%%%\%%%/ | | |
| | u | \%/%%%%%\ /%%%%%\%/ | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 2.4. dg = linear approx to Dg
|
Well, \(g,\!\) that was easy, seeing as how \(\operatorname{D}g\) is already linear at each locus, \(\operatorname{d}g = \operatorname{D}g.\)
Analytic Series
We have been conducting the differential analysis of the logical transformation \(F : [u, v] \mapsto [u, v]\) defined as \(F : (u, v) \mapsto ( ~\texttt{((u)(v))}~, ~\texttt{((u, v))}~ ),\) and this means starting with the extended transformation \(\operatorname{E}F : [u, v, du, dv] \to [u, v, du, dv]\) and breaking it into an analytic series, \(\operatorname{E}F = F + \operatorname{d}F + \operatorname{d}^2 F + \ldots,\) and
so on until there is nothing left to analyze any further.
As a general rule, one proceeds by way of the following stages:
\(\begin{array}{lccccc}
1. & \operatorname{E}F & = & \operatorname{d}^0 F & + & \operatorname{r}^0 F
\\
2. & \operatorname{r}^0 F & = & \operatorname{d}^1 F & + & \operatorname{r}^1 F
\\
3. & \operatorname{r}^1 F & = & \operatorname{d}^2 F & + & \operatorname{r}^2 F
\\
4. & \ldots
\end{array}\)
|
In our analysis of the transformation \(F,\!\) we carried out Step 1 in the more familiar form \(\operatorname{E}F = F + \operatorname{D}F,\) and we have just reached Step 2 in the form \(\operatorname{D}F = \operatorname{d}F + \operatorname{r}F,\) where \(\operatorname{r}F\) is the residual term that remains for us to examine next.
NB. I'm am trying to give quick overview here, and this forces me to omit many picky details. The picky reader may wish to consult the more detailed presentation of this material at the following locations:
- Differential Logic and Dynamic Systems
- The Secant Operator
- Higher Dimensional Targets
Let's push on with the analysis of the transformation:
\(\begin{matrix}
F & : & (u, v) & \mapsto & (f(u, v),~g(u, v)) & = & (~\texttt{((u)(v))}~,~\texttt{((u,~v))}~).\end{matrix}\)
|
For ease of comparison and computation, I will collect the Figures that we need for the remainder of the work together on one page.
Computation Summary \[f(u, v) = \texttt{((u)(v))}\]
Figure 1.1 shows the expansion of \(f = \texttt{((u)(v))}\) over \([u, v]\!\) to produce the expression:
\(\texttt{uv} ~+~ \texttt{u(v)} ~+~ \texttt{(u)v}\)
|
Figure 1.2 shows the expansion of \(\operatorname{E}f = \texttt{((u + du)(v + dv))}\) over \([u, v]\!\) to produce the expression:
\(\texttt{uv} \cdot \texttt{(du~dv)} + \texttt{u(v)} \cdot \texttt{(du (dv))} + \texttt{(u)v} \cdot \texttt{((du) dv)} + \texttt{(u)(v)} \cdot \texttt{((du)(dv))}\)
|
\(\operatorname{E}f\) tells you what you would have to do, from where you are in the universe \([u, v],\!\) if you want to end up in a place where \(f\!\) is true. In this case, where the prevailing proposition \(f\!\) is \(\texttt{((u)(v))},\) the indication \(\texttt{uv} \cdot \texttt{(du~dv)}\) of \(\operatorname{E}f\) tells you this: If \(u\!\) and \(v\!\) are both true where you are, then just don't change both \(u\!\) and \(v\!\) at once, and you will end up in a place where \(\texttt{((u)(v))}\) is true.
Figure 1.3 shows the expansion of \(\operatorname{D}f\) over \([u, v]\!\) to produce the expression:
\(\texttt{uv} \cdot \texttt{du~dv} ~+~ \texttt{u(v)} \cdot \texttt{du(dv)} ~+~ \texttt{(u)v} \cdot \texttt{(du)dv} ~+~ \texttt{(u)(v)} \cdot \texttt{((du)(dv))}\)
|
\(\operatorname{D}f\) tells you what you would have to do, from where you are in the universe \([u, v],\!\) if you want to bring about a change in the value of \(f,\!\) that is, if you want to get to a place where the value of \(f\!\) is different from what it is where you are. In the present case, where the reigning proposition \(f\!\) is \(\texttt{((u)(v))},\) the term \(\texttt{uv} \cdot \texttt{du~dv}\) of \(\operatorname{D}f\) tells you this: If \(u\!\) and \(v\!\) are both true where you are, then you would have to change both \(u\!\) and \(v\!\) in order to reach a place where the value of \(f\!\) is different from what it is where you are.
Figure 1.4 approximates \(\operatorname{D}f\) by the linear form \(\operatorname{d}f\) that expands over \([u, v]\!\) as follows:
\(\begin{matrix}
\operatorname{d}f
& = & \texttt{uv} \cdot \texttt{0} & + & \texttt{u(v)} \cdot \texttt{du} & + & \texttt{(u)v} \cdot \texttt{dv} & + & \texttt{(u)(v)} \cdot \texttt{(du, dv)}
\\ \\
& = & & & \texttt{u(v)} \cdot \texttt{du} & + & \texttt{(u)v} \cdot \texttt{dv} & + & \texttt{(u)(v)} \cdot \texttt{(du, dv)}
\end{matrix}\)
|
Figure 1.5 shows what remains of the difference map \(\operatorname{D}f\) when the first order linear contribution \(\operatorname{d}f\) is removed, namely:
\(\begin{matrix}
\operatorname{r}f
& = & \texttt{uv} \cdot \texttt{du~dv} & + & \texttt{u(v)} \cdot \texttt{du~dv} & + & \texttt{(u)v} \cdot \texttt{du~dv} & + & \texttt{(u)(v)} \cdot \texttt{du~dv}
\\ \\
& = & \texttt{du~dv}
\end{matrix}\)
|
o---------------------------------------o
| |
| o |
| /%\ |
| /%%%\ |
| /%%%%%\ |
| o%%%%%%%o |
| /%\%%%%%/%\ |
| /%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| /%\%%%%%/%\%%%%%/%\ |
| /%%%\%%%/%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o%%%%%%%o |
| /%\%%%%%/%\%%%%%/%\%%%%%/%\ |
| /%%%\%%%/%%%\%%%/%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\%/%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o%%%%%%%o%%%%%%%o |
| |\%%%%%/%\%%%%%/ \%%%%%/%\%%%%%/| |
| | \%%%/%%%\%%%/ \%%%/%%%\%%%/ | |
| | \%/%%%%%\%/ \%/%%%%%\%/ | |
| | o%%%%%%%o o%%%%%%%o | |
| | |\%%%%%/ \ / \%%%%%/| | |
| | | \%%%/ \ / \%%%/ | | |
| | u | \%/ \ / \%/ | v | |
| o---+---o o o---+---o |
| | \ / \ / | |
| | \ / \ / | |
| | du \ / \ / dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.1. f = ((u)(v))
|
o---------------------------------------o
| |
| o |
| /%\ |
| /%%%\ |
| /%%%%%\ |
| o%%%%%%%o |
| /%\%%%%%/%\ |
| /%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| /%\%%%%%/ \%%%%%/%\ |
| /%%%\%%%/ \%%%/%%%\ |
| /%%%%%\%/ \%/%%%%%\ |
| o%%%%%%%o o%%%%%%%o |
| /%\%%%%%/%\ /%\%%%%%/%\ |
| /%%%\%%%/%%%\ /%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\ /%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o%%%%%%%o%%%%%%%o |
| |\%%%%%/ \%%%%%/%\%%%%%/ \%%%%%/| |
| | \%%%/ \%%%/%%%\%%%/ \%%%/ | |
| | \%/ \%/%%%%%\%/ \%/ | |
| | o o%%%%%%%o o | |
| | |\ /%\%%%%%/%\ /| | |
| | | \ /%%%\%%%/%%%\ / | | |
| | u | \ /%%%%%\%/%%%%%\ / | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.2. Ef = ((u + du)(v + dv))
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| / \ / \ |
| / \ / \ |
| / \ / \ |
| o o o |
| / \ /%\ / \ |
| / \ /%%%\ / \ |
| / \ /%%%%%\ / \ |
| o o%%%%%%%o o |
| / \ / \%%%%%/ \ / \ |
| / \ / \%%%/ \ / \ |
| / \ / \%/ \ / \ |
| o o o o o |
| |\ /%\ /%\ /%\ /| |
| | \ /%%%\ /%%%\ /%%%\ / | |
| | \ /%%%%%\ /%%%%%\ /%%%%%\ / | |
| | o%%%%%%%o%%%%%%%o%%%%%%%o | |
| | |\%%%%%/%\%%%%%/%\%%%%%/| | |
| | | \%%%/%%%\%%%/%%%\%%%/ | | |
| | u | \%/%%%%%\%/%%%%%\%/ | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.3. Difference Map Df = f + Ef
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| / \ / \ |
| / \ / \ |
| / \ / \ |
| o o o |
| / \ / \ / \ |
| / \ / \ / \ |
| / \ / \ / \ |
| o o o o |
| / \ /%\ /%\ / \ |
| / \ /%%%\ /%%%\ / \ |
| / \ /%%%%%\ /%%%%%\ / \ |
| o o%%%%%%%o%%%%%%%o o |
| |\ /%\%%%%%/ \%%%%%/%\ /| |
| | \ /%%%\%%%/ \%%%/%%%\ / | |
| | \ /%%%%%\%/ \%/%%%%%\ / | |
| | o%%%%%%%o o%%%%%%%o | |
| | |\%%%%%/%\ /%\%%%%%/| | |
| | | \%%%/%%%\ /%%%\%%%/ | | |
| | u | \%/%%%%%\ /%%%%%\%/ | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.4. Linear Proxy df for Df
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| / \ / \ |
| / \ / \ |
| / \ / \ |
| o o o |
| / \ /%\ / \ |
| / \ /%%%\ / \ |
| / \ /%%%%%\ / \ |
| o o%%%%%%%o o |
| / \ /%\%%%%%/%\ / \ |
| / \ /%%%\%%%/%%%\ / \ |
| / \ /%%%%%\%/%%%%%\ / \ |
| o o%%%%%%%o%%%%%%%o o |
| |\ / \%%%%%/%\%%%%%/ \ /| |
| | \ / \%%%/%%%\%%%/ \ / | |
| | \ / \%/%%%%%\%/ \ / | |
| | o o%%%%%%%o o | |
| | |\ / \%%%%%/ \ /| | |
| | | \ / \%%%/ \ / | | |
| | u | \ / \%/ \ / | v | |
| o---+---o o o---+---o |
| | \ / \ / | |
| | \ / \ / | |
| | du \ / \ / dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 1.5. Remainder rf = Df + df
|
Computation Summary \[g(u, v) = \texttt{((u, v))}\]
Figure 2.1 shows the expansion of \(g = \texttt{((u, v))}\) over \([u, v]\!\) to produce the expression:
\(\texttt{uv} ~+~ \texttt{(u)(v)}\)
|
Figure 2.2 shows the expansion of \(\operatorname{E}g = \texttt{((u + du, v + dv))}\) over \([u, v]\!\) to produce the expression:
\(\texttt{uv} \cdot \texttt{((du, dv))} + \texttt{u(v)} \cdot \texttt{(du, dv)} + \texttt{(u)v} \cdot \texttt{(du, dv)} + \texttt{(u)(v)} \cdot \texttt{((du, dv))}\)
|
\(\operatorname{E}g\) tells you what you would have to do, from where you are in the universe \([u, v],\!\) if you want to end up in a place where \(g\!\) is true. In this case, where the prevailing proposition \(g\!\) is \(\texttt{((u, v))},\) the component \(\texttt{uv} \cdot \texttt{((du, dv))}\) of \(\operatorname{E}g\) tells you this: If \(u\!\) and \(v\!\) are both true where you are, then change either both or neither of \(u\!\) and \(v\!\) at the same time, and you will attain a place where \(\texttt{((du, dv))}\) is true.
Figure 2.3 shows the expansion of \(\operatorname{D}g\) over \([u, v]\!\) to produce the expression:
\(\texttt{uv} \cdot \texttt{(du, dv)} ~+~ \texttt{u(v)} \cdot \texttt{(du, dv)} ~+~ \texttt{(u)v} \cdot \texttt{(du, dv)} ~+~ \texttt{(u)(v)} \cdot \texttt{(du, dv)}\)
|
\(\operatorname{D}g\) tells you what you would have to do, from where you are in the universe \([u, v],\!\) if you want to bring about a change in the value of \(g,\!\) that is, if you want to get to a place where the value of \(g\!\) is different from what it is where you are. In the present case, where the ruling proposition \(g\!\) is \(\texttt{((u, v))},\) the term \(\texttt{uv} \cdot \texttt{(du, dv)}\) of \(\operatorname{D}g\) tells you this: If \(u\!\) and \(v\!\) are both true where you are, then you would have to change one or the other but not both \(u\!\) and \(v\!\) in order to reach a place where the value of \(g\!\) is different from what it is where you are.
Figure 2.4 approximates \(\operatorname{D}g\) by the linear form \(\operatorname{d}g\) that expands over \([u, v]\!\) as follows:
\(\begin{array}{lll}
\operatorname{d}g
& = & \texttt{uv}\!\cdot\!\texttt{(du, dv)} + \texttt{u(v)}\!\cdot\!\texttt{(du, dv)} + \texttt{(u)v}\!\cdot\!\texttt{(du, dv)} + \texttt{(u)(v)}\!\cdot\!\texttt{(du, dv)}
\\ \\
& = & \texttt{(du, dv)}
\end{array}\)
|
Figure 2.5 shows what remains of the difference map \(\operatorname{D}g\) when the first order linear contribution \(\operatorname{d}g\) is removed, namely:
\(\begin{matrix}
\operatorname{r}g
& = & \texttt{uv} \cdot \texttt{0} & + & \texttt{u(v)} \cdot \texttt{0} & + & \texttt{(u)v} \cdot \texttt{0} & + & \texttt{(u)(v)} \cdot \texttt{0}
\\ \\
& = & \texttt{0}
\end{matrix}\)
|
o---------------------------------------o
| |
| o |
| /%\ |
| /%%%\ |
| /%%%%%\ |
| o%%%%%%%o |
| /%\%%%%%/%\ |
| /%%%\%%%/%%%\ |
| /%%%%%\%/%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| / \%%%%%/%\%%%%%/ \ |
| / \%%%/%%%\%%%/ \ |
| / \%/%%%%%\%/ \ |
| o o%%%%%%%o o |
| / \ / \%%%%%/ \ / \ |
| / \ / \%%%/ \ / \ |
| / \ / \%/ \ / \ |
| o o o o o |
| |\ / \ /%\ / \ /| |
| | \ / \ /%%%\ / \ / | |
| | \ / \ /%%%%%\ / \ / | |
| | o o%%%%%%%o o | |
| | |\ /%\%%%%%/%\ /| | |
| | | \ /%%%\%%%/%%%\ / | | |
| | u | \ /%%%%%\%/%%%%%\ / | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/%\%%%%%/ | |
| | \%%%/%%%\%%%/ | |
| | du \%/%%%%%\%/ dv | |
| o-------o%%%%%%%o-------o |
| \%%%%%/ |
| \%%%/ |
| \%/ |
| o |
| |
o---------------------------------------o
Figure 2.1. g = ((u, v))
|
o---------------------------------------o
| |
| o |
| /%\ |
| /%%%\ |
| /%%%%%\ |
| o%%%%%%%o |
| / \%%%%%/ \ |
| / \%%%/ \ |
| / \%/ \ |
| o o o |
| /%\ /%\ /%\ |
| /%%%\ /%%%\ /%%%\ |
| /%%%%%\ /%%%%%\ /%%%%%\ |
| o%%%%%%%o%%%%%%%o%%%%%%%o |
| / \%%%%%/ \%%%%%/ \%%%%%/ \ |
| / \%%%/ \%%%/ \%%%/ \ |
| / \%/ \%/ \%/ \ |
| o o o o o |
| |\ /%\ /%\ /%\ /| |
| | \ /%%%\ /%%%\ /%%%\ / | |
| | \ /%%%%%\ /%%%%%\ /%%%%%\ / | |
| | o%%%%%%%o%%%%%%%o%%%%%%%o | |
| | |\%%%%%/ \%%%%%/ \%%%%%/| | |
| | | \%%%/ \%%%/ \%%%/ | | |
| | u | \%/ \%/ \%/ | v | |
| o---+---o o o---+---o |
| | \ /%\ / | |
| | \ /%%%\ / | |
| | du \ /%%%%%\ / dv | |
| o-------o%%%%%%%o-------o |
| \%%%%%/ |
| \%%%/ |
| \%/ |
| o |
| |
o---------------------------------------o
Figure 2.2. Eg = ((u + du, v + dv))
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| /%\ /%\ |
| /%%%\ /%%%\ |
| /%%%%%\ /%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| /%\%%%%%/ \%%%%%/%\ |
| /%%%\%%%/ \%%%/%%%\ |
| /%%%%%\%/ \%/%%%%%\ |
| o%%%%%%%o o%%%%%%%o |
| / \%%%%%/ \ / \%%%%%/ \ |
| / \%%%/ \ / \%%%/ \ |
| / \%/ \ / \%/ \ |
| o o o o o |
| |\ /%\ / \ /%\ /| |
| | \ /%%%\ / \ /%%%\ / | |
| | \ /%%%%%\ / \ /%%%%%\ / | |
| | o%%%%%%%o o%%%%%%%o | |
| | |\%%%%%/%\ /%\%%%%%/| | |
| | | \%%%/%%%\ /%%%\%%%/ | | |
| | u | \%/%%%%%\ /%%%%%\%/ | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 2.3. Difference Map Dg = g + Eg
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| /%\ /%\ |
| /%%%\ /%%%\ |
| /%%%%%\ /%%%%%\ |
| o%%%%%%%o%%%%%%%o |
| /%\%%%%%/ \%%%%%/%\ |
| /%%%\%%%/ \%%%/%%%\ |
| /%%%%%\%/ \%/%%%%%\ |
| o%%%%%%%o o%%%%%%%o |
| / \%%%%%/ \ / \%%%%%/ \ |
| / \%%%/ \ / \%%%/ \ |
| / \%/ \ / \%/ \ |
| o o o o o |
| |\ /%\ / \ /%\ /| |
| | \ /%%%\ / \ /%%%\ / | |
| | \ /%%%%%\ / \ /%%%%%\ / | |
| | o%%%%%%%o o%%%%%%%o | |
| | |\%%%%%/%\ /%\%%%%%/| | |
| | | \%%%/%%%\ /%%%\%%%/ | | |
| | u | \%/%%%%%\ /%%%%%\%/ | v | |
| o---+---o%%%%%%%o%%%%%%%o---+---o |
| | \%%%%%/ \%%%%%/ | |
| | \%%%/ \%%%/ | |
| | du \%/ \%/ dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 2.4. Linear Proxy dg for Dg
|
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| / \ / \ |
| / \ / \ |
| / \ / \ |
| o o o |
| / \ / \ / \ |
| / \ / \ / \ |
| / \ / \ / \ |
| o o o o |
| / \ / \ / \ / \ |
| / \ / \ / \ / \ |
| / \ / \ / \ / \ |
| o o o o o |
| |\ / \ / \ / \ /| |
| | \ / \ / \ / \ / | |
| | \ / \ / \ / \ / | |
| | o o o o | |
| | |\ / \ / \ /| | |
| | | \ / \ / \ / | | |
| | u | \ / \ / \ / | v | |
| o---+---o o o---+---o |
| | \ / \ / | |
| | \ / \ / | |
| | du \ / \ / dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Figure 2.5. Remainder rg = Dg + dg
|
| Have I carved enough, my lord --
| Child, you are a bone.
|
| Leonard Cohen, "Teachers" (1967)
Visualization
In my work on Differential Logic and Dynamic Systems, I found it useful to develop several different ways of visualizing logical transformations, indeed, I devised four distinct styles of picture for the job. Thus far in our work on the mapping \(F : [u, v] \to [u, v],\!\) we've been making use of what I call the areal view of the extended universe of discourse, \([u, v, du, dv],\!\) but as the number of dimensions climbs beyond four, it's time to bid this genre adieu, and look for a style that can scale a little better. At any rate, before we proceed any further, let's first assemble the information that we have gathered about \(F\!\) from several different angles, and see if it can be fitted into a coherent picture of the transformation \(F : (u, v) \mapsto ( ~\texttt{((u)(v))}~, ~\texttt{((u, v))}~ ).\)
In our first crack at the transformation \(F,\!\) we simply plotted the state transitions and applied the utterly stock technique of calculating the finite differences.
\(\text{Orbit 1}\!\)
|
\(\begin{array}{c|cc|cc|}
t & u & v & du & dv \'"`UNIQ-MathJax6-QINU`"' Another way to convey the same information is by means of the extended proposition'"`UNIQ-MathJax7-QINU`"'
{| align="center" cellpadding="8" style="text-align:center"
| \(\text{Orbit 2}\!\)
|
\(\begin{array}{c|cc|cc|cc|}
t & u & v & du & dv & d^2 u & d^2 v \\[8pt]
0 & 0 & 0 & 0 & 1 & 1 & 0 \\
1 & 0 & 1 & 1 & 1 & 1 & 1 \\
2 & 1 & 0 & 0 & 0 & 0 & 0 \\
3 & '' & '' & '' & '' & '' & '' \\
\end{array}\)
|
A more fine combing of the second Table brings to mind a rule that partly covers the remaining cases, that is, \(\texttt{du~=~v}, ~\texttt{dv~=~(u)}.\) This much information about Orbit 2 is also encapsulated by the extended proposition, \(\texttt{(uv)((du, v))(dv, u)},\) which says that \(u\!\) and \(v\!\) are not both true at the same time, while \(du\!\) is equal in value to \(v\!\) and \(dv\!\) is opposite in value to \(u.\!\)
Turing Machine Example
By way of providing a simple illustration of Cook's Theorem, namely, that “Propositional Satisfiability is NP-Complete”, I will describe one way to translate finite approximations of turing machines into propositional expressions, using the cactus language syntax for propositional calculus that I will describe in more detail as we proceed.
- \(\operatorname{Stilt}(k) =\!\)
- Space and time limited turing machine,
- with \(k\!\) units of space and \(k\!\) units of time.
- \(\operatorname{Stunt}(k) =\!\)
- Space and time limited turing machine,
- for computing the parity of a bit string, with number of tape cells of input equal to \(k.\!\)
I will follow the pattern of discussion in Herbert Wilf (1986), Algorithms and Complexity, pp. 188–201, but translate his logical formalism into cactus language, which is more efficient in regard to the number of propositional clauses that are required.
A turing machine for computing the parity of a bit string is described by means of the following Figure and Table.
o-------------------------------------------------o
| |
| 1/1/+1 |
| --------> |
| /\ / \ /\ |
| 0/0/+1 ^ 0 1 ^ 0/0/+1 |
| \/|\ /|\/ |
| | <-------- | |
| #/#/-1 | 1/1/+1 | #/#/-1 |
| | | |
| v v |
| # * |
| |
o-------------------------------------------------o
Figure 21-a. Parity Machine
|
Table 21-b. Parity Machine
o-------o--------o-------------o---------o------------o
| State | Symbol | Next Symbol | Ratchet | Next State |
| Q | S | S' | dR | Q' |
o-------o--------o-------------o---------o------------o
| 0 | 0 | 0 | +1 | 0 |
| 0 | 1 | 1 | +1 | 1 |
| 0 | # | # | -1 | # |
| 1 | 0 | 0 | +1 | 1 |
| 1 | 1 | 1 | +1 | 0 |
| 1 | # | # | -1 | * |
o-------o--------o-------------o---------o------------o
|
The TM has a finite automaton (FA) as one component. Let us refer to this particular FA by the name of \(\operatorname{M}.\)
The tape head (that is, the read unit) will be called \(\operatorname{H}.\) The registers are also called tape cells or tape squares.
Finite Approximations
To see how each finite approximation to a given turing machine can be given a purely propositional description, one fixes the parameter \(k\!\) and limits the rest of the discussion to describing \(\operatorname{Stilt}(k),\!\) which is not really a full-fledged TM anymore but just a finite automaton in disguise.
In this example, for the sake of a minimal illustration, we choose \(k = 2,\!\) and discuss \(\operatorname{Stunt}(2).\) Since the zeroth tape cell and the last tape cell are both occupied by the character \(^{\backprime\backprime}\texttt{\#}^{\prime\prime}\) that is used for both the beginning of file \((\operatorname{bof})\) and the end of file \((\operatorname{eof})\) markers, this allows for only one digit of significant computation.
To translate \(\operatorname{Stunt}(2)\) into propositional form we use the following collection of basic propositions, boolean variables, or logical features, depending on what one prefers to call them:
The basic propositions for describing the present state function \(\operatorname{QF} : P \to Q\) are these:
\(\begin{matrix}
\texttt{p0\_q\#}, & \texttt{p0\_q*}, & \texttt{p0\_q0}, & \texttt{p0\_q1},
\\[6pt]
\texttt{p1\_q\#}, & \texttt{p1\_q*}, & \texttt{p1\_q0}, & \texttt{p1\_q1},
\\[6pt]
\texttt{p2\_q\#}, & \texttt{p2\_q*}, & \texttt{p2\_q0}, & \texttt{p2\_q1},
\\[6pt]
\texttt{p3\_q\#}, & \texttt{p3\_q*}, & \texttt{p3\_q0}, & \texttt{p3\_q1}.
\end{matrix}\)
|
The proposition of the form \(\texttt{pi\_qj}\) says:
At the point-in-time \(p_i,\!\) the finite state machine \(\operatorname{M}\) is in the state \(q_j.\!\)
|
The basic propositions for describing the present register function \(\operatorname{RF} : P \to R\) are these:
\(\begin{matrix}
\texttt{p0\_r0}, & \texttt{p0\_r1}, & \texttt{p0\_r2}, & \texttt{p0\_r3},
\\[6pt]
\texttt{p1\_r0}, & \texttt{p1\_r1}, & \texttt{p1\_r2}, & \texttt{p1\_r3},
\\[6pt]
\texttt{p2\_r0}, & \texttt{p2\_r1}, & \texttt{p2\_r2}, & \texttt{p2\_r3},
\\[6pt]
\texttt{p3\_r0}, & \texttt{p3\_r1}, & \texttt{p3\_r2}, & \texttt{p3\_r3}.
\end{matrix}\)
|
The proposition of the form \(\texttt{pi\_rj}\) says:
At the point-in-time \(p_i,\!\) the tape head \(\operatorname{H}\) is on the tape cell \(r_j.\!\)
|
The basic propositions for describing the present symbol function \(\operatorname{SF} : P \to (R \to S)\) are these:
\(\begin{matrix}
\texttt{p0\_r0\_s\#}, & \texttt{p0\_r0\_s*}, & \texttt{p0\_r0\_s0}, & \texttt{p0\_r0\_s1},
\\[4pt]
\texttt{p0\_r1\_s\#}, & \texttt{p0\_r1\_s*}, & \texttt{p0\_r1\_s0}, & \texttt{p0\_r1\_s1},
\\[4pt]
\texttt{p0\_r2\_s\#}, & \texttt{p0\_r2\_s*}, & \texttt{p0\_r2\_s0}, & \texttt{p0\_r2\_s1},
\\[4pt]
\texttt{p0\_r3\_s\#}, & \texttt{p0\_r3\_s*}, & \texttt{p0\_r3\_s0}, & \texttt{p0\_r3\_s1},
\\[12pt]
\texttt{p1\_r0\_s\#}, & \texttt{p1\_r0\_s*}, & \texttt{p1\_r0\_s0}, & \texttt{p1\_r0\_s1},
\\[4pt]
\texttt{p1\_r1\_s\#}, & \texttt{p1\_r1\_s*}, & \texttt{p1\_r1\_s0}, & \texttt{p1\_r1\_s1},
\\[4pt]
\texttt{p1\_r2\_s\#}, & \texttt{p1\_r2\_s*}, & \texttt{p1\_r2\_s0}, & \texttt{p1\_r2\_s1},
\\[4pt]
\texttt{p1\_r3\_s\#}, & \texttt{p1\_r3\_s*}, & \texttt{p1\_r3\_s0}, & \texttt{p1\_r3\_s1},
\\[12pt]
\texttt{p2\_r0\_s\#}, & \texttt{p2\_r0\_s*}, & \texttt{p2\_r0\_s0}, & \texttt{p2\_r0\_s1},
\\[4pt]
\texttt{p2\_r1\_s\#}, & \texttt{p2\_r1\_s*}, & \texttt{p2\_r1\_s0}, & \texttt{p2\_r1\_s1},
\\[4pt]
\texttt{p2\_r2\_s\#}, & \texttt{p2\_r2\_s*}, & \texttt{p2\_r2\_s0}, & \texttt{p2\_r2\_s1},
\\[4pt]
\texttt{p2\_r3\_s\#}, & \texttt{p2\_r3\_s*}, & \texttt{p2\_r3\_s0}, & \texttt{p2\_r3\_s1},
\\[12pt]
\texttt{p3\_r0\_s\#}, & \texttt{p3\_r0\_s*}, & \texttt{p3\_r0\_s0}, & \texttt{p3\_r0\_s1},
\\[4pt]
\texttt{p3\_r1\_s\#}, & \texttt{p3\_r1\_s*}, & \texttt{p3\_r1\_s0}, & \texttt{p3\_r1\_s1},
\\[4pt]
\texttt{p3\_r2\_s\#}, & \texttt{p3\_r2\_s*}, & \texttt{p3\_r2\_s0}, & \texttt{p3\_r2\_s1},
\\[4pt]
\texttt{p3\_r3\_s\#}, & \texttt{p3\_r3\_s*}, & \texttt{p3\_r3\_s0}, & \texttt{p3\_r3\_s1}.
\end{matrix}\)
|
The proposition of the form \(\texttt{pi\_rj\_sk}\) says:
At the point-in-time \(p_i,\!\) the tape cell \(r_j\!\) bears the mark \(s_k.\!\)
|
Initial Conditions
Given but a single free square on the tape, there are just two different sets of initial conditions for \(\operatorname{Stunt}(2),\) the finite approximation to the parity turing machine that we are presently considering.
Initial Conditions for Tape Input "0"
The following conjunction of 5 basic propositions describes the initial conditions when \(\operatorname{Stunt}(2)\) is started with an input of "0" in its free square:
\(\begin{array}{l}
\texttt{p0\_q0}
\\ \\
\texttt{p0\_r1}
\\ \\
\texttt{p0\_r0\_s\#}
\\
\texttt{p0\_r1\_s0}
\\
\texttt{p0\_r2\_s\#}
\end{array}\)
|
This conjunction of basic propositions may be read as follows:
At time \(p_0,\!\) machine \(\operatorname{M}\) is in the state \(q_0,\!\)
At time \(p_0,\!\) scanner \(\operatorname{H}\) is reading cell \(r_1,\!\)
At time \(p_0,\!\) cell \(r_0\!\) contains the symbol \(\texttt{\#},\)
At time \(p_0,\!\) cell \(r_1\!\) contains the symbol \(\texttt{0},\)
At time \(p_0,\!\) cell \(r_2\!\) contains the symbol \(\texttt{\#}.\)
|
Initial Conditions for Tape Input "1"
The following conjunction of 5 basic propositions describes the initial conditions when \(\operatorname{Stunt}(2)\) is started with an input of "1" in its free square:
\(\begin{array}{l}
\texttt{p0\_q0}
\\ \\
\texttt{p0\_r1}
\\ \\
\texttt{p0\_r0\_s\#}
\\
\texttt{p0\_r1\_s1}
\\
\texttt{p0\_r2\_s\#}
\end{array}\)
|
This conjunction of basic propositions may be read as follows:
At time \(p_0,\!\) machine \(\operatorname{M}\) is in the state \(q_0,\!\)
At time \(p_0,\!\) scanner \(\operatorname{H}\) is reading cell \(r_1,\!\)
At time \(p_0,\!\) cell \(r_0\!\) contains the symbol \(\texttt{\#},\)
At time \(p_0,\!\) cell \(r_1\!\) contains the symbol \(\texttt{1},\)
At time \(p_0,\!\) cell \(r_2\!\) contains the symbol \(\texttt{\#}.\)
|
Propositional Program
A complete description of \(\operatorname{Stunt}(2)\) in propositional form is obtained by conjoining one of the above choices for initial conditions with all of the following sets of propositions, that serve in effect as a simple type of declarative program, telling us all that we need to know about the anatomy and behavior of the truncated TM in question.
Mediate Conditions
\(\begin{array}{l}
\texttt{(~p0\_q\#~(~p1\_q\#~))}
\\
\texttt{(~p0\_q*~(~p1\_q*~))}
\\ \\
\texttt{(~p1\_q\#~(~p2\_q\#~))}
\\
\texttt{(~p1\_q*~(~p2\_q*~))}
\end{array}\)
|
Terminal Conditions
\(\begin{array}{l}
\texttt{((~p2\_q\#~)(~p2\_q*~))}
\end{array}\)
|
State Partition
\(\begin{array}{l}
\texttt{((~p0\_q0~),(~p0\_q1~),(~p0\_q\#~),(~p0\_q*~))}
\\
\texttt{((~p1\_q0~),(~p1\_q1~),(~p1\_q\#~),(~p1\_q*~))}
\\
\texttt{((~p2\_q0~),(~p2\_q1~),(~p2\_q\#~),(~p2\_q*~))}
\end{array}\)
|
Register Partition
\(\begin{array}{l}
\texttt{((~p0\_r0~),(~p0\_r1~),(~p0\_r2~))}
\\
\texttt{((~p1\_r0~),(~p1\_r1~),(~p1\_r2~))}
\\
\texttt{((~p2\_r0~),(~p2\_r1~),(~p2\_r2~))}
\end{array}\)
|
Symbol Partition
\(\begin{array}{l}
\texttt{((~p0\_r0\_s0~),(~p0\_r0\_s1~),(~p0\_r0\_s\#~))}
\\
\texttt{((~p0\_r1\_s0~),(~p0\_r1\_s1~),(~p0\_r1\_s\#~))}
\\
\texttt{((~p0\_r2\_s0~),(~p0\_r2\_s1~),(~p0\_r2\_s\#~))}
\\ \\
\texttt{((~p1\_r0\_s0~),(~p1\_r0\_s1~),(~p1\_r0\_s\#~))}
\\
\texttt{((~p1\_r1\_s0~),(~p1\_r1\_s1~),(~p1\_r1\_s\#~))}
\\
\texttt{((~p1\_r2\_s0~),(~p1\_r2\_s1~),(~p1\_r2\_s\#~))}
\\ \\
\texttt{((~p2\_r0\_s0~),(~p2\_r0\_s1~),(~p2\_r0\_s\#~))}
\\
\texttt{((~p2\_r1\_s0~),(~p2\_r1\_s1~),(~p2\_r1\_s\#~))}
\\
\texttt{((~p2\_r2\_s0~),(~p2\_r2\_s1~),(~p2\_r2\_s\#~))}
\end{array}\)
|
Interaction Conditions
\(\begin{array}{l}
\texttt{((~p0\_r0~) ~p0\_r0\_s0~ (~p1\_r0\_s0~))}
\\
\texttt{((~p0\_r0~) ~p0\_r0\_s1~ (~p1\_r0\_s1~))}
\\
\texttt{((~p0\_r0~) ~p0\_r0\_s\#~ (~p1\_r0\_s\#~))}
\\ \\
\texttt{((~p0\_r1~) ~p0\_r1\_s0~ (~p1\_r1\_s0~))}
\\
\texttt{((~p0\_r1~) ~p0\_r1\_s1~ (~p1\_r1\_s1~))}
\\
\texttt{((~p0\_r1~) ~p0\_r1\_s\#~ (~p1\_r1\_s\#~))}
\\ \\
\texttt{((~p0\_r2~) ~p0\_r2\_s0~ (~p1\_r2\_s0~))}
\\
\texttt{((~p0\_r2~) ~p0\_r2\_s1~ (~p1\_r2\_s1~))}
\\
\texttt{((~p0\_r2~) ~p0\_r2\_s\#~ (~p1\_r2\_s\#~))}
\\ \\
\texttt{((~p1\_r0~) ~p1\_r0\_s0~ (~p2\_r0\_s0~))}
\\
\texttt{((~p1\_r0~) ~p1\_r0\_s1~ (~p2\_r0\_s1~))}
\\
\texttt{((~p1\_r0~) ~p1\_r0\_s\#~ (~p2\_r0\_s\#~))}
\\ \\
\texttt{((~p1\_r1~) ~p1\_r1\_s0~ (~p2\_r1\_s0~))}
\\
\texttt{((~p1\_r1~) ~p1\_r1\_s1~ (~p2\_r1\_s1~))}
\\
\texttt{((~p1\_r1~) ~p1\_r1\_s\#~ (~p2\_r1\_s\#~))}
\\ \\
\texttt{((~p1\_r2~) ~p1\_r2\_s0~ (~p2\_r2\_s0~))}
\\
\texttt{((~p1\_r2~) ~p1\_r2\_s1~ (~p2\_r2\_s1~))}
\\
\texttt{((~p1\_r2~) ~p1\_r2\_s\#~ (~p2\_r2\_s\#~))}
\end{array}\)
|
Transition Relations
\(\begin{array}{l}
\texttt{(~p0\_q0~~p0\_r1~~p0\_r1\_s0~~(~p1\_q0~~p1\_r2~~p1\_r1\_s0~))}
\\
\texttt{(~p0\_q0~~p0\_r1~~p0\_r1\_s1~~(~p1\_q1~~p1\_r2~~p1\_r1\_s1~))}
\\
\texttt{(~p0\_q0~~p0\_r1~~p0\_r1\_s\#~~(~p1\_q\#~~p1\_r0~~p1\_r1\_s\#~))}
\\
\texttt{(~p0\_q0~~p0\_r2~~p0\_r2\_s\#~~(~p1\_q\#~~p1\_r1~~p1\_r2\_s\#~))}
\\ \\
\texttt{(~p0\_q1~~p0\_r1~~p0\_r1\_s0~~(~p1\_q1~~p1\_r2~~p1\_r1\_s0~))}
\\
\texttt{(~p0\_q1~~p0\_r1~~p0\_r1\_s1~~(~p1\_q0~~p1\_r2~~p1\_r1\_s1~))}
\\
\texttt{(~p0\_q1~~p0\_r1~~p0\_r1\_s\#~~(~p1\_q*~~p1\_r0~~p1\_r1\_s\#~))}
\\
\texttt{(~p0\_q1~~p0\_r2~~p0\_r2\_s\#~~(~p1\_q*~~p1\_r1~~p1\_r2\_s\#~))}
\\ \\
\texttt{(~p1\_q0~~p1\_r1~~p1\_r1\_s0~~(~p2\_q0~~p2\_r2~~p2\_r1\_s0~))}
\\
\texttt{(~p1\_q0~~p1\_r1~~p1\_r1\_s1~~(~p2\_q1~~p2\_r2~~p2\_r1\_s1~))}
\\
\texttt{(~p1\_q0~~p1\_r1~~p1\_r1\_s\#~~(~p2\_q\#~~p2\_r0~~p2\_r1\_s\#~))}
\\
\texttt{(~p1\_q0~~p1\_r2~~p1\_r2\_s\#~~(~p2\_q\#~~p2\_r1~~p2\_r2\_s\#~))}
\\ \\
\texttt{(~p1\_q1~~p1\_r1~~p1\_r1\_s0~~(~p2\_q1~~p2\_r2~~p2\_r1\_s0~))}
\\
\texttt{(~p1\_q1~~p1\_r1~~p1\_r1\_s1~~(~p2\_q0~~p2\_r2~~p2\_r1\_s1~))}
\\
\texttt{(~p1\_q1~~p1\_r1~~p1\_r1\_s\#~~(~p2\_q*~~p2\_r0~~p2\_r1\_s\#~))}
\\
\texttt{(~p1\_q1~~p1\_r2~~p1\_r2\_s\#~~(~p2\_q*~~p2\_r1~~p2\_r2\_s\#~))}
\end{array}\)
|
Interpretation of the Propositional Program
Let us now run through the propositional specification of \(\operatorname{Stunt}(2),\) our truncated TM, and paraphrase what it says in ordinary language.
Mediate Conditions
\(\begin{array}{l}
\texttt{(~p0\_q\#~(~p1\_q\#~))}
\\
\texttt{(~p0\_q*~(~p1\_q*~))}
\\ \\
\texttt{(~p1\_q\#~(~p2\_q\#~))}
\\
\texttt{(~p1\_q*~(~p2\_q*~))}
\end{array}\)
|
In the interpretation of the cactus language for propositional logic that we are using here, an expression of the form \(\texttt{(p(q))}\) expresses a conditional, an implication, or an if-then proposition, commonly read in one of the following ways:
\(\begin{array}{l}
\operatorname{not}~ p ~\operatorname{without}~ q
\\[4pt]
p ~\operatorname{implies}~ q
\\[4pt]
\operatorname{if}~ p ~\operatorname{then}~ q
\\[4pt]
p \Rightarrow q
\end{array}\)
|
A text string expression of the form \(\texttt{(p(q))}\) corresponds to a graph-theoretic data-structure of the following form:
o---------------------------------------o
| |
| p q |
| o---o |
| | |
| @ |
| |
o---------------------------------------o
| ( p ( q )) |
o---------------------------------------o
|
Taken together, the Mediate Conditions state the following:
If \(\operatorname{M}\) at \(p_0\!\) is in state \(q_\#,\!\) then \(\operatorname{M}\) at \(p_1\!\) is in state \(q_\#,\!\) and
If \(\operatorname{M}\) at \(p_0\!\) is in state \(q_*,\!\) then \(\operatorname{M}\) at \(p_1\!\) is in state \(q_*,\!\) and
If \(\operatorname{M}\) at \(p_1\!\) is in state \(q_\#,\!\) then \(\operatorname{M}\) at \(p_2\!\) is in state \(q_\#,\!\) and
If \(\operatorname{M}\) at \(p_1\!\) is in state \(q_*,\!\) then \(\operatorname{M}\) at \(p_2\!\) is in state \(q_*.\!\)
|
Terminal Conditions
\(\begin{array}{l}
\texttt{((~p2\_q\#~)(~p2\_q*~))}
\end{array}\)
|
In cactus syntax, an expression of the form \(\texttt{((p)(q))}\) expresses the disjunction \(p ~\operatorname{or}~ q.\) The corresponding cactus graph, here just a tree, has the following shape:
o---------------------------------------o
| |
| p q |
| o o |
| \ / |
| o |
| | |
| @ |
| |
o---------------------------------------o
| ((p) (q)) |
o---------------------------------------o
|
In effect, the Terminal Conditions state the following:
At time \(p_2\!\) machine \(\operatorname{M}\) is in state \(q_\#,\!\) or
At time \(p_2\!\) machine \(\operatorname{M}\) is in state \(q_*.\!\)
|
State Partition
\(\begin{array}{l}
\texttt{((~p0\_q0~),(~p0\_q1~),(~p0\_q\#~),(~p0\_q*~))}
\\
\texttt{((~p1\_q0~),(~p1\_q1~),(~p1\_q\#~),(~p1\_q*~))}
\\
\texttt{((~p2\_q0~),(~p2\_q1~),(~p2\_q\#~),(~p2\_q*~))}
\end{array}\)
|
In cactus syntax, an expression of the form \(\texttt{((} e_1 \texttt{),(} e_2 \texttt{),(} \ldots \texttt{),(} e_k \texttt{))}\!\) expresses a statement to the effect that exactly one of the expressions \(e_j\!\) is true, for \(j = 1 ~\mathit{to}~ k.\) Expressions of this form are called universal partition expressions, and the corresponding painted and rooted cactus (PARC) has the following shape:
o---------------------------------------o
| |
| e_1 e_2 ... e_k |
| o o o |
| | | | |
| o-----o--- ... ---o |
| \ / |
| \ / |
| \ / |
| \ / |
| \ / |
| \ / |
| \ / |
| \ / |
| @ |
| |
o---------------------------------------o
| ((e_1),(e_2),(...),(e_k)) |
o---------------------------------------o
|
The State Partition segment of the propositional program consists of three universal partition expressions, taken in conjunction expressing the condition that \(\operatorname{M}\) has to be in one and only one of its states at each point in time under consideration. In short, we have the constraint:
At each of the points in time \(p_i,\!\) for \(i\!\) in the set \(\{ 0, 1, 2 \},\!\)
\(\operatorname{M}\) can be in exactly one state \(q_j,\!\) for \(j\!\) in the set \(\{ 0, 1, \#, * \}.\!\)
|
Register Partition
\(\begin{array}{l}
\texttt{((~p0\_r0~),(~p0\_r1~),(~p0\_r2~))}
\\
\texttt{((~p1\_r0~),(~p1\_r1~),(~p1\_r2~))}
\\
\texttt{((~p2\_r0~),(~p2\_r1~),(~p2\_r2~))}
\end{array}\)
|
The Register Partition segment of the propositional program consists of three universal partition expressions, taken in conjunction saying that the read head \(\operatorname{H}\) must be reading one and only one of the registers or tape cells available to it at each of the points in time under consideration. In sum:
At each of the points in time \(p_i,\!\) for \(i = 0, 1, 2,\!\)
\(\operatorname{H}\) is reading exactly one cell \(r_j,\!\) for \(j = 0, 1, 2.\!\)
|
Symbol Partition
\(\begin{array}{l}
\texttt{((~p0\_r0\_s0~),(~p0\_r0\_s1~),(~p0\_r0\_s\#~))}
\\
\texttt{((~p0\_r1\_s0~),(~p0\_r1\_s1~),(~p0\_r1\_s\#~))}
\\
\texttt{((~p0\_r2\_s0~),(~p0\_r2\_s1~),(~p0\_r2\_s\#~))}
\\ \\
\texttt{((~p1\_r0\_s0~),(~p1\_r0\_s1~),(~p1\_r0\_s\#~))}
\\
\texttt{((~p1\_r1\_s0~),(~p1\_r1\_s1~),(~p1\_r1\_s\#~))}
\\
\texttt{((~p1\_r2\_s0~),(~p1\_r2\_s1~),(~p1\_r2\_s\#~))}
\\ \\
\texttt{((~p2\_r0\_s0~),(~p2\_r0\_s1~),(~p2\_r0\_s\#~))}
\\
\texttt{((~p2\_r1\_s0~),(~p2\_r1\_s1~),(~p2\_r1\_s\#~))}
\\
\texttt{((~p2\_r2\_s0~),(~p2\_r2\_s1~),(~p2\_r2\_s\#~))}
\end{array}\)
|
The Symbol Partition segment of the propositional program for \(\operatorname{Stunt}(2)\) consists of nine universal partition expressions, taken in conjunction stipulating that there has to be one and only one symbol in each of the registers at each point in time under consideration. In short, we have:
At each of the points in time \(p_i,\!\) for \(i\!\) in \(\{ 0, 1, 2 \},\!\)
in each of the tape registers \(r_j,\!\) for \(j\!\) in \(\{ 0, 1, 2 \},\!\)
there can be exactly one sign \(s_k,\!\) for \(k\!\) in \(\{ 0, 1, \# \}.\!\)
|
Interaction Conditions
\(\begin{array}{l}
\texttt{((~p0\_r0~) ~p0\_r0\_s0~ (~p1\_r0\_s0~))}
\\
\texttt{((~p0\_r0~) ~p0\_r0\_s1~ (~p1\_r0\_s1~))}
\\
\texttt{((~p0\_r0~) ~p0\_r0\_s\#~ (~p1\_r0\_s\#~))}
\\ \\
\texttt{((~p0\_r1~) ~p0\_r1\_s0~ (~p1\_r1\_s0~))}
\\
\texttt{((~p0\_r1~) ~p0\_r1\_s1~ (~p1\_r1\_s1~))}
\\
\texttt{((~p0\_r1~) ~p0\_r1\_s\#~ (~p1\_r1\_s\#~))}
\\ \\
\texttt{((~p0\_r2~) ~p0\_r2\_s0~ (~p1\_r2\_s0~))}
\\
\texttt{((~p0\_r2~) ~p0\_r2\_s1~ (~p1\_r2\_s1~))}
\\
\texttt{((~p0\_r2~) ~p0\_r2\_s\#~ (~p1\_r2\_s\#~))}
\\ \\
\texttt{((~p1\_r0~) ~p1\_r0\_s0~ (~p2\_r0\_s0~))}
\\
\texttt{((~p1\_r0~) ~p1\_r0\_s1~ (~p2\_r0\_s1~))}
\\
\texttt{((~p1\_r0~) ~p1\_r0\_s\#~ (~p2\_r0\_s\#~))}
\\ \\
\texttt{((~p1\_r1~) ~p1\_r1\_s0~ (~p2\_r1\_s0~))}
\\
\texttt{((~p1\_r1~) ~p1\_r1\_s1~ (~p2\_r1\_s1~))}
\\
\texttt{((~p1\_r1~) ~p1\_r1\_s\#~ (~p2\_r1\_s\#~))}
\\ \\
\texttt{((~p1\_r2~) ~p1\_r2\_s0~ (~p2\_r2\_s0~))}
\\
\texttt{((~p1\_r2~) ~p1\_r2\_s1~ (~p2\_r2\_s1~))}
\\
\texttt{((~p1\_r2~) ~p1\_r2\_s\#~ (~p2\_r2\_s\#~))}
\end{array}\)
|
In briefest terms, the Interaction Conditions simply express the circumstance that the mark on a tape cell cannot change between two points in time unless the tape head is over the cell in question at the initial one of those points in time. All that we have to do is to see how they manage to say this.
Consider a cactus expression of the following form:
\(\begin{array}{l}
\texttt{((}~ p_i\_r_j ~\texttt{)}~ p_i\_r_j\_s_k ~\texttt{(}~ p_{i+1}\_r_j\_s_k ~\texttt{))}
\end{array}\)
|
This expression has the corresponding cactus graph:
o---------------------------------------o
| |
| p<i>_r<j> p<i+1>_r<j>_s<k> |
| o o |
| \ / |
| p<i>_r<j>_s<k> o |
| | |
| @ |
| |
o---------------------------------------o
|
A propositional expression of this form can be read as follows:
\(\operatorname{If}\)
| At the time \(p_i,\!\) the tape cell \(r_j\!\) bears the mark \(s_k,\!\)
| \(\operatorname{But}\) it is not the case that:
| At the time \(p_i,\!\) the tape head is on the tape cell \(r_j,\!\)
| \(\operatorname{Then}\)
| At the time \(p_{i+1},\!\) the tape cell \(r_j\!\) bears the mark \(s_k.\!\)
|
The eighteen clauses of the Interaction Conditions simply impose one such constraint on symbol changes for each combination of the times \(p_0, p_1,\!\) registers \(r_0, r_1, r_2,\!\) and symbols \(s_0, s_1, s_\#.\!\)
Transition Relations
\(\begin{array}{l}
\texttt{(~p0\_q0~~p0\_r1~~p0\_r1\_s0~~(~p1\_q0~~p1\_r2~~p1\_r1\_s0~))}
\\
\texttt{(~p0\_q0~~p0\_r1~~p0\_r1\_s1~~(~p1\_q1~~p1\_r2~~p1\_r1\_s1~))}
\\
\texttt{(~p0\_q0~~p0\_r1~~p0\_r1\_s\#~~(~p1\_q\#~~p1\_r0~~p1\_r1\_s\#~))}
\\
\texttt{(~p0\_q0~~p0\_r2~~p0\_r2\_s\#~~(~p1\_q\#~~p1\_r1~~p1\_r2\_s\#~))}
\\ \\
\texttt{(~p0\_q1~~p0\_r1~~p0\_r1\_s0~~(~p1\_q1~~p1\_r2~~p1\_r1\_s0~))}
\\
\texttt{(~p0\_q1~~p0\_r1~~p0\_r1\_s1~~(~p1\_q0~~p1\_r2~~p1\_r1\_s1~))}
\\
\texttt{(~p0\_q1~~p0\_r1~~p0\_r1\_s\#~~(~p1\_q*~~p1\_r0~~p1\_r1\_s\#~))}
\\
\texttt{(~p0\_q1~~p0\_r2~~p0\_r2\_s\#~~(~p1\_q*~~p1\_r1~~p1\_r2\_s\#~))}
\\ \\
\texttt{(~p1\_q0~~p1\_r1~~p1\_r1\_s0~~(~p2\_q0~~p2\_r2~~p2\_r1\_s0~))}
\\
\texttt{(~p1\_q0~~p1\_r1~~p1\_r1\_s1~~(~p2\_q1~~p2\_r2~~p2\_r1\_s1~))}
\\
\texttt{(~p1\_q0~~p1\_r1~~p1\_r1\_s\#~~(~p2\_q\#~~p2\_r0~~p2\_r1\_s\#~))}
\\
\texttt{(~p1\_q0~~p1\_r2~~p1\_r2\_s\#~~(~p2\_q\#~~p2\_r1~~p2\_r2\_s\#~))}
\\ \\
\texttt{(~p1\_q1~~p1\_r1~~p1\_r1\_s0~~(~p2\_q1~~p2\_r2~~p2\_r1\_s0~))}
\\
\texttt{(~p1\_q1~~p1\_r1~~p1\_r1\_s1~~(~p2\_q0~~p2\_r2~~p2\_r1\_s1~))}
\\
\texttt{(~p1\_q1~~p1\_r1~~p1\_r1\_s\#~~(~p2\_q*~~p2\_r0~~p2\_r1\_s\#~))}
\\
\texttt{(~p1\_q1~~p1\_r2~~p1\_r2\_s\#~~(~p2\_q*~~p2\_r1~~p2\_r2\_s\#~))}
\end{array}\)
|
The Transition Relation segment of the propositional program for \(\operatorname{Stunt}(2)\) consists of sixteen implication statements with complex antecedents and consequents. Taken together, these give propositional expression to the TM Figure and Table that were given at the outset.
Just by way of a single example, consider the clause:
\(\texttt{(~p0\_q0~~p0\_r1~~p0\_r1\_s1~~(~p1\_q1~~p1\_r2~~p1\_r1\_s1~))}\)
|
This complex implication statement can be read to say:
\(\operatorname{If}\)
| At the time \(p_0,\!\) the machine \(\operatorname{M}\) is in the state \(q_0,\!\) and
| At the time \(p_0,\!\) the scanner \(\operatorname{H}\) is reading cell \(r_1,\!\) and
| At the time \(p_0,\!\) the tape cell \(r_1\!\) contains a \(\texttt{1},\)
| \(\operatorname{Then}\)
| At the time \(p_1,\!\) the machine \(\operatorname{M}\) is in the state \(q_1,\!\) and
| At the time \(p_1,\!\) the scanner \(\operatorname{H}\) is reading cell \(r_2,\!\) and
| At the time \(p_1,\!\) the tape cell \(r_1\!\) contains a \(\texttt{1}.\)
|
Computation
The propositional program for \(\operatorname{Stunt}(2)\) uses the following set
of \(9 + 12 + 36 = 57\!\) basic propositions or boolean variables:
\(\begin{matrix}
\texttt{p0\_r0}, & \texttt{p0\_r1}, & \texttt{p0\_r2},
\\[6pt]
\texttt{p1\_r0}, & \texttt{p1\_r1}, & \texttt{p1\_r2},
\\[6pt]
\texttt{p2\_r0}, & \texttt{p2\_r1}, & \texttt{p2\_r2}.
\end{matrix}\)
|
\(\begin{matrix}
\texttt{p0\_q\#}, & \texttt{p0\_q*}, & \texttt{p0\_q0}, & \texttt{p0\_q1},
\\[6pt]
\texttt{p1\_q\#}, & \texttt{p1\_q*}, & \texttt{p1\_q0}, & \texttt{p1\_q1},
\\[6pt]
\texttt{p2\_q\#}, & \texttt{p2\_q*}, & \texttt{p2\_q0}, & \texttt{p2\_q1}.
\end{matrix}\)
|
\(\begin{matrix}
\texttt{p0\_r0\_s\#}, & \texttt{p0\_r0\_s*}, & \texttt{p0\_r0\_s0}, & \texttt{p0\_r0\_s1},
\\[4pt]
\texttt{p0\_r1\_s\#}, & \texttt{p0\_r1\_s*}, & \texttt{p0\_r1\_s0}, & \texttt{p0\_r1\_s1},
\\[4pt]
\texttt{p0\_r2\_s\#}, & \texttt{p0\_r2\_s*}, & \texttt{p0\_r2\_s0}, & \texttt{p0\_r2\_s1},
\\[12pt]
\texttt{p1\_r0\_s\#}, & \texttt{p1\_r0\_s*}, & \texttt{p1\_r0\_s0}, & \texttt{p1\_r0\_s1},
\\[4pt]
\texttt{p1\_r1\_s\#}, & \texttt{p1\_r1\_s*}, & \texttt{p1\_r1\_s0}, & \texttt{p1\_r1\_s1},
\\[4pt]
\texttt{p1\_r2\_s\#}, & \texttt{p1\_r2\_s*}, & \texttt{p1\_r2\_s0}, & \texttt{p1\_r2\_s1},
\\[12pt]
\texttt{p2\_r0\_s\#}, & \texttt{p2\_r0\_s*}, & \texttt{p2\_r0\_s0}, & \texttt{p2\_r0\_s1},
\\[4pt]
\texttt{p2\_r1\_s\#}, & \texttt{p2\_r1\_s*}, & \texttt{p2\_r1\_s0}, & \texttt{p2\_r1\_s1},
\\[4pt]
\texttt{p2\_r2\_s\#}, & \texttt{p2\_r2\_s*}, & \texttt{p2\_r2\_s0}, & \texttt{p2\_r2\_s1}.
\end{matrix}\)
|
This means that the propositional program itself is nothing but a single proposition or boolean function of the form \(p : \mathbb{B}^{57} \to \mathbb{B}.\)
An assignment of boolean values to the above set of boolean variables is called an interpretation of the proposition \(p,\!\) and any interpretation of \(p\!\) that makes the proposition \(p : \mathbb{B}^{57} \to \mathbb{B}\) evaluate to \(1\!\) is referred to as a satisfying interpretation of the proposition \(p.\!\) Another way to specify interpretations, instead of giving them as bit vectors in \(\mathbb{B}^{57}\) and trying to remember some arbitrary ordering of variables, is to give them in the form of singular propositions, that is, a conjunction of the form \(e_1 \cdot \ldots \cdot e_{57}\) where each \(e_j\!\) is either \(v_j\!\) or \(\texttt{(} v_j \texttt{)},\) that is, either the assertion or the negation of the boolean variable \({v_j},\!\) as \(j\!\) runs from 1 to 57. Even more briefly, the same information can be communicated simply by giving the conjunction of the asserted variables, with the understanding that each of the others is negated.
A satisfying interpretation of the proposition \(p\!\) supplies us with all the information of a complete execution history for the corresponding program, and so all we have to do in order to get the output of the program \(p\!\) is to read off the proper part of the data from the expression of this interpretation.
Output
One component of the \(\begin{smallmatrix}\operatorname{Theme~One}\end{smallmatrix}\) program that I wrote some years ago finds all the satisfying interpretations of propositions expressed in cactus syntax. It's not a polynomial time algorithm, as you may guess, but it was just barely efficient enough to do this example in the 500 K of spare memory that I had on an old 286 PC in about 1989, so I will give you the actual outputs from those trials.
Output Conditions for Tape Input "0"
Let \(p_0\!\) be the proposition that we get by conjoining the proposition that describes the initial conditions for tape input "0" with the proposition that describes the truncated turing machine \(\operatorname{Stunt}(2).\) As it turns out, \(p_0\!\) has a single satisfying interpretation. This interpretation is expressible in the form of a singular proposition, which can in turn be indicated by its positive logical features, as shown in the following display:
o-------------------------------------------------o
| |
| p0_q0 |
| p0_r1 |
| p0_r0_s# |
| p0_r1_s0 |
| p0_r2_s# |
| p1_q0 |
| p1_r2 |
| p1_r2_s# |
| p1_r0_s# |
| p1_r1_s0 |
| p2_q# |
| p2_r1 |
| p2_r0_s# |
| p2_r1_s0 |
| p2_r2_s# |
| |
o-------------------------------------------------o
|
The Output Conditions for Tape Input "0" can be read as follows:
At the time \(p_0,\!\) machine \(\operatorname{M}\) is in the state \(q_0,\!\) and
At the time \(p_0,\!\) scanner \(\operatorname{H}\) is reading cell \(r_1,\!\) and
At the time \(p_0,\!\) cell \(r_0\!\) contains the symbol \(\texttt{\#},\) and
At the time \(p_0,\!\) cell \(r_1\!\) contains the symbol \(\texttt{0},\) and
At the time \(p_0,\!\) cell \(r_2\!\) contains the symbol \(\texttt{\#},\) and
|
At the time \(p_1,\!\) machine \(\operatorname{M}\) is in the state \(q_0,\!\) and
At the time \(p_1,\!\) scanner \(\operatorname{H}\) is reading cell \(r_2,\!\) and
At the time \(p_1,\!\) cell \(r_0\!\) contains the symbol \(\texttt{\#},\) and
At the time \(p_1,\!\) cell \(r_1\!\) contains the symbol \(\texttt{0},\) and
At the time \(p_1,\!\) cell \(r_2\!\) contains the symbol \(\texttt{\#},\) and
|
At the time \(p_2,\!\) machine \(\operatorname{M}\) is in the state \(q_\#,\!\) and
At the time \(p_2,\!\) scanner \(\operatorname{H}\) is reading cell \(r_1,\!\) and
At the time \(p_2,\!\) cell \(r_0\!\) contains the symbol \(\texttt{\#},\) and
At the time \(p_2,\!\) cell \(r_1\!\) contains the symbol \(\texttt{0},\) and
At the time \(p_2,\!\) cell \(r_2\!\) contains the symbol \(\texttt{\#}.\)
|
The output of \(\operatorname{Stunt}(2)\) being the symbol that rests under the tape head \(\operatorname{H}\) if and when the machine \(\operatorname{M}\) reaches one of its resting states, we get the result that \(\operatorname{Parity}(0) = 0.\)
Output Conditions for Tape Input "1"
Let \(p_1\!\) be the proposition that we get by conjoining the proposition that describes the initial conditions for tape input "1" with the proposition that describes the truncated turing machine \(\operatorname{Stunt}(2).\) As it turns out, \(p_1\!\) has a single satisfying interpretation. This interpretation is expressible in the form of a singular proposition, which can in turn be indicated by its positive logical features, as shown in the following display:
o-------------------------------------------------o
| |
| p0_q0 |
| p0_r1 |
| p0_r0_s# |
| p0_r1_s1 |
| p0_r2_s# |
| p1_q1 |
| p1_r2 |
| p1_r2_s# |
| p1_r0_s# |
| p1_r1_s1 |
| p2_q* |
| p2_r1 |
| p2_r0_s# |
| p2_r1_s1 |
| p2_r2_s# |
| |
o-------------------------------------------------o
|
The Output Conditions for Tape Input "1" can be read as follows:
At the time \(p_0,\!\) machine \(\operatorname{M}\) is in the state \(q_0,\!\) and
At the time \(p_0,\!\) scanner \(\operatorname{H}\) is reading cell \(r_1,\!\) and
At the time \(p_0,\!\) cell \(r_0\!\) contains the symbol \(\texttt{\#},\) and
At the time \(p_0,\!\) cell \(r_1\!\) contains the symbol \(\texttt{1},\) and
At the time \(p_0,\!\) cell \(r_2\!\) contains the symbol \(\texttt{\#},\) and
|
At the time \(p_1,\!\) machine \(\operatorname{M}\) is in the state \(q_1,\!\) and
At the time \(p_1,\!\) scanner \(\operatorname{H}\) is reading cell \(r_2,\!\) and
At the time \(p_1,\!\) cell \(r_0\!\) contains the symbol \(\texttt{\#},\) and
At the time \(p_1,\!\) cell \(r_1\!\) contains the symbol \(\texttt{1},\) and
At the time \(p_1,\!\) cell \(r_2\!\) contains the symbol \(\texttt{\#},\) and
|
At the time \(p_2,\!\) machine \(\operatorname{M}\) is in the state \(q_*,\!\) and
At the time \(p_2,\!\) scanner \(\operatorname{H}\) is reading cell \(r_1,\!\) and
At the time \(p_2,\!\) cell \(r_0\!\) contains the symbol \(\texttt{\#},\) and
At the time \(p_2,\!\) cell \(r_1\!\) contains the symbol \(\texttt{1},\) and
At the time \(p_2,\!\) cell \(r_2\!\) contains the symbol \(\texttt{\#}.\)
|
The output of \(\operatorname{Stunt}(2)\) being the symbol that rests under the tape head \(\operatorname{H}\) when and if the machine \(\operatorname{M}\) reaches one of its resting states, we get the result that \(\operatorname{Parity}(1) = 1.\)
Work Area
DATA 20. http://forum.wolframscience.com/showthread.php?postid=791#post791
Let's see how this information about the transformation F,
arrived at by eyeballing the raw data, comports with what
we derived through a more systematic symbolic computation.
The results of the various operator actions that we have just
computed are summarized in Tables 66-i and 66-ii from my paper,
and I have attached these as a text file below.
Table 66-i. Computation Summary for f<u, v> = ((u)(v))
o--------------------------------------------------------------------------------o
| |
| !e!f = uv. 1 + u(v). 1 + (u)v. 1 + (u)(v). 0 |
| |
| Ef = uv. (du dv) + u(v). (du (dv)) + (u)v.((du) dv) + (u)(v).((du)(dv)) |
| |
| Df = uv. du dv + u(v). du (dv) + (u)v. (du) dv + (u)(v).((du)(dv)) |
| |
| df = uv. 0 + u(v). du + (u)v. dv + (u)(v). (du, dv) |
| |
| rf = uv. du dv + u(v). du dv + (u)v. du dv + (u)(v). du dv |
| |
o--------------------------------------------------------------------------------o
Table 66-ii. Computation Summary for g<u, v> = ((u, v))
o--------------------------------------------------------------------------------o
| |
| !e!g = uv. 1 + u(v). 0 + (u)v. 0 + (u)(v). 1 |
| |
| Eg = uv.((du, dv)) + u(v). (du, dv) + (u)v. (du, dv) + (u)(v).((du, dv)) |
| |
| Dg = uv. (du, dv) + u(v). (du, dv) + (u)v. (du, dv) + (u)(v). (du, dv) |
| |
| dg = uv. (du, dv) + u(v). (du, dv) + (u)v. (du, dv) + (u)(v). (du, dv) |
| |
| rg = uv. 0 + u(v). 0 + (u)v. 0 + (u)(v). 0 |
| |
o--------------------------------------------------------------------------------o
o---------------------------------------o
| |
| o |
| / \ |
| / \ |
| / \ |
| o o |
| / \ / \ |
| / \ / \ |
| / \ / \ |
| o o o |
| / \ / \ / \ |
| / \ / \ / \ |
| / \ / \ / \ |
| o o o o |
| / \ / \ / \ / \ |
| / \ / \ / \ / \ |
| / \ / \ / \ / \ |
| o o o o o |
| |\ / \ / \ / \ /| |
| | \ / \ / \ / \ / | |
| | \ / \ / \ / \ / | |
| | o o o o | |
| | |\ / \ / \ /| | |
| | | \ / \ / \ / | | |
| | u | \ / \ / \ / | v | |
| o---+---o o o---+---o |
| | \ / \ / | |
| | \ / \ / | |
| | du \ / \ / dv | |
| o-------o o-------o |
| \ / |
| \ / |
| \ / |
| o |
| |
o---------------------------------------o
Discussion
PD = Philip Dutton
PD: I've been watching your posts.
PD: I am not an expert on logic infrastructures but I find the posts
interesting (despite not understanding much of it). I am like
the diagrams. I have recently been trying to understand CA's
using a particular perspective: sinks and sources. I think
that all CA's are simply combinations of sinks and sources.
How they interact (or intrude into each other's domains)
would most likely be a result of the rules (and initial
configuration of on or off cells).
PD: Anyway, to be short, I "see" diamond shapes quite often in
your diagrams. Triangles (either up or down) or diamonds
(combination of an up and down triangle) make me think
soley of sinks and sources. I think of the diamond to
be a source which, during the course of progression,
is expanding (because it is producing) and then starts
to act as a sink (because it consumes) -- and hence the
diamond. I can't stop thinking about sinks and sources in
CA's and so I thought I would ask you if there is some way
to tie the two worlds together (CA's of sinks and sources
together with your differential constructs).
PD: Any thoughts?
Yes, I'm hoping that there's a lot of stuff analogous to
R-world dynamics to be discovered in this B-world variety,
indeed, that's kind of why I set out on this investigation --
oh, gee, has it been that long? -- I guess about 1989 or so,
when I started to see this "differential logic" angle on what
I had previously studied in systems theory as the "qualitative
approach to differential equations". I think we used to use the
words "attractor" and "basin" more often than "sink", but a source
is still a source as time goes by, and I do remember using the word
"sink" a lot when I was a freshperson in physics, before I got logic.
I have spent the last 15 years doing a funny mix of practice in stats
and theory in math, but I did read early works by Von Neumann, Burks,
Ulam, and later stuff by Holland on CA's. Still, it may be a while
before I have re-heated my concrete intuitions about them in the
NKS way of thinking.
There are some fractal-looking pictures that emerge when
I turn to "higher order propositional expressions" (HOPE's).
I have discussed this topic elswhere on the web and can look
it up now if your are interested, but I am trying to make my
e-positions somewhat clearer for the NKS forum than I have
tried to do before.
But do not hestitate to dialogue all this stuff on the boards,
as that's what always seems to work the best. What I've found
works best for me, as I can hardly remember what I was writing
last month without Google, is to archive a copy at one of the
other Google-visible discussion lists that I'm on at present.
Document History
Ontology List : Feb–Mar 2004
- http://suo.ieee.org/ontology/msg05457.html
- http://suo.ieee.org/ontology/msg05458.html
- http://suo.ieee.org/ontology/msg05459.html
- http://suo.ieee.org/ontology/msg05460.html
- http://suo.ieee.org/ontology/msg05461.html
- http://suo.ieee.org/ontology/msg05462.html
- http://suo.ieee.org/ontology/msg05463.html
- http://suo.ieee.org/ontology/msg05464.html
- http://suo.ieee.org/ontology/msg05465.html
- http://suo.ieee.org/ontology/msg05466.html
- http://suo.ieee.org/ontology/msg05467.html
- http://suo.ieee.org/ontology/msg05469.html
- http://suo.ieee.org/ontology/msg05470.html
- http://suo.ieee.org/ontology/msg05471.html
- http://suo.ieee.org/ontology/msg05472.html
- http://suo.ieee.org/ontology/msg05473.html
- http://suo.ieee.org/ontology/msg05474.html
- http://suo.ieee.org/ontology/msg05475.html
- http://suo.ieee.org/ontology/msg05476.html
- http://suo.ieee.org/ontology/msg05479.html
NKS Forum : Feb–Jun 2004
- http://forum.wolframscience.com/showthread.php?postid=664#post664
- http://forum.wolframscience.com/showthread.php?postid=666#post666
- http://forum.wolframscience.com/showthread.php?postid=677#post677
- http://forum.wolframscience.com/showthread.php?postid=684#post684
- http://forum.wolframscience.com/showthread.php?postid=689#post689
- http://forum.wolframscience.com/showthread.php?postid=697#post697
- http://forum.wolframscience.com/showthread.php?postid=708#post708
- http://forum.wolframscience.com/showthread.php?postid=721#post721
- http://forum.wolframscience.com/showthread.php?postid=722#post722
- http://forum.wolframscience.com/showthread.php?postid=725#post725
- http://forum.wolframscience.com/showthread.php?postid=733#post733
- http://forum.wolframscience.com/showthread.php?postid=756#post756
- http://forum.wolframscience.com/showthread.php?postid=759#post759
- http://forum.wolframscience.com/showthread.php?postid=764#post764
- http://forum.wolframscience.com/showthread.php?postid=766#post766
- http://forum.wolframscience.com/showthread.php?postid=767#post767
- http://forum.wolframscience.com/showthread.php?postid=773#post773
- http://forum.wolframscience.com/showthread.php?postid=775#post775
- http://forum.wolframscience.com/showthread.php?postid=777#post777
- http://forum.wolframscience.com/showthread.php?postid=791#post791
- http://forum.wolframscience.com/showthread.php?postid=1458#post1458
- http://forum.wolframscience.com/showthread.php?postid=1461#post1461
- http://forum.wolframscience.com/showthread.php?postid=1463#post1463
- http://forum.wolframscience.com/showthread.php?postid=1464#post1464
- http://forum.wolframscience.com/showthread.php?postid=1467#post1467
- http://forum.wolframscience.com/showthread.php?postid=1469#post1469
- http://forum.wolframscience.com/showthread.php?postid=1470#post1470
- http://forum.wolframscience.com/showthread.php?postid=1471#post1471
- http://forum.wolframscience.com/showthread.php?postid=1473#post1473
- http://forum.wolframscience.com/showthread.php?postid=1475#post1475
- http://forum.wolframscience.com/showthread.php?postid=1479#post1479
- http://forum.wolframscience.com/showthread.php?postid=1489#post1489
- http://forum.wolframscience.com/showthread.php?postid=1490#post1490
Inquiry List : Feb–Jun 2004
- http://stderr.org/pipermail/inquiry/2004-February/001228.html
- http://stderr.org/pipermail/inquiry/2004-February/001230.html
- http://stderr.org/pipermail/inquiry/2004-February/001231.html
- http://stderr.org/pipermail/inquiry/2004-February/001232.html
- http://stderr.org/pipermail/inquiry/2004-February/001233.html
- http://stderr.org/pipermail/inquiry/2004-February/001234.html
- http://stderr.org/pipermail/inquiry/2004-March/001235.html
- http://stderr.org/pipermail/inquiry/2004-March/001236.html
- http://stderr.org/pipermail/inquiry/2004-March/001237.html
- http://stderr.org/pipermail/inquiry/2004-March/001238.html
- http://stderr.org/pipermail/inquiry/2004-March/001240.html
- http://stderr.org/pipermail/inquiry/2004-March/001242.html
- http://stderr.org/pipermail/inquiry/2004-March/001243.html
- http://stderr.org/pipermail/inquiry/2004-March/001244.html
- http://stderr.org/pipermail/inquiry/2004-March/001245.html
- http://stderr.org/pipermail/inquiry/2004-March/001246.html
- http://stderr.org/pipermail/inquiry/2004-March/001247.html
- http://stderr.org/pipermail/inquiry/2004-March/001248.html
- http://stderr.org/pipermail/inquiry/2004-March/001249.html
- http://stderr.org/pipermail/inquiry/2004-March/001255.html
- http://stderr.org/pipermail/inquiry/2004-June/001630.html
- http://stderr.org/pipermail/inquiry/2004-June/001631.html
- http://stderr.org/pipermail/inquiry/2004-June/001632.html
- http://stderr.org/pipermail/inquiry/2004-June/001633.html
- http://stderr.org/pipermail/inquiry/2004-June/001634.html
- http://stderr.org/pipermail/inquiry/2004-June/001635.html
- http://stderr.org/pipermail/inquiry/2004-June/001636.html
- http://stderr.org/pipermail/inquiry/2004-June/001637.html
- http://stderr.org/pipermail/inquiry/2004-June/001638.html
- http://stderr.org/pipermail/inquiry/2004-June/001639.html
- http://stderr.org/pipermail/inquiry/2004-June/001640.html
- http://stderr.org/pipermail/inquiry/2004-June/001641.html
- http://stderr.org/pipermail/inquiry/2004-June/001642.html
|