LDK R Logics for Data and Knowledge Representation Description Logics: tableaux.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

CS848: Topics in Databases: Foundations of Query Optimization Topics covered  Introduction to description logic: Single column QL  The ALC family of.
OWL - DL. DL System A knowledge base (KB) comprises two components, the TBox and the ABox The TBox introduces the terminology, i.e., the vocabulary of.
Logic & Critical Reasoning
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Logic.
Logic Concepts Lecture Module 11.
© The McGraw-Hill Companies, Inc., Chapter 8 The Theory of NP-Completeness.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Truth Trees Intermediate Logic.
Plan for today Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search.
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
ALCN. Tableaux Calculus Rules Intersection (C D)(x) C(x) D(x) Unless already present.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Technion 1 (Yet another) decision procedure for Equality Logic Ofer Strichman and Orly Meir Technion.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
Backtracking Reading Material: Chapter 13, Sections 1, 2, 4, and 5.
Part 6: Description Logics. Languages for Ontologies In early days of Artificial Intelligence, ontologies were represented resorting to non-logic-based.
LDK R Logics for Data and Knowledge Representation Description Logics as query language.
An Introduction to Description Logics. What Are Description Logics? A family of logic based Knowledge Representation formalisms –Descendants of semantic.
Logics for Data and Knowledge Representation Propositional Logic: Reasoning Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Tableau Algorithm.
Notes on DL Reasoning Shawn Bowers April, 2004.
LDK R Logics for Data and Knowledge Representation ClassL (part 3): Reasoning with an ABox 1.
Topics in artificial intelligence 1/1 Dr hab. inż. Joanna Józefowska, prof. PP Reasoning and search techniques.
An Introduction to Description Logics (chapter 2 of DLHB)
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Description Logics: Logic foundation of Semantic Web Semantic.
Logics for Data and Knowledge Representation Exercises: DL.
Sound Global Caching for Abstract Modal Tableaux Rajeev Goré The Australian National University  Linh Anh Nguyen University of Warsaw CS&P’2008.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
LDK R Logics for Data and Knowledge Representation Description Logics (ALC)
More on Description Logic(s) Frederick Maier. Note Added 10/27/03 So, there are a few errors that will be obvious to some: So, there are a few errors.
LDK R Logics for Data and Knowledge Representation Description Logics.
4-Nov-05 CS6795 Semantic Web Techniques 1 Description Logic – 2.
LDK R Logics for Data and Knowledge Representation ClassL (Propositional Description Logic with Individuals) 1.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
LDK R Logics for Data and Knowledge Representation ClassL (part 2): Reasoning with a TBox 1.
ece 627 intelligent web: ontology and beyond
Knowledge Repn. & Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
ICS 353: Design and Analysis of Algorithms Backtracking King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2011 Adina Magda Florea
Of 29 lecture 15: description logic - introduction.
Logics for Data and Knowledge Representation Exercises: DL.
LDK R Logics for Data and Knowledge Representation Description Logics: family of languages.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Knowledge Representation and Inference Dr Nicholas Gibbins 32/3019.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
LDK R Logics for Data and Knowledge Representation Description Logics.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
ece 720 intelligent web: ontology and beyond
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Encoding Knowledge with First Order Predicate Logic
Encoding Knowledge with First Order Predicate Logic
Description logics (book, page 456)
Logics for Data and Knowledge Representation
Encoding Knowledge with First Order Predicate Logic
Logics for Data and Knowledge Representation
Presentation transcript:

LDK R Logics for Data and Knowledge Representation Description Logics: tableaux

Tableaux Calculus  The Tableaux calculus is a decision procedure to check satisfiability of a DL formula.  The procedure looks for a model satisfying the formula in input  The basic idea is to incrementally build the model by looking at the formula and by decomposing it into pieces in a top-down fashion.  The procedure exhaustively tries all possibilities so that it can eventually prove that no model could be found and therefore the formula is unsatisfiable. 2

