Difference hierarchies and duality with an application to formal languages
C\'elia Borlido, Mai Gehrke, Andreas Krebs, Howard Straubing

TL;DR
This paper explores the structure of difference hierarchies in lattices and their applications to formal languages, providing canonical decompositions and new insights into regular language representations.
Contribution
It introduces a canonical minimum length decomposition of Boolean elements in lattices relative to filter completion and extends this to applications in formal language theory.
Findings
Canonical difference chain decompositions exist for Boolean elements over lattices.
Boolean elements over (co-)Heyting algebras have canonical difference chains.
Regular languages can be characterized by Boolean combinations of universal sentences with specific predicates.
Abstract
The notion of a difference hierarchy, first introduced by Hausdorff, plays an important role in many areas of mathematics, logic and theoretical computer science such as descriptive set theory, complexity theory, and the theory of regular languages and automata. From a lattice theoretic point of view, the difference hierarchy over a bounded distributive lattice stratifies the Boolean algebra generated by it according to the minimum length of difference chains required to describe the Boolean elements. While each Boolean element is given by a finite difference chain, there is no canonical such writing in general. We show that, relative to the filter completion, or equivalently, the lattice of closed upsets of the dual Priestley space, each Boolean element over the lattice has a canonical minimum length decomposition into a Hausdorff difference. As a corollary each Boolean element over a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Difference hierarchies and duality
with an application to formal languages111This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (grant agreement No. 670624).
Célia Borlido
Laboratoire J. A. Dieudonné, CNRS, Université Côte d’Azur, France
Mai Gehrke
Laboratoire J. A. Dieudonné, CNRS, Université Côte d’Azur, France
Andreas Krebs
Wilhelm-Schickard-Institut Universität Tübingen, Germany
Howard Straubing
Boston College, United States
Abstract
The notion of a difference hierarchy, first introduced by Hausdorff, plays an important role in many areas of mathematics, logic and theoretical computer science such as descriptive set theory, complexity theory, and the theory of regular languages and automata. From a lattice theoretic point of view, the difference hierarchy over a bounded distributive lattice stratifies the Boolean algebra generated by it according to the minimum length of difference chains required to describe the Boolean elements. While each Boolean element is given by a finite difference chain, there is no canonical such writing in general. We show that, relative to the filter completion, or equivalently, the lattice of closed upsets of the dual Priestley space, each Boolean element over the lattice has a canonical minimum length decomposition into a Hausdorff difference. As a corollary each Boolean element over a (co-)Heyting algebra has a canonical difference chain. With a further generalization of this result involving a directed family of adjunctions with meet-semilattices, we give an elementary proof of the fact that a regular language is given by a Boolean combination of purely universal sentences using arbitrary numerical predicates if and only if it is given by a Boolean combination of purely universal sentences using only regular numerical predicates.
1 Introduction
Hausdorff introduced the notion of a difference hierarchy in his work on set theory [12]. Subsequently, the notion has played an important role in descriptive set theory as well as in complexity theory. More recently, it has seen a number of applications in the theory of regular languages and automata [10, 2]. From a lattice theoretic point of view, the difference hierarchy over a bounded distributive lattice stratifies the Booleanization, , of the lattice in question. The Booleanization of is the (unique up to isomorphism) Boolean algebra containing as a bounded sublattice and generated (as a Boolean algebra) by . The stratification is made according to the minimum length of difference chains required to describe an element :
[TABLE]
where are elements of . One difficulty in the study of difference hierarchies is that in general elements do not have canonical associated difference chains.
Stone duality [20] represents any bounded distributive lattice as the simultaneously compact and open subsets of an associated topological space known as the Stone dual space of the lattice. Priestley duality [19] is a rephrasing of this duality which uses the Stone space of the Booleanization equipped with a partial order to represent the lattice as the closed and open upsets of the associated Priestley space. Priestley duality provides an elucidating tool for the study of difference hierarchies. For one, the minimum length of difference chains for an element has a nice description relative to the Priestley dual space of as the length of the longest chain of points in so that belongs to the clopen corresponding to if and only if is odd. Further, if we allow difference chains of closed upsets of the Priestley space, rather than clopen upsets, then every element has a canonical difference chain which is of minimum length. In particular, if the lattice is a co-Heyting algebra, then the canonical difference chain of closed upsets consists of closed and open upsets and thus every has a canonical difference chain in . We present this material, which is closely related to work by Leo Èsakia on skeletal subalgebras of closure algebras [6], in Section 3.
In Section 5, we consider a situation where is equipped with a directed family of adjunctions. Using Stone duality in the form of canonical extensions, we generalize the results of Section 3. In turn, the results of Section 5 are used in Section 7 for an application in the setting of logic on words. More precisely, we give an elementary proof of the fact that a regular language is given by a Boolean combination of purely universal sentences using arbitrary numerical predicates if and only if it is given by a Boolean combination of purely universal sentences using only regular predicates. That is, expressed in a formula, we give an elementary proof of the equality
[TABLE]
This result was first proved by Macial, Péladeau and Thérien in [14]. For more details, see [22].
Before each of the main sections 3, 5, and 7, we include the background needed. Namely, in Section 2 we introduce the basics on lattices and duality, Section 4 is an introduction to canonical extensions, and Section 6 contains the preliminaries on recognition and logic on words.
2 Preliminaries on lattices and duality
Semilattices, lattices, and Boolean algebras
A semilattice is an idempotent commutative monoid. A bounded distributive lattice is a structure so that and both are semilattices and the operations and distribute over each other. The relation if and only if if and only if is a partial order on and one can recover the operations and as the binary supremum and infimum, and the constants and [math] as the maximum and minimum elements of the poset, respectively. A Boolean algebra is a bounded distributive lattice equipped with a unary operation satisfying the identities and . The fundamental example of a Boolean algebra is a powerset with the set-theoretic operations, obtained from the inclusion order and the negation given by complementation. Thus any subset of a powerset closed under the bounded lattice operations is a bounded distributive lattice. We view the classes of bounded distributive lattices and of Boolean algebras as categories in which the morphisms are the algebraic homomorphisms, that is, the maps that preserve all the basic operations.
Stone duality
Stone duality [20] shows that all bounded distributive lattices are, up to isomorphism, of the above form. In fact, it does more than that as it provides a category of topological spaces dually equivalent to the category of bounded distributive lattices thus yielding an embedding of each bounded distributive lattice into a certain sublattice of the lattice of open sets of the corresponding space. We work here with the equivalent formulation due to Priestley [19], which uses ordered compact Hausdorff spaces rather than the non-Hausdorff spaces of the classical Stone duality.
Recall that a prime filter of a lattice is a non-empty upset of that is closed under binary meets and such that whenever , we have or . The Priestley dual space of consists of the set of prime filters of equipped with the topology generated by the sets and their complements, where . Further, this space is ordered by inclusion of prime filters. One can show that the resulting ordered topological space is compact and totally order disconnected (TOD). That is, if in then there is a clopen upset of with and . Totally order disconnected compact spaces are called Priestley spaces and the appropriate structure preserving maps are the continuous and order preserving maps. Indeed, given a bounded lattice homomorphism, one can show that the preimage map restricted to prime filters is a continuous and order preserving map between the corresponding Priestley spaces. In the other direction, given a Priestley space the collection of subsets of that are simultaneously upsets and closed and open (called clopen) forms a lattice of sets. Further, given a continuous and order preserving map between Priestley spaces, the inverse image map restricted to the clopen upsets is a bounded lattice homomorphism. These functors account for the dual equivalence of the category of bounded distributive lattices and the category of Priestley spaces. On objects, this means that (via the map ) for any bounded distributive lattice and (via the map ) for any Priestley space . In addition, the double dual of a morphism, on either side of the duality, is naturally isomorphic to the original. For more details see [4, Chapter 11].
Booleanization
The Booleanization, or free Boolean extension, , of a bounded distributive lattice is a Boolean algebra with a bounded lattice embedding , satisfying a universal property. Namely, given any bounded lattice homomorphism into a Boolean algebra, there is a unique extension so that the following diagram commutes:
D$$D^{-}$$B$$h$$h^{-}
The fact that Boolean algebras are bounded distributive lattices with an additional operation satisfying some set of equations implies, for general algebraic/categorical reasons, that a free Boolean extension where is only guaranteed to be a homomorphism exists. The Booleanization has a few extra properties: first of all the homomorphism is in fact an embedding. Secondly, given any embedding of into any Boolean algebra, the Boolean algebra generated by the image is isomorphic to . The former property follows as soon as one shows the existence of at least one embedding of into some Boolean algebra. The latter property follows as one can show that a homomorphism of Boolean algebras which is injective on a distributive lattice that generates the domain must be injective.
It is well known that every distributive lattice can be embedded in a Boolean algebra. For one, it is a consequence of Stone duality since the Stone map is a lattice embedding into the powerset of the dual space. However, showing that the Stone map is an embedding requires a non-constructive principle, so one may ask whether such an embedding is available in a constructive manner. A first attempt was made by MacNeille [15], but there was a gap in his proof. A corrected version of MacNeille’s argument was subsequently provided by Peremans [17]. Later yet, Grätzer and Schmidt [11] and then Chen [3] also provided such constructive embeddings. In particular, Grätzer and Schmidt provide a simple proof by showing that any bounded distributive lattice embeds in the Boolean algebra of finitely generated congruences of .
In the setting of Priestley duality, we have seen that is isomorphic to the lattice of clopen upsets of its dual space . It thus follows that is isomorphic to the Boolean subalgebra of generated by . One can show that this is the Boolean algebra of all clopen subsets of . That is,
[TABLE]
In fact, if is the Priestley space of , then is the Priestley space of (and is the Stone space of ). This is a consequence of the fact, due to Nerode [16], that each prime filter of extends to a unique prime filter of given by
[TABLE]
where is shorthand for . Accordingly, given an element we write for the corresponding clopen of . As follows from Nerode’s result, in terms of the prime filters of , we have .
Adjunctions
Let and be posets. Given maps and , we say that is an adjoint pair222Sometimes called a covariant Galois connection. provided
[TABLE]
Note that in this case, and uniquely determine each other since
[TABLE]
Accordingly, we also call the lower adjoint of and the upper adjoint of . Thus a function has a lower, respectively upper, adjoint provided the appropriate minima, respectively maxima, exist. Also, one can show that lower adjoints preserve all existing suprema, while upper adjoints preserve all existing infima. In the case that the posets and are complete lattices this gives a simple criterion for the existence of adjoints.
Proposition 2.1**.**
A map between complete lattices has a lower adjoint if and only if it preserves arbitrary meets, and it has an upper adjoint if and only if it preserves arbitrary joins.
Finally, we remark that if is an adjoint pair, then one can show that and and that the operation is always a closure operator on in the sense that holds for all . For the reader who would like to see the proofs of these facts we refer to [4, Chapter 7].
Heyting and co-Heyting algebras
Heyting algebras are the algebras for intuitionistic propositional logic in the same sense that Boolean algebras are the algebras for classical propositional logic. A Heyting algebra is a bounded distributive lattice equipped with an additional binary operation, , which models the intuitionistic implication. The order dual notion (obtained by interchanging the meet and join as well as the [math] and of the lattice) is called a co-Heyting algebra. We will focus on co-Heyting algebras here as this is more convenient for the sequel, but any result about the one notion has a corresponding order dual result about the other notion.
Definition 2.2**.**
A co-Heyting algebra is an algebra such that is a bounded distributive lattice and the operation is the lower adjoint of the operation , in the sense that is an adjoint pair for each . That is, the operation is uniquely determined by the following property:
[TABLE]
As stated above, these are precisely the order duals of Heyting algebras. That is, is a co-Heyting algebra if and only if is a Heyting algebra, where . Notice that the adjunction property connecting and implies that the co-Heyting operation on a distributive lattice, if it exists, is unique and is given by
[TABLE]
Thus one may think of a co-Heyting algebra as a special kind of distributive lattice, namely one for which exists for all and for which the thus defined operation satisfies the adjunction property in the definition of co-Heyting algebras. One can show that the class of co-Heyting algebras forms a variety, but here we are rather interested in a description of these algebras involving the Booleanization of the underlying bounded distributive lattice. It is not difficult to see that the following proposition states that a bounded distributive lattice is a co-Heyting algebra if and only if the inclusion of in its Booleanization has a lower adjoint. See [7, Proposition 3] for the corresponding fact for Heyting algebras. We include a proof for self-containment.
Proposition 2.3**.**
Let be a bounded distributive lattice. Then is a co-Heyting algebra if and only if there is a ceiling function
[TABLE]
Proof.
Let be a bounded distributive lattice and let . Consider these as elements, first of the co-Heyting algebra and then as elements of the Boolean algebra . We have
[TABLE]
Accordingly, we see that is a co-Heyting algebra if and only if, the ceiling function above is well defined for all elements of of the form with . However, since the elements of are given by finite joins of elements of this form and since the ceiling function preserves joins (being a lower adjoint of the inclusion of in ) we can easily verify that this is sufficient to show that the ceiling function is globally defined by extending by join. To this end, let be an arbitrary element of and let , then we have
[TABLE]
so that yields the desired ceiling function. ∎
Since Heyting and co-Heyting algebras may be seen as certain bounded distributive lattices, it is useful to understand which Priestley spaces they correspond to. This was worked out by Èsakia [5] independently of Priestley’s work: a bounded distributive lattice is a Heyting algebra if and only if, for any clopen of the Priestley dual of , the generated downset is again clopen. This of course is equivalent to the order dual characterization of co-Heyting algebras but we include a proof to illustrate the correspondence between the algebraic and topological formulations.
Theorem 2.4** ([5]).**
Let be a bounded distributive lattice and its Priestley dual space. Then admits a co-Heyting structure if and only if for each clopen, is again clopen. When this is the case, the map is naturally isomorphic to the map on clopen subsets of given by .
Proof.
This is a simple consequence of Proposition 2.3. Note that by total order disconnectedness of , for any closed (and thus compact) , we have
[TABLE]
Now we see easily that for clopen, there is a least clopen upset (i.e., element of ) above if and only if the collection \{W\subseteq X\mid V\subseteq W\text{ and W clopen upset}\} has a minimum and this, in turn, happens if and only if is clopen. ∎
Closed subsets and closed upsets in Priestley spaces
We highlight a few useful facts about closed subsets and upsets in Priestley spaces. First we note that closed subspaces of Priestley spaces, that is, closed subsets equipped with the inherited topology and order, are again Priestley spaces. This is because the TOD property is inherited by any subspace of a TOD space, and compactness is inherited by any closed subspace of a compact space. In fact, if a Priestley space is dual to a bounded distributive lattice , it is not difficult to see that the closed subspaces of correspond to the lattice quotients of , cf. [4, Section 11.32].
The following fact about upsets of closed sets will be used extensively in the sequel. For a subset of a poset , we use to denote the set of minimal elements of .
Proposition 2.5**.**
Let be a Priestley space and a closed subset. Then, and this is a closed subset of .
Proof.
As seen in(2) in the proof of Theorem 2.4, is a closed subset of whenever is closed. Now consider as the dual space of a bounded distributive lattice . Then the points of are the prime filters of . Let be any element of and let be a maximal chain of prime filters contained in with . Since is a chain, it is easy to show that is again a prime filter. Also, if is any clopen upset of with , then for all and thus . It follows that for all clopen upsets of with and thus . Now by maximality of it follows that and . Thus . ∎
3 The difference hierarchy and closed
upsets
Let be a bounded distributive lattice and its Booleanization. Since is generated by as a Boolean algebra and because of the disjunctive normal form of Boolean expressions, every element of may be written as a finite join of elements of the form with . A fact, that is well known but somewhat harder to see is that every element of is of the form
[TABLE]
for some . The usual proof is by algebraic computation and is not particularly enlightening. It is also a consequence of our results here. We begin with a technical observation which is straightforward to verify.
Proposition 3.1**.**
Let be a Boolean algebra and let be a decreasing sequence of elements of . Then, the following equality holds:
[TABLE]
where the join is disjoint, and by induction we obtain
**
[TABLE]
where the joinands are pairwise disjoint.
One problem with difference chain decompositions of Boolean elements over a bounded distributive lattice, which makes them difficult to understand and work with, is that, in general, there is no ‘most efficient’ such decomposition. We give an example of a Boolean element over a bounded distributive lattice that illustrates the problem of non-canonicity of difference chains.
Example 3.2**.**
We specify the lattice via its Priestley space. Consider equipped with the topology of the one point compactification of the discrete topology on . That is, the frame of opens of is:
[TABLE]
The space is compact since any open cover must contain a neighborhood of and it must be cofinite. Covering the remaining points only requires a finite number of opens.
The order relation on is as depicted. That is, the only non-trivial order relation in is .
1$$2$$\dots$$y$$x
We argue that is TOD. Given with , we have two cases. Either and then is a clopen upset containing but not , or and then and is a clopen upset containing but not . It follows that is a Priestley space.
The clopen upsets of are the finite subsets of and the cofinite subsets of containing and they form the lattice dual to . Note that is clopen in and thus . On the other hand, any clopen upset of containing must be cofinite. We can write
[TABLE]
where is also a clopen upset of . It follows that there is no canonical choice for as is not open and thus not in .
However, if we look for difference chains for relative to *the lattice of closed subsets of *, then we have a canonical choice of difference chain, namely where and . This is a completely general phenomenon as we shall see next. Finally, we observe that since is a clopen upset but is not, is not a co-Heyting algebra.
In this section we show that we may write each element of the Booleanization of a bounded distributive lattice canonically as a difference of closed upsets (cf. Theorem 3.7), and that, in the case of a co-Heyting algebra, this provides a canonical difference chain of the form (3) for each element of its Booleanization (cf. Corollary 3.9).
Recall that a subset of a poset is said to be convex provided with implies .
Definition 3.3**.**
If is a poset, , and , then we say that in is an alternating sequence of length for (with respect to ) provided
- (a)
for each which is odd; 2. (b)
for each which is even; 3. (c)
.
Further, we say that has degree (with respect to ), written , provided is the largest natural number for which there is an alternating sequence of length for . In particular, if there is no alternating sequence for with respect to (i.e. if ) then . Notice that an element of finite degree is of odd degree if and only if it belongs to . Also, if is convex, then every element of has degree , while every element of has degree .
In general, there will be non-empty subsets of posets with respect to which no element has finite degree. However, that is not the case for clopen subsets of Priestley spaces.
Proposition 3.4**.**
Let be a Priestley space and a clopen subset of . Then every element of has finite degree with respect to . There are elements of degree [math] if and only if , and the positive degrees achieved with respect to form an initial segment of the positive integers.
Proof.
Any element of the Booleanization of a bounded distributive lattice may be written as a finite disjunction of differences of elements from (using disjunctive normal form). Accordingly, if is a clopen subset of a Priestley space , then there is an so that we may write
[TABLE]
where are clopen upsets of . In particular, since each is convex, by the Pigeonhole Principle, there is no alternating sequence with respect to of length strictly greater than , and thus, every element of has degree at most with respect to .
Also, picking an alternating sequence for an element whose length is the maximum possible, it is clear that the -th element of such a sequence has degree . Thus the set of positive degrees that are achieved form an initial segment of the positive integers. Finally, has degree [math] if and only if . ∎
Lemma 3.5**.**
Let be a Priestley space and a clopen subset of . Define subsets of as follows:
[TABLE]
Then, for each , is closed and
[TABLE]
Proof.
By Proposition 3.4, every element of has a finite degree. Also if , then it is clear that . Furthermore, by Proposition 2.5, we have that for any closed set . Now since both and are closed, it suffices to show that the elements of have degree , and the elements of have degree . Note that it is clear that for any . Now suppose . Since , there is with . Since , this is an alternating sequence of length for . On the other hand, if is an alternating sequence for , then and thus unless and . Thus for any . ∎
Corollary 3.6**.**
Let be a Priestley space, a clopen subset of , and a sequence of closed upsets in satisfying
[TABLE]
If and are as defined in Lemma 3.5, then
[TABLE]
Proof.
By (4), we have . Also, since is an upset we have . Now, since we have and as is an upset, it follows that . Also, implies and thus, . In particular, we have . ∎
An iteration of Lemma 3.5 leads to the main result of this section.
Theorem 3.7**.**
Let be a Priestley space and a clopen subset of . Define a sequence of subsets of as follows:
[TABLE]
for (see Figure 1). Then, is a decreasing sequence of closed upsets of and, for every , we have
[TABLE]
In particular,
[TABLE]
where .
Proof.
First we note that if (5) holds, then (6) holds since will consist precisely of the elements of of degree and since each element of has an odd degree less than or equal to the maximum degree achieved in . For the first statement and for (5), the proof proceeds by induction on the parameter used in (6). For , we have and and thus are closed sets satisfying (5) by Lemma 3.5.
For the inductive step, suppose the statements hold for and notice that and are in fact the sets and of Lemma 3.5 when we apply it to the Priestley space and its clopen subset . Thus, to complete the proof, it suffices to notice that, for every , we have . ∎
The corresponding generalization of Corollary 3.6 goes as follows, and it proves the canonicity of writing (6).
Proposition 3.8**.**
Let be a Priestley space and be a clopen subset of . Let be a decreasing sequence of closed upsets of satisfying
[TABLE]
Then, taking as defined in Theorem 3.7, we have and, for every , the following inclusions hold:
[TABLE]
Proof.
We proceed by induction on . The case is the content of Corollary 3.6. Now suppose that (8) holds for a certain . As in the proof of Theorem 3.7, we consider the new Priestley space and its clopen subset . Then, setting for each , we obtain a decreasing sequence of clopen subsets of that form a difference chain for . However, notice that by the induction hypothesis we have
[TABLE]
so that the first sets do not contribute to the writing of as a difference. It follows that the sequence is also a difference chain of closed upsets of for . Now applying Corollary 3.6 to this sequence, we see that
[TABLE]
and
[TABLE]
We also obtain that . On the other hand, by Theorem 3.7, we have
[TABLE]
We thus conclude that
[TABLE]
as required for the inductive step. ∎
We are now ready to derive the normal form for elements of whenever is a co-Heyting algebra. This is a straightforward consequence of Theorem 2.4, Theorem 3.7 and Proposition 3.8.
Corollary 3.9**.**
Let be a co-Heyting algebra and . Define a sequence of elements in (recall Proposition 2.3) as follows:
[TABLE]
for . Then, the sequence is decreasing, and there exists such that and
[TABLE]
Moreover, for every other writing
[TABLE]
as a difference chain with in , we have , for , and for each we have .
Notice that every finite distributive lattice is a co-Heyting algebra, so that the above corollary applies to any finite distributive lattice. Combined with the fact that every bounded distributive lattice is the direct limit of its finite sublattices and that the Booleanization is the direct limit of the Booleanizations of these finite bounded sublattices, we also have the following.
Corollary 3.10**.**
Every Boolean element over any bounded distributive lattice may be written as a difference chain of elements of the lattice.
As shown by Corollary 3.9, the case of a co-Heyting algebra is particularly simple. In order to be able to apply the ideas of this section in a broader setting, we need a generalization which is easier to work with in the pointfree setting afforded by canonical extensions.
4 Preliminaries on canonical extensions
Here we provide the required information on canonical extensions. For further details, please see [7] or [8].
Canonical extensions
Let be a bounded distributive lattice and its dual Priestley space. Then, Priestley duality implies that the Stone map
[TABLE]
is an embedding of into the complete lattice of upsets of the poset underlying . An embedding into a complete lattice is called a completion, and canonical extension, first introduced by Jónsson and Tarski [13], comes about from the fact that the above completion can be uniquely characterized in abstract terms among all the completions of . Indeed, it is the unique completion (up to isomorphism) satisfying the following two properties:
- (dense) Each element of is a join of meets and a meet of joins of elements in the image of ;
- (compact) For with in , there are finite and with .
Thus, instead of working with the the dual space of a bounded distributive lattice , we will work with its canonical extension, denoted . It comes with an embedding , which is compact and dense in the above sense. As stated above this means that is isomorphic to , where is the Priestley space of , and that the embedding is naturally isomorphic to the Stone map . In what follows, to lighten the notation, we will assume (WLOG) that the embedding is an inclusion so that sits as a sublattice in .
Filter and ideal elements
Since sits in as the clopen upsets sit in , where is the Priestley space of , we see that the join-closure of in will correspond to the lattice of open upsets of . One can show that these are in one-to-one correspondence with the ideals of . Thus we denote the join-closure of in by and call the elements of ideal elements of . Similarly the meet-closure of in will correspond to the lattice of closed upsets of and one can show that these are in one-to-one correspondence with the filters of . Accordingly we denote the meet-closure of in by and call its elements filter elements of . Note that, relative to the concepts of filter and ideal elements, the density property of states that every element of is a join of filter elements and a meet of ideal elements.
We are particularly interested in the closed upsets of , and thus in , since they provide canonical difference chains, as we have just seen in the previous section. We point out another abstract characterization of which will be useful to us. is the free down-directed meet completion of and thus it is uniquely determined by the following two properties [9, Proposition 2.1]:
- (filter dense) Each element of is a down-directed meet of elements from ;
- (filter compact) For down-directed and , if , then there is with .
Notice, that in the particular case of a Boolean algebra , the order on the dual space is trivial and thus is isomorphic to the full powerset of the dual space of . Also, the ideal elements of correspond to all the opens of while the filter elements of correspond to all the closed subsets of .
A ceiling function at the level of canonical extensions
Consider a situation where we have a Boolean algebra and a bounded sublattice of . We saw in Proposition 2.3, that if is a co-Heyting algebra and is its Booleanization, then there is a lower adjoint . Here we will show, that on the level of canonical extensions any embedding has a lower adjoint with nice properties for filter elements.
It is a part of the theory of canonical extensions that the embedding of in extends to a complete embedding of the canonical extensions [8, Theorem 3.2] which restricts to embeddings for the filter elements as well as for the ideal elements [8, Theorem 2.19]. Since the embedding is a complete embedding it has both an upper and a lower adjoint, see Proposition 2.1. We will be interested in the lower adjoint, which we will denote by . Thus we have, for ,
[TABLE]
Since , we may think of as a (complete) sublattice of and of the embedding as the identity. If we do this, then we may see as a closure operator on taking values inside , cf. the comment following Proposition 2.1. We are particularly interested in the restriction of this closure operator to the filter elements.
Proposition 4.1**.**
Let be a Boolean algebra and a bounded sublattice of , and let be the lower adjoint of the embedding . Then the following properties hold:
- (a)
for each , is the least element of which lies above ; 2. (b)
the map sends filter elements to filter elements; 3. (c)
the map preserves down-directed meets.
Proof.
We think of the embedding as an inclusion. Thus (a) follows by the definition of adjoints: for we have if and only if . For (b), let and let with . Order dually to , the free directed join completion of is given by the subframe of ideal elements, . By the density property of canonical extension, every element of is a join of filter elements and a meet of ideal elements. For each with , we have and thus, by compactness, there is with . Now we get
[TABLE]
Since , we have
[TABLE]
For (c), let be a down-directed subset of with . By (b), , and thus . Let with , then and by the filter compactness property of , there is with . Therefore we have
[TABLE]
On the other hand, since for each , by monotonicity of the closure operator, we also have and thus the closure operator, restricted to , preserves down-directed meets. ∎
Remark 4.2**.**
Notice that if is the Booleanization of , and is the Priestley space of , then , , and the closure operator is, according to Proposition 4.1(a) simply the map that takes a to the upset . Furthermore, Proposition 4.1(b) tells us that if is closed then is also closed. That is, it is the canonical extension incarnation of the second assertion in Proposition 2.5. We did not prove Proposition 4.1(c) in topological terms, but we could have. It says that if is a down-directed family of closed subsets of a Priestley space, then
[TABLE]
A statement that is not true in general for down-directed families of subsets of a poset.
5 The difference hierarchy and directed families of
adjunctions
Let be a Boolean algebra, a directed partially ordered set, an indexed family of meet-semilattices, and an indexed family of adjunctions satisfying:
- (D.1)
for all with ; 2. (D.2)
is a bounded sublattice of .
For and we denote by . This is the closure operator on associated with the adjunction . We have the following relationship between these closure operators and the one given by .
Proposition 5.1**.**
Let , and be as specified above, then, for each , we have:
[TABLE]
where the meet is taken in .
Proof.
For , since is a closure operator, we have . Also is the least element of above . It follows that for each and thus . On the other hand, by Proposition 4.1(b), since , we have . That is, . Now let with . Then, since , there is with . Now using the fact that and the monotonicity of we obtain
[TABLE]
We thus have
[TABLE]
Now fix and define sequences and , for each , as follows:
[TABLE]
[TABLE]
Remark 5.2**.**
Note that if , then the sequence is exactly the canonical extension incarnation of the sequence given by of Theorem 3.7. We can say even more: By the universal property of the Booleanization of , any embedding factors through . Thus it is the composition of two embeddings and . The arguments given above thus apply to both of these and the canonical extensions of both of these embeddings have lower adjoints whose composition is the lower adjoint of the composition of the two embeddings. But if , then applying the lower adjoint of the embedding to it, leaves it fixed. Accordingly, for any embedding , if is in fact in , then the sequence is exactly the canonical extension incarnation of the sequence given by of Theorem 3.7.
Lemma 5.3**.**
The following properties hold for the sequences as defined above:
- (a)
* implies for all and ;* 2. (b)
* for all .*
Proof.
Define for all . Also, define for odd and for even then we have, for all , and similarly for the . Proceeding by induction on , we suppose (a) holds for and that . Note that since , we have for all . Also, by the induction hypothesis , and thus we have
[TABLE]
That is, as required.
For (b), again the case is clear by definition and we suppose . Then we have
[TABLE]
Now applying Proposition 4.1(c) and then Proposition 5.1, we obtain
[TABLE]
Now given , since is directed, there is with . By Lemma 5.3(a) we have . Combining this with the fact that we obtain
[TABLE]
and thus
[TABLE]
We are now ready to state and prove our main theorem.
Theorem 5.4**.**
Let be a Boolean algebra, a directed partially ordered set, an indexed family of meet-semilattices, and an indexed family of adjunctions satisfying (D.1) and (D.2), that is:
- (D.1)
* for all with ;* 2. (D.2)
* is a bounded sublattice of .*
For each , define
[TABLE]
[TABLE]
If , then, there is and an so that, for each with we have
[TABLE]
Note that for the fact that the first line of the conclusion holds is precisely the canonical extension reformulation of Theorem 3.7. See also Remark 5.2. The fact that the second line holds is the content of the following lemma.
Lemma 5.5**.**
Let and be such that and . Suppose . Then there is an so that, for each with we have .
Proof.
Since both and are below we have , or equivalently, . Now by Lemma 5.3(b) we have and by compactness there is an so that for all with we have , or equivalently, . Now, for each with
[TABLE]
Consequently, for each with we have . Now, since , and thus, , using also the inequality given by Lemma 5.3(a), we may deduce
[TABLE]
It then follows that for all with we have
[TABLE]
Remark 5.6**.**
Notice that Corollary 3.10 could also be seen as a consequence of Theorem 5.4. Let be any bounded distributive lattice, its Booleanization. For each finite bounded sublattice of , the embedding has an upper adjoint given by and this is a directed collection of adjunctions to which Theorem 5.4 applies thus yielding Corollary 3.10. In fact, in this way, we obtain more information as we see that the minimum length chain in is equal to the minimum length chain in , or equivalently, in the lattice of closed upsets of the dual space of . In turn, this is the same as the maximum length of difference chains in the dual with respect to the clopen corresponding to the given element.
In Section 7 we will give an application of the following consequence of Theorem 5.4, which needs its full generality.
Corollary 5.7**.**
Let be a Boolean algebra, a directed partially ordered set, a family of meet-semilattices and an indexed family of adjunctions satisfying conditions (D.1) and (D.2). We denote by the bounded distributive lattice . Let be a Boolean subalgebra closed under each of the closure operators for . Then,
[TABLE]
where we view the Booleanization of any sublattice of as the Boolean subalgebra of that it generates.
Proof.
Since is contained in both of the Boolean algebras (also viewed as a subalgebra of ) and , the Booleanization of is contained in their intersection.
For the converse, let . By Theorem 5.4, there exists an index so that can be written as a difference chain
[TABLE]
where , and , for . But then, by hypothesis it follows that is a chain in . Thus, belongs to . ∎
Remark 5.8**.**
We remark that the closure of under the closure operators for implies that there is a family of adjunctions obtained by considering the restrictions and of and , respectively. Notice that the closure of under implies that maps into as it is defined. Also, since upper adjoints preserve meets, is indeed a meet-semilattice. Finally, is the bounded distributive lattice . Indeed, by definition of we have and thus
[TABLE]
Notice that we also have . The right-to-left inclusion is trivial. Conversely, let , say for some . Then, we have , where the second equality is well-known to hold for every adjoint pair . Therefore, it follows that
[TABLE]
We give an example to show that the conclusion of Corollary 5.7 is by no means true in general.
Example 5.9**.**
Let be the eight element Boolean algebra. Further, let be the bounded sublattice generated by and and let be the Boolean subalgebra generated by . Then is, up to isomorphism, the Booleanization of , and thus , whereas is the two-element Boolean subalgebra of .
In order to formulate the application to the theory of formal languages, we will need some concepts from logic on words.
6 Preliminaries on formal languages and logic on
words
Formal languages
An alphabet is a finite set , a word over is an element of the free -generated monoid , and a language is a set of words over some alphabet. For a word , we use to denote the length of , that is, if with each , then we have . Given a homomorphism into a finite monoid , we say that a language is recognized by if and only if there is a subset such that , or equivalently, if . The language is recognized by a finite monoid provided there is a homomorphism into recognizing . Finally, a language is said to be regular if it is recognized by some finite monoid. Notice that the set of all regular languages forms a Boolean algebra. Indeed, if a language is recognized by a given finite monoid then so is its complement, and if and are recognized, respectively, by and , then and are both recognized by the Cartesian product .
We present a technical result that will be used in Section 7. Given a monoid , its powerset is a monoid when equipped with pointwise multiplication, that is, for subsets , we define
[TABLE]
It is easy to see that the preimage of a language recognized by under a homomorphism between free monoids is again recognized by . This is not the case for direct images. However, the forward image under a length-preserving homomorphism between free monoids (i.e., a homomorphism mapping letters to letters) of a language recognized by is recognized by [21, Theorem 2.2]. This is an instance of the fact that modal algebras are dual to co-algebras for the Vietoris monad, enriched in the category of monoids, see [1]. However, since this finitary instance is quite simple to derive, for completeness, we include a proof. For a subset , we denote
[TABLE]
Lemma 6.1**.**
Let and be homomorphisms, with length-preserving. Then, the map defined by is also a homomorphism. Moreover, for every , the equality holds. In particular, if is a language recognized by , then is recognized by .
Proof.
We first show that is a homomorphism. Let . Then, by definition, an element belongs to if and only if there exists such that . Since is length-preserving, there is a unique factorization of , say , satisfying and . Therefore, . The converse inclusion is trivial (in fact, it holds for every homomorphism between any two monoids).
Now, let and . We may deduce the following:
[TABLE]
Thus, as claimed. ∎
Corollary 6.2**.**
Let and be alphabets and a length-preserving homomorphism. Then the forward image under of a regular language over is a regular language over .
We are mostly interested in languages that are defined by first-order formulas of logic on words. Accordingly, we now introduce this logic.
Syntax of first-order logic on words
Fix an alphabet . We denote first-order variables by . First-order formulas are inductively built as follows. For each letter , we consider a letter predicate, also denoted by , which is unary. Thus, for any variable , is an (atomic) formula. A -ary numerical predicate is a function satisfying for every . That is, is an element of the Boolean algebra . When we fix a set of numerical predicates, we will assume it forms a Boolean subalgebra of . Each -ary numerical predicate and any sequence of first-order variables define an (atomic) formula . Finally, Boolean combinations of formulas are formulas, and if is a formula and are distinct variables, then is a formula. In order to simplify the notation, we usually also consider the quantifier : the formula is an abbreviation for . As usual in logic, we say that a variable occurs freely in a formula provided it is not in the scope of a quantifier, and a formula is said to be a sentence provided it has no free variables. Quantifier-free formulas are those that are Boolean combinations of atomic formulas.
Semantics of first-order logic on words
Let us fix an alphabet and a set of numerical predicates . To each non-empty word with , we associate the relational structure , given by the interpretation , for each , and , for each . Models of first-order sentences are words, while models of formulas with free variables are the so-called structures. For a list of distinct variables , an -structure is a map for some word , where denotes the underlying set of . We identify maps from to with -tuples . With a slight abuse of notation we write for the set of all such maps. Given a word and a vector , we denote by the -structure mapping to , for . Moreover, if and are disjoint lists of variables, and , then denotes the -structure , where and . The set of all -structures is denoted by . Finally, the set of models of a formula having free variables in is defined classically. For further details concerning logic on words, see [22, Chapter II]. The next example should help in understanding the semantics of first-order logic on an intuitive level.
Example 6.3**.**
The sentence is read: “there are positions and such that , there is an at position , and there is a at position ”. Thus, defines the language .
Formulas will always be considered up to semantic equivalence, even if not explicitly said. We denote by the set of all first-order sentences with arbitrary numerical predicates (up to semantic equivalence). For a set of numerical predicates, denotes the set of first-order sentences using numerical predicates from . Notice that, as a Boolean algebra, is naturally equipped with a partial order, which in turn may be characterized in terms of semantic containment: if and only if . Finally, for a subset of sentences , we use to denote the set of languages . In particular, this yields an embedding of Boolean algebras .
Universal quantifiers as adjoints
Again, we fix a finite alphabet and a set of variables . We consider the projection map given by
[TABLE]
This gives rise, via the duality between sets and complete and atomic Boolean algebras, to the complete embedding of Boolean algebras
[TABLE]
This embedding, being a complete homomorphism between complete lattices, has an upper adjoint which we may call (and a lower adjoint ). These are given by
[TABLE]
and similarly
[TABLE]
As is well-known in categorical logic, and are the semantic incarnations of the classical universal and existential quantifiers, respectively. Explicitly, in the case of the universal quantifier, when is definable by a formula , we have
[TABLE]
Recognition of languages of structures
We fix a list of distinct variables . Then, is isomorphic to the powerset . There is a natural embedding of the set of all -structures into the free monoid . Indeed, to an -structure , where , we may assign the word , where with each and, for , . It is not hard to see that this mapping defines an injection . Moreover, an element of represents an -structure under this embedding precisely when forms a partition of . From hereon, we view as a subset of without further mention.
The identification enables us to extend the notion of recognition to languages of structures as follows. Given , we say that is recognized by a homomorphism if and only if there is such that , and we say that is recognized by a monoid if there is a homomorphism recognizing . Accordingly, a language of structures is regular provided it is recognized by a finite monoid.
An important observation and a well-known fact in logic on words is that, as a language over the alphabet , the set of all -structures, , is a regular language. To simplify the notation, take and let be the three-element monoid satisfying . Then, the unique homomorphism satisfying and recognizes via . The general case is handled in a similar manner. This provides a shortcut for proving regularity for languages of structures.
Proposition 6.4**.**
Let be a language of structures. Then is regular if and only if there exists a monoid homomorphism into a finite monoid and a subset with .
Proof.
If is regular, then there exists a monoid homomorphism onto a finite monoid and a subset with . Thus, in particular, . Conversely, suppose there exists a monoid homomorphism onto a finite monoid and a subset with . Now, let be the monoid homomorphism onto a finite monoid, which recognizes the set of all structures, and let be so that . Then the product map recognizes using the subset . And we conclude that is regular. ∎
Quantifier-free formulas
We now provide an algebraic characterization of languages definable by quantifier-free formulas. Consider a fixed list of distinct variables . We want a characterization of the languages of the form for a quantifier-free formula whose free variables are in . We first provide a set theoretic characterization of these languages. For this purpose, we say that is set theoretically recognized by provided there is a subset with .
For a vector of letters , we denote by the conjunction . If is a word and , then we denote by the unique vector for which . That is, if with each and , then .
Lemma 6.5**.**
Let . Then, is given by a quantifier-free first-order formula over if and only if is it set theoretically recognized by the map
[TABLE]
Proof.
Let . For each and , let
[TABLE]
Then is a (-ary) numerical predicate for each and it is not difficult to see that for
[TABLE]
On the other hand, for and
[TABLE]
and for an -ary numerical predicate and a list of (not necessarily distinct) variables with , we have
[TABLE]
where is the -ary numerical predicate given by
[TABLE]
where if and only if . ∎
Observe that the above proof implies that the quantifier-free formulas with free variables in form a complete Boolean algebra (isomorphic to a powerset Boolean algebra) and that each of these quantifier-free formulas may be written as a finite disjunction of formulas of the very special form .
Now, to obtain an algebraic characterization, let be a new symbol and denote . We consider the length-preserving homomorphism given by
[TABLE]
Notice that, given -structures and , we have
[TABLE]
Using this observation, it is straightforward to show:
Lemma 6.6**.**
The following diagrams are well defined and commute
(A\times 2^{\bf x})^{*}$$(A_{\varepsilon}\times 2^{\bf x})^{*}$$A^{*}\otimes{\bf x}$$A_{\varepsilon}^{*}\otimes{\bf x}$$\mathbb{N}^{k+1}\times A^{k}$$\mathbb{N}^{k+1}\times A_{\varepsilon}^{k}$$\Theta_{\bf x}$$\Theta_{\bf x}|_{(\ )\otimes{\bf x}}$$e$$c_{A}$$c_{A_{\varepsilon}}
where is the natural inclusion obtained from the inclusion of in . Furthermore, and the restriction of to is a bijection onto .
As an immediate consequence, we have:
Corollary 6.7**.**
Let be a language. Then, the following are equivalent:
- (a)
* is definable by a quantifier-free formula;* 2. (b)
; 3. (c)
there is a subset such that .
The alternation hierarchy
The so-called alternation hierarchy has been widely considered in the literature and its decidability (beyond ) remains an open problem (see [18]). The hierarchy classifies formulas according to the minimum number of alternations of quantifiers that is needed to express them in prenex-normal formula, that is, in the form
[TABLE]
where is a quantifier-free formula, and if and only if for each . It is a well-known fact that for every first-order formula there is a semantically equivalent one in prenex-normal form. For and a set of numerical predicates , consists of all the sentences of that are semantically equivalent to a sentence of the form (12) where . In particular, we have whenever . Similarly, denotes the set of all sentences that are semantically equivalent to a sentence of the form (12) with , and whenever . It is not hard to see that both and are closed under disjunction and conjunction but not under negation. In other words, and are lattices, but not Boolean algebras. We denote by and by the Boolean algebras generated by and by , respectively, that is,
[TABLE]
Clearly, we have .
In this paper we are only concerned with the first level of this hierarchy. For notational convenience, we will work with the fragment , although everything we prove for admits a dual statement for . We use to denote both the subset of defining regular languages, and the subset of numerical predicates for which the associated language of structures , where is a list of distinct variables of the same length as the arity of , is regular over the alphabet as discussed under recognition of languages of structures. For , it is an open problem to determine whether the following equality holds:
[TABLE]
Using the results of Section 5, we provide an elementary proof of the case , which was first proved in [14].
Every formula of is of the form , for some quantifier-free formula . Inside , we classify formulas according to the size of : we let consist of all equivalence classes of such formulas for which there is a representative for which has variables. We remark that, is closed under conjunction, since the formulas and are semantically equivalent. However, in general, fails to be closed under disjunction.
Example 6.8**.**
Let and . Then, defines the language , while defines the language and thus these are both in . The disjunction defines the language , while defines the language . Indeed, one can show that is not in while it is in as witnessed by the sentence .
7 An application to Logic on Words
In this section we combine Corollary 5.7 and Remark 5.8 to prove the equality
[TABLE]
The idea is the following. Combining the fact that universal quantification may be seen as an adjoint and our algebraic characterization of quantifier-free formulas we obtain a directed family of adjunctions on with joint image equal to allowing us to fit into the setting of Theorem 5.4. Finally we show that these adjunction restrict correctly to the regular fragment thus allowing us to apply Corollary 5.7 and Remark 5.8, thereby concluding that (13) holds.
Universal quantification (as an adjoint) and recognition of quantifier-free formulas are based on the following two maps, respectively
[TABLE]
Dually this gives rise to
[TABLE]
In particular, we have a (correct) composition of adjunctions as follows
[TABLE]
That is,
[TABLE]
is an adjunction and, combining quantification as adjunction with the description of quantifier free formulas in Corollary 6.7(c), we have is in if and only if for some . That is, is an adjunction with associated closure operator
[TABLE]
and . Accordingly, we are in the situation of Theorem 5.4 with
[TABLE]
We now aim to apply Corollary 5.7 with , the Boolean algebra of all regular languages over the alphabet . This is possible given the following fact.
Lemma 7.1**.**
For each , if is regular, then so is .
Proof.
Fix and suppose is regular. We proceed through the four maps whose composition defines .
Claim 1. is regular.
Note that if is a finite monoid recognizing , then composed with , where is the homomorphism extending the projection of onto , recognizes once we restrict to structures. By Proposition 6.4 it follows that is regular.
Claim 2. is regular.
Here we note that is a length-preserving homomorphism so that regular implies is regular by Corollary 6.2.
Claim 3. is regular.
This is immediate as the inverse image with respect to a homomorphism between free monoids of a regular language is always regular: If is recognized by then the composition recognizes .
Claim 4. is regular.
As observed in Section 6, the upper adjoint is given by where is the restriction of to structures. It follows that . Now, since is regular, is also regular and is regular. Further, noting that is a length-preserving monoid homomorphism, it follows by Corollary 6.2 that is regular. Finally, we conclude that its complement is regular as required. ∎
As a consequence, Corollary 5.7 applies and we obtain:
Corollary 7.2**.**
Considering each of the following Booleanizations as subalgebras of , we have
[TABLE]
Finally, applying Remark 5.8 in this particular case, we see that
[TABLE]
The languages in are exactly the languages for regular. By the proof of Lemma 7.1, we have that where , and, by Claim 2 in particular, we have that is regular. That is, where the atomic formula is regular, or equivalently, .
On the other hand if is an atomic formula that is regular, then the arguments in Claims 3 and 4 show that is regular. Thus
[TABLE]
and we have
[TABLE]
Since we consider logical formulas up to semantic equivalence, we obtain the desired result:
Theorem 7.3**.**
The following equality holds:
[TABLE]
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] C. Borlido and M. Gehrke. A note on powers of Boolean spaces with internal semigroups. Ar Xiv e-prints , page ar Xiv:1811.12339, November 2018.
- 2[2] O. Carton, D. Perrin, and J.-É. Pin. A survey on difference hierarchies of regular languages. Logical Methods in Computer Science 14(1), 2017.
- 3[3] C. C. Chen. Free Boolean extensions of distributive lattices. Nanta Math. , 1:1–14, 1966/1967.
- 4[4] B. A. Davey and H. A. Priestley. Introduction to Lattices and Order, 2nd edition . Cambridge University Press, 2002.
- 5[5] L. L. Èsakia. Topological Kripke models. Dokl. Akad. Nauk SSSR , 214:298–301, 1974.
- 6[6] L. L. Èsakia. Heyting algebras: Duality theory . “Metsniereba”, Tbilisi, 1985. (in Russian).
- 7[7] M. Gehrke. Canonical extensions, Esakia spaces, and universal models. In Leo Esakia on duality in modal and intuitionistic logics , volume 4 of Outst. Contrib. Log. , pages 9–41. Springer, Dordrecht, 2014.
- 8[8] M. Gehrke and B. Jónsson. Bounded distributive lattices expansions. Mathematica Scandinavica , 94(2):13–45, 2004.
