<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>DL</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Comonadic Semantics for Description Logic Games</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Bartosz Bednarczyk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mateusz Urbańczyk</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Computational Logic Group, Technische Universität Dresden</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Institute of Computer Science, University of Wrocław</institution>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>35</volume>
      <fpage>7</fpage>
      <lpage>10</lpage>
      <abstract>
        <p>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.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;comonads</kwd>
        <kwd>category theory</kwd>
        <kwd>bisimulations</kwd>
        <kwd>expressive power</kwd>
        <kwd>games</kwd>
        <kwd>coalgebraic semantics</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Following [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], there are two diferent views on the fundamental features of computation, that
can be summarised as “structure” and “power” as follows:
between ℒ and ℒSelf ℐb.1 It is also worth mentioning a parallel research that defines
categorical semantics for ℒ [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ], however, the approach is much diferent from ours, as we
focus solely on games and leave ℒ in the standard set-theoretic semantics.
      </p>
      <sec id="sec-1-1">
        <title>1.1. Our Results</title>
        <p>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.</p>
        <p>
          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 [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ] 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 [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]),
we follow a diferent 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.
        </p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Preliminaries</title>
      <p>
        We start with a recap of notions from category theory [
        <xref ref-type="bibr" rid="ref10 ref9">9, 10</xref>
        ], such as comonads, as well as
from description logics, for which we define their syntax, semantics and bisimulations [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. By
doing so, we would like to unify the context for readers from diferent backgrounds.
      </p>
      <sec id="sec-2-1">
        <title>2.1. Preliminaries on DLs</title>
        <p>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 ::=
r ::=</p>
        <p>A | {o}, C ::= B | ¬C | C ⊓ C | ∃s.C | ∃s.Self
p | p− , s ::= r | s ∩ s | s ∪ s | s ∖ s</p>
        <p>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
individual names to elements of ∆ ℐ , concept names to subsets of ∆ ℐ , and role names to subsets of
1It 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.</p>
        <p>The ℒ-concepts are obtained by dropping from the syntax the inversions of roles (ℐ),
safe boolean combination of roles (b) (i.e. union, intersection and diference), nominals ()
and the Self operator (Self). ℒ-concepts for other sublogics ℒ of ℒSelf ℐb are defined
similarly. We stress here that role union/intersection/diference, 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 diferent expressive sublogics of ℒSelf ℐb.</p>
        <p>Name</p>
        <p>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ℐ ⊕ sℐ
2
Self op. ∃s.Self {d | (d, d) ∈ sℐ }</p>
        <p>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 ∅.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Preliminaries on Category Theory</title>
        <p>We assume familiarity with basic concepts such as categories, functors or natural
transformations. 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  ∘  * .</p>
        <p>
          We shall also need the notion of relative comonads [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. 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.
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Bisimulation Games</title>
        <p>
          Let  be a vocabulary. Following [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ], we recap the notion of bisimulation games for ℒ and
its extensions. Call d ∈ ∆ ℐ and e ∈ ∆  to be in -harmony2 if for all concept names C ∈   we
have that d ∈ Cℐ if 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  .
        </p>
        <p>If there is no such role name r or an element e′, Spoiler wins.</p>
        <p>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.</p>
        <p>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ℐ if e = o ”.
• If Self ∈ Φ , then we extend the definition of -harmony with a condition “for all r ∈  
we have that (d, d) ∈ r ℐ if (e, e) ∈ r  ”.
• If ℐ ∈ Φ , then in Spoiler’s move the condition (♡) additionally allows for (d′, d) ∈ r ℐ .</p>
        <p>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.</p>
        <p>
          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 [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ], the ℒΦ(
)-bisimulation between ℐ and  is a set  ⊆ ⋃︀ℓ=0(∆ ℐ ) × (∆  ) satisfying the following seven
conditions for all o ∈  , C ∈  , r ∈  , d, d′ ∈ ∆ ℐ ,  ∈ (∆ ℐ )* and e, e′ ∈ ∆  , ′ ∈ (∆  )* :
2For ℒ we do not actually use   and  , but they will be useful for other logics.
        </p>
        <p>(a) If (d, ′e) then d ∈ Cℐ if 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ℐ if e = o .
(e) If Self ∈ Φ , then (d, ′e) implies (d, d) ∈ r ℐ if (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  }.</p>
        <p>
          We write (ℐ, d) ≡ ℒ Φ() ( , e) if 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 [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ], in particular Prop. 2.1.3 and related chapters) or can be established by
tiny modifications of existing proofs.
        </p>
        <p>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).</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Reductions Between Games and Logics</title>
      <p>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.</p>
      <p>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.</p>
      <p>We first handle the Self operator. Let  S elf ≜   ∪ {CSelf.r | r ∈  }. By the self-enrichment