Preview example C = ( ∃ R.A) ⊓ (∃ R.B) ⊓ (∃ R.  (A ⊔ B)) C = ( ∃ R.A) ⊓ (∃ R.B) ⊓ (∃ R.(  A ⊓  B))De Morgan In Negation Normal Form C is safisfiable iff I(C) ≠ ∅ for some I C1 = ∃ R.AC2 = ∃ R.B C3 = ∃ R.(  A ⊓  B) Decomposition For C1  ∃ (b,c) ∈ I(R) and c ∈ I(A) For C2  ∃ (b,d) ∈ I(R) and d ∈ I(B) For C3  ∃ (b,e) ∈ I(R) and e ∈ I(  A ⊓  B)  e ∈ I(  A) and I(  B)  e must be a new symbol different from c and d. The following ABox is consistent with C: {R(b,c), A(c), R(b, d), B(d), R(b, e)} 3

The Tableau Algorithm  The formula C in input is translated into Negation Normal Form.  An ABox A is incrementally constructed by adding assertions according to the constraints in C (identified by decomposition) following precise transformation rules  Each time we have more than one option we split the space of the solutions as in a decision tree (i.e. in presence of ⊔)  When a contradiction is found (i.e. A is inconsistent) we need to try another path in the space of the solutions (backtracking)  The algorithm stops when either we find a consistent A satisfying all the constraints in C (the formula is satisfiable) or there is no consistent A (the formula is unsatisfiable) 4

T={Mother ≡ Female ⊓ ∃ hasChild.Person} A={Mother(Anna)} Is ¬ ∃ hasChild.Person ⊓ ¬ ∃ hasParent. Person) satisfiable? Expand A w.r.t. T Mother(Anna)  (Female ⊓ ∃ hasChild.Person)(Anna)  A’ = A ∪ {Female(Anna), ( ∃ hasChild.Person)(Anna)} (¬ ∃ hasChild.Person ⊓ ¬ ∃ hasParent.Person)(Anna)  A’ = A ∪ {¬ ∃ hasChild.Person)(Anna), ¬ ∃ hasParent.Person)(Anna)} Both of them must be true, but the first constraint is clearly in contradiction with A’ Transformation rules  ⊓ -rule Condition: A contains (C1 ⊓ C2)(x), but not both C1(x) and C2(x) Action: A’ = A ∪ {C1(x), C2(x)} 5

T={Parent≡ ∃ hasChild.Female ⊔∃ hasChild.Male, Person≡Male ⊔ Female, Mother≡Parent ⊓ Female} A={Mother(Anna)} Is ¬ ∃ hasChild.Person satisfiable? Expand A w.r.t. T A = {Mother(Anna)}  A’ = A ∪ {Parent(Anna), Female(Anna)} Parent(Anna)  ( ∃ hasChild.Female ⊔∃ hasChild.Male)(Anna)  ( ∃ hasChild.Female)(Anna) or ( ∃ hasChild.Male)(Anna) Both are in contradiction with ¬ ∃ hasChild.Person, not satisfiable. Transformation rules  ⊔ -rule Condition: A contains (C1 ⊔ C2)(x), but neither C1(x) or C2(x) Action: A’ = A ∪ {C1(x)} and A’’ = A ∪ {C2(x)} 6

Transformation rules  ∃ -rule Condition: A contains ( ∃ R.C)(x), but there is no z such that both C(z) and R(x,z) are in A Action: A’ = A ∪ {C(z), R(x,z)} 7 T={Parent≡ ∃ hasChild.Female ⊔∃ hasChild.Male, Person≡Male ⊔ Female, Mother≡Parent ⊓ Female} A={Mother(Anna), hasChild(Anna,Bob), ¬Female(Bob)} Is ¬( ∃ hasChild.Person) satisfiable? Expand A w.r.t. T Mother(Anna)  Parent(Anna)  ( ∃ hasChild.Female ⊔∃ hasChild.Male)(Anna) take ( ∃ hasChild.Male)(Anna)  hasChild(Anna,Bob), Male(Bob) …

Transformation rules  ∀ -rule Condition: A contains ( ∀ R.C)(x) and R(x,z), but it does not C(z) Action: A’ = A ∪ {C(z)} 8 T={DaughterParent≡ ∀ hasChild.Female, Male ⊓ Female ⊑⊥ } A={hasChild(Anna,Bob), ¬Female(Bob)} Is DaughterParent satisfiable? Expand A w.r.t. T DaughterParent(x)  ∀ hasChild.Female(x)  Given that hasChild(Anna,Bob)  A’ = A ∪ {Female(Bob)} but this in contradiction with ¬Female(Bob)

