An Introduction to Description Logic VIII Inherent intractability of terminological reasoning

Similar documents
An Introduction to Description Logic III

An Introduction to Description Logic IX Tableau-based algorithm

An Introduction to Description Logics

Knowledge Bases in Description Logics

A Goal-Oriented Algorithm for Unification in EL w.r.t. Cycle-Restricted TBoxes

Relations to first order logic

An Introduction to Modal Logic III

Subsumption of concepts in FL 0 for (cyclic) terminologies with respect to descriptive semantics is PSPACE-complete.

The Bayesian Ontology Language BEL

Phase 1. Phase 2. Phase 3. History. implementation of systems based on incomplete structural subsumption algorithms

Extending Unification in EL towards General TBoxes

Hybrid Unification in the Description Logic EL

COMPUTING LOCAL UNIFIERS IN THE DESCRIPTION LOGIC EL WITHOUT THE TOP CONCEPT

Least Common Subsumers and Most Specific Concepts in a Description Logic with Existential Restrictions and Terminological Cycles*

Fuzzy Description Logics

Restricted role-value-maps in a description logic with existential restrictions and terminological cycles

Complexity of Subsumption in the EL Family of Description Logics: Acyclic and Cyclic TBoxes

Role-depth Bounded Least Common Subsumers by Completion for EL- and Prob-EL-TBoxes

A Crisp Representation for Fuzzy SHOIN with Fuzzy Nominals and General Concept Inclusions

Complexity Sources in Fuzzy Description Logic

Finite Automata and Regular Languages (part III)

An Introduction to Modal Logic V

High Performance Absorption Algorithms for Terminological Reasoning

The Complexity of Lattice-Based Fuzzy Description Logics

LTCS Report. A finite basis for the set of EL-implications holding in a finite model

Chapter 2 Background. 2.1 A Basic Description Logic

Technische Universität Dresden. Fakultät Informatik EMCL Master s Thesis on. Hybrid Unification in the Description Logic EL

Rewriting Concepts Using Terminologies Revisited Franz Baader, Ralf Kusters, and Ralf Molitor LuFg Theoretical Computer Science, RWTH Aachen fb

Structured Descriptions & Tradeoff Between Expressiveness and Tractability

ten into an \related better" description E by using (some of) the names dened in T? In this paper, related will mean equivalent, and better will mean

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem

Deterministic Finite Automata. Non deterministic finite automata. Non-Deterministic Finite Automata (NFA) Non-Deterministic Finite Automata (NFA)

PSpace Automata for Description Logics

CEX and MEX: Logical Diff and Semantic Module Extraction in a Fragment of OWL

Optimisation of Terminological Reasoning

Languages. Non deterministic finite automata with ε transitions. First there was the DFA. Finite Automata. Non-Deterministic Finite Automata (NFA)

A Description Logic with Concrete Domains and a Role-forming Predicate Operator

CS 455/555: Finite automata

Algorithms for NLP

Description Logics. an introduction into its basic ideas

Technische Universität Dresden. Fakultät Informatik MCL Master s Thesis on

Nondeterministic Finite Automata

Description logics. Description Logics. Applications. Outline. Syntax - AL. Tbox and Abox

An Automata-Based Approach for Subsumption w.r.t. General Concept Inclusions in the Description Logic FL 0

LTCS Report. Exploring finite models in the Description Logic EL gfp. Franz Baader, Felix Distel. LTCS-Report 08-05

From Tableaux to Automata for Description Logics

COM364 Automata Theory Lecture Note 2 - Nondeterminism

LTCS Report. PSpace Automata with Blocking for Description Logics. Franz Baader Jan Hladik Rafael Peñaloza. LTCS-Report 06-04

Lecture 1: Finite State Automaton

Classes and conversions

Computational Models - Lecture 5 1

Reasoning in ELH w.r.t. General Concept Inclusion Axioms

Mathematical Logics Description Logic: Tbox and Abox

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,

Automata theory and its applications

Context-Free Languages

On the Decidability Status of Fuzzy ALC with General Concept Inclusions

b. Induction (LfP 50 3)

Fuzzy DLs over Finite Lattices with Nominals

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza

Dismatching and Local Disunification in EL

Automata and Languages

Fuzzy Ontologies over Lattices with T-norms

Mathematical Preliminaries. Sipser pages 1-28

A Tractable Rule Language in the Modal and Description Logics that Combine CPDL with Regular Grammar Logic

Foundations of Mathematics