of a  ≜ ( ,  ,  )-interpretation ℐ we mean the Self ≜ ( ,  S elf ,  )-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) if
she has a winning strategy in a -round ℒ()-bisimulation game on (fSelf (ℐ), d; fSelf ( ), e).
3i.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  S elf the ℒSelf ()--bisimulation
between ℐ and  is a ℒ(Self )--bisimulation between fSelf (ℐ) and fSelf ( ) and vice-versa.</p>
      <p>Our next goal is to incorporate inverses of roles. Let  ℐ ≜   ∪ {rinv | r ∈  } By the
inverseenrichment 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) if she
has a winning strategy in a -round ℒ(ℐ )-bisimulation game on (fℐ (ℐ), d; fℐ ( ), e).</p>
      <p>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
benrichment 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) if she
has a winning strategy in a -round ℒ(b)-bisimulation-game on (fb(ℐ), d; fb( ), e).</p>
      <p>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 ℐ.</p>
      <p>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
substructure 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
subinterpretations 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
shortest 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, . . . , ddoisto− 1 to ∆  ′ and
employ the fresh role name ro, whose interpretation will contains precisely the pairs
(d, do1), (do1, do2), . . . , (ddoisto− 1, o ′ ). The resulting interpretation is the desired ℐ.</p>
      <p>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) if she has a winning strategy in a -round
ℒ()bisimulation game on (f(ℐ), d) and (f( ), e).</p>
      <p>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) if 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.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Game Comonads</title>
      <p>
        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 sufices
to translate the work done in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] 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
interpretations ℛ* () 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:
4Notice ∅ in place of  . This is because ℒ-concepts cannot speak about individual names.
5For the notion of unravelling consult e.g. [11, Definition 3.21].
      </p>
      <p>• 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:</p>
      <p>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(ℐ,) if ℐ  ∈ Cℐ .
• For role names r ∈  , we put (, ) ∈ r DL(ℐ,) if there is ′ ∈ ∆ ℐ so that  = [r , ′].
• For a morphism ℎ : DL(ℐ, ) → ( , ), we define Kleisli coextension ℎ* : DL(ℐ, ) →</p>
      <p>DL( , ) recursively by ℎ* [] = [] and ℎ* ([,  ′]) = ℎ* ()[, ℎ ([,  ′])]).
Proposition 4.2. The triple (DL, , (· )* ) is a comonad in Kleisli form on ℛ* (∅,  ,  ).</p>
      <p>Having the ℒ-comonad defined, as the next step we introduce suficient 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.</p>
      <sec id="sec-4-1">
        <title>4.2. Tree-like Structures, Paths and Embeddings</title>
        <p>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  ≺  if (, ) ∈ 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.</p>
        <p>We next define diferent kinds of embeddings, essential to characterize plays.</p>
        <p>Definition 4.4. A morphism in ℛ*() is an embedding if it is an injective strong
homomorphism. 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.</p>
        <p>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(ℐ, ), ⊑).</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.3. A Categorical View on Games</title>
        <p>Given suficient 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.
   
ℐ   ℐ</p>
        <p>Finally, we can define back-and-forth equivalence (ℐ, ) ↔D L ( , ) 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:

(ℐ, )
( , )</p>
        <p>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  (ℐ, ;  , )
if 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].</p>
        <p>Theorem 4.6. Duplicator has a winning strategy in (ℐ, ;  , ) if (ℐ, ) ↔D L ( , ).</p>
        <p>
          The above theorem with aforementioned definitions were just slight variations of theorems
and notions presented in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. 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 sufices to show that the winning conditions coincide.
Base. Let  = 0 and suppose ([], []) ∈  (ℐ, ;  , ). That holds if 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.
        </p>
        <p>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 if 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.</p>
        <p>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 (ℐ, ) ↔D L ( , ).
5. Comonads for Extensions of ℒ
We can now proceed with definitions of game comonads for extensions of ℒ.</p>
        <p>
          The approach that we undertook relies on an observation that we had based on how
