=Paper=
{{Paper
|id=Vol-3263/paper-5
|storemode=property
|title=Comonadic Semantics for Description Logics Games
|pdfUrl=https://ceur-ws.org/Vol-3263/paper-5.pdf
|volume=Vol-3263
|authors=Bartosz Bednarczyk,Mateusz UrbaΕczyk
|dblpUrl=https://dblp.org/rec/conf/dlog/BednarczykU22
}}
==Comonadic Semantics for Description Logics Games==
Comonadic Semantics for Description Logic Games Bartosz Bednarczyk1,2 , Mateusz UrbaΕczyk2 1 Computational Logic Group, Technische UniversitΓ€t Dresden, Germany 2 Institute of Computer Science, University of WrocΕaw, Poland Abstract A categorical approach to study model comparison games in terms of comonads was recently initiated by Abramsky et al. In this work, we analyse games that appear naturally in the context of description logics and supplement them with suitable game comonads. More precisely, we consider expressive sublogics of πβπ Self βbπͺ, namely, the logics that extend πβπ with any combination of inverses, nominals, safe boolean roles combinations and the Self operator. Our construction augments and modifies the so-called modal comonad by Abramsky and Shah. The approach that we took heavily relies on the use of relative comonads, which we leverage to encapsulate additional capabilities within the bisimulation games in a compositional manner. Keywords comonads, category theory, bisimulations, expressive power, games, coalgebraic semantics 1. Introduction Following [1], there are two different views on the fundamental features of computation, that can be summarised as βstructureβ and βpowerβ as follows: β’ Structure: Compositionality and semantics, addressing the question of mastering the complexity of computer systems and software. β’ Power: Expressiveness and complexity, addressing the question of how we can harness the power of computation and recognize its limits. It turned out that there are almost disjoint communities of researchers studying Structure and Power, with seemingly no common technical language and tools. To encounter this issue, Samson Abramsky and Anuj Dawar started a project, whose goal is to provide category-theoretical toolkit to reason about finite model theory. Their approach, described e.g. in [2], employs comonads on the category of relational structures in order to capture model comparison games such as Ehrenfeucht-FraissΓ©, pebbling, and bisimulation games [2] as well as games for Hybrid logics [3] and Guarded Fragment [4]. The structure allows us to leverage the tool of category theory, and apply it to generalise known established theorems, as it was done in [5, 6]. In this paper, we continue the exploration of suitable game comonads by incorporating the comonadic semantics for description logics games, namely, for expressive description logics DL 2022: 35th International Workshop on Description Logics, August 7β10, 2022, Haifa, Israel " bartosz.bednarczyk@cs.uni.wroc.pl (B. Bednarczyk); mateusz.urbanczyk97@gmail.com (M. UrbaΕczyk) ~ https://bartoszjanbednarczyk.github.io/ (B. Bednarczyk) 0000-0002-8267-7554 (B. Bednarczyk) Β© 2022 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). CEUR Workshop Proceedings http://ceur-ws.org ISSN 1613-0073 CEUR Workshop Proceedings (CEUR-WS.org) between πβπ and πβπ Self βbπͺ.1 It is also worth mentioning a parallel research that defines categorical semantics for πβπ [7, 8], however, the approach is much different from ours, as we focus solely on games and leave πβπ in the standard set-theoretic semantics. 1.1. Our Results In what follows, we change setting established in the previous work from the category of relational structures, to a category of pointed interpretations that are parametrised by subsets of role names, concept names and individual names. We start with defining comonadic semantics for πβπ-bisimulation-games. It is well-known that πβπ is a notational variant of a multi-modal logic; hence, we employ this observation to take the full advantage of existing results on modal logic from [2] and use them as the base for our further investigations. In order to define comonadic semantics for DLs β β πβπ Self βbπͺ, instead of providing it directly for them (and thus repeating all the required proofs from [2]), we follow a different route. We provide a family of game reductions from β to weaker sublogics, ending up on πβπ, which transform interpretations in such a way that a winning strategy in β-bisimulation-game is equivalent to a winning strategy in πβπ-bisimulation-game for a suitably transformed interpretations. From a categorical point of view, we introduce a comonad for πβπ logic and reductions shall be defined by functors, on which we will build relative comonads to encapsulate the additional capabilities available in an β-bisimulation-game. By composing the reduction functors together, we shall obtain comonadic semantics for all of the games for considered logics. 2. Preliminaries We start with a recap of notions from category theory [9, 10], such as comonads, as well as from description logics, for which we define their syntax, semantics and bisimulations [11]. By doing so, we would like to unify the context for readers from different backgrounds. 2.1. Preliminaries on DLs We fix infinite mutually disjoint sets of individual names NI , concept names NC , and role names NR . We will briefly recap syntax and semantics of πβπ Self βbπͺ-concepts and as well as β-concepts for relevant sublogics β of πβπ Self βbπͺ. The following EBNF grammar defines atomic concepts B, concepts C, atomic roles r , simple roles s with o β NI , A β NC , p β NR : B ::= A | {o}, C ::= B | Β¬C | C β C | βs.C | βs.Self r ::= p | p β , s ::= r | s β© s | s βͺ s | s β s The semantics of πβπ Self βbπͺ-concepts is defined via interpretations β = (ββ , Β·β ) composed of a non-empty set ββ called the domain of β and an interpretation function Β·β mapping indi- vidual names to elements of ββ , concept names to subsets of ββ , and role names to subsets of 1 It will become clear why we write πβπ Self βbπͺ instead of πβππͺβbSelf later. ββ Γ ββ . This mapping is then extended to complex concepts and roles (cf. Table 1). The rank of a concept is the maximal nesting-depth of β-restrictions. The πβπ-concepts are obtained by dropping from the syntax the inversions of roles (β), safe boolean combination of roles (b) (i.e. union, intersection and difference), nominals (πͺ) and the Self operator (Self). β-concepts for other sublogics β of πβπ Self βbπͺ are defined similarly. We stress here that role union/intersection/difference, the Self operator, role inverse Β·β and nominals {Β·} are operators and they do not introduce neither new role names nor new concept names. We will find it convenient to employ expressions of the form πβπΞ¦ or βΞ¦ with Ξ¦ β {πͺ, β, Self, b} to speak collectively about different expressive sublogics of πβπ Self βbπͺ. Name Syntax Semantics conc. negation Β¬C ββ β Cβ conc. intersection CβD Cβ β© Dβ exist. restriction βr .C { d | βe.(d, e) β r β β§ e β Cβ } nominal op. {o} {oβ } inverse role op. pβ {(d, e) | (e, d) β p β } role boolean op. for β β {βͺ, β©, β} s1 β s2 s1β β s2β Self op. βs.Self {d | (d, d) β s β } Table 1: Concepts and roles in πβπ Self βbπͺ. Any triple π± β (ππ , ππ , ππ ) from NI Γ NC Γ NR having finite components will be called a vocabulary. We often speak about β(π±)-concepts i.e. those β-concepts that employ only symbols from π±. For a pointed interpretation (β, d) we say that it satisfies a concept C (written: (β, d) |= C) if d β Cβ . An π±-pointed-interpretation (β, d) is a partial interpretation, where all indv-names outside π± are left undefined while other other symbols outside π± are interpreted as β . 2.2. Preliminaries on Category Theory We assume familiarity with basic concepts such as categories, functors or natural transforma- tions. Let C and D be categories. We write |C| to denote morphisms (arrows) of C and π β |C| to indicate that π is a morphism in C. Let πΊ : C β C be a functor and π : C β 1C a natural transformation, with 1C being the identity functor on C. A comonad πΊ is a triple (πΊ, π, (Β·)* ), where π is called the counit of πΊ that for each object π΄ it gives us an arrow ππ΄ : πΊπ΄ β π΄, while (Β·)* , called the Kleisli coextension of πΊ, is an operator sending each arrow π : πΊπ΄ β π΅ to π * : πΊπ΄ β πΊπ΅. These has to satisfy, for all π : πΊπ΄ β π΅ and π : πΊπ΅ β πΆ, the equations: π*π΄ = 1πΊπ΄ , ππ΅ β π * = π, (π β π * )* = π * β π * Furthermore, we define coKleisli category Kl(πΊ), with objects from C and arrows from π΄ to π΅ given by the arrows in C of the form πΊπ΄ β π΅, where composition π β π is given by π β π * . We shall also need the notion of relative comonads [12]. Given a functor π½ : C β D, and a comonad πΊ on D, we obtain a relative comonad on C, whose coKleisli category is defined as follows. A morphism from π΄ to π΅, for objects π΄, π΅ of C, is a D-arrow πΊπ½π΄ β π½π΅. The counit at π΄ is ππ½π΄ , using the counit of πΊ at π½π΄. Given π : πΊπ½π΄ β π½π΅, the Kleisli coextension π * : πΊπ½π΄ β πΊπ½π΅ is the Kleisli coextension of G. Since G is a comonad, these operations satisfy the equations for a comonad in Kleisli form. We write this as (πΊ β π½)-relative-comonad. 2.3. Bisimulation Games Let π± be a vocabulary. Following [13], we recap the notion of bisimulation games for πβπ and its extensions. Call d β ββ and e β βπ₯ to be in π±-harmony 2 if for all concept names C β ππ we have that d β Cβ iff e β Cπ₯ . The πβπ(π±)-bisimulation game is played by two players, Spoiler (he) and Duplicator (she), on two pointed interpretations (β, d0 ) and (π₯ , e0 ). A configuration of a game is a quartet of the form (β, π ; π₯ , π β² ), where π and π β² are words from, respectively, ββ (ππ ββ )* and βπ₯ (ππ βπ₯ )* . Intuitively, configurations encode not only the current position of the play, but also its full play history. The initial configuration is simply (β, d0 ; π₯ , e0 ). The 0-th round of the game starts in the initial configuration and we require that d0 and e0 are in π±-harmony. If not, then immediately Spoiler wins. For any configuration (β, π d; π₯ , π β² e) (where the sequences π , π β² may be empty) in the game, the following rules apply: (a) In each round, Spoiler picks one of the two interpretations, say β. Then he picks a role name r β ππ and takes an element dβ² β ββ such that (β‘): (d, dβ² ) β r β . If there is no such role name r and an element dβ² , then Duplicator wins. (b) Duplicator responds in the other interpretation, π₯ , by picking the same role name r β ππ as Spoiler did and an element eβ² β ββ in π±-harmony with dβ² , witnessing (β£): (e, eβ² ) β r π₯ . If there is no such role name r or an element eβ² , Spoiler wins. The game continues from the position (β, π dr dβ² ; π₯ , π β² er eβ² ). Duplicator has a winning strategy in the game on (β, d0 ; π₯ , e0 ) if she can respond to every move of Spoiler so that she either wins the game or can survive π rounds. We define winning strategies in π-round games analogously. The above game is adjusted to the case of expressive sublogics βΞ¦ of πβπ Self βbπͺ as follows. β’ If πͺ β Ξ¦, then we extend the definition of π±-harmony with a condition βfor all o β ππ we have that d = oβ iff e = oπ₯ β. β’ If Self β Ξ¦, then we extend the definition of π±-harmony with a condition βfor all r β ππ we have that (d, d) β r β iff (e, e) β r π₯ β. β’ If β β Ξ¦, then in Spoilerβs move the condition (β‘) additionally allows for (dβ² , d) β r β . Then in the corresponding move of Duplicator, the condition (β£) imposes (eβ² , e) β r π₯ . β’ If b β Ξ¦, then for the element eβ² we additionally extend (β£) in order to fulfil the equality {r β ππ | (d, dβ² ) β r β } = {r β ππ | (e, eβ² ) β r π₯ }. Moreover, in case of β β Ξ¦, then also {r β ππ | (dβ² , d) β r β } = {r β ππ | (eβ² , e) β r π₯ } must hold. To simplify reasoning about bisimulation games, we employ the well-known notion of bisimulation, which can be seen as the βencodingβ of winning strategies of Duplicator. Let βΞ¦ be an expressive sublogic of πβπ Self βbπͺβοΈand π β N βͺ {π}. Following [14], the βΞ¦(π±)-π- bisimulation between β and π₯ is a set π΅ β πβ=0 (ββ )π Γ (βπ₯ )π satisfying the following seven conditions for all o β ππ , C β ππ , r β ππ , d, dβ² β ββ , π β (ββ )* and e, eβ² β βπ₯ , π β² β (βπ₯ )* : 2 For πβπ we do not actually use ππ and ππ , but they will be useful for other logics. (a) If π΅(π d, π β² e) then d β Cβ iff e β Cπ₯ . (b) If π΅(π d, π β² e) and (d, dβ² ) β r β then there is eβ² β βπ₯ s.t. (e, eβ² ) β r π₯ and π΅(π ddβ² , π β² eeβ² ). (c) If π΅(π d, π β² e) and (e, eβ² ) β r π₯ then there is dβ² β βπ₯ s.t. (d, dβ² ) β r β and π΅(π ddβ² , π β² eeβ² ). (d) If πͺ β Ξ¦, then π΅(π d, π β² e) implies d = oβ iff e = oπ₯ . (e) If Self β Ξ¦, then π΅(π d, π β² e) implies (d, d) β r β iff (e, e) β r π₯ . (f) If β β Ξ¦, then π΅(π d, π β² e) and (dβ² , d) β r β implies that there is eβ² β βπ₯ s.t. (eβ² , e) β r π₯ and π΅(π ddβ² , π β² eeβ² ). (g) If b β Ξ¦, then if π΅(π d, π β² e) and (d, dβ² ) β r β implies that there is eβ² β βπ₯ satisfying π΅(π ddβ² , π β² eeβ² ) and {r β ππ | (d, dβ² ) β r β } = {r β ππ | (e, eβ² ) β r π₯ } . If β β Ξ¦, then also {r β ππ | (dβ² , d) β r β } = {r β ππ | (eβ² , e) β r π₯ }. βΞ¦(π±) We write (β, d) β‘π (π₯ , e) iff d and e satisfy the same βΞ¦(π±)-concepts of rank at most π (as before, here π can be also π). The following fact for most of considered logics is either well-known (see [13], in particular Prop. 2.1.3 and related chapters) or can be established by tiny modifications of existing proofs. Fact 2.1. For any π β N βͺ {π} and a logic βΞ¦ between πβπ and πβπ Self βbπͺ, t.f.a.e.: β’ Duplicator has the winning strategy in the π-round βΞ¦(π±)-bisim-game on (β, d; π₯ , e), β’ There is an βΞ¦(π±)-π-bisimulation π΅ between β and π₯ such that π΅(d, e), βΞ¦(π±) β’ (β, d) β‘π (π₯ , e). 3. Reductions Between Games and Logics Herein we establish reductions, based on appropriate model transformations, that will allow us for transferring winning strategies of Duplicator from richer logics to weaker ones, ending up on πβπ. All of them, except the case of nominals, will be trivial. Such transformation will be essential in Section 5, where we will employ them in the construction of relative comonads. We will denote the game reductions for logic extensions Ξ¦ by fΞ¦ , which has two components fΞ¦ and f*Ξ¦ , that define actions on, respectively, the interpretation and the distinguished element. β We first handle the Self operator. Let ππSelf β ππ βͺ {CSelf.r | r β ππ }. By the self-enrichment of a π± β (ππ , ππ , ππ )-interpretation β we mean the π± Self β (ππ , ππSelf , ππ )-interpretation βSelf , where the (ππ , ππ , ππ )-reduct3 of βSelf is equal to β, and the interpretation of CSelf.r concepts is defined as (CSelf.r )βSelf = (βr .Self)β . Let fSelf be the described transformation, mapping β to βSelf . The following proposition is immediate from the semantics of Self: Proposition 3.1. Let π β N βͺ {π} and let β be a DL satisfying πβπ β β β πβπβbπͺ. Then Duplicator has a winning strategy in a π-round βSelf (π±)-bisimulation game on (β, d; π₯ , e) iff she has a winning strategy in a π-round β(π±)-bisimulation game on (fSelf (β), d; fSelf (π₯ ), e). 3 i.e. the interpretation obtained from βSelf by omitting the interpretation of symbols outside ππ βͺ ππ βͺ ππ . Proof. Employ Fact 2.1 after observing that due to the choice of ππSelf the βSelf (π±)-π-bisimulation between β and π₯ is a β(π± Self )-π-bisimulation between fSelf (β) and fSelf (π₯ ) and vice-versa. Our next goal is to incorporate inverses of roles. Let ππβ β ππ βͺ {rinv | r β ππ } By the inverse- enrichment of a π± β (ππ , ππ , ππ )-interpretation β we mean the π± β β (ππ , ππ , ππβ )-interpretation ββ , where the (ππ , ππ , β )-reducts of β and ββ are equal, and the interpretations of role names rinv are defined as (rinv )ββ = (r β )β . Let fβ be the described transformation, mapping β to ββ . The following follows analogously to Proposition 3.1: Proposition 3.2. Let π β N βͺ {π} and let β be a DL satisfying πβπ β β β πβππͺb. Then Duplicator has a winning strategy in a π-round ββ(π±)-bisimulation game on (β, d; π₯ , e) iff she has a winning strategy in a π-round β(π± β )-bisimulation game on (fβ (β), d; fβ (π₯ ), e). We focus next on safe boolean combination of roles. Given a finite ππ β NR , let ππb be composed of role names having the form rπ , where π is any non empty subset of ππ . By the b- enrichment of a π± β (ππ , ππ , ππ )-interpretation β we mean the π± b β (ππ , ππ , ππb )-interpretation βb , where the (ππ , ππ , β )-reducts of β and βb are equal and the interpretation of role names rπ β ππb is defined as {(d, e) | {r β ππ | (d, e) β r β } = π}. Let fb be the described transformation, mapping β to βb . Once more, the following proposition is straightforward: Proposition 3.3. Let π β N βͺ {π} and let β be a DL satisfying πβπ β β β πβππͺ. Then Duplicator has a winning strategy in a π-round βb(π±)-bisimulation-game on (β, d; π₯ , e) iff she has a winning strategy in a π-round β(π± b )-bisimulation-game on (fb (β), d; fb (π₯ ), e). Finally, we proceed with the case of nominals. In this case we need to be extra careful, as the comonads introduces in the next section will act as unravelling on interpretations, and we do not want to create multiple copies of a nominal. Recall that the Gaifman graph Gβ = (πβ , πΈβ ) of an interpretation β is a simple undirected graph whose nodes are domain elements from ββ and an edge exist between two nodes when there is a role that connects them in β. Let πππͺ β ππ βͺ {Co,r | o β ππ , r β ππ } and πππͺ β ππ βͺ {ro | o β ππ }. By the nominal-enrichment of a π± β (ππ , ππ , ππ )-interpretation β we mean the π± πͺ β (ππ , πππͺ , πππͺ )- interpretation βπͺ defined in the following steps: β’ First, we get rid of unreachable elements from β. More precisely, let π₯ to be the substruc- ture of β restricted to the set of all elements reachable in (finitely-many steps) from d in Gβ . W.l.o.g., assume that all oβ for o β ππ are reachable. β’ For every o β ππ and every d β ββ for which there is an r -connection between d and oβ , we insert a βtrampolineβ element labelled by the unique concept name Co,r and we r -connect it with d. Trampoline elements are used to bookkeep information about connections between elements and named elements. Let π₯ be the resulting interpretation. β’ We next divide π₯ into components. Let π₯d and π₯o for o β ππ be induced subinter- pretations of π₯ obtained by removing all elements {oβ | o β ππ } from π₯ except the element mentioned in the subscript (that serve the role of distinguished elements of the components). Take π₯ β² to be the disjoint sum of the components. β’ Finally, we will link components. For all o β ππ , take disto be the length of the short- β² est path from d to oβ in Gβ . We will connect d to oπ₯ by a dummy path of length β² precisely disto . Thus, we introduce dummy elements do1 , . . . , dodisto β1 to βπ₯ and em- ploy the fresh role name ro , whose interpretation will contains precisely the pairs β² (d, do1 ), (do1 , do2 ), . . . , (dodisto β1 , oπ₯ ). The resulting interpretation is the desired βπͺ . Let fπͺ be the described transformation, mapping β to βπͺ . In Appendix we show that Lemma 3.4. Let π β N βͺ {π}. Duplicator has a winning strategy in a π-round πβππͺ(π±)- bisimulation game on (β, d) and (π₯ , e) iff she has a winning strategy in a π-round πβπ(π± πͺ )- bisimulation game on (fπͺ (β), d) and (fπͺ (π₯ ), e). We wrap up the above reductions, with a goal that the winning strategy of Duplicator in an βΞ¦-bisimulation game is equivalent to the winning strategy in a certain πβπ-bisimulation game. Note that the order of applications of reduction matters, e.g. we should apply first the fβ reduction, and only then fb ; otherwise we will not get all possible combinations of roles with inverse. Hence, we first proceed with fSelf reduction, then with fβ , with fb and finally with fπͺ . Let fΞ¦ be a composition of reductions for extensions Ξ¦ β {Self, β, b, πͺ} in the above order. Theorem 3.5. Let π β N βͺ {π} and βΞ¦ satisfy πβπ β βΞ¦ β πβπ Self βbπͺ. Then Duplicator has a winning strategy in a π-round βΞ¦(π±)-bisimulation game on (β, d) and (π₯ , e) iff she has a winning strategy in a π-round β(π± Ξ¦ )-bisimulation game on (fΞ¦ (β), d) and (fΞ¦ (π₯ ), e). Proof. The key idea here is grounded on the composition of the reduction functions. Given Ξ¦, we simply apply consecutively Propositions 3.1β3.3 and Lemma 3.4. 4. Game Comonads Having defined a family of game reductions, we are going to start employing basic category theory primitives to define denotational semantics for bisimulation games. In this section, we focus on vanilla πβπ. Since πβπ is a notational variant of the multi-modal logic, it suffices to translate the work done in [2] to the description logic setting. Subsequently, we prove that such definition of a βgeneralised gameβ coincides with our definition of πβπ(π±)-bisimulation game defined in Section 2.3. In what follows, we shall work in the category of pointed inter- pretations β* (π±) over a vocabulary π±, where objects (β, π) are π±-pointed-interpretations, and morphisms β : (β, π) β (π₯ , π) are homomorphisms between interpretations that preserve the distinguished element. With DLΞ¦ π , we will denote the corresponding game comonad, where π is the depth parameter and Ξ¦ β {Self, β, b, πͺ} parametrizes the set of language extensions. We {β,πͺ} {} will be a bit careless and write DLβπͺπ in place of DLπ , or likewise, DLπ to denote DLπ . 4.1. Comonad for πβπ We start with introducing the comonad for πβπ, which will be the base for our further comonads. Definition 4.1 (πβπ-comonad). For every π β₯ 0, we define a comonad DLπ on β* (β , ππ , ππ ),4 where DLπ unravels (β, d) from d, up to depth π. 5 More precisely: 4 Notice β in place of ππ . This is because πβπ-concepts cannot speak about individual names. 5 For the notion of unravelling consult e.g. [11, Definition 3.21]. β’ The domain of DLπ (β, π) is composed of sequences [π0 , r0 , π1 , r2 , . . .] β ββ (ππ ββ )* , where we additionally require that (ππ , ππ+1 ) β rπβ and π0 = d. The singleton sequence [d] serves as the distinguished element of DLπ (β, π). β’ The functorial action on morphisms for DLπ satisfies: DLπ (β : (β, π) β (π₯ , π)) : DLπ (β, π) β DLπ (π₯ , π) (DLπ β)[π0 , πΌ1 , π1 , ..., πΌπ , ππ ] = [β π0 , πΌ1 , β π1 , ..., πΌπ , β ππ ] β’ The map πβ : DLπ (β, π) β (β, π) sends a sequence to its last element. β’ Concept names C β ππ are interpreted such that π β CDLπ (β,π) iff πβ π β Cβ . β’ For role names r β ππ , we put (π , π‘) β r DLπ (β,π) iff there is πβ² β ββ so that π‘ = π [r , πβ² ]. β’ For a morphism β : DLπ (β, π) β (π₯ , π), we define Kleisli coextension β* : DLπ (β, π) β DLπ (π₯ , π) recursively by β* [π] = [π] and β* (π [πΌ, πβ² ]) = β* (π )[πΌ, β(π [πΌ, πβ² ])]). Proposition 4.2. The triple (DLπ , π, (Β·)* ) is a comonad in Kleisli form on β* (β , ππ , ππ ). Having the πβπ-comonad defined, as the next step we introduce sufficient categorical background required to define bisimulation games in an abstract-enough way. This may be a bit heavy for readers not familiar enough with category theory. 4.2. Tree-like Structures, Paths and Embeddings A covering relation βΊ for a partial order β€ is a relation satisfying π₯ βΊ π¦ β π₯ β€ π¦ β§ π₯ ΜΈ= π¦ β§ (βπ§.π₯ β€ π§ β€ π¦ =β π§ = π₯ β¨ π§ = π¦). This is employed to define tree-like structures below, that will intuitively serve as the description of bisimulation game strategies. Definition 4.3. A ordered interpretation (β, π, β€) is a pointed interpretation (β, d) equipped with a partial order on ββ such that β (π) β {πβ² β ββ | π β€ πβ² } is a tree order that satisfies the following condition (D) for π₯, π¦ β β (π), we have π₯ βΊ π¦ iff (π₯, π¦) β r β for some r β ππ . Morphisms between ordered interpretations preserve the covering relation. We put βπ· *π (π±) to be the category of ordered interpretation as objects with π bounding the height of the underlying tree. We next define different kinds of embeddings, essential to characterize plays. Definition 4.4. A morphism in βπ· *π (π±) is an embedding if it is an injective strong homomor- phism. We write π : β β£ π₯ to mean that π is an embedding. Now, we define a subcategory Paths of β* (π±) whose objects have tree orders that are linear, so they comprise a single branch. We say that π : π β£ β is a path embedding if π is a path. A morphism π : β β π₯ β |βπ· *π (π±)| is a pathwise embedding if for any path embedding π : π β£ β, π β π is a path embedding. Let β being be the lexicographical order on sequences from ββ . From the construction of *π (π±), we can extract a free functor, for which construction is justified in the Appendix: βπ· Lemma 4.5. There exists a canonical functor πΉπ β = (DLπ (β, π), β). 4.3. A Categorical View on Games Given sufficient background, we can move on to the main result, namely, to the characterisation of β‘πβπ π in the language of category-theory. We start with defining what does it mean for a morphism in π : β β π₯ β |βπ· *π (π±)| to be open. This holds if, whenever we have a commutative square (LHS) then there is an embedding π β£ β such that the diagram on the RHS commutes. π π π π β π π₯ β π π₯ Finally, we can define back-and-forth equivalence (β, π) βDL π (π₯ , π) between objects in β* (π±), intuitively corresponding to conditions (b) and (c) from the definition of a bisimulation. This holds if there is an object π in βπ· *π (π±) and a span of open pathwise embeddings such that: π πΉπ (β, π) πΉπ (π₯ , π) We shall now define a back-and-forth game π’πΞ¦ (β, π; π₯ , π) played between the interpretations (β, π) and (π₯ , π). Positions of the game are pairs (π , π‘) β DLΞ¦π (β, π) Γ DLπ (π₯ , π). We define a Ξ¦ relation π (β, π; π₯ , π) β DLπ (β, π) Γ DLπ (π₯ , π) as follows. A pair (π , π‘) is in π (β, π; π₯ , π) Ξ¦ Ξ¦ iff for some path π , path embeddings π1 : π β£ β and π2 : π β£ π₯ , and π β π , π = π1 π and π‘ = π2 π. The intention is that π (β, π; π₯ , π) picks out the winning positions for Duplicator. At the start of each round of the game, the position is specified by (π , π‘) β DLΞ¦ Ξ¦ π (β, π) Γ DLπ (π₯ , π). The initial position is ([π], [π]). The round proceeds as follows. Spoiler either chooses π β² β» π , and Duplicator must respond with π‘β² β» π‘, producing the new position (π β² , π‘β² ); or Spoiler chooses π‘β²β² β» π‘, and Duplicator must respond with π β²β² β» π , producing the new position (π β²β² , π‘β²β² ). Duplicator wins the round if she is able to respond, and the new position is in π (β, π; π₯ , π). We follow the same notation convention as for DLΞ¦ π with respect to extensions Ξ¦ of game π’π . Ξ¦ The following theorem follows from [2, Theorem 10.1]. Theorem 4.6. Duplicator has a winning strategy in π’π (β, π; π₯ , π) iff (β, π) βDL π (π₯ , π). The above theorem with aforementioned definitions were just slight variations of theorems and notions presented in [2]. We have accommodated them to the description logic setting and now we will glue them together with our definition of the bisimulation game from Section 2.3. Theorem 4.7. Given interpretations (β, π) and (π₯ , π), the π’π (β, π; π₯ , π) game for the DLπ comonad is equivalent to the π-round πβπ(π±)-bisimulation game between (β, π) and (π₯ , π). Proof. First note that configurations and the moves are structurally the same in both games. Hence, by induction over π it suffices to show that the winning conditions coincide. Base. Let π = 0 and suppose ([π], [π]) β π (β, π; π₯ , π). That holds iff there are path embeddings π1 : π β£ β, π2 : π β£ π₯ and π β π such that π1 π = [π] and π2 π = [π]. By strong homomorphism property, π is in π±-harmony with π, which in turn is in π±-harmony with π, which by transitivity of π±-harmony concludes this case. Step. Assume that the proposition holds for all π β€ π. We need to show that the winning conditions coincide for games of length π + 1. Suppose π = π β² [πΌπ , πβ² ], π‘ = π‘β² [πΌπ‘ , πβ² ] and (π , π‘) β π (β, π; π₯ , π). That holds iff there are path embeddings π1 : π β£ β, π2 : π β£ π₯ and π β π such that π1 π = π and π2 π = π‘. By definition of π (β, π; π₯ , π) relation, we get that (π β² , π‘β² ) β π (β, π; π₯ , π) and hence, by induction hypothesis, π , π‘ are a valid winning configuration in πβπ game. It remains to show that [πΌπ , πβ² ] and [πΌπ‘ , πβ² ] are valid moves leading to winning positions. From π1 π = π and π2 π = π‘ we immediately get that πΌπ = πΌπ‘ and since π1 , π2 are embeddings we have that πβ² is in π±-harmony with π which in turn is in π±-harmony with πβ² , hence by transitivity of π±-harmony, we are done. By applying Theorem 4.6, Theorem 4.7 and Fact 2.1, we derive our first result on comonadic semantics for description logic games, namely: Theorem 4.8. We have that (β, π) β‘πβπ π (π₯ , π) if and only if (β, π) βDL π (π₯ , π). 5. Comonads for Extensions of πβπ We can now proceed with definitions of game comonads for extensions of πβπ. The approach that we undertook relies on an observation that we had based on how πΌ- morphisms were incorporated in [2]. In our case, relative comonads serve as a tool to start within the base category where our objects live, and then to enrich the interpretations encoding the additional capabilities available in bisimulation games for richer logics. We do this via the already-presented reductions from Section 3, followed by the notion of unravelling using DLπ defined in Section 4, all established in a generalised framework using relative comonads. Definition 5.1. A vocabulary-map πΏ is triple (πΏπ , πΏπ , πΏπ ) : NI Γ NC Γ NR β NI Γ NC Γ NR that maps the vocabulary (ππ , ππ , ππ ) β¦ββ (πΏπ (ππ ), πΏπ (ππ ), πΏπ (ππ )). Proposition 5.2. Let πΏ be a vocabulary map and f a game reduction. A (f, πΏ)-reduction-functor is a full and faithful [9, Def 7.1] functor π½ : β* (π±) β β* (πΏ π±) acting (β, π) β¦ββ (fβ β, f* π). While Proposition 5.2 is stated in a very general setting, we strictly only consider the reduc- tions from Section 3. Knowing that, π½ is clearly a functor. The full and faithful property comes from the bidirectional nature of our reduction games, i.e. reductions are defined in a reversible way and as such the reduction-functor encodes a full subcategory. Thus, we obtain a family of (fπ , πΏπ )-reduction-functors, where π β {Self, β, b, πͺ} are considered logic extensions. Definition 5.3. Let πΏ, πΏ β² be a vocabulary-maps. We say that a functor πΉ : β* (π±) β β* (πΏ π±) is invariant over vocabulary-maps iff for any πΏ β² it can be lifted to πΉ : β* (πΏ β² π±) β β* (πΏ (πΏ β² π±)) What want to capture by this that such a functor acting on β* (π±) category is natural in π±, i.e. does not depend on the contents of the concepts or roles. It is easy to see the following fact: Observation 5.4. DLπ and (fπ , πΏπ )-reduction-functors are invariant over vocabulary-maps. In order to obtain richer semantics, we shall leverage the functor composition, following the same order as defined for the game reductions in Section 3: π½Self π½β π½b π½πͺ β* (π±) β* (π± Self ) β* (π± Selfβ ) β* (π± Selfβb ) β* (π± Selfβbπͺ ) In Appendix we show that: Lemma 5.5. Reduction-functors are closed under composition. 5.1. Comonadic Semantics for Extensions of πβπ Having defined appropriate notions and tools, we now present the way to obtain game semantics for an arbitrary sublogic πβπ β βΞ¦ β πβπ Self βbπͺ by the use of relative comonads. Let π½Ξ¦ β iπβΞ¦ π½π be a family of functors indexed by Ξ¦ where π½π are (fπ , πΏπ )-reduction- functors and the operator iiterates over the extensions and composes the functors together in (Self, β, b, πͺ) order. It follows from Lemma 5.5 that π½Ξ¦ functors are also reduction-functors. Proposition 5.6 (πβπΞ¦-comonad). The game comonad DLΞ¦ π is a (DLπ βπ½Ξ¦ )-relative-comonad. Proof. We know that π½Ξ¦ is a functor. From Proposition 4.2 and Observation 5.4 we get that DLπ is a comonad on the codomain of π½Ξ¦ . Hence, by definition, DLΞ¦ π is a relative comonad. With that, we arrive at the concluding lemma which shall guide us to the final result. Lemma 5.7. Let π β N βͺ {π} and let Ξ¦ β {Self, β, b, πͺ}. Given pointed interpretations (β, π) and (π₯ , π), the π’πΞ¦ (β, π; π₯ , π) game for the DLΞ¦ π relative comonad is equivalent to the π-round πβπΞ¦(π±)-bisimulation game played on (β, π) and (π₯ , π). Proof. By Theorem 3.5, it suffices to show that π’πΞ¦ (β, π; π₯ , π) is equivalent to πβπ(π± Ξ¦ )- bisimulation game between (fβΞ¦ β, f*Ξ¦ π) and (fβΞ¦ π₯ , f*Ξ¦ π). Recall that the positions in the π’πΞ¦ (β, π; π₯ , π) are pairs (π , π‘) β DLΞ¦ π (β, π) Γ DLπ (π₯ , π). By unfolding the definition of DLπ , Ξ¦ Ξ¦ we get that it corresponds to a product of unravelings (fΞ¦ β, π) Γ (fΞ¦ π₯ , π). Hence, π and π‘ are sequences of the form [π0 , πΌ1 , π1 , ..., πΌπ , ππ ], where πΌπ β ππΞ¦ and ππ β ββ β¨ ππ β βπ₯ for 1 β€ π β€ π. An attentive reader can already notice that it is the same as positions in the πβπ(π±)-bisimulation game by definition in Section 2.3. What remains to be shown is that the winning conditions coincide. Note that after applying Theorem 3.5 we are playing the πβπ-bisimulation game, and thus the same inductive reasoning applies as in Theorem 4.7. We have finally arrived at the hearth of our result. This is summarised by the following theorem, which is an immediate corollary from Fact 2.1, Lemma 5.7 and Theorem 4.6. Theorem 5.8. For any π β N βͺ {π} and a logic βΞ¦ between πβπ and πβπ Self βbπͺ, t.f.a.e.: β’ Duplicator has the winning strategy in the π-round βΞ¦(π±)-bisim-game on (β, d; π₯ , e), β’ There is an βΞ¦(π±)-π-bisimulation π΅ between β and π₯ such that π΅(d, e), βΞ¦(π±) β’ (β, d) β‘π (π₯ , e), Ξ¦ β’ (β, π) βDL π (π₯ , π). 6. Conclusions This paper provides yet another view on bisimulation games used in the description logic setting, via the lenses of comonadic semantics, as well as another nail for the comonads hammer developed in recent years. There are several directions for future work. One of them involves the analysis of other known DL extensions, e.g. the number restrictions or the universal role, where we believe that our approach can be useful. Another research direction is to investigate combinatorial properties arising from comonads [15, 2, 16], e.g. the coalgebra numbers, or deep dive into transcribing known theorems using the developed comonadic structure, as in [5, 6]. Acknowledgements Results from this paper will be included in the master thesis of M. UrbaΕczyk, written under an informal supervision of B. Bednarczyk. B. Bednarczyk was supported by the ERC Grant No. 771779, while M. UrbaΕczyk received generous financial support from the University of WrocΕaw and from the DL Workshopβs student grant. References [1] S. Abramsky, Whither semantics?, Theor. Comput. Sci. 2020 . [2] S. Abramsky, N. Shah, Relating structure and power: Comonadic semantics for computa- tional resources, J. Log. Comput. 2021 . [3] S. Abramsky, D. Marsden, Comonadic semantics for hybrid logic and bounded fragments, arXiV 2021 . [4] S. Abramsky, D. Marsden, Comonadic semantics for guarded fragments, LICS 2021 . [5] A. Dawar, T. Jakl, L. Reggio, LovΓ‘sz-Type Theorems and Game Comonads, LICS 2021 . [6] S. Abramsky, L. Reggio, Arboreal Categories and Resources, ICALP 2021 . [7] C. L. Duc, Category-theoretical Semantics of the Description Logic ALC, arXiv 2021 . [8] L. Brieulle, C. L. Duc, P. Vaillant, Reasoning in the Description Logic ALC under Category Semantics, arXiv 2022 . [9] S. Awodey, Category Theory, Ebsco Publishing, 2006. [10] S. MacLane, Categories for the Working Mathematician, Springer-Verlag, 1971. [11] F. Baader, I. Horrocks, C. Lutz, U. Sattler, An Introduction to Description Logic, Cambridge University Press, 2017. [12] T. Altenkirch, J. Chapman, T. Uustalu, Monads need not be endofunctors, Log. Methods Comput. Sci. 2015 11 (1). [13] R. Piro, Model-theoretic characterisations of description logics, Ph.D. thesis, University of Liverpool, UK, 2012. [14] A. R. Divroodi, L. A. Nguyen, On bisimulations for description logics, Inf. Sci. 2015 . [15] S. Abramsky, A. Dawar, P. Wang, The pebbling comonad in Finite Model Theory, LICS 2017 . [16] S. Abramsky, T. Jakl, T. Paine, Discrete density comonads and graph parameters, arXiV 2022 .