Separation and Renaming in Nominal Sets
Joshua Moerman, Jurriaan Rot

TL;DR
This paper introduces separated nominal automata, which are exponentially smaller than classical ones, by relating nominal sets to nominal renaming sets through categorical adjunctions and substitution-based semantics.
Contribution
It establishes a categorical connection between nominal sets and nominal renaming sets and defines separated nominal automata with potential size advantages.
Findings
Separated nominal automata can be exponentially smaller than classical automata.
The categorical adjunction relates separated product to Cartesian product.
Semantics closed under substitutions enables size reduction.
Abstract
Nominal sets provide a foundation for reasoning about names. They are used primarily in syntax with binders, but also, e.g., to model automata over infinite alphabets. In this paper, nominal sets are related to nominal renaming sets, which involve arbitrary substitutions rather than permutations, through a categorical adjunction. In particular, the left adjoint relates the separated product of nominal sets to the Cartesian product of nominal renaming sets. Based on these results, we define the new notion of separated nominal automata. These automata can be exponentially smaller than classical nominal automata, if the semantics is closed under substitutions.
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.
Separation and Renaming in Nominal Sets
Joshua Moerman This research has been partially funded by the ERC AdG project 787914 FRAPPANT. RWTH Aachen, Germany, [email protected]
Jurriaan Rot Also affiliated to Radboud University. The research of this author received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie Grant Agreement No. 795119. University College London, UK, [email protected]
Abstract
Nominal sets provide a foundation for reasoning about names. They are used primarily in syntax with binders, but also, e.g., to model automata over infinite alphabets. In this paper, nominal sets are related to nominal renaming sets, which involve arbitrary substitutions rather than permutations, through a categorical adjunction. In particular, the left adjoint relates the separated product of nominal sets to the Cartesian product of nominal renaming sets. Based on these results, we define the new notion of separated nominal automata. These automata can be exponentially smaller than classical nominal automata, if the semantics is closed under substitutions.
1 Introduction
Nominal sets are abstract sets which allow one to reason over sets with names, in terms of permutations and symmetries. Since their introduction in computer science [10], they have been widely used for implementing and reasoning over syntax with binders [19]. Further, nominal techniques have been related to computability theory [4] and automata theory [3], where they provide an elegant means of studying languages over infinite alphabets. This embeds nominal techniques in a broader setting of symmetry aware computation [21].
Gabbay, one of the pioneers of nominal techniques described a variation on the theme: nominal renaming sets [8, 9]. Nominal renaming sets are equipped with a monoid action of arbitrary (possibly non-injective) substitution of names, in contrast to nominal sets, which only involve a group action of permutations.
In this paper, we systematically relate nominal renaming sets to nominal sets. We start by establishing a categorical adjunction (Section 3):
[TABLE]
where is the usual category of nominal sets and the category of nominal renaming sets. The right adjoint simply forgets the action of non-injective substitutions. The left adjoint freely extends a nominal set with elements representing the application of such substitutions. For instance, maps the nominal set of all words consisting of distinct atoms to the nominal renaming set consisting of all words over the atoms.
In fact, the latter follows from one of the main results of this paper: maps the separated product of nominal sets to the Cartesian product of nominal renaming sets. Additionally, under certain conditions, maps the exponent to the magic wand , which is the right adjoint of the separated product. The separated product consists of those pairs whose elements have disjoint supports. This is relevant for name abstraction [19], and has also been studied in the setting of presheaf categories, aimed towards separation logic [18].
We apply these connections between nominal sets and renaming sets in the context of automata theory. Nominal automata are expressively equivalent to the more classical register automata [2], and have appealing properties that register automata lack, such as unique minimal automata. However, moving from register automata to nominal automata can lead to an exponential blow-up in the number of states.111Here ‘number of states’ refers to the number of orbits in the state space.
As a motivating example, we consider a language modelling an -bounded FIFO queue. The input alphabet is given by , and the output alphabet by (here, is a null value). The (generalised) language maps a sequence of queue operations to the resulting top element when starting from the empty queue, or to if this is undefined. The language can be recognised by a nominal (Moore) automaton, but this requires an exponential number of states in , as the automaton distinguishes internally between all possible equalities among elements in the queue [17].
Based on the observation that is closed under substitutions, we can come up with a linear automata-theoretic representation. To this end, we define the new notion of separated nominal automaton, where the transition function is only defined for pairs of states and letters with a disjoint support (Section 4). Using the aforementioned categorical framework, we can go back and forth between languages from separated automata and languages which are closed under substitutions. In the FIFO example, the separated automaton obtained from the original nominal automaton has only states, thus dramatically reducing the number of states. We expect that such a reduction is useful in many applications, such as automata learning [17].
2 Monoid actions and nominal sets
In order to capture both the standard notion of nominal sets [19] and sets with more general renaming actions [9], we start by defining monoid actions.
Definition 1**.**
Let be a monoid. An -set is a set together with a function such that and for all and . The function is called an -action and is often written by juxtaposition . A function between two -sets is -equivariant if for all and . The class of -sets together with equivariant maps forms a category .
Let be a countable infinite set of atoms. The two main instances of considered in this paper are the monoid
[TABLE]
of all (finite) substitutions (with composition as multiplication), and the monoid
[TABLE]
of all (finite) permutations. Since is a submonoid of , any -set is also a -set; and any -equivariant map is also -equivariant. This gives rise to a forgetful functor
[TABLE]
The set is an -set by defining . Given an -set , the set of subsets of is an -set, with the action defined by direct image.
For a -set , the orbit of an element is the set . We say is orbit-finite if the set is finite.
For any monoid , the category is symmetric monoidal closed. The product of two -sets is given by the Cartesian product, with the action defined pointwise: . In , the exponent is given by the set .222If we write a regular arrow , then we mean a map in the category. Exponent objects will always be denoted by annotated arrows. The action on such an is defined by . A good introduction to the construction of the exponent is given by Simmons [25]. If is a group, a simpler description of the exponent may be given, carried by the set of all functions , with the action given by .
2.1 Nominal -sets
The notion of nominal set is usually defined w.r.t. a -action. Here, we use the generalisation to -actions from [9]. Throughout this section, let denote a submonoid of .
Definition 2**.**
Let be an -set, and an element. A set is an ()-support of if for all s.t. we have . An -set is called nominal if every element has a finite -support.
Nominal -sets and equivariant maps form a full subcategory of , denoted by . The -set of atoms is nominal. The powerset of a nominal set is not nominal in general; the restriction to finitely supported elements is.
If is a group, then the notion of support can be simplified by using inverses. To see this, first note that, given elements , can equivalently be written as . Second, the statement can be expressed as . Hence, is a support iff implies for all , which is the standard definition for nominal sets over a group [3, 19]. Surprisingly, a similar characterisation also holds for -sets [9]. Moreover, recall that every -set is also a -set; the associated notions of support coincide on nominal -sets, as shown by the following result. In particular, this means that the forgetful functor (1) restricts to .
Lemma 1**.**
[8*, Theorem 4.8]**
Let be a nominal -set, , and . Then is an -support of iff it is a -support of .*
Remark 1*.*
It is not true that any -support is an -support. The condition that is nominal, in the above lemma, is crucial. Let and define the following -action: if is injective, if is non-injective, and . This is a well-defined -set, but is not nominal. Now consider , this is the -set with the natural action, which is a nominal -set! In particular, as a -set each element has a finite support, but as a -set the supports are infinite.
This counterexample is similar to the “exploding nominal sets” in [8], but even worse behaved. We like to call them nuclear sets, since an element will collapse when hit by a non-injective map, no matter how far away the non-injectivity occurs.
For , any element of a nominal -set has a least finite support (w.r.t. set inclusion). We denote the least finite support of an element by . Note that by Lemma 1, the set is independent of whether a nominal -set is viewed as an -set or a -set. The dimension of is given by , where is the cardinality of .
We list some basic properties of nominal -sets, which have known counterparts for the case that is a group [3], and when [9].
Lemma 2**.**
Let be an -nominal set. If supports an element , then supports for all . Moreover, any preserves least supports: .
The latter equality does not hold in general for a monoid . For instance, the ‘exploding’ nominal renaming sets [9] give counterexamples for .
Lemma 3**.**
Given -nominal sets and a map , if is -equivariant and supports an element , then supports .
The category is symmetric monoidal closed, with the product inherited from , thus simply given by Cartesian product. The exponent is given by the restriction of the exponent in to the set of finitely supported functions, denoted by . This is similar to the exponents of nominal sets with 01-substitutions from [20].
Remark 2*.*
In [9] a different presentation of the exponent in is given, based on a certain extension of partial functions. We prefer the previous characterisation, as it is derived in a straightforward way from the exponent in .
2.2 Separated product
Definition 3**.**
Two elements of a -nominal set are called separated, denoted by , if there are disjoint sets such that supports and supports . The separated product of -nominal sets and is defined as
[TABLE]
We extend the separated product to the separated power, defined by and , and the set of separated words . The separated product is an equivariant subset . Consequently, we have equivariant projection maps and .
Example 1*.*
Two finite sets are separated precisely when they are disjoint. An important example is the set of separated words over the atoms: it consists of those words where all letters are distinct.
The separated product gives rise to another symmetric closed monoidal structure on , with as unit, and the exponential object given by magic wand . An explicit characterisation of is not needed in the remainder of this paper, but for a complete presentation we briefly recall the description from [23] (see also [19] and [5]). First, define a -action on the set of partial functions by if is defined. Now, such a partial function is called separating if is finitely supported, is defined iff , and . Finally, . See [23] for a proof and explanation.
Remark 3*.*
The special case coincides with , the set of name abstractions [19]. The latter is generalised to in [7]. In [5] it is shown that the coincidence only holds under strong assumptions (including that is single-orbit).
Remark 4*.*
An analogue of the separated product does not seem to exist for nominal -sets. For instance, consider the set . As a -set, it has four equivariant subsets: , , and . However, the set is not an equivariant subset when considering as an -set.
3 A monoidal construction from -sets to -sets
In this section, we provide a free construction, extending nominal -sets to nominal -sets. We use this as a basis to relate the separated product and exponent (in ) to the product and exponent in . The main results are:
Theorem 1: the forgetful functor has a left adjoint ; 2. 2.
Theorem 2: this is monoidal: it maps separated products to products; 3. 3.
Theorem 3 and Corollary 3: maps the exponent object in to the right adjoint of the separated product, if the domain has dimension smaller or equal to .
Together, these results form the categorical infrastructure to relate nominal languages to separated languages and automata in Section 4.
Definition 4**.**
Given a -nominal set , we define a nominal -set as follows. Define the set
[TABLE]
where is the least equivalence relation containing:
[TABLE]
for all , and . Note that , i.e., simply the monoid operation of . The equivalence class of a pair is denoted by . We define an -action on as .
Well-definedness is proved as part of Proposition 1 below. Informally, an equivalence class behaves “as if acted on ”. The first equation (2) ensures compatibility with the -action on , and the second equation (3) ensures that only depends the relevant part of .
Example 2*.*
Here are a few examples of the application of . We do not give direct proofs, but the first two will be treated more systematically later in this section (see Corollary 2). For the third, note that consist of two orbits, and the diagonal .
- •
.
- •
.
- •
.
The following characterisation of is useful in proofs. (This lemma is proven in the Appendix.)
Lemma 4**.**
We have iff there is a permutation such that and , for some -support of .
Remark 5*.*
The first relation (2) in Definition 4 comes from the construction of “extension of scalars” in commutative algebra [1]. In that context, one has a ring homomorphism and an -module and wishes to obtain a -module. This is constructed by the tensor product and it is here that the relation is used ( is a right -module via ).
Proposition 1**.**
The construction in Definition 4 extends to a functor
[TABLE]
defined on an equivariant map by .
Proof.
We first prove well-definedness and then the functoriality.
** is an -set.** To this end we check that the -action is well-defined. Let and let . By Lemma 4, there is some permutation such that and for some support of . By post-composition with we get , which means (again by the lemma) that . Thus , which concludes well-definedness.
For associativity and unitality of the -action, we simply note that it is directly defined by left multiplication of which is associative and unital. This concludes that is an -set.
** is a nominal set.** Given an element and a -support of , we will prove that is an -support for . Suppose that we have such that . By pre-composition with we get and this leads us to conclude . So as required.
Functoriality. Let be a -equivariant map. To see that is well-defined consider . By Lemma 4, there is a permutation such that and for some support of . Applying gives on one hand and on the other hand (we used equivariance in the second step). Since and preserves supports we have .
For -equivariance we consider both and . This shows that and concludes that we have a map .
The fact that preserves the identity function and composition follows from the definition directly. ∎
Theorem 1**.**
The functor is left adjoint to :
[TABLE]
Proof.
We show that, for every nominal set , there is a map with the necessary universal property: for every -equivariant there is a unique -equivariant map such that . Define by . This is equivariant: . Now, for , define for and . Then .
To show that is well-defined, consider (we have to prove that ). By Lemma 4, there is a such that and for a -support of . Now is also a -support for and hence it is an -support of (Lemma 1). We conclude that (we use -equivariance in the one but last step and -support in the last step). Finally, -equivariance of and uniqueness are straightforward calculations (see Appendix). ∎
The counit is defined by . For the inverse of , let be an -equivariant map; then is given by . Note that the unit is a -equivariant map, hence it preserves supports (i.e., any support of also supports ). This also means that if is a support of , then is a support of (by Lemma 2).
3.1 On (separated) products
The functor not only preserves coproducts, being a left adjoint, but it also maps the separated product to products:
Theorem 2**.**
The functor is strong monoidal, from the monoidal category to . In particular, the map given by
[TABLE]
is an isomorphism, natural in and .
Proof.
We prove that is an isomorphism. It suffices to show that is injective and surjective (Lemma 10). Note that .
Surjectivity. Let be an element of . We take an element such that and for some . Now we have an element . By Lemma 2, we have . Define the map
[TABLE]
(Observe that , so the cases are not overlapping.) The map is an element of . Now consider the element . Applying to gives the element . First, we note that by the definition of . Second, we show that . Observe that by definition of . Since is a support of , we have , and since we are done. Hence , so is surjective.
Injectivity. Let and be two elements. Suppose that they are mapped to the same element, i.e., and . Then there are permutations such that and . Moreover, let and ; then we have and . In order to show the two original elements are equal, we have to provide a single permutation . Define for, ,
[TABLE]
(Again, and are disjoint.) The function is injective since the least supports of and are disjoint. Hence defines a local isomorphism from to . By homogeneity [19], the map extends to a permutation with for and for . In particular we get . We also obtain . This proves that , and so the map is injective.
Unit and coherence. To show that preserves the unit, we note that for every , as the empty set supports and so vacuously holds. We conclude is a singleton. ∎
Since also preserves coproducts (being a left adjoint), we obtain that maps the set of separated words to the set of all words.
Corollary 1**.**
For any -nominal set , we have .
As we will show below, the functor preserves the set of atoms. This is an instance of a more general result about preservation of one-dimensional objects.
Proposition 2**.**
The functors and are equivalences on -dimensional objects. Concretely, for and :
If , then the unit is an isomorphism. 2. 2.
If , then the co-unit is an isomorphism.
Before we prove this proposition, we need the following technical property of -dimensional -sets.
Lemma 5**.**
Let be a nominal -set. If an element is supported by a singleton set (or even the empty set), then
[TABLE]
Proof.
Let be supported by and let . Now consider and the bijection . Now , meaning that . So the set is contained in . The inclusion the other way is trivial, which means . ∎
Proof of Proposition 2.
It is easy to see that is injective. Now to see that is surjective, let and consider a support of (this is a singleton or empty since ). Let and consider the swap . Now and note that supports and . We continue with , which concludes that is the preimage of . Hence is an isomorphism.
To see that is surjective, just consider . To see that is injective, let be two elements such that . Then by using Lemma 5 we find such that . This means that and are in the same orbit (of ) and have the same dimension. Case 1: , then . Case 2: and , then (Lemma 2). In particular we now now that and map to , likewise and map to . Now , where we used in the last step. This means that is injective and hence an isomorphism. ∎
By Proposition 2, we may consider the set as both -set and -set (abusing notation). And we get an isomorphism of nominal -sets. To appreciate the above results, we give a concrete characterisation of one-dimensional nominal sets:
Lemma 6**.**
Let be a nominal -set, for . Then iff there exist (discrete) sets and such that .
In particular, the one-dimensional objects include the alphabets used for data words, consisting of a product of a discrete set of action labels and the set of atoms. These alphabets are very common in the study of register automata (see, e.g., [12]).
By the above and Theorem 2, maps separated powers of to powers, and the set of separated words over to the -set of words over .
Corollary 2**.**
We have and .
3.2 On exponents
We have described how and interact with (separated) products. In this section, we establish a relationship between the magic wand () and the exponent of nominal -sets ().
Definition 5**.**
Let and . We define a -equivariant map as follows:
[TABLE]
is defined by using the composition
[TABLE]
where is from Theorem 2 and is the evaluation map of the exponent . By Currying and the adjunction, we obtain :
by Currying
by Theorem 1
With this map we can prove a generalisation of Theorem 1. In particular, the following theorem generalises the one-to-one correspondence between maps and maps . First, it shows that this correspondence is -equivariant. Second, it extends the correspondence to all finitely supported maps and not just the equivariant ones.
Theorem 3**.**
The sets and are naturally isomorphic via as nominal -sets.
Proof.
We define some additional maps in order to construct the inverse of . First, from Theorem 1 we get the following isomorphism:
[TABLE]
Second, with this map and Currying, we obtain the following two natural maps:
by Currying
by Currying
Last, we note that the inclusion induces a restriction map (again by Currying). A calculation shows that is the inverse of (see Appendix). ∎
Note that this theorem gives an alternative characterisation of the magic wand in terms of the exponent in , if the codomain is . Moreover, for a -dimensional object in , we obtain the following special case of the theorem (using the co-unit isomorphism from Proposition 2):
Corollary 3**.**
Let be nominal -sets. For -dimensional , the nominal -set is naturally isomorphic to .
Remark 6*.*
The set coincides with the atom abstraction (Remark 3). Hence, as a special case of Corollary 3, we recover [9, Theorem 34], which states a bijective correspondence between and .
4 Nominal and separated automata
In this section, we study nominal (Moore) automata, which recognise languages over infinite alphabets. After recalling the basic definitions, we introduce a new variant of automata based on the separating product, which we call separated nominal automata. These automata represent nominal languages which are -equivariant, essentially meaning they are closed under substitution. Our main result is that, if a ‘classical’ nominal automaton (over ) represents a language which is -equivariant, then can also be represented by a separated nominal automaton. The latter can be exponentially smaller (in number of orbits) than the original automaton, as we show in a concrete example.
Remark 7*.*
We will work with a general output set instead of just acceptance. The reason for this is that -equivariant functions are not very interesting: they are defined purely by the length of the input. By using more general output , we may still capture interesting behaviour, e.g., the language in Example 3.
Definition 6**.**
Let be -sets, called input/output alphabet respectively.
- •
A ()-nominal language is an equivariant map of the form .
- •
A nominal (Moore) automaton consists of a nominal set of states , an equivariant transition function , an equivariant output function , and an initial state with an empty support.
- •
The language semantics is the map , defined inductively by
[TABLE]
for all , and .
- •
For the transpose of , we have that is equivariant; this is called the language accepted by .
Note that the language accepted by an automaton can equivalently be characterised by considering paths through the automaton from the initial state.
If the state space and the alphabets are orbit finite, this allows us to run algorithms (reachability, minimization, etc.) on such automata [3], but there is no need to assume this for now. For an automaton , we define the set of reachable states as the least set such that and for all and , .
Example 3*.*
We model a bounded FIFO queue of size as a nominal Moore automaton, explicitly handling the data in the automaton structure.333We use a reactive version of the queue data structure which is slightly different from the versions in [17, 12]. The input alphabet and output alphabet are as follows:
[TABLE]
The input alphabet encodes two actions: putting a new value on the queue and popping a value. The output is either a value (the front of the queue) or if the queue is empty. A queue of size is modelled by the automaton defined as follows.
[TABLE]
[TABLE]
The automaton is depicted in Figure 1 for the case . The language accepted by this automaton assigns to a word the first element of the queue after executing the instructions in from left to right, and if the input is ill-behaved, i.e., Pop is applied to an empty queue or to a full queue.
Definition 7**.**
Let be -sets. A separated language is an equivariant map of the form . A separated automaton consists of , and defined as in a nominal automaton, and an equivariant transition function .
The separated language semantics of such an automaton is given by the map , defined by
[TABLE]
for all , and such that and .
Let be the transpose of . Then corresponds to a separated language, this is called the separated language accepted by .
By definition of the separated product, the transition function is only defined on a state and letter if . In Example 4 below, we describe the bounded FIFO as a separated automaton, and describe its accepted language.
First, we show how the language semantics of separated nominal automata extends to a language over all words, provided that both the input alphabet and the output alphabet are -sets.
Definition 8**.**
Let and be nominal -sets. An -equivariant function is called an -language.
Notice the difference between an -language and a -language . They are both functions from to , but the latter is only -equivariant, while the former satisfies the stronger property of -equivariance. Languages over separated words, and -languages, are connected as follows.
Proposition 3**.**
Suppose are both nominal -sets, and suppose . There is a one-to-one correspondence
[TABLE]
between separated languages and -nominal languages. From to , this is given by application of the forgetful functor and restricting to the subset of separated words.
For the converse direction, given , let such that for all , and for all with . Define by
[TABLE]
Then .
Proof.
There is the following chain of one-to-one correspondences, from the results of the previous section:
by Theorem 1
by Corollary 1
by Proposition 2
∎
Thus, every separated automaton over gives rise to an -language , corresponding to the language accepted by the automaton.
Any nominal automaton restricts to a separated automaton, formally described in Definition 9. It turns out that if the -language accepted by is actually an -language, then the restricted automaton already represents this language, as the extension of the associated separated language (Proposition 4). Hence, in such a case, the restricted separated automaton suffices to describe the language of .
Definition 9**.**
Let be the natural inclusion map. A nominal automaton induces a separated automaton , by setting .
Proposition 4**.**
Suppose are both -sets, and suppose . Let be the -nominal language accepted by a nominal automaton , and suppose is -equivariant. Let be the separated language accepted by . Then .
Proof.
It follows from the one-to-one correspondence in Proposition 3: on the bottom there are two languages ( and ), while there is only the restriction of on the top. We conclude that . ∎
As we will see in Example 4, separated automata allow us to represent -languages in a much smaller way than nominal automata. Given a nominal automaton , a smaller separated automaton can be obtained by computing the reachable part of the restriction . The reachable part is defined similarly (but only where is defined) and denoted by as well.
Lemma 7**.**
For any nominal automaton , we have .
The converse inclusion of the above proposition does certainly not hold, as shown by the following example.
Example 4*.*
Let be the automaton modelling a bounded FIFO queue (for some ), from Example 3. The -nominal language accepted by is -equivariant: it is closed under application of arbitrary substitutions.
The separated automaton is given simply by restricting the transition function to , i.e., a -transition from a state exists only if does not occur in . The separated language accepted by this new automaton is the restriction of the nominal language of to separated words. By Proposition 4, we have . Hence, the separated automaton represents , essentially by closing the associated separated language under all substitutions.
The reachable part of is given by
[TABLE]
Clearly, restricting to the reachable part does not affect the accepted language. However, while the orginal state space has exponentially many orbits in , has only orbits! Thus, taking the reachable part of yields a separated automaton which represents the FIFO language in a much smaller way than the original automaton.
4.1 Separated automata: coalgebraic perspective
Nominal automata and separated automata can be presented as coalgebras on the category of -nominal sets. In this section we revisit the above results from this perspective, and generalise from (equivariant) languages to finitely supported languages. In particular, we retrieve the extension from separated languages to -languages, by establishing -languages as a final separated automaton. The latter result follows by instantiating a well-known technique for lifting adjunctions to categories of coalgebras, using the results of Section 3. In the remainder of this section we assume familiarity with the theory of coalgebras, see, e.g., [13, 22].
Definition 10**.**
Let be a submonoid of , and let , be nominal -sets, referred to as the input and output alphabet respectively. We define the functor by . An ()-nominal (Moore) automaton is a -coalgebra.
A -coalgebra can be presented as a nominal set together with the pairing
[TABLE]
of an equivariant output function , and (the transpose of) an equivariant transition function . In case , this coincides with the automata of Definition 6, omitting initial states. The language semantics is generalised accordingly, as follows. Given such a -coalgebra , the language semantics is given by
[TABLE]
for all , and .
Proposition 5**.**
Let be a submonoid of , let , be nominal -sets. The nominal -set extends to a final -coalgebra , such that the unique homomorphism from a given -coalgebra is the transpose of the language semantics (4).
A separated automaton (Definition 7, without initial states) corresponds to a coalgebra for the functor given by . The separated language semantics arises by finality.
Proposition 6**.**
The set is the carrier of a final -coalgebra, such that the unique coalgebra homomorphism from a given -coalgebra is the transpose of the separated language semantics (Definition 7).
Next, we provide an alternative description of the final -coalgebra which assigns -nominal languages to states of separated nominal automata. The essence is to obtain a final -coalgebra from the final -coalgebra. In order to prove this, we use a technique to lift adjunctions to categories of coalgebras. This technique occurs regularly in the coalgebraic study of automata [14, 16, 15].
Theorem 4**.**
Let be a -set, and an -set. Define and accordingly, as and . There is an adjunction in:
[TABLE]
where and coincide with and respectively on carriers.
Proof.
There is a natural isomorphism given by
[TABLE]
where is the isomorphism from Theorem 3 and the isomorphism on the right comes from being a right adjoint. The result now follows from Theorem 2.14 in [11]. In particular, . ∎
Since right adjoints preserve limits, and final objects in particular, we obtain the following, giving semantics of separated automata through finality.
Corollary 4**.**
Let be the final -coalgebra (Proposition 5). Then the -coalgebra is final and carried by the set of -nominal languages.
5 Related and future work
Fiore and Turi described a similar adjunction between certain presheaf categories [6]. However, Staton describes in his thesis that the usage of presheaves allows for many degenerate models and one should look at sheaves instead [26]. The category of sheaves is equivalent to the category of nominal sets. Staton transfers the adjunction of Fiore and Turi to the sheaf categories. We conjecture that the adjunction presented in this paper is equivalent, but defined in more elementary means. The monoidal property of , which is crucial for our application in automata, has not been discussed before.
An interesting line of research is the generalisation to other symmetries by Bojańczyk et al. [3]. In particular, the total order symmetry is relevant, since it allows one to compare elements on their order, as often used in data words. In this case the symmetries are given by the group of all monotone bijections. Many results of nominal sets generalise to this symmetry. For monotone substitutions, however, the situation seems more subtle. For example, we note that a substitution which maps two values to the same value actually maps all the values in between to that value. Whether the adjunction from Theorem 1 generalises to other symmetries is left as future work.
This research was motivated by learning nominal automata. If we know a nominal automaton recognises an -language, then we are better off learning a separated automaton directly. From the -semantics of separated automata, it follows that we have a Myhill-Nerode theorem, which means that learning is feasible. We expect that this can be useful, since we can achieve an exponential reduction this way.
Bojańczyk et al. prove that nominal automata are equivalent to register automata in terms of expressiveness [3]. However, when translating from register automata with states to nominal automata, we may get exponentially many orbits. This happens for instance in the FIFO automaton (Example 3). We have shown that the exponential blow-up is avoidable by using separated automata, for this example and in general for -equivariant languages. Such languages come from register automata which manipulate data but where do control flow does not depend on comparisons. This typically occurs in data structures.
An important open problem is whether the latter requirement can be relaxed, by adding separated transitions only locally in a nominal automaton. A possible step in this direction is to consider the monad on and incorporate it in the automaton model. We believe that this is the hypothesised “substitution monad” from [17]. The monad is monoidal (sending separated products to Cartesian products) and if is an orbit-finite nominal set, then so is . This means that we can consider nominal -automata and we can perhaps determinise them using coalgebraic methods [24].
Acknowledgements
We would like to thank Gerco van Heerdt and Tom Hirschowitz for their useful comments.
Appendix A Omitted Proofs
Lemma 8**.**
(Lemma 1) Let be a nominal -set and . Then a set supports w.r.t. the -action if and only if supports w.r.t. the (induced) -action.
Proof.
(Slightly different proof from the one in [8].) First note that one direction is easy: an -support is also a -support.
For the other direction, let be a -support of . Now let be a -support of (note that is a nominal -set). Assume such that and take a such that and for all . This is possible, since is a finite set, and there are only finitely many values where and disagree ( consists of finite substitutions). Now , so (remember that is an -support). Using that is a -support we know that and so . This concludes that is a -support. ∎
Lemma 9**.**
(Lemma 4) We have iff there is a such that and , for some -support of .
Proof.
Let us define if there exists a permutation such that and , for some -support of . We need to prove .
() Let , then there is a with the required properties. Now check .
() For this direction, we show that is an equivalence relation which contains relations (2) and (3). Proving reflexivity and symmetry is trivial. For transitivity, assume and . There are with and . Note that . Moreover, we have and . Observe that so that . Now it follows that . This proves as required. To see that relation 2 is included, we take the from the relation and check the requirements. To see that relation 3 is included, we simply take and the requirement on supports follow by assumption. ∎
Theorem 5**.**
(Theorem 1) The functor is left adjoint to :
[TABLE]
Proof.
(Remainder of proof: equivariance and uniqueness) For the -equivariance, we compute .
Finally, for uniqueness, suppose is such that , i.e., . Then as desired. ∎
Lemma 10**.**
If a map in is both injective and surjective, then it is an isomorphism of nominal -sets.
Proof.
Let be an injective, surjective map between nominal -sets. Since is surjective, it is epic, and since it is injective, it is monic. Every map which is epic and monic is an isomorphism in , because it is a topos. Since is a full subcategory of , we conclude that is an isomorphism of nominal -sets. (Alternatively, we can use the fact that is a topos [9].) ∎
Theorem 6**.**
(Theorem 3) The sets and are naturally isomorphic via as nominal -sets.
Proof.
(Remainder of the proof: calculations of composition) We prove that is the inverse of .444We use here. The easiest way to see this is to evaluate on a separated pair and see that this equals . (The denotes (un)currying or transposition.) Most steps involve spelling out the definitions. We comment only on the interesting steps.
Let and calculate:
[TABLE]
So . Hence . There are few steps which require attention. Ad 1: Recall that the exponent in consists of two-variable functions and that . Ad 2: Currying in is defined by . Ad 3: Note that , and so to compute we do not have to rename things to be fresh.
Similarly, we prove that the composition , by considering its (twice) transpose. Let and note that . Now calculate:
[TABLE]
We conclude that and so . Ad 1 (twice): To apply , we choose a fresh and define such that and . Ad 2: Note that (and so ), so we are allowed to restrict with . Ad 3: Here we use that is a (two-variable) -equivariant map.
This concludes that . ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Michael Francis Atiyah and Ian G. Mac Donald. Introduction to commutative algebra . Addison-Wesley-Longman, 1969.
- 2[2] Mikołaj Bojańczyk. Slightly Infinite Sets . Draft December 4, 2018, 2018.
- 3[3] Mikołaj Bojańczyk, Bartek Klin, and Sławomir Lasota. Automata theory in nominal sets. Logical Methods in Computer Science , 10(3), 2014.
- 4[4] Mikołaj Bojańczyk, Bartek Klin, Sławomir Lasota, and Szymon Toruńczyk. Turing machines with atoms. In 28th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2013, New Orleans, LA, USA, June 25-28, 2013 , pages 183–192. IEEE Computer Society, 2013.
- 5[5] Ranald Clouston. Generalised name abstraction for nominal sets. In Frank Pfenning, editor, Foundations of Software Science and Computation Structures - 16th International Conference, FOSSACS 2013. Proceedings , volume 7794 of Lecture Notes in Computer Science , pages 434–449. Springer, 2013.
- 6[6] Marcelo P. Fiore and Daniele Turi. Semantics of name and value passing. In 16th Annual IEEE Symposium on Logic in Computer Science, Boston, Massachusetts, USA, June 16-19, 2001, Proceedings , pages 93–104. IEEE Computer Society, 2001.
- 7[7] Murdoch J. Gabbay. FM-HOL, a higher-order theory of names. Thirty Five years of Automath, Heriot-Watt University, Edinburgh , 2002.
- 8[8] Murdoch J. Gabbay. Nominal renaming sets. Technical report, Heriot-Watt University, 2007.