morphisms were incorporated in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. 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 ( ,  ,  ) →↦− ( ( ),  ( ),  ( )).
        </p>
        <p>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* ).</p>
        <p>While Proposition 5.2 is stated in a very general setting, we strictly only consider the
reductions 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 if for any  ′ it can be lifted to  : ℛ* ( ′ ) → ℛ* ( ( ′ ))</p>
        <p>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.</p>
        <p>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
ℛ* (Self )
ℐ
ℛ* (Selfℐ )
b
ℛ* (Selfℐb)

ℛ* (Selfℐb)</p>
        <p>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.</p>
        <p>Let Φ ≜ i∈Φ  be a family of functors indexed by Φ where  are (f ,  
)-reductionfunctors 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.</p>
        <p>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 ( , ).</p>
        <p>Proof. By Theorem 3.5, it sufices 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.</p>
        <p>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),</p>
        <p>DLΦ ( , ).</p>
        <p>• (ℐ, ) ↔</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>6. Conclusions</title>
      <p>
        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 [
        <xref ref-type="bibr" rid="ref15 ref16 ref2">15, 2, 16</xref>
        ], e.g. the coalgebra numbers, or deep
dive into transcribing known theorems using the developed comonadic structure, as in [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ].
      </p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgements</title>
      <p>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.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Abramsky</surname>
          </string-name>
          , Whither semantics?,
          <source>Theor. Comput. Sci</source>
          .
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Abramsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Shah</surname>
          </string-name>
          ,
          <article-title>Relating structure and power: Comonadic semantics for computational resources</article-title>
          ,
          <source>J. Log. Comput</source>
          .
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Abramsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Marsden</surname>
          </string-name>
          ,
          <article-title>Comonadic semantics for hybrid logic and bounded fragments</article-title>
          , arXiV
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Abramsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Marsden</surname>
          </string-name>
          ,
          <article-title>Comonadic semantics for guarded fragments</article-title>
          ,
          <source>LICS</source>
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>A.</given-names>
            <surname>Dawar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Jakl</surname>
          </string-name>
          , L. Reggio,
          <article-title>Lovász-Type Theorems and Game Comonads</article-title>
          ,
          <string-name>
            <surname>LICS</surname>
          </string-name>
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Abramsky</surname>
          </string-name>
          , L. Reggio, Arboreal Categories and Resources,
          <string-name>
            <surname>ICALP</surname>
          </string-name>
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>C. L.</given-names>
            <surname>Duc</surname>
          </string-name>
          ,
          <article-title>Category-theoretical Semantics of the Description Logic ALC</article-title>
          , arXiv
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>L.</given-names>
            <surname>Brieulle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. L.</given-names>
            <surname>Duc</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Vaillant</surname>
          </string-name>
          ,
          <article-title>Reasoning in the Description Logic ALC under Category Semantics</article-title>
          , arXiv
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Awodey</surname>
          </string-name>
          , Category Theory, Ebsco Publishing,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>S. MacLane</surname>
          </string-name>
          , Categories for the Working Mathematician, Springer-Verlag,
          <year>1971</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>F.</given-names>
            <surname>Baader</surname>
          </string-name>
          , I. Horrocks,
          <string-name>
            <given-names>C.</given-names>
            <surname>Lutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          , An Introduction to Description Logic, Cambridge University Press,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>T.</given-names>
            <surname>Altenkirch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chapman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Uustalu</surname>
          </string-name>
          , Monads need not be endofunctors,
          <source>Log. Methods Comput. Sci</source>
          .
          <year>2015</year>
          11 (
          <issue>1</issue>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>R.</given-names>
            <surname>Piro</surname>
          </string-name>
          ,
          <article-title>Model-theoretic characterisations of description logics</article-title>
          ,
          <source>Ph.D. thesis</source>
          , University of Liverpool, UK,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>A. R.</given-names>
            <surname>Divroodi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. A.</given-names>
            <surname>Nguyen</surname>
          </string-name>
          ,
          <article-title>On bisimulations for description logics</article-title>
          ,
          <source>Inf. Sci</source>
          .
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>S.</given-names>
            <surname>Abramsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Dawar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <article-title>The pebbling comonad in Finite Model Theory</article-title>
          ,
          <string-name>
            <surname>LICS</surname>
          </string-name>
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>S.</given-names>
            <surname>Abramsky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Jakl</surname>
          </string-name>
          , T. Paine,
          <article-title>Discrete density comonads and graph parameters</article-title>
          , arXiV
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>