Example of Tableau Reasoning (1)  Is ∀ hasChild.Male ⊓ ∃ hasChild. ¬ Male satisfiable? NOTE: we do not have an initial T or A ⊓ -rule A = {( ∀ hasChild.Male)(x), (∃ hasChild. ¬ Male)(x)} ∃ -rule A = {( ∀ hasChild.Male)(x), hasChild(x,y), ¬ Male(y)} ∀ -rule A = {( ∀ hasChild.Male)(x), hasChild(x,y), ¬ Male(y), Male(y)} A is clearly inconsistent and therefore the formula is not satisfiable. 9

Example of Tableau Reasoning (2)  Suppose T = {A ⊑ B} and A = {} Is ∃ R.(A ⊓ C) ⊓ ∀ R.( ¬ B ⊓ C) satisfiable? ⊓ -rule A = { ∃ R.(A ⊓ C)(x), ∀ R.( ¬ B ⊓ C)(x)} ∃ -rule A = {R(x, y), (A ⊓ C)(y), ∀ R.( ¬ B ⊓ C)(x)} ⊓ -rule A = {R(x, y), A(y), C(y), ∀ R.( ¬ B ⊓ C)(x)} ∀ -rule A = {R(x, y), A(y), C(y), ( ¬ B ⊓ C)(y)} ⊓ -rule A = {R(x, y), A(y), C(y), ¬ B(y)} By expanding A w.r.t. T we discover that it is inconsistent. Therefore the formula is not satisfiable. 10

Example of Tableau Reasoning (3.a)  Is ∃ S.C ⊓ ∀ S.(¬C ⊔ ¬D) ⊓ ∃ R.C ⊓ ∀ R.( ∃ R.C ) satisfiable? NOTE: we do not have an initial T or A ⊓ -rule A = { ∃ S.C(x), ∀ S.(¬C ⊔ ¬D)(x), ∃ R.C(x), ∀ R.( ∃ R.C )(x)} ∃ -rule A = {S(x, y), C(y), ∀ S.(¬C ⊔ ¬D)(x), ∃ R.C(x), ∀ R.( ∃ R.C )(x)} ∀ -rule A = {S(x, y), C(y), (¬C ⊔ ¬D)(y), ∃ R.C(x), ∀ R.( ∃ R.C )(x)} ⊔ -rule A’ = {S(x, y), C(y), ¬C(y), ∃ R.C(x), ∀ R.( ∃ R.C )(x)} (clash!) or A’’ = {S(x, y), C(y), ¬D(y), ∃ R.C(x), ∀ R.( ∃ R.C )(x)} 11

Example of Tableau Reasoning (3.b) A’’ = {S(x, y), C(y), ¬D(y), ∃ R.C(x), ∀ R.( ∃ R.C )(x)} ∃ -rule A’’ = {S(x, y), C(y), ¬D(y), R(x, z), C(z), ∀ R.( ∃ R.C )(x)} ∀ -rule A’’ = {S(x, y), C(y), ¬D(y), R(x, z), C(z), ∃ R.C (z)} ∃ -rule A’’ = {S(x, y), C(y), ¬D(y), R(x, z), C(z), R(z, w), C (w)} A’’ is clearly inconsistent 12

Additional Rules 13

Homework Check with the tableaux calculus the validity of the following: 2. Given the ABox A below, check whether the formula is consistent with A: 3. Check with the tableaux calculus the validity of the following:

Homework (II) Check with the tableaux calculus the validity of the following: 5. Given the ABox A below: By applying the rules from the tableaux calculus, check if a is an instance of the following concept (instance checking) :

Complexity of Tableau Algorithms  The satisfiability algorithm of ALCN may need exponential time and space. It is PSPACE-complete.  An optimized algorithm needs only polynomial space as it assumes a depth-first search and stores only the ‘correct’ path.  The consistency and instance checking problem for ALCN are also PSPACE-complete.  The complexity results for other Description Logics varies according to corresponding constructors. 16