We consider a wide series of classes of algorithmic complexity. We fix such a class and investigate the complexity of the inversion operation in classical algebraic structures, like groups or fields. In addition, we analyze the properties of quotient structures.
In the theory of algorithms, there are different approaches to the question which algorithms should be viewed as efficient. The general computability theory studies all algorithms, the theory of primitive recursive functions (p.r.f.) considers only algorithms that do not use the minimization operator, i.e., the operator of unbounded search. Inside the class of p.r.f., there is Grzegorczyk hierarchy consisting of an infinite chain of increasingly complex classes. The theory of effective computations often uses P as the basis class, which consists of all functions computable in polynomial time. Such functions can be treated as computable fairly quickly. Inside P, there exists the subclass L consisting of all functions computable in linear time. In general, there are a lot of different complexity classes in the theory of algorithms, which are primarily related with the computation time of a function.
Let Γ be a complexity class. As a basic object, we consider functions , where Σ is a finite alphabet, is the set of all words in it, and , i.e., partial functions on . We can assume that Γ is some class of functions of this kind, where the alphabet Σ can be arbitrary. Having Γ chosen, we can extend it to many other natural objects. If , where , , then we say that f is in Γ if the function is, , where ∗ is a new character not in Σ.
We say that a set is in Γ if its characteristic function is, where 0, 1 are treated as new characters.
Let be a structure of a finite signature L. We say that is in Γ if there exists a finite alphabet Σ such that the universe , and A itself and all functions and predicates from are in Γ. A similar definition can be found, for example, in [6]. In short, we say that is a Γ-computable structure.
Suppose that and is a P-computable group. What can we say about the complexity of the operation in ? Clearly, it is computable, since can be constructed by searching such that . It turns out that we can’t say anything more in many cases. In [3], it is proved that if the center of group has an element a of infinite order, then, under some additional assumptions about the complexity of the function , there exists a P-computable group , in which the operation is not even primitively recursive. In particular, this theorem can be applied to the group of integers .
On the other hand, it is proved in [2] that for every P-computable group , there is a P-computable group in which the operation is also P-computable. In other words, it can always be improved up to a quickly computable function.
The aim of this article is to try to transfer some facts of this kind to the case of a very general definition of an algorithmic class Γ. For this, we impose some weak constraints on Γ, under which a series of general facts about Γ-computable structures hold. Functions computable in linear time on multi-tape Turing machines are considered here as simplest ones, which should lie in every class Γ.
Further we consider Γ-computable Abelian groups, rings, and fields. At the end, some questions about quotient structures are considered. We say that is a Γ-computable quotient structure if , where is a Γ-computable structure and E is a congruence on from Γ.
In [2], the case of is considered, and it is proved that every P-computable quotient structure is isomorphic to a P-computable structure . Moreover, there always exists a P-computable isomorphism . In [4], it is proved that if then we can also construct an isomorphism such that f and are P-computable functions.
In this paper, we also partially generalize these facts to an arbitrary complexity class Γ. At the end, some applications to P-computable and primitive recursive fields are considered.
Note that some generalizations of this form were earlier considered in [5] for classes of Grzegorczyk hierarchy.
We briefly describe the structure of the article. In Section 2, arbitrary complexity classes Γ are discussed. In Section 3, some facts about inversion operations in Abelian groups, rings and fields are proved. In Section 4, we consider quotient structures.
Abstract algorithmic classes
Since further we work in different alphabets, note that every set can be called an alphabet. A word in an alphabet Σ is a function , where is a natural number. In a more traditional notation, x is the sequence of characters , and is the length of x. If then is the join of them. The notation means that x is an initial subword of y. As a rule, we will work with finite alphabets. Every function x, for which is a natural number, is a word in some finite alphabet.
The notation means that f is a partial function from A to B, that is, , where . If then we write , and otherwise.
As a basic computing device, we use n-tape Turing machines described in [1]. To compute a function on such a machine, we place words on the first k tapes, and get the result on the th tape. Here .
We say that , where , is computable in linear time if is computable for in time on a Turing machine, that is, in time , where c is a constant. A function f is computable in polynomial time, or P-computable, if is computable in time , where is a constant. For , we say about functions computable in quadratic, cubic, etc., time. The time of the form is called exponential.
Now we formulate the basic definition. Let Γ be a class of function of the form , where Σ is an arbitrary finite alphabet.
We say that Γ is an algorithmic class if for every finite alphabet Σ, the following are true:
Γ contains every function computable in linear time;
Γ is closed under restriction: if and , then ;
Γ is closed under joining: if are in Γ, , and , then ;
Γ is closed under composition with functions computable in linear time: if , , and g is computable in linear time, then and are in Γ.
Natural examples are classes of functions computable in linear, quadratic, polynomial, or exponential time, primitive recursive and computable functions, as well as analogues of these classes using an oracle. In general, there are a lot of such classes.
We aim to make this definition as general as possible, and the conditions as weak as possible. In particular, Γ may be not closed under composition. For example, this holds for the class of functions computable in quadratic time.
We note that including functions in Γ does not depend on the choice of a particular alphabet. Let Σ, be two finite alphabets of the same cardinality, and let be a bijection. The function that maps a word to , where for , is computable in linear time, and the same holds for . Let be a function in Γ. Considering h, f and as partial functions on , we see that is in Γ.
Now we consider the more general case of n-place functions. Suppose that , where , ∗ is a new character not in Σ, and . We say that f is in Γ if the function is, where for . This definition does not depend on the choice of ∗. We show that an analogue of condition 4) holds for n-place functions.
Let functionsandbe given. Ifand all,, are computable in linear time or, vice versa, f is computable in linear time andfor, then their compositionalso lies in Γ. Here.
We consider the second case. All functions are in Γ. Since the function on is computable in linear time, the function is in Γ. The transition from the last word to is performed in linear time. The first case is similar. □
If, in addition, Γ is closed under composition, then the same proof shows that the condition implies .
We say that a set is in Γ if is. It is easy to show that this definition does not depend on the choice of Σ: if and , and , then .
We repeat the definition from the introduction. Let Γ be an algorithmic class and be a structure of a finite signature L with universe A. We say that is a structure in Γ if there exists a finite alphabet Σ such that and A itself and all operations and relations from are in Γ. is called a quotient structure in Γ if there exist a structure in Γ and a congruence relation E on in Γ such that .
We comment the last definition. The set and the equivalence relation should be in Γ. By definition, the elements of are equivalence classes of the form , where . The set of the described form can be called a quotient set in Γ. Thus, the universe of a quotient structure in Γ is a quotient set in Γ.
If , are two structures in Γ, then we write that , is Γ-reducible to, if there is an isomorphism from Γ. We say that and are Γ-isomorphic, , if there exists an isomorphism such that f and are in Γ.
Now we transfer these natural definitions to the case of quotient structures. Suppose that , is an equivalence relation on , and is an equivalence relation on . We say that a mapping on quotient sets is in Γ if there exists a function in Γ such that for .
Let , be two quotient structures in Γ. The notation again means that there is an isomorphism in Γ, and means that there is an isomorphism for which f and are in Γ.
Identifying an element with the set , we can consider structures in Γ as a partial case of quotient structures in Γ with the trivial relation E. The notations and are coordinated in this case.
Constructing inverse operations
Suppose that Γ is an algorithmic class, andis a commutative semigroup in Γ where the following reduction law holds: ifand, then. Then there exists an Abelian groupand an isomorphic embeddingsuch thatis a quotient structure in Γ and.
The proof is based on a well-known algebraic construction, see [8, Ch. I, §9]. Let , where Σ is a finite alphabet. We assume that , where , and denote words as . Define a relation on . The set and the relation ≡ are in Γ. We show this for . The functions and on are computable in linear time, hence, the functions and are in Γ, and also the function . The function is computable in linear time.
Clearly, ≡ is reflexive and symmetric. The transitivity check looks as follows. If then , , hence and by the reduction law.
We define the following two operations on : and , which are in Γ. A direct check shows that ≡ is a congruence with respect to them. It is clear that + is commutative and associative. We define . Let denote the equivalence class of a pair . Let . Since and , the class is the zero in , and . We have that is an Abelian group. Choose and construct as .
If then . If then , , and . We see that f is an isomorphic embedding. It is easy to check that . □
Let Γ be an algorithmic class andbe an Abelian group in Γ. Then there exists an Abelian groupsuch thatandis a quotient structure in Γ.
If is an Abelian group then it is also a commutative semigroup with the reduction law, and we can use Proposition 1. It remains to note that f is an isomorphism of and in this case, that is, to check surjectivity.
We consider and choose . Then . □
We now prove a similar assertion for rings, including non-associative ones, slightly strengthening the requirements for Γ.
Suppose that Γ is an algorithmic class closed under composition, andis a structure in Γ in which + is an associative and commutative operation and for every, the following hold:
and;
ifthen.
Then there exists a ringand an isomorphic embeddingin Γ such thatis a quotient structure in Γ.
If, in addition, the operation · inis associative, thenis also an associative ring.
The proof is a direct generalization of Proposition 1. We suppose that , the elements of are treated as words , where , and are denoted by . Again . As we have seen, it is an equivalence relation in Γ.
Since a pair corresponds to in meaning in , we define on the following operations: , , and .
We have proved that ≡ is a congruence with respect to + and −. Show this for ·. We suppose that , and check that . By definition . We need to prove that
which is equivalent to
The equivalence preservation in the second argument is checked similarly. Now we prove, for example, that
The left expression is equal to
The right one is equal to
We have the same answer. The second distributivity is similar.
Using rather cumbersome calculations, one can show that the associativity of · in implies the associativity of · in . Since Γ is closed under composition, the multiplication in is a function in Γ.
Next, we repeat the reasoning from Proposition 1. Let . It is a quotient structure in Γ. Let be the equivalence class of a pair . We have proved that is a Abelian group, the associativity and distributivity of multiplication are preserved under factorization.
Let . If then , where . We see that f is an isomorphic embedding. □
Let Γ be an algorithmic class closed under composition, and letbe a ring in Γ, not necessarily associative. Then there exists a ringsuch thatandis a quotient structure in Γ.
As in Theorem 1, we apply Proposition 2 to and get an embedding , which is an isomorphism in this case. The proof of the latter fact literally repeats Theorem 1. □
Like Proposition 2, this theorem also holds for non-associative rings. If has a unity 1, then the theorem becomes obvious, since .
Let be a commutative associative ring with zero 0. An element is called a zero divisor if and there exists such that . To consider fields as structures with total operations, we assume that .
Let Γ be an algorithmic class closed under composition, and letbe a commutative associative ring without zero divisors in Γ. Then there exist a fieldand an isomorphic embeddingsuch thatis a quotient structure in Γ and.
If then we can take the two-element field as . Let . To prove the proposition, we just need to carefully write down the well-known construction of the field of quotients. Suppose that and 0 is the zero of . Let , where . The elements of S will be denoted as . They correspond in meaning to fractions from .
We define the relation on S. It lies in Γ, and clearly is reflexive and symmetric. If , then , , and . The last equality implies in a ring without zero divisors, and .
We choose a non-zero element a in A, and define the following four operations on S: , , , for , and .
It remains to prove that ≡ is a congruence on S with respect to these operations, and that all axioms of fields hold in the quotient structure , see [9, §13]. Let denote the equivalence class of a pair . Then the element is the zero in , and is the unity.
If then we define . It is easy to check that , , and implies . We get the desired isomorphic embedding from Γ. □
Let Γ be an algorithmic class closed under composition, and letbe a field in Γ. Then there exists a fieldsuch thatandis a quotient structure in Γ.
We apply Proposition 3 to and show that f is an isomorphism in this case. Let . If then . □
Transition from quotient structures to usual structures
We have constructed above a series of Γ-computable quotient structures. Now we consider a transition from a quotient structure to an isomorphic usual structure. First, we define an analogue of the class NP for an arbitrary algorithmic class Γ. Let Σ be a finite alphabet and . We say that R is a polynomially bounded relation if there exists a polynomial with natural coefficients such that . R is called a linearly bounded relation if the polynomial has degree 1, i.e., there are constants such that .
Let Γ be an algorithmic class and A be a set. We say that if there exist a finite alphabet Σ and a polynomially bounded relation in Γ such that for every x, the equivalence holds. In this case . If the relation R in this definition is linearly bounded, then . As usual, a k-place set A is in if is.
We clarify how an n-tape Turing machine with an oracle in an alphabet Σ works. We can assume that one tape is reserved for questions to the oracle. We write a word x on it, place a head at the end of x, turn to the oracle, and get the answer 1 on the same tape after x if , and the answer 0 if . If then the machine remains in the original state, i.e., is looping. The query to the oracle takes 1 step of work.
By we denote the class of all functions computable in linear time with some oracle in Γ.
Suppose that Γ is an algorithmic class closed under composition,, and. Then for every quotient structurein Γ, there exists a structurein Γ such that.
Let , where is a structure in Γ, , and is a congruence in Γ. We choose a standard order ⩽ on , comparing words first by length, and then lexicographically, fixing some order on Σ. Then define a relation on by the formula
By hypothesis . Hence, . Next, we define a relation
Again . Let . If then let denote the unique element of such that and . We describe an algorithm for computing .
Using P as an oracle, we define the values . If then . Next, we define the values for all in the same way, and find such that , etc.
Since , we find after no more than cycles, making at most requests to the oracle. Therefore is in the class , and by hypothesis .
Let . It is a set in Γ. We define an interpretation of L on B so that the mapping , , becomes an isomorphism. For this, we need to restrict the predicates to B, and define every operation f by the formula . We obtain a structure in Γ, for which can be defined by the identical function. □
If the signature of has no functions, then the closure condition under composition for Γ can be removed from the formulation. In this case, the conditions of the theorem hold, for example, for the class Γ of functions computable in exponential time, as well as in time of the form , where a constant is fixed.
One of the most interesting cases is . The condition is met. If, in addition, , then and every P-computable quotient structure is P-computably isomorphic to a usual P-computable structure. The latter statement cannot be refuted without proving that . This fact was established in [4].
Moreover, it is proved in [2] that this is always true if we weaken requirements for the isomorphism: for every P-computable quotient structure , there exist a P-computable structure and a P-computable isomorphism . Combining this fact with Theorem 3, we obtain the following:
Letbe a P-computable field. Then there exists a P-computable fieldisomorphic to it.
If, in addition,, then we can assert that.
For groups (not only Abelian), a similar fact is proved in [3].
Suppose that Σ, are two finite alphabets and . It is well known that there exists a bijection such that g and are computable in quadratic time. Really, it is a function translating numbers from one number system to another, up to technical details. If we want to define the notion of a primitive recursive function , then it is natural to assume that g preserves this property. Hence it suffices to consider the case . Let be the standard binary representation of a number . The function , where , is a natural bijection between ω and . We say that is primitive recursive if the function is. Then every also has this property.
If Γ is equal to the class of computable or primitive recursive functions, then the conditions of Theorem 4 are obviously fulfilled, and the theorem itself is simple and well known.
Let Γ be the class of p.r.f. and letbe a field in Γ. Then there is a fieldin Γ such that.
In conclusion, we note that the notion of a function computable in polynomial time does not depend on the choice of a particular Turing machine. Unfortunately, this does not hold for functions computable in linear time from Definition 1. Replacing linear time by polynomial time there, we get a definition that does not depend on the choice of a computing device. Alas, Theorem 1, for example, will become less general in this case, and some interesting cases remain outstanding. Therefore, we prefer to use the current definition, fixing instead multi-tape Turing machines. The functions computed on them in linear time form a simple and simultaneously rather rich class.
Speaking about structures in Γ, we do not impose any restrictions on their universe A, except that it is a set in Γ. In [7], an example of an infinite computable graph is constructed which does not have a primitive recursive isomorphic presentation with universe ω. Since this graph is a structure without functions, it has a P-computable presentation , where P is a two-place predicate [6]. However, it cannot have a P-computable presentation with universe B such that there is a primitive recursive injection . The question about universe can be important in some situation.
Footnotes
Acknowledgements
The author is grateful to V.L. Selivanov for discussions concerning the topics of the paper, as well as S.S. Goncharov, N.A. Bazhenov, and A.V. Nechesov for suggestions for improving the results of the work.
The work is supported by the Mathematical Center in Akademgorodok under the agreement No. 075-15-2022-281 with the Ministry of Science and Higher Education of the Russian Federation.
References
1.
A.V.Aho, J.E.Hopcroft and J.D.Ullman, The Design and Analysis of Computer Algorithms, Addison-Wesley, Reading, MA, 1974.
2.
P.Alaev, Quotient structures and groups computable in polynomial time, Lecture Notes in Computer Science13296 (2022), 35–45. doi:10.1007/978-3-031-09574-0_3.
3.
P.E.Alaev, The complexity of inversion in groups, Algebra and Logic (2023), accepted for publication.
4.
P.E.Alaev and V.L.Selivanov, Fields of algebraic numbers computable in polynomial time. II, Algebra and Logic60(6) (2021), 349–359. doi:10.1007/s10469-022-09661-3.
5.
P.E.Alaev and V.L.Selivanov, Searching for applicable versions of computable structures, Lecture Notes in Computer Science12813 (2021), 1–11. doi:10.1007/978-3-030-80049-9_1.
6.
D.Cenzer and J.Remmel, Polynomial time versus recursive models, Annals of Pure and Applied Logic54(1) (1991), 17–58. doi:10.1016/0168-0072(91)90008-A.
7.
I.Kalimullin, A.Melnikov and K.M.Ng, Algebraic structures computable without delay, Theoretical Computer Science674 (2017), 73–98. doi:10.1016/j.tcs.2017.01.029.