1. Introduction
Among the central subjects of mathematical logic, there are formal theories investigations. There are theoretical and practical reasons for this interest. For example, such investigations have a value for database query languages. These ideas were proposed by E. F. Codd in [
1]. In his papers E. F. Codd introduced the concept of relational databases and query languages. The relational model of a database is a relational finite structure. E. F. Codd proposed to use relational algebra as a query language. Relational algebra is equivalent to the language of first-order logic. To encode database items, various mathematical objects (numbers, words, and so on) are used. Usually, some “natural” operations (or relations) on such objects can be performed. For example, we can perform arithmetical or bitwise operations on natural numbers, concatenation on words, various comparisons, and so on. So, we have a complex structure: a finite relational structure (a database itself) that is embedded into an infinite universe (see [
2]). Therefore, a database management system must operate with some logic language on a given universe. But, this possibility can imply the undecidability of many tasks because corresponding problems are undecidable for universes (see, for example [
3]). Usually, in such cases, the elementary arithmetic is interpretable as in [
4].
Another feature of modern systems is the construction of aggregate types. For example, arrays, maps, or sets (of numbers, words, Boolean values, etc.) can be declared as new data types and can be used in databases. These constructions are finite due to “natural” restrictions of storage capacity. So, we have a structure, which can contain not only atomic objects but aggregates, for example, finite sets of such objects.
The same problem appears in the formal automata theory in the determinization process (see [
5]). A finite non-deterministic automaton can be presented by some semigroup (see [
6]). So, the deterministic automata corresponds to the semigroup of subsets.
Our investigations began in [
7] where algebras of languages are considered. In our papers [
8,
9] we consider new algebras
those are constructed as finite subsets of some source algebra
. Source algebra operations can be naturally extended to finite subsets, so this is a universal method to construct new structures.
Subsets of algebras, in particular, Abelian groups and commutative semigroups, are actively investigated in algebra and in number theory (for example, see [
10] or [
11]). Many classic problems can be formulated in the language of subset algebra. For example, the binary Goldbach’s conjecture is the claim that
where
P is the set of primes and
E is the set of even naturals. Also, the subset sum problem is a classic NP-complete problem (see [
12]).
Let us note that this construction of the finite subsets’ algebra is not equivalent to the weak monadic second-order logic for the original algebra. The language of the second-order logic allows using first-order variables (see [
13]). Hence, the second-order language always includes the first-order language. But in the first-order theory of the finite subset algebra, there is no explicit way to denote first-order objects. This lack is significant because there exist examples, where the first-order theory of the finite subset algebra is algorithmically simpler than the theory of the original algebra. For the weak monadic second-order logic, it is impossible.
The algorithmic properties of finite subsets algebras and their theories are very different. This new theory can be decidable even in the case when the theory of the original algebra is undecidable. And vice versa, for an original structure with decidable theory, the new theory can allow interpreting the elementary arithmetic (see [
8]).
The problem for unoids was solved in [
14]. In that paper, an infinite set of parameters was found for unoids, and these parameters describe the subsets theory completely.
The typical example of this concept is the formal language theory [
5,
15]. Words form the free monoid (with concatenation), and every language is a set of words. So, the concatenation of entire languages can be considered as an extension of the word concatenation onto sets of words.
Our previous result, which is proved in [
8], is the following. Let
be a commutative cancellative monoid with an element of infinite order, then the theory of finite subsets of
allows to interpret elementary arithmetic, hence, this theory is undecidable. Examples of such monoids are well-known: numbers with addition or multiplication, polynomials and spaces over a field of characteristic zero, and so on. In particular, every Abelian group that is not a torsion group is such a monoid. So, the natural question appears: does this result hold for the Abelian torsion group?
In this article, we consider Abelian torsion groups with elements of unbounded order. By compactness, every such group is elementary equivalent to some Abelian group with an element of infinite order. But the compactness concept is not applicable here because elementary equivalent source algebras can generate finite subsets algebras that are not elementary equivalent. A corresponding example is given below. Thus, we need to consider Abelian torsion groups themselves.
Example 1. Let be the cyclic additive group of order i. We can suppose that the different groups have no common element. Then, the monoid is a union of all . An operation + in is defined the next way: when , otherwise. Here is the operation in , is the neutral element of .
Thus, has the following property: for each finite set there is , such that . This Y is the union of and all those intersect with X.
By compactness, there is an elementary equivalent monoid that includes the infinite cyclic group . But the given property doesn’t hold in if X has elements from .
In [
9] we have shown how to interpret elementary arithmetic in the finite subsets algebra for the multiplicative group of all roots of unity. But that proof can’t be applied to an arbitrary Abelian torsion group because specific properties of the unity roots group are used.
In this paper, we generalize the result from [
9] to all Abelian torsion groups with elements of unbounded order. For example, the result holds for any direct sums of unbounded cyclic groups and infinite subgroups of the unity roots group.
3. Finite Subsets of
In this section, we investigate some basic definabilities in the algebra of finite subsets. The main notion introduced here is the kernel of a subset.
The empty set is definable by
In the following, we consider nonempty sets only.
Lemma 1. If x contains 0, then .
Proof. If , then . □
Lemma 2. Let x be a subgroup of . Then, if and only if .
Proof. As x contains 0, so implies by Lemma 1. The converse is trivial. □
Lemma 3. In the monoid invertible elements are one-element sets exactly.
Proof. Evidently, . If x contains two elements, then contains at least two elements also, so, . □
Corollary 1. One-element sets are definable in with a formula .
Let the relation
mean that
for some
. This relation is definable:
The relation ≈ is a congruence because
and
imply
. Any set
is congruent to a set of the form
:
.
Lemma 4. The equality is true in if and only if x is a subgroup of . In particular, implies .
Proof. Let , are any elements of x, so . Hence, , , and so on. Therefore, for all natural n. In particular, if , then and .
The converse is trivial. □
Lemma 5. Let x contain 0. Then, there is a natural number n such that .
Proof. If , then .
In the other case, x contains 0 and some non-zero elements . Let for . Thus, the set contains sums of the form exactly, where . Each has possible values, so, there are at most sums of the given kind. Hence, has finitely many possible values. By Lemma 1, we have , so, the sequence of sets is growing. Therefore, for some n. □
Corollary 2. The set in the previous lemma is the subgroup generated by x.
Proof. From we obtain by induction. By Lemma 4, the set is a subgroup.
If a subgroup z includes x, then z includes for all natural m. Hence, . □
For any set x the notion means the subgroup generated by x.
Lemma 6. The subgroup is the least set y such that .
Proof. The equations follow from the definition of a generated subgroup.
By Lemma 4, the equality implies that y is a subgroup. As , so . Hence, , the least of such y is the subgroup . □
Corollary 3. The subgroup generated by x is first order definable in .
Proof. The definition is
By Lemmas 4 and 2, the formula
is equivalent to
. □
Definition 1 (Kernel of a set x, ). The kernel of a set x (denote it with ) is the least subgroup such that x is included in some coset of .
Alternatively stated, is the least kernel of a homomorphism that maps all the set x to one element.
Corollary 4. .
Proof. For we have , so, by the definition. □
Lemma 7. For any set x the kernel exists.
Proof. Let
. Let
be the family of all subgroups
such that
. Hence,
for
, this subgroup is the least one, i.e., the kernel
. □
Corollary 5. If , then .
Proof. Let in the proof of Lemma 7. Thus, for all subgroups such that . But this intersection is . □
Lemma 8. Let , then and this subgroup is the least among all subgroups , .
Proof. Evidently, for all because if and only if for any subgroup . For we have . By Corollary 5, we obtain .
For we have . □
Corollary 6. If , then .
Corollary 7. The kernel of a set is definable in .
Proof. The definition is
The equality
is equivalent to
because
. □
Lemma 9. For all x the equality is true if and only if for almost every natural n.
Proof. Let
, then
for all
by Lemma 8. By Corollary 2, we have
for all but finitely many
n due to
. From
we can deduce
for all
n, so, for all but finitely many
n we have
Now let for all but finitely many n. Let , . Then, for all but finitely many n multiple of l we obtain . Thus, . Therefore, is the least of all . By Lemma 8, we have . □
Corollary 8. For any x there is a natural n such that .
Proof. Let , then where . So, for some n we have . □
Lemma 10. if and only if .
Proof. Indeed, we have where , and . So, the claim is evident. □
Corollary 9. if and only if .
5. Multiple Relations
Early, we use the relation to interpret the multiplication in the algebra . Here we establish that this relation is definable.
In [
9] the following claim was proved (Theorem 1):
Lemma 11. Let be any Abelian torsion group. Then, there is a formula that is true in if and only if the set x has exactly two elements.
Proof. If
contains five or more elements, then the condition can be expressed by the formula
Another cases (two, three, or four elements in
) are considered separately.
Let us consider the following binary relation
:
Lemma 12. If is true, then for some natural n.
Proof. If X is invertible, then .
Otherwise, and is false. By the implication, we have . If is uninvertible, then the same manner we have . So, we obtain for all naturals n until is invertible. Then, .
Such n must exist because otherwise we have for some n by Corollary 8. Then, and is false. □
Lemma 13. If is true, , and , then the formula is true.
Proof. From we have for some a.
Let and v have at least two elements. The difference between any two elements of X has the form , so, the difference between any two elements of u or any two elements of v have the same form. Hence, and . Let us select the minimal , then , and we have . □
Lemma 14. Let and be true. Then, is true if and only if for some .
Proof. Let be true. Then, by Lemma 12. From we have and . As , so must include . Hence, there are different such that and . So, , , , and .
The converse claim is true because , , . □
Lemma 15. If is true, , , , then all elements are pairwise different where , .
Proof. Let .
If , then and due to .
Now let . If , then and due to . Otherwise, , , and . Hence, that contradicts to by Lemma 14. □
Theorem 2. The formula is true if and only if , , for some , , and natural , .
Proof. Let
be true. Then,
for some
. By Lemma 12, we have
and
for some naturals
and
. If
, then
,
,
, and we have a contradiction. So,
. The set
contains exactly
elements:
. So, the set
contains exactly
elements also. If
, then
Hence, or . In the first case, we have . In the second case we have .
Now let , , for some , , and natural , . Then, the formulas , , are true. Let . Thus, and are true. The formula is true by Lemma 13. □
6. The Equivalence Relation
The remaining problem is to define the equality relation for our interpretation of the elementary arithmetic. Thus, our last task is to construct a formula for an equivalence relation that is true if and only if and for some n.
Lemma 16. Let , , and be false. Let . Then, there are exactly seven sets u such that .
Proof. By Corollary 9, we have and . From falsehood of the formula we have all elements to be pairwise different for (Lemma 15).
Let . From we have . The set consists of all for . From we have .
If we suppose that contains where , then contains . Thus, for . If , then . As and , so that is impossible. If , then that is impossible too. Analogously the case is impossible.
Thus, contains for only, i.e., .
Further, because can be obtained only as , , correspondingly. To obtain the set must contain a, b, or .
Thus, for any nonempty . There are exactly seven such . □
Lemma 17. Let for . Let there be exactly seven sets u such that . Then, x contains exactly three elements.
Proof. Let
. From
we have
. If
x (and
) contains exactly two elements, then there are exactly two such
u (see [
8], Proposition 4).
Let us denote with . Let us suppose that x contains four or more elements: for non-zero and pairwise different . Then, can be for any . There exist exactly eight such (and ). Let us prove for , then the other possibilities follow. Evidently, we have , consider the converse inclusion.
for ;
when . Let us note that ;
when ;
when ;
when . Let us note that and ;
when .
The other cases can be considered analogously.
Therefore, if x has four or more elements, then there are at least eight u such that . □
Lemma 18. Let and be true, and be false. Then if and only if where contains at least one element of the form , at least one element of the form , and no element of another form.
Proof. Let be true. Then, for some c. Hence, for any we have or . So, , and contains only elements of the form and .
If contains only elements of the form , then . If contains only elements of the form , then and .
The converse is trivial. □
Lemma 19. Let , , , and the formula be false. Let x be as in the previous Lemma. Then, if and only if .
Proof. The set contains exactly elements (Lemma 15). The set contains no more than elements. So, .
If , then contains together c and for some c. So, must contain d and for some d. It is impossible due to falsehood of , thus, .
Now let , then consists of for all i and , and consists of for all i and . Hence, . □
Lemma 20. Let , , , , the formulas , , be true, the formula be false, and , , . Then, if and only if
and , (or vice versa), or
and , (or vice versa).
Proof. The converse claim can be verified trivially. So, we must prove the straight one.
From and falsehood of we obtain that are not equal for any i (Lemma 15).
By Lemma 18, we have
,
,
, for some integers
and
. So, we have the equality
for some
c. The left set in (
1) consists of elements of the form
,
, and
. The right set in (
1) contains
c, so
,
, or
for some integer
. For
or
the right set contains
or
correspondingly. It is impossible because
and
don’t belong to the left set. Thus,
.
Further, let us show
, i.e., one of them is 0 and another is 1. If we expand (
1), then we obtain
For
the right set in (
2) can’t contain 0 and
a together from the left set.
For
the right set in (
2) contains
,
,
, and
. These elements can be equal to only
a or 0 in the left set. As
u and
v contain three elements,
and
can’t be equal to zero. Thus,
and
. It contradicts to
.
Now we can suppose
,
. Hence, the equality (
2) becomes
It is clear that
and
must be equal 0 and
a only, hence,
,
or
,
. In the second case, we have
and
that is the first case.
Thus, we can consider only the equality
The elements
and
from the left set in (
3) must be equal to
and
from the right set. It follows that
. So, we can assume that
and
. Hence, we obtain
Now we can consider all possibilities for
from the right set in (
4). It must be equal to 0,
a,
, or
from the left set in (
4). Thus, we have the next four possibilities.
□
Lemma 21. Let , , , be false, and where and . Then, is true.
Proof. Falsehood of means that for (Lemma 15). Hence, also, and .
Let . Then, the set consists of where . Evidently, because can’t contain g and together: .
Let and . Then, . As , so , hence, .
If contains no elements of the form , , then and . Otherwise, let us select with maximal . Then, can’t contain with . Assume and .
If contains no elements of the form , , then and . Otherwise, let us select with maximal . Then, can’t contain with . Assume and .
Then, , , and .
Let us select
with maximal
. If
, then
and
v are invertible. Otherwise,
and
. In this case,
can’t contain
with
, i.e.,
. Then
Thus,
and we have
. □
Lemma 22. Let the formulas and be true, and be false. Then, if and only if all the following formulas are true for some :
- 1.
, , ;
- 2.
;
- 3.
, ;
- 4.
, , ;
- 5.
;
- 6.
.
Proof. Let . Assume , , , , , . Then, is true by Lemma 11; and are true by Lemma 16; is true by Lemma 13; and are true by Lemma 21; , , and are true by Lemma 18; and are true by Lemma 20.
Now let all the formulas 1–6 be true. Then, from 1 we have z has two elements (Lemma 11), u and v have three elements (Lemma 17). By Lemma 20, from 5 we have
, , or
, , .
In any case, from 2 and 3 we obtain
,
,
by Lemma 12. By Lemma 18, from 4 we have
. Thus, from 6 we have
or
If we suppose , then the left sets have g and (or ) for some g, but the right sets can’t have them together because all are pairwise different for , (Lemma 15).
Now let us suppose , then the right sets have g and (or ) for some g and . By Lemma 15, we have for all . The left sets can have only elements of the form h and (or ) for some h and . Hence, that means . It contradicts to (the formula includes ).
Therefore, . □
Let us construct formulas
and
E:
Theorem 3. Let and be true. Then, is true if and only if and for some n.
Proof. From and we have and .
Let be true. Let us fix y and Y, so . Then, and are true. By Lemma 22, we have and , so .
Now let and where and . Then, and . Let us select such that and , . So, we have the formula to be true and the formula to be false. Thus, and are true by Lemma 22. □