Free structures and limiting density
Abstract
Gromov asked what a typical (finitely presented) group looks like, and he suggested a way to make the question precise in terms of limiting density. The typical finitely generated group is known to share some important properties with the non-abelian free groups. We ask Gromov’s question more generally, for structures in an arbitrary algebraic variety (in the sense of universal algebra), with presentations of a specific form. We focus on elementary properties. We give examples illustrating different behaviors of the limiting density. Based on the examples, we identify sufficient conditions for the elementary first-order theory of the free structure to match that of the typical structure; i.e., a sentence is true in the free structure iff it has limiting density .
1 Introduction
In the paper where he introduced the notion of hyperbolic group, Gromov [8] asked what a typical group looks like. He was thinking of finitely presented groups. He described, in terms of limiting density, what it might mean for a typical group to have some property , and he stated that the typical group is hyperbolic. Gromov’s notion has been made precise in different ways; see, for instance, the survey [17]. Ol’shanskii [18] cleaned up the statement and the proof that the typical group is hyperbolic. The third author conjectured that for the typical group obtained from a presentation consisting of generators and a single relator, the elementary first order theory matches that of the non-abelian free groups. In this paper, we generalize Gromov’s question to arbitrary equational classes, or algebraic varieties (in the sense of universal algebra). Here, as for groups, the notions of finite presentation and free structure make sense. We find examples exhibiting different behavior. Our main results are for varieties with only unary functions. With some rather strong conditions on the variety, and on the presentations, we obtain the analogue of the conjecture for groups: the sentences true in the free structure are exactly those with limiting density .
1.1 Organization
We begin with Gromov’s original question, which concerned finitely presented groups. We then generalize this question to finitely presented members of a variety . Section 2 has some background on algebraic varieties. Section 3 has four examples illustrating different possible behaviors and also introduces key ideas that will appear in later proofs. The first example shows that in a bijective structure with a single identity, the sentences true in the free structures have limiting density . In the second example, the set of sentences with limiting density 1 is the theory of a structure in the variety, but this structure is not finitely generated, nor is it free. In the third example, we look at bijective structures as in the first example but with two identities, and we give a sentence for which the limiting density does not exist. In the fourth example, we look at abelian groups and give sentences where the limiting density is strictly between and .
In Section 4, we consider more general bijective varieties. We show that for these varieties and presentations with a single generator and a single identity, a sentence has limiting density if and only if it is true in the free structure. For a language with unary function symbols , injective and commuting, we say how to find elementary invariants.111We are grateful to Sergei Starchenko, who, having seen our result for bijective structures, suggested that we look further at varieties for languages with unary functions. We use a version of Gaifman’s Locality Theorem, which we prove using saturation.222We are grateful to Phokion Kolaitis for alerting us to Gaifman’s Theorem and providing references. In Section 5, we consider sentences with constants. For an arbitrary variety and presentations with a fixed tuple of generators, we give conditions guaranteeing that, for sentences in the language with added constants naming the generators, has limiting density if and only if it is true in the free structure on . In Section 6, we give further examples illustrating the results from Sections 4 and 5.
1.2 Gromov’s question about groups
Here, we recall Gromov’s original question and mention some prior work on typical or random groups. The usual language for groups has a binary operation symbol (for the group operation), a unary operation symbol (for the inverse), and a constant (for the identity). Let be the theory of groups. Recall that a group presentation consists of a tuple of generators and a set of words on these generators, called relators. In the group with presentation , if and only if . Suppose is the free group on and is the subgroup of consisting of the elements such that . Then .
The notion of limiting density depends not just on the variety, but also on the allowable group presentations, Ol’shanskii [18] considered presentations with generators and relators, all reduced. Kapovich and Schupp [11] considered the case where . In the Gromov “density” model, the number of relators may vary but is bounded in terms of the length of the relators and a parameter . It is important to bound the number of relators in some way; otherwise, the typical group will almost surely be trivial [18].
Definition 1.1.
Let be a property of interest. Let be the number of presentations in which the relators have length at most , and let be the number of these presentations for which the resulting group has property . The limiting density for is , if this limit exists.
We consider the typical group to have property if has density . We are particularly interested in elementary properties. For a sentence , the density of the property of satisfying will be called simply the density of . The typical group, in the sense of limiting density, is also called the random group.333Harrison-Trainor, Khoussainov, and Turetsky [9] took a different approach and considered random structures more along the lines of the Rado graph. The typical group has some properties of free groups. Gromov introduced the property of hyperbolicity and stated that the typical group is hyperbolic. Ol’shanskii [18] showed that for presentations with generators and reduced relators, the property of being hyperbolic has limiting density . Kapovich and Schupp [11] showed that for presentations with generators and reduced relator, the property that all minimal generating tuples are Nielsen equivalent has limiting density . Nielsen equivalence means that one tuple can be transformed into the other by a finite sequence of simple, obviously reversible, kinds of steps.
Benjamin Fine, in conversation with the third author at the JMM in January of 2013, made an off-hand comment to the effect that in the limiting density sense, all groups look free. Fine’s comment gave rise to the conjecture below, saying that for presentations with generators and relator, the typical group has the same elementary first order theory as the the free group. By a result of Sela [20] (see also Kharlampovich-Miasnikov [12]), the elementary first-order theory of all non-abelian free groups is the same. The conjecture is given in [10, Conjecture 2.2].
Conjecture 1.2 (Knight).
Take groups given by presentations with a fixed -tuple of generators, for , and relator (the Kapovich-Schupp model). For all elementary first order sentences ,
-
1.
the limiting density exists, and
-
2.
the density has value if is true in the non-abelian free groups, and otherwise.
There is some evidence for the conjecture. By a result of Arzhantseva and Ol’shanskii [2, 1], a random group obtained from a presentation with generators and relators has many free subgroups. Thus, an existential sentence true in the free group is also true in a random group. Kharlampovich and Sklinos [13] used Gromov’s density model, with parameter . In this setting, they showed the following.
Theorem 1.3 (Kharlampovich and Sklinos [13]).
A random group, in Gromov’s density model with , satisfies a universal sentence if and only if the sentence is true in the non-abelian free groups.
The Kharlampovich-Sklinos result implies the conjecture (for universal sentences), but we will not give a proof here.
2 Generalizing Gromov’s question
The question that Gromov asked about groups makes sense for other algebraic varieties as well. We begin by presenting our definition of an algebraic variety; then we discuss the types of presentations we will allow and give some basic lemmas.
2.1 Algebraic varieties
Definition 2.1.
A language is algebraic if it consists only of function symbols and constants.
The term “algebraic variety” is used to mean different things in algebraic geometry and in universal algebra. The definition that we give below is the one from universal algebra.
Definition 2.2 (Algebraic variety).
For a fixed algebraic language , a class of -structures is an algebraic variety, or simply variety, if it is closed under substructures, homomorphic images, and direct products.
For our purposes, it is convenient to use the following equivalent definition, of “equational class.”
Definition 2.3 (Equational class).
For a fixed algebraic language , a class of -structures is an equational class if it is axiomatized by sentences of the form —universal quantifiers in front of an equation.
Birkhoff showed that these two definitions are equivalent. Mal’tsev defined a broader class of theories whose models have well-defined presentations. See [3] for a general overview of universal algebra, where the result below appears as Theorem 11.9.
Theorem 2.4.
For a fixed algebraic language , a class of -structures is an equational class if and only if it is a variety.
In the usual language for groups, namely , the group axioms have the required form. Thus, groups form a variety.
Now we consider an arbitrary algebraic variety . For a fixed generating tuple , there is a well-defined free structure generated by . If is a structure in generated by , then is a quotient of under an appropriate equivalence relation on terms . This equivalence relation becomes equality in .
Definition 2.5.
For a variety , a presentation has the form , where is a generating tuple and is a set of identities on . We write for the structure such that the identities true in are just the ones that follow logically from and the axioms for .
We ask what the typical behavior is for members of a variety given by presentations of a specific form.
2.2 Allowable presentations
In this paper, almost all of the languages of our varieties will be either the group language or a language with just unary function symbols. We consider presentations with a fixed generating tuple , say of length . For the analogue of the Ol’shanskii setting, we consider presentations with identities for some fixed . For the analogue of the Kapovich-Schupp setting, we set . This is the primary case we will consider. Where we do consider , our presentations have the form , where is an unordered set of identities.
We may restrict the identities in certain natural ways. For groups, we do what the group theorists do; that is, we suppose that the identities have the form , where is a word representing a product of various and . For the variety in the language consisting of two unary function symbols with axioms saying that the two functions are inverses, we may restrict in a similar way, allowing only identities of the form ; that is, with function symbols only on the left. For the language with finitely many unary function symbols and varieties that do not have axioms explicitly saying that one is the inverse of another , our identities have the form , where and are terms built up from the function symbols.
2.2.1 Length
We will need to measure length of identities in our presentations. We will use the following conventions, based on the restrictions described above.
Definition 2.6.
-
•
In the setting of groups, the length of an identity of the form is the number of occurrences of the various and in the word . This is the usual length of the relator.
-
•
For varieties in the language with just the unary function symbols , the length of an identity of the form is the total number of occurrences of the function symbols in the terms and .
2.2.2 Limiting density
As for groups, we consider limiting density. Here is the formal definition of limiting density.
Definition 2.7.
Fix a language, a variety, and a set of allowable presentations with an -tuple of generators and identities. We write for the number of presentations in which all of the identities have length at most . For a property , let be the number of these presentations for which the resulting structure has property . Then the limiting density of is , provided that this limit exists.
We are particularly interested in the case where is the property of satisfying an elementary first-order sentence in the language of the variety, possibly with added constants for the generators. We write for the number of presentations in which the identities have length at most , and the resulting structure satisfies . We say that has limiting density if .
Definition 2.8.
We say the variety , with a specified set of allowable presentations, satisfies the zero–one law if for every elementary first-order sentence in , has limiting density or .
2.2.3 Sets versus tuples of identities
We have said that our presentations consist of a tuple of generators and an unordered set of distinct identities. Other possibilities would be to consider ordered tuples of identities, with or without repetition. In practice, most of the time, we will consider a single identity. When we do consider more than one identity, we show that the results would be the same for ordered tuples of identities allowing repetition, ordered tuples not allowing repetition, and unordered sets of identities.
As above, we write for the number of unordered sets of identities of length at most . In the result below, we write for the number of ordered -tuples allowing repetition, and for the number of ordered -tuples not allowing repetition.
Proposition 2.9.
Let be the number of identities in of length at most and suppose that . Then for any sentence ,
Proof.
By definition, , , and . Each unordered set of identities yields ordered -tuples of identities. Thus, it is clear that
To compare and , we need the following:
Claim:
-
1.
,
-
2.
.
Proof of Claim.
For (1), the denominator is and the numerator is a polynomial in with leading term . For (2), the numerator is a polynomial in of degree less than , and the denominator is . ∎
Now, we note that
Dividing by and letting , we get
Using the claim, we see that the right-hand side is
∎
We can now phrase the questions we are interested in more formally.
Question 2.10.
-
1.
Which varieties (with allowable presentations involving a fixed -tuple of generators) satisfy the zero–one law?
-
2.
Given that the zero–one law holds, when do the sentences with limiting density match those true in the free structure?
2.3 Basic lemmas
Before we begin, we state three lemmas that hold very generally.
Lemma 2.11.
has limiting density if and only if and both have limiting density ; in fact, this holds for any finite disjunction.
Proof.
We have . From this, the lemma is clear. ∎
Lemma 2.12.
has limiting density just in case has limiting density .
Proof.
We have . Again, the lemma is clear. ∎
Lemma 2.13.
Let be the set of -sentences with limiting density 1. Then is consistent and is closed under logical implication—if and , then .
Proof.
Suppose is not consistent. By the Compactness Theorem, some finite subset is inconsistent. As every sentence in this set has density 1, there is a model of that realizes all these (finitely many) sentences, a contradiction. By the previous two lemmas, we have that each has limiting density 0, so also has limiting density 0, and so has limiting density 1. But, , so , and the lemma follows. ∎
3 Illustrative examples
In this section, we consider some of varieties and classes of presentations that illustrate different possibilities. First, we consider the variety of bijective structures, and presentations with a single generator and a single identity in which the function symbols occur only on the left. We show that the sentences true in the free structure are exactly those with limiting density . Second, we consider a variety of a single unary function and presentations with a single generator and a single identity. Here, we show that a specific sentence that is true in the free structure has limiting density . Next, we again consider bijective structures, and presentations with a single generator but with two identities. Here, we give sample sentences for which the limiting density does not exist. Finally, we consider the variety of abelian groups, and presentations with a single generator and a single relator. We give sentences for which the limiting density does not exist, and sentences for which the limiting density exists but is neither nor .
3.1 Bijective structures
We start with the variety of bijective structures. Recall that the language consists of two unary function symbols . The axioms are
These guarantee that the function is and onto and that is the inverse of . Let be the theory generated by these axioms. The models consist of infinite -chains and finite cycles . While these structures lack the mathematical interest and importance of groups, it is instructive to consider them because there are relatively simple elementary invariants, and for presentations with a single generator and a single identity, we can calculate the limiting densities for these sentences. It turns out that the analogue of Conjecture 1.2 holds.
Lemma 3.1.
Over the theory , every sentence is equivalent to a Boolean combination of sentences of the following basic types:
-
1.
, saying that there are at least cycles of size ,
-
2.
, saying that there is a chain of length at least .
Proof.
For any model of , we have a natural equivalence relation on the universe, where if for some integer . Each -class is a copy of or a finite cycle. The isomorphism type of is determined by the number of -classes of different types. Each model of is elementarily equivalent to a saturated model , where has infinitely many copies of if there is no finite bound on the sizes of the -classes. From this, we see that the isomorphism type of and the elementary first order theory of are determined by the sentences and . ∎
We consider bijective structures with a single generator . There is a single -class, which has the form , an infinite chain, or , a cycle of size . We note that in either or , all elements are automorphic. The following lemma is clear from the meanings of the sentences and .
Lemma 3.2.
-
1.
For , is false in both and ,
-
2.
is true only in ,
-
3.
is true in ; it is true in if and only if .
For models with a single generator, is false for , and is equivalent to . Thus, it is enough to consider the elementary invariants of the form .
Here our presentations have a single identity, of the form (function symbols occur only on the left). We may refer to the term as a relator. For a single relator , we get if for some , has occurrences of and occurrences of . We get if for some , has either occurrences of and of or occurrences of and of .
We will show that for all , has limiting density . This implies that , which is true in the free structure, has limiting density . We will use two combinatorial lemmas. The first is an approximation for , good for large . The proof requires the use of Stirling’s formula on all three factorials (see the website of Das [5]).
Lemma 3.3.
.
The second combinatorial lemma is an inequality.
Lemma 3.4.
For all and all , .
Proof.
Recall Pascal’s Identity
We prove the inequality by induction on . First, for , the inequality just says that . Now, suppose . Applying Pascal’s Identity to the right side of the inequality, we get
and then
This is clearly greater than . ∎
To show that has limiting density , we use several further lemmas.
Lemma 3.5.
.
Proof.
The number of terms of length is , so the number of terms of length at most is . ∎
Lemma 3.6.
.
Proof.
For each , and each , we have terms with occurrences of and of , and the same number with the symbols switched. ∎
The next lemma bounds the sum by a single term.
Lemma 3.7.
For all and all , .
Proof.
We fix and proceed by induction on . For , the left side is , and the right side is . Supposing that the statement holds for , we prove it for . By Lemma 3.4,
By the Induction Hypothesis, this is greater than
∎
Now we can show that the limiting density of is for any . To do so, we must make an odd/even case distinction because the only way to get presentations of different lengths of the same structure is for these lengths to differ by a multiple of two, so will equal . However, if for some , then has a new last term , and . Therefore, it is enough to show that
By Lemma 3.4, the last term of is greater than the sum of the earlier terms. Thus, . Recall that , which is strictly greater than , so . To prove that the limiting density of is , it is enough to prove that
We can express as a product of two factors, one involving the fixed and the other not. The first factor is
This is an -fold product with limit as . The second factor is . By Lemma 3.3 above, this is , which has limit . All together, we have shown the following.
Proposition 3.8.
For , .
From this, we get the following.
Theorem 3.9.
For bijective structures with a single generator and a single relator, each sentence has limiting density equal to if and otherwise.
For later use, we state below another immediate consequence of Proposition 3.8. For a term , let be the difference between the number of occurrences of and the number of occurrences of in . The relators that make true are exactly those for which .
Lemma 3.10.
For each , the set of presentations for which has density .
3.2 Structures with a single unary function
Next, take the language with a single unary function symbol , and the variety with no axioms. We consider presentations with a single generator and a single identity. At first, we focus on the sentence saying that is not . We will see that this sentence is false in the free structure, but it has limiting density . After that, we will consider arbitrary sentences, and prove a zero-one law.
For an identity , where , the length is . If , then we get an -chain. If , then we get a chain of length leading to a cycle of length . If , then we get a cycle of length . Similarly, if , we get a chain of length leading to a cycle of length , and if , we get a cycle of length .
We write for a chain of length leading to a cycle of length , allowing the possibility that . Any structure in our variety obtained from a single generator and a single identity has one of the following forms:
-
1.
an -chain—this is the free structure,
-
2.
a finite chain leading to a finite cycle, or
-
3.
a finite cycle.
Lemma 3.11.
.
Proof.
The number of identities of length is . Then
.
∎
Recall that holds if the function is not . We can see that is false in and the finite cycles , and true in the structures for , so an identity yields a structure in which is false if or if one of is , and true otherwise. We can easily count the identities of length that make false. For , there is just one identity, and it makes false. For , there are two identities, and both make false. For , if is odd, there are just two identities that make false, and if is even, there are three identities that make false. Thus, .
Proposition 3.12.
The limiting density for is .
Proof.
For , , and . Therefore, has limiting density , and has limiting density . ∎
In fact, we will see that each sentence has limiting density or . The set of sentences with limiting density is not that of the free structure. It is the theory of a structure that we may think of as a limit of the structures (see Figure 1). The limit structure consists of an -chain together with two -chains and a single -chain that come together at a special point—this point is the end of the two -chains and the beginning of the -chain (see Figure 2). The chain of length is replaced, in the limit, by an -chain plus one of the -chains, and the -cycle is replaced, in the limit, by the other -chain and -chain. We note that is not finitely generated.
Lemma 3.13.
The theory of is generated by the following sentences; note that the elements and are defined and not named by constants.
-
1.
, saying that there is a unique element with no -pre-image,
-
2.
, saying that there is a unique element with two -pre-images,
-
3.
, saying that there is no element with more than two -pre-images,
-
4.
for every , saying that there is no cycle of length , and
-
5.
for every , saying that and are not connected by a chain of length .
Proof.
In any structure in our variety, there is an equivalence relation , where if there is a finite sequence such that , , and for each , either or . If and are two saturated models of the sentences above, of the same cardinality, then . We map the special elements and in to the corresponding elements of . The -class of is an -chain that does not include . The -class of has two -chains ending in and one -chain starting with . The other -classes, not containing or , are -chains. There are the same number of these in and . ∎
Lemma 3.14.
The sentences above that generate the theory of all have limiting density .
Proof.
The sentence , saying that there is no element with more than two -pre-images, is true in all of the models that we get from a single generator and a single identity, so this has limiting density . We have seen that the set of presentations that give models in which is not has limiting density . The models have the form for . The sentences , saying that there is a unique element with no -pre-image, , saying that there is a unique element with two -pre-images, and are true in all of these models, so these sentences have limiting density .
Consider , saying that there is no cycle of length . Let be the set of presentations that make false—the resulting model has a cycle of length . These identities have the form or . The number of such identities of length is if is odd and if is even. Then . Since , the limiting density of is , so the density of is . Finally, consider , saying that and are not connected by a chain of length . Let be the set of presentations that make this false. These identities have the form or . The number of such identities of length is for all . Then . Again the limiting density of is , so the density of . ∎
We conclude the following.
Proposition 3.15.
For all sentences true in , the limiting density is .
3.3 Bijective structures with two identities
In the next example, we return to the variety of bijective structures as in Section 3.1. As before, our presentations have a single generator , but there are two identities instead of just one. We will show that the limiting density need not exist. Recall that the language consists of unary function symbols and that the axioms say that and are inverses. The identities have the form , with function symbols only on the left. Each identity is thus equivalent to one of the form , where .
Proposition 3.16.
For bijective structures, and presentations with a single generator and two identities, the sentence saying that the structure is a -cycle does not have a limiting density.
The proof is somewhat involved. We begin with some elementary lemmas, but eventually we will consider a random walk on a group and appeal to results from random group theory that depend on the Central Limit Theorem. The lemma below tells us when the sentence is true.
Lemma 3.17.
Let be the structure given by an unordered set consisting of two identities, equivalent to and . Then is a -cycle if and only if .
Proof.
Note that if and only if . Thus, we may suppose that both . First, suppose that . In this case, there are such that . Then we have
so is a -cycle. Now, suppose that is a -cycle, and let . The axioms of and the identities and are both satisfied in a -cycle, and can only be a -cycle if . ∎
Our presentations have two identities, but we also need some facts about single identities. We indicate with ′ that we are considering single identities, writing for the number of identities of length and for the number of length at most , and writing , for the number of these identities in a set . We reserve for the number of unordered pairs of identities of length at most , and we write for the number such that both identities are in .
For a single identity of the form , let be the difference between the number of occurrences of and the number of occurrences of in . Intuition may suggest that the statement should have limiting density . This turns out to be true for odd . However, for , we find that the limiting density for the statement does not exist. Essentially, the reason is that the last term of may be greater than the sum of all earlier terms, and this term depends on the parity of . The lemma below says what happens to as the parity of changes.
Lemma 3.18.
-
•
For even , all identities of length satisfy ; none satisfies .
-
•
For odd , all identities of length satisfy and none satisfies .
Proof.
For , there is just one identity, and for this identity, . Supposing that the statements hold for , if has length , then has two extensions of length , and the parity of changes. ∎
The next lemma gives the proportion of single identities of length at most for which holds. The value depends on the parity of .
Lemma 3.19.
-
1.
and .
-
2.
and .
Proof.
For (2), the odd case, we have and
Then . ∎
So far, the lemmas have involved only elementary calculations. The next result is from random group theory [4, 19], concerning a random walk on a group. The elements of the group represent the possible remainders after division of an integer by . In general, for a random walk, there are finitely many states, and given just the current state , with no more prior history, we have fixed probabilities of passing next to state . We allow .
Our states are group elements. We write for the probability of going in one step from the identity to , and we write for the probability of going in steps from the identity to . For the result below, the probability measure , defined on , is supported on a special generating set . For to be supported on means that assigns non-zero probability to the elements of , i.e., the set will consist of the group elements reachable from the identity in one step. For any , is also the set of differences , where is a successor of reachable in one step. The values of , for are obtained by considering the tree of -step extensions of length starting from the identity. We multiply probabilities along the paths, and then sum over the paths leading to .
The result below tells us that the probability of each remainder in is approximately , and that the convergence (as ) has a great deal of uniformity.
Theorem 3.20 ([19, Theorem 7.3]).
There exist such that for any group of the form , any generating set containing the group identity element, and a probability measure supported on , we have that for all and all ,
To adapt this theorem to our setting, we will consider an odd and identities of even length . We break the identity into pieces of length 2, so each piece has chance of being each of , , , or . These correspond to , and in the random walk on , and when is odd, generates . Just as the identities of even length approach a uniform distribution, so do the identities of odd length, and, consequently, so do the identities of length at most . We have the following:
Corollary 3.21.
For any odd number and any ,
Our presentations have an unordered set of two identities. However, it is easier to count ordered pairs, allowing repetition. By Proposition 2.9, we get the same limiting densities, so we will count ordered pairs allowing repetition of elements instead. Let be the set of presentations in which the difference functions are both divisible by some prime . It follows from Lemma 3.10 that , and both have limiting density . The important part of consists of the presentations such that and , and in what follows, we write for this important part. For the presentations in , there is some prime that divides both and , and both are non-zero.
Definition 3.22.
For each , let be the greatest prime such that
.
For every , we split into two parts, and . Note that this splitting depends on . For a presentation in , let be the least prime that divides both . Then the presentation is in if and in if . We will show that has limiting density and that the limiting density of does not exist—it toggles between two values, one for even and the other for odd . Among the primes, behaves differently from the odd primes. We have shown that, for single identities with difference , the limiting density of does not exist. We will see later that this explains why the limiting density of does not exist.
Our first goal is to show that has limiting density . Toward this, we consider a single identity with difference .
Lemma 3.23.
For each odd prime and all , .
Proof.
We will first prove that for all . Note that the numbers , for , form a Pascal triangle. At the top, for , we have , corresponding to . For , we have ’s corresponding to . In general, for even , takes the even values in the interval , and for odd , takes the odd values in the interval . In both cases, . We can see that decreases as increases, and that .
For odd (so that is odd), we have
Note that there are terms in each of the lines, except the first line, which has only terms. Therefore, we have
If is even (so that is even), then we have
In this case, each line has terms, and we get the following slightly stronger inequality:
Combining the even and odd case, we get the desired .
Now, we turn our attention back to the inequality in the lemma, which concerns identities up to a certain length. The quotient is a weighted average (weighted by the proportion of identities of each length) of the probabilities , where . Thus, the lemma follows from the inequality on identities of a fixed length . ∎
We are now ready to consider both identities.
Lemma 3.24.
.
Proof.
Below, we will appeal to Proposition 2.9 and consider, for each , the probability space consisting of the ordered pairs of identities, each of length at most . Then the random variables are independent. Counting ordered pairs of identities and allowing repetition, we see that for each ,
So, it follows from the previous lemma that
By a well-known fact from number theory, the sum of the squares of the reciprocals of primes (or of all natural numbers) converges. Since , we have that . Thus, has limiting density . ∎
We turn to . Again, we consider first a single identity.
Lemma 3.25.
We write for the set of identities of length at most but greater than . Then .
Proof.
We have , and . ∎
Lemma 3.25 may be interpreted as saying that most identities of length at most have length at least . We write for the number of pairs of identities of length at most such that both have length at least . The next lemma says that for most pairs of identities of length at most , the length of both is at least .
Lemma 3.26.
.
Now, is the probability that, among pairs of identities of length at most , with difference functions and , there is some prime such that . We may suppose that both identities have length greater than . We have seen that the limiting probability that divides both does not exist—for even , it approaches , while for odd , it approaches 3.21. Here, we consider odd primes. We have justified thinking of the random variables (for identities of length at most ) as independent.
We would like to assume that for , the events for different primes are independent. This turns out to be “approximately” true. The probability that are not both divisible by is approximately . The probability that are not both divisible by and not both divisible by is approximately . The probability that are not both divisible by any odd prime is approximately . This formula matches what we would get by laborious inclusion-exclusion counting.
In fact, the divisibilities of by different primes may not be independent. However, we can apply the Chinese Remainder Theorem and consider the residue of modulo , which is . It follows from the Definition of (Definition 3.22) that . This is where the random walk on the group comes in. We will use Theorem 3.20.
Theorem 3.27.
Below, we let range over all primes:
-
1.
.
-
2.
.
Proof.
We prove (1). Take as in Theorem 3.20. Recall that and are the difference functions associated with the first and second identities, where in each identity, the function symbols are all on the left. Fixing , we consider the residue of and modulo , where is at most . For a single identity, we consider a string of length . For the fixed , let be the group of possible remainders after division of by . Theorem 3.20 tells us that for every and every ,
When we sum up the identities of length at most , the previous lemma says that most of them will have length some . Thus, we may assume that . The previous inequality yields
By Lemma 3.19, among the identities of length up to , of them are even, and of them are odd. The probability is a weighted sum of . Noticing that the rest of the previous inequality does not depend on , doing a weighted sum gives
By the independence of , we see that for all sufficiently large ,
where
Now, we consider pairs modulo such that no divides both and . Note that cannot both be even. As we have seen, up to the parities of and , for large , the distribution of is approximately uniform, and the distribution of ordered pairs is also approximately uniform. For each odd prime , the fraction of the pairs such that are both divisible by is approximately . Thus, considering all primes, approximately of the possible pairs do not have a common odd prime factor . More precisely,
Finally, considering , the probability that both are even is approximately . Thus, we have that , the probability that no prime divides both and , satisfies
Note that the right hand side of the inequality goes to 0 as . Thus,
The proof of (2) is similar. ∎
3.4 Abelian groups
Let be the variety of abelian groups. To axiomatize , we add to the group axioms the sentence .
3.4.1 Elementary invariants
Szmielew [21] carried out an elimination of quantifiers for abelian groups, and she gave elementary invariants. Later, Eklof and Fisher [6] used saturation to give elementary invariants for modules. Their methods also yield the Szmielew invariants for abelian groups. We give invariants for abelian groups below. For a prime , we write for the set , which consists of the identity and the elements of order .
-
1.
, saying ,
-
2.
, saying ,
-
3.
, saying ,
-
4.
, saying .
We consider presentations with a single generator and a single relator. The free abelian group on one generator is , and the other abelian groups on one generator are the finite cyclic groups . We focus on the sentences , which say that there is an element divisible by and not by . We will see that these sentences are true in and do not have limiting density or . For , the limiting density does not exist, while for odd primes , the limiting density exists and has a value strictly between and .
Lemma 3.28.
-
1.
is true in .
-
2.
is true in if and only if .
Proof.
For (1), we note that in , the element witnesses the truth of . For (2), consider . For some (possibly ) and some relatively prime to , we have , and then . If , then has an element divisible by and not by , and otherwise, there is no such element. Furthermore, all elements of are divisible by all powers of . So, has elements divisible by if and only if . ∎
A relator of length has the form , where . We consider the relator of length , representing the empty sum, to be .
Lemma 3.29.
.
Proof.
There is one relator of length . For , there are possible relators , . Then we have
.
∎
We consider the limiting density for for various combinations of and . Recall that the sentence is true in , and it is true in provided that . Let be the set of relators that give , and for , let be the set of relators that give for the various . We write and for the number of relators of length at most in the sets and .
Lemma 3.30.
-
1.
,
-
2.
has limiting density .
Proof.
For (1), note that the relator gives just in case has even length for some , and and each occur times. For (2), look back at Section 3.1 where we encountered the same quantities as the current and . There, we saw that . ∎
Recall that for a relator , is the difference between the number of occurrences of and the number of occurrences of in the term . For a relator of even length , takes only even values . For an identity of odd length , takes only odd values , , , . Using arguments similar to those in Section 3.3, we will show that the limiting density of does not exist, and for odd primes , the limiting density of is .
Lemma 3.31.
For and , the limiting density of does not exist. In particular, , and .
Proof.
We begin with the case where . Here the calculations are straightforward. We have , and . Then . Therefore, . Since , we have . What we have shown is that if is the set of relators of even length, then and .
For , we again use Theorem 3.20. For every presentation in , we have , so we may condition on when we consider even length . In the relation , we can consider the sums . This gives us an -step random walk on with each step being with probability , with probability , and with probability . Dividing everything by 2, we get a random walk with support on . Thus, Theorem 3.20 applies. We have exactly when the random walk ends at . The probability of this is .
Now, as in the proof of Theorem 3.27, we have that most identities of length at most will have length at least . Since the rate of convergence in Theorem 3.20 is exponential and all identities in have even length, we can pass from the probability for identities of a fixed length to the probability for identities with length , and we get .
Since only when is even, i.e., the identity is in , and the above probability was conditioned to , we have the desired
The odd case can be proved similarly. ∎
Lemma 3.32.
For odd primes , has limiting density .
Proof.
For a fixed even length , we get a random walk on supported on —a single step increases the length by . By Theorem 3.20, we have . This random walk converges to the uniform distribution for even lengths, and the same is true for the odd lengths.
As before, we split the set of relators of length at most into two parts, those of length less than , and those of length at least . Let be the number of relators of length at most for which the length is less than , and let be the number for which the length is at least . Then , so . Then the exponential rate of convergence of Theorem 3.20 gives
∎
4 Generalizing
In this section, we give general conditions that imply some of the behaviors that we saw in Section 3. Our languages will have finitely many unary function symbols, and we may also allow finitely many constants.
4.1 Generalized bijective varieties
In Section 3.1, we considered the variety with axioms saying of a pair of unary function symbols that they are inverses, and we showed that for presentations with a single generator and a single identity of the form , the sentences true in the free structure are exactly those with limiting density . In this subsection and the next, we turn our attention to varieties of structures with multiple bijective unary functions, possibly with additional axioms. We might suppose that the language of has unary function symbols , and that our varieties have axioms saying that for each , and are inverses. However, the assumption that the functions have inverses named by function symbols turns out to be unnecessary once we know that the functions are and onto.
Definition 4.1.
Let be a language with unary function symbols , and let be an algebraic variety with theory . The variety is generalized bijective if for all ,
and
.
The result below says that for a generalized bijective variety, the basic functions have inverses named by terms.
Proposition 4.2.
Let be the theory of a generalized bijective variety in the language . Then for each , there is some word such that
.
Proof.
Fix , and let be the free structure on one generator . There is some with . We can express as for some word . Then . Recall that in a variety, if an atomic formula is true of the generating tuplea in the free structure, then it holds on all tuples in all structures [3, Theorem 11.4]. Thus, . In , let . We have . Since is injective, this means that . Hence, . This completes the proof. ∎
Definition 4.3.
Let be a variety in the language , where each is unary. The variety is commutative if the axioms imply for all .
Our main general result, Theorem 4.26, says that for a commutative generalized bijective variety and presentations with a single generator and a single identity, the zero–one law holds. Moreover, the sentences with density are those true in the free structure. To prove Theorem 4.26, we will use a version of Gaifman’s Locality Theorem, which we discuss below.
4.2 Gaifman’s Locality Theorem
We state a special version of Gaifman’s Locality Theorem for generalized bijective varieties, and we sketch a proof using saturation. Fix a language consisting of unary function symbols . Below, we define the Gaifman graph of an -structure. Gaifman defined the graph for structures in a finite relational language. When convenient, we treat the unary functions as binary relations.
Definition 4.4.
Let be an -structure. The Gaifman graph of is the undirected graph with universe equal to that of , and with an edge between and if and only if or for some .
We define an equivalence relation on such that if and belong to the same connected component in the Gaifman graph; i.e., there is a finite path leading from to .
Definition 4.5 (distance, ).
For , the distance between and is the least such that there is a path of length from to . We write , to indicate that the distance is, respectively, at least , or greater than .
Remark: Elements lie in different connected components just in case for all .
We consider substructures of . Note that two connected components, thought of as substructures, are isomorphic if there is a map from one onto the other that preserves the unary functions , which we think of as binary relations. The structure is determined, up to isomorphism, by the number of connected components of different isomorphism types.
Definition 4.6 (-ball, , ).
Let be a structure and let .
-
1.
For , the -ball around is .
-
2.
For , we write for the set .
-
3.
We write for the connected component of , or .
-
4.
We write for the union of the connected components of elements of , or .
Let be a generalized bijective variety for the language . For , each element has a unique image and a unique pre-image under each . We show that for each and , there is a finite set of formulas that describe, for all , the possible substructures for -tuples .
Lemma 4.7.
Let be a generalized bijective variety for the language . For each and , there is a finite set of formulas , such that
-
1.
for each , each -tuple in satisfies a unique formula ,
-
2.
for all , if -tuples in and in satisfy the same formula , then there is an isomorphism from onto that takes to .
Moreover, we may take the formulas in to be existential. We may equally well take them to be universal.
Proof.
We describe the possible elements of inductively as follows. The set has just the members of the -tuple as possible elements. Now, suppose we have the possible elements of for some . We will set the possible elements of to be the elements of together with additional possible elements obtained as follows: Take some corresponding to a node at a distance from some and follow an arrow labeled or from to ; please note that is shorthand for the term that acts as an inverse to from Proposition 4.2.
We may think of the possible elements of as terms , where is a string of , of length at most . For an actual structure in our generalized bijective variety, with an actual tuple corresponding to , we may have equalities—different paths may lead to the same point. For generated by , the elements of are equivalence classes of terms , where is a string of of length at most . We have an existential formula saying that there exist ’s corresponding to the possible elements of such that the structure has a specific atomic diagram. We also have a universal formula saying that for all ’s corresponding to the possible elements of , the structure has a specific atomic diagram. ∎
We fix sets of formulas as in the lemma. Gaifman’s Locality Theorem says that any formula (in a relational language) can be expressed as a finite Boolean combination of “local” formulas and “local” sentences (see the references [15], [7], [14]). For our setting, we take the local formulas and local sentences to be as follows.
Definition 4.8.
-
1.
The -local formulas are those in for various .
-
2.
The -local sentences have one of the following forms:
-
(a)
,
for some and , -
(b)
, for some .
-
(a)
Remark.
This definition is similar to Gaifman’s, except that we allow only special formulas in . Note that the formulas in already give information on whether the distance between and is greater than . Indeed, if , the formula will contain a conjunct that says (in the rational language) for some of length at most . Thus, we may equivalently replace 2(a) by for some . We chose the form above to stay closer to Gaifman’s definition.
Definition 4.9.
A formula or sentence is local if it is -local for some .
Here is our special version of Gaifman’s Locality Theorem, where the local formulas and sentences are as defined above.
Theorem 4.10.
Let be a generalized bijective variety with theory .
-
1.
Any elementary first order sentence is equivalent over to a sentence that is a finite Boolean combination of local sentences.
-
2.
Any elementary first order formula with free variables is equivalent over to a formula that is finite Boolean combination of local sentences and local formulas. In fact, we may take to be a finite disjunction of formulas , where for each , is a single local formula, and is a finite conjunction of local sentences and negations of local sentences.
We sketch a proof using saturation. We begin with some definitions and lemmas.
Definition 4.11.
-
•
For , the local theory of is the set of all local sentences and negations of local sentences that are true in .
-
•
For in , the local type of is the set of formulas generated by the local theory and the set of local formulas true of in .
Note that for in and in of the same length, if the local type of in is contained in the local type of in , then the local types are the same.
Lemma 4.12.
Let . If -tuples in and in satisfy the same local type, then there is a partial isomorphism from onto such that .
Proof.
The fact that the tuples and satisfy the same local type means that the structures and satisfy the same local theory, and for each , the tuples satisfy the same unique formula . By Lemma 4.7, for each , there is an isomorphism from onto taking to . We have a tree of these finite partial isomorphisms between and , where at level , we put the isomorphisms from onto that take to , and at level , the successors of a given partial isomorphism from level are the extensions of taking isomorphically onto . If is infinite, then the tree is infinite, and it is finitely branching, so by König’s Lemma, there is a path . The desired isomorphism is . If the substructure is finite, then it is contained in for some , and is the desired isomorphism. ∎
For any , the isomorphism type of is determined by the number of connected components of each isomorphism type. Suppose is saturated, of infinite cardinality . In , a local type is satisfied if it is finitely satisfied. For a local type , there are at least realizations of on different connected components if and only if for all , satisfies the -local sentence saying that there are at least elements satisfying and at a distance greater than . The number of connected components with an element satisfying is either finite or . This yields the following.
Lemma 4.13.
Suppose are saturated and of the same cardinality . If satisfy the same local sentences, then .
Proof.
Since are saturated, of the same cardinality, and satisfy the same local sentences, they realize the same local types, and they have the same number of connected components of each isomorphism type. Hence, they are isomorphic. ∎
Knowing what the saturated structures in the variety look like, we see that for any countable , there exists a saturated structure of cardinality such that satisfy the same local sentences.
Lemma 4.14.
If have the same local theory, then they are elementarily equivalent.
Proof.
Let and be saturated models of the common local theory of such that both have cardinality . Applying Lemma 4.13, we see that . Hence, are elementarily equivalent. ∎
Lemma 4.15.
Take -tuples in . If satisfy the same local type, then there is an automorphism of that takes to .
Proof.
We have a partial isomorphism from onto such that . This extends to an automorphism that agrees with on , with on , and with the identity on the rest of . ∎
Lemma 4.16.
If , then there is a sentence true in such that is a finite conjunction of local sentences and negations of local sentences and .
Proof.
If is the local theory of , then . Then there is some , the conjunction of a finite subset of , such that . ∎
For a formula with an -tuple of variables, we have the following.
Lemma 4.17.
If , then there is a formula such that is a finite conjunction of sentences in the local theory of , is a local formula satisfied by in , and .
Proof.
We have a saturated model of cardinality with a tuple satisfying the type of . If is saturated and satisfies the local theory of and , there is an isomorphism from onto . If is an -tuple in satisfying the local type of and , we may suppose that . Hence, realizes the complete type of . This shows that the local theory of and the local type of generate the full theory and type. If is a finite conjunction of local formulas and negations of local formulas in the local type of , then there is a single formula in the local type of that implies —take for sufficiently large . ∎
A standard model-theoretic argument gives the following.
Proposition 4.18.
Any elementary first order sentence is equivalent over to a finite disjunction of local sentences and negations of such sentences.
Proof.
For each satisfying , choose as in Lemma 4.16, a finite conjunction of local sentences and negations, true in , such that . Let be the set of chosen sentences. Now, is inconsistent, so there is a finite set such that . Then is equivalent over to the disjunction of the sentences in . ∎
Here is the companion result for formulas with free variables.
Proposition 4.19.
For any formula with free variables among , there is a formula equivalent over to such that is a finite disjunction of formulas , where is a conjunction of local sentences and negations and is a local formula.
Proof.
We replace with a tuple of constants . For each model of and each tuple satisfying , choose a formula in the local type of such that . Let be the set of chosen formulas. Now, is inconsistent, so for some finite , . We may take of the form , where is the conjunction of the local sentences in and is the local formula in that is true of , where is greatest such that contains a formula in . ∎
Remark.
For our special version of Gaifman’s Locality Theorem, the local formulas may be taken to be either existential or universal. Thus, over a completion of (or over the set of local sentences in the complete theory), each formula is equivalent to an existential formula, and to a universal formula.
4.3 The group associated to a generalized bijective variety
Let be a generalized bijective variety with theory . There is an equivalence relation on strings of function symbols such that strings are equivalent if . For a string of symbols , we may write for the length of . We will associate to the variety a group , whose elements are the equivalence classes of strings.
Definition 4.20 (Gaifman group, ).
For a generalized bijective variety , the Gaifman group is the group consisting of equivalence classes of strings of symbols under the operation induced by concatenation of strings.
The identity in is the equivalence class of the empty string. For each function symbol , we fix a term that names the inverse, as in Proposition 4.2. We may write for . The inverse function extends in a natural way to any word in . Let be the element of obtained as the free structure generated by the finite tuple . The group has a natural action on , taking and to . Since for some , the action takes to .
Definition 4.21 (orbit under action of ).
For and , the orbit of under the action of is the set of all such that for some , .
Note.
For and , the orbit of under the action of is just the set of elements of generated by . The automorphism orbit of results from the action of the group of automorphisms.
Lemma 4.22.
Let be a generalized bijective variety, and let be the free structure in generated by the tuple . The action of on is well defined and simply transitive on the orbits.
Proof.
We first prove that the action is well defined. Suppose in . Without loss of generality, we assume that is obtained from by applying an identity of , say . This means that and for some words . Then . Since is an identity in , we have and for an element of , . Thus, the action is well defined.
Recall that every element of has the form for some generator , and every such is in the orbit of . Thus, every orbit in has the form for some generator . Now, take in and suppose that . Since is free, we have that . Therefore, holds in the group , so by cancellation, we have . Thus, the action is simply transitive on its orbits. ∎
For our commutative generalized bijective variety with theory , we have the following.
Lemma 4.23.
-
1.
For , .
-
2.
For , .
For structures with a single generator , all elements have the same local type. In fact, they are in the same automorphism orbit as well as the same orbit under the action of .
Lemma 4.24.
Suppose is generated by . For ,
.
Consider a local sentence saying that there exists with satisfying and with for . For generated by a single element , cannot be true unless the ’s are all the same and has a tuple of elements such that for . Thus, the important local invariants are the sentences for and the sentences saying that there are at least elements at a distance at least . We will show that for these important sentences, the ones true in have density .
For a string of function symbols, we write for the -fold concatenation of . We write for the subgroup of generated by the equivalence class of —the elements are the equivalence classes of the strings , . We need to understand truth in the structure with presentation , where is a single identity. Any identity is equivalent over to a canonically chosen identity of the form , where the length of is bounded by a constant multiple of the length of . The next lemma will tell us a great deal about truth in .
Lemma 4.25.
Let be a generalized bijective variety, and consider presentations , where is an identity equivalent to one of the form . Then for , iff are in the same left coset of .
Proof.
Let .
: Without loss of generality, suppose . In , we have
: Now, suppose in . Then must prove
where for each , we have one of the following:
-
(i)
,
-
(ii)
, or
-
(iii)
.
In the first two cases, and are clearly in the same left coset of . In the third case, in , so again and are in the same left coset of . ∎
For a given identity , we are interested in the identities such that . The lemma above lets us recognize these identities. We come to the theorem that gives conditions under which the sentences true in the free structure have limiting density .
Theorem 4.26.
Let be a commutative generalized bijective variety in the language , and consider presentations with a single generator and a single identity. Let be the free structure on . If is infinite, then the sentences true in have limiting density .
Proof.
We show that for the important sentences , if is true in , then it has density , and if is false in , then it has density . For structures in with generator , the important sentences say one of the following:
-
1.
for —this is equivalent to a finite conjunction of formulas of the form or .
-
2.
.
If is infinite, then we can show that any sentence of the second form true in is implied over by a sentence of the first form true in . A saturated model of the theory of has infinitely many connected components, and the sentence is clearly true in this model. Therefore, it is true in . Take witnesses , where . Choose such that all are in , and take true of in . Then over , implies .
The group is abelian and finitely generated, so it is a finite direct product of cyclic groups generated by some elements . We write for the projection of an element on the subgroup generated by . Since is infinite, some must have infinite order. Without loss of generality, we suppose has infinite order and generates a copy of . We focus on , and we suppose that the values are integers.
Each identity has the form , but this is equivalent to an identity of the form . Let . If , then the projection is an integer bounded by . If , then . Then . To prove Theorem 4.26, it is enough to show that all statements of the form or true in have limiting density . The proof consists of two steps.
-
1.
The first step is to show that for a fixed , the set of presentations
such that has limiting density . -
2.
The second step is to show that for a fixed and a fixed identity of the form , if , then for any , such that in the Gaifman graph , we have if and only if .
Toward the first step, we prove some lemmas.
Lemma 4.27.
-
1.
The number of identities of length is . Furthermore, for every , there are exactly identities of length in which (the string of function symbols on the left side) has length .
-
2.
.
Proof.
For (1), the number of strings of function symbols of length is . To determine an identity , we choose one of the initial segments to serve as the left-hand side. For (2), we simply note that
∎
The next lemma may by interpreted as saying that a random identity of length has length .
Lemma 4.28.
.
Proof.
Using Lemma 4.27, we get . This clearly has limit , so has limit . ∎
Let be the number of identities of length exactly , and let be the number of identities in of length equal to . Calculating the limit of is often easier than calculating the limit of . The lemma below gives us permission to do that.
Lemma 4.29.
For any set of identities of arbitrary length, if has limit , then so does .
Proof.
We show that for , there is some such that for , . Take such that for all , we have , and take such that for all such that , we have . Let . Then
This gives us
∎
The next lemma will complete the first step of the proof of Theorem 4.26. We write and for both strings of function symbols and elements of .
Lemma 4.30.
For every , we have
Proof.
By Lemma 4.29, it suffices to prove that
Furthermore, since is fixed, it is enough to prove that for every ,
Fix . The identities of length form a finite probability space, and the random variables and are not independent. By Lemma 4.27, we may consider conditioned on having length . Then . For each , the number of identities with and is equal to the number of strings of length , so the probability that is . The probability that is the sum over of the probability that times the conditional probability that given . We have
We write for conditioned on having length . Then, as a random variable, is a sum of i.i.d. random variables whose value is equal to the projection of the symbol. All function symbols are equally likely. Thus, with probability , will be for . As , we have . By the Central Limit Theorem, we have that converges to a normal distribution. This means that, in particular, for every , there is some such that for every , the probability that is less than for all ; i.e.,
Without loss of generality, we will assume that , so . Thus, whenever .
Now, we have that
Combining these, we get
∎
We proceed to the second step of the proof. Recall that .
Lemma 4.31.
Fix of the form , and fix such that
. For any , at a distance in the Gaifman graph of , we have if and only if , where is the structure given by the presentation .
Proof.
Based on the discussion before Lemma 4.27, we can see that if and are adjacent in the Gaifman graph, then for some . Thus, if in the Gaifman graph, then . We will also write , where is the term that is the inverse of in the theory of the commutative generalized bijective variety. Note that may be longer than , but this does not affect the argument below.
It is easy to see that if holds in , then it holds in the structure , where is , which is equivalent to . Suppose . By Lemma 4.25, this implies that are in the same left coset of ; i.e., . Taking the projection , we see that . For some integer , we have , and . However, by assumption, , and we have . Therefore, we must have . It follows that . Moreover, . It follows that in , and . ∎
We are ready to complete the proof of the theorem. We just need to show that the sentences of the form or true in have limiting density . By Lemma 4.30, for any integer , the set of identities such that has density . For a fixed sentence , take such that both have length at most , so that are at distance at most . Then by Lemma 4.31, the sentence holds in iff it holds in the structures given by identities such that , where this set has density . ∎
This theorem can be generalized to presentations with multiple generators.
Proposition 4.32.
Let be a commutative generalized bijective variety in the language and suppose that the free structure on is infinite. Then for the structures in with an -tuple of generators and a single identity, the sentences true in the free structure on have limiting density .
To do so, we need the following lemma.
Lemma 4.33.
Let be a commutative generalized bijective variety, with theory . Let be the free structure on generators. Suppose that is infinite. Then for all , and satisfy the same theory.
Proof.
All elements of have the same local type. Now, has a saturated elementary extension whose Gaifman graph has infinitely many connected components. Let be the substructure of extending and generated by an -tuple from different connected components. Clearly, and satisfy the same special local sentences. Since the sentences are existential, any special local sentence true in is true in , and any special local sentence true in is true in .
We may suppose that has generators . The connected component of in and in is generated by —the elements are named by terms . The special -local formula true of the elements of is true of each in and in . We have an isomorphism from onto that takes to and takes in to in . Then and have the same theory. ∎
Proof of Proposition 4.32.
For presentations with generators and a single identity, we consider separately the set of presentations in which the identity involves a single generator and the complementary set in which the identity involves two distinct generators. For a presentation in , the resulting structure is the disjoint union of the structure (with generator ) and copies of (one for each of the other ’s). The identities in have the form for . In the structure , the connected component of and the connected component of are collapsed via the relation . Thus, the structure is a disjoint union of copies of the free structure on one generator.
For fixed , we have a finite probability space. For a sentence , the probability that is true is . For presentations with a single generator, we write and . By Theorem 4.26,
Now, is the probability of . This is equal to the probability of times the conditional probability of given . The probability of is . The conditional probability of given is the same as the probability of for presentations with a single generator; namely, . Thus, . As , this approaches if is true in the free structures and otherwise.
Similarly, the probability of is the probability of times the conditional probability of given . The probability of is . The conditional probability of given is if is true in and otherwise. Thus,
In total, has limit if is true in the free structures and otherwise. ∎
Remark.
Using the multidimensional Central Limit Theorem [22], we can generalize the theorem and corollary above to any commutative generalized bijective variety where embeds into . In this case, the random structures in with a single generator and identities satisfy the zero–one conjecture, and the limiting theory agrees with the theory of the free structure. However, without the condition that embeds in , the statement is false, as witnessed by the bijective structures with two identities considered in Section 3.3.
4.3.1 Superstability
We make a brief comment on the superstability of completions of the theory of generalized bijective varieties. Recall that for an infinite cardinal , a (complete) theory is -stable if for every set in a model of , if has cardinality , then the set of complete types over has cardinality as well. A theory is stable if it is -stable for some , and it is superstable if it is -stable for all sufficiently large . If the language of is countable, then will suffice. For more on stable theories, see Chapter 4 of [16].
Proposition 4.34.
All completions of the theory of a generalized bijective variety are superstable.
Proof.
Let be a completion of this theory, and let be a subset of some model of of cardinality . We show that the number of -types over is at most .
A type in a variable over will say one of the following:
-
1.
for some .
-
2.
For every term and every , , and satisfies a certain quantifier-free -type .
From this, it follows that if is the cardinality of , then the number of -types over is at most . Thus, for , is -stable. ∎
Remark.
If we drop the condition that is a completion of the theory of a generalized bijective variety, then there are theories in a language with finitely many unary function symbols that are unstable. We will not give an example here, although one is easily obtained taking the theory of a structure in the variety which we will study in Section 6.3.
4.4 Failure of the zero–one law
The next result gives conditions under which the zero–one law fails.
Theorem 4.35.
Let be a language with unary functions, including , where . Let be a variety such that for some term involving a symbol apart from , the theory of contains the sentence . Consider presentations with an -tuple of generators and a single identity, and suppose that in the free structure, . Then there is a sentence with limiting density neither nor .
Remark.
The sentence says that has a constant value. If involved just the symbol , then the free structure would satisfy the sentence .
Proof of Theorem 4.35.
Let be a sentence saying that fixes the constant given by . For instance, we may take . We show that does not have limiting density 0 or 1. We consider presentations with a tuple of generators and a single identity. Let be the set of identities of the form , where and . In the resulting structures, fixes the constant, so is true. Let be the set of identities of the form , where and . The resulting structure is free and does not fix the constant, so is false. We show that neither nor has density . It follows that neither nor has density .
The number of identities of length is . Then
Say that has length . Then the identities in have length at least , and for , the number of identities in of length is
. Then
and
The identities in have length at least . For , the number of identities in of length is . Then
and
Since , both of these limits are strictly between and . ∎
5 Naming the generators
5.1 A general result
Let be a variety in a language with axioms generating a theory . We consider presentations with a fixed generating tuple , and identities. Let be the result of adding to constants for the generators. We ask when the -sentences true in the free structure have limiting density .
Proposition 5.1.
Let be the set of -sentences true in the free structure generated by , and let be the set of -sentences with limiting density . Then the following are equivalent:
-
1.
,
-
2.
,
-
3.
has the following two properties:
-
(a)
includes the sentences from of the form ,
-
(b)
for any -formula with just free, if for all closed terms , then .
-
(a)
Proof.
We will prove . First, we assume (1) and prove (2). We must show that . Take . If , then must be in , so it is in . Then has limiting density , and we have a contradiction. Next, we assume (2) and prove (3). We can see that has properties (a) and (b), so does as well. Finally, we assume (3) and prove (1). The set has properties (a) and (b). Sentences that are logically equivalent have the same limiting density as well as the same truth value in the free structure . We show by induction on that if , then . We suppose that the negations in our formulas are brought inside, next to the atomic formulas.
-
1.
Suppose has the form . If , then , so the limiting density is .
-
2.
Suppose has the form . By (a), if , then has limiting density .
-
3.
Suppose . If , then both conjuncts are true, so both have limiting density . Then also has limiting density .
-
4.
Suppose . If , then at least one disjunct is true, so it has limiting density . Then also has limiting density .
-
5.
Suppose . If , then for some . Then this sentence has limiting density , so also has limiting density .
-
6.
Suppose . If , then for all closed terms . Then the sentence has limiting density for all , and by (b), .
∎
Consider the following further property.
Property (c): If , then for some .
Lemma 5.2.
If is complete (i.e., we have the zero–one law), then (b) and (c) are equivalent.
Proof.
First, suppose that (b) holds and that . If there is no such that , then for all , and for a contradiction. Now, suppose (c) holds and that for all . If , then . By (c), for some for a contradiction, so . ∎
Lemma 5.3.
Suppose satisfies (a) and (b). Then for all formulas with free variables , if
for all terms , then
.
Proof.
For a fixed term , suppose for all . By (b),
for all . So, by (b), .
∎
If the orbit of in is defined by an -formula , then for each -sentence , we have iff satisfies the -sentences and .
Proposition 5.4.
Let be the free structure generated by . Suppose that the orbit of is defined by the -formula and the -sentence has limiting density . Suppose also that for all -sentences , is true in if and only if it has limiting density . Then the same is true for all -sentences.
Proof.
Take an -sentence that is true in . In , this is equivalent to the -sentence . The sentence is true in , so it has limiting density . The set of sentences with limiting density is closed under logical consequence, so since has limiting density , it follows that has limiting density . ∎
5.2 Generalized bijective structures and sentences with constants
We have seen that for the basic bijective variety and for the broader class of commutative generalized bijective varieties, when we consider presentations with a single generator and a single identity, the sentences (in the language of the variety) true in the free structure have density . We can apply Proposition 5.1 to extend this to sentences with a constant naming the generator.
Example 5.5.
Let be a commutative generalized bijective variety in the language . Consider presentations with a single generator and a single identity, and let be the extension of with a constant for the generator. Suppose that the free structure generated by is infinite. In , all elements are automorphic. In particular, and are automorphic via the automorphism . Preparing to apply Proposition 5.1, we take to be . Clearly, has limiting density . By Theorem 4.26, the -sentences true in the free structure have limiting density . Then Proposition 5.1 says that this holds also for the -sentences (involving ).
For a generating tuple , the sentences true in the free structure on have density . To establish this, we need to take a closer look at the formulas from Section 4.2 in the expanded language with constants naming the generators. We consider the unary functions as binary relations and the constants as unary relations. Thus, we have atomic formulas with the meanings and .
Lemma 5.6.
Let be a commutative generalized bijective variety, and consider presentations with a generating -tuple and a single identity. Let be the free structure. If is infinite, then for every , there is a set of presentations such that
-
1.
has limiting density , and
-
2.
for , the following are equivalent:
-
(a)
holds in ,
-
(b)
holds in some structure given by a presentation in ,
-
(c)
holds in all structures given by a presentation in .
-
(a)
If is the structure given by the identity , then for each , we get an isomorphism from in to in , given by .
Proof.
We use notation from the proof of Theorem 4.26. Recall that is the projection onto the copy of generated by , where is an element of infinite order in the abelian group associated with the variety . Let be the set of presentations in which the identity satisfies , where . The fact that has limiting density follows from the proof of Theorem 4.26.
Since the formulas in uniquely describe the isomorphism type of , it suffices to show that is an isomorphism. We know that is surjective since is a quotient of . As in the proof of Theorem 4.26, it is also injective. Indeed, if , then the projection from to is injective on the substructure generated by . On the substructure generated by , if , then we can apply Lemma 4.25, and we see that (the equivalence class of) is in as an element of . Since and the length of is at most , this is not possible. If , then, as in Corollary 4.32, the substructure generated by and that generated by are identified via , while the projection map is injective on the substructure generated by the further generators . Thus, if , then we must have , but since and the length of is at most , this is again impossible.
Recall that we are thinking of the language as relational and we have atomic formulas with the meanings and . The formula saying holds exactly on , in either or . If the formula saying holds in , then it holds of and in because is a quotient of . Thus, we have . Finally, suppose that in , . Then for some and . However, the map is bijective, so and as well. Then holds in . This shows that is an isomorphism, completing the proof. ∎
Theorem 5.7.
Let be a commutative generalized bijective variety in the language , and suppose that the free structure on one generator is infinite. Consider presentations with a fixed generating -tuple and a single identity. Let be the free structure on . Let be the result of adding constants for the elements of to . Then an -sentence is true in iff it has limiting density .
Proof.
Let be an -sentence that is true in , so for some -formula . By Theorem 4.10, can be expressed as a finite disjunction for of the form , where and is a conjunction of special sentences and negations of special sentences. Recall that the special sentences have the form , where and is the formula saying that the distance between and in the Gaifman graph is greater than . Since , we have for all , i.e., . Since is an -sentence true in , it has limiting density by Theorem 4.26. On the other hand, , and by Lemma 5.6, also has limiting density . Thus, has limiting density . ∎
6 More examples
In Section 3, we gave some examples illustrating different possible behaviors of limiting density. We considered sentences with no constants. In Section 4, we gave conditions guaranteeing that the sentences with limiting density are those true in the free structure. In Section 5, we gave some results for sentences with constants naming the generators. In the current section, we look again at some of the examples from Section 3 in light of the results from Sections 4 and 5. We we also give some further examples, illustrating more subtle points suggested by these results.
6.1 Examples of Proposition 5.1
Let be a variety in the language . Consider presentations with a fixed tuple of generators, and some number of identities, and let be the result of adding to constants for the generators. Here, for reference, is the statement of Proposition 5.1.
Proposition 5.1. Let be the set of -sentences true in the free structure generated by , and let be the set of -sentences with limiting density . Then the following are equivalent:
-
1.
,
-
2.
,
-
3.
has the following two properties:
-
(a)
includes the sentences from of the form ,
-
(b)
for any -formula with just free, if for all closed terms , then .
-
(a)
The proposition says that conditions (a) and (b) are necessary and sufficient for the -sentences true in to have density . We revisit some examples and see what the result says about them.
6.1.1 Generalized bijective structures
In Theorem 5.7, we saw that for the variety of generalized bijective structures and presentations with a single generator and a single identity, any sentence, possibly involving the constant , has limiting density iff it is true in the free structure on . Hence, we must have both properties (a) and (b) from Proposition 5.1.
6.1.2 Abelian groups
In Section 3.4, we saw that for abelian groups and presentations with a single generator and a single relator, the zero–one law fails.
Proposition 6.1.
For abelian groups and presentations with a single generator and a single relator, Property (a) holds and Property (b) fails, witnessed by the formulas saying that , where is an odd prime.
Proof.
The free structure is . Take a sentence of the form . This is true in , and the sentence is in since all relators longer than make it true. Thus, Property (a) holds. Now fix and an odd prime . For all closed terms , the sentence is in . We have for all terms . By Property (a), the sentences are all in . If we had Property (b), then the sentence would be in . However, recall from Section 3.4 that the sentence says that there is an element divisible by and not by . This is true in but not in —by Lemmas 3.28 and 3.32, the limiting density is . Since is logically valid, is divisible by in all models. Thus, if the sentence is in , then is in —in the models satisfying , is not divisible by . This is a contradiction. ∎
6.1.3 Structures with a single unary function, one generator, and one identity
The next example is from Section 3.2. The variety of unary functions has a single unary function symbol and no axioms.
Proposition 6.2.
For the variety of unary functions and presentations of the form , Property (a) holds and Property (b) fails.
Proof.
To show that Property (a) holds, consider a sentence of the form . Note that the set of presentations with identity for has limiting density . Moreover, for any such presentation, we recall from Section 3.2 that the resulting structure is a finite chain leading to a finite cycle where the chain is longer than both and . Then we have in the structure. Thus, is in .
To show that Property (b) fails, let . We will show that this witnesses the failure of (b). For any fixed , note that the set of presentations with identity for has limiting density . In any such presentation, we have unless . Thus, the sentence saying that the formula
holds for is in for any closed term . On the other hand, the sentence saying that is injective has limiting density , as shown in Section 3.2. Thus Property (b) fails in this variety. ∎
6.1.4 A new example
In the next example, we modify the variety of bijective structures to obtain an example in which Property (b) holds but Property (a) fails.
Example 6.3.
Let be the language that consists of unary function symbols , and a constant , and let be the variety with axioms saying that and are inverse functions and . Consider presentations with a single generator and one identity. For the resulting structure , let be the cycle generated by and let be the cycle generated by . We describe the structures obtained from all possible identities, and we give some limiting densities.
-
1.
Let be the set of identities of the form . This has density . If , then is a -cycle if and a -chain if . is always a -cycle in this case.
-
2.
Let be the set of identities of the form . This has density . Then is a -chain (always the same), and is a -cycle or a -cycle.
-
3.
Let be the set of identities of the form or . This set has density . In the resulting structure, is a -cycle.
To see that Property (a) fails, consider the sentence . This is true in the free structure but fails exactly in the subset of where is a 1-cycle, which has limiting density .
To show that Property (b) holds, assume for some , has limiting density 1 for all closed terms . We will show that for , the set of identities in for which the resulting structure satisfies has the same density as . For any finite set of closed terms or , the sentence has density . This makes the case easy. For the structures given by identities in , all are named by terms , , or .
For the remaining cases, we use Gaifman’s Locality Theorem. Consider a formula in the language of bijective structures such that . By Gaifman, is equivalent in bijective structures to a formula , where for some , is a conjunction of local sentences and negations, each -local for , and is an -local formula that describes the union of the -balls around .
For identities in , may have one element or three, and is fixed. Let be a finite set with closed terms naming the elements of and the elements of that are not far from , with , plus one more element where . The sentence saying that holds for all of these terms has density . For the other , the ones far from , the balls are isomorphic. If satisfies , then all elements do, so holds. Then has density .
Finally, for an identity in , is a fixed -cycle, while varies with the identity. Consider the disjuncts that might be satisfied by some . The same identities also yield plain bijective structures . Let be the part of describing the -balls around and . For , satisfies , iff holds in and holds in . For each , there is a sentence such that for the structures given by an identity in , iff . We may take to be a finite disjunction of conjunctions of sentences that, in the setting of bijective structures, are -local sentences or negations. We can see this by using the Feferman-Vaught Theorem or, less formally, just by thinking about what says. Let . For , the formula has density in the bijective structure . Then by our earlier result, has density . For each bijective structure generated by in which is true, we consider the structure to be , and in the variety we are currently considering, satisfies , so this has density .
This example also shows that the zero–one law may fail if we allow constants in the language, giving an obstacle for generalizing Theorem 4.26 (on the zero–one law for generalized bijective structures) to varieties in a language with constants. Note that in Section 5, we did add constants naming a tuple of generators. However, these constants were not part of the language of the variety—they did not appear in the axioms.
6.2 Structures with a single unary function and more generators and identities
For the language with a single unary function symbol and the variety with no axioms, we saw in Section 3.2 that for presentations with a single generator and a single identity, the zero–one law holds, but the limiting theory is not that of the free structure. In particular, the sentence saying that is not injective has density , but it is false in the free structure. We now consider presentations with multiple generators and identities.
Proposition 6.4.
Let be the language with a single unary function symbol , and let be the variety with no axioms. For presentations with generators and identities, the sentence has density .
Let the generators be . The identities have the form . As before, the sentence is true if the chosen identities all satisfy that are both non-zero and . Indeed, in this case, without loss of generality, we may take such that appears as one side of some identity and there is no such that appears as one side of some identity. Suppose is one of the identities. Then and witness .
We can show that has density . The number of identities of length is . The number of length at most is . The number of unordered sets of identities of length at most is . We count the identities of length such that and . If is even, then there are at most identities of length for which the condition fails; namely, , , and . (If is odd, then the number is at most .)
Thus, there are at least identities of length satisfying the condition, and there are at least identities of length at most satisfying the condition. Let be the set of presentations with all identities satisfying the condition. Then .
It is now a calculus exercise to show that , and the proposition follows.
f
Remark.
We saw that when , the zero–one law holds. However, it does not hold in the case where and . Suppose the two identities are , , and consider the sentence . This case is similar to the case of bijective structures with two identities in Section 3.3. The sentence is true if and only if . An argument like that in Section 3.3 shows that has density strictly between and . We omit the proof here.
6.3 Structures with multiple unary functions
We turn our attention to a more complicated case. Take the language with function symbols and the variety with no axioms, and consider presentations with generators and identities. We begin with the case where .
Proposition 6.5.
Let be the sentence
This sentence is false in the free structure, but it has limiting density among structures given by presentations with generators and a single identity of the form .
Proof.
For generators , the free structure is the join of disjoint substructures generated by the separate . In , each element is uniquely expressed as , where the term is built up out of the functions . The terms are all distinct, and the sentence is false. For an identity , the length is the sum of the lengths of . The number of identities of length is , so the number of identities of length at most , or , is , which is equal to .
Let be the set of identities such that has length . We show that has limiting density . The number of identities in of length is , so the number of length at most is , or . This is . It is not difficult to verify that . Similarly, let be the set of identities such that has length . Then also has limiting density . Therefore, the limiting density of is . Let be the set of identities not in . This will have limiting density . The identities in have the form where both have length at least . Say that and for terms and . In the model given by the identity , we have . The elements and witness that the sentence is true. ∎
Now, we consider presentations with more than one identity. We let be as in Proposition 6.5.
Proposition 6.6.
For the language with unary function symbol , let be the variety with no axioms. For presentations with a fixed -tuple of generators and identities, where , the sentence has limiting density .
Proof.
Let be the number of identities of length at most . Then the number of presentations in which all identities have length at most is . Consider the identities in which neither side has length . The number of these identities of length , where , is , so the number of length at most is . For convenience, we call this . Let be the set of presentations with identities in which neither side has length . Then .
We show by induction on that . We write and to indicate the value of under consideration. For , . We know that . For the expression , we divide top and bottom both by and get a new numerator that goes to and a new denominator that also goes to . Now, supposing that the statement holds for , we show that it holds for . We have . By the Induction Hypothesis, the first factor goes to . For the second factor, we again divide top and bottom by . The new numerator is , which has limit . The new denominator is , which also has limit .
We claim that the sentence is true in all structures obtained from presentations in . Take any presentation in and consider the resulting model . No is in the range of any function in any model of this sort. The given identities all take us from a non-trivial term in some to a non-trivial term in some and do not force us to assign values , so we can fill out the rest of the function values without ever using these values . Thus, all nontrivial identities true in are in all structures with presentations in . Take an identity of shortest length, say , and proceed as for a single identity. Say that and for terms and . By the minimality of the length of , we have . This witnesses the truth of . ∎
References
- [1] G. N. Arzhantseva. On groups in which subgroups with a fixed number of generators are free. Fundam. Prikl. Mat., 3(3):675–683, 1997.
- [2] G. N. Arzhantseva and A. Yu. Ol’shanskiĭ. Generality of the class of groups in which subgroups with a lesser number of generators are free. Mat. Zametki, 59(4):489–496, 638, 1996.
- [3] Stanley Burris and H. P. Sankappanavar. A course in universal algebra, volume 78 of Graduate Texts in Mathematics. Springer-Verlag, New York-Berlin, 1981.
- [4] Matthew Cordes, Moon Duchin, Yen Duong, Meng-Che Ho, and Andrew P. Sánchez. Random nilpotent groups I. Int. Math. Res. Not. IMRN, (7):1921–1953, 2018.
- [5] Shagnik Das. A brief note on estimates of binomial coefficients. http://page.mi.fu-berlin.de/shagnik/notes/binomials.pdf. Accessed March 1, 2022.
- [6] Paul C. Eklof and Edward R. Fischer. The elementary theory of abelian groups. Ann. Math. Logic, 4:115–171, 1972.
- [7] Haim Gaifman. On local and nonlocal properties. In Proceedings of the Herbrand symposium (Marseilles, 1981), volume 107 of Stud. Logic Found. Math., pages 105–135. North-Holland, Amsterdam, 1982.
- [8] M. Gromov. Hyperbolic groups. In Essays in group theory, volume 8 of Math. Sci. Res. Inst. Publ., pages 75–263. Springer, New York, 1987.
- [9] Matthew Harrison-Trainor, Bakh Khoussainov, and Daniel Turetsky. Effective aspects of algorithmically random structures. Computability, 8(3-4):359–375, 2019.
- [10] Meng-Che Ho. Randomizing and Describing Groups. ProQuest LLC, Ann Arbor, MI, 2017. Thesis (Ph.D.)–The University of Wisconsin - Madison.
- [11] Ilya Kapovich and Paul Schupp. Genericity, the Arzhantseva-Olshanskii method and the isomorphism problem for one-relator groups. Math. Ann., 331(1):1–19, 2005.
- [12] Olga Kharlampovich and Alexei Myasnikov. Elementary theory of free non-abelian groups. J. Algebra, 302(2):451–552, 2006.
- [13] Olga Kharlampovich and Rizos Sklinos. First-order sentences in random groups. arXiv preprint arXiv:2106.05461, 2022.
- [14] Phokion G. Kolaitis. On the expressive power of logics on finite models. In Finite model theory and its applications, Texts Theoret. Comput. Sci. EATCS Ser., pages 27–123. Springer, Berlin, 2007.
- [15] Leonid Libkin. Elements of finite model theory. Texts in Theoretical Computer Science. An EATCS Series. Springer-Verlag, Berlin, 2004.
- [16] David Marker. Model theory, volume 217 of Graduate Texts in Mathematics. Springer-Verlag, New York, 2002. An introduction.
- [17] Yann Ollivier. A January 2005 invitation to random groups, volume 10 of Ensaios Matemáticos [Mathematical Surveys]. Sociedade Brasileira de Matemática, Rio de Janeiro, 2005.
- [18] A. Yu. Ol’shanskiĭ. Almost every group is hyperbolic. Internat. J. Algebra Comput., 2(1):1–17, 1992.
- [19] Laurent Saloff-Coste. Random walks on finite groups. In Probability on discrete structures, volume 110 of Encyclopaedia Math. Sci., pages 263–346. Springer, Berlin, 2004.
- [20] Z. Sela. Diophantine geometry over groups. VI. The elementary theory of a free group. Geom. Funct. Anal., 16(3):707–730, 2006.
- [21] W. Szmielew. Elementary properties of Abelian groups. Fund. Math., 41:203–271, 1955.
- [22] A. W. van der Vaart. Asymptotic statistics, volume 3 of Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge University Press, Cambridge, 1998.