Inspired by the study of generic and coarse computability in computability theory, we extend such investigation to the context of computable model theory. In this paper, we continue our study initiated in the previous paper (Journal of Logic and Computation32 (2022) 581–607) , where we introduced and studied the notions of generically and coarsely computable structures and their generalizations. In this paper, we introduce the notions of generically and coarsely computable isomorphisms, and their weaker variants. We sometimes also require that the isomorphisms preserve the density structure. For example, for any coarsely computable structure , there is a density preserving coarsely computable isomorphism from to a computable structure. We demonstrate that each notion of generically and coarsely computable isomorphisms, density preserving or not, gives interesting insights into the structures we consider, focusing on various equivalence structures and injection structures.
Introduction and previous work on densely computable structures
In computable structure theory, we typically take the approach of “worst case” complexity – a problem is hard if it has a hard instance. We may ask whether hardness results in computable structure theory depend on a rare worst case instance, or whether the hardness is somehow typical of instances of the problem. Toward this difficult long-term problem, the authors began in [1] the study of densely computable structures.
To analyze the sensitivity (as described above) of the word problem on groups, Kapovich, Myasnikov, Schupp, and Shpilrain [10] used asymptotic density to investigate whether a partial computable function could solve “almost all” instances of a problem. Jockusch and Schupp [8] carried this approach into the context of computability theory. They introduced and studied generically computable and coarsely computable sets, which are defined using dense sets (also, see [9] and [6,7]). Recently, in [1], we extended these notions of approximate computability from sets to structures. The present paper continues this program by addressing isomorphisms which are computable in this asymptotic sense.
The asymptotic density of a set , if it exists, is
We say that a set A is dense if its asymptotic density is 1.
We showed that a set has asymptotic density δ if and only if the set has density in . We also showed that there is a computable dense set such that for any infinite c.e. set A, the product is not a subset of C. These results led us to the notion of a generically computable structure below [1]. We further defined a -generically c.e. structure using the following definition of a elementary substructure. We say that a substructure of is elementary substructure if for every infinitary formula and any from , we have:
In the present paper we consider only countable structures in finite languages, and, in keeping with convention, treat effectiveness of structures by identifying a structure with its atomic diagram. A structure for a finite language and with domain D is a c.e. structure if D is c.e., each relation is c.e., and each function is the restriction of a partial computable function to D (hence the partial computable function is total on D). By we denote the characteristic function of R. Throughout the paper, every structure will have for its domain some subset of ω. Frequently the domain will be ω itself, and we will specify the domain in any case where confusion is likely to arise.
A structure is generically computable if has a substructure with a c.e. domain D of asymptotic density 1 such that for every k-ary function f and every k-ary relation R of , both and are restrictions to of some partial computable functions.
A structure is -generically c.e. if there is a c.e. dense set D such that the substructure with domain D is a c.e. substructure and also a elementary substructure of .
Next, we introduced the notions of coarsely computable and -coarsely c.e. structures [1].
A structure is coarsely computable if there are a computable structure and a dense set D such that the structure with domain D is a substructure of both and and all relations and functions agree on D.
A structure is -coarsely c.e. if there are a c.e. structure and a dense set D such that the substructure with domain D is a elementary substructure of both and and all relations and functions agree on D.
At least two ways are possible to define a generic or coarse notion of isomorphism. We might ask that there be a total isomorphism that is computable on a set of density one, or we might ask that there be a partial computable isomorphism defined on a set of density one. We instantiate these two approaches as either generically (coarsely, respectively) computable or weakly generically (coarsely, respectively) computable isomorphisms (Definitions 1.3, 1.5, 2.2 and 3.2). We state here the “strong” definitions, and delay the “weak” definitions to later parts of the paper.
We say that an isomorphism from a structure to a structure is a generically computable isomorphism if there are a c.e. set C of asymptotic density one and a partial computable function θ with , which satisfy the following:
C is the domain of a substructure of ;
for all ;
The image has asymptotic density one.
A structure is generically computably isomorphic to a structure if there is a generically computable isomorphism F mapping to .
The isomorphism F occurring in this definition is, in general, non-effective, but the restriction of F to the dense set C is effective. This feature will be common to most of the similar definitions throughout the paper. We could modify the definition above so that we require only that , but since both the domain of θ and C are computably enumerable, this would be equivalent. It was shown in [1] that a structure of the form is generically computable if and only if the set A is generically computable.
Let A and B be two dense co-infinite c.e. sets. Let and . There is a generically computable isomorphism from to . To see this, let A have computable one-to-one enumeration and similarly and define with domain A and range B, by , leaving undefined if for any i. Define in two cases. For , let . Then let be an arbitrary bijection.
We say that an isomorphism from a structure to a structure is a coarsely computable isomorphism if there are a set C of asymptotic density one and a (total) computable bijection θ such that:
C is the domain of a substructure of ;
for all ;
The image has asymptotic density one.
Note that in Definition 1.5, the function θ must be an isomorphism between and its image, because F is an isomorphism. Moreover, is, as a consequence of the definition, the domain of a substructure of . Again, we have the expected result on structures with a single dense unary relation.
We might also require, in either case, that the isomorphism preserve the density structure. To this end, we will also introduce a notion of density preserving and examine its consequences.
A function ψ mapping a set C to a set D is density preserving if for any subset A of C with asymptotic density p, the image also has asymptotic density p.
We demonstrate in the present paper that each notion – density preserving or not – gives interesting insights into the structures under consideration. It is likely that under further investigation one notion or the other will become dominant, but we present both here. We would like to say that a structure is generically (coarsely, resp.) computable if and only if it is generically (coarsely, resp.) computably isomorphic to a computable structure. The closest result we have of this kind is the following result, which appears later as Proposition 3.4.
If the structureis coarsely computable, then there is a density preserving weakly coarsely computable isomorphism fromto a computable structure. Conversely, if there is a weakly coarsely computable isomorphism (density preserving or not) fromto a computable structure, thenis coarsely computable.
We have a weaker result for a generically computable isomorphism, which will be presented in Proposition 2.8.
In both [1] and the present work, we focus on examples arising among injection structures (see also [4]) and equivalence structures (see also [2,3,5]).
An injection structure is a set A together with a one-to-one function . It is not hard to see that every c.e. injection structure is isomorphic to a computable injection structure. The orbit of an element a under f is
Infinite orbits may be of type or of type ω. The character of is
Further, let denote the elements that belong to a finite orbit.
In [1], we showed that an injection structure has a generically computable copy if and only if it has an infinite substructure isomorphic to a computable structure, or, equivalently, it has either an infinite orbit or a character with an infinite c.e. subset. For injection structures, having an isomorphic -generically c.e. copy has a simple characterization: it is equivalent to having a computable copy, to having a -generically c.e. copy, and to the character being c.e.
In the present paper, we will establish the following result on generically computable isomorphisms of injection structures.
Letandbe isomorphic computable injection structures with a specified finite number of elementsandwhere, for each i,andhave infinite orbits of the same type. Suppose thatandare asymptotically dense. Thenandare generically computably isomorphic.
Any computable injection structure, with a finite number of infinite orbitssuch thatis asymptotically dense, is generically computably isomorphic to a computable structuresuch thatis computable.
An equivalence structure is a set A with an equivalence relation E on A. For by , we denote the equivalence class of a under E. The character of is
We say that is bounded if and only if there is some finite k such that all finite equivalence classes of have size at most k.
In [1], we obtained a surprising result that every equivalence structure has a generically computable copy. We showed in [1] that if an equivalence structure is generically computable, then there is an infinite computable such that the restriction of E to is computable. In that paper, also, we reviewed the definition of -functions, which play a role in the following result. We do not repeat the definition here because it will play no significant role in the new results of the present paper.
For an equivalence structure and , let . For brevity, we sometimes refer to elements of as being of type n.
([1]).
An equivalence structurehas a-generically c.e. copy if and only if at least one of the following conditions holds:
is bounded;
has asubset K which is a character with a computable Khisamiev-function;
has an infinite class andhas asubset K;
has infinitely many infinite classes.
On the other hand, an equivalence structure has a -generically c.e. copy if and only if it has a c.e. copy, or, equivalently, it has a -generically c.e. copy.
A standard example of an equivalence structure which is not computably categorical is the so-called -equivalence structure, which consists exactly of infinitely many equivalence classes in each of sizes one and two.
Ifandare-generically c.e.-equivalence structures such that in each structure the set of elements in equivalence classes of size 2 is dense, thenandare generically computably isomorphic.
Moreover, we have examples of equivalence structures with elements of only two finite sizes which are not weakly generically computably isomorphic.
With respect to coarsely computable isomorphism, we show the following.
Letandbe isomorphic equivalence structures, and suppose that in each structure there is a dense set of elements in equivalence classes of size one. Then there is a density preserving coarsely computable isomorphism betweenand.
Suppose thatandare computable-equivalence structures with universe ω such that the asymptotic density ofandboth equal the same computable real number q. Thenandare weakly coarsely computably isomorphic.
In the present paper, we consider the following notions of isomorphism:
Generically computable isomorphism
Weakly generically computable isomorphism
Density preserving generically computable isomorphism
Coarsely computable isomorphism
Weakly coarsely computable isomorphism
Density preserving coarsely computable isomorphism
For each of these notions, we give partial characterizations in the context of injection structures or equivalence structures, and, in some cases, both. The major goal of these partial characterizations is to elucidate the structural meaning of each notion of isomorphism, demonstrating their differences from one another and from (classically) computable isomorphism. Of course, conditions weaker than isomorphism (e.g., monomorphism or epimorphism) would also be interesting, but we do not take up those notions separately in the present paper. In Section 2, we investigate generically computable isomorphisms and their weaker variants. In Section 3, we investigate coarsely computable isomorphisms and their weaker variants. In both sections our main examples on which we demonstrate various phenomena are equivalence structures and injection structures.
Generically computable isomorphisms
In this section, we consider isomorphisms that are densely computable. Thus, we first need to extend these notions from sets and relations to functions.
Let be a total function.
We say that F is generically computable if there is a partial computable function θ such that on the domain of θ, and such that the domain of θ has asymptotic density 1.
We say that F is coarsely computable if there is a total computable function θ such that has asymptotic density 1.
It is easy to see that a set S is generically computable if and only if is generically computable and likewise for coarsely computable sets.
We have already stated the Definition 1.3 of a generically computable isomorphism. We also want to consider the following weaker notion.
We say that structures and are weakly generically computably isomorphic if there are a c.e. set C of asymptotic density one, a bijection , and a partial computable function θ with , which satisfy the following:
C is the domain of a substructure of ;
for all ;
has asymptotic density one and is the domain of a substructure of .
θ is an isomorphism from to .
It is important here that the function F is only a bijection, whereas θ is an isomorphism. Of course, a generically computable isomorphism is also a weakly generically computable isomorphism. As for generically computable isomorphisms, the bijection F need not be effective, but its restriction to the dense set C is effective. In fact, for the most part, the results below on this definition (and also on the corresponding notion of weakly coarsely computably isomorphic) regard structures that are actually isomorphic (although not effectively), although the definition does not require that.
Any generically computable isomorphism F is a generically computable function.
If F is a generically computable (weakly generically computable, resp.) isomorphism mapping structureto structure, thenis a generically computable (weakly generically computable, resp.) isomorphism fromto.
(1) This is immediate from the definitions.
(2) Let be a generically computable isomorphism and let C and θ be given as in the definition. The image is a c.e. set. Define the partial computable function ψ to be , that is, if and only if . Then if , it follows that and, therefore, . The domain of ψ equals the range of θ and is, therefore, asymptotically dense since . □
It follows that if is (weakly) generically computably isomorphic to , then is (weakly) generically computably isomorphic to . Thus, the relation of being (weakly) generically computably isomorphic is symmetric. To obtain a transitive relation, we need the notion of density preserving, defined in Section 1.
For any two dense c.e. sets A and B, and structures and , there is a weakly generically computably density preserving isomorphism from to . Here, we let be the needed c.e. set of density one, so that the substructure of with universe D is simply , and likewise for . Then the desired bijection from to is just the identity map, which is an isomorphism from to itself.
Suppose thatandare generically computable (weakly generically computable, resp.) density preserving isomorphisms. Then the compositionis a generically computable (weakly generically computable, resp.) density preserving isomorphism.
The proof is essentially the same for generically computable isomorphisms and for weakly generically computable isomorphisms. For a structure we will use A to denote its domain, and will adopt similar notation for other structures. Given and as above, certainly is a bijection from the structure to the structure . For any and any δ, E has density δ if and only if has density δ, and has density δ if and only if has density δ. Thus, is density preserving.
Let and be dense c.e. sets such that each is the domain of a substructure of . Let and be partial computable functions such that on , and on . Then is the domain of a substructure of since both and are the domains of substructures. The set has asymptotic density 1 since both and have density 1. The set has asymptotic density 1 since is density preserving. Now, let . Then C has asymptotic density 1 since is density preserving and . Finally, let . Then D has asymptotic density 1. The set D also equals and hence is a c.e. set. The composition is partial computable, agrees with on C, and is a isomorphism from the structure with the domain C to the structure with the domain D. □
We have shown that the relation of generically computable density preserving isomorphism is transitive, by showing that if we have generically computable density preserving isomorphisms and , their composite is a generically computable density preserving isomorphism. The following example shows that this compositional strategy does not work without the hypothesis that the functions are density preserving.
Recall that a weakly generically computable isomorphism from to is a multifaceted object including a function F, dense subsets and and a computable function θ.
Now let all be the plain structure ω with no relations or functions. Let and .
We now construct weakly generically computable isomorphisms whose composition is not a weakly generically computable isomorphism. Let be the identity function mapping dense subset to dense set . Let be a computable bijection mapping dense subset to dense set , such that G maps to , maps to and thus maps to . Consequently, the composition maps the dense set to the non-dense set .
Curiously, the following question remains open.
Let and be (weakly) generically computable isomorphisms. Must there be a (weakly) generically computable isomorphism from to ?
A slight modification of the definition of a computably generic structure leads to the following connection with a generically computable isomorphism.
Suppose that a structurehas a c.e. substructureon a dense computable set, the domain of. Then there are a c.e. structureand a weakly generically computable density preserving isomorphism fromto. Moreover, if there is a weakly generically computable density preserving isomorphism fromto a c.e. structure, thenis generically computable.
Let D be a computable set of density one such that is a c.e. substructure of , that is, each relation on D is c.e. and each function on D is the restriction of a partial computable function. Extend to a c.e. structure on ω by making the relations and functions trivial on . That is, all relations are uniformly true, and all functions are just a projection to the first input. Then the identity is a bijection and the restriction to is an isomorphism. The second statement is immediate from the definitions. □
It was shown in [4] that a computable injection structure is computably categorical if and only if it has finitely many infinite orbits. Thus we are led to the following natural result.
Letandbe isomorphic computable injection structures with a specified finite number of elementsandwhere, for each i,andhave infinite orbits of the same type. Suppose thatandare asymptotically dense. Thenandare generically computably isomorphic.
Any computable injection structure, with a specified finite number of infinite orbitssuch thatis asymptotically dense (of course, it may not be the whole domain of the structure, if there are other orbits not included among the), is generically computably isomorphic to a computable structuresuch thatis computable.
For part (1), we note that is a c.e. set and that each orbit is also a c.e. set. Hence the structure , where , is a c.e. injection structure. A structure can be similarly defined. It follows from Theorem 7.4 of [4] that there is a partial computable function ψ that defines an isomorphism from to .
This function may be extended to an isomorphism F from to as follows. Since and are isomorphic, there is an isomorphism . Define F so that for and for . Note that, since consists of complete orbits, implies that . It follows that F is indeed an isomorphism.
Toward part (2), let B be the dense set and let be the substructure of with domain B. Since is computable, is a c.e. set, and therefore, by 3.4 of [1] there is a computable structure isomorphic to such that is computable. Let be the substructure of with universe . This consists of some countable number of infinite orbits, so there is a computable structure isomorphic to . The desired structure consists of a copy of with domain a dense co-infinite computable set and a copy of with universe . Let be elements of the copies in of the k specified infinite orbits of such that each has the same orbit type as . Then is generically computably isomorphic to by part (1). □
It should be noted that there need not be any computable, or even , isomorphism between the structures described in Theorem 2.9
Theorem 2.9 applies, in particular, when and are both dense and when and each have a single infinite orbit, of the same type, which is dense. In the latter case, there is a stronger result.
Suppose thatandare isomorphic-generically c.e. injection structures such that each has a single infinite orbit (of the same type) which constitutes an asymptotically dense set. Thenandare generically computably isomorphic.
Let be dense in and let be dense in , where the two orbits are infinite and of the same type. Since each structure is generically c.e., there exist dense c.e. sets and such that the corresponding structures and are elementary substructures of and (resp.). Then is dense and therefore nonempty. Since is a elementary substructure of , this means that . Similarly, we show that . Furthermore, there are partial computable functions ϕ and ψ such that on C and on D. Thus, the structures and are c.e. structures, and the argument from Part 2 of Theorem 2.9 again provides a partial computable isomorphism from to which may be extended arbitrarily from to . □
We observe that this result does not necessarily hold even when there are two infinite orbits with a dense union. This is because one orbit may be dense in the first structure whereas each infinite orbit may have density less than one in the second. Similarly, the argument can fail for injection structures with only finite orbits. Now we turn to equivalence structures.
We say that the equivalence structure has generic character K for a finite subset K of if, for each , the set has positive asymptotic density and the union has asymptotic density one.
Thus, if the generic character of is for some , then the set of all elements of with equivalence classes of size k has asymptotic density one.
The classic example of a computable equivalence structure that is not computably categorical is one which consists of infinitely many classes of size 1 and infinitely many classes of size 2. Indeed, there are computable structures of this kind which are not computably isomorphic. We will call such an equivalence structure a -equivalence structure. The next result shows that under certain density conditions two computable -equivalence structures will be generically computably isomorphic.
Ifandare computable-equivalence structures, each having generic character, thenandare generically computably isomorphic.
Any computable-equivalence structurewith generic characteris generically computably isomorphic to a computable structurein which the set of elements of size 2 is computable.
(1) The elements in of type 2 form a c.e. set, so the classes of size 2 may be computably enumerated as , , …. That is, there is a computable enumeration of the set of pairs . Similarly, has a computable enumeration , , …. Then a partial computable function may be defined so that for all n; the inverse of ϕ is also partial computable. This partial isomorphism can be extended as before on the elements of type one to produce a generically computable isomorphism .
(2) The statement follows from (1). □
This result also holds for -generically c.e. equivalence structures.
Ifandare-generically c.e.-equivalence structures, each having generic character, thenandare generically computably isomorphic.
The following lemma is needed.
A dense c.e. set C has a co-infinite dense c.e. subset D. Furthermore, if C is a c.e. set of distinct k-tuples, for a fixed k, then C has a co-infinite dense c.e. subset of k-tuples.
Let C be a dense c.e. set with one-to-one computable enumeration and let . The construction of the set D will delete, for each , an element of the interval from C whenever is nonempty.
Stage 0: .
Stage: Given , find n such that and check to see whether there is such that . If not, then . If so, then .
It follows from the construction that D is a c.e. subset of C. Since C is dense and therefore infinite, there must be infinitely many n such that . Thus is infinite.
For each n, has at most one element in (and none less than 2) and therefore at most n elements less than . This implies as follows that has asymptotic density 0.
Given any m, let n be such that . Then
It follows that , and therefore has asymptotic density zero. This implies that D has asymptotic density 1.
For the second part, the above argument is modified so that at most k elements are deleted from an interval . Suppose that C is partitioned into distinct (un-ordered) tuples . Then, at stage , we put into unless every element of belongs to an interval from which no elements have previously been deleted. When , it may be that two or more elements fall into the same interval, but at most k. □
We now proceed with the proof of the theorem. Let and be dense c.e. sets such that the corresponding structures and are elementary c.e. substructures. Then and are dense c.e. sets with and (this is possible because of elementarity). If necessary, use Lemma 2.14 to obtain dense c.e. subsets and so that and are both infinite. The argument from Theorem 2.12 provides a partial computable isomorphism from the dense c.e. substructure to the dense c.e. substructure , which may be extended to an isomorphism from to , since and will be isomorphic, both consisting of infinitely many classes of size one and infinitely many classes of size 2. □
This result can be generalized to structures having generic character and only finitely many classes of size . For infinite classes, we have the following.
Ifandare isomorphic computable equivalence structures with finitely many infinite classes such that the infinite classes constitute a set of asymptotic density 1 in each structure, thenandare generically computably isomorphic. It follows that any such structureis generically computably isomorphic to a computable structurein which the set of elements that belong to infinite classes is computable.
Suppose that has m infinite classes and let be the least element of its class for . Similarly, define from . Then each class is computable and we may define a computable partial function mapping each class to the class . This partial isomorphism can be extended as before on the finite classes to produce a generically computable isomorphism . □
There is also a result for -generically c.e. equivalence structures.
Letandbe isomorphic-generically c.e. equivalence structures, each with a single infinite class of asymptotic density 1. Thenandare generically computably isomorphic.
Let the infinite equivalence class be dense in , and let the infinite class be dense in . Since each structure is -generically c.e., there exist dense c.e. sets and such that the corresponding structures and are elementary substructures of and (resp.). Then is dense and, therefore, nonempty, so we can choose some . Since is a elementary substructure of , this means that is infinite. Using Lemma 2.14, we may assume that is also infinite. Similarly, we can find so that is dense and is infinite. Furthermore, the equivalence relations on C and D are both c.e. and we may define a partial computable isomorphism ψ from to . This partial isomorphism can be extended to produce a generically computable isomorphism , although the extension is not so arbitrary as in earlier results because it is necessary to distinguish equivalent and inequivalent elements not in the dense parts. □
On the other hand, if and have generic character but have infinitely many classes of sizes larger than k, we will show that no similar result holds. Jockusch and Schupp [8] constructed a simple (hence c.e.) set with density 0. In that case, the complement is an immune co-c.e. set of density 1. (For immune and simple sets see [11].) We extend that result as follows.
For any rational number p with, there is an immune co-c.e. set P of asymptotic density p.
It is shown in Proposition 2.15 in [8] that there is a simple set B of asymptotic density zero. Thus, the complement has density one. Given , let . Then P has asymptotic density p, and if K were an infinite c.e. subset of P, then J would be an infinite subset of K, where . □
For anyand any rational number p with, there exist computable-equivalence structuresandsuch thatandeach have asymptotic density p, which are not weakly generically computably isomorphic.
Let P be an immune co-c.e. set of asymptotic density p as in Lemma 2.17. Then, by Theorem 4.1 of [3], there is a computable -equivalence structure with . We compare this with some standard computable structure isomorphic to such that is a computable set of density p.
Now suppose, by way of contradiction, that and were weakly generically isomorphic. Let C be an asymptotically dense c.e. set which is the domain of a substructure of . Let be a bijection, such that the set is asymptotically dense and is the domain of a substructure of , and such that F restricted to is an isomorphism. Finally, let θ be a partial computable function which agrees with F on the set C. Then the set will have asymptotic density p as the intersection of a set of density 1 with a set of density p, so is infinite. The set is c.e. since D is c.e. and is computable. Since θ is a isomorphism from to , the inverse image is a c.e. subset of . Then we will obtain an infinite c.e. subset of , contrary to the assumption that is immune. □
Coarsely computable isomorphisms
In this section, we explore the notions of coarsely computable and weakly coarsely computable isomorphisms.
Recall the definition of a coarsely computable isomorphism.
We say that an isomorphism from a structure to a structure is a coarsely computable isomorphism if there are a set C of asymptotic density one and a (total) computable bijection θ such that:
C is the domain of a substructure of ;
for all ;
The image has asymptotic density one.
It is easy to see that if is coarsely computably isomorphic to a computable structure, then is a coarsely computable structure.
We say that structures and are weakly coarsely computably isomorphic if there is a set C of asymptotic density one, a bijection and a total computable bijection θ, which satisfy the following:
C is the domain of a substructure of ;
for all ;
The image also has asymptotic density one and is the universe of a substructure of ;
θ is an isomorphism from to its image.
As for the previous definition of weakly generically isomorphic, it is important to note that F is only a bijection, whereas θ is a structural isomorphism. Moreover, if F is a weakly coarsely computable isomorphism, then is, as well. We know even less about the transitivity of isomorphism here than we do in the generic case.
Is the composition of (weakly) coarsely computable isomorphisms a (weakly) coarsely computable isomorphism?
If a structureis coarsely computable, then there is a density preserving weakly coarsely computable isomorphism fromto a computable structure. Conversely, if there is a weakly coarsely computable isomorphism fromto a computable structure, thenis coarsely computable.
Suppose is coarsely computable. Then there is a computable structure , and a dense set D such that the structure with domain D is a substructure of both and , and all relations and functions agree on D. Then the identity function serves as the desired isomorphism.
For the other direction, suppose there is a weakly coarsely computable isomorphism F from to a computable structure with dense set C and computable bijection θ as in Definition 3.2. Let be the computable structure . Then the structure is also a substructure of , so that is coarsely computable, as desired. □
Let A and B be dense sets, and and the corresponding structures with unary relations. Now, there is a weakly coarsely computable isomorphism from to because is a dense set, and we argue as in Example 2.4.
In contrast to Theorem 2.18, we have the following result, which distinguishes the notion of a coarsely computable isomorphism from the notion of a weakly generically computable isomorphism.
Letandbe isomorphic equivalence structures with generic character(that is, bothandhave asymptotic density one). Then there is a density preserving coarsely computable isomorphism betweenand.
Define the set U to be . By assumption, U has asymptotic density one. Now, the identity function is a total computable function and acts as an isomorphism of to . We want to arbitrarily extend ϕ to an isomorphism . The only difficulty might be that and have different cardinalities, say, without loss of generality, that is smaller. We can then remove from U a subset of of density zero to produce a set of density one such that and have the same cardinality. This will make isomorphic to , so that we may extend ϕ from V to an isomorphism F from to , which agrees with ϕ on the set V of density one. □
This result has a converse, as follows. Suppose that there is a density preserving coarsely computable isomorphism F from a structure with generic character to an arbitrary structure . Let C be a dense set given by the definition. Then is dense and is also dense, so has asymptotic density 1.
It is not clear whether Theorem 3.6 can be extended, even to structures with generic character for .
Recall from [2] that a computable equivalence structure is computably categorical if and only if one of the following holds:
has only finitely many finite equivalence classes, or
has finitely many infinite classes, there is a bound on the size of the finite equivalence classes, and there is at most one k such that has infinitely many classes of size k.
We have seen by now a number of examples of structures which are not computably categorical but which satisfy a version of generically or coarsely computable categoricity.
Next, we look at structures where the densities are positive but not 1. We will again focus here on -equivalence structures. From the examples seen so far we might suspect that different densities pose a barrier to asymptotically computable isomorphism in such structures. We will see that, at least for weakly coarsely computable isomorphism, they do not.
The following proposition is of interest, and clarifies the impact of the theorems that follow.
Letbe a computable-equivalence structure.
The asymptotic density ofis areal;
Ifis computable, then its asymptotic density is.
For anyreal, there is a computable-equivalence structuresuch thatis computable and has asymptotic density q.
(1a) Given an oracle for , we can compute whether uniformly in n, so we can compute the sequence uniformly in n. Since the asymptotic density of is given by , this means the density is relative to , and therefore .
For part (1b), is computable so the sequence is computable uniformly in n, and thus the density, as a limit of a computable sequence, is computable.
(2) Let q be a computable real. There are two cases.
First suppose that is rational. Then will be defined in blocks of elements, of the form , including in each a collection of classes of size 1 given by , and a collection of classes of size 2 (the rest of ). Thus the density will be q for all n.
For arbitrary , with , we have , so that
Since converges to 1 from below and converges to 1 from above, it follows that the density of is exactly q.
Next suppose that q is irrational. Then we can uniformly compute, for each n, the unique such that . We will build a structure with computable and of asymptotic density q in stages, on the elements , so that for , we have , and thus . It will follow as in the rational case above that has the desired asymptotic density q.
At stage 1, either or . If , then we construct to have one equivalence class , so that . If , then we construct to have two classes and , so that . In either case, , by the choice of .
At stage , we are given with universe and , where , that is, . It follows that so that either
, or
.
In case (i), we have and we extend to by adding the class , so that . In case (ii), we have and we add the classes and , so that .
This completes the construction. The set is computable since we decide the classes of all by stage n. □
If two isomorphic computable equivalence structuresandhave bounded character, and for each,andare computable, thenandare computably isomorphic.
Since each is computably categorical, it is computably isomorphic to . For any , we can effectively determine the unique n such that , since the character is bounded. We then choose the appropriate isomorphism to apply for x. □
Suppose thatis a computable-equivalence structure such thathas computable asymptotic density q, where. Then there are a computable structure, such thatis a computable set with asymptotic density q, and a density preserving weakly coarsely computable isomorphism fromto.
We build the structure as follows. Let
and let . Then for each s, whereas . The idea of the proof is that classes of size two are observable and that the sets approximate . Thus, we will define so that is a subset of R and differs from R on a set of asymptotic density zero, so that we can use the identity as our bijection.
We define computable increasing sequences and with and define the relation for all pairs for all at stage , so that is computable. We will let , so that . Let . Given and , and having defined on all elements less than as well as some other elements less than , and having defined up to , let be the least pair such that . Now extend the definition of and of as follows. For any x, y with , let if and only if . For x such that , put if there is no y with such that . For y with , put if there is such that . This is necessary to ensure that is computable, so that we cannot change our mind about being a singleton once we have decided that it is. This also means that will contain pairs x, y of elements where but y is much larger than x.
It is clear that and it remains to calculate the density of . Let
these elements of are the only elements which may be put into since they will have a partner larger than . Since , it follows that . Since has asymptotic density q and , it follows that , and hence the set of elements where differs from R has asymptotic density zero. We observe that the desired set D of density one, , makes up a substructure, closed under equivalence classes, in both and .
Thus, the identity is a bijection which is an isomorphism between and on the set D of asymptotic density one, as desired. Note that, since , and has density zero, the set will still have asymptotic density q. □
We observe that this result will also hold for -equivalence structures, that is, equivalence structures consisting of infinitely many classes of size 1 and infinitely many classes of size k for some finite .
Suppose thathas positive asymptotic density α and that. Then C has asymptotic density zero.
Since A has positive density α and , it follows that and thus . Then
For any , we have for some n. Then , so
so that , as desired. □
Let A and B be computable subsets of ω having positive asymptotic densities α and β, respectively. Suppose thatandare c.e. sets, both of asymptotic density zero. Then there is a computable bijectionsuch thatandeach have asymptotic density zero.
Let and . Let be a computable enumeration of C, and let be a computable enumeration of D, both without repetition. The goal is to define a map F so that it maps C to D modulo asymptotic density zero. The function F is defined in alternating stages as follows. Map to . If , then, of course, . So suppose . If , then let and otherwise, let .
Then at stage , we define and as follows. If is not already defined, let for the least j such that is still available, that is, we have not already defined for some a. Since we have only defined values of F, it follows that . If is not already defined, let for the least i such that is still available and note here that .
Since D has asymptotic density zero, it suffices to show that has asymptotic density zero. By Lemma 3.10, it is enough to show that
It follows from the construction that
It now follows that
and, therefore,
Now we saw in the proof of Lemma 3.10 that if has asymptotic density α, and similarly , so that . Since and exists, it follows that , as desired.
For the other part, we have .
It now follows that
and, therefore,
Since and exists, it follows that
as desired. □
Suppose thatandare computable-equivalence structures with domain ω such that the asymptotic density ofandboth equal the same computable real q. Thenandare weakly coarsely computably isomorphic.
Let , and q be given as above. Let be the computable structure obtained from as a consequence of Theorem 3.9, and that obtained from in the same way. Note that , , , and are all computable sets, by the construction in the proof of Theorem 3.9. Moreover, the identity map is a weakly coarsely computable isomorphism from to , and from to . Additionally, , , , and . We also know from Theorem 3.9 that has density zero, as does .
Certainly there is a computable isomorphism . Moreover, by Lemma 3.11, there is a computable isomorphism from to such that and each have asymptotic density zero.
Then the desired bijection is defined as follows. Given , there are two cases. If , then , and if , then . Let . Then , and therefore has asymptotic density zero, so that E has density one. At the same time, has asymptotic density zero, so that has asymptotic density one and thus E has density one. Let . It follows from the construction of Theorem 3.9 that for any , we have both
and
It remains to check that F is an isomorphism on the set E. Let . There are three cases, without loss of generality. First note that if , then , since , so that and , and therefore .
Case 1: . Then and and we have
so that .
Case 2: and . Then , and therefore . Now, by the remark above, , whereas and therefore . Hence we have .
Case 3: and both are in . Then, since both are in , we have . By the remark above, as well and therefore .
Thus F acts as an isomorphism on the set E of asymptotic density one. This completes the proof that and are weakly coarsely computably isomorphic. □
It is interesting to note in the previous proof that the role of θ is played exactly by F. The only thing preventing this from being a computable isomorphism is that F sometimes fails to respect the structure.
The previous result also extends to computable -equivalence structures – that is, to structures with infinitely many classes of size one and infinitely many of size k, for any single finite , but no classes of any other size. This suggests the following conjecture.
Letbe distinct positive integers and letbe positive reals such that. Letandbe computable equivalence structures such thatandhave asymptotic densityfor each i. Thenandare weakly coarsely computably isomorphic.
Conclusion
Having laid out in [1] and the present paper the fundamental definitions for densely computable structure theory, we believe the time is now ripe for investigation of these concepts in a broader context. There are, of course, several remaining open questions on even these basic notions, some of which we have explicitly identified in this paper. We might even hope that, in the long run, it will be clear which of the various notions we have defined (e.g., generically computably isomorphic, weakly generically computably isomorphic, or either of those in a density preserving variant) will be most productive.
However, it seems to the present authors at this time that the greatest gains moving forward from this point will be in two directions. First, the approach of dense computable structure theory should be applied to structures of greater independent interest. This will be the real testing ground for which notions are most useful. Second, general semantic conditions should be found that predict the behavior of examples, rather than simply catalog it.
Footnotes
Acknowledgements
This research was partially supported by the National Science Foundation SEALS grant DMS-1362273. The work was done partially while the latter two authors were visiting the Institute for Mathematical Sciences, National University of Singapore, in 2017. The visits were supported by the Institute. This material is partially based upon work supported by the National Science Foundation under grant DMS-1928930 while all three authors participated in a program hosted by the Mathematical Sciences Research Institute in Berkeley, California during the Fall 2020 semester and again in Summer 2022. The third author was partially supported by the Simons Foundation grant 853762 and Focused Research Group grant from the National Science Foundation DMS-2152095. The authors are also grateful to the anonymous referee for a careful reading which greatly improved the paper.
References
1.
W.Calvert, D.Cenzer and V.Harizanov, Densely computable structures, Journal of Logic and Computation32 (2022), 581–607. doi:10.1093/logcom/exab057.
2.
W.Calvert, D.Cenzer, V.Harizanov and A.Morozov, Effective categoricity of equivalence structures, Annals of Pure and Applied Logic141 (2006), 61–78. doi:10.1016/j.apal.2005.10.002.
3.
D.Cenzer, V.Harizanov and J.B.Remmel, and structures, Annals of Pure and Applied Logic162 (2011), 490–503. doi:10.1016/j.apal.2011.01.002.
4.
D.Cenzer, V.Harizanov and J.B.Remmel, Computability-theoretic properties of injection structures, Algebra and Logic53 (2014), 39–69. doi:10.1007/s10469-014-9270-0.
5.
D.Cenzer, G.LaForte and J.Remmel, Equivalence structures and isomorphisms in the difference hierarchy, Journal of Symbolic Logic74 (2009), 535–556. doi:10.2178/jsl/1243948326.
6.
R.Downey, C.Jockusch, T.H.McNicholl and P.Schupp, Asymptotic density and the Ershov hierarchy, Mathematical Logic Quarterly61 (2015), 189–195. doi:10.1002/malq.201300081.
7.
R.G.Downey, C.G.Jockusch and P.E.Schupp, Asymptotic density and computably enumerable sets, Journal of Mathematical Logic14 (2013), 1350005, 43 pp.
8.
C.G.Jockusch and P.E.Schupp, Generic computability, Turing degrees and asymptotic density, Journal of the London Mathematical Society85 (2012), 472–490. doi:10.1112/jlms/jdr051.
9.
C.G.Jockusch and P.E.Schupp, Asymptotic density and the theory of computability: A partial survey, in: Computability and Complexity, Lecture Notes in Computer Science, Vol. 10010, Springer, 2017, pp. 501–520. doi:10.1007/978-3-319-50062-1_30.
10.
I.Kapovich, A.Myasnikov, P.Schupp and V.Shpilrain, Generic-case complexity, decision problems in group theory, and random walks, Journal of Algebra264 (2003), 665–694. doi:10.1016/S0021-8693(03)00167-4.
11.
R.I.Soare, Recursively Enumerable Sets and Degrees. A Study of Computable Functions and Computably Generated Sets, Springer-Verlag, Berlin, 1987.