1 Introduction
Substructural logics are defined as extensions of the Full Lambek calculus
$\textbf{FL}$
and include among others classical, intuitionistic, linear, relevance, bunched-implication, and many-valued logics. They find applications to areas as diverse as mathematical linguistics, philosophy, management of pointers in computer architecture, engineering, theoretical physics, and functional programming. Their algebraic semantics, in the sense of Blok and Pigozzi [Reference Cardona and Galatos1], are (pointed) residuated lattices (or FL-algebras) and they have an independent history with connections to classical and to ordered algebra. In particular they include the lattice of ideals of rings, lattice-ordered groups, algebras of relations, and of course Boolean and Heyting algebras. Pointed residuated lattices form a variety
$\mathsf {FL}$
and its subvarieties correspond to extensions of
$\textbf{FL}$
via a dual lattice isomorphism; algebraic and logical properties are tightly linked. See [Reference Hart, Rafter and Tsinakis6] for an introduction to the area.
Decidability questions are at the core of the study of logical systems and here we explore logics/varieties with structure rich enough to allow for encoding the computation of machines with undecidable halting problem. This yields undecidability results for the word problem, and hence also for the quasiequational theory, of these varieties (namely the deducibility relation for the logics) and sometimes even the undecidability of the equational theory of the varieties (i.e., the theoremhood in the corresponding logics).
The equational theory of
$\mathsf {FL}$
is decidable and the same holds for many of its standard extensions such as
$\mathsf{FL}_{\mathsf{e}}$
(with exchange/commutativity:
$xy=yx$
),
$\mathsf {FL_w}$
(with weakening/integrality:
$x \leq 1$
),
$\mathsf {FL_{ei}}$
(with exchange and weakening),
$\mathsf {FL_{ec}}$
(with exchange and contraction:
$x \leq x^2$
), and
$\mathsf {FL_{em}}$
(with exchange and mingle:
$x^2 \leq x$
). The equational theory of
${\mathsf {FL}_\mathsf{c}}$
is one of the few known to be undecidable [Reference Ciabattoni, Galatos and Terui3]; a precursor to this result is the fact that the equational theory of
${\mathsf {FL}_{\mathsf{ec}}}$
, even though decidable, is not primitive recursive [Reference van Alten16]. The only other known subvarieties of
$\mathsf {FL}$
with undecidable equational theory are the ones axiomatized by
$x^m \leq x^n$
(where
$0<m<n$
), the one axiomatized by the modular law, and the one axiomatized by commutativity, involutivity, and distributivity (corresponding to the relevance logic R). In particular, the last one is the only subvariety of
$\mathsf {FL}_{\mathsf{e}}$
with undecidable equational theory; actually distributivity does not correspond to a sequent structural rule, unless the syntax is expanded, so it is not even a structural extension of
$\textbf{FL}$
. On the contrary, prominent subvarieties of
$\mathsf {FL}_{\mathsf{e}}$
, such as (proper, non-trivial) subvarieties axiomatized by any knotted inequality
$x^m \leq x^n$
(where
$m\neq n$
), not only have a decidable equational theory but also a decidable quasiequational theory, and even the finite embeddability property [Reference Blok and Pigozzi17]. (In [Reference Chvalovský and Horčík2] it is further shown that this remains true even under conditions weaker than commutativity.)
In contrast to the above, in this paper we construct infinitely many subvarieties of
$\mathsf {FL}_{\mathsf{e}}$
with undecidable equational theory. We also show that an even bigger collection of subvarieties of
$\mathsf {FL}_{\mathsf{e}}$
have an undecidable quasiequational theory, actually undecidable word problem. The encoding used for the undecidability of the word problem for
$\mathsf {FL}_{\mathsf{e}}$
does not work for its subvarieties, so we modify it in a novel way, by storing the values in the counter machines as powers of a sufficiently large constant, which depends on the subvariety.
A residuated lattice
$\textbf{R}=(R, \vee ,\land ,\cdot ,\backslash ,/,1 )$
is an algebraic structure such that
$(R,\vee ,\land ) $
is a lattice,
$(R,\cdot , 1)$
is a monoid, and the law of residuation holds: for all
$x,y,z\in R$
,
where
$\leq $
is the induced lattice order. The residuated lattice
$\textbf{R}$
is called commutative if
$(R,\cdot ,1)$
is a commutative monoid; in such a case
$x\backslash y = y/ x$
for all
$x,y\in R$
and we will use the notation
$x\to y:=x \backslash y$
. It is well known that (commutative) residuated lattices form a variety denoted
$(\mathsf {C} )\mathsf {RL} $
, see [Reference Hart, Rafter and Tsinakis6]. FL-algebras are defined as expansions of residuated lattices by an arbitrary constant
$0$
(which is used to define the negation operation), but we will not be making use of this constant in our encodings and our results remain true in the presence or absence of this constant.
For example, the extension of (
$0$
-free)
$\textbf{FL}_{\textbf{e}}$
with the structural rule
corresponds to the subvariety of
$\mathsf {CRL}$
defined by the inequality
$\varepsilon : x\leq x^2\vee x^3$
. More generally, structural rules, such as the above, correspond to inequalities in the signature
$\{\vee ,\cdot ,1\}$
. We will show that theoremhood for
$\textbf{FL}_{\textbf{e}}+(\varepsilon )$
and the equational theory of
$\mathsf {CRL} +\varepsilon $
are undecidable.
To establish the main undecidability results, we encode in the theory of commutative residuated lattices the computation of machines with undecidable halting problem; these are and-branching counter machines, a variant of counter machines, introduced in [Reference Lothaire11]. In Section 3 we outline their structure and in Section 4 we use them to give a simple and direct proof of the undecidability of every variety between
$\mathsf {CRL}$
and
$\mathsf {RL}$
, extending the result that was known for just these two varieties. This is done to set the stage for the much more complicated development that follows, while still introducing two of the main tools: abstract machines and residuated frames. The theory of residuated frames, developed in [Reference Galatos, Jipsen, Kowalski and Ono5], is used to prove the completeness of the encoding, inspired by [Reference Ciabattoni, Galatos and Terui3, Reference Jipsen and Tsinakis8]. The encodings used in the latter and the standard encodings, however, do not work in the presence of commutativity and this is why we make use of the one considered in [Reference Lothaire11]; in the Conclusions section (Section 9) we compare some of the encodings and discuss further some related results.
In the beginning of Section 5 we review the algebraic counterparts of structural rules: equalities in the signature
$\{\vee ,\cdot ,1\}$
, as alluded to above, and show how they can be viewed as conjunctions of simple inequalities. We also explain why the encoding of and-branching counter machines fails to work for subvarieties of
$\mathsf {CRL}$
axiomatized by such equations, thus necessitating the use of a novel encoding. Parts of Sections 5 and 6 explore properties of the new encoding that are needed for capturing the additional equations: the application of the equation even though it may interfere with the computation of the new machine, should not add any more accepted configurations. We refer to this condition as admissibility of the equation relative to the machine and also we work out some motivating examples.
In Section 7 we define the new machines as variants of and-branching counter machines working on an exponential level; the main idea is that the new equation does affect the computation but only in a linear/polynomial way, so if the encoding is done at the exponential level no new accepted configurations will be added. The desired properties of these exponential machines are studied in detail in Section 7 and a technical condition
$(\star \star )$
emerges as a prominent condition for the given equation so that the encoding will work. In the beginning of Section 8 it becomes clear that if the added equation fails condition
$(\star \star )$
, not even the new exponential encoding will work to establish undecidability and thus such equations are outside the scope of this paper. However, in Section 7 it is shown that if the equation satisfies condition
$(\star \star )$
, then it indeed defines a variety of residuated lattices with undecidable word problem. Actually, Theorem 7.17 shows that almost all 1-variable equations actually satisfy condition
$(\star \star )$
, indicating that this condition is not really restrictive. In parallel to all this, starting already from Section 5 we introduce a very big class of equations, called spineless; the class is so big that we define it via its complement (prespinal equations), which forms a very small portion of all equations and admits a very natural and simple definition.
In Section 8 we show that, surprisingly, the very transparently defined spineless equations are precisely the ones that satisfy the technical condition
$(\star \star )$
. Therefore, the results of Sections 7 and 8 together imply that every spineless equation defines a variety with undecidable word problem (Corollary 8.14). Wanting to showcase this result as early as possible, we (re)state it in advance in Section 5 and use it to derive the stronger result of the undecidability of the equational theory for certain subvarieties; this is done by using a special form of the deduction theorem, relying on the characterization of congruences in commutative and expansive residuated lattices. In that sense, someone who reads just the first third of the paper, up to Section 5, has a full and clear grasp of all the notions and also knows the statements of the two main results of the paper, Theorem 5.5 and Theorem 5.9.
The proof, given in Section 8, that these two differently looking notions coincide is quite involved and relies on positive linear algebra, therefore Section 8 uses very different tools than the ones of the rest of the paper. We even find it helpful to move from the multiplicative notation for monoids, used in most of the paper and which suits the link to the encoding of the machines, to additive notation for monoids, giving rise to positive linear transformations and matrices with natural numbers as entries. Therefore we chose to have this proof done as the last section of the paper, as it already takes up one-fourth of the length of the paper.
2 Preliminaries
We denote the sets of natural numbers, positive integers, and real numbers by
$\mathbb {N}$
,
$\mathbb {Z}^+$
, and
$\mathbb {R}$
, respectively. We denote the powerset of a set X by
$\wp (X)$
. Given a set X and a binary operation symbol
$\cdot $
, we denote by
$(X^*,\cdot ,1)$
the free commutative monoid generated by X with unit
$1$
. A substitution on X is a monoid homomorphism
${\boldsymbol {\sigma }}:X^*\to X^*$
; substitutions are determined by their restriction to X. For
$x\in X^*$
, we write
$x^n$
to denote
$1$
, if
$n=0$
, and the term
$x\cdot \cdots \cdot x$
consisting of n copies of x for
$n>0$
. For subsets
$A,B$
of X, we define
$A\cdot B=\{a\cdot b: a\in A,b\in B\}$
, and if
$a\in X$
then
$a\cdot B=\{a\}\cdot B$
.
Let
$\mathcal {L}$
be an algebraic language, i.e., containing no relational symbols. Given a set of variables X,
$T(X)$
denotes the set of terms over X and
$\mathcal {L}$
and
$\textbf{T}(X)$
the absolutely free algebra of terms. A quasiequation is (the universal closure of) a formula of the form
where
$s_0,t_0,\ldots ,s_n,t_n\in T(X)$
are terms and
$n \in \mathbb {N}$
. If
$n=0$
then the left-hand side is empty and we obtain an equation.
For a class of algebras
$\mathcal {K}$
in the language
$\mathcal {L}$
, we say that (1) holds in
$\mathcal {K}$
(i.e.,
$\mathcal {K}\models $
(1)) if for every algebra
$\textbf{A}\in \mathcal {K}$
and homomorphism
$h:\textbf{T}(X)\to \textbf{A},$
Here
$\textbf{A}, h \models s=t$
means
$h(s)=_{\textbf{A}}h(t)$
.
A presentation is a pair
$\langle X,E\rangle $
where X is a set of generators and E is a set of equations over
$T(X)$
. A presentation
$\langle X,E\rangle $
is said to be finite iff both X and E are finite. We denote the conjunction of equations in E by
$\&E$
. For a variety of algebras
$\mathcal {V}$
in the language
$\mathcal {L}$
, we say
$\mathcal {V}$
has an undecidable word problem if there exists a finite presentation
$\langle X,E\rangle $
such that there is no algorithm that on input
$s,t\in T(X)$
decides whether the quasiequation
holds in
$\mathcal {V}$
. Note that if
$\mathcal {V}$
has undecidable word problem then its quasiequational and universal theories are undecidable as well. The word problem is also referred to as the local word problem and the quasiequational theory as the global word problem, making explicit that in the former the antecedent of the quasiequations is fixed while in the latter it is unrestricted.
In the following the proofs of the undecidability of the word problem will rely on the fact that residuated lattices have a
$\{\vee , \cdot , 1\}$
-reduct, and therefore the undecidability results apply to all reducts that contain it.
3 Counter machines
For proving undecidability we use a type of abstract machine known as an And-branching k-Counter Machine (k-ACM), introduced in [Reference Lothaire11], as they have an undecidable halting problem. A k-ACM is a tuple
${\texttt{M}}=(\texttt{R}_k, {\texttt{Q}},{\texttt{P}}, q_f)$
representing a type of parallel-computing counter machine, where
-
•
$\texttt{R}_k:=\{\texttt{r}_1,\ldots ,\texttt{r}_k\}$
is a set of k registers, each able to store a nonnegative integer (representing the number of tokens in that register), -
•
${\texttt{Q}}$
is a finite set of states with a designated final state
$q_f$
, and -
•
${\texttt{P}}$
is a finite set of instructions (to be formalized below) that indicate whether to, given a certain state of the machine, increment a register or decrement a nonzero register, as well as a “branching” instruction known as forking, with no instruction applicable to the state
$q_f$
.
A configuration
${\texttt{C}}$
of a k-ACM is a tuple consisting of a single state and, for each register, a nonnegative integer indicating the contents of that register. We can imagine a configuration being a box labeled by a state and containing tokens each labelled by an element of the set
$\texttt{R}_k$
. In essence, a configuration is specified by the state label and the multiset of register labels of the tokens. Since the order of the symbols is irrelevant, we represent a configuration
${\texttt{C}}$
as a term in the free commutative monoid generated by
${\texttt{Q}}\cup \texttt{R}_k$
, and canonically arranged as
where
$q\in {\texttt{Q}}$
is the state of the configuration and
$n_i$
is the number stored in the register
$\texttt{r}_i$
, for each
$i=1,...,k$
; if
$n_i=0$
, we say the register
$\texttt{r}_i$
is empty. Since
${\texttt{C}}$
contains precisely one state, we may define the set of configurations by
$\texttt{Conf}(\texttt{M}) := {\texttt{Q}}\cdot \texttt{R}_k^*$
.
The instructions of a k-ACM replace a single configuration by a new configuration (via increment and decrement), or by two configurations (via forking). An increment instruction can be understood as “if a box is labeled by state q, add one register-
$\texttt{r}_i$
token and relabel the box with state
$q'$
,” decrement as “if a box is labeled by state q, and
$\texttt{r}_i$
is not empty, remove one register-
$\texttt{r}_i$
token and relabel the box with state
$q'$
,” and forking as “if a box is labeled by state q, duplicate the box and its contents, resulting in two boxes relabeled by
$q'$
and
$q"$
, respectively.” As a consequence of the forking instruction, the machine can be operating on multiple configurations, i.e., branches, in parallel and is inherently nondeterministic. The status of a machine at a given moment in a computation, called an instantaneous description (ID), is represented by the configurations that are present. Formally, an ID is an element
of the free commutative semigroup
$\texttt{ID}(\texttt{M})$
generated by
$\texttt{Conf}(\texttt{M})$
; we denote the associated binary operation by
$\vee $
.
In this way, we view
$\texttt{ID}(\texttt{M})$
as a subset of the commutative semiring
${\textbf{A}_{\texttt{M}}}=(A_{\texttt{M}}, \vee , \cdot , \bot , 1)$
generated by
$\texttt{R}_k\cup {\texttt{Q}}$
, where
-
•
$(A_{\texttt{M}},\vee ,\bot )$
is a commutative monoid with additive identity
$\bot $
, -
•
$(A_{\texttt{M}},\cdot ,1)$
is a commutative monoid with multiplicative identity 1, and -
• multiplication distributes over join.
Even though
$\vee $
in
$\textbf{A}_{\texttt{M}}$
is not defined to be idempotent, we will consider homomorphisms from
$\textbf{A}_{\texttt{M}}$
that will map
$\vee $
to a semilattice operation and for our applications it would not hurt to define
$\vee $
to be idempotent. However, the non-idempotent status of ID’s matches better the intuition of computation and this is the reason for our choice.
Since multiplication fully distributes over
$\vee $
in
$\textbf{A}_{\texttt{M}}$
, each element of
$A_{\texttt{M}}$
can be written as a finite join
$\bigvee _{i\in I} m_i$
, where I is a finite (possibly empty) set, of monoid terms
$m_i \in ({\texttt{Q}} \cup \texttt{R}_k)^*$
, for all
$i \in I$
; recall that the join of the empty set is the bottom element (
$\bot =\bigvee \emptyset $
). As usual, each element of
$\textbf{A}_{\texttt{M}}$
, which is the equivalence class
$[t]$
of a term t in the absolutely free algebra over
$\{\vee , \cdot , 1\}$
and
${\texttt{Q}} \cup \texttt{R}_k$
, will be identified with the term t itself, when no confusion arises.
Formally, an instruction p of a k-ACM is an expression of the form
$q\leq q'\texttt{r}_i$
,
$q\texttt{r}_i \leq q'$
, or
$q\leq q'\vee q"$
, where
$q, q', q" \in {\texttt{Q}}$
and
$\texttt{r}_i \in \texttt{R}_k$
, representing increment
$\texttt{r}_i$
, decrement
$\texttt{r}_i$
, and fork, respectively. We will often write
$p:{\texttt{C}}\leq {\texttt{u}}$
to indicate the instruction p is given by
${\texttt{C}}\leq {\texttt{u}}$
, where
${\texttt{C}} \in \texttt{Conf}(\texttt{M})$
and
${\texttt{u}} \in \texttt{ID}(\texttt{M})$
. For a state
$q\in \texttt{Q}$
, we say p is a q-instruction if
$p:qx\leq \texttt{u}$
for some
$x\in \texttt{R}_k^*$
. Note that a machine
$\texttt{M}$
with final state
$q_f$
contains no
$q_f$
-instructions by definition.
The computation relation
$\leq $
for the machine
${\texttt{M}}=(\texttt{R}_K,{\texttt{Q}},{\texttt{P}},q_f)$
is defined to be the smallest
${\{\cdot ,\vee \}}$
-compatible preorder containing
${\texttt{P}}$
, and will be denoted by
$\leq _{\texttt{M}}$
. For a given instruction
$p: {\texttt{C}}\leq {\texttt{u}}$
, it will be useful to define the relation
$\leq ^p$
to be the closure of p under the inference rules
for all
$v,w,x,t\in A_{\texttt{M}}$
(in that order, without loss of generality, due to the distributivity of
$\cdot $
over
$\vee $
). Consequently,
$v\leq ^p w$
if and only if
$v={\texttt{C}}x\vee t$
and
$w=\texttt{u} x\vee t$
, for some
$x, t \in A_{\texttt{M}}$
; these equalities are understood inside
$ A_{\texttt{M}}$
, so the terms
$v$
and
${\texttt{C}}x\vee t$
need not be identical. We therefore conclude that if
$v\leq ^p w$
, then
$v\in \texttt{ID}(\texttt{M})$
if and only if
$w\in \texttt{ID}(\texttt{M})$
.
It is easily verified that
$\leq _{\texttt{M}}$
is equivalent to the smallest preorder generated by
$\bigcup \{\leq ^p: p\in {\texttt{P}}\}$
. Therefore, if
$s\leq _{\texttt{M}} t$
, then there exist
$n \in \mathbb {N}$
, a sequence of
$A_{\texttt{M}}$
-terms
$t_0, \ldots , t_n$
and a sequence of instructions
$p_1, \ldots , p_n$
from
${\texttt{P}}$
, collectively called a computation in
${\texttt{M}}$
of length n witnessing
$s\leq _{\texttt{M}} t$
, such that
Clearly, if there is a computation witnessing
$s\leq _{\texttt{M}} t$
, then there is a computation of minimal length, the value of which we simply call the computation length. The following result is an easy consequence of the definitions.
Lemma 3.1. Let
$s,t,t'\in A_{\texttt{M}}$
.
-
1. If
$s\leq _{\texttt{M}} t$
, then there exists a computation witnessing it and furthermore,
$s\in \texttt{ID}(\texttt{M})$
iff
$t\in \texttt{ID}(\texttt{M})$
. -
2.
$t\vee t' \leq _{\texttt{M}} s$
if and only if there exist
$s',s"\in A_{\texttt{M}}$
such that
$s=s'\vee s"$
,
$t\leq _{\texttt{M}} s'$
, and
$t'\leq _{\texttt{M}} s"$
. Furthermore, the sum of the computation lengths of
$t\leq _{\texttt{M}} s'$
and
$t'\leq _{\texttt{M}} s"$
is less than or equal to the computation length of
$t\vee t' \leq _{\texttt{M}} s$
.
An ID consisting entirely of configurations labeled by the state
$q_f$
with all registers empty is called a final ID and we denote the set of final ID’s by
${\texttt{Fin}}({\texttt{M}}):= \{ \bigvee _{i=1}^n q_f: n\geq 1\}$
. Our choice to not assume the idempotency of
$\vee $
in
$\textbf{A}_{\texttt{M}}$
explains the necessity of treating
$ \bigvee _{i=1}^n q_f$
as a final ID. We say that a term
$t\in A_{\texttt{M}}$
is accepted by
${\texttt{M}}$
if there exists
${\texttt{u}}_f\in {\texttt{Fin}}({\texttt{M}})$
such that
$t\leq _{\texttt{M}} {\texttt{u}}_f$
, and we define the set of accepted terms to be
${\mathrm{Acc}}({\texttt{M}}):=\{t\in A_{\texttt{M}}: \exists {\texttt{u}}_f\in {\texttt{Fin}}({\texttt{M}}),~t\leq _{\texttt{M}} {\texttt{u}}_f \}$
.
Theorem 3.2. [Reference Lincoln, Mitchell, Scedrov and Shankar10, Reference Lothaire11, Reference Perng13] There exists a 2-ACM
$\tilde {\texttt{M}}$
such that membership in
${\mathrm {Acc}}(\tilde {\texttt{M}})$
is undecidable.
Example 3.3. Consider the
$1$
-ACM
${\texttt{M}}_{\mathrm {even}}= (\texttt{R}_1,{\texttt{Q}}_{\mathrm {even}},{\texttt{P}}_{\mathrm {even}},q_f)$
, where
${\texttt{Q}}_{\mathrm {even}}=\{q_0,q_1,q_f\}$
and
${\texttt{P}}_{\mathrm {even}}=\{ p_0,p_1,p_f\}$
is given by
$$ \begin{align*}\begin{array}{ l c r c l} p_0 &:& q_0 \texttt{r}_1& \leq & q_1, \\ p_1 &:& q_1 \texttt{r}_1& \leq & q_0, \\ p_f &:& q_0 & \leq & q_f\vee q_f. \end{array}\end{align*} $$
For example,
$q_0\texttt{r}_1^2\leq ^{p_0} q_1\texttt{r}_1 \leq ^{p_1} q_0 \leq ^{p_f} q_f \vee q_f$
is a computation showing that
$q_0\texttt{r}_1^2$
is accepted. On the other hand
$q_0\texttt{r}_1 \leq ^{p_0} q_1$
and
$q_0\texttt{r}_1 \leq ^{p_f} (q_f \vee q_f)\texttt{r}_1=q_f\texttt{r}_1 \vee q_f\texttt{r}_1$
are the only maximal computations starting with
$q_0\texttt{r}_1$
and none of them ends in a final configuration, so
$q_0\texttt{r}_1$
is not accepted. In general, it is easy to see that
$q_0\texttt{r}_1^n\in {\mathrm {Acc}}({\texttt{M}}_{\mathrm {even}})$
if and only if n is even.
Lemma 3.4. Let
${\texttt{M}}$
be an ACM.
-
1.
${\mathrm {Acc}}({\texttt{M}})\subseteq \texttt{ID}(\texttt{M})$
and the terms in any computation ending in a final ID are all ID’s. -
2. For all
${u},{v}\in A_{\texttt{M}}$
,
${u}\vee {v}\in {\mathrm {Acc}}({\texttt{M}})$
if and only if
${u}\in {\mathrm {Acc}}({\texttt{M}})$
and
${v}\in {\mathrm {Acc}}({\texttt{M}})$
.
Proof. The first claim follows from Lemma 3.1(1) by induction on the computation length since
$\texttt{Fin}(\texttt{M})\subseteq \texttt{ID}(\texttt{M})$
by definition. The second claim follows from Lemma 3.1(2) since
$\texttt{Fin}(\texttt{M})$
is exactly the set of finite non-empty joins of the same configuration
$q_f$
.⊣
Lemma 3.4 shows that in a computation witnessing the acceptance of an ID all configurations are ID’s and therefore for those cases the inference rule
$[\cdot ]$
could have been restricted to
$x \in \texttt{R}_k^*$
.
4 Machines and residuated frames
As a demonstration of our general technique, we will use counter machines and residuated frames to show that any variety between
$\mathsf {CRL} $
and
$\mathsf {RL} $
has an undecidable word problem.
Let
$\texttt{M}=(\texttt{R}_k,\texttt{Q},\texttt{P},q_f)$
be an ACM. For each
$u\in \texttt{ID}(\texttt{M})$
, formally viewed as an
$\{\vee ,\cdot ,1\}$
-term in
$\textbf{T}(\texttt{R}_k\cup \texttt{Q})$
, we define the quasiequation
$\mathrm {acc}_{\texttt{M}}(u)$
to be
where
$q_f$
is the final state of
${\texttt{M}}$
, and
$\texttt{P}_{\mathrm {com}}:={\texttt{P}}\cup \{xy\leq yx: x,y\in \texttt{R}_k\cup \texttt{Q}\}$
is the (finite) set of instructions
${\texttt{P}}$
together with a finite set encoding commutativity for letters (and hence also all words) over the set
$\texttt{R}_k\cup {\texttt{Q}}$
; for our purposes we could actually restrict the x in
$\texttt{P}_{\mathrm {com}}$
to only state variables.
The following lemma shows that computations in machines can be performed also in the theory of residuated lattices.
Lemma 4.1. Let
${\texttt{M}}$
be an ACM and
${u}$
an ID. If
${u}\in {\mathrm {Acc}}({\texttt{M}})$
then
$\mathsf {RL}\models \mathrm {acc}_{\texttt{M}}({u})$
.
Proof. Let
$\texttt{M}=(\texttt{R}_k,\texttt{Q},\texttt{P},q_f)$
be an ACM and suppose
$u\in \texttt{ID}(\texttt{M})$
is accepted in
$\texttt{M}$
. We proceed by induction on the length n of the computation witnessing the acceptance of u in
$\texttt{M}$
. If the length is zero then
$u\in \texttt{Fin}(\texttt{M})$
. Since
$\vee $
is idempotent in residuated lattices,
$\mathsf {RL}\models \texttt{u}_f \leq q_f$
for any
$\texttt{u}_f \in \texttt{Fin}(\texttt{M})$
. Hence
$\mathsf {RL}\models \mathrm {acc}_{\texttt{M}} (u)$
a fortiori. Now, suppose the claim holds for all accepted ID’s with computation length
$0\leq k<n$
. By Lemma 3.4(1), there is an instruction
$p\in \texttt{P}$
such that
$u\leq ^p u'\in \mathrm {Acc}(\texttt{M})$
for some
$u'\in \texttt{ID}(\texttt{M})$
, where the acceptance computation of
$u'$
has length less than n. Formally viewing
$u'$
as an element in
$\textbf{T}(X)$
where
$X=\texttt{R}_k\cup \texttt{Q}$
,
$\mathsf {RL}\models \mathrm {acc}_{\texttt{M}}(u')$
by the induction hypothesis.
Now, suppose that for a residuated lattice
$\textbf{R}$
and for a homomorphism
$f:\textbf{T}(X)\to \textbf{R}$
we have
$\textbf{R},f\models \texttt{P}_{\mathrm {com}}$
. Hence
$f(u')\leq _{\textbf{R}} f(q_f)$
since
$\mathsf {RL}\models \mathrm {acc}_{\texttt{M}}(u')$
. As
$\leq _{\textbf{R}}$
is transitive, we need only show
$f(u)\leq _{\textbf{R}} f(u')$
to establish
$\textbf{R},f\models \mathrm {acc}_{\texttt{M}}(u)$
.
Let
$\textbf{S}(X)$
be the free algebra over
$\{\vee ,\cdot ,1\}$
and X. As
$\textbf{R}$
has a semiring reduct and
$f(a)f(b)=_{\textbf{R}}f(b)f(a)$
, for all
$a,b\in X$
, the restriction of f on
$\textbf{S}(X)$
factors through
$\textbf{A}^+_{\texttt{M}} := \textbf{A}_{\texttt{M}} \setminus \{\bot \}$
as
$f:S(X)\stackrel {\nu }{\to }A^+_{\texttt{M}} \stackrel {h}{\to }R$
as a semiring homomorphism, where
$\nu $
is the natural surjective homomorphism and h is a semiring homomorphism. So,
$h(a)h(b)=_{\textbf{R}}h(b)h(a)$
, for all
$a,b\in X$
, and
$ h({\texttt{C}})\leq _{\textbf{R}} h ({\texttt{v}})$
where
$p:\texttt{C}\leq \texttt{v}$
. By definition of
$\leq ^p$
,
for some
$x\in X^*$
and
$w\in A_{\texttt{M}}$
, where
$\texttt{v} x \vee w=_{\textbf{A}_{\texttt{M}}} \texttt{v} x$
if
$w=\bot $
. Using the properties above and the fact that h is a semiring homomorphism we obtain
It follows that
$ h ({u}) \leq _{\textbf{R}}h(u')$
and therefore that
$f(u) \leq _{\textbf{R}} f(u').$
⊣
To show the converse of Lemma 4.1, we will need to show that given an ACM
${\texttt{M}}$
, if
${u}\not \in {\mathrm {Acc}}({\texttt{M}})$
then there is a residuated lattice
$\textbf{W}_{\texttt{M}}^+$
(which will actually even be commutative) that falsifies
$\mathrm {acc}_{\texttt{M}}({u})$
; actually, in the proof we proceed by contraposition. We will further prove that every subvariety of
$\mathsf {RL} $
that contains
$\textbf{W}_{\tilde {\texttt{M}}}^+$
has undecidable word problem (and thus undecidable quasiequational theory). The construction of
$\textbf{W}_{\texttt{M}}^+$
is based on residuated frames [Reference Galatos, Jipsen, Kowalski and Ono5], structures that will also be used later in the paper, so we define them briefly here.
For the purposes of this paper, a commutative residuated frame is a structure
, where
$(W, \cdot , 1)$
is a commutative monoid,
$W'$
is a set, and
is a subset of
$W \times W'$
, such that there exists a function
$\mathbin {/\mkern -5mu/}: W' \times W \rightarrow W'$
with:
$\forall x,y \in W \ z \in W'$
,
iff
. Given such a residuated frame, for
$X\subseteq W$
,
$x \in W$
,
$Y \subseteq W'$
, and
$y \in W'$
, we define
to mean
$x \mathrel {N} y$
for all
$x \in X$
, and
to mean
$x \mathrel {N} y$
for all
$y \in Y$
. For
$X\subseteq W$
and
$Y\subseteq W'$
, we define
,
. The pair
$({}^{\triangleright },{}^{\triangleleft })$
forms what is known as a Galois connection, and we will make use of the fact that
$X_1^{\triangleright \triangleleft } \subseteq X_2^{\triangleright \triangleleft }$
if and only if
$X_2^{\triangleright }\subseteq X_1^{\triangleright }$
for any
$X_1,X_2\subseteq W$
.
Define
$\gamma (X)= X^{\triangleright \triangleleft }$
. We write
$\gamma (x)=\gamma (\{x\})$
for
$x\in W$
, and
$\wp (W)_{\gamma }=\gamma [\wp (W)]$
. It follows from [Reference Galatos, Jipsen, Kowalski and Ono5] that the algebra
$\textbf{W}^+:=(\wp (W)_{\gamma },\cap ,\cup _{\gamma } , \cdot _{\gamma },\to , \gamma (1))$
is a commutative residuated lattice, where
$X\cup _{\gamma } Y:=\gamma (X\cup Y)$
,
$X\cdot _{\gamma } Y:=\gamma (X\cdot Y)$
, and
$X\to Y:=\{z\in W: X\cdot \{z\}\subseteq Y\}$
.
Inspired by [Reference Jipsen and Tsinakis8], given an ACM
${\texttt{M}}=(\texttt{R}_k, {\texttt{Q}},{\texttt{P}},q_f)$
we define the tuple
, where
$W_{\texttt{M}}:=({\texttt{Q}}\cup \texttt{R}_k)^*\subseteq A_{\texttt{M}}$
and
if and only if
$xy\in {\mathrm {Acc}}({\texttt{M}})$
, for all
$x,y\in W_{\texttt{M}}$
.
Lemma 4.2.
$\mathbf{W}_{\texttt{M}}$
is a residuated frame and therefore
$\mathbf{W}_{\texttt{M}}^+ \in \mathsf {CRL} $
.
Proof. We define
$z \mathbin {/\mkern -5mu/} y = yz$
. Clearly, for
$x,y,z\in W_{\texttt{M}}$
,
iff
$xyz\in {\mathrm {Acc}}({\texttt{M}})$
iff
⊣
For an ACM
${\texttt{M}}=(\texttt{R}_k,{\texttt{Q}},{\texttt{P}},q_f)$
, we define the assignment
$e:{\texttt{Q}}\cup \texttt{R}_k\to W_{\texttt{M}}^+$
via
$e(a):=\{a\}^{\triangleright \triangleleft }$
and its homomorphic extension
$\bar {e}:\textbf{T}({\texttt{Q}}\cup \texttt{R}_k)\to \textbf{W}_{\texttt{M}}^+$
.
We will need to make use of the following technical lemma.
Lemma 4.3. If
${\texttt{M}}=(\texttt{R}_k,{\texttt{Q}},{\texttt{P}},q_f)$
is an ACM, then
$\mathbf{W}_{\texttt{M}}^+,\bar {e}\models {\texttt{P}_{\mathrm {com}}}$
. Furthermore,
$\bar {e} (x \vee y) = \{x, y\}^{\triangleright \triangleleft }$
for any
$x, y \in W_{\texttt{M}}$
.
Proof. In [Reference Galatos, Jipsen, Kowalski and Ono5] it is shown that the map
$\gamma $
satisfies the properties
$\gamma (\gamma (X) \cdot \gamma (Y))=\gamma (X \cdot Y)$
and
$\gamma (\gamma (X) \cup \gamma (Y))=\gamma (X \cup Y)$
, for all
$X , Y \subseteq W$
. Using the first one, for each
$a,b\in {\texttt{Q}}\cup \texttt{R}_k$
we have
It follows by induction that
$\bar {e}(x)=\gamma (x)$
for each
$x\in W_{\texttt{M}}$
.
Now, let
$x,y\in W_{\texttt{M}}.$
Then
where the last equality follows from the second property of
$\gamma $
above.
Since
$\textbf{W}_{\texttt{M}}^+$
is commutative, we need only show
$\textbf{W}_{\texttt{M}}^+\models \texttt{P}$
. Let
$p:{\texttt{C}}\leq {\texttt{C}}_1\vee {\texttt{C}}_2$
be in
$\texttt{P}$
.Footnote
1
By the calculation above,
$\bar {e}({\texttt{C}})=\{{\texttt{C}}\}^{\triangleright \triangleleft }$
and
$\bar {e}({\texttt{C}}_1 \vee {\texttt{C}}_2)= \{{\texttt{C}}_1, {\texttt{C}}_2\}^{\triangleright \triangleleft }$
. So, to show
$\textbf{W}_{\texttt{M}}^+,\bar {e}\models {\texttt{C}}\leq {\texttt{C}}_1\vee {\texttt{C}}_2$
, we need to show that
$\{{\texttt{C}}\}^{\triangleright \triangleleft } \subseteq \{{\texttt{C}}_1, {\texttt{C}}_2\}^{\triangleright \triangleleft }$
, or equivalently that
$\{{\texttt{C}}_1,{\texttt{C}}_2 \}^{\triangleright } \subseteq \{{\texttt{C}}\}^{\triangleright }$
. Suppose
$x\in \{ {\texttt{C}}_1,{\texttt{C}}_2\}^{\triangleright }$
, then
and
, so
${\texttt{C}}_1 x, {\texttt{C}}_2 x\in {\mathrm {Acc}}({\texttt{M}}).$
Now
${\texttt{C}}\leq ^p {\texttt{C}}_1\vee {\texttt{C}}_2$
implies
${\texttt{C}}x\leq ^p ({\texttt{C}}_1\vee {\texttt{C}}_2)x$
, thus by Lemma 3.4(2)
and it follows that
, or equivalently
$x\in \{ {\texttt{C}}\}^{\triangleright }$
.⊣
Lemma 4.4. Let
$\mathcal {V}$
be a subvariety of
$\mathsf {RL} $
containing
$\mathbf{W}_{\texttt{M}}^+$
for some ACM
${\texttt{M}}$
. Then for all
${u}\in \texttt{ID}(\texttt{M})$
,
${u}\in {\mathrm {Acc}}({\texttt{M}})$
if and only if
$\mathcal {V}\models \mathrm {acc}_{\texttt{M}}({u})$
.
Proof. Let
$\texttt{M}=(\texttt{R}_k,\texttt{Q},\texttt{P},q_f)$
be a k-ACM. The forward direction follows from Lemma 4.1. For the reverse direction note that from
$\textbf{W}_{\texttt{M}}^+\in \mathcal {V}$
we have
$\textbf{W}_{\texttt{M}}^+\models \mathrm {acc}_{\texttt{M}}({u})$
. By Lemma 4.3,
$\textbf{W}_{\texttt{M}}^+,\bar {e}\models {\texttt{P}_{\mathrm {com}}}$
and so
$\textbf{W}_{\texttt{M}}^+,\bar {e} \models {u}\leq q_f$
. Let
$t_1,\ldots ,t_n\in (\texttt{Q}\cup \texttt{R}_k)^*$
be given so that
${u}={t}_1\vee \cdots \vee {t}_n$
, so
$\bar {e} ({t}_1\vee \cdots \vee {t}_n) \subseteq \bar {e}(q_f)$
, which yields
$\{{t}_1, \ldots , {t}_n\}^{\triangleright \triangleleft } \subseteq {q_f}^{\triangleright \triangleleft }$
by Lemma 4.3. This is equivalent to
${\{q_f\}^{\triangleright }} \subseteq \{{t}_1,\ldots ,{t}_n \}^{\triangleright }.$
Since
$\leq _{\texttt{M}}$
is reflexive,
$q_f\in {\mathrm {Acc}}({\texttt{M}})$
and thus
so
$1\in \{q_f\}^{\triangleright }$
. Therefore,
$1\in \{{t}_1,\ldots ,{t}_n \}^{\triangleright }$
, that is
, so
. Hence
${t}_1,\ldots ,{t}_n\in {\mathrm {Acc}}({\texttt{M}})$
and by Lemma 3.4(2) we conclude
$u\in {\mathrm {Acc}}({\texttt{M}})$
.⊣
As a consequence of Lemma 4.4, if
$\mathcal {V}\subseteq \mathsf {RL} $
is a variety containing
$\textbf{W}_{\texttt{M}}^+$
, for some ACM
$\texttt{M}$
, then
$\{\mathrm {acc}_{\texttt{M}}({u}): {u}\in {\mathrm {Acc}}({\texttt{M}}) \}=\{\mathrm {acc}_{\texttt{M}}({u}): \mathcal {V}\models \mathrm {acc}_{\texttt{M}}({u})\}$
. Since
$\langle {\texttt{Q}}\cup \texttt{R}_k, {\texttt{P}_{\mathrm {com}}}\rangle $
is a finite presentation and all equations in
$\mathrm {acc}_{\texttt{M}}({u})$
have a common antecedent
$\& {\texttt{P}_{\mathrm {com}}}$
, the following is immediate:
Theorem 4.5. Let
${\texttt{M}}$
be an ACM and
$\mathbf{W}^+_{\texttt{M}}\in \mathcal {V}\subseteq \mathsf {RL} $
for a variety
$\mathcal {V}$
. Then deciding the word problem of
$\mathcal {V}$
is at least as hard as deciding membership in
${\mathrm {Acc}}({\texttt{M}})$
.
Corollary 4.6. If
$\mathcal {V}$
is a subvariety of
$\mathsf {RL} $
containing
$\mathbf{W}^+_{\texttt{M}}$
, where
${\texttt{M}}$
is an ACM such that membership in
${\mathrm {Acc}}({\texttt{M}})$
is undecidable, then
$\mathcal {V}$
has an undecidable word problem. In particular, any variety in the interval
$\mathsf {CRL}$
to
$\mathsf {RL}$
has undecidable word problem since
$\mathbf{W}_{\tilde {\texttt{M}}}^+\in \mathsf {CRL} $
, where
$\tilde {\texttt{M}}$
is the machine from Theorem 3.2.
The above results hold even for the
$\{\vee , \cdot , 1\}$
reducts of these varieties. Since
$\{\mathrm {acc}_{\texttt{M}}({u}): \mathcal {V}\models \mathrm {acc}_{\texttt{M}}({u})\}\subseteq \{\xi : \xi \text { is a quasieq. such that }\mathcal {V}\models \xi \}$
, we therefore also obtain the undecidability of the quasiequational theory. The quasiequational theories of
$\mathsf {RL}$
and
$\mathsf {CRL}$
alone were known to be undecidable; see [Reference Lambek9] and [Reference Lothaire11], respectively.
5 Equations in the signature
$\{\vee ,\cdot , 1\}$
and machine admissibility
Our goal is to find proper subvarieties of
$(\mathsf {C} )\mathsf {RL} $
for which Theorem 4.5 will be applicable, as well as strengthening this result to the undecidability of the equational theory for some proper subvarieties of
$\mathsf {CRL} .$
Since structural rules correspond to equations in the signature
$\{\vee ,\cdot , 1\}$
(see [Reference Galatos, Jipsen, Kowalski and Ono5]), we will restrict our attention to varieties axiomatized by such equations.
Since in residuated lattices multiplication distributes over joins, every equation over
$\{\vee ,\cdot ,1\}$
is equivalent to an equality between finite joins of monoid terms. This equality can in turn be written as two inequalities and in each one of them the joins on the left-hand side of the inequality yield a conjunction of inequalities of the form
$t_0\leq t_1\vee \cdots \vee t_l$
, where
$t_0,\ldots ,t_l\in X^*$
are monoid terms. We call equations of this form basic equations (or basic inequalities), if it is further true that the variable sets on the two sides of the inequality are the same. It can be easily shown that joinands on the right-hand side containing variables that do not appear on the left can be safely omitted, resulting in an equivalent equation. (In the case where all the joinands are of this form, the equation implies
$1 \leq x$
, so it defines the trivial variety) Furthermore, if there are variables that appear on the left and not on the right, then the inequality implies integrality (
$x \leq 1)$
. These claims are easy to prove and the needed instantiations are also mentioned on page 277 of [Reference Galatos and Jipsen4]. The trivial variety and variety axiomatized by integrality together with any set of
$\{\vee ,\cdot ,1\}$
-equations have the FEP, hence decidable universal (and quasiequational) theory. Therefore the restriction of the variables appearing on both sides does not leave out any unknown cases of (un)decidability. Via a process of linearization [Reference Galatos, Jipsen, Kowalski and Ono5] any basic equation is further equivalent to one where the term
$t_0$
is linear, namely to an equation of the form
$x_1\cdots x_n \leq \bigvee _{i=1}^k m_i, $
where
$k \geq 1$
,
$m_1,\ldots ,m_k\in X^*$
and
$x_1, \ldots , x_n$
are distinct elements of X. (For example the equation
$x^2 \leq x$
is equivalent to the linearized equation
$x_1 x_2 \leq x_1 \vee x_2$
) Such equations are called simple in [Reference Galatos, Jipsen, Kowalski and Ono5], but in this paper we will reserve the name simple equations of
$\mathsf {RL}$
for the subclass where the variable sets on the left- and the right-hand sides of the equation are equal.
When writing simple equations, we will be using the set of variables
$\{x_i : i \in \mathbb {Z}^+\}$
, and we will assume implicitly that this set is ordered by the natural order of the indices. We will informally use variables like
$x, y, z$
in some of the examples, as well. We also define
$\textbf{x}_{n} := (x_1, \ldots , x_n)$
, for all
$n \in \mathbb {Z}^+$
and for a tuple
$a\in \mathbb {N}^n$
of natural numbers, we define
$\textbf{x}_{n}^{a}=x_1^{a(1)}\cdots x_n^{a(n)}$
; we also define
$\textbf{x}_{n}^{\textbf{1}}=x_1\cdots x_n$
. For reasons that will be clear later, we will actually think of a as a column vector (as opposed to a row vector).
For a simple equation
$\varepsilon $
, we will be interested in its commutative version
$\varepsilon _{\mathcal {C}}$
, obtained from
$\varepsilon $
by rearranging the variables within each monoid term according to the natural ordering of their indices and removing any resulting duplicate joinands on the right-hand side. In particular,
$\mathsf {CRL} +\varepsilon \models \varepsilon _{\mathcal {C}}$
, and we call equations of the form
$\varepsilon _{\mathcal {C}}$
simple equations of
$\mathsf {CRL}$
. As the encodings for the undecidability are harder for commutative varieties than for arbitrary ones, by proving the results in the commutative case we obtain as corollaries results for general subvarieties of
$\mathsf {RL}$
. Therefore, we restrict ourselves to simple equations of
$\mathsf {CRL} $
and we will refer to them simply as simple equations. Such equations are of the form
where
$\mathrm {D}$
is a finite nonempty set of n-column vectors with entries in
$\mathbb {N}$
, such that the variable sets on the two sides are the same, namely there is no row such that all column vectors in
$\mathrm {D}$
are zero on that row. Note that because of the equality of the variable sets on the left and on the right and due to the idempotency of join in residuated lattices, every simple equation is fully determined by the set of joinands on its right-hand side. Our notation is chosen so that if
$\mathrm {D}$
is a set of n-columns, then
$[\mathrm {D}]$
denotes the simple equation displayed above (the exponents of the joinands on the right-hand side come from
$\mathrm {D}$
).
For the bigger class of basic equations of
$\mathsf {CRL}$
(which may not be linearized), if
$\mathrm {D}$
is again a nonempty set of column vectors and f a column vector over the positive integers, we denote by
$[f,\mathrm {D}]$
, the basic equation
The following theorem provides a link between simple equations that hold in
$\textbf{W}^+$
and conditions that hold in
$\textbf{W}$
.
Let
$(W,\cdot ,1)$
be a commutative monoid and
$[\mathrm {D}]$
a n-variable simple equation given by
$\mathrm {D}=\{d_j : 1 \leq j \leq m\}$
. If
is a residuated frame then we write
$\textbf{W}\models (\mathrm {D})$
iff for all
$\textbf{u}_{n}\in W^n$
and
$v\in W'$
, the following implication is satisfied (the premises above the line are understood conjunctively and the vertical line denotes the implication to the conclusion below):

For example if
$[\mathrm {D}]$
is
$x_1 x_1 \leq x_1 \vee x_2$
, then
$(\mathrm {D})$
is:
Theorem 5.1 [Reference Galatos, Jipsen, Kowalski and Ono5].
Let
$[\mathrm {D}]$
be a simple equation and suppose
$\mathbf{W}$
is a residuated frame. Then
$\mathbf{W}^+\models [\mathrm {D}]$
iff
$\mathbf{W}\models (\mathrm {D})$
.
5.1 Motivation for subvarieties of
$\mathsf {CRL}$
Recall from Example 3.3, that the computations of the
$1$
-ACM
${\texttt{M}}_{\mathrm {even}}$
leading to a final state are faithfully represented by the inequality relation of
$\mathsf {CRL} $
, in the sense that
$\mathsf {CRL} \models (\& {\texttt{P}} \Rightarrow u \leq q_f)$
iff
$u \in \mathrm {Acc}(\texttt{M})$
. If we consider the inequality relation in
$\mathsf {CRL} _{{\mathsf {s}}}$
, where
${\mathsf {s}}$
is the simple equation
$ x\leq x^2\vee x^4$
, we observe that for the computation relation of a machine to be faithfully represented by the associated inequality relation it must further admit the “ambient instruction” given by
for all
$t\in ({\texttt{Q}}_{\mathrm {even}}\cup \texttt{R}_1)^*$
in addition to being closed under the inference rules
$[\cdot ]$
and
$[\vee ]$
. Let
$\leq _{{\mathsf {s}} {\texttt{M}}_{\mathrm {even}}}$
be the smallest compatible preorder generated by
${{\texttt{P}}_{\mathrm {even}}}\cup \leq ^{\mathsf {s}}$
, and define
${\mathrm {Acc}}({\mathsf {s}} {\texttt{M}}_{\mathrm {even}})$
to be the set of accepted ID’s under the relation
$\leq _{{\mathsf {s}}{\texttt{M}_{\mathrm {even}}}}$
. It is clear that
${\mathrm {Acc}}({\texttt{M}}_{\mathrm {even}})\subseteq {\mathrm {Acc}}({\mathsf {s}} {\texttt{M}}_{\mathrm {even}})$
since
${\leq _{\texttt{M}_{\mathrm {even}}}}\subseteq {\leq _{\mathsf {s}\texttt{M}_{\mathrm {even}}}}$
, and since there are no instructions (nor instances of
$\leq ^{\mathsf {s}}$
) that remove state variables we obtain
${\mathrm {Acc}}({\mathsf {s}} {\texttt{M}}_{\mathrm {even}})\subseteq \texttt{ID}(\texttt{M}_{\mathrm {even}})$
. However, while
$q_0\texttt{r}_1^3 \not \in {\mathrm {Acc}}({\texttt{M}}_{\mathrm {even}})$
, we have
$q_0\texttt{r}_1^3 \in {\mathrm {Acc}}({\mathsf {s}} {\texttt{M}}_{\mathrm {even}})$
since
It is clear that the expansion of the machine by the ambient instruction (needed for representing the inequality relation in
$\mathsf {CRL} _{{\mathsf {s}}}$
) does not have the same computation relation, or put differently the machine
${\texttt{M}}_{\mathrm {even}}$
is not suitable for representing the inequality relation in
$\mathsf {CRL} _{{\mathsf {s}}}$
because these ambient instructions are not already admissible in it.
Likewise, there is no guarantee that there is a machine that has an undecidable acceptance problem (for example the machine
$\tilde {\texttt{M}}$
) and in which these ambient instructions are available/admissible. For that reason we cannot use the same argumentation to show that
$\mathsf {CRL} _{{\mathsf {s}}}$
has undecidable word problem.
Exactly the same issue occurs if the simple equation is contraction
${\mathsf {c}}:x \leq x^2$
. Actually, for the case of contraction not only does this particular encoding fail to be faithful, but there is no faithful encoding of an undecidable machine: the word problem for
$\mathsf {CRL} _{\mathsf {c}}$
is actually decidable [Reference Blok and Pigozzi17]. However, we will show that even though for the equation
${\mathsf {s}}$
above the current encoding is problematic (as is with contraction), surprisingly, unlike with contraction, there is a different encoding that works for
${\mathsf {s}}$
; this will allow us to prove that the word problem for
$\mathsf {CRL} _{{\mathsf {s}}}$
is undecidable. We present the idea of this new encoding by showing that it at least faithfully encodes the machine
${\texttt{M}}_{\mathrm {even}}$
. As we will see, what makes it work is that the new encoding is such that, even if they were available, the ambient instructions would not contribute to any more accepted configurations; this is a rephrasing of what we referred to as: the given equation is admissible in the particular machine.
The idea is to construct a new machine
${\texttt{M}}_K$
, for an appropriate integer K, as a modification of
${\texttt{M}}_{\mathrm {even}}$
that works at an exponential scale (with base K) compared to that of
${\texttt{M}}_{\mathrm {even}}$
. In particular,
${\texttt{M}}_K$
manages to replace the decrement instructions
$p_0: q_0 \texttt{r}_1 \leq q_1$
and
$p_1 : q_1 \texttt{r}_1 \leq q_0$
by programs (sets of instructions)
$\mathcal {P}_0$
and
$\mathcal {P}_1$
, respectively, that divide the contents of register
$\texttt{r}_1$
by the fixed constant K. For example, the general effect for
$p_0$
being
$q_0\texttt{r}_1^m\leq ^{p_0} q_1\texttt{r}_1^n$
iff
$m=n+1$
is mirrored by
$\mathcal {P}_0$
in the sense that
$q_0\texttt{r}_1^{M} \leq _{\mathcal {P}_0}q_1\texttt{r}_1^N$
iff
$M=K\cdot N$
, and consequently
$q_0\texttt{r}_1^{K^{n+1}} \leq _{\mathcal {P}_0}q_1\texttt{r}_1^{K^n}$
; therefore computations in
$\texttt{M}_{\mathrm {even}}$
are simulated in
$\texttt{M}_K$
by storing the contents of
$\texttt{r}_1$
by
$K^n$
instead of n. In this case, we will say a term is accepted if it computes a join of configurations of the form
$q_f\texttt{r}_1^{K^0}$
(i.e.,
$q_f\texttt{r}_1$
), so
$q_0\texttt{r}_1^n\in {\mathrm {Acc}}({\texttt{M}}_K)$
iff
$n=K^{2m}$
for some
$m\geq 0$
. Thereupon an additional necessary condition for acceptance in
$\texttt{M}_K$
is demanded for configurations labeled by a state
$q\in \texttt{Q}_{\mathrm {even}}$
(independently from the conditions of acceptance in
$\texttt{M}_{\mathrm {even}}$
) namely that if
$q\texttt{r}_1^N$
is accepted in
$\texttt{M}_K$
then N must be a power of K.Footnote
2
For the equation
${\mathsf {s}}$
, if we choose
$K> 2$
it is easily verified that if
${\mathsf {s}}$
is applied
the only way
$n+2m$
and
$n+4m$
are both powers of K is if
$m=0$
.Footnote
3
In such an instance, the configuration on the left-hand side of the equation appears as a joinand on the right-hand side. Consequently we see that, with respect to being accepted, instances of
$\leq ^{\mathsf {s}}$
in a computation are superfluous, and we obtain
thus
${\mathrm {Acc}}({\texttt{M}}_K) = {\mathrm {Acc}}({\mathsf {s}}{\texttt{M}}_K )$
. So, the equation
${\mathsf {s}}$
is admissible in the machine
${\texttt{M}}_K$
.
The reason why this works is that the effect of the inequality
${\mathsf {s}}$
, even when applied repeatedly, is to modify the register values in a linear or polynomial way, but when these values are encoded on an exponential scale the applications of the inequality do not produce modifications on the same scale and thus do not lead to final configurations.
More generally, consider an n-variable simple equation
$[\mathrm {D}]: \textbf{x}_{n}^{\textbf{1}} \leq \bigvee _{d \in \mathrm {D}} \textbf{x}_{n}^{d}$
. For
$[\mathrm {D}]$
to be admissible, and viewing
$[\mathrm {D}]$
as an ambient instruction, we need to consider all the substitution instances
$\textbf{t}_{n}^{\textbf{1}}\leq \bigvee _{d\in \mathrm {D}}\textbf{t}_{n}^d$
of
$[\mathrm {D}]$
, where the tuple of terms
$\textbf{t}_{n}=(t_1,\ldots , t_n)$
is given by a substitution
${\boldsymbol {\sigma }}: x_i \mapsto t_i$
, for all i. Then for any term s,
$s\textbf{t}_{n}^{\textbf{1}}\leq ^{\mathrm {D}} s\bigvee _{d\in \mathrm {D}}\textbf{t}_{n}^d$
is part of the computation that includes the ambient instructions coming from
$[\mathrm {D}]$
. It is shown in Lemma 6.5 that if
$[\mathrm {D}]$
does not have instances equivalent to a k-mingle equationFootnote
4
and
$s \bigvee_{d \in \textrm{D}} \textbf{t}^{d}_{n}$
is accepted in an ACM
$\texttt{M}$
, then the term s contains precisely one state variable and no term
$t_i$
contains any state variable. In the case where
$\texttt{M}$
is a
$1$
-ACM, for example
$\texttt{M}=\texttt{M}_{\mathrm {even}}$
, this implies that
$s=q\texttt{r}_1^{C}$
, for some state q and number C, and
${\boldsymbol {\sigma }}$
is a (1-variable) substitution with
${\boldsymbol {\sigma }}(x_i)= t_i= \texttt{r}_1^{\sigma (i)}$
, where
$\sigma $
is an n-tuple of natural numbers. Using the equality relation for
$\textbf{A}_{\texttt{M}}$
, this is equivalently written as
where
$\sigma d= \sigma (1)d(1)+ \cdots \sigma (n)d(n)$
and
$\sigma \textbf{1}= \sigma (1)+ \cdots \sigma (n)$
.
Admissibility of
$[\mathrm {D}]$
in such a 1-ACM
$\texttt{M}$
is the demand that if the right-hand side of the above inequality is accepted in
$\texttt{M}$
then the left-hand side is also accepted (thus making every instance of
$[\mathrm {D}]$
superfluous). The most naive and obvious way to ensure this is to ask that the left-hand side already appears as one of the joinands on the right-hand side; that is
$\sigma {\textbf{1}_{}}=\sigma \bar {d}$
for some
$\bar {d}\in \mathrm {D}$
, hence rendering the substitution instance of
$[\mathrm {D}]$
by
${\boldsymbol {\sigma }}$
trivial. Recall that in the case of the machine
$\texttt{M}_K$
constructed from
$\texttt{M}_{\mathrm {even}}$
, if a configuration
$q\texttt{r}_1^N$
is accepted in
$\texttt{M}_K$
then N must be some power of K. So, for
$[\mathrm {D}]$
to be admissible in
$\texttt{M}_K$
the most obvious condition to require is:
If the exponents in the right-hand side of
$[\mathrm {D}]$
produced by a 1-variable substitution are translated powers of K (by the same constant), then the substitution instance is trivial.
In symbolic terms this can be written as
$$\begin{align} \begin{array}{c} \text{If for some } \sigma\in\mathbb{N}^n \text{ and } C\in \mathbb{N},\\ \text{every } C+\sigma{d} \text{ is a power of } K, \text{ where } d\in \mathrm{D},\\ \text{then there exists } \bar{d}\in \mathrm{D} \text{ such that } \sigma{\bar{d}}= \sigma{\textbf{1}},\end{array} \end{align} $$
in which case we say that
$[\mathrm {D}]$
satisfies
$(\star K)$
. We also consider the condition
$(\star )$
: there exists
$K>1$
such that
$(\star K)$
holds.
In the following sections we will make rigorous the notion of admissibility and carefully construct the machines
${\texttt{M}}_K$
.
5.2 Spineless equations
We will now define a class of simple equations, for which their defining subvarieties will have an undecidable word problem. The class is so vast that it is easier to define its complement. We motivate the definition with the following observation.
Consider the machine
${\texttt{M}}_{\mathrm {even}}$
from Example 3.3, and the simple equation
${\mathsf {d}}: x\leq 1\vee x^2$
. As before, it is easy to see that
$q_0\texttt{r}_1^3\in {\mathrm {Acc}}({\mathsf {d}} {\texttt{M}}_{\mathrm {even}})\setminus {\mathrm {Acc}}({\texttt{M}}_{\mathrm {even}})$
. However, this behavior cannot be remedied by
${\texttt{M}}_K$
for any
$K>1$
. For example, let
$n = (K^4-K^2)/2$
, then
$q_0\texttt{r}_1^{K^2+n}\not \in {\mathrm {Acc}}({\texttt{M}}_K)$
since
$K^2+n\neq K^{2m}$
for any
$m\in \mathbb {N}$
. However,
By setting
$C=K^2$
and
$\sigma =(n)\in \mathbb {N}^1$
, this also demonstrates that
$(\star K)$
is not satisfied by
${\mathsf {d}}$
for any
$K>1$
, i.e.,
${\mathsf {d}}$
fails
$(\star )$
. In fact, we will show in Lemma 8.1 that this failure occurs not just for functions of the form
$n\mapsto K^n$
but actually for any function on
$\mathbb {N}$
with infinite range (in particular those that are actually computable).
The equation
${\mathsf {d}}$
is an example of a spinal equation and as explained above, unfortunately it cannot be handled by our work. In general, a basic equation
$[f,\mathrm {V}]$
is called spinal if it is of the form:
$$ \begin{align*}[f, \mathrm{V}]: \underbrace{x_1^{f(1)}\cdots x_k^{f(k)}}_{f} \leq \underbrace{(1\vee{})}_{v_0}~\underbrace{x_1^{v_1(1)}}_{v_1}\vee \underbrace{x_1^{v_2(1)}x_2^{v_2(2)}}_{v_2}\vee\cdots \vee \underbrace{x_{1}^{v_k(1)}\cdots x_k^{v_k(k)} }_{v_k},\end{align*} $$
where
$f\not \in \mathrm {V}$
,
$v_j(j)\neq 0$
, and
$v_i(j)=0$
for each
$0\leq i<j\leq k$
, and
$(1\vee )$
is meant to signify that
$1$
may or may not be included in the join. Note that if the column vectors of the set
$\mathrm {V}=\{(v_0,) v_1, \ldots , v_k\}$
are listed in the above order,
$\mathrm {V}$
becomes an upper-right triangular matrix whose diagonal contains only positive entries. In Corollary 8.2 we establish that spinal equations falsify the condition
$(\star K)$
for every
$K>1$
.
Definition 5.2. We say that a basic equation
$[f,\mathrm {V}]$
is spinal if
$f\not \in \mathrm {V}$
,
$v_i(i)\not =0$
, and
$v_i(j)=0$
, for all
$j> i$
, for all
$v_i$
in
$\mathrm {V}$
that are not constantly zero. In this case, we will refer to the set
$\mathrm {V}$
as a spine. We say that a simple equation is prespinal if it has a spinal equation as the image under some monoidal substitution.
From now on we will only consider monoidal substitutions (the image of every variable is a monoidal term, i.e., a product of variables) and we will refer to them simply as substitutions.
Note that the only one-variable spinal equations are the knotted inequalities
$x^n \leq x^m$
(for which we know that they define subvarieties of
$\mathsf {CRL}$
with decidable quasiequational theory) and their variants
$x^n \leq 1 \vee x^m$
, where
$n\neq m$
, for which decidability results are still open.Footnote
5
Also, their equivalent simple equations are prespinal, as verified below in Lemma 5.4. As a consequence of the definition, a simple equation
$[\mathrm {D}]$
is prespinal if and only if
$[\mathrm {D}\cup \{{\textbf{0}}\}]$
is prespinal.
From Table 1, we see that (i) and (ii) are spinal. The simple equation (vi) is prespinal via the
$1$
-variable substitution
${\boldsymbol {\sigma }}$
given by
${\boldsymbol {\sigma }}(x)=x$
,
${\boldsymbol {\sigma }}(y)=x$
, and
${\boldsymbol {\sigma }}(z)=1$
, i.e.,
$\mathsf {CRL} +\mbox {(vi)}\models x^2\leq x$
. On the other hand, no trivial equations are prespinal. The general characterization of whether a simple equation is prespinal will be addressed in Section 8, where it is verified that (iii)–(v) in Table 1 are not prespinal right after Theorem 8.6.
Some simple equations viewed as sets of column vectors.

Definition 5.3. A simple equation is called spineless if it is not prespinal. A simple equation
$\varepsilon $
for
$\mathsf {RL} $
is called spineless if
$\varepsilon _{\mathcal {C}}$
is spineless.
To demonstrate the vastness of the collection of spineless equations, we will focus our attention only on
$1$
-variable basic equations below. Note that every one-variable basic equation has the form
for some
$n>0$
and for some finite subset P of
$\mathbb {N}$
such that
$P\not = \{0\}$
; we denote such an equation by
$[n,P]$
. Also, note that
$[n,P]$
is trivial iff
$n \in P$
.
Lemma 5.4. Let
$[n,P]$
be a
$1$
-variable basic equation. Then the linearization of
$[n,P]$
is a spineless simple equation iff
$[n,P]$
is trivial or P contains at least two distinct positive integers.
Proof. The simple equation resulting from the linearization over
$\mathsf {CRL}$
of
$[n,P]$
is
$$ \begin{align} [\mathrm{D}]: \textbf{x}_{n}^{\textbf{1}}\leq \bigvee\left\{\textbf{x}_{n}^d:{d\in \mathbb{N}^n}, \sum_{i=1}^n d(i) \in P \right\}, \end{align} $$
and is equivalent over
$\mathsf {CRL}$
to
$ [n,P]$
.Footnote
6
We prove the contraposition for each direction. For the forward direction, if
$P=\{p\}$
, where
$0<p \not = n$
, then
$[n,P]$
is spinal by definition and hence
$[\mathrm {D}]$
is prespinal by its obvious substitution to
$[n,P]$
:
$x_i\mapsto x$
, for all i.
For the reverse direction, suppose that
$[n,P]$
is nontrivial and P contains distinct positive numbers
$p>q$
. Then for each
$i\leq n$
, the terms
$x_i^p$
and
$x_i^{q}$
appear as joinands on the right-hand side of
$[\mathrm {D}]$
. Let
${\boldsymbol {\sigma }}$
be a monoidal substitution that is non-trivializing for
$[\mathrm {D}]$
. Then for some
$i\leq n$
,
${\boldsymbol {\sigma }}: x_i\mapsto w$
for some monoid term
$w\neq 1$
. So both
$w^p$
and
$w^{q}$
appear as joinands on the right-hand side of
${\boldsymbol {\sigma }}[\mathrm {D}]$
. Since
$p>q>0$
,
$w^p\neq 1\neq w^{q}$
, and
$\mathsf {CRL}\not \models w^p= w^{q}$
, so
${\boldsymbol {\sigma }}[\mathrm {D}]$
is not spinal, as
$w^p$
and
$w^q$
contain the same variables. Since
${\boldsymbol {\sigma }}$
was arbitrary, it follows that
$[n,P]$
is spineless.⊣
In the following sections we undertake a deep analysis of spineless equations, culminating in Corollary 8.14. To highlight this result, we (re)state it here and we use it right afterwards, in Section 5.3, to obtain results (Theorem 5.9) about the equational theory.
Theorem 5.5. Let
$\Gamma $
be a finite set of spineless simple equations, then any variety between
$\mathsf {CRL} +\Gamma $
and
$\mathsf {RL} $
has an undecidable word problem.
5.3 From quasiequations to equations in
$\mathsf {CRL}$
In this section we exploit the fact that in certain varieties certain quasiequations are equivalent to equations to show that even their equational theory is undecidable, making use of Theorem 5.5.
The negative cone of a residuated lattice
$\textbf{A}$
is the set
$A^-=\{a\in A: a\leq 1\}$
. We will say that a subvariety
$\mathcal {V}$
of
$\mathsf {CRL} $
is negatively n-potent if the negative cone of each algebra in
$\mathcal {V}$
is n-potent, i.e.,
$\mathcal {V}\models (x\wedge 1)^n= (x\wedge 1)^{n+1}$
(or equivalently,
$\mathcal {V}\models (x\wedge 1)^n\leq (x\wedge 1)^{n+1}$
).
Let t be a term and S be a finite set of terms in the language of
$\mathsf {CRL} $
. It can be easily verified thatFootnote
7
If
$\mathcal {V}\subseteq \mathsf {CRL} $
is a negatively n-potent variety, then we obtainFootnote
8
$$ \begin{align} (\exists m\in\mathbb{N})(\exists s_1,\ldots,s_m\in S) ~\mathcal{V}\models\prod_{i=1}^m (1\wedge s_i)\leq t \iff\mathcal{V}\models (1\wedge\bigwedge S)^n\leq t. \end{align} $$
We consider the following quasiequation and equation:
In this way we establish the fact that satisfaction of a quasiequation in a negatively n-potent subvariety of
$\mathsf {CRL} $
is equivalent to the satisfaction of a corresponding equation.
Lemma 5.6. If
$\mathcal {V}$
is a negatively n-potent subvariety of
$\mathsf {CRL} $
and
$S\cup \{t\}$
a finite set of terms in the language of
$\mathcal {V}$
, then
Proof. Let
$\textbf{F}_{\mathcal {V}}$
be the free algebra for
$\mathcal {V}$
, and define the congruence
$C:=\mathrm {Cg}(\{(1\wedge s, s): s\in S \})$
. We denote the quotient algebra by
$\textbf{F}_{\mathcal {V}}/C$
. For a subset X of
$\mathrm {F}_{\mathcal {V}}^-$
, we denote by
$M(X)$
the convex normal submonoid of
$\mathrm {F}_{\mathcal {V}}^-$
generated by X.Footnote
9
Observe that
$$ \begin{align*}\begin{array}{ l c l l } & \iff & \text{in } \textbf{F}_{\mathcal{V}}/C, [1\wedge t]_C = [1]_C & \\ & \iff & \mbox{in } \textbf{F}_{\mathcal{V}}, (1\wedge t)\in M(\{ 1\wedge s: s\in S \}) &[6] \\ &\iff &\mbox{in } \textbf{F}_{\mathcal{V}}, (\exists m\in\mathbb{N})(\exists s_1,\ldots,s_m\in S) ~\prod_{i=1}^m (1\wedge s_i)\leq t &[6] \\ &\iff &(\exists m\in\mathbb{N})(\exists s_1,\ldots,s_m\in S) ~ \mathcal{V}\models \prod_{i=1}^m (1\wedge s_i)\leq t &\\ &\iff & \mathcal{V}\models (1\wedge\bigwedge S)^n\leq t &\text{Equation } (6). \end{array}\\[-2.8pc] \end{align*} $$
⊣
For an inequality
$p: s\leq t$
, define the term
$p^{\to }:= s\to t$
. Let
${\texttt{M}}=(\texttt{R}_k,{\texttt{Q}},{\texttt{P}},q_f)$
be an ACM. Define
${\texttt{P}}^{\to }:=\{p^{\to }: p\in {\texttt{P}}\}.$
Then for
${u}\in A_{{\texttt{M}}}$
, the quasiequation
$\mathrm {acc}_{\texttt{M}}({u})$
is equivalent to
$\xi _{{\texttt{P}}^{\to }}({u}\to q_f)$
. By Lemma 5.6 and Theorem 4.5, we obtain the following:
Theorem 5.7. Let
$\mathcal {V}$
be a subvariety of
$\mathsf {CRL} $
containing
$\mathbf{W}_{\texttt{M}}^+$
, for some k-ACM
${\texttt{M}}$
and satisfying
$(x\wedge 1)^n\leq (x\wedge 1)^{n+1}$
for some
$n\geq 1$
. Then deciding membership in the equational theory of
$\mathcal {V}$
is at least as hard as deciding membership in
${\mathrm {Acc}}({\texttt{M}})$
.
We say a simple equation
$\varepsilon $
is expansive if it has, as a substitution instance, an equation of the form
$$ \begin{align}x^n \leq \bigvee_{j=1}^m x^{n+c_j}, \end{align} $$
for some
$n,m\geq 1$
and
$c_1,\ldots ,c_m\geq 1$
. It is easy to verify that if
$\varepsilon $
is expansive then
$\mathsf {CRL}+\varepsilon $
is negatively n-potent. We say a variety is expansive if it satisfies an expansive equation. As a consequence of Lemma 5.4, if a simple equation is the equivalent linearization of an expansive basic equation where
$m\geq 2$
then it is spineless. By the theorem above and Theorem 4.5 we obtain the following:
Corollary 5.8. Let
$\mathcal {V}$
be an expansive subvariety of
$\mathsf {CRL} $
containing
$\mathbf{W}_{\texttt{M}}^+$
, for some ACM
${\texttt{M}}$
. Then deciding membership in the equational theory of
$\mathcal {V}$
is at least as hard as deciding membership in
${\mathrm {Acc}}({\texttt{M}})$
.
In particular, we prove the following theorem as a consequence of Theorem 5.5 and the corollary above.
Theorem 5.9. If
$\Gamma $
is a finite set spineless simple equation containing an expansive equation then variety
${\mathsf {CRL} +\Gamma }$
has an undecidable equational theory.
6 Admissibility
We now begin investigating the required features that a machine should have, in order to achieve the exponential encoding. We begin by formalizing the notion of admissibility and its two natural parts.
Let
${\texttt{M}}=(\texttt{R}_k,{\texttt{Q}},{\texttt{P}}, q_f)$
be a k-ACM and
$[\mathrm {D}]$
a n-variable simple equation. We define the relation
$\leq ^{\mathrm {D}}$
to be the smallest relation containing
for all
$\textbf{t}_{n}\in (({\texttt{Q}}\cup \texttt{R}_k)^*)^n$
, and closed under the inference rules
$[\cdot ]$
and
$[\vee ]$
. We define the computation relation
$\leq _{\mathrm {D} {\texttt{M}}}$
as the smallest compatible preorder generated by
${\texttt{P}}\cup {\leq }^{\mathrm {D}}$
, and set
${\mathrm {Acc}}(\mathrm {D} {\texttt{M}}):=\{u\in A_{\texttt{M}}: \exists {\texttt{u}}_f\in {\texttt{Fin}}({\texttt{M}}),~u\leq _{\mathrm {D} {\texttt{M}}} {\texttt{u}}_f\}.$
The construction of
$\leq _{\mathrm {D}\texttt{M}}$
enjoys an analogue to Lemma 3.1(2), and therefore the following analogue to Lemma 3.4(2):
Lemma 6.1. Let
${\texttt{M}}$
be an ACM and
$[\mathrm {D}]$
be a simple equation. For all
${u},{v}\in A_{\texttt{M}}$
,
${u}\vee {v}\in {\mathrm {Acc}}({\mathrm {D}\texttt{M}})$
if and only if
${u}\in {\mathrm {Acc}}({\mathrm {D}\texttt{M}})$
and
${v}\in {\mathrm {Acc}}({\mathrm {D}\texttt{M}})$
.
The frame
$\textbf{W}_{\mathrm {D} {\texttt{M}}}$
is defined as
$\textbf{W}_{ {\texttt{M}}}$
, but the nuclear relation is defined with respect to
${\mathrm {Acc}}({\mathrm {D}\texttt{M}})$
instead of
${\mathrm {Acc}}({\texttt{M}})$
.
Lemma 6.2. If
${\texttt{M}}$
is an ACM and
$[\mathrm {D}]$
a simple equation, then
$\mathbf{W}_{\mathrm {D} {\texttt{M}}}^+\in \mathsf {CRL} +[\mathrm {D}]$
.
Proof. Let
$[\mathrm {D}]$
be an n-variable simple equation where
$\mathrm {D}=\{d_1, \ldots , d_m\}$
. It is enough to show that
$\textbf{W}_{\mathrm {D} {\texttt{M}}}^+\models [\mathrm {D}]$
. By Theorem 5.1, this is equivalent to showing
$\textbf{W}_{\mathrm {D} \texttt{M}}\models (\mathrm {D})$
, i.e., for all
$s \in W$
,
$\textbf{t}_{n}\in W^n$
,

If the antecedent of the implication holds, by the definition of
$\mathit {N}_{\mathrm {D} {\texttt{M}}}$
and
$\leq _{\mathrm {D} {\texttt{M}}}$
and by Lemma 6.1 we obtain
Now, by the definition of
$\leq _{\mathrm {D} {\texttt{M}}}$
,
hence
$s \textbf{t}_{n}^{\textbf{1}} \in {\mathrm {Acc}}{(\mathrm {D} {\texttt{M}})} $
and
$\textbf{t}_{n}^{\textbf{1}} ~\mathit {N}_{\mathrm {D} {\texttt{M}}}~ s$
. Therefore
$\textbf{W}_{\mathrm {D} {\texttt{M}}}^+ \models [\mathrm {D}].$
⊣
Since
${\leq }_{\texttt{M}} \subseteq {\leq }_{\mathrm {D} {\texttt{M}}}$
, it follows that
${\mathrm {Acc}}({\texttt{M}})\subseteq {\mathrm {Acc}}(\mathrm {D}{\texttt{M}})$
. We say a simple equation
$[\mathrm {D}]$
is admissible in a machine
${\texttt{M}}$
if
${\mathrm {Acc}}({\texttt{M}}) = {\mathrm {Acc}}(\mathrm {D} {\texttt{M}})$
. As the only difference between
$\textbf{W}_{ {\texttt{M}}}$
and
$\textbf{W}_{\mathrm {D} {\texttt{M}}}$
is
${\mathrm {Acc}}({\texttt{M}})$
and
${\mathrm {Acc}}(\mathrm {D} {\texttt{M}})$
, if
$[\mathrm {D}]$
is admissible in
$\texttt{M}$
then
$\textbf{W}^+_{\texttt{M}} = \textbf{W}^+_{\mathrm {D} {\texttt{M}}}$
. Therefore by Lemma 6.2 we obtain the following lemma:
Lemma 6.3. If a simple equation
$[\mathrm {D}]$
is admissible in
${\texttt{M}}$
, then
$\mathbf{W}^+_{\texttt{M}} \in \mathsf {CRL}+[\mathrm {D}].$
As we will see, admissibility in
${\texttt{M}}$
depends on the machine
${\texttt{M}}$
as well as the equation
$[\mathrm {D}]$
. We define the intermediate notions register-admissibility and state-admissibility to make this distinction clear.
For a given ACM
${\texttt{M}}=(\texttt{R}_k,{\texttt{Q}},{\texttt{P}},q_f)$
and n-variable simple equation
$[\mathrm {D}]$
, we define
$\leq ^{{\mathrm {D}}\texttt{R}}$
to be the smallest relation containing,
for all
$\textbf{x}_{n}\in (\texttt{R}_k^*)^n$
, and closed under the inference rules
$[\cdot ]$
and
$[\vee ]$
. Define the new computation relation
$\leq _{{{\mathrm {D}}\texttt{R}} {\texttt{M}}}$
to be the smallest compatible preorder generated by
${\texttt{P}}\cup {\leq }^{{{\mathrm {D}}\texttt{R}}}$
, and set
${\mathrm {Acc}}({{\mathrm {D}}\texttt{R}} {\texttt{M}}):=\{u\in A_{\texttt{M}}: \exists {\texttt{u}}_f\in {\texttt{Fin}}({\texttt{M}}),~u\leq _{{{\mathrm {D}}\texttt{R}} {\texttt{M}}} {\texttt{u}}_f\}$
. Since the effect of
$[\mathrm {D}]$
is restricted to only register terms in
$\leq ^{\mathrm {D}\texttt{R}}$
, by the same argument as Lemma 3.4(1), it follows that
${\mathrm {Acc}}({\mathrm {D}}\texttt{R} {\texttt{M}})\subseteq \texttt{ID}(\texttt{M})$
.
It is clear then that
${\mathrm {Acc}}({{\mathrm {D}}\texttt{R}} {\texttt{M}})\subseteq {\mathrm {Acc}}(\mathrm {D} {\texttt{M}})$
, since
${\leq }^{{\mathrm {D}}\texttt{R}}$
is merely a restriction of
${\leq }^{\mathrm {D}}$
. In total, we obtain
If
${\mathrm {Acc}}({\texttt{M}})={\mathrm {Acc}}({{\mathrm {D}}\texttt{R}} {\texttt{M}})$
, then we say
$[\mathrm {D}]$
is register-admissible in
${\texttt{M}}$
. If
${\mathrm {Acc}}({{\mathrm {D}}\texttt{R}} {\texttt{M}})= {\mathrm {Acc}}(\mathrm {D} {\texttt{M}})$
, we say
$[\mathrm {D}]$
is state-admissible in
${\texttt{M}}$
. Hence
$[\mathrm {D}]$
is admissible in
${\texttt{M}}$
iff
$[\mathrm {D}]$
is both register and state-admissible in
${\texttt{M}}$
. Due to the property that instructions in an ACM replace a single state-variable of a configuration by precisely one state-variable, we show in Lemma 6.5 that state-admissibility is a property of the equation
$[\mathrm {D}]$
independent of the machine
${\texttt{M}}$
.
6.1 State-admissibility for spineless equations
We say that a simple equation
$[\mathrm {D}]$
is mingly if there exists a one-variable substitution
${\boldsymbol {\sigma }}$
such that
${\boldsymbol {\sigma }} [\mathrm {D}] : x^{\lambda } \leq \bigvee _{d \in \mathrm {D}} x$
for some
$\lambda>1$
. That is, if
$[\mathrm {D}]$
is an equation in n-variables,
${\boldsymbol {\sigma }} (\textbf{x}_{n}^{\textbf{1}})=x^{\lambda }$
and
${\boldsymbol {\sigma }} (\textbf{x}_{n}^{d})=x$
, for all
$d \in \mathrm {D}$
.
Of course, this is equivalent over
$\mathsf {RL}$
to
$x^{\lambda } \leq x$
, but since we do not assume idempotency of
$\vee $
in
$\textbf{A}_{\texttt{M}}$
, we write
$ x^{\lambda } \leq \bigvee _{d \in \mathrm {D}} x$
so as to be explicit about the implementation of the equation in computations.
By definition, mingly equations are prespinal. Equation (vi) from Table 1 is mingly, using the substitution witnessing it is prespinal, while the remaining equations can easily be verified to be not mingly.Footnote 10 Since mingly equations are prespinal by definition, we obtain the following result.
Lemma 6.4. A spineless equation is non-mingly.
As we will be dealing only with spineless equations, the equations we will consider are not mingly. The following lemma shows that only mingly equations invalidate state-admissibility and also that state-admissibility is independent of the choice of the machine.
Lemma 6.5. The following are equivalent for any
${\texttt{M}}$
and simple equation
$[\mathrm {D}]$
.
-
1.
$[\mathrm {D}]$
is state-admissible in
${\texttt{M}}$
. -
2.
${\mathrm {Acc}}{(\mathrm {D} {\texttt{M}})}\subseteq \texttt{ID}(\texttt{M})$
. -
3.
$[\mathrm {D}]$
is not mingly.
Proof. Assume
$\texttt{M}=(\texttt{R}_k,\texttt{Q},\texttt{P},q_f)$
and let
$[\mathrm {D}]$
be an n-variable simple equation.
(
$1\Rightarrow 2$
) We have that
${\mathrm {Acc}}(\mathrm {D} {\texttt{M}})={\mathrm {Acc}}({\mathrm {D}}\texttt{R} {\texttt{M}})\subseteq \texttt{ID}(\texttt{M})$
.
(
$2\Rightarrow 3$
) Proceeding by contraposition, suppose
$[\mathrm {D}]$
is mingly. Then
$x^{\lambda } \leq \bigvee _{d \in \mathrm {D}} x$
is a direct substitution image of
$[\mathrm {D}]$
, for
$\lambda>1$
. For
$x=q_f$
, we have
Since
$\lambda>1$
, it follows that
$q_f^{\lambda }\not \in \texttt{ID}(\texttt{M}).$
(
$3\Rightarrow 1$
) Proceeding by contraposition, suppose
${\mathrm {Acc}}({{\mathrm {D}}\texttt{R}} {\texttt{M}})$
is a proper subset of
${\mathrm {Acc}}(\mathrm {D} {\texttt{M}})$
and let
$t\in {\mathrm {Acc}}(\mathrm {D} {\texttt{M}})\setminus {\mathrm {Acc}}({{\mathrm {D}}\texttt{R}} {\texttt{M}})$
be a witness with minimal computation
for some
$u_0, u_1,\ldots ,u_N\in A_{\texttt{M}}$
and
$p_1,\ldots ,p_N\in {\texttt{P}}\cup \{\mathrm {D}\}$
. Since
${\texttt{Fin}}({\texttt{M}})\subseteq {\mathrm {Acc}}({{\mathrm {D}}\texttt{R}} {\texttt{M}})$
, we have that
$t\not \in {\texttt{Fin}}({\texttt{M}})$
and so
$N>1$
. By Lemma 6.1, we may assume
$t\in ({\texttt{Q}}\cup \texttt{R}_k)^*$
. Since N is minimal, it follows that
$p_1 =\mathrm {D} $
and
$u_1\in {\mathrm {Acc}}({{\mathrm {D}}\texttt{R}} {\texttt{M}})\subseteq \texttt{ID}(\texttt{M})$
. So,
where
$s\in ({\texttt{Q}}\cup \texttt{R}_k)^*$
and
$\textbf{t}_{n}\in (({\texttt{Q}}\cup \texttt{R}_k)^*)^n$
; here we used the fact that the rule
$[\vee ]$
is not applicable, as
$t\in ({\texttt{Q}}\cup \texttt{R}_k)^*$
.
Since
$u_1\in \texttt{ID}(\texttt{M})$
, it follows that
$s\textbf{t}_{n}^d\in \texttt{Conf}(\texttt{M})$
for all
$d\in \mathrm {D}$
. Also, because
$p_1\neq \mathrm {D}\texttt{R}$
, there is some
$t_i$
that contains at least one state variable. As that
$t_i$
must also appear on the right-hand side and
$s\textbf{t}_{n}^{\textbf{1}} \in \texttt{Conf}(\texttt{M})$
, it follows that s cannot contain any state variable, so
$s \in \texttt{R}_k^*$
. Consequently, every joinand in the right-hand side has a unique
$t_i$
containing a state variable.
Therefore, applying the substitution
${\boldsymbol {\sigma }}$
defined by:
${\boldsymbol {\sigma }}(x_i)=x$
if
$t_i$
contains a state variable and
${\boldsymbol {\sigma }}(x_i)=1$
otherwise, yields
$x^{\lambda } \leq x$
, where
$\lambda $
is the number of
$t_i$
’s containing a state variable.
We will show that
$\lambda> 1$
. If, by way of contradiction, there was a unique
$t_j$
containing a state variable, then it would have the form
$t_j=qx$
for some
$q\in {\texttt{Q}}$
and
$x\in \texttt{R}_k^*$
(with
$t_i\in \texttt{R}_k^*$
for all other
$t_i$
’s) and
$t_j$
would appear on all the joinands on the right-hand side. So, we have
$$ \begin{align*} t=sqx\prod_{i\not = j} t_i \leq^{\mathrm{{\mathrm{D}}\texttt{R}}}\bigvee_{d\in\mathrm{D}} sqx\prod_{i\not = j}^n{ t_i}^{d(i)}=u_1\in {\mathrm{Acc}}({\mathrm{D}}\texttt{R} {\texttt{M}}), \end{align*} $$
and thus
$t\in {\mathrm {Acc}}({\mathrm {D}}\texttt{R} {\texttt{M}}),$
a contradiction.⊣
Therefore, in our search for an appropriate machine for spineless equations, state-admissibility will be automatic and will not restrict the type of possible machines.
7 The exponential encoding
Given a
$2$
-ACM
${\texttt{M}}=(\texttt{R}_2,{\texttt{Q}},{\texttt{P}}, q_f)$
(we will later choose as
${\texttt{M}}$
a machine with undecidable halting problem) and simple equation
$[\mathrm {D}]$
, our ultimate goal is to construct a new machine
${\texttt{M}}'$
“simulating” the machine
${\texttt{M}}$
such that
${\mathrm {Acc}}(\mathrm {D} {\texttt{M}}' ) = {\mathrm {Acc}}({\texttt{M}}')$
. More specifically, for any spineless equation
$[\mathrm {D}]$
we can construct a 3-ACM
${\texttt{M}}_K=(\texttt{R}_3,{\texttt{Q}}_K,{\texttt{P}}_K, q_F)$
for which it will be register-admissible, for some
$K>1$
provided by Theorem 8.10, that will simulate the behavior of the 2-ACM
${\texttt{M}}$
in the following way:
So, the content n of a register
$\texttt{r}$
is not represented by
$\texttt{r}^{n}$
but by
$\texttt{r}^{K^n}$
. Computationally, this will be achieved by replacing each increment-
$\texttt{r}$
(decrement-
$\texttt{r}$
) instruction by a distinct set of instructions (i.e., a program) that will carry out the process of multiplying (dividing) the contents in register
$\texttt{r}$
by K. The auxiliary register
$\texttt{r}_3$
will be necessary to carry out such computations, and the faithfulness of this encoding will be guaranteed by the insistence that accepted configurations are those which have a computation resulting in a finite join of configurations labeled by state
$q_F$
where all the registers are empty.
We will first show how we can achieve multiplying the contents of a register
$\texttt{r} \in \texttt{R}_2$
by a fixed constant
$K>1$
. Let
$\texttt{Q}_{+K}=\{a_0,\ldots ,a_K\}$
be a set of
$(K+1)$
-many fresh state-variables. We can add K tokens to the contents of the auxiliary register
$\texttt{r}_3$
by starting from the state
$a_0$
and applying the instructions
$\texttt{P}_{+K}=\{+_i : i=1,\ldots ,K \}$
, where
$+_i: a_{i-1}\leq a_i\texttt{r}_3$
, and reaching state
$a_K$
. Then for each
$0\leq i<K$
, we have
where
$\leq _{+K}$
is the computation relation defined in the usual way from
$\texttt{P}_{+K}$
. Hence
$a_0x\leq _{+K} a_Ky$
iff
$y=x\texttt{r}_3^K$
, for each
$x,y\in \texttt{R}_3^*$
.
Now, if we have N tokens in register
$\texttt{r}$
and we are at state
$a_K$
, then by removing one
$\texttt{r}$
-token, moving to state
$a_0$
by the instruction
$\times _{\mathrm {loop}}: a_K\texttt{r}\leq a_0$
, and using
$\texttt{P}_{+K}$
to add
$K \ \texttt{r}_3$
-tokens and repeating this process, we can essentially exchange
$N \ \texttt{r}$
-tokens for
$NK \ \texttt{r}_3$
-tokens. For example,
If we set
$\leq _{\times \texttt{r}}$
to be the computation relation defined from
$\texttt{P}_{\texttt{r}\times K}=\texttt{P}_{+K}\cup \{\times _{\mathrm {loop}} \}$
, then it is easily verified by induction that for each
$N,M,n,m\in \mathbb {N}$
and
$0\leq i \leq K $
:
$$ \begin{align} \begin{array}{r c l} a_K \texttt{r}^N \leq_{\times\texttt{r}} a_i \texttt{r}^n \texttt{r}_3^m &\iff & KN=Kn + m + (K-i),\\ a_i\texttt{r}^n \texttt{r}_3^m\leq_{\times\texttt{r}} a_K\texttt{r}_3^M &\iff& M=Kn+m + (K-i). \end{array} \end{align} $$
Observe that multiplying the contents of register
$\texttt{r}$
is achieved by an iterative process of adding K-many tokens to
$\texttt{r}_3$
and then looping the process by removing one from
$\texttt{r}$
. We can define a division program analogously. However, in both cases, we start with tokens in
$\texttt{r}$
and compute the product (or quotient) by K in the register
$\texttt{r}_3$
by emptying
$\texttt{r}$
. We would then like our machine to transfer those contents back to the original register
$\texttt{r}$
to complete this program.
Let
$\texttt{T}_{\texttt{r}}$
be the program with fresh states
$\texttt{Q}_{\texttt{T}_{\texttt{r}}}=\{t_0,t_1 \}$
and instructions
$\texttt{P}_{\texttt{T}_{\texttt{r}}}=\{T_-,T_+ \}$
given by
$T_-: t_0\texttt{r}_3\leq t_1$
and
$T_+: t_1\leq t_0\texttt{r}$
. Defining its computation relation to be
$\leq _{\texttt{T}_{\texttt{r}}}$
, we easily obtain for all
$N,M,n,m\in \mathbb {N}$
:
$$ \begin{align} \begin{array}{r c l} t_0 \texttt{r}_3^N \leq_{\texttt{T}_{\texttt{r}}} t_{\delta} \texttt{r}^n\texttt{r}_3^m &\iff &N=n+m+\delta, \\ t_{\delta} \texttt{r}^n\texttt{r}_3^m\leq_{\texttt{T}_{\texttt{r}}} t_0\texttt{r}^M&\iff& n+m+\delta=M. \end{array} \end{align} $$
If we wish to implement the transfer program after, say, executing the program for multiplying by K, then we need an instruction to switch from the state
$a_0$
to the state
$t_0$
. This can naively be achieved by a forking instruction, say
$p:a_K\leq t_0$
,Footnote
11
which would allow for the computation
However, since the instruction p can be applied to any configuration labeled by
$a_K$
, even those for which the register
$\texttt{r}$
is nonempty, we also get unwanted instances of the form
$a_K\texttt{r}^N\leq t_0\texttt{r}^{M}$
where
$M=Km+N-m$
for each
$0\leq m\leq N$
. Since we want our simulation to be faithful, we need a way of switching to the transfer program only when the register
$\texttt{r}$
is empty.
7.1 The zero-test program
What we are asking for is similar to (what is commonly called) a zero-test instruction of a standard counter machine, i.e., an instruction which is applicable only when a specified register is empty. Since we require our computation relations to be compatible with multiplication, such an insistence is impossible. That is, we insist
$q\leq q'$
to entail
$qx\leq q'x$
for any term x.
However, following the ideas in [Reference Lothaire11], we construct a program that has a similar behavior utilizing the insistence that accepted configurations are those that compute final ID’s, i.e., finite joins of the configuration labeled by a final state
$q_F$
with all registers empty.
We define the (sub-)machine
${\unicode{xf8} }=(\texttt{R}_3,{\texttt{Q}}_{\unicode{xf8} }, {\texttt{P}}_{\unicode{xf8} },q_F)$
, with a fresh set of variables
${\texttt{Q}}_{\unicode{xf8} } = \{z_1,z_2,z_3,q_F\}$
and instructions
${\texttt{P}}_{\unicode{xf8} }$
are given by:
$$ \begin{align*}\begin{array}{ l c r c l } {{\unicode{xf8}}^i_j}&:&z_i \texttt{r}_j&\leq& z_i, \\ {{\unicode{xf8}}^i_F}&:& z_i&\leq& q_F\vee q_F, \end{array}\end{align*} $$
for each
$i, j\in \{1,2,3\}$
with
$i \not = j$
, resulting in a total of
$6+3=9$
instructions.
The addition of the auxiliary states
$z_1, z_2, z_3$
is explained by the fact that the role of
$z_i$
is to empty the contents of all registers other than
$\texttt{r}_i$
and transition to the final state
$q_F$
. Thus it detects situations where
$\texttt{r}_i$
is not already empty, as then it cannot reach a final ID. So, assuming we want to move from state
$q_{\mathrm {in}}$
to
$q_{\mathrm {out}}$
only when the register
$\texttt{r}_i$
is empty, we can start a parallel computation, the main branch of which moves to state
$q_{\mathrm {out}}$
(even if
$\texttt{r}_i$
is non-empty) but the auxiliary branch involving the
$z_i$
terminates successfully only if
$\texttt{r}_i$
is empty. This
$z_i$
-branch ensures/safeguards that the combined computation acts as intended.
We call the above machine the zero-test program, and we denote its computation relation by
$\leq _{\unicode{xf8} }$
. The zero-test program for a register
$\texttt{r}_i$
is implemented by a zero-test
$\texttt{r}_i$
instruction p, where p is of the form
$q_{\mathrm {in}} \leq q_{\mathrm {out}}\vee z_i$
. Since the desired final ID’s of
${\texttt{M}}_K$
will consist of only joins of the configuration
$q_F$
, i.e., all registers are empty, the above instruction copies the contents of the registers and creates two paths; one path with the state
$q_{\mathrm {out}}$
where
$\texttt{r}_i$
is intended to be empty, and the second with a state
$z_i$
where the program
${\unicode{xf8} }$
is intended to empty registers
$\texttt{r}_j$
and
$\texttt{r}_k$
and then output to the final state. Below is an example of implementing the zero-test on register
$\texttt{r}_1$
via the instruction
$p:q_{\mathrm {in}}\leq q_{\mathrm {out}}\vee z_1$
on the configuration
$q_{\mathrm {in}} \texttt{r}_1\texttt{r}_2\texttt{r}_3$
:
$$ \begin{align*}\begin{array} {r l l} q_{\mathrm{in}} \texttt{r}_1\texttt{r}_2\texttt{r}_3 &\leq^{p}&q_{\mathrm{out}} \texttt{r}_1\texttt{r}_2\texttt{r}_3\vee z_1\texttt{r}_1\texttt{r}_2\texttt{r}_3 \\ &\leq^{{\unicode{xf8}}^1_2}&q_{\mathrm{out}} \texttt{r}_1\texttt{r}_2\texttt{r}_3\vee z_1\texttt{r}_1\texttt{r}_3 \\ &\leq^{{\unicode{xf8}}^1_3}&q_{\mathrm{out}} \texttt{r}_1\texttt{r}_2\texttt{r}_3\vee z_1\texttt{r}_1 \\ &\leq^{{\unicode{xf8}}^1_F}&q_{\mathrm{out}} \texttt{r}_1\texttt{r}_2\texttt{r}_3\vee q_F\texttt{r}_1 \vee q_F\texttt{r}_1. \end{array}\end{align*} $$
As we see, the above (maximal in
$\unicode{xf8} )$
computation detected that register
$\texttt{r}_1$
is not empty in the configuration
$q\texttt{r}_1\texttt{r}_2\texttt{r}_3$
since the final ID contains the configuration
$q_F\texttt{r}_1$
, and there are no
$q_F$
-instructions. In fact,
$z_1\texttt{r}_1\texttt{r}_2\texttt{r}_3\not \in {\mathrm {Acc}}(\unicode{xf8} )$
since there is no instruction applicable to the state
$z_1$
which alters the contents of register
$\texttt{r}_1$
. By a similar analysis, we obtain the following:
Lemma 7.1.
$z_i\texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3}\in {\mathrm {Acc}}(\unicode{xf8} )$
if and only if
$n_i=0$
.
Let
$\mathcal {P}$
be a program (i.e., a sub-machine) and
$\leq _{\mathcal {P}}$
be its corresponding computation relation. We define the relation
$\sqsubseteq _{\mathcal {P}}$
on
$\texttt{Conf}({\mathcal {P}})$
via
${\texttt{C}}\sqsubseteq _{\mathcal {P}} {\texttt{C}'}$
iff
${\texttt{C}}\leq _{\mathcal {P}} {\texttt{C}'}\vee u$
, where either
$u=\bot $
or
$u\in \mathrm {ID}({\unicode{xf8} }) $
with
$u\in {\mathrm {Acc}}(\unicode{xf8} )$
.Footnote
12
If
$\mathcal {P}$
contains no
${\texttt{Q}}_{\unicode{xf8} }$
-instructions (i.e., no instruction
$z_ix\leq \cdots $
), then
${\texttt{C}}\sqsubseteq _{\mathcal {P}}{\texttt{C}'}$
iff there is a computation from
${\texttt{C}}$
to
${\texttt{C}'}\vee u$
with instructions from
$\mathcal {P}$
such that every zero-test was properly applied. Note that
$\sqsubseteq _{\mathcal {P}}$
is transitive on configurations and
${\texttt{C}}\leq _{\mathcal {P}} {\texttt{C}'}$
implies
${\texttt{C}}\sqsubseteq _{\mathcal {P}} {\texttt{C}'}$
. We obtain the following lemma.
Lemma 7.2. Let p be the instruction
$q_{\mathrm {in}}\leq q_{\mathrm {out}}\vee z_i$
with distinct
$q_{\mathrm {in}}, q_{\mathrm {out}}\not \in {\texttt{Q}}_{\unicode{xf8} }$
. For
$x,x'\in \texttt{R}_3^*$
,
$q_{\mathrm {in}} x \sqsubseteq _{\{p\}} q_{\mathrm {out}} x'$
if and only if
$x=x'=\texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3}$
and
$n_i=0$
.
Proof. Let
$x=\texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3}$
. The only instruction applicable to
$q_{\mathrm {in}} x$
is p, so from
$q_{\mathrm {in}}\leq q_{\mathrm {out}}\vee z_i$
we obtain
$q_{\mathrm {in}} x\leq ^p q_{\mathrm {out}} x\vee z_i x$
. Since the only instructions applicable are those from
$\{p\}$
and
$q_{\mathrm {in}}\neq q_{\mathrm {out}}$
, the computation cannot proceed from this configuration. Hence by Lemma 7.1,
⊣
7.2 Multiplying and dividing
We are now ready to faithfully simulate an increment-
$\texttt{r}$
instruction by a program that multiplies the contents of register
$\texttt{r} \in \{\texttt{r}_1, \texttt{r}_2\}$
by the fixed constant K. For
$p: q_{\mathrm {in}}\leq q_{\mathrm {out}} \texttt{r}$
, we define the program
${\times }(p)$
to have states
$\texttt{Q}_{\times (p)}=\texttt{Q}_{+K}\cup \texttt{Q}_{\texttt{T}_{\texttt{r}}}$
and instructions
$\texttt{P}_{\times (p)}=\texttt{P}_{+K}\cup \texttt{P}_{\texttt{T}_{\texttt{r}}}\cup \{\times _{\mathrm {in}}, \times _{\texttt{T}},\times _{\mathrm {out}} \}$
, where
$$ \begin{align*}\begin{array}{l c r c l } {\times_{\mathrm{in}}}&:& q_{\mathrm{in}} &\leq& a_K\vee z_3, \\ {\times_{\texttt{T}}} &:& a_K &\leq& t_0\vee z_i, \\ {\times_{\mathrm{out}}} &:& t_0&\leq& q_{\mathrm{out}} \vee z_3. \end{array}\end{align*} $$
The instruction
$\times _{\mathrm {in}}$
is intended to verify that the auxiliary register
$\texttt{r}_3$
is in fact empty, and initiate the process of storing in
$\texttt{r}_3 \ K$
-times the contents in the active register
$\texttt{r}$
. The instruction
$\times _{\texttt{T}}$
is meant to check that all the contents of the active register
$\texttt{r}$
have been emptied (and thus K-times that amount is in
$\texttt{r}_3$
), and initiate the transfer program. The instruction
$\times _{\mathrm {out}}$
is intended to end the program by transitioning to the state
$q_{\mathrm {out}}$
only when the transfer is complete, i.e., when
$\texttt{r}_3$
has been emptied. Below is an example of
$\times (q_{\mathrm {in}}\leq q_{\mathrm {out}} \texttt{r}_1)$
running on the configuration
$q_{\mathrm {in}} \texttt{r}_1^2\texttt{r}_2$
:
$$ \begin{align*}\begin{array}{r l l} q_{\mathrm{in}} \texttt{r}_1^2\texttt{r}_2 & \sqsubseteq_{\{\times_{\mathrm{in}}\}}& a_K\texttt{r}_1^2 \texttt{r}_2\\ &\leq_{\times_{\texttt{r}_1}}& a_K\texttt{r}_2\texttt{r}_3^{2K}\\ &\sqsubseteq_{\{\times_{\texttt{T}}\}} &t_0\texttt{r}_2\texttt{r}_3^{2K}\\ &\leq_{\texttt{T}_{\texttt{r}_1}}&t_0 \texttt{r}_1^{2K}\texttt{r}_2\\ &\sqsubseteq_{\{ \times_{\mathrm{out}}\}}&q_{\mathrm{out}} \texttt{r}_1^{2K}\texttt{r}_2. \end{array}\end{align*} $$
In this way, we obtain the following technical lemma by induction as a consequence of Lemma 7.2 and Equations (8) and (9). We state the lemma for
$\texttt{r}=\texttt{r}_1$
, but the same holds when swapping the roles of
$\texttt{r}_1$
and
$\texttt{r}_2$
.
Lemma 7.3. Let
$p: q_{\mathrm {in}}\leq q_{\mathrm {out}}\texttt{r}_1$
be an increment-
$\texttt{r}_1$
instruction, where
$q_{\mathrm {in}}, q_{\mathrm {out}} \not \in \texttt{Q}_{\times (p)}$
. Then
if and only if
$M_1=KN_1$
,
$M_2=N_2$
, and
$M_3=N_3=0$
. In fact, for each
$n_1,n_2,n_3\in \mathbb {N}$
and state
$q\in \texttt{Q}_{\times (p)} $
,
-
1.
$q_{\mathrm {in}} \texttt{r}_1^{N_1}\texttt{r}_2^{N_2}\texttt{r}_3^{N_3} \sqsubseteq _{\times (p)} q\texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3}$
iff
$N_3=0$
,
$N_2=n_2$
, and
$$ \begin{align*}KN_1 = \left\{\begin{array}{r l} n_1+n_3+\delta & \mbox{if } q=t_{\delta} \mbox{ where } \delta\in \{0,1\},\\ Kn_1+n_3+(K-\delta) & \mbox{if }q=a_{\delta} \mbox{ where } 0\leq \delta\leq K. \end{array}\right.\end{align*} $$
-
2.
$q\texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3} \sqsubseteq _{\times (p)} q_{\mathrm {out}} \texttt{r}_1^{M_1}\texttt{r}_2^{M_2}\texttt{r}_3^{M_3} $
iff
$M_3=0$
,
$M_2=n_2$
, and
$$ \begin{align*}M_1 = \left\{\begin{array}{r l} n_1+n_3+\delta & \mbox{if } q=t_{\delta} \mbox{ where } \delta\in \{0,1\},\\ Kn_1+n_3+(K-\delta) & \mbox{if }q=a_{\delta} \mbox{ where } 0\leq \delta\leq K. \end{array}\right.\end{align*} $$
For a configuration
$\texttt{C}=q\texttt{r}_1^n\texttt{r}_2^m$
in
$\texttt{M}$
, by
$\texttt{C}_K$
we denote the configuration
$q\texttt{r}_1^{K^n}\texttt{r}_2^{K^m}$
in
$\texttt{M}_K$
.
Corollary 7.4. Let p be an increment instruction from some
$2$
-ACM
$\texttt{M}$
. Then
$\texttt{C}\leq ^p\texttt{C}'$
if and only if
$\texttt{C}_K\sqsubseteq _{\times (p)}\texttt{C}^{\prime }_K$
for any configurations
$\texttt{C},\texttt{C}'$
in
$\texttt{Conf}(\texttt{M})$
.
In a completely analogous way, given a decrement-
$\texttt{r}$
instruction
$p:q_{\mathrm {in}}\texttt{r}\leq q_{\mathrm {out}} $
, we define the division by K program
$\div (p)$
as follows. For its set of states
$\texttt{Q}_{\div (p)}$
, we define a fresh set of states
$\texttt{Q}_{\texttt{r}-K}=\{s_0,\ldots ,s_K \}$
and set
$\texttt{Q}_{\div (p)}=\texttt{Q}_{\texttt{r}-K}\cup \texttt{Q}_{\texttt{T}_{\texttt{r}}}$
. We take as its instructions
$\texttt{P}_{\div (p)}= \texttt{P}_{\texttt{r}-K}\cup \texttt{P}_{\texttt{T}_{\texttt{r}}}\cup \{\div _{\mathrm {in}},\div _{\texttt{T}},\div _{\mathrm {out}} \}$
, where
$\texttt{P}_{\texttt{r}-K}$
contains the instruction
$\div _{\mathrm {loop}}: s_K\leq s_0\texttt{r}_3$
and K-many instructions of the form
$-_i:s_{i-1}\texttt{r}\leq s_i $
, for
$1\leq i\leq K$
, and finally
$$ \begin{align*}\begin{array}{l c r c l} {\div_{\mathrm{in}}}&:& q_{\mathrm{in}} &\leq& s_0\vee z_3, \\ {\div_{\texttt{T}}} &:& s_0 &\leq& t_0\vee z_i, \\ {\div_{\mathrm{out}}} &:& t_0&\leq& q_{\mathrm{out}} \vee z_3. \end{array}\end{align*} $$
The instruction
$\div _{\mathrm {in}}$
is intended to verify that the auxiliary register
$\texttt{r}_3$
is in fact empty, and initiate the process of storing in
$\texttt{r}_3$
the quotient by K of the contents in the active register
$\texttt{r}$
. The instruction
$\times _{\texttt{T}}$
is meant to check that all the contents of the active register
$\texttt{r}$
have been emptied (and thus K-divided by that amount is in
$\texttt{r}_3$
), and initiate the transfer program. The instruction
$\div _{\mathrm {out}}$
is intended to end the program transitioning to the state
$q_{\mathrm {out}}$
only when the transfer is complete, i.e., when
$\texttt{r}_3$
has been emptied. Below is an example of
$\div (q_{\mathrm {in}}\texttt{r}_1\leq q_{\mathrm {out}})$
running on the configuration
$q_{\mathrm {in}} \texttt{r}_1^{2K}\texttt{r}_2$
:
$$ \begin{align*}\begin{array}{r l l} q_{\mathrm{in}} \texttt{r}_1^{2K}\texttt{r}_2 & \sqsubseteq_{\{\div_{\mathrm{in}}\}}& s_0\texttt{r}_1^{2K} \texttt{r}_2\\ &\leq_{\texttt{r}_1-K}& s_K\texttt{r}_1^K\texttt{r}_2\\ &\leq^{\div_{\mathrm{loop}}}& s_0\texttt{r}_1^K\texttt{r}_2\texttt{r}_3\\ &\leq_{\texttt{r}_1-K}& s_K\texttt{r}_2\texttt{r}_3\\ &\leq^{\div_{\mathrm{loop}}}& s_0\texttt{r}_2\texttt{r}_3^2\\ &\sqsubseteq_{\{\div_{\texttt{T}}\}} &t_0\texttt{r}_2\texttt{r}_3^{2}\\ &\leq_{\texttt{T}_{\texttt{r}_1}}&t_0 \texttt{r}_1^{2}\texttt{r}_2\\ &\sqsubseteq_{\{ \div_{\mathrm{out}}\}}&q_{\mathrm{out}} \texttt{r}_1^{2}\texttt{r}_2. \end{array}\end{align*} $$
The following technical lemma is easily verified by induction. We state the lemma for
$\texttt{r}=\texttt{r}_1$
, but the same holds by swapping the roles of
$\texttt{r}_1$
and
$\texttt{r}_2$
.
Lemma 7.5. Let
$p: q_{\mathrm {in}}\texttt{r}_1\leq q_{\mathrm {out}}$
be a decrement-
$\texttt{r}_1$
instruction. Then
if and only if
$KM_1=N_1>0$
,
$M_2=N_2$
, and
$M_3=N_3=0$
. In fact, for each
$n_1,n_2,n_3\in \mathbb {N}$
and state
$q\in \texttt{Q}_{\div (p)} $
,
-
1.
$q_{\mathrm {in}} \texttt{r}_1^{N_1}\texttt{r}_2^{N_2}\texttt{r}_3^{N_3} \sqsubseteq _{\div (p)} q\texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3}$
iff
$N_3=0$
,
$N_2=n_2$
, and
$$ \begin{align*}N_1 = \left\{\begin{array}{r l} n_1+n_3+\delta & \mbox{if } q=t_{\delta} \mbox{ where } \delta\in \{0,1\}, \\ Kn_1+n_3+(K-\delta) & \mbox{if }q=s_{\delta} \mbox{ where } 0\leq \delta\leq K. \end{array}\right.\end{align*} $$
-
2.
$q\texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3} \sqsubseteq _{\times (p)} q_{\mathrm {out}} \texttt{r}_1^{M_1}\texttt{r}_2^{M_2}\texttt{r}_3^{M_3} $
iff
$M_3=0$
,
$M_2=n_2$
, and
$$ \begin{align*}KM_1 = \left\{\begin{array}{r l} n_1+n_3+\delta & \mbox{if } q=t_{\delta} \mbox{ where } \delta\in \{0,1\},\\ Kn_1+n_3+(K-\delta) & \mbox{if }q=s_{\delta} \mbox{ where } 0\leq \delta\leq K. \end{array}\right.\end{align*} $$
Corollary 7.6. Let p be a decrement instruction from some
$2$
-ACM
$\texttt{M}$
and
$\texttt{C},\texttt{C}'$
be configurations in
$\texttt{M}$
. Then
$\texttt{C}\leq ^p\texttt{C}'$
if and only if
$\texttt{C}_K\sqsubseteq _{\div (p)}\texttt{C}^{\prime }_K$
.
Corollary 7.7. Assume that
$p:q_{\mathrm {in}}\texttt{r}\leq q_{\mathrm {out}}$
is a decrement instruction,
$\texttt{C}_{\mathrm {in}}$
is a
$q_{\mathrm {in}}$
-configuration,
$\texttt{C}$
is a
$\texttt{Q}_{\div (p)}$
-configuration, and
$\texttt{C}_{\mathrm {out}}$
is
$q_{\mathrm {out}}$
-configuration. If
$\texttt{C}_{\mathrm {in}}\sqsubseteq _{\div (p)}\texttt{C}$
and
$\texttt{C}_{\mathrm {in}}\sqsubseteq _{\div (p)} \texttt{C}_{\mathrm {out}}$
, then
$\texttt{C}\sqsubseteq _{\div (p)}\texttt{C}_{\mathrm {out}}$
.
Proof. Since
$\texttt{C}_{\mathrm {in}}\sqsubseteq _{\div (p)}\texttt{C}$
and
$\texttt{C}_{\mathrm {in}}\sqsubseteq _{\div (p)} \texttt{C}_{\mathrm {out}}$
, by Lemma 7.5 the values of
$\texttt{C}_{\mathrm {in}}$
and
$\texttt{C}$
, as well as the values of
$\texttt{C}_{\mathrm {in}}$
and
$\texttt{C}_{\mathrm {out}}$
are linked. Therefore, the values of
$\texttt{C}_{\mathrm {out}}$
and
$\texttt{C}$
are also linked and hence by Lemma 7.5 we obtain
$\texttt{C}\sqsubseteq _{\div (p)}\texttt{C}_{\mathrm {out}}$
.⊣
7.3 Construction of
${\texttt{M}}_K$
Let
$\texttt{M}=(\texttt{R}_2,\texttt{Q},\texttt{P},q_f)$
be a
$2$
-ACM and let
$K>1$
be an integer. Since the configuration
$q_f$
is accepted in
$\texttt{M}$
by definition, we will need
$(q_f)_K=q_f\texttt{r}_1\texttt{r}_2$
to be accepted in
$\texttt{M}_K$
. To accommodate this, we define the end program as follows. For a fresh variable
$c_F$
, we define the set of states
${\texttt{Q}}_F=\{c_F\}$
and the set of instructions
${\texttt{P}}_F=\{F_1,F_2\}$
by:
By
$\leq _F$
we denote the computation relation for the end program.
Lemma 7.8. For
$q\in \texttt{Q}_{F}\cup \{q_f\}$
,
$q\texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3}\leq _F q_F$
if and only if
$n_3=0$
and
$$ \begin{align*} (n_1,n_2)=\left\{\begin{array}{rl} (1,1)&\text{if } q=q_f, \\ (0,1) &\text{if } q=c_F, \\ (0,0) &\text{if } q=q_F. \end{array}\right.\end{align*} $$
We write the instructions
$\texttt{P}$
of
$\texttt{M}$
as the disjoint union
$\texttt{P}_+\cup \texttt{P}_-\cup \texttt{P}_{\vee }$
of its increment, decrement, and forking instructions, respectively. We can now formally define the
$3$
-ACM simulation of
$\texttt{M}$
to be the machine
${\texttt{M}}_K=(\texttt{R}_3,\texttt{Q}_K,\texttt{P}_K,q_F)$
, where
-
•
$\texttt{Q}_K$
is the (disjoint) union of
$\texttt{Q}$
,
$\texttt{Q}_{\unicode{xf8} }$
,
$\texttt{Q}_{F}$
,
$\texttt{Q}_{\times (p)}$
for each
${p\in \texttt{P}_+}$
, and
$\texttt{Q}_{\div (p)}$
for each
$p\in \texttt{P}_-$
. -
•
$\texttt{P}_K$
is the (disjoint) union of
$\texttt{P}_{\vee }$
,
$\texttt{P}_{\unicode{xf8} }$
,
$\texttt{P}_{F}$
,
$\texttt{P}_{\times (p)}$
for each
${p\in \texttt{P}_+}$
, and
$\texttt{P}_{\div (p)}$
for each
${p\in \texttt{P}_-}$
. -
•
$q_F$
is the final state of
$\texttt{M}_K$
.
Formally, we view all states and instructions in some multiply/divide program
$\mathcal {P}(p)$
(where p is an increment/decrement instruction from
$\texttt{M}$
) as being labeled by the instruction p, e.g., a state from
$\texttt{Q}_{\mathcal {P}(p)}$
is of the form
$q^p$
, and an instruction
$\texttt{P}_{\mathcal {P}(p)}$
is of the form
$\rho ^p$
. In other words, we make states and instructions in each subprogram disjoint. In fact, since there are no instructions in
$\mathcal {P}(p)$
of the form
$\cdots \leq q_F\cdots $
, we obtain the following useful observation.
Lemma 7.9. Let p be an increment or decrement instruction from
$\texttt{M}$
and
$\mathcal {P}(p)$
its corresponding program in
$\texttt{M}_K$
. If
$\texttt{C}$
is a configuration in
$\texttt{M}_K$
labeled by a state from
$\texttt{Q}_{\mathcal {P}(p)}$
then the only instructions applicable to
$\texttt{C}$
are those from
$\texttt{P}_{\mathcal {P}(p)}$
. Furthermore, if
$q_{\mathrm {out}}$
is the output state of p, then
$\texttt{C}$
being accepted in
$\texttt{M}_K$
implies
$\texttt{C}\sqsubseteq _{\mathcal {P}(p)} \texttt{C}'\in \mathrm {Acc}(\texttt{M}_K)$
, where
$\texttt{C}'$
is labeled by
$q_{\mathrm {out}}$
.
Recall, for a configuration
$\texttt{C}=q\texttt{r}_1^n\texttt{r}_2^m$
in
$\texttt{M}$
, by
$\texttt{C}_K$
that we denote the configuration
$q\texttt{r}_1^{K^n}\texttt{r}_2^{K^m}$
in
$\texttt{M}_K$
.
Lemma 7.10. The following hold for any 2-ACM
$\texttt{M}=(\texttt{R}_2,\texttt{Q},\texttt{P},q_f)$
and
$K>1$
.
-
1. A configuration
$\texttt{C}$
is accepted in
$\texttt{M}$
iff
$\texttt{C}_K$
is accepted in
$\texttt{M}_K$
. Furthermore, any accepted configuration in
$\texttt{M}_K$
labeled by a state from
$\texttt{Q}$
must be of the form
$\texttt{C}_K$
where
$\texttt{C}$
is accepted in
$\texttt{M}$
. -
2. Let p be an increment or decrement instruction of
$\texttt{M}$
and
$\texttt{C}$
a configuration of the corresponding program
$\mathcal {P}(p) \ (\mathcal {P}\in \{\times ,\div \})$
. Then
$\texttt{C}$
is accepted in
$\texttt{M}_K$
iff there are accepted configurations
$\texttt{C}',\texttt{C}"$
in
$\texttt{M}$
such that
$\texttt{C}'\leq ^p\texttt{C}"$
and
$\texttt{C}^{\prime }_K\sqsubseteq _{\mathcal {P}(p)} \texttt{C}\sqsubseteq _{\mathcal {P}(p)} \texttt{C}^{\prime \prime }_K$
.
Proof. For (1), let
$\texttt{C}$
be a configuration in
$\texttt{M}$
. Since there are no
$q_f$
-instructions in
$\texttt{M}$
by definition, if
$\texttt{C}$
is labeled by state
$q_f$
then it is accepted in
$\texttt{M}$
iff
$\texttt{C}=q_f$
, i.e., both registers
$\texttt{r}_1$
and
$\texttt{r}_2$
are empty. By definition, the only
$q_f$
-instructions in
$\texttt{M}_K$
are those found in the end program. By Lemma 7.8, the only accepted configuration in
$\texttt{M}_K$
labeled by
$q_f$
is
$\texttt{C}_K$
. Now, suppose p is a q-instruction from
$\texttt{M}$
. Clearly, if p is a forking instruction, then
$\texttt{C}\leq ^p \texttt{C}'\vee \texttt{C}"$
in
$\texttt{M}$
iff
$\texttt{C}_K\leq ^p \texttt{C}^{\prime }_K\vee \texttt{C}_K"$
. Otherwise, p is an increment or decrement instruction, and by Corollaries 7.4 and 7.6,
$\texttt{C}\leq ^p \texttt{C}'$
in
$\texttt{M}$
iff
$\texttt{C}_K\sqsubseteq _{\mathcal {P}(p)} \texttt{C}_K'$
in
$\texttt{M}_K$
. The claim therefore follows by induction on the computation lengths.
For (2), consider a configuration
$\texttt{C}$
in
$\texttt{M}_K$
labeled by a state from some program
$\mathcal {P}(p)$
, where p is an increment or decrement instruction from
$\texttt{M}$
. Let
$q_{\mathrm {in}}$
and
$q_{\mathrm {out}}$
be the input and output states of p, respectively. By Lemma 7.9, we conclude that if a computation witnesses
$\texttt{C}$
being accepted in
$\texttt{M}_K$
it must implement the output instruction of
$\mathcal {P}(p)$
. That is
$\texttt{C}\sqsubseteq _{\mathcal {P}(p)}q_{\mathrm {out}} \texttt{r}_1^{n_1}\texttt{r}_2^{n_2}\texttt{r}_3^{n_3}$
. By (1),
$n_1$
and
$n_2$
are powers of K while
$n_3=0$
. By Lemmas 7.3 and 7.5, the result follows.⊣
Let
$\tilde {\texttt{M}}$
be the 2-ACM given by Theorem 3.2. Since membership of
${\mathrm {Acc}}(\tilde {\texttt{M}})$
is undecidable, we obtain the following consequence of Lemma 7.10(1):
Corollary 7.11. Membership in the set
${\mathrm {Acc}}(\tilde {\texttt{M}}_K)$
is undecidable for
$K>1$
.
7.4 Register-admissibility in
$\texttt{M}_K$
Consider an n-variable simple equation
$[\mathrm {D}]$
, a
$2$
-ACM
$\texttt{M}$
, and an integer
$K>1$
. To show the register-admissibility of
$[\mathrm {D}]$
in
$\texttt{M}_K$
, we need only show that for each configuration
$\texttt{C}$
in
$\texttt{M}_K$
, if the ID
$\bigvee _{d\in \mathrm {D}} \texttt{C}_d$
is obtained by an instance of
$\leq ^{{\mathrm {D}}\texttt{R}}$
from
$\texttt{C}$
and
$\bigvee _{d\in \mathrm {D}} \texttt{C}_d$
is accepted in
$\texttt{M}_K$
, then
$\texttt{C}$
is accepted in
$\texttt{M}_K$
. By Lemma 3.4(2), this implication is equivalently stated as
Since we are only considering applications of
$[\mathrm {D}]$
to the register contents, we can split our analysis into cases depending upon the state
$q\in \texttt{Q}_K$
that labels the configurations. The following useful observation follows from the fact that every variable that appears on the right-hand side of a simple equation appears also on the left-hand side.
Lemma 7.12. If a substitution sends all the joinands of a simple equation to
$1$
, then it sends all variables of the equation to
$1$
.
In the following for two tuples
$\sigma $
and d of the same length,
$\sigma d$
denotes their dot product. In the next section we will actually view
$\sigma $
as a row-matrix and d as a column-matrix, so
$\sigma d$
will be their matrix product. In this way, focusing on the list/column vector d of exponents of the variables in
$[\mathrm {D}]$
and also on the list/row vector
$\sigma $
of the exponents of the images of the variables via a one-variable substitution, the above lemma can be stated as: for an n-variable simple equation
$[\mathrm {D}]$
, if
$\sigma d = 0$
for each
$d\in \mathrm {D}$
, then
$\sigma $
must be the constantly zero vector
$\textbf{0}\in \mathbb {N}^n$
.
As observed in Section 5.1, if
$\texttt{C} \leq ^{{\mathrm {D}}\texttt{R}} \bigvee _{d\in \mathrm {D}} \texttt{C}_d$
is an instance of
$\leq ^{{\mathrm {D}}\texttt{R}}$
, we may write
$\texttt{C}=qx\textbf{x}_{n}^{\textbf{1}}$
and
$\texttt{C}_d=qx\textbf{x}_{n}^{d}$
for each
$d\in \mathrm {D}$
, where
$x\in \texttt{R}_3^*$
and
$\textbf{x}_{n}=(x_1,\ldots ,x_n)\in (\texttt{R}_3^*)^n$
. Let
$x=\texttt{r}_1^{C_1}\texttt{r}_2^{C_2}\texttt{r}_3^{C_3}$
, where
$C_1,C_2,C_3\geq 0$
, and for each
$j\in \{1,2,3\}$
, define
${\sigma }_j\in \mathbb {N}^n$
via
$x_i=\texttt{r}_1^{{\sigma }_1(i)}\texttt{r}_2^{{\sigma }_2(i)}\texttt{r}_3^{{\sigma }_3(i)}$
, for each
$i\in \{1,\ldots ,n\}$
. Then,
and for each
$d\in \mathrm {D}$
,
Lemma 7.13. The zero-test program is register-admissible for any simple equation, and the end program is register-admissible for any non-mingly simple equation.
Proof. Let
$[\mathrm {D}]$
be a simple equation. If q is the final state
$q_F$
, then
$\texttt{C}_d$
is accepted iff all registers are empty, i.e.,
${\texttt{C}}_d=q_F$
for each
$d\in \mathrm {D}$
. Hence
$x=1$
and
$ {\sigma }_j d=0$
for each
$d\in \mathrm {D}$
and
$j\in \{1,2,3\}$
. For each
$j\in \{1,2,3\}$
, this implies that
${\sigma }_j={\textbf{0}}$
, by Lemma 7.12. Therefore
${\texttt{C}}=q_F\in {\mathrm {Acc}}({\texttt{M}}_K)$
.
Suppose
$q=z_i$
, and without loss of generality, let
$i=3$
. By Lemma 7.1,
$\texttt{C}_d$
is accepted iff register
$\texttt{r}_3$
is empty, i.e.,
${\texttt{C}}_d\in {\mathrm {Acc}}(\unicode{xf8} )$
iff
$C_3+ {\sigma }_3 {d}= 0$
, for each
$d\in \mathrm {D}$
. This implies
$C_3=0$
and
$ {\sigma }_3 d=0$
, for each
$d\in \mathrm {D}$
. So by Lemma 7.12,
${\sigma }_3 = {\textbf{0}}$
. Hence
$C_3+ {\sigma }_3{\textbf{1}_{}} = 0$
and
${\texttt{C}}\in {\mathrm {Acc}}(\unicode{xf8} )\subseteq {\mathrm {Acc}}({\texttt{M}}_K)$
.
Lastly, suppose
$q=c_F$
. By Lemma 7.8,
${\texttt{C}}_d\in {\mathrm {Acc}}(F)$
iff
${\texttt{C}}_d=c_F\texttt{r}_2$
. Hence
$C_1=C_3=0$
,
$ {\sigma }_1{d} = {\sigma }_3{d} = 0$
for each
$d\in \mathrm {D}$
, and
$C_2+ {\sigma }_2{d} =1$
. Again, by Lemma 7.12,
${\sigma }_1={\sigma }_3 = {\textbf{0}}$
. Let
$\lambda =\sigma _2 \textbf{1}_{}$
. Then
$\lambda $
is positive since
$[\mathrm {D}]$
is a simple equation. If
$\lambda =1$
, then
$\texttt{C}=c_F\texttt{r}_2$
and we are done. If
$\lambda \neq 1$
then
$\sigma _2$
is a substitution witnessing that
$[\mathrm {D}]$
is mingly.⊣
Now, suppose
$\texttt{C}$
is labeled by a state
$q\in \texttt{Q}$
from
$\texttt{M}$
. By Lemma 7.10,
$\texttt{C}_d$
is accepted in
$\texttt{M}_K$
only if the contents of the registers
$\texttt{r}_1, \texttt{r}_2$
are each powers of K and the register
$\texttt{r}_3$
is empty. That is,
$C_1+\sigma _1d$
and
$C_2+\sigma _2d$
are powers of K and
$C_3+\sigma _3d=0$
. On the one hand, Lemma 7.12 ensures that
$\sigma _3$
is the zero vector and
$C_3=0$
, and so
$\texttt{r}_3$
is empty in
$\texttt{C}$
.
By the motivation in Section 5.1, a natural condition to consider would be to stipulate that
$[\mathrm {D}]$
satisfies
$(\star K)$
. In such a case, if
$C_1+\sigma _1d$
is a power of K for each
$d\in \mathrm {D}$
then there exists
$\bar {d}\in \mathrm {D}$
such that
$\sigma _1\textbf{1}_{}=\sigma _1\bar {d}$
. Similarly, if
$C_2+\sigma _2d$
is a power of K for each
$d\in \mathrm {D}$
, then there exists
${\bar {d}}'\in \mathrm {D}$
such that
$\sigma _1\textbf{1}_{}=\sigma _1{\bar {d}}'$
. However, there is no reason a priori that entails
$\bar {d}={\bar {d}}'$
and thus
$\texttt{C} \in \{ \texttt{C}_d:d\in \mathrm {D}\},$
which would be sufficient to ensure that
$\texttt{C}$
would be accepted if
$\bigvee _{d\in \mathrm {D}} \texttt{C}_d$
were accepted.
Since the most naive and obvious way to ensure acceptance is to ask that the left-hand side
$\texttt{C}$
appears as one of the joinands
$\texttt{C}_d$
on the right-hand side, it is sufficient to stipulate that
$[\mathrm {D}]$
satisfies the following condition:
If the exponents of each variable in the right-hand side of
$[\mathrm {D}]$
produced by a 2-variable substitution are translated powers of K, then the substitution instance is trivial.
In symbolic terms this can be written as:
$$\begin{align} \begin{array}{c} \mbox{For all } \sigma,\sigma'\in\mathbb{N}^n \mbox{ and for all }C,C'\in \mathbb{N},\\ \mbox{if } C+\sigma{d} \mbox{ and } C'+ \sigma'{d} \mbox{ are powers of } K\mbox{ for each }d\in \mathrm{D},\\ \mbox{then there exists } \bar{d}\in \mathrm{D} \mbox{ such that } \sigma{\bar{d}}= \sigma{\textbf{1}_{}}\mbox{ and } \sigma'{\bar{d}}= \sigma'\textbf{1}_{}. \end{array} \end{align} $$
In this case, we say
$[\mathrm {D}]$
satisfies
$({{\star \star }}K)$
. We also consider the condition
$({\star \star })$
: there exists
$K>1$
such that
$({\star \star } K)$
holds. Note that, by setting
$\sigma =\sigma '$
, we see that if
$[\mathrm {D}]$
satisfies
$({\star \star } K)$
then it satisfies
$(\star K)$
.Footnote
13
So, we obtain the following lemma.
Lemma 7.14. If a simple equation satisfies
$({\star \star })$
then it satisfies
$(\star )$
.
It is clear then that when
$q\in \texttt{Q}$
, if
$[\mathrm {D}]$
satisfies
$({\star \star } K)$
then the acceptance of
$\bigvee _{d\in \mathrm {D}}\texttt{C}_d$
in
$\texttt{M}_K$
implies the acceptance of
$\texttt{C}$
in
$\texttt{M}_K$
by Lemma 7.10(1) and the observations above.
As it turns out, the remaining cases can be reduced to the above, and so satisfying the condition
$({\star \star }K)$
alone is sufficient to ensure register-admissibility. The only remaining cases to verify are when the state q is internal to a multiply or divide by K program. Let
$p\in \texttt{P}$
be some increment or decrement instruction for
$\texttt{M}$
. The idea is that if an instance of
$[\mathrm {D}]$
, which leads to acceptance in
$\texttt{M}_K$
, occurs internal to a program
$\mathcal {P}(p)$
then, by using Lemma 7.10(2) such an instance could have equivalently occurred at the end (or beginning) of executing the program
$\mathcal {P}(p)$
. Without loss of generality, suppose the instruction p acts on register
$\texttt{r}_1$
with input and output states
$q_{\mathrm {in}}$
and
$q_{\mathrm {out}}$
, respectively.
For instance, if q is a transfer state
$q=t_{\delta }$
, where
$\delta \in \{0,1\}$
, then by Lemmas 7.3(2) and 7.5(2),
and by Lemmas 7.3(2), 7.5(2), and 7.10(2), for each
$d\in \mathrm {D}$
,
We see that by setting
$C=C_1+C_3+\delta $
,
$C'=C_2, \ \sigma =\sigma _1+\sigma _3$
, and
$\sigma '= \sigma _2$
, we obtain the instance
$\texttt{C}'\leq^{\mathrm {D}} \bigvee _{d\in \mathrm {D}}\texttt{C}^{\prime }_d \in \mathrm {Acc}(\texttt{M}_K\!)$
. Since
$\texttt{C}\leq _{\texttt{M}_K} \texttt{C}'$
and
$\texttt{C}'$
is accepted (
$\texttt{C}'$
is labeled by state
$q_{\mathrm {out}}\in \texttt{Q}$
, which was handled above), it follows that
$\texttt{C}$
is accepted.
Similarly, if q is a multiply state
$q=a_{\delta }$
, for some
$\delta \leq K$
, then by Lemma 7.3(2),
and by Lemmas 7.3(2) and 7.10(2), for each
$d\in \mathrm {D}$
,
So by setting
$C=KC_1+C_3+K-\delta $
,
$C'=C_2, \ \sigma =K\sigma _1+\sigma _3$
, and
$\sigma '= \sigma _2$
, we obtain the instance
$\texttt{C}'\leq ^{\mathrm {D}} \bigvee _{d\in \mathrm {D}}\texttt{C}^{\prime }_d \in \mathrm {Acc}(\texttt{M}_K\!)$
. Since
$\texttt{C}\leq _{\texttt{M}_K} \texttt{C}'$
and
$\texttt{C}'$
is accepted (
$\texttt{C}'$
is labeled by state
$q_{\mathrm {out}}\in \texttt{Q}$
, which was handled above), it follows that
$\texttt{C}$
is accepted.
Lastly, we consider when q is a division state
$q=s_{\delta }$
, for some
$\delta \leq K$
. By Lemma 7.5(2),
and by Lemmas 7.5(2) and 7.10(2), for each
$d\in \mathrm {D}$
,
where
$\texttt{C}^{\prime \prime }_d$
is the unique output configuration of
$\div (p)$
labeled by
$q_{\mathrm {out}}$
.
Now, it is clear that by setting
$C=C_1+KC_3+\delta $
,
$C'=C_2$
,
$\sigma =\sigma _1+K\sigma _3$
, and
$\sigma '=\sigma _2$
, we have that
$\texttt{C}'\leq ^{\mathrm {D}} \bigvee _{d\in \mathrm {D}} \texttt{C}^{\prime }_d$
. Hence
$\texttt{C}'=\texttt{C}^{\prime }_{\bar {d}}$
for some
$\bar {d}\in \mathrm {D}$
by
$({\star \star }K)$
, and so
$\texttt{C}_{\bar {d}}'\sqsubseteq _{\div (p)}\texttt{C}$
. Since
$\texttt{C}_{\bar {d}}'\sqsubseteq _{\div (p)}\texttt{C}_{\bar {d}}"$
, by Corollary 7.7, it follows that
$\texttt{C} \sqsubseteq _{\div (p)} \texttt{C}_{\bar {d}}"$
. Therefore
$\texttt{C}$
is accepted in
$\texttt{M}_K$
if
$\bigvee _{d\in \mathrm {D}} \texttt{C}_d$
is accepted in
$\texttt{M}_K$
.
By the arguments above the following lemma is established:
Lemma 7.15. Let
${\texttt{M}}$
be a
$2$
-ACM and
$K>1$
. If a non-mingly simple equation satisfies
$({\star \star }K)$
then it is register-admissible in
${\texttt{M}}_K$
.
7.5 Condition
$({\star \star })$
and undecidability
Assume that
$[\mathrm {D}]$
is a non-mingly simple equation that satisfies
$({\star \star })$
. Since it is non-mingly, by Lemma 6.5 we get that
$[\mathrm {D}]$
is state-admissible in any machine. Since it also satisfies
$({\star \star })$
, by Lemma 7.15 we have that
$[\mathrm {D}]$
is register-admissible in
$\texttt{M}_K$
for some integer
$K>1$
, where
$\texttt{M}$
is any machine. In particular,
$ [\mathrm {D}]$
is admissible in
$\tilde {\texttt{M}}_K$
, where
$\tilde {\texttt{M}}$
is the machine with undecidable halting problem. By Corollary 7.11, the machine
$\tilde {\texttt{M}}_K$
has an undecidable set of accepted configurations for any
$K>1$
. By Lemma 6.3 we obtain
$\textbf{W}_{\tilde {\texttt{M}}_K}^+\in \mathsf {CRL}+[\mathrm {D}]$
. Therefore,
$\mathsf {CRL}+[\mathrm {D}]$
has an undecidable word problem by Theorem 4.5. This proves the following result.
Corollary 7.16. For any finite set
$\Gamma $
of non-mingly equations that satisfy
$({\star \star })$
, every subvariety of
$\mathsf {RL}$
containing
$\mathsf {CRL}+\Gamma $
has an undecidable word problem.
As motivation for the general case, we show that the
$1$
-variable basic equations
$[n,P]:x^n\leq \bigvee _{p\in P} x^p$
, where P contains at least two distinct positive integers, considered in Lemma 5.4, define varieties with undecidable word problem. The results of the next section will show that this holds for many more equations, all spineless equations.
Theorem 7.17. Let
$[n,P]$
be a
$1$
-variable basic equation where P contains at least two distinct positive integers. Then the variety
$\mathsf {CRL} +[n,P]$
has an undecidable word problem. If additionally P only contains integers strictly greater than n, then the variety
$\mathsf {CRL}+[n,P]$
has an undecidable equational theory.
Proof. Let
$[\mathrm {D}]$
be the n-variable simple equation that is the linearization of
$[n,P]$
over
$\mathsf {CRL}$
(given by Equation (4) in Lemma 5.4) and let
$p,q\in P$
be such that
$p>q>0$
. Note that by Lemma 5.4,
$[\mathrm {D}]$
is spineless and hence it is not mingly by Lemma 6.4. By Corollary 7.16, to establish the first claim it is enough to show
$[\mathrm {D}]$
satisfies
$({\star \star })$
. We will show that
$[\mathrm {D}]$
satisfies
$({\star \star } K)$
, for every
$K> 1+p-q$
; since
$p>q$
, this implies that
$K>1$
.
Assume that there exist
$C,C' \in \mathbb {N}$
and
$1$
-variable substitutions
$\sigma ,\sigma '$
such that
$C + \sigma d$
and
$C +\sigma d'$
are powers of K for each
$d\in \mathrm {D}$
. We will show that
$\sigma $
and
$\sigma '$
are trivial substitutions (i.e., all entries are 0), and hence
$\sigma \textbf{1}_{}=0=\sigma \bar {d}$
and
$\sigma '\textbf{1}_{}=0=\sigma '\bar {d}$
for every
$\bar {d} \in \mathrm {D}$
.
Arguing towards contradiction, suppose that
$\sigma $
is nontrivial with
$\sigma (i)>0$
for some
$i\leq n$
. Now (by Equation (4)) the terms
$x_i^p$
and
$x_i^q$
appear as joinands on the right-hand side of
$[\mathrm {D}]$
, i.e.,
$\mathrm {D}$
contains d and
$d'$
such that
$d(i)=p$
,
$d'(i)=q$
, and
$d(j)=d'(j)=0$
for each
$j\neq i$
. By the assumption on
$\sigma $
and C,
$C+\sigma d = K^{a+b}$
and
$C+\sigma d'=K^a$
, for some
$a,b\in \mathbb {N}$
, with
$b>0$
since
$p>q$
. We have that,
Also,
$\sigma d =\sigma (i)p $
and
$\sigma d' = \sigma (i)q$
(by definition of
$d,d'$
), so we obtain
where the last inequality follows from
$\sigma (i)\leq \sigma (i)q\leq K^a$
; note that
$q\geq 1$
. Combining the inequalities we obtain
$K-1 \leq p-q$
and
$K\leq 1+p-q$
, a contradiction. Hence
$[\mathrm {D}]$
satisfies
$({\star \star }K)$
. Furthermore, if all elements from P are larger then n, then
$[n,P]$
is an expansive equation. Therefore the second claim follows by Corollary 5.8.⊣
8 Characterization of spineless equations
In this section we prove that a simple equation is spineless if and only if it satisfies
$({\star \star } K)$
for every K sufficiently large.
8.1 Basic and simple equations of
$\mathsf {CRL}$
as sets of tuples
Given the natural ordering of the variable set
$\{x_i : i \in \mathbb {Z}^+\}$
, note that using the above-mentioned vector notation, every commutative monoid term can be written in the form
$\textbf{x}_{n}^f$
, for some
$n \in \mathbb {Z}^+$
and some n-tuple f of natural numbers; recall that
$\textbf{x}_{n}=(x_1, \ldots , x_n)$
. If we actually extend our notation to the case where
$\textbf{x}_{\infty }=(x_i)_{i \in \mathbb {Z}^+}=(x_1, x_2, \ldots )$
and f is a sequence of natural numbers that is eventually constantly zero, then every commutative monoid term is of the form
$\textbf{x}_{\infty }^f$
, and thus it is fully specified by such an f. In the following we will work interchangeably in the free monoid over the variable set
$\{x_i : i \in \mathbb {Z}^+\}$
and also in the isomorphic monoid
$\mathbb {F}$
of eventually-zero sequences of natural numbers. More formally,
$\mathbb {N}^{\mathbb {Z}^+}$
denotes the set of all functions from
$\mathbb {Z}^+$
to
$\mathbb {N}$
and for
$f\in \mathbb {N}^{{\mathbb {Z}^+}}$
, we define
$\mathrm {supp}(f) :=\{i\in \mathbb {Z}^+: f(i)\neq 0 \}$
to be the support of f. Then the set
$\mathbb {F} := \{f\in \mathbb {N}^{{\mathbb {Z}^+}}: | \mathrm {supp}(f)|<{\infty } \}$
of all functions of finite support forms a commutative monoid
$(\mathbb {F}, +,{\textbf{0}})$
, under addition and with unit the constantly zero function
${\textbf{0}}$
. Clearly, this monoid is simply an additive rendering of the free commutative monoid on countably many generators and is isomorphic to the above multiplicative rendering by exactly the map
$f \mapsto \textbf{x}_{\infty }^f$
. Up to now we have favored the multiplicative representation due to its connection with machines, but from now on we will use the additive one as it connects better with the linear algebra arguments of this section. Under this isomorphism the variable
$x_i$
maps to the generator
$\textbf{e}_i$
, which has
$1$
in the i-th entry and
$0$
everywhere else.
For reasons that will be clear soon, we view the elements of
$\mathbb {F}$
as column vectors and we also consider the bijective set
$\mathbb {F}^{{\top }}$
of the row vectors, which are the transposes of the elements of
$\mathbb {F}$
. In particular, for
$f \in \mathbb {F}$
and
$\sigma \in \mathbb {F}^{{\top }}$
, the matrix product
$\sigma f$
yields a
$1\times 1$
matrix, which we identify with the natural number equal to its unique entry. Even though f and
$\sigma $
are each of infinite dimension, they both have finite support, so their product is well defined. For a subset S of
$\mathbb {Z}^+$
we define
$\mathbb {F}_S$
to be the set of eventually zero functions from S to
$\mathbb {N}$
, so
$\mathbb {F}=\mathbb {F}_{\mathbb {Z}^+}$
; we identify
$\mathbb {F}_S$
with the corresponding subset of
$\mathbb {F}$
in the natural way, as every function in
$\mathbb {F}_S$
is the restriction to S of the function in
$\mathbb {F}$
that is defined to be zero outside S. We write
$\mathbb {F}_n$
for
$\mathbb {F}_{\{1, \ldots , n\}}$
. So, if
$f \in \mathbb {F}$
with support included in
$\{1,\ldots ,n\}$
, we will identify f with the corresponding element of
$\mathbb {F}_n$
. We define sets
$\mathbb {F}_S^{{\top }}$
and
$\mathbb {F}_n^{{\top }}$
in a similar way. Therefore,
$\mathbb {F}_n$
is the set of all
$n \times 1$
matrices and
$\mathbb {F}_n^{{\top }}$
is the set of all
$1 \times n$
matrices.
For a set
$X\subseteq \mathbb {F}$
, we write
$ {\sigma }{X} := \{ {\sigma }{f}\in \mathbb {N}: f\in X \}$
and
$\mathrm {supp}(X):=\bigcup _{f\in X}\mathrm {supp}(f)$
. For each
$n\in \mathbb {Z}^+$
, we define the column vector
${\textbf{1}_{n}}\in \mathbb {F}$
to contain
$1$
in its first n entries and
$0$
everywhere else. A substitution
${\boldsymbol {\sigma }}$
on
$\mathbb {F}$
is fully determined by its application on the generators
$\textbf{e}_i\mapsto f_i\in \mathbb {F}$
for each
$i\in \mathbb {Z}^+$
, and as it is a homomorphism, namely an additive/linear map, its application is given by multiplication of an associated matrix
$M_{\boldsymbol {\sigma }}$
; so
${\boldsymbol {\sigma }}(f)=M_{\boldsymbol {\sigma }} f$
. Since we only consider finite subsets A of
$\mathbb {F}$
in basic equations
$[f,A]$
, we may view A as a subset of
$\mathbb {F}_n$
, where n is the largest index in
$\mathrm {supp}(A\cup \{f\})$
and, in this way, will only consider substitutions
${\boldsymbol {\sigma }}:\mathbb {F}_n\to \mathbb {F}_k$
, in which case the associated
$M_{\boldsymbol {\sigma }}$
is a
$k\times n$
matrix; in this case, we say that
${\boldsymbol {\sigma }}$
is a k-variable substitution. We will write
$\sigma _i\in \mathbb {F}_n^{\top }$
for the i-th row of
$M_{\boldsymbol {\sigma }}$
for each
$i\leq k$
and also
$M_{\boldsymbol {\sigma }}=[\sigma _i]_{i=1}^k$
. Abusing notation, we will identify
${\boldsymbol {\sigma }}$
with
$M_{\boldsymbol {\sigma }}$
and also we use
${\boldsymbol {\sigma }}[f,A]$
for the resulting basic inequality. As we have seen in the statement of condition
$({\star \star })$
,
$1$
-variable substitutions play an important role. Actually, every substitution
${\boldsymbol {\sigma }}$
is rendered as the product of 1-variable substitutions
$\sigma _i$
(the ones corresponding to the rows of
$M_{\boldsymbol {\sigma }}=[\sigma _i]_{i=1}^k$
) as for every variable
$x_j$
,
${\boldsymbol {\sigma }}(x_j)=\sigma _1(x_j)\cdot \sigma _2(x_j)\cdots \sigma _k(x_j)$
, when using multiplicative notation, and as a sum of
$1$
-variable substitutions
$\sigma _i$
as for every
$\textbf{e}_j$
, we have
${\boldsymbol {\sigma }}(\textbf{e}_j)=\sigma _1(\textbf{e}_j)+\sigma _2(\textbf{e}_j)+ \cdots + \sigma _k(\textbf{e}_j)$
, when using additive notation.
8.2 Spinal equations
Let
$[f,\mathrm {V}]$
be a k-variable spinal equation. We define
$v_0:=\textbf{0}$
and
$\mathrm {V}_{\textbf{0}}=\mathrm {V} \cup \{ v_0\}$
. Using additive notation, it follows from Definition 5.2:
-
1.
$\mathrm {V}$
contains a subset
$\mathrm {V}_+$
consisting of
$k\geq 1$
many vectors
$v_1,\ldots ,v_k$
, where
$v_j(i)$
is positive if
$i=j$
and zero if
$i>j$
. -
2.
$\mathrm {V}$
is exactly either
$\mathrm {V}_+$
or
$\mathrm {V}_{\textbf{0}}$
. -
3. f is a vector in
$\mathbb {F}_{k}$
with all entries positive such that
$f\not \in \mathrm {V}$
.
We write
$[v_1~\cdots ~v_k]$
for the matrix with columns
$v_1, \ldots ,v_k$
, in that order. Observe that (1) is equivalent to
$[v_1~\cdots ~v_k]$
being a
$k\times k$
upper-triangular matrix whose diagonal entries are positive.
Using this additive perspective, we will demonstrate why spinal equations fail to satisfy the condition
$({\star \star })$
, and thus the argument for register-admissibility in the machines
$\texttt{M}_K$
found in Lemma 7.15 is not applicable to extensions by such equations. In fact, we prove a much stronger property for spinal equations which entails such an argument will fail, not just for our exponential encoding, but for any similar sort of encoding in general.Footnote
14
To that aim, for a set S of natural numbers, we consider the following property:
If the exponents in the right-hand side of
$[\mathrm {D}]$
produced by a 1-variable substitution are in a translation of S (by the same constant), then the substitution instance is trivial.
In symbolic terms this can be written as
$$\begin{align} \begin{array}{c} \text{If for some } \sigma\in\mathbb{F}_n^{\top} \text{ and } C\in \mathbb{N},\\ \text{every } C+\sigma{d} \text{ is in } S, \text{ for } d\in \mathrm{D},\\ \text{then there exists } \bar{d}\in \mathrm{D} \text{ such that } \sigma{\bar{d}}= \sigma{\textbf{1}}. \end{array}\end{align}$$
In more compact terms, this can be written as
Clearly, what we called
$(\star K)$
is simply
$(\star S)$
, where S is the set of all powers of K. In Lemma 8.1, we essentially show that
$(\star S)$
fails for any prespinal equation
$\varepsilon $
and infinite set S.
Lemma 8.1. If a simple equation satisfies
$(\star S)$
for an infinite subset S of
$\mathbb {N}$
, then it is spineless.
Proof. We argue by contraposition, assuming that a simple equation
$\varepsilon $
is prespinal. So there is a substitution
${\boldsymbol {\sigma }}$
such that
$[f,\mathrm {V}] := {\boldsymbol {\sigma }} \varepsilon $
is a spinal equation, where every column vector of
$\mathrm {V}$
has k entries/rows. We will construct a 1-variable substitution
$\tau = [t_1~t_2~\cdots ~t_k]\in \mathbb {F}_k^{\top }$
such that
$C+ {\tau }{\mathrm {V}_{\textbf{0}}}\subseteq S$
, for some C, and
${\tau }f \not \in {\tau }\mathrm {V}_{\textbf{0}}$
(hence also
${\tau }f \not \in {\tau }\mathrm {V}$
, as
$\mathrm {V}\subseteq \mathrm {V}_{\textbf{0}}$
); let
$\mathrm {V}_{\textbf{0}}=\{v_0, v_1,\ldots , v_k\}$
. This will imply that
$\varepsilon $
falsifies
$(\star S)$
by the 1-variable substitution
$\tau {\boldsymbol {\sigma }}$
and constant C.
First note that for any
$\tau \in \mathbb {F}_k^{\top }$
we have
$\tau v_0= 0$
, so
$C+ {\tau } \mathrm {V}_{\textbf{0}} \subseteq S$
iff
$C\in S$
and
$C+ {\tau } \mathrm {V}_+ \subseteq S$
. Observe that
$V_+: =[v_1~\cdots ~v_k]$
is an upper-triangular
$k\times k$
matrix whose entries are non-negative integers; note the different font from the set
$\mathrm {V}_+$
. Furthermore, the determinant
$\delta :=\det {V_+} = v_1(1)\cdots v_k(k)$
is positive since
$v_n(n)$
is positive for each
$1\leq n\leq k$
by definition. Hence
$V_+$
is invertible and
, where the adjoint
is an upper-triangular matrix with integer entries which furthermore has positive entries on its diagonal (each of the form
$\delta /v_n(n)$
).
Now, if
$C \in S$
and
$\tau \in \mathbb {F}_k^{\top }$
then
Observe that

Therefore,

We claim that there is a
$C\in S$
such that the set
$(S-C)/\delta $
has an infinite subset in the positive integers. Indeed, since S is infinite there exists a coset
$C+\mathbb {N}\delta $
that has infinite intersection with S, where we can take
$C\in S$
without loss of generality; let
$\bar {\mathbb {N}}\subseteq \mathbb {N}$
be the infinite set such that
$C+\bar {\mathbb {N}}\delta $
is the intersection of S with
$C+\mathbb {N}\delta $
. Hence
$\bar {\mathbb {N}}$
is such an infinite subset of
$(S-C)/\delta $
, and actually
$0\in \bar {\mathbb {N}}$
since
$C\in S$
. Consequently, if
, then
$C+ {\tau } \mathrm {V}_+ \subseteq S$
. Note that
is an infinite set and all if its entries are integers, while we need
$\tau \in \mathbb {F}_k^{\top }$
. Therefore, it is enough to be able to find
$[x_1~\cdots ~x_k] \in \bar {\mathbb {N}}^{k}$
such that
, where the entries
$t_i$
are nonnegative and further
${\tau }f \not \in {\tau }\mathrm {V}_{\textbf{0}}$
.
Note that since
is upper-triangular, the value of
$t_n$
, for each
$n\leq k$
, is determined only by the values
$x_1,\ldots ,x_n$
;
$t_n$
is a linear combination of only
$x_1,\ldots ,x_n$
. This allows us to recursively choose the values of the
$x_i$
’s, in order to specify the values
$t_i$
one-by-one. Furthermore, at the recursive step where we have already determined the values of
$x_1,\ldots ,x_{n-1}$
, the value of
$x_n$
can be chosen arbitrarily large from the infinite set
$\bar {\mathbb {N}}$
; moreover, in the linear combination specifying
$t_n$
the coefficient of
$x_n$
is the
$(n,n)$
-entry of
, which is positive; this allows for the value of
$t_n$
to be as large as we want (in particular nonnegative). Therefore, the only thing that we have to ensure is that
$x_1,\ldots ,x_n$
are chosen in
$\bar {\mathbb {N}}$
so that furthermore
${\tau }f \not \in {\tau }\mathrm {V}_{\textbf{0}}$
, i.e.,
${\tau }f \not =\tau v_i$
for all
$1 \leq i \leq k$
. Below we first prove that
${\tau }f \not =\tau v_k$
and then that
${\tau }f> \tau v_i$
, for all
$i<k$
.
Since
$[f,\mathrm {V}]$
is a spinal equation, we have
$f\not \in \mathrm {V}$
and in particular
$f\neq v_k$
. Let m be the largest number in
$\{1, \ldots , k\}$
such that
$f(m)\neq v_k(m)$
and
$f(i)=v_k(i)$
for all
$i>m$
. We now define
$x_i=0$
for each
$i<m$
; note that since
$0\in \bar {\mathbb {N}}$
, all of these values are in
$\bar {\mathbb {N}}$
. Since
$t_i$
is a linear combination of
$x_1, \ldots , x_i$
, we have that
$t_i=0$
for
$i <m$
. We define
$x_m$
to be any positive number in
$\bar {\mathbb {N}}$
, resulting in a positive value for
$t_m$
, since
$x_i=0$
for
$i<m$
. Since
$f(m)\neq v_k(m)$
, we get
$t_m f(m)\neq t_mv_k(m)$
, and since
$f(i)=v_k(i)$
for all
$i>m$
we obtain
$$ \begin{align*} \tau f =\sum_{i=m}^k t_if(i)=t_mf(m)+\sum_{i>m} t_iv_k(i) \neq t_mv_k(m)+\sum_{i>m} t_iv_k(i) = \tau v_k, \end{align*} $$
for all possible values of
$t_i$
for
$i>m$
. So any choice of a positive value for
$x_m$
in
$\bar {\mathbb {N}}$
ensures that
$\tau f\neq \tau v_k$
.
For
$m<i<k$
, we continue choosing positive values for
$x_i$
in
$\bar {\mathbb {N}}$
that are large enough to ensure that
$t_i$
is nonnegative, as explained above. Finally, at the last step, we have chosen
$x_1, \ldots , x_{k-1}$
and therefore determined the values of
$t_1, \ldots , t_{k-1}$
. Note that furthermore the values of
$\tau v_1, \ldots , \tau v_{k-1}$
have also been determined: since
$V_+$
is an upper triangular matrix, we have
$v_i(j)=0$
for each
$j>i$
, so
$\tau v_i=t_1v_i(1)+\cdots +t_iv_i(i)=0$
for all
$i<m$
; in particular even though
$t_k$
appears in
$\tau $
, it does not appear in the values of
$\tau v_1, \ldots , \tau v_{k-1}$
. We now choose
$x_k\in \bar {\mathbb {N}}$
so that
$t_k>\tau v_i$
for all
$i<k$
. Since
$[f,\mathrm {V}]$
is a basic equation by definition, f is positive in each of its entries and in particular
$f(k)\geq 1$
, so we obtain
$\tau f \geq t_kf(k)\geq t_k>\tau v_i$
for each
$i<k$
.⊣
Corollary 8.2. If a simple equation satisfies
$(\star )$
, then it is spineless.
Thus we obtain the following from Lemma 7.14 and Corollary 8.2:
Lemma 8.3. If a simple equation satisfies
$({\star \star })$
then it is spineless.
8.3 Prespinality
We will begin with a concrete example of a prespinal equation before illustrating the general case.
Example 8.4. Consider the
$8$
-variable simple equation
$\varepsilon :stuvwxyz\leq $
where for better readability we use the letters
$s,\ldots ,z$
for the formal variables
$x_1,\ldots ,x_8$
, in that order; we will use both names for each variable below.
Since
$\varepsilon $
is an
$8$
-variable equation with
$10$
distinct joinands, and all spinal equations in
$8$
-variables have no more than
$9$
distinct joinands, the equation
$\varepsilon $
is not spinal. However, it is easily verified that
$\varepsilon $
is prespinal, as witnessed by the
$3$
-variable substitution
${\boldsymbol {\sigma }}$
defined via:
$s\mapsto 1$
,
$t\mapsto x_1^2$
,
$z\mapsto x_1$
,
$y \mapsto x_1x_2$
,
$v\mapsto x_3$
, and
$u,w,x\mapsto x_2$
. Indeed, we have
We name the joinands in the right-hand side of
$\varepsilon $
in order of appearance from left to right:
$d_1=1, d_2=sw^2x z^4, \ldots , d_{10}=s^9 u v x^2 y$
; we do the same for
${\boldsymbol {\sigma }} \varepsilon $
:
$v_0=1$
,
$v_1=x_1^4$
,
$v_2=x_1^4x_2^3$
, and
$v_3=x_1x_2^4x_3$
. Also, we define the sets
$\mathrm {D}=\{d_1,\ldots ,d_{10}\}$
and
$\mathrm {V}=\{v_0,\ldots ,v_3\}$
. Given this particular ordering of variables and joinands, the set-theoretic equation
${\boldsymbol {\sigma }} \mathrm {D} =\mathrm {V}$
induces the matrix equation
${\boldsymbol {\sigma }} D = V$
(note the different font for the sets
$\mathrm {D}, \mathrm {V}$
and the matrices
$D, V$
), where

Note that the
$(i,j)$
-entry of D represents the degree of the i-th variable
$x_i$
in the joinand
$d_j$
, and the
$(j,i)$
-entry of
${\boldsymbol {\sigma }}$
represents the degree of
$x_j$
in
${\boldsymbol {\sigma }}(x_i)$
.
Note that, by omitting
$v_0=\textbf{0}$
, the
$3\times 3$
matrix
$[v_1~v_2~v_3]$
is upper triangular with a positive diagonal (as demanded in the definition of
${\boldsymbol {\sigma }}\varepsilon $
being spinal) and this is the reason for the particular naming of
$v_0, v_1, v_2, v_3,$
in that order. In turn, given this order, the substitution partitions the set of joinands
$\mathrm {D}$
, i.e., the columns of D into
$\mathrm {D}_0=\{d_1,d_3\}$
,
$\mathrm {D}_1=\{d_5,d_7,d_9 \}$
,
$\mathrm {D}_2=\{d_2,d_4,d_6 \}$
, and
$\mathrm {D}_3=\{d_8,d_{10}\}$
, so that
${\boldsymbol {\sigma }}\mathrm {D}_j=\{v_j\}$
, for all j. Guided by this ordering, we further rearrange the columns of V into a new matrix
$V'$
and the columns of D into a new matrix
$D'$
, where the ordering of the columns within each
$D_i$
is done randomly. If we represent
$D'$
symbolically as
$[\mathrm {D}_0~\mathrm {D}_1~\mathrm {D}_2~\mathrm {D}_3]$
, then we also have
${\boldsymbol {\sigma }} D' = [{\boldsymbol {\sigma }}\mathrm {D}_0~{\boldsymbol {\sigma }}\mathrm {D}_1~{\boldsymbol {\sigma }}\mathrm {D}_2~{\boldsymbol {\sigma }}\mathrm {D}_3]$
and the equation
${\boldsymbol {\sigma }} D' =V'$
.
We can improve the presentation of this equation even more by putting
${\boldsymbol {\sigma }}$
and
$D'$
in a triangular form, at least in blocks. More specifically, we now rearrange the rows of
$D'$
and simultaneously the columns of
${\boldsymbol {\sigma }}$
(this corresponds to permuting the variables of
$\varepsilon $
) to obtain new matrices
$D"$
and
${\boldsymbol {\sigma }} '$
, yielding the equation
${\boldsymbol {\sigma }}' D" = V'$
:

Finally, we observe that the rearrangement of the rows results in a partition of the set of rows such that the two partitions (of the set of rows and the set of columns) induce a blocking (given by the solid lines above) that has an upper-triangular shape. We denote by
$D^{\mathfrak {b}}$
and
${\boldsymbol {\sigma }}^{\mathfrak {b}}$
the resulting block matrices, and the equation
${\boldsymbol {\sigma }}' D" = V'$
of matrices yields the equation
${\boldsymbol {\sigma }}^{\mathfrak {b}} D^{\mathfrak {b}} = V^{\mathfrak {b}}$
of block matrices. We call the elements of
$D^{\mathfrak {b}}$
blocks and they are submatrices of
$D"$
; we denote by
$(D^{\mathfrak {b}})_{ij}$
the
$(i+1,j+1)$
-block of
$D^{\mathfrak {b}}$
, where
$0\leq i,j\leq 3$
. We observe that
-
1. each
$(D^{\mathfrak {b}})_{ij}$
is the zero matrix when
$i>j$
(all blocks below the diagonal are zero matrices) and -
2. each row and each column of
$(D^{\mathfrak {b}})_{jj}$
contains a nonzero entry for
$j\geq 1$
(in the diagonal blocks no row and no column is fully zero, with the possible exception of the top left block
$(D^{\mathfrak {b}})_{00}$
).
We call such a partition of the matrix into a block matrix with these two features a blocking of the matrix. Each blocking specifies an (ordered) partition of the set of rows and an (ordered) partition of the set of columns of a matrix in the obvious way (with the provision that the first class in this ordered list may be the empty set), but each of these two partitions is special as we will explain. Given a column partition, we define below an associated list of sets of rows. Whenever the original partition comes from a blocking, the resulting list is actually an (ordered) partition (every set in the list, except possibly the first one, is non-empty). The same holds with the roles of rows and columns swapped. We will explain that blockings correspond bijectively to column-partitions that happen to induce ordered row-partitions and to row-partitions that happen to induce ordered column-partitions.
Given an
$I\times J$
matrix D, formally viewed as a function from
$I \times J$
, as usual
$D_{ij}$
denotes its entry in the i-th row and j-th column, for
$i\in I$
and
$j\in J$
; usually I and J are taken to be initial segments of the positive integers as in the example above. We denote by
$D_{i\_}$
the i-th row and by
$D_{\_j}$
the j-th column of D. Given an ordered partition
$(C_0, C_1, \ldots , C_k)$
of J (i.e.,
$C_0$
may be empty, but not all of J, and the remaining list forms a partition of J) we define the list
$(R_0, R_1, \ldots , R_k)$
of subsets of I as follows: for
$m \geq 1$
,
$R_m$
contains those
$i \in I$
such that the entry
$D_{in}$
is zero for n belonging to parts
$C_{\ell }$
with
$\ell <m$
and there is a non-zero entry
$D_{in}$
for some n belonging to the part
$C_m$
. In other words, if we group the columns of D according to the ordered partition, then
$R_m$
corresponds to those rows that are fully zero on all columns before
$C_m$
and are not fully zero on
$C_m$
. We define
$R_0$
as containing the remaining i’s that are not in
$R_1 \cup \cdots \cup R_k$
. (Note that we allow our ordered partitions to have an optional initial empty part
$R_0$
.) In the example above, the sets
$R_n$
are all non-empty, thus resulting into a partition of the set of columns; however, this may not be the case when
$(C_0, C_1, \ldots , C_k)$
of J is an arbitrary ordered partition of J. Note that whenever
$(R_0, R_1, \ldots , R_k)$
is a partition, we can define a partition of
$I\times J$
into blocks of the form
$R_m \times C_n$
with the feature that, for
$n\geq 1$
, each block
$R_n \times C_n$
is such that no column and no row of D in that block is fully zero. Therefore, blockings correspond to column-partitions that happen to induce ordered row-partitions. Often, instead of writing a partition
$(C_0, C_1, \ldots , C_k)$
of the column index set J, we will be writing the partition
$(\mathrm {D}_0, \mathrm {D}_1, \ldots , \mathrm {D}_k)$
of the set
$\mathrm {D}$
of the corresponding columns.
Conversely, given an ordered partition
$(R_0, R_1, \ldots , R_k)$
of I we define a list
$(C_0, C_1, \ldots , C_k)$
of subsets of J as follows: for
$n \geq 1$
,
$C_n$
contains those
$j \in J$
such that the entry
$D_{mj}$
is zero for m belonging to parts
$R_{\ell }$
with
$\ell>n$
, and there is a non-zero entry
$D_{mj}$
for some m belonging to the part
$C_n$
. In other words, if we group the rows of D according to the ordered partition, then
$R_n$
corresponds to those rows that finish with zeros on all rows after
$C_n$
and are not fully zero on
$C_n$
. We define
$C_0$
as containing the remaining i’s that are not in
$C_1 \cup \cdots \cup C_k$
. Again we can see that this yields an ordered partition (i.e., the sets
$C_n$
,
$n \geq 1$
, are non-empty) iff this corresponds to a blocking of the matrix.
Given a blocking
$\mathfrak {b}$
of
$I\times J$
on a matrix D, we obtain the block matrix
$D^{\mathfrak {b}}$
and observe that it has an upper-triangular form. In the following we will consider a blocking given by either its ordered row-partition or its ordered column-partition. In analogy with our notation for entries, rows and columns of a matrix, we define
$D^{\mathfrak {b}}_{mn}:=\{D_{ij}: i \in R_m, j \in C_n\}$
,
$D^{\mathfrak {b}}_{m \_}=\{D_{ij}: i \in R_m\}$
, and
$D^{\mathfrak {b}}_{\_ n}=\{D_{ij}: j \in C_n\}$
. If
$\mathrm {D}$
is a set of column vectors, we say
$\mathfrak {b}$
is a blocking of
$\mathrm {D}$
if it is a blocking of a matrix D whose set of columns form
$\mathrm {D}$
, and we define
$\mathrm {D}_{j}^{\mathfrak {b}}$
to be the j-th set of column vectors
$D^{\mathfrak {b}}_{\_ j}$
. Observe that if
$\mathfrak {b}=(R_0,\ldots ,R_k)$
is a row blocking for
$\mathrm {D}$
, then by how the associated list of columns are defined, we get
$\mathrm {D}^{\mathfrak {b}}_j=\{d\in \mathrm {D}: \mathrm {supp}(d)\cap R_j \neq \emptyset \}\setminus (\mathrm {D}^{\mathfrak {b}}_{j+1}\cup \cdots \mathrm {D}^{\mathfrak {b}}_k)$
, for each
$j\geq 1$
, and
$\mathrm {D}^{\mathfrak {b}}_0 = \mathrm {D}\setminus (\mathrm {D}^{\mathfrak {b}}_1\cup \cdots \mathrm {D}^{\mathfrak {b}}_k)$
.
The blocking in the Example 8.4 is induced by
${\boldsymbol {\sigma }}$
in the sense that the corresponding partition on the set
$\{1,\ldots ,10\}$
of columns of D along the vertical lines in
$D^{\mathfrak {b}}$
into the sets
$C_0=\{1, 3\}, C_1=\{5,7,9\}$
,
$C_2=\{2,3,6\}$
, and
$C_3=\{8,10 \}$
is given by the stipulation that
$C_n$
is exactly the set of the columns that are mapped by
${\boldsymbol {\sigma }}$
to the same column vector,
$v_n$
, of V, for all
$n \in \{0,1,2,3\}$
. The partition of the set of rows
$\{1,\ldots ,8\}$
of D (along the horizontal lines of
$D^{\mathfrak {b}}$
) yields the sets
$R_3=\{ 3,4\}$
,
$R_2=\{5,6,7 \}$
,
$R_1=\{ 2,8\}$
, and
$R_0=\{1\}$
.
As in the example, every substitution
${\boldsymbol {\sigma }}$
that maps an
$I \times J$
matrix D to a spine
$V=[v_0~v_1~\cdots ~v_k]$
induces a blocking
$\mathfrak {b}$
via a partitioning of the columns:
$C_n=\{j \in J : {\boldsymbol {\sigma }} D_{\_ j}=v_n\}$
. The blockings induced by substitutions enjoy further properties (in addition to yielding upper-triangular block matrices with diagonal blocks that have no fully zero row or column). Returning to the example we see that
${\boldsymbol {\sigma }} D^{\mathfrak {b}}_{\_ j}=v_j$
for each
$0\leq j\leq 3$
. We say that a substitution is a solution for a set/matrix of column vectors if it sends all of the vectors of the set/matrix to the same vector. In this terminology,
${\boldsymbol {\sigma }}$
is a solution for each of the sets
$D^{\mathfrak {b}}_{\_ 0}$
,
$D^{\mathfrak {b}}_{\_ 1}$
,
$D^{\mathfrak {b}}_{\_ 2}$
, and
$D_{\_ 3}^{\mathfrak{b}}$
. Note that a substitution is a solution for a set/matrix iff each of its rows is a solution for it.
Also, looking at the induced partition on the rows, the
$R_m$
part of each row
$\sigma _m$
of
${\boldsymbol {\sigma }}$
is not fully zero and all of its elements are non-negative. For
$f\in \mathbb {F}$
and
$T\subseteq \mathbb {Z}^{+}$
we say f is T-positive if
$f_T>\textbf{0},$
i.e.,
$f_T\neq \textbf{0}$
and
$f(i)\geq 0$
for each
$i\in T$
; put differently
$f \not \in \mathbb {F}_{T^c}$
, where
$T^c$
is the complement of T. In this terminology, the row
$\sigma _m$
of
${\boldsymbol {\sigma }}$
is
$R_m$
-positive, for each m. Finally, we note that
$\sigma _3$
is an element of
$\mathbb {F}^{\top }_{R_3}$
,
$\sigma _2$
is an element of
$\mathbb {F}^{\top }_{R_3 \cup R_2}$
, and
$\sigma _1$
is an element of
$\mathbb {F}^{\top }_{R_3 \cup R_2 \cup R_1}$
. In general, for every blocking defined by a substitution
${\boldsymbol {\sigma }}$
with respect to a spine,
$\sigma _m$
is an element of
$\mathbb {F}^{\top }_{R^+_m}$
, where
$R^+_m:=R_m \cup \cdots \cup R_k$
. For
$T\subseteq S$
, we say f is
$(T,S)$
-positive if f is T-positive and
$f \in \mathbb {F}_S$
; put differently
$f \in \mathbb {F}_S$
and
$f \not \in \mathbb {F}_{T^c}$
. Therefore, the row
$\sigma _m$
of
${\boldsymbol {\sigma }}$
is
$(R_m, R_m^+)$
-positive, for each m.
Given a row blocking
$\mathfrak {b}=(R_0,\ldots ,R_k)$
of a set
$\mathrm {D}$
, a
$1$
-variable substitution
$\sigma \in \mathbb {F}^{\top }$
and
$1\leq i \leq k$
, if
$\sigma $
is
$(R_i,R_i^+)$
-positive and
$\sigma $
is a solution for each set of columns
$\mathrm {D}^{\mathfrak {b}}_{j}$
, then we say that
$\sigma $
is a
$(\mathfrak {b}, i)$
-solution for
$\mathrm {D}$
. Finally, we say that a k-variable substitution
${\boldsymbol {\sigma }}$
is a
$\mathfrak {b}$
-solution for
$\mathrm {D}$
, where
$\mathfrak {b}=(R_0,\ldots ,R_k)$
, if for all i, the i-th row
$\sigma _i$
of
${\boldsymbol {\sigma }}$
is a
$(\mathfrak {b}, i)$
-solution for
$\mathrm {D}$
.

The following lemma and theorem then follow by the definition of
$\mathfrak {b}$
-solutions.
Lemma 8.5. If a k-variable substitution
${\boldsymbol {\sigma }}$
is a
$\mathfrak {b}$
-solution for D, then the matrix
$[v_1~v_2~\cdots ~v_k]$
, where
$v_j={\boldsymbol {\sigma }} D_{\_ j}^{\mathfrak{b}}$
, is a
$k\times k$
upper-triangular matrix whose diagonal contains positive entries.
Theorem 8.6. An n-variable simple equation
$[\mathrm {D}]$
is prespinal if and only if
$\mathrm {D}$
has a
$\mathfrak {b}$
-solution
${\boldsymbol {\sigma }}$
, for some row blocking
$\mathfrak {b}$
, such that
$\boldsymbol{\sigma} \mathbf{1}_{n}$
and
${\boldsymbol {\sigma }}\mathrm {D}^{\mathfrak {b}}_{k}$
differ.
The importance of Theorem 8.6 is that it characterizes the notion of prespinality without a reference to a spine.
Using Theorem 8.6 we now characterize which equations are spineless. For instance, we can verify that Equations (iii)–(v) from Table 1 are spineless. In each equation, the set
$\mathrm {D}$
has only one blocking
$\mathfrak {b}$
, given by
$(\mathrm {D}^{\mathfrak {b}}_0,\mathrm {D}^{\mathfrak {b}}_1)$
where
$\mathrm {D}^{\mathfrak {b}}_1$
contains all the nonzero columns from
$\mathrm {D}$
. We see that there is no nonzero
$(\mathfrak {b},1)$
-solution for either Equation (iii) or (iv). In the case of Equation (v), the only
$(\mathfrak {b},1)$
-solutions are scalar multiples of
$\sigma =[1 \; 1 \; 1]$
, but
$\sigma {\textbf{1}_{3}}\in \sigma \mathrm {D}$
. Therefore Equations (iii)–(v) are spineless.
8.4 Spineless equations satisfy
$(\star \star )$
Theorem 8.6 provides the foundational link between an equation being spineless and satisfying
$(\star \star )$
, namely by the (non-) existence of certain
$1$
-variable substitutions viewed as solutions to particular linear systems.
We prove that every spineless equation satisfies
$({\star \star } K)$
, for sufficiently large K, contrapositively. So, we assume that a simple equation
$[\mathrm {D}]$
satisfies the antecedent of
$({\star \star } K)$
and in particular there exists a (nontrivial)
$1$
-variable substitution
$\sigma $
for which
$\sigma \mathrm {D}$
is contained in some shift of
$K^{\mathbb {N}}$
. The following lemma ensures that, if K is chosen large enough,
$\sigma $
induces a blocking
$\mathfrak {b}$
on
$\mathrm {D}$
in the sense that the naturally ordered column-partition
$(\mathrm {D}_{0},\ldots , \mathrm {D}_{k})$
of
$\mathrm {D}$
induces
$\mathfrak {b}$
, i.e.,
$\mathrm {D}_j=\mathrm {D}^{\mathfrak {b}}_{j}$
for each j. Here we conventionally order the sets so that
$\sigma \mathrm {D}_{j}< \sigma \mathrm {D}_{j+1}$
for
$j<k$
, and we always take
$\mathrm {D}_{0}$
to be the (possibly empty) set of all
$d\in \mathrm {D}$
such that
$\sigma d= 0$
. Note that if a
$\sigma $
induces a blocking then it must be that
$k\geq 1$
and so
$\sigma $
is not the zero vector.
For a finite set
$\mathrm {D}\subseteq \mathbb {F}$
, we define
$\Delta \mathrm {D}=\sum _{i=1}^n\max \{|d(i)-d'(i)|:d,d'\in \mathrm {D} \}$
.
Lemma 8.7. Assume that for a finite
$\mathrm {D}\subseteq \mathbb {F}$
and for some 1-variable substitution
$\sigma $
that is nontrivial on
$\mathrm {D}$
,
$\sigma \mathrm {D}$
is contained in some shift of
$K^{\mathbb {N}}$
, where
$K>\Delta \mathrm {D}+1$
. Then
$\sigma $
induces a blocking on
$\mathrm {D}$
.
Proof. Suppose
$\mathrm {D}\subseteq \mathbb {F}_n$
and let
$(\mathrm {D}_0,\ldots ,\mathrm {D}_k)$
be the column partition of
$\mathrm {D}$
such that
$0=\sigma \mathrm {D}_0<\cdots <\sigma \mathrm {D}_k$
. We will show that the associated list
$(R_0, R_1, \ldots , R_k)$
of sets of rows is an ordered row-partition, i.e., each of the
$R_1, \ldots , R_k$
is not empty. Recall that
$R_j$
is the set of all indices
$i\in \{1,\ldots ,n\}$
such that
$D_{ij}\neq \textbf{0}$
but
$D_{il}=\textbf{0}$
for each
$l<j$
, where
$D: =[\mathrm {D}_0\cdots \mathrm {D}_k]$
(the order of the columns within each
$\mathrm {D}_i$
plays no role). We first prove that
$R_k$
induces
$\mathrm {D}_k$
, i.e., each
$d\in \mathrm {D}_{k}$
must have some nonzero entry/row that is zero in every
$d'\in \mathrm {D}\setminus \mathrm {D}_k$
. If not, then there exists some
$d\in \mathrm {D}_{k}$
such that for each
$i\in \mathrm {supp}(d)$
there exists
$j<k$
and vector
$d'\in \mathrm {D}_j$
with
$i\in \mathrm {supp}(d')$
. By assumption,
$\sigma d$
and
$\sigma d'$
are in the same shift of
$K^{\mathbb {N}}$
, say
$K^{\mathbb {N}}-C$
for some
$C\in \mathbb {N}$
, and because of our ordering convention,
$\sigma d' < \sigma d$
. So,
$\sigma d = K^{a+1} -C$
and
$\sigma d'\leq K^a- C$
for some
$a\geq 0$
. Since
$d'(i) \geq 1$
, we have
$\sigma (i)\leq \sigma (i)d'(i) \leq \sigma d'\leq K^a$
, so
where the entries of
$|d-d'|$
are the absolute values of the corresponding entries of
$d-d'$
. Therefore,
$K\leq \Delta \mathrm {D}+1$
, which contradicts the assumption on the size of K. So,
$R_k$
is nonempty and we obtain
$\mathrm {D}_k=\{d\in \mathrm {D}:\mathrm {supp}(d)\cap R_k\neq \emptyset \}$
.
Continuing in this way for
$1\leq j<k$
, set
$\mathrm {D}'= \mathrm {D}_0\cup \cdots \cup \mathrm {D}_{j} $
. Since
$\mathrm {D}'\subseteq \mathrm {D}$
implies
$\Delta \mathrm {D}'\leq \Delta \mathrm {D}$
, the same argument shows each
$d\in \mathrm {D}_j$
contains a nonzero entry that is zero for each
$d'\in \mathrm {D}'\setminus \mathrm {D}_j$
. Hence
$R_j$
induces
$\mathrm {D}_j$
, i.e.,
Given
$R_0=\mathrm {supp}(\mathrm {D})\setminus R^{+}_1$
by definition, we conclude that
$\mathfrak {b}=(R_0,\ldots ,R_k)$
is a blocking on
$\mathrm {D}$
such that
$\mathrm {D}_{j}^{\mathfrak {b}}=\mathrm {D}_j$
for each
$j\leq k$
, i.e.,
$\sigma $
induces the blocking
$\mathfrak {b}$
on
$\mathrm {D}$
.⊣
Suppose
$\sigma $
induces a row blocking
$\mathfrak {b}=(R_0, R_1, \ldots , R_k)$
of D. Since
$\sigma \mathrm {D}_1>0$
by definition, it must be that
$\sigma $
is
$R_1$
-positive, and since
$\sigma \mathrm {D}_0=0$
by definition, it must be that the support
$\sigma $
is contained in
$R_1^+$
. That is,
$\sigma $
must be
$(R_1,R_1^+)$
-positive. Since it is also a solution for each
$\mathrm {D}^{\mathfrak {b}}_{j}$
by definition, this proves the following lemma.
Lemma 8.8. If a
$1$
-variable substitution
$\sigma $
induces a blocking
$\mathfrak {b}$
on
$\mathrm {D}$
, then it is a
$(\mathfrak {b},1)$
-solution for
$\mathrm {D}$
. In particular, if
${\boldsymbol {\sigma }}$
is any
$\mathfrak {b}$
-solution for
$\mathrm {D}$
, the substitution obtained by replacing the first row of
${\boldsymbol {\sigma }}$
by
$\sigma $
is also a
$\mathfrak {b}$
-solution for
$\mathrm {D}$
.
We now demonstrate the converse of Corollary 8.3 by proving the following stronger statement. The proof relies on Lemma 8.13, which we prove in the next section.
Lemma 8.9. A spineless equation satisfies
$({\star \star } K)$
for all sufficiently large K.
Proof. Toward establishing the contrapositive, we assume that the n-variable simple equation
$[\mathrm {D}]$
fails
$({\star \star } K)$
for infinitely many
$K\in \mathbb {N}$
. Then there are infinitely many pairs of 1-variable substitutions
$\sigma ,\sigma '$
witnessing such failures that furthermore induce pairs of blockings for
$\mathrm {D}$
by Lemma 8.7. Since there are only finitely many blockings, and thus finitely many pairs of them, there must exist blockings
$\mathfrak {b}=(R_0,\ldots ,R_k)$
and
$\mathfrak {c}=(R^{\prime }_0,\ldots ,R^{\prime }_l)$
that are witnessed infinitely often as a pair. By Lemma 8.13,
$[\mathrm {D}]$
has a
$\mathfrak {b}$
-solution
${\boldsymbol {\sigma }}$
and a
$\mathfrak {c}$
-solution
${\boldsymbol {\sigma }}'$
. By Lemma 8.8, we can replace the first rows of
${\boldsymbol {\sigma }}$
and
${\boldsymbol {\sigma }}'$
with 1-variable substitutions
$\sigma _1$
and
$\sigma _1'$
(from the above-mentioned infinitely many) witnessing the failure of
$({\star \star } K)$
and inducing
$\mathfrak {b}$
and
$\mathfrak {c}$
, respectively.
If either
${\boldsymbol {\sigma }}{\textbf{1}_{n}}\neq {\boldsymbol {\sigma }}\mathrm {D}^{\mathfrak {b}}_{k}$
or
${\boldsymbol {\sigma }}'{\textbf{1}_{n}}\neq {\boldsymbol {\sigma }}'\mathrm {D}^{\mathfrak {c}}_{l}$
, then
$[\mathrm {D}]$
is prespinal by Theorem 8.6, and we are done. If not, we have
${\boldsymbol {\sigma }} {\textbf{1}_{n}}={\boldsymbol {\sigma }} \mathrm {D}^{\mathfrak {b}}_{k}$
and likewise
${\boldsymbol {\sigma }}' {\textbf{1}_{n}}={\boldsymbol {\sigma }}' \mathrm {D}^{\mathfrak {c}}_{l}$
. In particular,
$\sigma _1{\textbf{1}_{n}}=\sigma _1 d$
for every
$d\in \mathrm {D}^{\mathfrak {b}}_{k}$
and
$\sigma _1'{\textbf{1}_{n}}=\sigma _1' d$
for every
$d\in \mathrm {D}^{\mathfrak {c}}_{l}$
, and hence for every
$d\in \mathrm {D}^{\mathfrak {b}}_{k} \cap \mathrm {D}^{\mathfrak {c}}_{l}$
. If
$\mathrm {D}^{\mathfrak {b}}_{k}$
and
$\mathrm {D}^{\mathfrak {c}}_{l}$
were not disjoint, there would be a
$d\in \mathrm {D}$
such that
$\sigma _1{\textbf{1}_{n}}=\sigma _1 d$
and
$\sigma _1'{\textbf{1}_{n}}=\sigma _1' d$
, which would imply that
$\sigma _1,\sigma _1'$
satisfy
$({\star \star }K)$
, contradicting their choice above. Hence
$\mathrm {D}^{\mathfrak {b}}_{k}$
and
$\mathrm {D}^{\mathfrak {c}}_{l}$
are disjoint and by the definition of blockings,
$R_k$
and
$R^{\prime }_l$
are also disjoint.
As a result the row partition
$\mathfrak {a}: =(B_0, B_1)$
, where
$B_1=R_k\cup R^{\prime }_l$
and
$B_0=\{1,\ldots ,n\}\setminus B_1$
, is actually a row blocking on
$\mathrm {D}$
which furthermore induces the partition of columns
$\mathrm {D}^{\mathfrak {a}}_1=\mathrm {D}^{\mathfrak {b}}_{k}\cup \mathrm {D}^{\mathfrak {c}}_{l}$
and
$\mathrm {D}^{\mathfrak {a}}_0=\mathrm {D}\setminus \mathrm {D}^{\mathfrak {a}}_1$
. We will construct a
$1$
-variable substitution
$\alpha $
that will serve as an
$\mathfrak {a}$
-solution for
$\mathrm {D}$
witnessing the prespinality of
$[\mathrm {D}]$
.
Let
$\sigma _k$
and
$\sigma ^{\prime }_l$
be the bottom rows of
${\boldsymbol {\sigma }}$
and
${\boldsymbol {\sigma }}'$
, respectively. Since
$\sigma _k$
is a
$(R_k,R^+_k)$
-positive solution for
$\mathrm {D}^{\mathfrak {b}}_{k}$
, the value
$t= \sigma _k\mathrm {D}^{\mathfrak {b}}_{k}$
is positive, and since
$R_k$
and
$R_l'$
are disjoint,
$\sigma _k\mathrm {D}^{\mathfrak {c}}_{l}$
is zero; in detail
$R^{\prime }_l$
contains columns that appear in earlier blocks than
$R_k$
. Similarly,
$t'= \sigma ^{\prime }_l\mathrm {D}^{\mathfrak {c}}_{l}$
is positive and
$\sigma ^{\prime }_l\mathrm {D}^{\mathfrak {b}}_{k}$
is zero. Note that
$\sigma _k{\textbf{1}_{n}}=t$
and
$\sigma ^{\prime }_l{\textbf{1}_{n}}=t'$
follow by the fact that
${\boldsymbol {\sigma }} {\textbf{1}_{n}}={\boldsymbol {\sigma }} \mathrm {D}^{\mathfrak {b}}_{k}$
and
${\boldsymbol {\sigma }}' {\textbf{1}_{n}}={\boldsymbol {\sigma }}' \mathrm {D}^{\mathfrak {c}}_{l}$
.
We now define the
$1$
-variable substitution
${\alpha }= t'\sigma _k+t\sigma ^{\prime }_l$
. Since
$R_k$
and
$R^{\prime }_l$
are disjoint, it follows that
${\alpha }\mathrm {D}^{\mathfrak {b}}_k=t't+t0=tt'$
and
${\alpha }\mathrm {D}^{\mathfrak {c}}_l=t'0+tt'=tt'$
, so
${\alpha }\mathrm {D}^{\mathfrak {a}}_1=tt'$
; also
${\alpha }{\textbf{1}_{n}}=t't+tt'=2tt'$
. In the case when
$\mathrm {D}^{\mathfrak {a}}_0$
is nonempty, we have
${\alpha } \mathrm {D}^{\mathfrak {a}}_0=0$
, because
$\sigma _k\mathrm {D}^{\mathfrak {b}}_{j}=0$
, for
$j<k$
, and
$\sigma ^{\prime }_l\mathrm {D}^{\mathfrak {c}}_{i}=0$
, for
$i<l$
. Since
$t,t'>0$
, we have
$2tt'>tt'>0$
, and therefore it follows that
$\alpha {\textbf{1}_{n}}\not \in \alpha \mathrm {D}$
and so
$[\mathrm {D}]$
is prespinal by Theorem 8.6.⊣
Lemmas 8.3 and 8.9 establish the equivalences between a simple equation being spineless and satisfying
$({\star \star })$
, and as well as satisfying
$(\star )$
.
Theorem 8.10. A simple equation is spineless iff it satisfies
$({\star \star }K)$
for every sufficiently large K.
Therefore, to establish Theorem 8.10 we must prove Lemma 8.13.
8.5 Solutions in
$\mathbb {R}^n$
The goal of this section is to prove Lemma 8.13. To address this, we recall a theorem of alternatives for positive solutions to linear systems accompanied by conventional terminology (see [Reference Urquhart15]).
Let
$v\in \mathbb {R}^n$
(viewed as a row vector) and
$M\subseteq \mathbb {R}^n$
. We say that
$v$
is orthogonal to M if
$v M=0$
. We say that
$v$
is strictly positive if
$v\neq {\textbf{0}}$
and
$v(i)\geq 0$
for each
$i\in \{1,\ldots ,n\}$
. The set
${X}^n_{+}$
denotes the set of all strictly positive vectors in
$X^n$
, called the strictly positive orthant in
${X^n}$
, where
$X\in \{\mathbb {Z},\mathbb {Q},\mathbb {R} \}$
. The following (folklore) theorem is equivalent to Farkas’s Lemma (for instance, see [Reference Roman14, Theorem 27]).
Theorem 8.11. Let
$M\subseteq \mathbb {R}^n$
be nonempty set of vectors and
$i\in \{1,\ldots ,n\}$
a fixed index. Then exactly one of the following holds
$:$
-
1. there exists a strictly positive vector
$v$
orthogonal to M where
$v(i)>0$
, or -
2. there exists a strictly positive vector
$w\in \mathrm {span}(M)$
where
$w(i)>0$
.
Note that
$\mathrm {span}(M)_S = \mathrm {span}(M_S)$
for any
$M\subseteq \mathbb {R}^n$
and
$S\subseteq \{1,\ldots ,n\}$
; here the subscript S denotes restriction to S.
Corollary 8.12. Let
$M\subseteq \mathbb {R}^n$
and
$T\subseteq S \subseteq \{1,\ldots ,n\}$
be non-empty. If there is no T-positive vector in
$\mathbb {R}^{|S|}_+$
orthogonal to
$M_S$
then there exists
$L\in \mathbb {N}$
such that, for any
$v\in \mathbb {R}^n_+$
orthogonal to M,
$v(i)\leq L\cdot \max \{v(j): j\in \{1,\ldots ,n\}\setminus S\}$
for each
$i\in T$
.
Proof. By Theorem 8.11, for each
$i\in T$
there exists a strictly positive (in
$\mathbb {R}^{|S|}$
) vector
$w_i \in \mathrm {span}(M_S)$
where
$w_i(i)>0$
. Then
$\bar {w}:=\sum _{i\in T}w_i\in \mathrm {span}(M_S)$
is strictly positive with
$T\subseteq \mathrm {supp}(\bar {w})$
. Let
$w\in \mathrm {span}(M)$
be such that
$w_S = \bar {w}$
. Note that since T is nonempty and
$T\subseteq \mathrm {supp}(w_S)$
, it follows that
$t:=\min \{w(i): i\in T\}$
is positive. Set
$S^c:=\{1,\ldots ,n\}\setminus S$
and
$m:=\sum _{j\in S^c}|w(j)|$
, where we take the empty sum to be zero. Define L to be the smallest positive integer greater than
$m/ t$
.
Now, suppose
$v\in \mathbb {R}^n_+$
is orthogonal to M. Then
$v w^{{\top }}=0$
and hence
Let N denote this common value. Considering the right-hand side of the equation, we obtain
$N\leq m\cdot \max \{v(j): j\in S^c\}.$
Considering the left-hand side of the equation,
$tv(i)\leq w(i)v(i)\leq N$
, for all
$i\in T$
, since
$T\subseteq S$
and
$w(i)\geq t>0$
. Therefore, for all
$i\in T$
, we deduce
$v(i)\leq N/t\leq L\cdot \max \{v(j): j\in S^c\}$
.⊣
Lemma 8.13. Let
$\mathrm {D}$
be a finite subset of
$\mathbb {F}_n$
and
$\mathfrak {b}$
be a blocking on
$\mathrm {D}$
. If there are infinitely many
$K\in \mathbb {N}$
for which there exists a
$1$
-variable substitution
$\sigma $
that induces
$\mathfrak {b}$
and
$\sigma \mathrm {D}$
is contained in some shift of
$K^{\mathbb {N}}$
, then
$\mathrm {D}$
has a
$\mathfrak {b}$
-solution.
Proof. Working contrapositively, we assume that
$\mathrm {D}$
has no
$\mathfrak {b}$
-solution. We will show that if
$K> 1$
is such that there exists a
$1$
-variable substitution
$\sigma \in \mathbb {F}^{\top }_n$
that induces a blocking
$\mathfrak {b}$
on
$\mathrm {D}$
and that
$\sigma \mathrm {D}$
is contained in some shift of
$K^{\mathbb {N}}$
, then K can be no larger than a certain multiple of
$\Delta \mathrm {D}$
. Let
$\mathfrak {b}=(R_0,\ldots ,R_k)$
, where
$k\geq 1$
.
For any nonempty
$A\subseteq \mathbb {F}_n$
, fix
$\bar {a}\in A$
and define
$\bar {A}:=\{a-\bar {a}: a\in A \}$
; note that the entries of the column vectors are in
$\mathbb {Z}$
. For a set of rows
$S\subseteq \{1,\ldots ,n\}$
,
$\sigma $
is a solution for
$A_ S$
iff
$\sigma A_S$
is a singleton iff
$\sigma A_S=\sigma \bar {a}$
iff
$\sigma \bar {A}_S=\{0\}$
iff
$\sigma $
is orthogonal to
$\bar {A}_S$
in
$\mathbb {R}^{n}$
(regardless of the choice
$\bar {a}\in A$
). Hence, if
$T\subseteq S$
, then there exists a T-positive solution for A in
$\mathbb {F}^{\top }_S$
iff there exists a T-positive solution for
$A_ S$
iff there exists a T-positive vector of
$\mathbb {R}^{|S|}_+$
orthogonal to
$\bar {A}_S$
.Footnote
15
Now, by definition of being a blocking, for each
$i\geq k$
the set
$\mathrm {D}^{\mathfrak {b}}_i$
is nonempty, so we can define
$\bar {\mathrm {D}}^{\mathfrak {b}}_i=\{d-\bar {d}_i: d\in \mathrm {D}^{\mathfrak {b}}_i \}$
for some fixed
$\bar {d}_i\in \mathrm {D}^{\mathfrak {b}}_i$
. Since, if
$\textbf{0}\in \mathrm {D}$
then
$\textbf{0}\in \mathrm {D}^{\mathfrak {b}}_0$
by definition, we may define the (possibly empty) set
$\bar {\mathrm {D}}^{\mathfrak {b}}_0:=\mathrm {D}^{\mathfrak {b}}_0$
. We note that if
$\sigma $
is a
$(\mathfrak {b},i)$
-solution for
$\mathrm {D}$
then
$\sigma \bar {\mathrm {D}}^{\mathfrak {b}}=0$
, where
$\bar {\mathrm {D}}^{\mathfrak {b}}:=\bar {\mathrm {D}}^{\mathfrak {b}}_0\cup \cdots \cup \bar {\mathrm {D}}^{\mathfrak {b}}_k$
.
Since
$\mathrm {D}$
has no
$\mathfrak {b}$
-solution, there must be some
$1\leq i\leq n$
for which there is no
$(\mathfrak {b}, i)$
-solution. However, since
$\sigma $
induces
$\mathfrak {b}$
, Lemma 8.8 implies that
$\sigma $
is a
$(\mathfrak {b}, 1)$
-solution, and so
$i>1$
. Therefore, for some
$i>1$
, there is no
$R_i$
-positive
$v\in \mathbb {R}^{|S|}_+$
orthogonal to
$M_S$
, where
$M={\bar {\mathrm {D}}^{\mathfrak {b}}}$
and
$S={R^{+}_i}$
. Since
$\sigma $
induces a blocking,
$\sigma $
is strictly positive, and since
$\sigma $
is a
$(\mathfrak {b},1)$
-solution for
$\mathrm {D}$
,
$\sigma $
is orthogonal to
${\bar {\mathrm {D}}^{\mathfrak {b}}}$
; since further
$R_i \subseteq R^+_i$
, by Corollary 8.12 we have that there exists
$L \in \mathbb {N}$
such that
$\sigma (t)\leq L\cdot \max \{ \sigma (x): x\in X\}$
for all
$t\in R_i$
, where
$X:= \{1,\ldots ,n\}\setminus R_i^+=R_0\cup \ldots \cup R_{i-1}$
.
Since
$\sigma $
induces
$\mathfrak {b}$
and since
$i>1$
, we have
$0<\sigma \mathrm {D}^{\mathfrak {b}}_{i-1}< \sigma \mathrm {D}^{\mathfrak {b}}_{i}$
. As
$\sigma \mathrm {D}$
is contained in a shift of
$K^{\mathbb {N}}$
, say
$K^{\mathbb {N}}-C$
for some
$C\in \mathbb {N}$
, there must be
$a\geq 0$
and
$b>0$
such that
$\sigma \mathrm {D}^{\mathfrak {b}}_{i-1}=K^a-C$
and
$\sigma \mathrm {D}^{\mathfrak {b}}_{i}=K^{a+b}-C$
. Observe that
$\sigma (x)\leq K^a $
for all
$x\in X$
since
$\sigma \mathrm {D}^{\mathfrak {b}}_j\leq \sigma \mathrm {D}^{\mathfrak {b}}_{i-1}\leq K^a$
for each
$j\leq i-1$
by definition of
$\sigma $
inducing
$\mathfrak {b}$
. Hence
$\sigma (t)\leq LK^a$
for all
$t\in X\cup R_i$
.
For
$d\in \mathrm {D}^{\mathfrak {b}}_i$
and
$d'\in \mathrm {D}^{\mathfrak {b}}_{i-1}$
, we have
$\mathrm {supp}(\{d,d'\})\subseteq X\cup R_i$
, so
It follows that
$K\leq L\Delta \mathrm {D}+1$
.⊣
The lemma above completes the proof of Lemma 8.9 and hence Theorem 8.10.
Now, if
$\Gamma $
is a finite set of spineless simple equations then each equation in
$\Gamma $
must be non-mingly by Lemma 6.4, and furthermore there must exist a smallest K for which each equation in
$\Gamma $
satisfies
$({\star \star }K)$
as a consequence of Theorem 8.10. Therefore, by Corollary 7.16, we obtain:
Corollary 8.14. For any finite set of spineless simple equations
$\Gamma $
, every subvariety of
$\mathsf {RL}$
containing
$\mathsf {CRL}+\Gamma $
has undecidable word problem.
This completes the proof of Theorem 5.5, and therefore also of Theorem 5.9.
9 Concluding remarks
First, we note that the quasiequations used to establish Theorem 4.5 are in the signature
$\{\vee ,\cdot ,1\}$
, so all complexity lower-bound/undecidability results hold even when restricting the word problem to the
$\{\vee ,\cdot ,1\}$
-fragments of such varieties. On the other hand, the equations used to establish Theorem 5.9 make use of the full signature.
Corollary 9.1. Let
$\varepsilon $
be a spineless equation that is simple over
$\mathsf {RL}$
and
$\mathcal {V}$
a variety of residuated lattices containing
$\mathsf {CRL}_{\varepsilon }$
as a subvariety. Then the word problem
$($
and hence quasiequational theory
$)$
for the
$\{\vee ,\cdot ,1\}$
-fragment of
$\mathcal {V}$
is undecidable. Furthermore, if
$\varepsilon $
is expansive then the equational theory for
$\mathcal {V}$
is undecidable.
Given a simple equation
$\varepsilon $
, by
$(\varepsilon )$
we denote its corresponding sequent-style inference rule, e.g., if
$\varepsilon :xy\leq x^2yx\vee x\vee 1$
, then
Corollary 9.2. Let
$\varepsilon $
be a spineless simple equation and
$\mathbf{L}$
any logic contained in the interval from
$\mathbf{FL}_{\mathbf{e}}+(\varepsilon )$
to
$\mathbf{FL}$
. Then deducibility in the
$\{\vee ,\cdot ,1\}$
-fragment of
$\mathbf{L}$
is undecidable. Furthermore, if
$\varepsilon $
is expansive then provability in the (
$0$
-free fragment of)
$\mathbf{L}$
is undecidable.
9.1 Commutative varieties and single variable extensions
In the following table we display decidability results for subvarieties of
$\mathsf {CRL}$
axiomatized by
$1$
-variable equations using Lemma 5.4. The numbers
$n,p,q,...$
are distinct and positive,
$m\geq 0$
, and furthermore are all given so that
$\varepsilon $
is not trivial. By
$(1~\vee )$
we mean
$1$
may or may not be included in the expression.

We note that subvarieties axiomatized by equations of the form
$x^n\leq x\vee 1$
have the finite model property. In fact, any subvariety of
$\mathsf {RL}$
axiomatized by a simple equation in which each term on the right-hand side is linear (i.e., any variable occurs at most once in any joinand) has the finite model property (see Theorem 3.15 in [Reference Galatos, Jipsen, Kowalski and Ono5]). Similarly, while the subvariety of
$\mathsf {CRL}$
axiomatized by the simple equation
$\varepsilon : xyz\leq xy\vee xz\vee yz\vee x\vee y\vee z$
has an undecidable word problem (it is easily verified that
$\varepsilon $
is spineless),
$\mathsf {CRL}+\varepsilon $
has the FMP.
Subvarieties of
$\mathsf {CRL}$
axiomatized by equations of the form
$x^n\leq x^{m+1}\vee 1$
, the simplest of which is
$\mathsf {d}: x\leq x^2 \vee 1$
, have no known decidability results for their (quasi-)equational theories. Focusing on the equation
$\mathsf {d}$
, we make the following observations:
-
•
$\mathsf {CRL}_{\mathsf {d}}$
does not have the finite embeddability property. In fact, extensions of
$\mathsf {CRL}$
by equations of the form
$x^n y^m\leq x^{2n}\vee y^{2m}$
do not have the FEP for any choice
$n,m$
. This follows from the fact that such equations hold in chains and the FEP fails in such extensions of
$\mathsf {CRL}$
(see [Reference Horčík7]). -
• The quasiequational theory of
$\mathsf {CRL}_{\mathsf {d}}$
does not have a primitive recursive decision procedure. This can be shown using Theorem 4.5 and the machine constructed in [Reference van Alten16] (which shows that provability in
$\textbf{FL}_{\textbf{ec}}$
, while decidable, is not primitive recursive). In fact, the same construction can be used to show that there is no primitive recursive decision procedure for the quasiequational theory of the subvariety of
$\mathsf {CRL}$
axiomatized by
$x^m\leq x^{m+n}~(\vee ~1)$
with
$m,n>1$
. Furthermore, by Corollary 5.8 the same holds for the equational theory of the subvariety of
$\mathsf {CRL}$
axiomatized by
$x^m\leq x^{m+n}$
, as this equation is expansive. A more general treatment will be given in a forthcoming paper.
9.2 Non-commutative varieties
As mentioned above, although the main reason for our study has been to establish undecidability for commutative varieties, we also get results about non-commutative ones. Here we compare that portion of our results with existing ones. In [Reference Jipsen and Tsinakis8], it is shown that any variety of residuated lattices containing (as a subvariety)
$\mathcal {H}=\mathsf {RL}+(x^3\leq x^2)+(x\leq x^2)$
has an undecidable word problem witnessed in its
$\{\leq , \cdot , 1\}$
-fragment; of course no subvariety of
$\mathsf {CRL}$
contains
$\mathcal {H}$
, so this result has no implication about commutative varieties. In fact, the algebra
$\textbf{W}^+\in \mathcal {H}$
constructed in [Reference Jipsen and Tsinakis8] satisfies every equation for which the deletion of any collection of its variables results in either a trivial equation or one with the right-hand side containing a square subterm (i.e., a joinand of the from
$uv^2w$
for
$u,v,w\in X^*$
with
$v\neq 1$
.) As a result, even though Theorem 5.5 covers a lot of commutative varieties, it does not offer any new results for non-commutative varieties axiomatized by
$1$
-variable equations. In fact, the results in [Reference Jipsen and Tsinakis8] entail undecidability of the word problem for many non-commutative extensions of
$\mathsf {RL}$
by prespinal equations; e.g.,
$\mathsf {RL}_{\mathsf {d}}$
has an undecidable word problem since
$\textbf{W}^+\models x\leq x^2\vee 1$
.
However, there are infinitely many equations in two or more variables for which Theorem 5.5 is applicable while [Reference Jipsen and Tsinakis8] is not. For example, any equation that is rendered trivial via commutativity (e.g.,
$x^2y\leq xyx$
) is spineless and hence subvarieties of
$\mathsf {RL}$
by such equations have an undecidable word problem by Theorem 5.5.
More interesting
$3$
-variable basic equations can be obtained by using square-free joinands.Footnote
16
Let
$X=\{x,y,z\}$
and let
$h:X^*\to X^*$
be the homomorphism extending the assignment
$h(1)=1$
,
$h(x)=xyz$
,
$h(y)=xz$
, and
$h(z)=y$
. One can produce square-free words of arbitrary length by considering
$h^0(x)=x$
and
$h^{k+1}(x)=h(h^k(x))$
(see [Reference Minksy12]). For any nontrivial
$1$
-variable equation
$\varepsilon :x^n \leq (1~{\vee })~x^p \vee x^q\vee \cdots $
, we denote by
$h(\varepsilon )$
the basic equation:
Since
$\varepsilon $
is nontrivial,
$h(\varepsilon )$
is nontrivial and furthermore has square-free joinands. Consequently,
$\mathcal {H}\not \models h(\varepsilon )$
and so [Reference Jipsen and Tsinakis8] is not applicable to equations of this form. However, if
$\varepsilon $
is a spineless
$1$
-variable basic equation then it can easily be shown that
$h(\varepsilon )_{\mathcal {C}}$
is also spineless and therefore
$\mathsf {RL}+h(\varepsilon )$
has an undecidable word problem by Theorem 5.5. For example, consider the equation
$\varepsilon : x\leq x^2\vee x^3$
, then
It is easily checked using Theorem 8.6 that
$h(\varepsilon )_{\mathcal {C}}$
is spineless and hence
$h(\varepsilon )$
is spineless in view of Definition 5.3. Therefore
$\mathsf {RL}+h(\varepsilon )$
has an undecidable word problem by Theorem 5.5, but
$\mathcal {H}\not \models h(\varepsilon )$
.
While our undecidability results for the word problem in these varieties takes place in the
$\{\vee ,\cdot ,1\}$
-fragment, we can strengthen such results to the
$\{\leq ,\cdot ,1\}$
-fragment for many non-commutative extensions of residuated lattices (even by some prespinal equations) using a different encoding not relying on the
$\vee $
operation. Such ideas will be explored in a forthcoming paper.