Intro to Theory of Computation

Efficient Reasoning about Data Trees via Integer Linear Programming

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

LTCS Report. Subsumption in Finitely Valued Fuzzy EL. Stefan Borgwardt Marco Cerami Rafael Peñaloza. LTCS-Report 15-06

The Concept Difference for EL-Terminologies using Hypergraphs

}w!"#$%&'()+,-./012345<ya FI MU. Decidable Race Condition for HMSC. Faculty of Informatics Masaryk University Brno

LING 106. Knowledge of Meaning Lecture 3-1 Yimei Xiang Feb 6, Propositional logic

ALC Concept Learning with Refinement Operators

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Adaptive ALE-TBox for Extending Terminological Knowledge

Theory of computation: initial remarks (Chapter 11)

Finite-State Transducers

Constructing Finite Least Kripke Models for Positive Logic Programs in Serial Regular Grammar Logics

Representability in DL-Lite R Knowledge Base Exchange

Foundations for the Logical Difference of EL-TBoxes

Gödel Negation Makes Unwitnessed Consistency Crisp

Theory of Computation

Real-Time Systems. Lecture 15: The Universality Problem for TBA Dr. Bernd Westphal. Albert-Ludwigs-Universität Freiburg, Germany

What is this course about?

Reduced Ordered Binary Decision Diagrams

CMSC 330: Organization of Programming Languages

Reasoning with Inconsistent and Uncertain Ontologies

On Subsumption and Instance Problem in ELH w.r.t. General TBoxes

CSE 311: Foundations of Computing. Lecture 23: Finite State Machine Minimization & NFAs

The DL-Lite Family of Languages A FO Perspective

Push-down Automata = FA + Stack

Tight Complexity Bounds for Reasoning in the Description Logic BEL

Finite Universes. L is a fixed-length language if it has length n for some

The Complexity of Subsumption in Fuzzy EL

Propositional Logic: Models and Proofs

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

CDS 270 (Fall 09) - Lecture Notes for Assignment 8.

A MILP-based decision procedure for the (Fuzzy) Description Logic ALCB

Transcription:

An Introduction to Description Logic VIII Inherent intractability of terminological reasoning Marco Cerami Palacký University in Olomouc Department of Computer Science Olomouc, Czech Republic Olomouc, December 4 th 2014 Marco Cerami (UP) Description Logic VIII 4.12.2014 1 / 25

Introduction Introduction Marco Cerami (UP) Description Logic VIII 4.12.2014 2 / 25

Introduction Introduction Structural subsumption algorithms can be used to reason with acyclic TBoxes. In the 80 s it was supposed that it could keep the good computational performance as with respect to empty TBoxes. In 1990, Nebel indeed proves that reasoning with acyclic TBoxes in a language even simpler than FL is co-np-complete. We are mainly following the 1990 paper Terminological Reasoning is Inherently Intractable, by B. Nebel. The hardness proof is obtained by means of a reduction of a problem from automata theory. Marco Cerami (UP) Description Logic VIII 4.12.2014 3 / 25

The language T L The language T L Marco Cerami (UP) Description Logic VIII 4.12.2014 4 / 25

