Difference between revisions of "Directory:Jon Awbrey/Papers/Differential Analytic Turing Automata"
Jon Awbrey (talk | contribs) (update) |
Jon Awbrey (talk | contribs) (update) |
||
Line 4: | Line 4: | ||
The task ahead is to chart a course from general ideas about ''transformational equivalence classes of graphs'' to a notion of ''differential analytic turing automata'' (DATA). It may be a while before we get within sight of that goal, but it will provide a better measure of motivation to name the thread after the envisioned end rather than the more homely starting place. | The task ahead is to chart a course from general ideas about ''transformational equivalence classes of graphs'' to a notion of ''differential analytic turing automata'' (DATA). It may be a while before we get within sight of that goal, but it will provide a better measure of motivation to name the thread after the envisioned end rather than the more homely starting place. | ||
− | The basic idea is as follows. One has a set <math>\mathcal{G}</math> of graphs and a set <math>\mathcal{T}</math> of transformation rules, and each rule <math>\ | + | The basic idea is as follows. One has a set <math>\mathcal{G}</math> of graphs and a set <math>\mathcal{T}</math> of transformation rules, and each rule <math>\mathrm{t} \in \mathcal{T}</math> has the effect of transforming graphs into graphs, <math>\mathrm{t} : \mathcal{G} \to \mathcal{G}.</math> In the cases that we shall be studying, this set of transformation rules partitions the set of graphs into ''transformational equivalence classes'' (TECs). |
There are many interesting excursions to be had here, but I will focus mainly on logical applications, and and so the TECs I talk about will almost always have the character of ''logical equivalence classes'' (LECs). | There are many interesting excursions to be had here, but I will focus mainly on logical applications, and and so the TECs I talk about will almost always have the character of ''logical equivalence classes'' (LECs). | ||
Line 581: | Line 581: | ||
|} | |} | ||
− | Given any transformation of this type, <math>G : U^\bullet \to X^\bullet,\!</math> the (first order) differential analysis of <math>G\!</math> is based on the definition of a couple of further transformations, derived by way of operators on <math>G,\!</math> that ply between the (first order) extended universes, <math>\mathrm{E}U^\bullet = [u, v, du, dv]\!</math> and <math>\ | + | Given any transformation of this type, <math>G : U^\bullet \to X^\bullet,\!</math> the (first order) differential analysis of <math>G\!</math> is based on the definition of a couple of further transformations, derived by way of operators on <math>G,\!</math> that ply between the (first order) extended universes, <math>\mathrm{E}U^\bullet = [u, v, du, dv]\!</math> and <math>\mathrm{E}X^\bullet = [x, y, dx, dy],\!</math> of <math>G\text{'s}\!</math> own source and target universes. |
First, the ''enlargement map'' (or the ''secant transformation'') <math>\mathrm{E}G = (\mathrm{E}G_1, \mathrm{E}G_2) : \mathrm{E}U^\bullet \to \mathrm{E}X^\bullet\!</math> is defined by the following pair of component equations: | First, the ''enlargement map'' (or the ''secant transformation'') <math>\mathrm{E}G = (\mathrm{E}G_1, \mathrm{E}G_2) : \mathrm{E}U^\bullet \to \mathrm{E}X^\bullet\!</math> is defined by the following pair of component equations: | ||
Line 671: | Line 671: | ||
| | | | ||
<math>\begin{array}{ll} | <math>\begin{array}{ll} | ||
− | 1.1. & f : \mathbb{B} \to \mathbb{B} ~\text{such that}~ f : | + | 1.1. & f : \mathbb{B} \to \mathbb{B} ~\text{such that}~ f : x \mapsto \texttt{(} x \texttt{)} |
\\ | \\ | ||
− | 1.2. & | + | 1.2. & x' ~=~ \texttt{(} x \texttt{)} |
\\ | \\ | ||
− | 1.3. & | + | 1.3. & x ~:=~ \texttt{(} x \texttt{)} |
\\ | \\ | ||
− | 1.4. & \ | + | 1.4. & \mathrm{d}x ~=~ 1 |
\end{array}</math> | \end{array}</math> | ||
|} | |} | ||
Line 686: | Line 686: | ||
| | | | ||
<math>\begin{array}{ll} | <math>\begin{array}{ll} | ||
− | 2.1. & F : \mathbb{B}^2 \to \mathbb{B}^2 ~\text{such that}~ F : ( | + | 2.1. & F : \mathbb{B}^2 \to \mathbb{B}^2 ~\text{such that}~ F : (u, v) \mapsto ( ~ \texttt{((} u \texttt{)(} v \texttt{))} ~,~ \texttt{((} u \texttt{,~} v \texttt{))} ~ ) |
\\ | \\ | ||
− | 2.2. & | + | 2.2. & u' ~=~ \texttt{((} u \texttt{)(} v \texttt{))} \quad ~,~ \quad v' ~=~ \texttt{((} u \texttt{,~} v \texttt{))} |
\\ | \\ | ||
− | 2.3. & | + | 2.3. & u ~:=~ \texttt{((} u \texttt{)(} v \texttt{))} \quad ~,~ \quad v ~:=~ \texttt{((} u \texttt{,~} v \texttt{))} |
\\ | \\ | ||
− | 2.4. & | + | 2.4. & ? |
\end{array}</math> | \end{array}</math> | ||
|} | |} | ||
− | Well, the last one is not such a fall off | + | Well, the last one is not such a fall off a log, but that is exactly the purpose for which we have been developing all of the foregoing machinations. |
Here is what I got when I just went ahead and calculated the finite differences willy-nilly: | Here is what I got when I just went ahead and calculated the finite differences willy-nilly: | ||
Line 702: | Line 702: | ||
{| align="center" cellpadding="8" style="text-align:center" | {| align="center" cellpadding="8" style="text-align:center" | ||
|- | |- | ||
− | | <math>\text{Orbit 1. Intitial Point :}~ (u, v) = (1, 1)</math> | + | | <math>\text{Orbit 1. Intitial Point :}~ (u, v) = (1, 1)\!</math> |
|- | |- | ||
| | | | ||
<math>\begin{array}{c|cc|cc|cc|cc|cc|c} | <math>\begin{array}{c|cc|cc|cc|cc|cc|c} | ||
− | t & | + | t & u & v & \mathrm{d}u & \mathrm{d}v & \mathrm{d}^2 u & \mathrm{d}^2 v & \mathrm{d}^3 u & \mathrm{d}^3 v & \mathrm{d}^4 u & \mathrm{d}^4 v & \ldots \\[8pt] |
− | + | 0 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & \ldots \\ | |
− | 0 & | + | 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & \ldots \\ |
− | 1 & | + | 2 & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & \ldots |
− | |||
\end{array}</math> | \end{array}</math> | ||
|- | |- | ||
− | | <math>\text{Orbit 2. Intitial Point :}~ (u, v) = (0, 0)</math> | + | | <math>\text{Orbit 2. Intitial Point :}~ (u, v) = (0, 0)\!</math> |
|- | |- | ||
| | | | ||
<math>\begin{array}{c|cc|cc|cc|cc|cc|c} | <math>\begin{array}{c|cc|cc|cc|cc|cc|c} | ||
− | t & | + | t & u & v & \mathrm{d}u & \mathrm{d}v & \mathrm{d}^2 u & \mathrm{d}^2 v & \mathrm{d}^3 u & \mathrm{d}^3 v & \mathrm{d}^4 u & \mathrm{d}^4 v & \ldots \\[8pt] |
− | + | 0 & 0 & 0 & 0 & 1 & 1 & 0 & 0 & 1 & 1 & 0 & \ldots \\ | |
− | 0 & | + | 1 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & \ldots \\ |
− | 1 & | + | 2 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & \ldots \\ |
− | 2 & | + | 3 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & \ldots \\ |
− | 3 & | + | 4 & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & {}^\shortparallel & \ldots |
− | 4 & | ||
\end{array}</math> | \end{array}</math> | ||
|} | |} | ||
Line 731: | Line 729: | ||
What we are looking for is — one rule to rule them all, a rule that applies to every state and works every time. | What we are looking for is — one rule to rule them all, a rule that applies to every state and works every time. | ||
− | What we see at first sight in the tables above are patterns of differential features that attach to the states in each orbit of the dynamics. Looked at locally to these orbits, the isolated fixed point at <math>(1, 1)\!</math> is no problem, as the rule <math>\ | + | What we see at first sight in the tables above are patterns of differential features that attach to the states in each orbit of the dynamics. Looked at locally to these orbits, the isolated fixed point at <math>(1, 1)\!</math> is no problem, as the rule <math>\mathrm{d}u = \mathrm{d}v = 0\!</math> describes it pithily enough. When it comes to the other orbit, the first thing that comes to mind is to write out the law <math>\mathrm{d}u = v ~,~ \mathrm{d}v = \texttt{(} u \texttt{)}.\!</math> |
==Symbolic Method== | ==Symbolic Method== | ||
Line 741: | Line 739: | ||
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
| | | | ||
− | <math>\begin{ | + | <math>\begin{matrix} |
− | F & = & (f, g) & = & ( ~\texttt{((u)(v))}~ , ~\texttt{((u,~v))}~ ). | + | F & = & (f, g) & = & ( ~ \texttt{((} u \texttt{)(} v \texttt{))} ~,~ \texttt{((} u \texttt{,~} v \texttt{))} ~ ). |
− | \end{ | + | \end{matrix}</math> |
|} | |} | ||
− | In their application to this logical transformation the operators <math>\ | + | In their application to this logical transformation the operators <math>\mathrm{E}\!</math> and <math>\mathrm{D}\!</math> respectively produce the ''enlarged map'' <math>\mathrm{E}F = (\mathrm{E}f, \mathrm{E}g)\!</math> and the ''difference map'' <math>\mathrm{D}F = (\mathrm{D}f, \mathrm{D}g),\!</math> whose components can be given as follows. |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
| | | | ||
<math>\begin{array}{lll} | <math>\begin{array}{lll} | ||
− | \ | + | \mathrm{E}f & = & \texttt{((} u + \mathrm{d}u \texttt{)(} v + \mathrm{d}v \texttt{))} |
− | \\ | + | \\[8pt] |
− | \ | + | \mathrm{E}g & = & \texttt{((} u + \mathrm{d}u \texttt{,~} v + \mathrm{d}v \texttt{))} |
− | \\ | + | \\[8pt] |
− | \ | + | \mathrm{D}f & = & \texttt{((} u \texttt{)(} v \texttt{))} ~+~ \texttt{((} u + \mathrm{d}u \texttt{)(} v + \mathrm{d}v \texttt{))} |
− | \\ | + | \\[8pt] |
− | \ | + | \mathrm{D}g & = & \texttt{((} u \texttt{,~} v \texttt{))} ~+~ \texttt{((} u + \mathrm{d}u \texttt{,~} v + \mathrm{d}v \texttt{))} |
− | \end{array} | + | \end{array}</math> |
|} | |} | ||
But these initial formulas are purely definitional, and help us little to understand either the purpose of the operators or the significance of the results. Working symbolically, let's apply a more systematic method to the separate components of the mapping <math>F.\!</math> | But these initial formulas are purely definitional, and help us little to understand either the purpose of the operators or the significance of the results. Working symbolically, let's apply a more systematic method to the separate components of the mapping <math>F.\!</math> | ||
− | A sketch of this work is presented in the following series of Figures, where each logical proposition is expanded over the basic cells <math>\texttt{ | + | A sketch of this work is presented in the following series of Figures, where each logical proposition is expanded over the basic cells <math>uv, u \texttt{(} v \texttt{)}, \texttt{(} u \texttt{)} v, \texttt{(} u \texttt{)(} v \texttt{)}\!</math> of the 2-dimensional universe of discourse <math>U^\bullet = [u, v].\!</math> |
===Computation Summary : <math>f(u, v) = \texttt{((u)(v))}</math>=== | ===Computation Summary : <math>f(u, v) = \texttt{((u)(v))}</math>=== | ||
Line 813: | Line 811: | ||
|} | |} | ||
− | Figure 1.2 expands <math>\ | + | Figure 1.2 expands <math>\mathrm{E}f = \texttt{((u + du)(v + dv))}</math> over <math>[u, v]\!</math> to give: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 863: | Line 861: | ||
|} | |} | ||
− | Figure 1.3 expands <math>\ | + | Figure 1.3 expands <math>\mathrm{D}f = f + \mathrm{E}f</math> over <math>[u, v]\!</math> to produce: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 963: | Line 961: | ||
|} | |} | ||
− | Figure 2.2 expands <math>\ | + | Figure 2.2 expands <math>\mathrm{E}g = \texttt{((u + du,~v + dv))}</math> over <math>[u, v]\!</math> to give: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 1,013: | Line 1,011: | ||
|} | |} | ||
− | Figure 2.3 expands <math>\ | + | Figure 2.3 expands <math>\mathrm{D}g = g + \mathrm{E}g</math> over <math>[u, v]\!</math> to yield the form: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 1,088: | Line 1,086: | ||
|} | |} | ||
− | To speed things along, I will skip a mass of motivating discussion and just exhibit the simplest form of a differential <math>\ | + | To speed things along, I will skip a mass of motivating discussion and just exhibit the simplest form of a differential <math>\mathrm{d}F\!</math> for the current example of a logical transformation <math>F,\!</math> after which the majority of the easiest questions will have been answered in visually intuitive terms. |
− | For <math>F = (f, g)\!</math> we have <math>\ | + | For <math>F = (f, g)\!</math> we have <math>\mathrm{d}F = (\mathrm{d}f, \mathrm{d}g),</math> and so we can proceed componentwise, patching the pieces back together at the end. |
We have prepared the ground already by computing these terms: | We have prepared the ground already by computing these terms: | ||
Line 1,097: | Line 1,095: | ||
| | | | ||
<math>\begin{array}{lll} | <math>\begin{array}{lll} | ||
− | \ | + | \mathrm{E}f & = & \texttt{(( u + du )( v + dv ))} |
\\ \\ | \\ \\ | ||
− | \ | + | \mathrm{E}g & = & \texttt{(( u + du ,~ v + dv ))} |
\\ \\ | \\ \\ | ||
− | \ | + | \mathrm{D}f & = & \texttt{((u)(v)) ~+~ (( u + du )( v + dv ))} |
\\ \\ | \\ \\ | ||
− | \ | + | \mathrm{D}g & = & \texttt{((u,~v)) ~+~ (( u + du ,~ v + dv ))} |
\end{array}\!</math> | \end{array}\!</math> | ||
|} | |} | ||
− | As a matter of fact, computing the symmetric differences <math>\ | + | As a matter of fact, computing the symmetric differences <math>\mathrm{D}f = f + \mathrm{E}f</math> and <math>\mathrm{D}g = g + \mathrm{E}g</math> has already taken care of the ''localizing'' part of the task by subtracting out the forms of <math>f\!</math> and <math>g\!</math> from the forms of <math>\mathrm{E}f</math> and <math>\mathrm{E}g,</math> respectively. Thus all we have left to do is to decide what linear propositions best approximate the difference maps <math>\mathrm{D}f</math> and <math>\mathrm{D}g,</math> respectively. |
This raises the question: What is a linear proposition? | This raises the question: What is a linear proposition? | ||
Line 1,115: | Line 1,113: | ||
In particular, the linear functions that we want will be linear functions in the differential variables <math>du\!</math> and <math>dv.\!</math> | In particular, the linear functions that we want will be linear functions in the differential variables <math>du\!</math> and <math>dv.\!</math> | ||
− | As it turns out, there are just four linear propositions in the associated ''differential universe'' <math>\ | + | As it turns out, there are just four linear propositions in the associated ''differential universe'' <math>\mathrm{d}U^\bullet = [du, dv],</math> and these are the propositions that are commonly denoted: <math>\texttt{0}, \texttt{du}, \texttt{dv}, \texttt{du + dv},</math> in other words, <math>\texttt{()}, \texttt{du}, \texttt{dv}, \texttt{(du, dv)}.</math> |
==Notions of Approximation== | ==Notions of Approximation== | ||
Line 1,142: | Line 1,140: | ||
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. | 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 <math>U^\bullet = [u, v]\!</math> and selecting at each cell the linear proposition in <math>\ | + | Figure 1.4 illustrates one way of ranging over the cells of the underlying universe <math>U^\bullet = [u, v]\!</math> and selecting at each cell the linear proposition in <math>\mathrm{d}U^\bullet = [du, dv]</math> that best approximates the patch of the difference map <math>\mathrm{D}f</math> that is located there, yielding the following formula for the differential <math>\mathrm{d}f.</math> |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
− | | <math>\ | + | | <math>\mathrm{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)}</math> |
|} | |} | ||
Line 1,192: | Line 1,190: | ||
|} | |} | ||
− | Figure 2.4 illustrates one way of ranging over the cells of the underlying universe <math>U^\bullet = [u, v]\!</math> and selecting at each cell the linear proposition in <math>\ | + | Figure 2.4 illustrates one way of ranging over the cells of the underlying universe <math>U^\bullet = [u, v]\!</math> and selecting at each cell the linear proposition in <math>\mathrm{d}U^\bullet = [du, dv]</math> that best approximates the patch of the difference map <math>\mathrm{D}g</math> that is located there, yielding the following formula for the differential <math>\mathrm{d}g.\!</math> |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
− | | <math>\ | + | | <math>\mathrm{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)}</math> |
|} | |} | ||
Line 1,242: | Line 1,240: | ||
|} | |} | ||
− | Well, <math>g,\!</math> that was easy, seeing as how <math>\ | + | Well, <math>g,\!</math> that was easy, seeing as how <math>\mathrm{D}g</math> is already linear at each locus, <math>\mathrm{d}g = \mathrm{D}g.</math> |
==Analytic Series== | ==Analytic Series== | ||
− | We have been conducting the differential analysis of the logical transformation <math>F : [u, v] \mapsto [u, v]</math> defined as <math>F : (u, v) \mapsto ( ~\texttt{((u)(v))}~, ~\texttt{((u, v))}~ ),</math> and this means starting with the extended transformation <math>\ | + | We have been conducting the differential analysis of the logical transformation <math>F : [u, v] \mapsto [u, v]</math> defined as <math>F : (u, v) \mapsto ( ~\texttt{((u)(v))}~, ~\texttt{((u, v))}~ ),</math> and this means starting with the extended transformation <math>\mathrm{E}F : [u, v, du, dv] \to [u, v, du, dv]</math> and breaking it into an analytic series, <math>\mathrm{E}F = F + \mathrm{d}F + \mathrm{d}^2 F + \ldots,</math> and |
so on until there is nothing left to analyze any further. | so on until there is nothing left to analyze any further. | ||
Line 1,254: | Line 1,252: | ||
| | | | ||
<math>\begin{array}{lccccc} | <math>\begin{array}{lccccc} | ||
− | 1. & \ | + | 1. & \mathrm{E}F & = & \mathrm{d}^0 F & + & \mathrm{r}^0 F |
\\ | \\ | ||
− | 2. & \ | + | 2. & \mathrm{r}^0 F & = & \mathrm{d}^1 F & + & \mathrm{r}^1 F |
\\ | \\ | ||
− | 3. & \ | + | 3. & \mathrm{r}^1 F & = & \mathrm{d}^2 F & + & \mathrm{r}^2 F |
\\ | \\ | ||
4. & \ldots | 4. & \ldots | ||
Line 1,264: | Line 1,262: | ||
|} | |} | ||
− | In our analysis of the transformation <math>F,\!</math> we carried out Step 1 in the more familiar form <math>\ | + | In our analysis of the transformation <math>F,\!</math> we carried out Step 1 in the more familiar form <math>\mathrm{E}F = F + \mathrm{D}F,</math> and we have just reached Step 2 in the form <math>\mathrm{D}F = \mathrm{d}F + \mathrm{r}F,</math> where <math>\mathrm{r}F</math> 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: | '''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: | ||
Line 1,290: | Line 1,288: | ||
|} | |} | ||
− | Figure 1.2 shows the expansion of <math>\ | + | Figure 1.2 shows the expansion of <math>\mathrm{E}f = \texttt{((u + du)(v + dv))}</math> over <math>[u, v]\!</math> to produce the expression: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 1,296: | Line 1,294: | ||
|} | |} | ||
− | <math>\ | + | <math>\mathrm{E}f</math> tells you what you would have to do, from where you are in the universe <math>[u, v],\!</math> if you want to end up in a place where <math>f\!</math> is true. In this case, where the prevailing proposition <math>f\!</math> is <math>\texttt{((u)(v))},</math> the indication <math>\texttt{uv} \cdot \texttt{(du~dv)}</math> of <math>\mathrm{E}f</math> tells you this: If <math>u\!</math> and <math>v\!</math> are both true where you are, then just don't change both <math>u\!</math> and <math>v\!</math> at once, and you will end up in a place where <math>\texttt{((u)(v))}</math> is true. |
− | Figure 1.3 shows the expansion of <math>\ | + | Figure 1.3 shows the expansion of <math>\mathrm{D}f</math> over <math>[u, v]\!</math> to produce the expression: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 1,304: | Line 1,302: | ||
|} | |} | ||
− | <math>\ | + | <math>\mathrm{D}f</math> tells you what you would have to do, from where you are in the universe <math>[u, v],\!</math> if you want to bring about a change in the value of <math>f,\!</math> that is, if you want to get to a place where the value of <math>f\!</math> is different from what it is where you are. In the present case, where the reigning proposition <math>f\!</math> is <math>\texttt{((u)(v))},</math> the term <math>\texttt{uv} \cdot \texttt{du~dv}</math> of <math>\mathrm{D}f</math> tells you this: If <math>u\!</math> and <math>v\!</math> are both true where you are, then you would have to change both <math>u\!</math> and <math>v\!</math> in order to reach a place where the value of <math>f\!</math> is different from what it is where you are. |
− | Figure 1.4 approximates <math>\ | + | Figure 1.4 approximates <math>\mathrm{D}f</math> by the linear form <math>\mathrm{d}f</math> that expands over <math>[u, v]\!</math> as follows: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
| | | | ||
<math>\begin{matrix} | <math>\begin{matrix} | ||
− | \ | + | \mathrm{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{uv} \cdot \texttt{0} & + & \texttt{u(v)} \cdot \texttt{du} & + & \texttt{(u)v} \cdot \texttt{dv} & + & \texttt{(u)(v)} \cdot \texttt{(du, dv)} | ||
\\ \\ | \\ \\ | ||
Line 1,318: | Line 1,316: | ||
|} | |} | ||
− | Figure 1.5 shows what remains of the difference map <math>\ | + | Figure 1.5 shows what remains of the difference map <math>\mathrm{D}f</math> when the first order linear contribution <math>\mathrm{d}f</math> is removed, namely: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
| | | | ||
<math>\begin{matrix} | <math>\begin{matrix} | ||
− | \ | + | \mathrm{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{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} | ||
\\ \\ | \\ \\ | ||
Line 1,566: | Line 1,564: | ||
|} | |} | ||
− | Figure 2.2 shows the expansion of <math>\ | + | Figure 2.2 shows the expansion of <math>\mathrm{E}g = \texttt{((u + du, v + dv))}</math> over <math>[u, v]\!</math> to produce the expression: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 1,572: | Line 1,570: | ||
|} | |} | ||
− | <math>\ | + | <math>\mathrm{E}g</math> tells you what you would have to do, from where you are in the universe <math>[u, v],\!</math> if you want to end up in a place where <math>g\!</math> is true. In this case, where the prevailing proposition <math>g\!</math> is <math>\texttt{((u, v))},</math> the component <math>\texttt{uv} \cdot \texttt{((du, dv))}</math> of <math>\mathrm{E}g</math> tells you this: If <math>u\!</math> and <math>v\!</math> are both true where you are, then change either both or neither of <math>u\!</math> and <math>v\!</math> at the same time, and you will attain a place where <math>\texttt{((du, dv))}</math> is true. |
− | Figure 2.3 shows the expansion of <math>\ | + | Figure 2.3 shows the expansion of <math>\mathrm{D}g</math> over <math>[u, v]\!</math> to produce the expression: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 1,580: | Line 1,578: | ||
|} | |} | ||
− | <math>\ | + | <math>\mathrm{D}g</math> tells you what you would have to do, from where you are in the universe <math>[u, v],\!</math> if you want to bring about a change in the value of <math>g,\!</math> that is, if you want to get to a place where the value of <math>g\!</math> is different from what it is where you are. In the present case, where the ruling proposition <math>g\!</math> is <math>\texttt{((u, v))},</math> the term <math>\texttt{uv} \cdot \texttt{(du, dv)}</math> of <math>\mathrm{D}g</math> tells you this: If <math>u\!</math> and <math>v\!</math> are both true where you are, then you would have to change one or the other but not both <math>u\!</math> and <math>v\!</math> in order to reach a place where the value of <math>g\!</math> is different from what it is where you are. |
− | Figure 2.4 approximates <math>\ | + | Figure 2.4 approximates <math>\mathrm{D}g</math> by the linear form <math>\mathrm{d}g</math> that expands over <math>[u, v]\!</math> as follows: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
| | | | ||
<math>\begin{array}{lll} | <math>\begin{array}{lll} | ||
− | \ | + | \mathrm{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{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)} | ||
\\ \\ | \\ \\ | ||
Line 1,594: | Line 1,592: | ||
|} | |} | ||
− | Figure 2.5 shows what remains of the difference map <math>\ | + | Figure 2.5 shows what remains of the difference map <math>\mathrm{D}g</math> when the first order linear contribution <math>\mathrm{d}g</math> is removed, namely: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
| | | | ||
<math>\begin{matrix} | <math>\begin{matrix} | ||
− | \ | + | \mathrm{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{uv} \cdot \texttt{0} & + & \texttt{u(v)} \cdot \texttt{0} & + & \texttt{(u)v} \cdot \texttt{0} & + & \texttt{(u)(v)} \cdot \texttt{0} | ||
\\ \\ | \\ \\ | ||
Line 1,881: | Line 1,879: | ||
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. | 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. | ||
− | :; <math>\ | + | :; <math>\mathrm{Stilt}(k) =\!</math> |
:: '''Space and time limited turing machine''', | :: '''Space and time limited turing machine''', | ||
:: with <math>k\!</math> units of space and <math>k\!</math> units of time. | :: with <math>k\!</math> units of space and <math>k\!</math> units of time. | ||
− | :; <math>\ | + | :; <math>\mathrm{Stunt}(k) =\!</math> |
:: '''Space and time limited turing machine''', | :: '''Space and time limited turing machine''', | ||
:: for computing the parity of a bit string, with number of tape cells of input equal to <math>k.\!</math> | :: for computing the parity of a bit string, with number of tape cells of input equal to <math>k.\!</math> | ||
Line 1,938: | Line 1,936: | ||
<br> | <br> | ||
− | The TM has a ''finite automaton'' (FA) as one component. Let us refer to this particular FA by the name of <math>\ | + | The TM has a ''finite automaton'' (FA) as one component. Let us refer to this particular FA by the name of <math>\mathrm{M}.</math> |
− | The ''tape head'' (that is, the ''read unit'') will be called <math>\ | + | The ''tape head'' (that is, the ''read unit'') will be called <math>\mathrm{H}.</math> The ''registers'' are also called ''tape cells'' or ''tape squares''. |
===Finite Approximations=== | ===Finite Approximations=== | ||
− | To see how each finite approximation to a given turing machine can be given a purely propositional description, one fixes the parameter <math>k\!</math> and limits the rest of the discussion to describing <math>\ | + | To see how each finite approximation to a given turing machine can be given a purely propositional description, one fixes the parameter <math>k\!</math> and limits the rest of the discussion to describing <math>\mathrm{Stilt}(k),\!</math> 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 <math>k = 2,\!</math> and discuss <math>\ | + | In this example, for the sake of a minimal illustration, we choose <math>k = 2,\!</math> and discuss <math>\mathrm{Stunt}(2).</math> Since the zeroth tape cell and the last tape cell are both occupied by the character <math>^{\backprime\backprime}\texttt{\#}^{\prime\prime}</math> that is used for both the ''beginning of file'' <math>(\mathrm{bof})</math> and the ''end of file'' <math>(\mathrm{eof})</math> markers, this allows for only one digit of significant computation. |
− | To translate <math>\ | + | To translate <math>\mathrm{Stunt}(2)</math> 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'' <math>\ | + | The basic propositions for describing the ''present state function'' <math>\mathrm{QF} : P \to Q</math> are these: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 1,968: | Line 1,966: | ||
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
− | | At the point-in-time <math>p_i,\!</math> the finite state machine <math>\ | + | | At the point-in-time <math>p_i,\!</math> the finite state machine <math>\mathrm{M}</math> is in the state <math>q_j.\!</math> |
|} | |} | ||
− | The basic propositions for describing the ''present register function'' <math>\ | + | The basic propositions for describing the ''present register function'' <math>\mathrm{RF} : P \to R</math> are these: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 1,989: | Line 1,987: | ||
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
− | | At the point-in-time <math>p_i,\!</math> the tape head <math>\ | + | | At the point-in-time <math>p_i,\!</math> the tape head <math>\mathrm{H}</math> is on the tape cell <math>r_j.\!</math> |
|} | |} | ||
− | The basic propositions for describing the ''present symbol function'' <math>\ | + | The basic propositions for describing the ''present symbol function'' <math>\mathrm{SF} : P \to (R \to S)</math> are these: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 2,039: | Line 2,037: | ||
===Initial Conditions=== | ===Initial Conditions=== | ||
− | Given but a single free square on the tape, there are just two different sets of initial conditions for <math>\ | + | Given but a single free square on the tape, there are just two different sets of initial conditions for <math>\mathrm{Stunt}(2),</math> the finite approximation to the parity turing machine that we are presently considering. |
====Initial Conditions for Tape Input "0"==== | ====Initial Conditions for Tape Input "0"==== | ||
− | The following conjunction of 5 basic propositions describes the initial conditions when <math>\ | + | The following conjunction of 5 basic propositions describes the initial conditions when <math>\mathrm{Stunt}(2)</math> is started with an input of "0" in its free square: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 2,064: | Line 2,062: | ||
{| align="center" cellpadding=8" width="90%" | {| align="center" cellpadding=8" width="90%" | ||
| | | | ||
− | <p>At time <math>p_0,\!</math> machine <math>\ | + | <p>At time <math>p_0,\!</math> machine <math>\mathrm{M}</math> is in the state <math>q_0,\!</math></p> |
− | <p>At time <math>p_0,\!</math> scanner <math>\ | + | <p>At time <math>p_0,\!</math> scanner <math>\mathrm{H}</math> is reading cell <math>r_1,\!</math></p> |
<p>At time <math>p_0,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math></p> | <p>At time <math>p_0,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math></p> | ||
<p>At time <math>p_0,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{0},</math></p> | <p>At time <math>p_0,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{0},</math></p> | ||
Line 2,073: | Line 2,071: | ||
====Initial Conditions for Tape Input "1"==== | ====Initial Conditions for Tape Input "1"==== | ||
− | The following conjunction of 5 basic propositions describes the initial conditions when <math>\ | + | The following conjunction of 5 basic propositions describes the initial conditions when <math>\mathrm{Stunt}(2)</math> is started with an input of "1" in its free square: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 2,094: | Line 2,092: | ||
{| align="center" cellpadding=8" width="90%" | {| align="center" cellpadding=8" width="90%" | ||
| | | | ||
− | <p>At time <math>p_0,\!</math> machine <math>\ | + | <p>At time <math>p_0,\!</math> machine <math>\mathrm{M}</math> is in the state <math>q_0,\!</math></p> |
− | <p>At time <math>p_0,\!</math> scanner <math>\ | + | <p>At time <math>p_0,\!</math> scanner <math>\mathrm{H}</math> is reading cell <math>r_1,\!</math></p> |
<p>At time <math>p_0,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math></p> | <p>At time <math>p_0,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math></p> | ||
<p>At time <math>p_0,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{1},</math></p> | <p>At time <math>p_0,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{1},</math></p> | ||
Line 2,103: | Line 2,101: | ||
===Propositional Program=== | ===Propositional Program=== | ||
− | A complete description of <math>\ | + | A complete description of <math>\mathrm{Stunt}(2)</math> 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==== | ====Mediate Conditions==== | ||
Line 2,264: | Line 2,262: | ||
===Interpretation of the Propositional Program=== | ===Interpretation of the Propositional Program=== | ||
− | Let us now run through the propositional specification of <math>\ | + | Let us now run through the propositional specification of <math>\mathrm{Stunt}(2),</math> our truncated TM, and paraphrase what it says in ordinary language. |
====Mediate Conditions==== | ====Mediate Conditions==== | ||
Line 2,286: | Line 2,284: | ||
| | | | ||
<math>\begin{array}{l} | <math>\begin{array}{l} | ||
− | \ | + | \mathrm{not}~ p ~\mathrm{without}~ q |
\\[4pt] | \\[4pt] | ||
− | p ~\ | + | p ~\mathrm{implies}~ q |
\\[4pt] | \\[4pt] | ||
− | \ | + | \mathrm{if}~ p ~\mathrm{then}~ q |
\\[4pt] | \\[4pt] | ||
p \Rightarrow q | p \Rightarrow q | ||
Line 2,322: | Line 2,320: | ||
{| align="center" cellpadding=8" width="90%" | {| align="center" cellpadding=8" width="90%" | ||
| | | | ||
− | <p>If <math>\ | + | <p>If <math>\mathrm{M}</math> at <math>p_0\!</math> is in state <math>q_\#,\!</math> then <math>\mathrm{M}</math> at <math>p_1\!</math> is in state <math>q_\#,\!</math> and</p> |
− | <p>If <math>\ | + | <p>If <math>\mathrm{M}</math> at <math>p_0\!</math> is in state <math>q_*,\!</math> then <math>\mathrm{M}</math> at <math>p_1\!</math> is in state <math>q_*,\!</math> and</p> |
− | <p>If <math>\ | + | <p>If <math>\mathrm{M}</math> at <math>p_1\!</math> is in state <math>q_\#,\!</math> then <math>\mathrm{M}</math> at <math>p_2\!</math> is in state <math>q_\#,\!</math> and</p> |
− | <p>If <math>\ | + | <p>If <math>\mathrm{M}</math> at <math>p_1\!</math> is in state <math>q_*,\!</math> then <math>\mathrm{M}</math> at <math>p_2\!</math> is in state <math>q_*.\!</math></p> |
|} | |} | ||
Line 2,340: | Line 2,338: | ||
|} | |} | ||
− | In cactus syntax, an expression of the form <math>\texttt{((p)(q))}</math> expresses the disjunction <math>p ~\ | + | In cactus syntax, an expression of the form <math>\texttt{((p)(q))}</math> expresses the disjunction <math>p ~\mathrm{or}~ q.</math> The corresponding cactus graph, here just a tree, has the following shape: |
<br> | <br> | ||
Line 2,368: | Line 2,366: | ||
{| align="center" cellpadding=8" width="90%" | {| align="center" cellpadding=8" width="90%" | ||
| | | | ||
− | <p>At time <math>p_2\!</math> machine <math>\ | + | <p>At time <math>p_2\!</math> machine <math>\mathrm{M}</math> is in state <math>q_\#,\!</math> or</p> |
− | <p>At time <math>p_2\!</math> machine <math>\ | + | <p>At time <math>p_2\!</math> machine <math>\mathrm{M}</math> is in state <math>q_*.\!</math></p> |
|} | |} | ||
Line 2,416: | Line 2,414: | ||
<br> | <br> | ||
− | The State Partition segment of the propositional program consists of three universal partition expressions, taken in conjunction expressing the condition that <math>\ | + | The State Partition segment of the propositional program consists of three universal partition expressions, taken in conjunction expressing the condition that <math>\mathrm{M}</math> has to be in one and only one of its states at each point in time under consideration. In short, we have the constraint: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 2,422: | Line 2,420: | ||
<p>At each of the points in time <math>p_i,\!</math> for <math>i\!</math> in the set <math>\{ 0, 1, 2 \},\!</math></p> | <p>At each of the points in time <math>p_i,\!</math> for <math>i\!</math> in the set <math>\{ 0, 1, 2 \},\!</math></p> | ||
− | <p><math>\ | + | <p><math>\mathrm{M}</math> can be in exactly one state <math>q_j,\!</math> for <math>j\!</math> in the set <math>\{ 0, 1, \#, * \}.\!</math></p> |
|} | |} | ||
Line 2,438: | Line 2,436: | ||
|} | |} | ||
− | The Register Partition segment of the propositional program consists of three universal partition expressions, taken in conjunction saying that the read head <math>\ | + | The Register Partition segment of the propositional program consists of three universal partition expressions, taken in conjunction saying that the read head <math>\mathrm{H}</math> 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: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 2,444: | Line 2,442: | ||
<p>At each of the points in time <math>p_i,\!</math> for <math>i = 0, 1, 2,\!</math></p> | <p>At each of the points in time <math>p_i,\!</math> for <math>i = 0, 1, 2,\!</math></p> | ||
− | <p><math>\ | + | <p><math>\mathrm{H}</math> is reading exactly one cell <math>r_j,\!</math> for <math>j = 0, 1, 2.\!</math> |
|} | |} | ||
Line 2,472: | Line 2,470: | ||
|} | |} | ||
− | The Symbol Partition segment of the propositional program for <math>\ | + | The Symbol Partition segment of the propositional program for <math>\mathrm{Stunt}(2)</math> 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: |
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
Line 2,558: | Line 2,556: | ||
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
− | |<math>\ | + | |<math>\mathrm{If}</math> |
|- | |- | ||
| At the time <math>p_i,\!</math> the tape cell <math>r_j\!</math> bears the mark <math>s_k,\!</math> | | At the time <math>p_i,\!</math> the tape cell <math>r_j\!</math> bears the mark <math>s_k,\!</math> | ||
|- | |- | ||
− | | <math>\ | + | | <math>\mathrm{But}</math> it is not the case that: |
|- | |- | ||
| At the time <math>p_i,\!</math> the tape head is on the tape cell <math>r_j,\!</math> | | At the time <math>p_i,\!</math> the tape head is on the tape cell <math>r_j,\!</math> | ||
|- | |- | ||
− | | <math>\ | + | | <math>\mathrm{Then}</math> |
|- | |- | ||
| At the time <math>p_{i+1},\!</math> the tape cell <math>r_j\!</math> bears the mark <math>s_k.\!</math> | | At the time <math>p_{i+1},\!</math> the tape cell <math>r_j\!</math> bears the mark <math>s_k.\!</math> | ||
Line 2,612: | Line 2,610: | ||
|} | |} | ||
− | The Transition Relation segment of the propositional program for <math>\ | + | The Transition Relation segment of the propositional program for <math>\mathrm{Stunt}(2)</math> 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: | Just by way of a single example, consider the clause: | ||
Line 2,623: | Line 2,621: | ||
{| align="center" cellpadding="8" width="90%" | {| align="center" cellpadding="8" width="90%" | ||
− | |<math>\ | + | |<math>\mathrm{If}</math> |
|- | |- | ||
− | | At the time <math>p_0,\!</math> the machine <math>\ | + | | At the time <math>p_0,\!</math> the machine <math>\mathrm{M}</math> is in the state <math>q_0,\!</math> and |
|- | |- | ||
− | | At the time <math>p_0,\!</math> the scanner <math>\ | + | | At the time <math>p_0,\!</math> the scanner <math>\mathrm{H}</math> is reading cell <math>r_1,\!</math> and |
|- | |- | ||
| At the time <math>p_0,\!</math> the tape cell <math>r_1\!</math> contains a <math>\texttt{1},</math> | | At the time <math>p_0,\!</math> the tape cell <math>r_1\!</math> contains a <math>\texttt{1},</math> | ||
|- | |- | ||
− | | <math>\ | + | | <math>\mathrm{Then}</math> |
|- | |- | ||
− | | At the time <math>p_1,\!</math> the machine <math>\ | + | | At the time <math>p_1,\!</math> the machine <math>\mathrm{M}</math> is in the state <math>q_1,\!</math> and |
|- | |- | ||
− | | At the time <math>p_1,\!</math> the scanner <math>\ | + | | At the time <math>p_1,\!</math> the scanner <math>\mathrm{H}</math> is reading cell <math>r_2,\!</math> and |
|- | |- | ||
| At the time <math>p_1,\!</math> the tape cell <math>r_1\!</math> contains a <math>\texttt{1}.</math> | | At the time <math>p_1,\!</math> the tape cell <math>r_1\!</math> contains a <math>\texttt{1}.</math> | ||
Line 2,642: | Line 2,640: | ||
===Computation=== | ===Computation=== | ||
− | The propositional program for <math>\ | + | The propositional program for <math>\mathrm{Stunt}(2)</math> uses the following set |
of <math>9 + 12 + 36 = 57\!</math> basic propositions or boolean variables: | of <math>9 + 12 + 36 = 57\!</math> basic propositions or boolean variables: | ||
Line 2,698: | Line 2,696: | ||
===Output=== | ===Output=== | ||
− | One component of the <math>\begin{smallmatrix}\ | + | One component of the <math>\begin{smallmatrix}\mathrm{Theme~One}\end{smallmatrix}</math> 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"==== | ====Output Conditions for Tape Input "0"==== | ||
− | Let <math>p_0\!</math> 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 <math>\ | + | Let <math>p_0\!</math> 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 <math>\mathrm{Stunt}(2).</math> As it turns out, <math>p_0\!</math> 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: |
<br> | <br> | ||
Line 2,737: | Line 2,735: | ||
{| align="center" cellpadding=8" width="90%" | {| align="center" cellpadding=8" width="90%" | ||
| | | | ||
− | <p>At the time <math>p_0,\!</math> machine <math>\ | + | <p>At the time <math>p_0,\!</math> machine <math>\mathrm{M}</math> is in the state <math>q_0,\!</math> and</p> |
− | <p>At the time <math>p_0,\!</math> scanner <math>\ | + | <p>At the time <math>p_0,\!</math> scanner <math>\mathrm{H}</math> is reading cell <math>r_1,\!</math> and</p> |
<p>At the time <math>p_0,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | <p>At the time <math>p_0,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | ||
<p>At the time <math>p_0,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{0},</math> and</p> | <p>At the time <math>p_0,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{0},</math> and</p> | ||
Line 2,744: | Line 2,742: | ||
|- | |- | ||
| | | | ||
− | <p>At the time <math>p_1,\!</math> machine <math>\ | + | <p>At the time <math>p_1,\!</math> machine <math>\mathrm{M}</math> is in the state <math>q_0,\!</math> and</p> |
− | <p>At the time <math>p_1,\!</math> scanner <math>\ | + | <p>At the time <math>p_1,\!</math> scanner <math>\mathrm{H}</math> is reading cell <math>r_2,\!</math> and</p> |
<p>At the time <math>p_1,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | <p>At the time <math>p_1,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | ||
<p>At the time <math>p_1,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{0},</math> and</p> | <p>At the time <math>p_1,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{0},</math> and</p> | ||
Line 2,751: | Line 2,749: | ||
|- | |- | ||
| | | | ||
− | <p>At the time <math>p_2,\!</math> machine <math>\ | + | <p>At the time <math>p_2,\!</math> machine <math>\mathrm{M}</math> is in the state <math>q_\#,\!</math> and</p> |
− | <p>At the time <math>p_2,\!</math> scanner <math>\ | + | <p>At the time <math>p_2,\!</math> scanner <math>\mathrm{H}</math> is reading cell <math>r_1,\!</math> and</p> |
<p>At the time <math>p_2,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | <p>At the time <math>p_2,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | ||
<p>At the time <math>p_2,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{0},</math> and</p> | <p>At the time <math>p_2,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{0},</math> and</p> | ||
Line 2,758: | Line 2,756: | ||
|} | |} | ||
− | The output of <math>\ | + | The output of <math>\mathrm{Stunt}(2)</math> being the symbol that rests under the tape head <math>\mathrm{H}</math> if and when the machine <math>\mathrm{M}</math> reaches one of its resting states, we get the result that <math>\mathrm{Parity}(0) = 0.</math> |
====Output Conditions for Tape Input "1"==== | ====Output Conditions for Tape Input "1"==== | ||
− | Let <math>p_1\!</math> 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 <math>\ | + | Let <math>p_1\!</math> 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 <math>\mathrm{Stunt}(2).</math> As it turns out, <math>p_1\!</math> 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: |
<br> | <br> | ||
Line 2,797: | Line 2,795: | ||
{| align="center" cellpadding=8" width="90%" | {| align="center" cellpadding=8" width="90%" | ||
| | | | ||
− | <p>At the time <math>p_0,\!</math> machine <math>\ | + | <p>At the time <math>p_0,\!</math> machine <math>\mathrm{M}</math> is in the state <math>q_0,\!</math> and</p> |
− | <p>At the time <math>p_0,\!</math> scanner <math>\ | + | <p>At the time <math>p_0,\!</math> scanner <math>\mathrm{H}</math> is reading cell <math>r_1,\!</math> and</p> |
<p>At the time <math>p_0,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | <p>At the time <math>p_0,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | ||
<p>At the time <math>p_0,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{1},</math> and</p> | <p>At the time <math>p_0,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{1},</math> and</p> | ||
Line 2,804: | Line 2,802: | ||
|- | |- | ||
| | | | ||
− | <p>At the time <math>p_1,\!</math> machine <math>\ | + | <p>At the time <math>p_1,\!</math> machine <math>\mathrm{M}</math> is in the state <math>q_1,\!</math> and</p> |
− | <p>At the time <math>p_1,\!</math> scanner <math>\ | + | <p>At the time <math>p_1,\!</math> scanner <math>\mathrm{H}</math> is reading cell <math>r_2,\!</math> and</p> |
<p>At the time <math>p_1,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | <p>At the time <math>p_1,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | ||
<p>At the time <math>p_1,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{1},</math> and</p> | <p>At the time <math>p_1,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{1},</math> and</p> | ||
Line 2,811: | Line 2,809: | ||
|- | |- | ||
| | | | ||
− | <p>At the time <math>p_2,\!</math> machine <math>\ | + | <p>At the time <math>p_2,\!</math> machine <math>\mathrm{M}</math> is in the state <math>q_*,\!</math> and</p> |
− | <p>At the time <math>p_2,\!</math> scanner <math>\ | + | <p>At the time <math>p_2,\!</math> scanner <math>\mathrm{H}</math> is reading cell <math>r_1,\!</math> and</p> |
<p>At the time <math>p_2,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | <p>At the time <math>p_2,\!</math> cell <math>r_0\!</math> contains the symbol <math>\texttt{\#},</math> and</p> | ||
<p>At the time <math>p_2,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{1},</math> and</p> | <p>At the time <math>p_2,\!</math> cell <math>r_1\!</math> contains the symbol <math>\texttt{1},</math> and</p> | ||
Line 2,818: | Line 2,816: | ||
|} | |} | ||
− | The output of <math>\ | + | The output of <math>\mathrm{Stunt}(2)</math> being the symbol that rests under the tape head <math>\mathrm{H}</math> when and if the machine <math>\mathrm{M}</math> reaches one of its resting states, we get the result that <math>\mathrm{Parity}(1) = 1.</math> |
==Work Area== | ==Work Area== |
Revision as of 03:30, 27 September 2013
Author: Jon Awbrey
The task ahead is to chart a course from general ideas about transformational equivalence classes of graphs to a notion of differential analytic turing automata (DATA). It may be a while before we get within sight of that goal, but it will provide a better measure of motivation to name the thread after the envisioned end rather than the more homely starting place.
The basic idea is as follows. One has a set \(\mathcal{G}\) of graphs and a set \(\mathcal{T}\) of transformation rules, and each rule \(\mathrm{t} \in \mathcal{T}\) has the effect of transforming graphs into graphs, \(\mathrm{t} : \mathcal{G} \to \mathcal{G}.\) In the cases that we shall be studying, this set of transformation rules partitions the set of graphs into transformational equivalence classes (TECs).
There are many interesting excursions to be had here, but I will focus mainly on logical applications, and and so the TECs I talk about will almost always have the character of logical equivalence classes (LECs).
An example that will figure heavily in the sequel is given by rooted trees as the species of graphs and a pair of equational transformation rules that derive from the graphical calculi of C.S. Peirce, as revived and extended by George Spencer Brown.
Here are the fundamental transformation rules, also referred to as the arithmetic axioms, more precisely, the arithmetic initials.
(1) | |
(2) |
That should be enough to get started.
Cactus Language
I will be making use of the cactus language extension of Peirce's Alpha Graphs, so called because it uses a species of graphs that are usually called "cacti" in graph theory. The last exposition of the cactus syntax that I've written can be found here:
The representational and computational efficiency of the cactus language for the tasks that are usually associated with boolean algebra and propositional calculus makes it possible to entertain a further extension, to what we may call differential logic, because it develops this basic level of logic in the same way that differential calculus augments analytic geometry to handle change and diversity. There are several different introductions to differential logic that I have written and distributed across the Internet. You might start with the following couple of treatments:
I will draw on those previously advertised resources of notation and theory as needed, but right now I sense the need for some concrete examples.
Example 1
Let's say we have a system that is known by the name of its state space \(X\!\) and we have a boolean state variable \(x : X \to \mathbb{B},\!\) where \(\mathbb{B} = \{ 0, 1 \}.\!\)
We observe \(X\!\) for a while, relative to a discrete time frame, and we write down the following sequence of values for \(x.\!\)
\(\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}.\)
Figure 1.2 expands \(\mathrm{E}f = \texttt{((u + du)(v + dv))}\) over \([u, v]\!\) to give:
Figure 1.3 expands \(\mathrm{D}f = f + \mathrm{E}f\) over \([u, v]\!\) to produce:
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)}.\)
Figure 2.2 expands \(\mathrm{E}g = \texttt{((u + du,~v + dv))}\) over \([u, v]\!\) to give:
Figure 2.3 expands \(\mathrm{D}g = g + \mathrm{E}g\) over \([u, v]\!\) to yield the form:
Differential : Locally Linear Approximation
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:
To speed things along, I will skip a mass of motivating discussion and just exhibit the simplest form of a differential \(\mathrm{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 \(\mathrm{d}F = (\mathrm{d}f, \mathrm{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:
As a matter of fact, computing the symmetric differences \(\mathrm{D}f = f + \mathrm{E}f\) and \(\mathrm{D}g = g + \mathrm{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 \(\mathrm{E}f\) and \(\mathrm{E}g,\) respectively. Thus all we have left to do is to decide what linear propositions best approximate the difference maps \(\mathrm{D}f\) and \(\mathrm{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 \(\mathrm{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
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 \(\mathrm{d}U^\bullet = [du, dv]\) that best approximates the patch of the difference map \(\mathrm{D}f\) that is located there, yielding the following formula for the differential \(\mathrm{d}f.\)
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 \(\mathrm{d}U^\bullet = [du, dv]\) that best approximates the patch of the difference map \(\mathrm{D}g\) that is located there, yielding the following formula for the differential \(\mathrm{d}g.\!\)
Well, \(g,\!\) that was easy, seeing as how \(\mathrm{D}g\) is already linear at each locus, \(\mathrm{d}g = \mathrm{D}g.\) Analytic SeriesWe 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 \(\mathrm{E}F : [u, v, du, dv] \to [u, v, du, dv]\) and breaking it into an analytic series, \(\mathrm{E}F = F + \mathrm{d}F + \mathrm{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:
In our analysis of the transformation \(F,\!\) we carried out Step 1 in the more familiar form \(\mathrm{E}F = F + \mathrm{D}F,\) and we have just reached Step 2 in the form \(\mathrm{D}F = \mathrm{d}F + \mathrm{r}F,\) where \(\mathrm{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: Let's push on with the analysis of the transformation:
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:
Figure 1.2 shows the expansion of \(\mathrm{E}f = \texttt{((u + du)(v + dv))}\) over \([u, v]\!\) to produce the expression:
\(\mathrm{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 \(\mathrm{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 \(\mathrm{D}f\) over \([u, v]\!\) to produce the expression:
\(\mathrm{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 \(\mathrm{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 \(\mathrm{D}f\) by the linear form \(\mathrm{d}f\) that expands over \([u, v]\!\) as follows:
Figure 1.5 shows what remains of the difference map \(\mathrm{D}f\) when the first order linear contribution \(\mathrm{d}f\) is removed, namely:
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:
Figure 2.2 shows the expansion of \(\mathrm{E}g = \texttt{((u + du, v + dv))}\) over \([u, v]\!\) to produce the expression:
\(\mathrm{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 \(\mathrm{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 \(\mathrm{D}g\) over \([u, v]\!\) to produce the expression:
\(\mathrm{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 \(\mathrm{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 \(\mathrm{D}g\) by the linear form \(\mathrm{d}g\) that expands over \([u, v]\!\) as follows:
Figure 2.5 shows what remains of the difference map \(\mathrm{D}g\) when the first order linear contribution \(\mathrm{d}g\) is removed, namely:
| Have I carved enough, my lord -- | Child, you are a bone. | | Leonard Cohen, "Teachers" (1967) VisualizationIn 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.
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 ExampleBy 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.
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.
The TM has a finite automaton (FA) as one component. Let us refer to this particular FA by the name of \(\mathrm{M}.\) The tape head (that is, the read unit) will be called \(\mathrm{H}.\) The registers are also called tape cells or tape squares. Finite ApproximationsTo 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 \(\mathrm{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 \(\mathrm{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 \((\mathrm{bof})\) and the end of file \((\mathrm{eof})\) markers, this allows for only one digit of significant computation. To translate \(\mathrm{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 \(\mathrm{QF} : P \to Q\) are these:
The proposition of the form \(\texttt{pi\_qj}\) says:
The basic propositions for describing the present register function \(\mathrm{RF} : P \to R\) are these:
The proposition of the form \(\texttt{pi\_rj}\) says:
The basic propositions for describing the present symbol function \(\mathrm{SF} : P \to (R \to S)\) are these:
The proposition of the form \(\texttt{pi\_rj\_sk}\) says:
Initial ConditionsGiven but a single free square on the tape, there are just two different sets of initial conditions for \(\mathrm{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 \(\mathrm{Stunt}(2)\) is started with an input of "0" in its free square:
This conjunction of basic propositions may be read as follows:
Initial Conditions for Tape Input "1"The following conjunction of 5 basic propositions describes the initial conditions when \(\mathrm{Stunt}(2)\) is started with an input of "1" in its free square:
This conjunction of basic propositions may be read as follows:
Propositional ProgramA complete description of \(\mathrm{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
Terminal Conditions
State Partition
Register Partition
Symbol Partition
Interaction Conditions
Transition Relations
Interpretation of the Propositional ProgramLet us now run through the propositional specification of \(\mathrm{Stunt}(2),\) our truncated TM, and paraphrase what it says in ordinary language. Mediate Conditions
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:
A text string expression of the form \(\texttt{(p(q))}\) corresponds to a graph-theoretic data-structure of the following form:
Taken together, the Mediate Conditions state the following:
Terminal Conditions
In cactus syntax, an expression of the form \(\texttt{((p)(q))}\) expresses the disjunction \(p ~\mathrm{or}~ q.\) The corresponding cactus graph, here just a tree, has the following shape:
In effect, the Terminal Conditions state the following:
State Partition
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:
The State Partition segment of the propositional program consists of three universal partition expressions, taken in conjunction expressing the condition that \(\mathrm{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:
Register Partition
The Register Partition segment of the propositional program consists of three universal partition expressions, taken in conjunction saying that the read head \(\mathrm{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:
Symbol Partition
The Symbol Partition segment of the propositional program for \(\mathrm{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:
Interaction Conditions
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:
This expression has the corresponding cactus graph:
A propositional expression of this form can be read as follows:
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
The Transition Relation segment of the propositional program for \(\mathrm{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:
This complex implication statement can be read to say:
ComputationThe propositional program for \(\mathrm{Stunt}(2)\) uses the following set of \(9 + 12 + 36 = 57\!\) basic propositions or boolean variables:
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. OutputOne component of the \(\begin{smallmatrix}\mathrm{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 \(\mathrm{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:
The Output Conditions for Tape Input "0" can be read as follows:
The output of \(\mathrm{Stunt}(2)\) being the symbol that rests under the tape head \(\mathrm{H}\) if and when the machine \(\mathrm{M}\) reaches one of its resting states, we get the result that \(\mathrm{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 \(\mathrm{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:
The Output Conditions for Tape Input "1" can be read as follows:
The output of \(\mathrm{Stunt}(2)\) being the symbol that rests under the tape head \(\mathrm{H}\) when and if the machine \(\mathrm{M}\) reaches one of its resting states, we get the result that \(\mathrm{Parity}(1) = 1.\) Work AreaDATA 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 DiscussionPD = 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 HistoryOntology List : Feb–Mar 2004
NKS Forum : Feb–Jun 2004
Inquiry List : Feb–Jun 2004
|