=Paper= {{Paper |id=Vol-3733/paper16 |storemode=property |title=Many-valued Temporal Weighted Knowledge Bases with Typicality for Explainability |pdfUrl=https://ceur-ws.org/Vol-3733/paper16.pdf |volume=Vol-3733 |authors=Mario Alviano,Marco Botta,Roberto Esposito,Laura Giordano,Daniele Theseider Duprรฉ |dblpUrl=https://dblp.org/rec/conf/cilc/AlvianoBE0D24 }} ==Many-valued Temporal Weighted Knowledge Bases with Typicality for Explainability== https://ceur-ws.org/Vol-3733/paper16.pdf
                         Many-valued Temporal Weighted Knowledge Bases with
                         Typicality for Explainability
                         Mario Alviano1,* , Marco Botta2,* , Roberto Esposito2,* , Laura Giordano3,* and
                         Daniele Theseider Duprรฉ3,*
                         1
                           DEMACS, University of Calabria, Via Bucci 30/B, 87036 Rende (CS), Italy
                         2
                           Dipartimento di Informatica, Universitร  di Torino, Corso Svizzera 185, 10149 Torino, Italy
                         3
                           DISIT, University of Piemonte Orientale, Viale Michel 11, 15121 Alessandria, Italy


                                      Abstract
                                      In this paper, we develop a many-valued semantics for the description logic ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž , a temporal extension of
                                      description logic ๐’œโ„’๐’ž, based on Linear-time Temporal Logic (LTL). We add a typicality operator to represent
                                      defeasible properties, and discuss the use of the (many-valued) temporal conditional logic and of weighted KBs
                                      for explaining the dynamic behaviour of a network.

                                      Keywords
                                      Preferential Logics, Temporal Logics, Many-valued Description Logics, Explainability




                         1. Introduction
                         Preferential extensions of Description Logics (DLs) allow reasoning with exceptions through the
                         identification of prototypical properties of individuals or classes of individuals. Defeasible inclusions
                         are allowed in the knowledge base, to model typical, defeasible, non-strict properties of individuals.
                         Their semantics extends DL semantics with a preference relation among domain individuals, along the
                         lines of the preferential semantics introduced by Kraus, Lehmann and Magidor [1, 2] (KLM for short).
                         Preferential extensions and rational extensions of the description logic ๐’œโ„’๐’ž [3] have been studied
                         [4, 5, 6], and several different closure constructions have been developed [7, 8, 9, 10, 11, 12], inspired by
                         Lehmann and Magidorโ€™s rational closure [2] and Lehmannโ€™s lexicographic closure [13]. More recently,
                         multi-preferential extensions of DLs have been developed, by allowing multiple preference relations
                         with respect to different concepts [14, 15, 16], as the semantic for ranked and weighted knowledge
                         bases with typicality.
                            LTL extensions of Description Logics are very well-studied in DLs literature, and we refer to [17, 18]
                         for surveys on temporal DLs and their complexity and decidability. While preferential extensions of
                         LTL with defeasible temporal operators have been recently studied [19, 20, 21] to enrich temporal
                         formalisms with non-monotonic reasoning features, a preferential extension of a temporal DL has been
                         proposed in [22], based on the approach proposed in [5] to define a description logic with typicality.
                         More specifically, in [22] we build over a temporal extension of ๐’œโ„’๐’ž, LTL๐’œโ„’๐’ž [17], based on Linear
                         Time Temporal Logic (LTL), to develop a temporal ๐’œโ„’๐’ž with typicality, LTLT          ๐’œโ„’๐’ž . Generalizing the
                         approach in [5], a typicality operator T (that selects the most typical instances of a concept) is added to
                         LTL๐’œโ„’๐’ž to represent temporal properties of concepts which admit exceptions.
                            It is proven that the preferential extension of LTLT๐’œโ„’๐’ž can be polynomially encoded into LTL๐’œโ„’๐’ž , and
                         this approach allows borrowing decidability and complexity results from LTL๐’œโ„’๐’ž . A similar encoding

                          CILC 2024: 39th Italian Conference on Computational Logic, June 26-28, 2024, Rome, Italy
                         *
                           Corresponding author.
                          $ mario.alviano@unical.it (M. Alviano); marco.botta@unito.it (M. Botta); roberto.esposito@unito.it (R. Esposito);
                          laura.giordano@uniupo.it (L. Giordano); dtd@uniupo.it (D. Theseider Duprรฉ)
                          ย€ https://alviano.net/ (M. Alviano); http://informatica.unito.it/persone/marco.botta/ (M. Botta);
                          http://informatica.unito.it/persone/roberto.esposito (R. Esposito); https://people.unipmn.it/laura.giordano/ (L. Giordano);
                          https://people.unipmn.it/dtd/ (D. Theseider Duprรฉ)
                           0000-0002-2052-2063 (M. Alviano); 0000-0001-9445-7770 (L. Giordano); 0000-0001-6798-4380 (D. Theseider Duprรฉ)
                                   ยฉ 2024 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).


CEUR
                  ceur-ws.org
Workshop      ISSN 1613-0073
Proceedings
can be given for a multi-preferential extension of LTLT ๐’œโ„’๐’ž , by allowing a concept-wise preferential
semantics, where different preferences are associated to different concepts.
  In this paper, we aim at developing a many-valued extension of LTL๐’œโ„’๐’ž with typicality, which
makes it possible to represent a concept inclusions such as

                          โˆƒlives_in.Town โŠ“ Young โŠ‘ T(โ™ขGranted _Loan),

(meaning that who lives in town and is young, normally is eventually granted a loan), where the
interpretation of some concepts (e.g., Young) may be non-crisp.
   In the paper we first recall fuzzy extensions of ๐’œโ„’๐’ž and temporal extensions of ๐’œโ„’๐’ž. Then, we
develop a many-valued extension of LTL๐’œโ„’๐’ž , by building on many-valued DLs, which are widely
studied in the literature, both for the fuzzy case [23, 24, 25, 26, 27] and for the finitely-valued case
[28, 29, 30, 31]. Then we add a typicality operator to the language of the many-valued LTL๐’œโ„’๐’ž , to get
a many-valued temporal extension of ๐’œโ„’๐’ž with typicality.
   We discuss extensions of the closure constructions for weighted knowledge bases with typicality
[15, 32, 33] to the temporal case. This allows for a finer grained representation of the plausibility of
prototypical properties of a concept, including temporal properties, by assigning weights to the different
typicality properties. We discuss how the preferential temporal logic can be used to provide a logical
interpretation of the transient behaviour of (recurrent) neural networks.


2. Fuzzy ๐’œโ„’๐’ž
Fuzzy description logics have been widely studied in the literature for representing vagueness in DLs
[23, 24, 25, 26, 27], based on the idea that concepts and roles can be interpreted as fuzzy sets. Formulas
in Mathematical Fuzzy Logic [34] have a degree of truth in an interpretation rather than being true or
false; similarly, axioms in a fuzzy DL have a degree of truth, usually in the interval [0, 1]. The finitely
many-valued case is also well studied for DLs [28, 29, 30, 31]. We first recall the semantics of a fuzzy
extension of ๐’œโ„’๐’ž, following [25]; then we will consider the finitely-valued case.
   Let ๐‘๐ถ be a set of concept names, ๐‘๐‘… a set of role names and ๐‘๐ผ a set of individual names. The set
of ๐’œโ„’๐’ž concepts (or, simply, concepts) can be defined inductively as follows:
      (i) ๐ด โˆˆ ๐‘๐ถ , โŠค and โŠฅ are concepts;
      (ii) if ๐ถ and ๐ท are concepts, then ๐‘Ÿ โˆˆ ๐‘๐‘… , then ๐ถ โŠ“ ๐ท, ๐ถ โŠ” ๐ท, ยฌ๐ถ, โˆ€๐‘Ÿ.๐ถ, โˆƒ๐‘Ÿ.๐ถ are
      concepts.
A fuzzy interpretation for ๐’œโ„’๐’ž is a pair ๐ผ = โŸจโˆ†, ยท๐ผ โŸฉ where: โˆ† is a non-empty domain and ยท๐ผ is fuzzy
interpretation function that assigns to each concept name ๐ด โˆˆ ๐‘๐ถ a function ๐ด๐ผ : โˆ† โ†’ [0, 1], to each
role name ๐‘Ÿ โˆˆ ๐‘๐‘… a function ๐‘Ÿ๐ผ : โˆ† ร— โˆ† โ†’ [0, 1], and to each individual name ๐‘Ž โˆˆ ๐‘๐ผ an element
๐‘Ž๐ผ โˆˆ โˆ†. A domain element ๐‘ฅ โˆˆ โˆ† belongs to the extension of ๐ด to some degree in [0, 1], i.e., ๐ด๐ผ is a
fuzzy set.
   The interpretation function ยท๐ผ is extended to complex concepts as follows:
     โŠค๐ผ (๐‘ฅ) = 1,            โŠฅ๐ผ (๐‘ฅ) = 0,
           ๐ผ
     (ยฌ๐ถ) (๐‘ฅ) = โŠ–๐ถ (๐‘ฅ),๐ผ

     (๐ถ โŠ“ ๐ท)๐ผ (๐‘ฅ) = ๐ถ ๐ผ (๐‘ฅ) โŠ— ๐ท๐ผ (๐‘ฅ),
     (๐ถ โŠ” ๐ท)๐ผ (๐‘ฅ) = ๐ถ ๐ผ (๐‘ฅ) โŠ• ๐ท๐ผ (๐‘ฅ),
     (โˆƒ๐‘Ÿ.๐ถ)๐ผ (๐‘ฅ) = sup๐‘ฆโˆˆฮ” ๐‘Ÿ๐ผ (๐‘ฅ, ๐‘ฆ) โŠ— ๐ถ ๐ผ (๐‘ฆ),
     (โˆ€๐‘Ÿ.๐ถ)๐ผ (๐‘ฅ) = inf ๐‘ฆโˆˆฮ” ๐‘Ÿ๐ผ (๐‘ฅ, ๐‘ฆ) โ–ท ๐ถ ๐ผ (๐‘ฆ),
where ๐‘ฅ โˆˆ โˆ†, and โŠ—, โŠ•, โ–ท and โŠ– are arbitrary but fixed t-norm, s-norm, implication function, and
negation function, chosen among the combination functions of some fuzzy logic. In particular, in
Gรถdel logic ๐‘Ž โŠ— ๐‘ = ๐‘š๐‘–๐‘›{๐‘Ž, ๐‘}, ๐‘Ž โŠ• ๐‘ = ๐‘š๐‘Ž๐‘ฅ{๐‘Ž, ๐‘}, ๐‘Ž โ–ท ๐‘ = 1 if ๐‘Ž โ‰ค ๐‘ and ๐‘ otherwise; โŠ–๐‘Ž = 1 if
๐‘Ž = 0 and 0 otherwise. In ลukasiewicz logic, ๐‘Ž โŠ— ๐‘ = ๐‘š๐‘Ž๐‘ฅ{๐‘Ž + ๐‘ โˆ’ 1, 0}, ๐‘Ž โŠ• ๐‘ = ๐‘š๐‘–๐‘›{๐‘Ž + ๐‘, 1},
๐‘Ž โ–ท ๐‘ = ๐‘š๐‘–๐‘›{1 โˆ’ ๐‘Ž + ๐‘, 1} and โŠ–๐‘Ž = 1 โˆ’ ๐‘Ž. Following [25], we will not commit to a specific choice of
combination functions,
  A fuzzy ๐’œโ„’๐’ž knowledge base ๐พ is a pair (๐’ฏ , ๐’œ) where ๐’ฏ is a fuzzy TBox and ๐’œ a fuzzy ABox. A
fuzzy TBox is a set of fuzzy concept inclusions of the form ๐ถ โŠ‘ ๐ท ๐œƒ ๐‘›, where ๐ถ โŠ‘ ๐ท is an ๐’œโ„’๐’ž concept
inclusion axiom, ๐œƒ โˆˆ {โ‰ฅ, โ‰ค, >, <} and ๐‘› โˆˆ [0, 1]. A fuzzy ABox ๐’œ is a set of fuzzy assertions of the
form ๐ถ(๐‘Ž)๐œƒ๐‘› or ๐‘Ÿ(๐‘Ž, ๐‘)๐œƒ๐‘›, where ๐ถ is an ๐’œโ„’๐’ž concept, ๐‘Ÿ โˆˆ ๐‘๐‘… , ๐‘Ž, ๐‘ โˆˆ ๐‘๐ผ , ๐œƒ โˆˆ {โ‰ฅ, โ‰ค, >, <} and
๐‘› โˆˆ [0, 1]. Following Bobillo and Straccia [27], we assume that fuzzy interpretations are witnessed, i.e.,
the sup and inf are attained at some point of the involved domain. The interpretation function ยท๐ผ is also
extended to axioms as follows:

                    (๐ถ โŠ‘ ๐ท)๐ผ = inf ๐‘ฅโˆˆฮ”๐ผ ๐ถ ๐ผ (๐‘ฅ) โ–ท ๐ท๐ผ (๐‘ฅ)           (๐ถ(๐‘Ž))๐ผ = ๐ถ ๐ผ (๐‘Ž๐ผ )

Definition 1 (Satisfiability and entailment for โ„’๐’ž ๐‘› knowledge bases). Let ๐พ = (๐’ฏ , ๐’œ) be a
weighted โ„’๐’ž ๐‘› knowledge base, and ๐ผ be an interpretation. The satisfiability relation |= is defined as
follows:

    โ€ข ๐ผ |= ๐ถ โŠ‘ ๐ท ๐œƒ๐›ผ if (๐ถ โŠ‘ ๐ท)๐ผ ๐œƒ๐›ผ;
    โ€ข ๐ผ |= ๐ถ(๐‘Ž) ๐œƒ๐›ผ if ๐ถ ๐ผ (๐‘Ž๐ผ ) ๐œƒ๐›ผ;
    โ€ข ๐ผ |= ๐‘Ÿ(๐‘Ž, ๐‘) ๐œƒ ๐‘› if ๐‘Ÿ๐ผ (๐‘Ž๐ผ , ๐‘๐ผ )๐œƒ ๐‘›.
    โ€ข for a set ๐‘† of axioms, ๐ผ |= ๐‘† if ๐ผ |= ๐ธ for all ๐ธ โˆˆ ๐‘†;
    โ€ข ๐ผ |= ๐พ if ๐ผ |= ๐’ฏ and ๐ผ |= ๐’œ.

If ๐ผ |= ฮ“, we say that ๐ผ satisfies ฮ“ or that ๐ผ is a model of ฮ“ (for ฮ“ being an axiom, a set of axioms, or a
KB). An axiom ๐ธ is entailed by ๐พ, written ๐พ |= ๐ธ, if ๐ผ |= ๐ธ holds for all models ๐ผ of ๐พ.

   For the finitely many-valued case, we assume the truth space to be ๐’ž๐‘› = {0, ๐‘›1 , . . . , ๐‘›โˆ’1  ๐‘›
                                                                                             ๐‘› , ๐‘› }, for an
integer ๐‘› โ‰ฅ 1 [28, 29, 30]. In the following, we will use ๐’œโ„’๐’ž ๐‘› to refer to a finitely-valued extension
of ๐’œโ„’๐’ž interpreted over the truth space ๐’ž๐‘› , without committing to a specific choice of combination
functions.


3. The temporal Description Logic ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž
The temporal Description Logic ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž is a temporal extension of ๐’œโ„’๐’ž based on linear time temporal
logic (LTL) The concepts of ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž can be formed by adding to the constructors of ๐’œโ„’๐’ž the temporal
operators โ—‹ (next), ๐’ฐ (until), โ™ข (eventually) and โ–ก (always) of LTL. Temporal extensions of Description
Logics are very well-studied in the literature; see, for instance, the survey on temporal DLs and their
complexity and decidability by Lutz et al. [17].
   The set of temporally extended concepts is the following:

           ๐ถ ::= ๐ด | โŠค | โŠฅ | ๐ถ โŠ“ ๐ท | ๐ถ โŠ” ๐ท | ยฌ๐ถ | โˆƒ๐‘Ÿ.๐ถ | โˆ€๐‘Ÿ.๐ถ | โ—‹๐ถ | ๐ถ๐’ฐ๐ท | โ™ข๐ถ | โ–ก๐ถ

where ๐ด โˆˆ ๐‘๐ถ , and ๐ถ and ๐ท are temporally extended concepts.
  A temporal interpretation for ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž is a pair โ„ = (โˆ†โ„ , ยทโ„ ), where โˆ†โ„ is a nonempty domain; ยทโ„ is
an extension function that maps each concept name ๐ถ โˆˆ ๐‘๐ถ to a set ๐ถ โ„ โІ N ร— โˆ†โ„ , each role name
๐‘Ÿ โˆˆ ๐‘๐‘… to a relation ๐‘Ÿโ„ โІ N ร— โˆ†โ„ ร— โˆ†โ„ , and each individual name ๐‘Ž โˆˆ ๐‘๐ผ to an element ๐‘Žโ„ โˆˆ โˆ†โ„ .
Following [17] we assume individual names to be rigid, i.e., having the same interpretation at any time
point. In a pair (๐‘›, ๐‘‘) โˆˆ N ร— โˆ†โ„ , ๐‘› represents a time point and ๐‘‘ a domain element; (๐‘›, ๐‘‘) โˆˆ ๐ถ โ„ means
that ๐‘‘ is an instance of concept ๐ถ at time point ๐‘›, and similarly for (๐‘›, ๐‘‘1 , ๐‘‘2 ) โˆˆ ๐‘Ÿโ„ . Function ยทโ„ is
extended to complex concepts as follows:

      โŠคโ„ = N ร— โˆ†โ„          โŠฅโ„ = โˆ…       (ยฌ๐ถ)โ„ = (N ร— โˆ†โ„ )โˆ–๐ถ โ„
      (๐ถ โŠ“ ๐ท)โ„ = ๐ถ โ„ โˆฉ ๐ทโ„           (๐ถ โŠ” ๐ท)โ„ = ๐ถ โ„ โˆช ๐ทโ„
      (โˆƒ๐‘Ÿ.๐ถ)โ„ = {(๐‘›, ๐‘ฅ) โˆˆ N ร— โˆ†โ„ | โˆƒ๐‘ฆ.(๐‘›, ๐‘ฅ, ๐‘ฆ) โˆˆ ๐‘Ÿโ„ and (๐‘›, ๐‘ฆ) โˆˆ ๐ถ โ„ }
      (โˆ€๐‘Ÿ.๐ถ)โ„ = {(๐‘›, ๐‘ฅ) โˆˆ N ร— โˆ†โ„ | โˆ€๐‘ฆ.(๐‘›, ๐‘ฅ, ๐‘ฆ) โˆˆ ๐‘Ÿโ„ โ‡’ (๐‘›, ๐‘ฆ) โˆˆ ๐ถ โ„ }
      (โ—‹๐ถ)โ„ = {(๐‘›, ๐‘ฅ) โˆˆ N ร— โˆ†โ„ | (๐‘› + 1, ๐‘ฅ) โˆˆ ๐ถ โ„ }
      (โ™ข๐ถ)โ„ = {(๐‘›, ๐‘ฅ) โˆˆ N ร— โˆ†โ„ | โˆƒ๐‘š โ‰ฅ ๐‘› such that (๐‘š, ๐‘ฅ) โˆˆ ๐ถ โ„ }
      (โ–ก๐ถ)โ„ = {(๐‘›, ๐‘ฅ) โˆˆ N ร— โˆ†โ„ | โˆ€๐‘š โ‰ฅ ๐‘›, (๐‘š, ๐‘ฅ) โˆˆ ๐ถ โ„ }
      (๐ถ๐’ฐ๐ท)โ„ = {(๐‘›, ๐‘ฅ) โˆˆ N ร— โˆ†โ„ | โˆƒ๐‘š โ‰ฅ ๐‘› s.t. (๐‘š, ๐‘ฅ) โˆˆ ๐ทโ„
                                        and (๐‘˜, ๐‘ฅ) โˆˆ ๐ถ โ„ , โˆ€๐‘˜ (๐‘› โ‰ค ๐‘˜ < ๐‘š)}

While the definition above assumes a constant domain (i.e., that the domain elements are the same at all
time points), in the following we will also consider the case with expanding domains, when there is a
sequence of increasing domains โˆ†โ„0 โІ โˆ†โ„1 โІ . . ., one for each time point.
   For simplicity, in the following we will focus on the case of non-temporal TBox, i.e., to a TBox
containing a set of concept inclusions ๐ถ โŠ‘ ๐ท, where ๐ถ, ๐ท are temporally extended concepts, but
without temporal operator applied to the concept inclusions themselves.
   The notions of satisfiability and model of a knowledge base can be easily extended to LTLT     ๐’œโ„’๐’ž with
non-temporal TBox. All inclusions in the (non-temporal) TBox ๐’ฏ are regarded as global temporal
constraints, and have to be satisfied at all time points, i.a., a concept inclusion ๐ถ โŠ‘ ๐ท is satisfied in an
interpretation โ„ if ๐ถ โ„ โІ ๐ทโ„ .
   It has been proven that, for non-temporal TBoxes, concept satisfiability in LTL๐’œโ„’๐’ž w.r.t. non-
temporal TBoxes is ExpTime-complete, both with expanding domains [35] and with constant domains
[17]. The complexity of other cases and, specifically, the cases of temporal ABoxes [36] and temporal
TBoxes (which allow temporal operators over concept inclusions), have as well been studied in the
literature, and we refer to [17] for a discussion of the result and algorithms for satisfiability checking.
   In [22] we have shown that, in the two-valued case, a typicality operator can be added to LTL๐’œโ„’๐’ž and
that a preferential extension of LTL๐’œโ„’๐’ž with typicality can be polynomially encoded into LTL๐’œโ„’๐’ž . The
encoding allows borrowing some decidability and complexity results from ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž to its preferential
version with typicality.
   In the following section, we first develop a many-valued semantics for LTL๐’œโ„’๐’ž and, then, we define
the typicality operator. Finally, we extend the notion of weighted KBs to the temporal, many-valued
case.


4. A many-valued semantics for ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž
Let us now move to the many-valued case. To define a temporal extension of ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž with typicality,
we develop a many-valued semantics for ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž , by interpreting, at each time point, all concepts and
role names over a truth degree set ๐’ฎ equipped with a preorder relation โ‰ค๐’ฎ , a bottom element 0๐’ฎ , and a
top element 1๐’ฎ . We denote by <๐’ฎ and โˆผ๐’ฎ the related strict preference relation and equivalence relation.
In the following we will assume ๐’ฎ to be the unit interval [0, 1] or the finite set ๐’ž๐‘› , for an integer ๐‘› โ‰ฅ 1,
and that โŠ—, โŠ•, โ–ท and โŠ– are a t-norm, an s-norm, an implication function, and a negation function
in some well known system of many-valued logic. In particular, in the following we will restrict to
continuous t-norms.
   A many-valued temporal interpretations for ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž is a pair โ„ = (โˆ†โ„ , ยทโ„ ), where โˆ†โ„ is a non-
empty domain; ยทโ„ is an interpretation function that maps each concept name ๐ด โˆˆ ๐‘๐ถ to a function
๐ดโ„ : N ร— โˆ†โ„ โ†’ ๐’ฎ, each role name ๐‘Ÿ โˆˆ ๐‘๐‘… to a function ๐‘Ÿโ„ : N ร— โˆ†โ„ ร— โˆ†โ„ โ†’ ๐’ฎ, and each individual
name ๐‘Ž โˆˆ ๐‘๐ผ to an element ๐‘Žโ„ โˆˆ โˆ†โ„ . Again, in the following definition we assume individual names
to be rigid, i.e., having the same interpretation at any time point ๐‘›. Given a time point ๐‘› โˆˆ N and a
domain element ๐‘‘ โˆˆ โˆ†โ„ , the interpretation ๐ดโ„ of a concept name ๐ด assigns to the pair (๐‘›, ๐‘‘) a value
๐ดโ„ (๐‘›, ๐‘‘) โˆˆ ๐’ฎ representing the degree of membership of ๐‘‘ in concept ๐ด at time point ๐‘›; and similarly
for roles.
   The interpretation function ยท๐ผ is extended to complex concepts as follows (where, for the semantics
of the temporal operators, we adapt a formulation from [37]):
      โŠฅโ„ (๐‘›, ๐‘ฅ) = 0, โŠคโ„ (๐‘›, ๐‘ฅ) = 1
      (ยฌ๐ถ)โ„ (๐‘›, ๐‘ฅ) = โŠ–๐ถ โ„ (๐‘›, ๐‘ฅ)
      (๐ถ โŠ“ ๐ท)โ„ (๐‘›, ๐‘ฅ) = ๐ถ โ„ (๐‘›, ๐‘ฅ) โŠ— ๐ทโ„ (๐‘›, ๐‘ฅ)
      (๐ถ โŠ” ๐ท)โ„ (๐‘›, ๐‘ฅ) = ๐ถ โ„ (๐‘›, ๐‘ฅ) โŠ• ๐ทโ„ (๐‘›, ๐‘ฅ)
      (โˆƒ๐‘Ÿ.๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐‘ ๐‘ข๐‘๐‘ฆโˆˆฮ” ๐‘Ÿโ„ (๐‘›, ๐‘ฅ, ๐‘ฆ) โŠ— ๐ถ โ„ (๐‘›, ๐‘ฆ)
      (โˆ€๐‘Ÿ.๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐‘–๐‘›๐‘“๐‘ฆโˆˆฮ” ๐‘Ÿโ„ (๐‘›, ๐‘ฅ, ๐‘ฆ) โ–ท ๐ถ โ„ (๐‘›, ๐‘ฆ)
      (โ—‹๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐ถ โ„ (๐‘› + 1, ๐‘ฅ)
      (โ™ข๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐‘šโ‰ฅ๐‘› ๐ถ โ„ (๐‘š, ๐‘ฅ)
                    โจ๏ธ€

      (โ–ก๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐‘šโ‰ฅ๐‘› ๐ถ โ„ (๐‘š, ๐‘ฅ)
                    โจ‚๏ธ€

      (๐ถ๐’ฐ๐ท)โ„ (๐‘›, ๐‘ฅ) = ๐‘šโ‰ฅ๐‘› (๐ทโ„ (๐‘š, ๐‘ฅ) โŠ— ๐‘šโˆ’1   โ„
                      โจ๏ธ€              โจ‚๏ธ€
                                        ๐‘˜=๐‘› ๐ถ (๐‘˜, ๐‘ฅ))

  The semantics of โ™ข, โ–ก and ๐’ฐ requires a passage to the limit. Following [37], one can introduce a
bounded version for โ™ข, โ–ก and ๐’ฐ, by adding new temporal operators โ™ข๐‘ก (eventually in the next ๐‘ก time
points), โ–ก๐‘ก (always within ๐‘ก time points) and ๐’ฐ๐‘ก , with the interpretation:

      (โ™ข๐‘ก ๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐‘›+๐‘ก      โ„
                       โจ๏ธ€
                          ๐‘š=๐‘› ๐ถ (๐‘š, ๐‘ฅ)
      (โ–ก๐‘ก ๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐‘›+๐‘ก      โ„
                       โจ‚๏ธ€
                         ๐‘š=๐‘› ๐ถ (๐‘š, ๐‘ฅ)
      (๐ถ๐’ฐ๐‘ก ๐ท)โ„ (๐‘›, ๐‘ฅ) = ๐‘›+๐‘ก
                        โจ๏ธ€         โ„
                                              โจ‚๏ธ€๐‘šโˆ’1 โ„
                           ๐‘š=๐‘› (๐ท (๐‘š, ๐‘ฅ) โŠ—        ๐‘˜=๐‘› ๐ถ (๐‘˜, ๐‘ฅ))

so that (โ™ข๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐‘™๐‘–๐‘š๐‘กโ†’+โˆž (โ™ข๐‘ก ๐ถ)โ„ (๐‘›, ๐‘ฅ) and (โ–ก๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐‘™๐‘–๐‘š๐‘กโ†’+โˆž (โ–ก๐‘ก ๐ถ)โ„ (๐‘›, ๐‘ฅ) and
(๐ถ๐’ฐ๐ท)โ„ (๐‘›, ๐‘ฅ) = ๐‘™๐‘–๐‘š๐‘กโ†’+โˆž (๐ถ๐’ฐ๐‘ก ๐ท)โ„ (๐‘›, ๐‘ฅ). The existence of the limits is ensured by the fact that
(โ™ข๐ถ)โ„ (๐‘›, ๐‘ฅ) and (๐ถ๐’ฐ๐ท)โ„ (๐‘›, ๐‘ฅ) are increasing in ๐‘›, while (โ–ก๐ถ)โ„ (๐‘›, ๐‘ฅ) is decreasing in ๐‘›.
   Note that, here, we have not considered the additional temporal operators (โ€œsoonโ€, โ€œalmost alwaysโ€,
etc.) introduced by Frigeri et al. [37] for representing vagueness in the temporal dimension. As a
consequence, for the case ๐’ฎ = [0, 1], the semantics above is an extension to ๐’œโ„’๐’ž of the FLTL (Fuzzy
Linear-time Temporal Logic) semantics by Lamine and Kabanza [38].

Proposition 1. For all concepts ๐ถ and ๐ท, and for all time points ๐‘›, the following properties hold:
  (โ™ข๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐ถ ๐ผ (๐‘›, ๐‘ฅ) โŠ• (โ™ข๐ถ)โ„ (๐‘› + 1, ๐‘ฅ)
  (โ–ก๐ถ)โ„ (๐‘›, ๐‘ฅ) = ๐ถ ๐ผ (๐‘›, ๐‘ฅ) โŠ— (โ–ก๐ถ)โ„ (๐‘› + 1, ๐‘ฅ)
  (๐ถ๐’ฐ๐ท)โ„ (๐‘›, ๐‘ฅ) = ๐ท๐ผ (๐‘›, ๐‘ฅ) โŠ• (๐ถ ๐ผ (๐‘›, ๐‘ฅ) โŠ— (๐ถ๐’ฐ๐ท)โ„ (๐‘› + 1, ๐‘ฅ))

Note that, although in this section we have considered a constant domain โˆ†โ„ , for a many-valued prefer-
ential temporal interpretation โ„, expanding domains could have been considered as well, considering a
domain โˆ†โ„๐‘› for each time point ๐‘›, with condition โˆ†โ„0 โІ โˆ†โ„1 โІ . . ., as for LTL๐’œโ„’๐’ž in the the two-valued
case [17].
   As in [22], for simplicity, we consider knowledge bases with non-temporal TBox and ABox, where a
non-temporal TBox ๐’ฏ is a set of concept inclusions ๐ถ โŠ‘ ๐ท, where (as in the two-valued case) ๐ถ, ๐ท
are temporally extended concepts, but no temporal operator is applied in front of concept inclusions
themselves. The notions of satisfiability and model of a knowledge base can be easily generalized to a
many-valued LTL๐’œโ„’๐’ž knowledge base with non-temporal ABox and TBox. As ๐’œ is a non-temporal
ABox, the assertions in ๐’œ are evaluated at time point 0. On the other hand, concept inclusions in the
(non-temporal) TBox ๐’ฏ are evaluated by considering all time points ๐‘›.
   Given a many-valued temporal interpretation โ„ = โŸจโˆ†โ„ , ยทโ„ โŸฉ, the interpretation function ยท๐ผ is extended
to inclusion axioms as follows:

                         (๐ถ โŠ‘ ๐ท)๐ผ = inf ๐‘ฅโˆˆฮ”๐ผ ,๐‘›โˆˆN (๐ถ ๐ผ (๐‘›, ๐‘ฅ) โ–ท ๐ท๐ผ (๐‘›, ๐‘ฅ))

  Let ๐พ be an LTL๐’œโ„’๐’ž knowledge base ๐พ = (๐’ฏ , ๐’œ) with non-temporal ABox and TBox.
Definition 2 (Satisfiability in many-valued LTL๐’œโ„’๐’ž ). Given a many-valued temporal interpretation
for โ„ = โŸจโˆ†โ„ , ยทโ„ โŸฉ, satisfiability of an axiom in โ„ is defined as follows:
    โ€ข โ„ |= ๐ถ โŠ‘ ๐ท ๐œƒ๐›ผ if (๐ถ โŠ‘ ๐ท)โ„ ๐œƒ๐›ผ;
    โ€ข โ„ |= ๐ถ(๐‘Ž) ๐œƒ๐›ผ if ๐ถ โ„ (0, ๐‘Žโ„ ) ๐œƒ๐›ผ;
    โ€ข โ„ |= ๐‘Ÿ(๐‘Ž, ๐‘) ๐œƒ ๐›ผ if ๐‘Ÿโ„ (0, ๐‘Žโ„ , ๐‘โ„ )๐œƒ ๐›ผ.
The interpretation โ„ is a model of ๐พ = (๐’ฏ , ๐’œ) if โ„ satisfies all concept inclusions in ๐’ฏ and all assertions in
๐’œ. A knowledge base ๐พ = (๐’ฏ , ๐’œ) is satisfiable in the many-valued extension of LTL๐’œโ„’๐’ž if a many-valued
temporal model โ„ = โŸจโˆ†โ„ , ยทโ„ โŸฉ of ๐พ exists.


5. A many-valued ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž withTypicality
As in the two-valued case [22], the language of a many-valued ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž can be extended with typicality
concepts of the form T(๐ถ) representing the set of typical instances of concept ๐ถ. The typicality operator
T may occur both in concepts of TBox and ABox, but it cannot be nested. Unlike [5, 10], where a
typicality operator was introduced for ๐’œโ„’๐’ž, here we do not require that the typicality operator only
occurs on the left hand side of concept inclusions of the form T(๐ถ) โŠ‘ ๐ท, and this choice is in agreement
with [39, 40]. As usual, we assume that the typicality operator T cannot be nested. Extended concepts
can be built by combining the concept constructors in LTL๐’œโ„’๐’ž with the typicality operator. They can
freely occur in concept inclusions, such as, for instance, the following ones (adapted from [22]):

                                     T(Professor ) โŠ‘ (โˆƒteaches.Course)๐’ฐRetired
                       โˆƒlives_in.Town โŠ“ Young โŠ‘ T(โ™ขGranted _Loan)

Note that, while the semantics in [22] was two-valued, in this example, the interpretation of some
concepts (e.g., Young and Granted _Loan) may have a non-crisp value in [0, 1]. Indeed, being young is
a fuzzy concept and Granted _Loan may have a degree of truth, for the different domain individuals
(depending, e.g., on the outcome of some classifier on input exemplars).
   From the semantic side, in the many valued case, the degree of membership of domain individuals
in concept ๐ถ at the different time points ๐‘› induces a preference relation โ‰บ๐‘›๐ถ over the domain. Such
preference relations are used to define the typical ๐ถ-elements at the different time points.
   Given a temporal interpretation โ„ = โŸจโˆ†โ„ , ยทโ„ โŸฉ over a truth degree set ๐’ฎ, a preference relation โ‰บ๐‘›๐ถ on
โˆ†โ„ can be associated to any concept ๐ถ and time point ๐‘› โˆˆ N, based on the many valued interpretation
of concepts in โ„ and on the the strict partial order <๐’ฎ : for all ๐‘ฅ, ๐‘ฆ โˆˆ โˆ†โ„ ,
                               ๐‘ฅ โ‰บ๐‘›๐ถ ๐‘ฆ if and only if ๐ถ โ„ (๐‘›, ๐‘ฆ) <๐’ฎ ๐ถ โ„ (๐‘›, ๐‘ฅ),
where ๐‘ฅ โ‰บ๐‘›๐ถ ๐‘ฆ means that ๐‘ฅ is preferred to ๐‘ฆ wrt ๐ถ at time point ๐‘›.
  The many-valued temporal semantics introduced in the previous section easily extends to the language
with typicality. Note that this semantics is inherently multi-preferential.
  We regard typical ๐ถ-elements (at time point ๐‘›) as the domain elements ๐‘ฅ which are preferred with
respect to โ‰บ๐‘›๐ถ among all domain elements (and such that ๐ถ โ„ (๐‘ฅ) ฬธ= 0). The interpretation of typicality
concepts T(๐ถ) can be defined as follows:
Definition 3. Given an interpretation โ„ = โŸจโˆ†โ„ , ยทโ„ โŸฉ, for all ๐‘› โˆˆ N, ๐‘ฅ โˆˆ โˆ†โ„ , (T(๐ถ))โ„ (๐‘›, ๐‘ฅ) = ๐ถ โ„ (๐‘ฅ),
if there is no ๐‘ฆ โˆˆ โˆ†โ„ such that ๐‘ฆ โ‰บ๐‘›๐ถ ๐‘ฅ; (T(๐ถ))โ„ (๐‘›, ๐‘ฅ) = 0, otherwise.
When (T(๐ถ))โ„ (๐‘ฅ) > 0, ๐‘ฅ is said to be a typical ๐ถ-element in โ„. Note that, when โ‰ค๐’ฎ is a total preorder
(as it is in the cases ๐’ฎ = [0, 1] and ๐’ฎ = ๐’ž๐‘› ), relation โ‰บ๐‘›๐ถ is an irreflexive, transitive and modular relation
over โˆ†โ„ , like ranked preference relations in KLM-style ranked interpretations by Lehmann and Magidor
[2]. For finitely-many truth values, โ‰บ๐‘›๐ถ is also well-founded.
   For ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž with typicality, the notion of satisfiability of an axiom in a multi-preferential temporal
interpretation โ„ and the notion of model of a KB, are the ones given in Definition 2 (again for non-
temporal KBs).
  In the following, we will denote with LTL๐’œโ„’๐’ž ๐‘› T the many-valued extension of ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž with
typicality, with truth degree set ๐’ฎ = ๐’ž๐‘› , for ๐‘› โ‰ฅ 1, and with ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž F T the fuzzy extension of
๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž with typicality (where ๐’ฎ = [0, 1]).


6. Weighted temporal knowledge bases
Besides a set of strict concept inclusions in the TBox, weighted KBs also allow a set of typicality inclusions
(or defeasible inclusions), each one with a weight. Weighted typicality inclusions for a concept ๐ถ๐‘– have
the form (T(๐ถ๐‘– ) โŠ‘ ๐ท๐‘— , ๐‘ค๐‘–๐‘— ), and describe the prototypical properties of ๐ถ๐‘– -elements (where ๐ท๐‘— is a
concept, and the weight ๐‘ค๐‘–๐‘— is a real number). A concept ๐ถ๐‘– for which weighted typicality inclusions
are provided is said to be a distinguished concept.
   A weighted โ„’๐’ž ๐‘› T knowledge base is a tuple โŸจ๐’ฏ , ๐’Ÿ, ๐’œโŸฉ, where the (strict) TBox ๐’ฏ is a set of concept
inclusions, the defeasible TBox ๐’Ÿ is a set of weighted typicality inclusions for the distinguished concepts
๐ถ๐‘– , and ๐’œ is a set of assertions.
   Consider the weighted ๐’œโ„’๐’žT knowledge base ๐พ = โŸจ๐’ฏ , ๐’Ÿ, ๐’œโŸฉ, over the set of distin-
guished concepts {Student, Employee, Person, . . .}, with ๐’ฏ containing, for instance, the inclusion
Student โŠ‘ Person โ‰ฅ 1 .
   The set ๐’Ÿ of weighted typicality inclusions may contain, e.g., the following inclusions, describing
the prototypical properties of concept Student:
     (T(Student) โŠ‘ Has_Classes, +50),
     (T(Student) โŠ‘ Active,+35) ,
     (T(Student) โŠ‘ โˆƒhas_Boss.โŠค, -70),
That is, a student normally has classes and is active, but she usually does not have a boss (negative
weight). Accordingly, a student having classes, but not a boss, is more typical than an active student
having classes and a boss. In the two valued case, one can evaluate how typical are two domain
individuals mary and tom as students, by considering their weight with respect of concept Student,
i.e., by summing the (positive or negative) weights of the defeasible inclusions satisfied by mary and
tom, and comparing them. The higher the weight the more typical is the individual. In the many-value
case, in defining the weight of a domain element ๐‘ฅ with respect to a distinguished concept ๐ถ๐‘– , we have
to consider that, in an interpretation โ„, at time point ๐‘›, element ๐‘ฅ may belong to other concepts to
some degree (e.g., at time point ๐‘›, mary may be active with degree 0.8, i.e., Active โ„ (๐‘›, mary) = 0.8).
   Given a many-valued temporal interpretation โ„ = โŸจโˆ†โ„ , ยทโ„ โŸฉ, the weight of ๐‘ฅ โˆˆ โˆ†โ„ with respect to a
distinguished concept ๐ถ๐‘– at time point ๐‘› is given by
                                  โ„ (๐‘ฅ) =                               โ„
                                            โˆ‘๏ธ€
                               ๐‘Š๐‘–,๐‘›            (T(๐ถ๐‘– )โŠ‘๐ท๐‘— ,๐‘ค๐‘–๐‘— )โˆˆ๐’Ÿ ๐‘ค๐‘–๐‘— ๐ท๐‘— (๐‘›, ๐‘ฅ).

                                       โ„ (๐‘ฅ), the more typical is ๐‘ฅ as an instance of ๐ถ ), at time point
Intuitively, the higher the value of ๐‘Š๐‘–,๐‘›                                                 ๐‘–
๐‘› (considering the defeasible properties of ๐ถ๐‘– ). Here, the membership degree ๐ท๐‘—โ„ (๐‘›, ๐‘ฅ) of ๐‘ฅ in each
concept ๐ท๐‘— at time point ๐‘› is considered.
   The notions of faithful, coherent and ๐œ™-coherent semantics introduced for many-valued weighted
KBs [41, 15, 16] can be smoothly extended to the temporal case. Generalizing from the non-temporal
case, we expect the membership degree of a domain element ๐‘ฅ in a concept ๐ถ๐‘– at a time point ๐‘› to be
in agreement with the weight of ๐‘ฅ with respect to concept ๐ถ๐‘– , at the same time point ๐‘›. We consider
some different agreement conditions at time point ๐‘›, as follows.
   A many-valued temporal interpretation โ„ = โŸจโˆ†โ„ , ยทโ„ โŸฉ is faithful at ๐‘› if, for all ๐‘ฅ, ๐‘ฆ โˆˆ โˆ†โ„ ,
                                                 โ„          โ„
                                    ๐‘ฅ โ‰บ๐‘›๐ถ๐‘– ๐‘ฆ โ‡’ ๐‘Š๐‘–,๐‘› (๐‘ฅ) > ๐‘Š๐‘–,๐‘› (๐‘ฆ)

The interpretation โ„ is coherent at ๐‘› if, for all ๐‘ฅ, ๐‘ฆ โˆˆ โˆ†โ„ ,
                                                   โ„          โ„
                                    ๐‘ฅ โ‰บ๐‘›๐ถ๐‘– ๐‘ฆ iff ๐‘Š๐‘–,๐‘› (๐‘ฅ) > ๐‘Š๐‘–,๐‘› (๐‘ฆ)

Given a collection of monotonically non-decreasing functions ๐œ™๐‘– : R โ†’ ๐’ฎ, one for each concept ๐ถ๐‘– โˆˆ ๐’ž:
  - the interpretation โ„ is ๐œ™-coherent at ๐‘› if, for all ๐‘ฅ โˆˆ โˆ†โ„ ,

                                         ๐ถ๐‘–โ„ (๐‘›, ๐‘ฅ) = ๐œ™๐‘– (๐‘Š๐‘–,๐‘›
                                                            โ„
                                                               (๐‘ฅ))

  - the interpretation โ„ is transient ๐œ™-coherent at ๐‘› if, for all ๐‘ฅ โˆˆ โˆ†โ„ ,

                                       ๐ถ๐‘–โ„ (๐‘› + 1, ๐‘ฅ) = ๐œ™๐‘– (๐‘Š๐‘–,๐‘›
                                                              โ„
                                                                 (๐‘ฅ))

   It is easy to see that a many-valued temporal interpretation โ„ = โŸจโˆ†โ„ , ยทโ„ โŸฉ determines, at each
                                                                              ๐‘›    ๐‘›             ๐‘›
time point ๐‘›, a (non-temporal) many-valued interpretation ๐ฝ ๐‘› = โŸจโˆ†๐ฝ , ยท๐ฝ โŸฉ, where โˆ†๐ฝ = โˆ†โ„ , (for
                   ๐‘›
๐ด โˆˆ ๐‘๐ถ ), and ๐‘Ÿ๐ฝ (๐‘ฅ, ๐‘ฆ) = ๐‘Ÿโ„ (๐‘›, ๐‘ฅ, ๐‘ฆ) (for ๐‘Ÿ โˆˆ ๐‘๐‘… ). Letting the interpretation of typicality in ๐ฝ ๐‘›
exploit the preference relations โ‰บ๐‘›๐ถ๐‘– for each ๐ถ๐‘– (see Section 5), i.e., the preference relation induced
by the many-valued interpretation of concept ๐ถ๐‘– in ๐ฝ ๐‘› , a many-valued temporal interpretation โ„
can be regarded as a sequence ๐ฝ 0 , ๐ฝ 1 , ๐ฝ 2 , . . . of many-valued preferential interpretations, as the ones
considered in [33]. At each single time point the KLM properties of preferential consequence relation
are then be expected to hold.
   When considering the single time point ๐‘›, the condition that the interpretation โ„ is coherent (resp.,
faithful, ๐œ™-coherent) at ๐‘›, means that the preferential interpretation ๐ฝ ๐‘› is coherent (resp., faithful,
๐œ™-coherent) according to their definition in [33]. Different notions of agreement at different time points
can then be combined to give rise to different semantics of a temporal weighted KB, and different
notions of entailment (based on different closure constructions).


7. Temporal weighted KBs and the transient behaviour of a neural
   network
In [33] it has been shown that many-valued Weighted KBs with typicality can provide a logical inter-
pretation to some neural network model. Specifically, the ๐œ™-coherent semantics allows to capture the
stationary states of multilayer networks as well as of networks with cyclic dependencies. In this section,
we are interested in the transient behavior of a network.
   Let us first recall from [42] the model of a neuron as an information-processing unit in โˆ‘๏ธ€  an (artificial)
neural network. A neuron ๐‘˜ can be described by the following pair of equations: ๐‘ข๐‘˜ = ๐‘›๐‘—=1 ๐‘ค๐‘˜๐‘— ๐‘ฅ๐‘— ,
and ๐‘ฆ๐‘˜ = ๐œ™(๐‘ข๐‘˜ + ๐‘๐‘˜ ), where ๐‘ฅ1 , . . . , ๐‘ฅ๐‘› are the input signals, ๐‘ค๐พ1 , . . . , ๐‘ค๐‘˜๐‘› are synaptic weights; ๐‘๐‘˜
is the bias, ๐œ™ an activation function, and ๐‘ฆ๐‘˜ is the output signal of unitโˆ‘๏ธ€     ๐‘˜. By adding a new synapse
with input ๐‘ฅ0 = +1 and synaptic weight ๐‘ค๐‘˜0 = ๐‘๐‘˜ , one can write: ๐‘ข๐‘˜ = ๐‘›๐‘—=0 ๐‘ค๐‘˜๐‘— ๐‘ฅ๐‘— , and ๐‘ฆ๐‘˜ = ๐œ™(๐‘ข๐‘˜ ),
where ๐‘ข๐‘˜ is called the induced local field of the neuron. The neuron can be represented as a directed
graph, where the input signals ๐‘ฅ1 , . . . , ๐‘ฅ๐‘› and the output signal ๐‘ฆ๐‘˜ of neuron ๐‘˜ are nodes of the graph.
An edge from ๐‘ฅ๐‘— to ๐‘ฆ๐‘˜ , labelled ๐‘ค๐‘˜๐‘— , means that ๐‘ฅ๐‘— is an input signal of neuron ๐‘˜ with synaptic weight
๐‘ค๐‘˜๐‘— .
   A neural network can then be seen as โ€œa directed graph consisting of nodes with interconnecting
synaptic and activation links" [42]: nodes in the graph are the neurons (the processing units) and the
weight ๐‘ค๐‘–๐‘— on the edge from node ๐‘— to node ๐‘– represents โ€œthe strength of the connection [..] by which
unit ๐‘— transmits information to unit ๐‘–" [43]. Source nodes (i.e., nodes without incoming edges) produce
the input signals to the graph. Neural network models are classified by their synaptic connection
topology. In a feedforward network the architectural graph is acyclic, while in a recurrent network it
contains cycles. In a recurrent network at least one feedback exists, so that โ€œthe output of a node in
the system influences in part the input applied to that particular element" [42]. A time delay may be
associated to feedback connections.
   Let us consider a trained network ๐’ฉ . We do not put restrictions on the topology the network.
Following the approach in [33], ๐’ฉ can be mapped into a (non-temporal) weighted conditional knowledge
base ๐พ ๐’ฉ [15, 33], by regarding the units in the network as concept names and the synaptic connections
between units as weighted inclusions.
   If ๐ถ๐‘˜ is the concept name associated to unit ๐‘˜ and ๐ถ๐‘—1 , . . . , ๐ถ๐‘—๐‘š are the concept names associated
to units ๐‘—1 , . . . , ๐‘—๐‘š , whose output signals are the input signals for unit ๐‘˜, with synaptic weights
๐‘ค๐‘˜,๐‘—1 , . . . , ๐‘ค๐‘˜,๐‘—๐‘š , then unit ๐‘˜ can be associated a set ๐’ฏ๐ถ๐‘˜ of weighted typicality inclusions: T(๐ถ๐‘˜ ) โŠ‘ ๐ถ๐‘—1
with ๐‘ค๐‘˜,๐‘—1 , . . . , T(๐ถ๐‘˜ ) โŠ‘ ๐ถ๐‘—๐‘š with ๐‘ค๐‘˜,๐‘—๐‘š .
   It has been proven that the input-output behavior of a multilayer network ๐’ฉ can be captured by a
preferential interpretation ๐ผ๐’ฉ      ฮ” built over a set of input stimuli โˆ† (e.g., the test set), through a simple

construction, which exploits the activity level of units for the input stimuli.
   A logical characterization of a trained multi-layer network ๐’ฉ is established [33] by proving that the
preferential interpretation ๐ผ๐’ฉ     ฮ” , describing the network behavior over a set โˆ† of input stimuli, is indeed

a ๐œ™-coherent model of the weighted knowledge base ๐พ ๐’ฉ and, vice-versa, that any ๐œ™-coherent model of
the knowledge base ๐พ ๐’ฉ captures the behavior of the network over some set โˆ† of input stimuli. Also
in the case the network is not feedforward, the ๐œ™-coherent semantics allows the stationary states of the
network ๐’ฉ to be captured.
   This approach allows for the verification of conditional properties of the network (of the form
T(๐ถ) โŠ ๐ท โ‰ฅ ๐œƒ) by model checking over the preferential interpretation ๐ผ๐’ฉ              ฮ” , or by using entailment
                                                ๐’ฉ
from the conditional knowledge base ๐พ (e.g., in an ASP encoding of a finitely-valued semantics[32]).
Both the model checking and entailment approach have been used in the verification of properties of
feedforward neural networks for the recognition of basic emotions.
   In the temporal case, when we consider a temporal preferential model โ„ of the weighted knowledge
base ๐พ ๐’ฉ , we may represent different states of the network at different time points.
   When โ„ is ๐œ™-coherent at time point ๐‘›, the condition (stated above) that, for all ๐‘ฅ โˆˆ โˆ†โ„ ,
                                                            โˆ‘๏ธ
                                          ๐ถ๐‘–โ„ (๐‘›, ๐‘ฅ) = ๐œ™๐‘– (    ๐‘ค๐‘–โ„Ž ๐ทโ„Žโ„ (๐‘›, ๐‘ฅ))
                                                        โ„Ž

imposes that the (non-temporal) interpretation ๐ฝ ๐‘› at time point ๐‘› represents a stationary                state of
network ๐’ฉ . In such a case, ๐œ™๐‘– plays the role of the activation function, and the sum โ„Ž ๐‘ค๐‘–โ„Ž ๐ทโ„Žโ„ (๐‘›, ๐‘ฅ)
                                                                                                 โˆ‘๏ธ€
plays the role of the induced local field.
   However, the temporal formalism also allows to capture the dynamic behavior of the network beyond
stationary states, and this is especially interesting when the network ๐’ฉ is recurrent. In this case, the
knowledge base ๐พ ๐’ฉ contains cyclic dependencies in DBox.
   By imposing the condition that โ„ is a transient ๐œ™-coherent interpretation at all time points ๐‘›, one can
enforce that the interpretations ๐ฝ 0 , ๐ฝ 1 , ๐ฝ 2 , . . . at successive time points describe the dynamic evolution
of the activity of units in the network (where the activity of each unit at time point ๐‘› + 1 depends
on the activity of incoming units at time point ๐‘›). The temporal formalism provides a semantics for
capturing the trajectories of the network state. Alternatively, time delayed feedback connections can be
easily captured by temporal operators in ๐พ ๐’ฉ .
   Once a trained neural network has been represented as a weighted defeasible knowledge base ๐พ ๐’ฉ ,
entailment allows for temporal properties to be proved over the runs representing the evolution of
the network, an approach which may be computationally quite costly, depending on the size of the
neural network and on the length of the runs. The non-temporal case is already challenging, and
we refer to complexity results and to an experimentation of some different ASP based encodings of
defeasible entailment for the verification of properties of a neural network, both in the feedforward
case and in the cyclic case [33, 44]. The model checking approach, on the other hand, does not require
to consider in the model โ„๐’ฉ ฮ” the activity of all units, but only of the units involved in the properties to

be verified. Similarly, not all time points need to be considered, but only those corresponding to the
states of interest.
   An interesting direction for future work, is an extension to the temporal case of the model-checking
approach developed in Datalog [45, 33] for the verification of conditional properties of a network, for
post-hoc verification.
8. Conclusions
In this paper, we develop a many-valued, temporal description logic with typicality, extending ๐ฟ๐‘‡ ๐ฟ๐’œโ„’๐’ž
to deal with defeasible reasoning. Our extension of LTL๐’œโ„’๐’ž builds, on the one hand, on fuzzy and
many-valued DLs, and, on the other hand, on preferential DLs with typicality. We have first developed
a many-valued semantics for LTL๐’œโ„’๐’ž , and then added to the language a typicality operator, based on a
(multi-) preferential semantics. Finally, we have defined an extension of weighted knowledge bases
with typicality to the temporal many-valued case, for representing prototypical properties of different
classes in the temporal case.
   On a different route, a preferential LTL with defeasible temporal operators has been studied in [20, 21],
where the decidability of meaningful fragments of the logic is proven, and tableaux based proof methods
for such fragments is developed [19, 21]. Our approach does not consider defeasible temporal operators
nor preferences over time points, but combines standard LTL operators with the typicality operator in
a many-valued temporal ๐’œโ„’๐’ž. Preferences are over domain elements, but they change over time.
   In previous work, we have developed a preferential temporal description logics with typicality
LTLT                                         T
     ๐’œโ„’๐’ž [22]. The monotonic logic LTL๐’œโ„’๐’ž is further extended with multiple preferences. Such
extensions show that the concept-wise multi-preferential semantic in [14] adapts smoothly to the
temporal case. In the two-valued case, the semantics for rank and weighted ๐’œโ„’๐’ž knowledge bases has
been defined based on semantic closure constructions [14, 15], developed in the spirit of Lehmannโ€™s
lexicographic closure [13], Kern-Isbernerโ€™s c-representations [46, 47] and Weydertโ€™s algebraic semi-
qualitative approach [48], Casini and Stracciaโ€™s fuzzy rational closure [49], but allowing for multiple
preferences defining a ranking on individuals for each concept. In this paper, we have considered the
temporal many-valued case and developed a semantics for weighted knowledge bases that deals with
different agreement conditions at the different time points, leading to different closure constructions for
the temporal conditional logics.
   Much work has been recently devoted to the combination of neural networks and symbolic reasoning
[50, 51, 52]. While conditional weighted KBs have been shown to capture (in the many-valued case) the
stationary states of a neural network (or its finite approximation) [15, 33], and allow for combining
empirical knowledge with elicited knowledge for reasoning and for post-hoc verification, adding a
temporal dimension opens to the possibility of verifying properties concerning the dynamic behaviour
of the network, based on a model checking approach or an entailment based approach.
   A different approach for dealing with defeasibility in temporal DL formalism has been proposed in
[53], by combining a (dynamic) temporal action logic [54] for reasoning about actions (whose semantics
is based on a notion of temporal answer set) and an โ„ฐโ„’โŠฅ ontology. The temporal action logic allows for
complex actions, and the proof methods are based on ASP encodings of bounded model checking [54].
   Extending the above mentioned ASP encodings to deal with model checking in temporal preferential
interpretations is a direction of future work. Future work also includes studying the decidability for
fragments of the logic and exploiting the formalism for explainability.


Acknowledgement
We thank the anonymous referees for their helpful suggestions. This work was partially supported by
GNCS-INdAM project 2024 โ€œLCXAI: Logica Computazionale per eXplainable Artificial Intelligenceโ€.
Mario Alviano was partially supported by Italian Ministry of University and Research (MUR) under PRIN
project PRODE โ€œProbabilistic declarative process miningโ€, CUP H53D23003420006 under PNRR project
FAIR โ€œFuture AI Researchโ€, CUP H23C22000860006, under PNRR project Tech4You โ€œTechnologies for
climate change adaptation and quality of life improvementโ€, CUP H23C22000370006, and under PNRR
project SERICS โ€œSEcurity and RIghts in the CyberSpaceโ€, CUP H73C22000880001; by Italian Ministry of
Health (MSAL) under POS projects CAL.HUB.RIA (CUP H53C22000800006) and RADIOAMICA (CUP
H53C22000650006); by Italian Ministry of Enterprises and Made in Italy under project STROKE 5.0
(CUP B29J23000430005); and by the LAIA lab (part of the SILA labs).
References
 [1] S. Kraus, D. Lehmann, M. Magidor, Nonmonotonic reasoning, preferential models and cumulative
     logics, Artificial Intelligence 44 (1990) 167โ€“207.
 [2] D. Lehmann, M. Magidor, What does a conditional knowledge base entail?, Artificial Intelligence
     55 (1992) 1โ€“60.
 [3] F. Baader, D. Calvanese, D. McGuinness, D. Nardi, P. Patel-Schneider, The Description Logic
     Handbook - Theory, Implementation, and Applications, Cambridge, 2007.
 [4] K. Britz, J. Heidema, T. Meyer, Semantic preferential subsumption, in: G. Brewka, J. Lang (Eds.),
     KR 2008, AAAI Press, Sidney, Australia, 2008, pp. 476โ€“484.
 [5] L. Giordano, V. Gliozzi, N. Olivetti, G. L. Pozzato, ALC+T: a preferential extension of Description
     Logics, Fundamenta Informaticae 96 (2009) 1โ€“32.
 [6] L. Giordano, V. Gliozzi, N. Olivetti, G. L. Pozzato, A NonMonotonic Description Logic for Reasoning
     About Typicality, Artif. Intell. 195 (2013) 165โ€“202.
 [7] G. Casini, U. Straccia, Rational Closure for Defeasible Description Logics, in: T. Janhunen,
     I. Niemelรค (Eds.), JELIA 2010, volume 6341 of LNCS, Springer, Helsinki, 2010, pp. 77โ€“90.
 [8] G. Casini, U. Straccia, Defeasible inheritance-based description logics, Journal of Artificial
     Intelligence Research (JAIR) 48 (2013) 415โ€“473.
 [9] G. Casini, T. Meyer, I. J. Varzinczak, , K. Moodley, Nonmonotonic Reasoning in Description Logics:
     Rational Closure for the ABox, in: 26th International Workshop on Description Logics (DL 2013),
     volume 1014 of CEUR Workshop Proceedings, 2013, pp. 600โ€“615.
[10] L. Giordano, V. Gliozzi, N. Olivetti, G. L. Pozzato, Semantic characterization of rational closure:
     From propositional logic to description logics, Art. Int. 226 (2015) 1โ€“33.
[11] K. Britz, G. Casini, T. Meyer, K. Moodley, U. Sattler, I. Varzinczak, Principles of klm-style defeasible
     description logics, ACM Trans. Comput. Log. 22 (2021) 1:1โ€“1:46.
[12] L. Giordano, V. Gliozzi, Reasoning about exceptions in ontologies: from the lexicographic closure
     to the skeptical closure, Fundam. Informaticae 176 (2020) 235โ€“269.
[13] D. J. Lehmann, Another perspective on default reasoning, Ann. Math. Artif. Intell. 15 (1995) 61โ€“82.
[14] L. Giordano, D. Theseider Duprรฉ, An ASP approach for reasoning in a concept-aware multiprefer-
     ential lightweight DL, TPLP 10(5) (2020) 751โ€“766.
[15] L. Giordano, D. Theseider Duprรฉ, Weighted defeasible knowledge bases and a multipreference
     semantics for a deep neural network model, in: Proc. JELIA 2021, May 17-20, volume 12678 of
     LNCS, Springer, 2021, pp. 225โ€“242.
[16] L. Giordano, D. Theseider Duprรฉ, An ASP approach for reasoning on neural networks under a
     finitely many-valued semantics for weighted conditional knowledge bases, Theory Pract. Log.
     Program. 22 (2022) 589โ€“605.
[17] C. Lutz, F. Wolter, M. Zakharyaschev, Temporal description logics: A survey, in: TIME, 2008, pp.
     3โ€“14.
[18] A. Artale, R. Kontchakov, A. Kovtunova, V. Ryzhikov, F. Wolter, M. Zakharyaschev, Ontology-
     mediated query answering over temporal data: A survey (invited talk), in: TIME 2017, October
     16-18, 2017, Mons, Belgium, volume 90 of LIPIcs, 2017, pp. 1:1โ€“1:37.
[19] A. Chafik, F. C. Alili, J. Condotta, I. Varzinczak, A one-pass tree-shaped tableau for defeasible LTL,
     in: TIME 2021, September 27-29, 2021, Klagenfurt, Austria, volume 206 of LIPIcs, 2021.
[20] A. Chafik, F. C. Alili, J. Condotta, I. Varzinczak, On the decidability of a fragment of preferential
     LTL, in: TIME 2020, September 23-25, 2020, Bozen-Bolzano, Italy, volume 178 of LIPIcs, Schloss
     Dagstuhl - Leibniz-Zentrum fรผr Informatik, 2020.
[21] A. Chafik, Defeasible temporal logics for the specification and verification of exception-tolerant
     systems, PhD Thesis, Artois University, 2022.
[22] M. Alviano, L. Giordano, D. Theseider Duprรฉ, Preferential temporal description logics with
     typicality and weighted knowledge bases, in: Proc. 38th Italian Conference on Computational
     Logic, Udine, Italy, June 21-23, volume 3428 of CEUR Workshop Proc., 2023.
[23] U. Straccia, Towards a fuzzy description logic for the semantic web (preliminary report), in: ESWC
     2005, Crete, May 29 - June 1, volume 3532 of LNCS, Springer, 2005, pp. 167โ€“181.
[24] G. Stoilos, G. B. Stamou, V. Tzouvaras, J. Z. Pan, I. Horrocks, Fuzzy OWL: uncertainty and the
     semantic web, in: OWLED*05 Workshop, volume 188 of CEUR Workshop Proc., 2005.
[25] T. Lukasiewicz, U. Straccia, Description logic programs under probabilistic uncertainty and fuzzy
     vagueness, Int. J. Approx. Reason. 50 (2009) 837โ€“853.
[26] S. Borgwardt, F. Distel, R. Peรฑaloza, The limits of decidability in fuzzy description logics with
     general concept inclusions, Artif. Intell. 218 (2015) 23โ€“55.
[27] F. Bobillo, U. Straccia, Reasoning within fuzzy OWL 2 EL revisited, Fuzzy Sets Syst. 351 (2018)
     1โ€“40.
[28] A. Garcรญa-Cerdaรฑa, E. Armengol, F. Esteva, Fuzzy description logics and t-norm based fuzzy logics,
     Int. J. Approx. Reason. 51 (2010) 632โ€“655.
[29] F. Bobillo, U. Straccia, Reasoning with the finitely many-valued ลukasiewicz fuzzy Description
     Logic SROIQ, Inf. Sci. 181 (2011) 758โ€“778.
[30] F. Bobillo, M. Delgado, J. Gรณmez-Romero, U. Straccia, Joining Gรถdel and Zadeh Fuzzy Logics in
     Fuzzy Description Logics, Int. J. Uncertain. Fuzziness Knowl. Based Syst. 20 (2012) 475โ€“508.
[31] S. Borgwardt, R. Peรฑaloza, The complexity of lattice-based fuzzy description logics, J. Data Semant.
     2 (2013) 1โ€“19.
[32] M. Alviano, L. Giordano, D. Theseider Duprรฉ, Complexity and scalability of defeasible reasoning
     in many-valued weighted knowledge bases, in: JELIA 2023, Dresden, Germany, September 20-22,
     2023, Proc., volume 14281 of LNCS, Springer, 2023, pp. 481โ€“497.
[33] M. Alviano, F. Bartoli, M. Botta, R. Esposito, L. Giordano, D. Theseider Duprรฉ, A preferential
     interpretation of multilayer perceptrons in a conditional logic with typicality, Int. Journal of
     Approximate Reasoning 164 (2024).
[34] P. Cintula, P. Hรกjek, C. Noguera (Eds.), Handbook of Mathematical Fuzzy Logic, volume 37-38,
     College Publications, 2011.
[35] K. Schild, Combining terminological logics with tense logic, in: EPIA, 1993, pp. 105โ€“120.
[36] F. Baader, S. Ghilardi, C. Lutz, LTL over description logic axioms, in: Proceedings of the 21st
     International Workshop on Description Logics (DL2008), Dresden, Germany, May 13-16, 2008,
     volume 353 of CEUR Workshop Proc., CEUR-WS.org, 2008.
[37] A. Frigeri, L. Pasquale, P. Spoletini, Fuzzy time in linear temporal logic, ACM Trans. Comput. Log.
     15 (2014) 30:1โ€“30:22.
[38] K. Lamine, F. Kabanza, History checking of temporal fuzzy logic formulas for monitoring behavior-
     based mobile robots, in: 12th IEEE Int. Conf. on Tools with Artificial Intelligence (ICTAI 2000),
     13-15 November 2000, Vancouver, BC, Canada, 2000, pp. 312โ€“319.
[39] L. Giordano, V. Gliozzi, Encoding a preferential extension of the description logic SROIQ into
     SROIQ, in: Proc. ISMIS 2015, volume 9384 of LNCS, Springer, 2015, pp. 248โ€“258.
[40] R. Booth, G. Casini, T. Meyer, I. Varzinczak, On rational entailment for propositional typicality
     logic, Artif. Intell. 277 (2019).
[41] L. Giordano, On the KLM properties of a fuzzy DL with Typicality, in: Proc. ECSQARU 2021,
     Prague, Sept. 21-24, 2021, volume 12897 of LNCS, Springer, 2021, pp. 557โ€“571.
[42] S. Haykin, Neural Networks - A Comprehensive Foundation, Pearson, 1999.
[43] P. McLeod, K. Plunkett, E. Rolls (Eds.), Introduction to Connectionist Modelling of Cognitive
     Processes, Oxford university Press, 1998.
[44] M. Alviano, L. Giordano, D. Theseider Duprรฉ, Complexity and scalability of defeasible reasoning
     in many-valued weighted knowledge bases with typicality, J. Logic and Comput. (2024). To appear.
[45] F. Bartoli, M. Botta, R. Esposito, L. Giordano, D. Theseider Duprรฉ, An ASP approach for reasoning
     about the conditional properties of neural networks: an experiment in the recognition of basic
     emotions, in: Datalog 2.0, volume 3203 of CEUR Workshop Proc., 2022.
[46] G. Kern-Isberner, Conditionals in Nonmonotonic Reasoning and Belief Revision - Considering
     Conditionals as Agents, volume 2087 of LNCS, Springer, 2001.
[47] G. Kern-Isberner, C. Eichhorn, Structural inference from conditional knowledge bases, Stud Logica
     102 (2014) 751โ€“769.
[48] E. Weydert, System JLZ - rational default reasoning by minimal ranking constructions, Journal of
     Applied Logic 1 (2003) 273โ€“308.
[49] G. Casini, U. Straccia, Towards Rational Closure for Fuzzy Logic: The Case of Propositional Gรถdel
     Logic, in: LPAR-19, Stellenbosch, volume 8312 of LNCS, Springer, 2013, pp. 213โ€“227.
[50] L. Serafini, A. S. dโ€™Avila Garcez, Learning and reasoning with logic tensor networks, in: XVth Int.
     Conf. of the Italian Association for Artificial Intelligence, AI*IA 2016, Genova, Italy, Nov 29 - Dec
     1, volume 10037 of LNCS, Springer, 2016, pp. 334โ€“348.
[51] L. C. Lamb, A. S. dโ€™Avila Garcez, M. Gori, M. O. R. Prates, P. H. C. Avelar, M. Y. Vardi, Graph neural
     networks meet neural-symbolic computing: A survey and perspective, in: C. Bessiere (Ed.), Proc.
     IJCAI 2020, ijcai.org, 2020, pp. 4877โ€“4884.
[52] M. Setzu, R. Guidotti, A. Monreale, F. Turini, D. Pedreschi, F. Giannotti, GlocalX - from local to
     global explanations of black box AI models, Artif. Intell. 294 (2021) 103457.
[53] L. Giordano, A. Martelli, D. Theseider Duprรฉ, Reasoning about actions with โ„ฐโ„’ ontologies and
     temporal answer sets for DLTL, in: Logic Programming and Nonmonotonic Reasoning - LPNMR
     2022, volume 13416 of LNCS, Springer, 2022, pp. 231โ€“244.
[54] L. Giordano, A. Martelli, D. Theseider Duprรฉ, Reasoning about actions with temporal answer sets,
     Theory and Practice of Logic Programming 13 (2013) 201โ€“225.