The language T L The language T L The name T L stands for terminological language. It is a fragment of FL obtained by omitting existential quantifications. Below we define the language T L: C, D ÝÑ A atomic concept C [ D conjunction @R.C value restriction Marco Cerami (UP) Description Logic VIII 4.12.2014 5 / 25

Reasoning in T L The language T L Reasoning in T L In T L concepts and axioms are trivially satisfiable, exactly like in FL. Concept subsumption w.r.t. the empty KB is clearly polynomial, exactly like in FL. Concept equivalence and subsumtion can be linearly reduced to each other in the following way: C D iff C D and D C C D iff C [ D C We will consider the problem of subsumption with respect to acyclic KBs. Marco Cerami (UP) Description Logic VIII 4.12.2014 6 / 25

Acyclic TBoxes The language T L Reasoning in T L An Acyclic TBox is a definitional TBox without cycles, that is: a TBox is said to be definitional when there appear at most one inclusion axiom of the form: for each atomic concept A; A C a TBox is said to be cyclic or a set of General Concept Inclusions (GCIs), when there is a sequence of inclusion axioms C 1 D 1,..., C n D n and a set of concepts A 1,..., A n 1, such that, for every 1 m n, A m appears both in D m 1 and in C m and A 1 appears both in D n and in C 1. Marco Cerami (UP) Description Logic VIII 4.12.2014 7 / 25

The language T L Reasoning in T L Reasoning with non-empty TBoxes If we consider the empty TBox, concept @hasparent.human is not subsumed by concept @hasparent.mammal. If we consider the knowledge base K pt q, where: T t Human Mammal } we have that concept @hasparent.human is subsumed by concept @hasparent.mammal in every model of K. Marco Cerami (UP) Description Logic VIII 4.12.2014 8 / 25

Expanded terminologies Expanded terminologies Marco Cerami (UP) Description Logic VIII 4.12.2014 9 / 25

Expanded terminologies Primitive and defined concepts Let T be an acyclic TBox, then: An atomic concept A is said to be defined if axiom A C appears in T, for some C. An atomic concept is said to be primitive if it is not defined. If concept name A is defined by axiom A C P T, hence T paq C is said to be the definition of A. Marco Cerami (UP) Description Logic VIII 4.12.2014 10 / 25

Expanded terminologies Expanded concepts and terminologies The definition function can be extended to complex concepts, in order to obtain expanded concepts: ˆT paq = T paq ˆT pc [ Dq = ˆT pcq [ ˆT pdq ˆT p@r.cq = @R. ˆT pcq If the TBox is acyclic, then the expansion process is finite, that is, there is a natural n such that: ˆT n ˆT n 1 In this case we call n the depth of T and ˆT n T, the completely expanded terminology. Marco Cerami (UP) Description Logic VIII 4.12.2014 11 / 25

Example Expanded terminologies Consider the knowledge base K pt q, where: T = { Human Mammal [ Biped, Man Human [ Male, Son Human [ Male [ @hasparents.human } Then: T = { Human Mammal [ Biped, Man Mammal [ Biped [ Male, Son Mammal [ Biped [ Male [ @hasparents.(mammal [ Biped) } Marco Cerami (UP) Description Logic VIII 4.12.2014 12 / 25

Expanded terminologies Reducing acyclic to empty TBoxes Is is easy to show by induction on the depth of T, that, for every concept C and every model I of T it holds: C I p T pcqq I. Moreover, the following statements are equivalent: Ÿ concept C is subsumed by concept D w.r.t. terminology T, Ÿ concept T pc q is subsumed by concept T pdq w.r.t. the empty terminology. Hence, we can define algorithm TSUBS?rD, C, T s from algorithm SUBS?rD, C s: TSUBS?rD, C, T s = SUBS?r T pdq, T pcqs Marco Cerami (UP) Description Logic VIII 4.12.2014 13 / 25

Expanded terminologies The expansion is not polynomial Let n P N and consider the following terminology T n : T n pc 0 q = C 0 T n pc 1 q = @R.C 0 [ @P.C 0 T n pc 2 q = @R.C 1 [ @P.C 1. T n pc n q = @R.C n 1 [ @P.C n 1 Hence, even though the size of T n grows linearly in n, the size of T n pc n q grows exponentially in n. Marco Cerami (UP) Description Logic VIII 4.12.2014 14 / 25

co-np-hardness co-np-hardness Marco Cerami (UP) Description Logic VIII 4.12.2014 15 / 25

co-np-hardness Unfolded terminologies Unfolding We define the unfolding function U which returns sets of concepts from concepts: UpAq = tau UpC [ Dq = UpCq Y UpDq Up@R.Cq = t@r.d D P UpCqu The completely unfolded form U T of a terminology T is defined by: U T U T Marco Cerami (UP) Description Logic VIII 4.12.2014 16 / 25

Example co-np-hardness Unfolding Consider the knowledge base K pt q, where: T = { Human Mammal [ Biped, Man Human [ Male, Son Human [ Male [ @hasparents.human } Then: U T = { {Human}={Mammal,Biped}, {Man}={Mammal,Biped,Male}, {Son}={Mammal,Biped,Male,@hasParents.Mammal, @hasparents.biped} } Marco Cerami (UP) Description Logic VIII 4.12.2014 17 / 25

co-np-hardness Unfolding Properties of the unfolded form Is is easy to show that, for every concept C and every model I of T it holds: C I pu T pcqq I. Every concept D P U T pcq is a linear description, that is a concept of the form: where A is primitive in T. @R 1.@R 2... @R n.a Moreover, the following statements are equivalent: Ÿ concept C is equivalent to concept D w.r.t. terminology T, Ÿ UT pc q U T pdq. Marco Cerami (UP) Description Logic VIII 4.12.2014 18 / 25

co-np-hardness Nondeterministic finite state automata Nondeterministic finite state automata A nondeterministic finite state automaton (NDFA) is a tuple: A pσ, Q, δ, q 0, Fq where: Σ is a set of symbols or alphabet, Q is a set of states, δ : Σ Q ÝÑ 2 Q is a transition function, q 0 P Q is the initial state, F Q is a set of accepting states. Marco Cerami (UP) Description Logic VIII 4.12.2014 19 / 25

co-np-hardness Nondeterministic finite state automata Properties of NDFAs A state q 1 P Q is reachable from a state q by word w s 1... s n iff there exists a sequence of states q 1,..., q n 1 with: Ÿ q q1, Ÿ q 1 q n 1, Ÿ qi 1 P δpq i, s i q, for 1 i n. The set LpAq of words w such that some final state is reachable from q 0 is called the language accepted by A. Two automata A 1 and A 2 are equivalent iff LpA 1 q LpA 2 q. A state q P Q is redundant either if it can not be reached from the initial state or if it can not reach any final state. Marco Cerami (UP) Description Logic VIII 4.12.2014 20 / 25

co-np-hardness Nondeterministic finite state automata Acyclic nonredundant NDFAs An automaton is called nonredundant if ti does not contain any redundant state. A NDFA is called acyclic if no state is reachable from itself. Let LpAq be the language of a nonredundant NDFA A. Then the following are equivalent: Ÿ Ÿ A is acyclic, LpAq is finite. If LpA 1 q and LpA 2 q are finite, then determining equivalence between A 1 and A 2 is co-np-complete. In what follows we will consider acyclic nonredundant NDFAs (ANDFAs). Marco Cerami (UP) Description Logic VIII 4.12.2014 21 / 25

co-np-hardness Reduction Reduction of ANDFAs Let A 1 pσ, Q 1, δ 1, q 01, F 1 q and A 2 pσ, Q 2, δ 2, q 02, F 2 q be two acyclic nonredundant NDFAs with Q 1 X Q 2 H. Then we can construct a terminology T A in the following way: N R Σ, N C Q 1 Y Q 2 Y F, T A pf q F is the only primitive concept, T A pqq # F, if q P F 1 Y F 2 t@s.q1 : q 1 P δ i pq, sq, i 1, 2u otherwise Since A 1 and A 2 are nonredundant, then the concepts are well-defined. Since A 1 and A 2 are acyclic, then so in T A and it is possible to define U TA. Marco Cerami (UP) Description Logic VIII 4.12.2014 22 / 25

Example co-np-hardness Reduction Let Σ ts, r, tu and q P Q be such that: δpq, sq tq 1, q 2 u, δpq, rq tq 2, q 3, q 4 u, δpq, tq tq 5, q 6 u, Then T A pqq @s.q 1 [ @s.q 2 [ @r.q 2 [ @r.q 3 [ @r.q 4 [ @t.q 5 [ @t.q 6 Where the states q 1, q 2, q 3, q 4, q 5 and q 6,, if are not final states, can be further expanded according to the function δ, but in the same way as for ˆT. Marco Cerami (UP) Description Logic VIII 4.12.2014 23 / 25

co-np-hardness Reduction Completeness of the reduction Let w s 1... s n P Σ and i 1, 2, then: w P LpA i q iff @s 1... @s n.f P U TAi pq 0i q (ñ) Assume that w is a word accepted by A i. Then there is a sequence of states q 1,..., q n 1 such that Ÿ q1 q 0i, Ÿ qn P F i, Ÿ qj 1 P δpq j, s j q, for 1 j n. By the way in which T A is constructed and the definition of U TAi, it is possible to prove by induction on the length of w, that @s 1... @s n.f P U TAi pq 0i q. (ð) Conversely, if @s 1... @s n.f P U TAi pq 0i q, then by the way T A is constructed, we have that a state q P F i is reachable from q 0i by w in A i. That is, w P LpA i q. Marco Cerami (UP) Description Logic VIII 4.12.2014 24 / 25

Conclusions co-np-hardness Reduction Hence LpA 1 q LpA 2 q iff q 01 TA q 02. Therefore, concept equivalence and subsumption in T L are co-np-hard problems. The fact that these problem are also in co-np is easy to prove: think on an algorithm guessing a linear description of concept C and checks whether it belongs to the completely unfolded form of concept D. Marco Cerami (UP) Description Logic VIII 4.12.2014 25 / 25