Web Science & Technologies University of Koblenz ▪ Landau, Germany Many valued logics and fixpoint semantics See Melvin Fitting 2002.

Slides:



Advertisements
Similar presentations
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Advertisements

Automated Reasoning Systems For first order Predicate Logic.
Kripke: Outline …(1975) First improtant decision: the theory is about sentences, not about propositions. Like Tarski, not like Barwise & Etchemendy. ***
Logic.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Advanced Data Modeling Minimal Models Steffen Staab TexPoint fonts used in EMF. Read.
Well-founded Semantics with Disjunction João Alcântara, Carlos Damásio and Luís Moniz Pereira Centro de Inteligência Artificial.
Logic Concepts Lecture Module 11.
João Alcântara, Carlos Damásio and Luís Pereira Centro de Inteligência Artificial (CENTRIA) Depto. Informática, Faculdade.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
João Alcântara, Carlos Damásio and Luís Moniz Pereira Centro de Inteligência Artificial (CENTRIA) Depto. Informática,
CPSC 322, Lecture 20Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Computer Science cpsc322, Lecture 20 (Textbook.
CPSC 322 Introduction to Artificial Intelligence September 20, 2004.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
From Chapter 4 Formal Specification using Z David Lightfoot
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Knoweldge Representation & Reasoning
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
ASP vs. Prolog like programming ASP is adequate for: –NP-complete problems –situation where the whole program is relevant for the problem at hands èIf.
ASP vs. Prolog like programming ASP is adequate for: –NP-complete problems –situation where the whole program is relevant for the problem at hands èIf.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
Propositional Calculus Math Foundations of Computer Science.
Conjunctions, Disjunctions, and Negations Symbolic Logic 2/12/2001.
Relation, function 1 Mathematical logic Lesson 5 Relations, mappings, countable and uncountable sets.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007.
Formal Semantics of Programming Languages 虞慧群 Topic 3: Principles of Induction.
The Bernays-Schönfinkel Fragment of First-Order Autoepistemic Logic Peter Baumgartner MPI Informatik, Saarbrücken.
Logic CL4 Episode 16 0 The language of CL4 The rules of CL4 CL4 as a conservative extension of classical logic The soundness and completeness of CL4 The.
Steffen Staab Advanced Data Modeling 1 of 32 WeST Häufungspunkte Bifurkation: x n+1 = r x n (1-x n ) Startwert x 0 = 0,25.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
LDK R Logics for Data and Knowledge Representation PL of Classes.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Procedural Semantics Soundness of SLD-Resolution.
Automated Reasoning Systems For first order Predicate Logic.
LDK R Logics for Data and Knowledge Representation ClassL (Propositional Description Logic with Individuals) 1.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
Web Science & Technologies University of Koblenz ▪ Landau, Germany Relational Data Model.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
1 Use graphs and not pure logic Variables represented by nodes and dependencies by edges. Common in our language: “threads of thoughts”, “lines of reasoning”,
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Propositional SAT The search for a model of a given proposition.
1 Section 8.3 Higher-Order Logic A logic is higher-order if it allows predicate names or function names to be quantified or to be arguments of a predicate.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models of Definite Programs.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Boolean Programs: A Model and Process For Software Analysis By Thomas Ball and Sriram K. Rajamani Microsoft technical paper MSR-TR Presented by.
© D. Wong Functional Dependencies (FD)  Given: relation schema R(A1, …, An), and X and Y be subsets of (A1, … An). FD : X  Y means X functionally.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
Information Systems & Semantic Web University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk TexPoint fonts used in.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Computer Science cpsc322, Lecture 20
The Propositional Calculus
Semantics of Datalog With Negation
Many valued logics and fixpoint semantics
Propositional Calculus: Boolean Algebra and Simplification
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Models of Definite Programs
Computer Science cpsc322, Lecture 20
Bottom Up: Soundness and Completeness
Models of Definite Programs
Presentation transcript:

Web Science & Technologies University of Koblenz ▪ Landau, Germany Many valued logics and fixpoint semantics See Melvin Fitting 2002

Steffen Staab Advanced Data Modeling 2 of 36 WeST  If you read and understand Fitting‘s survey paper you have learned a sufficient amount of knowledge in this class.  Note that some things are given a slightly different name – but mean the same as things we have learned here.

Steffen Staab Advanced Data Modeling 3 of 36 WeST Simplifications Given a logic program P with clauses C, Construct P* with clauses C* by  replace „A :-.“ by „A :- true“,  ground instantiate all clauses from C,  if the ground atom A is not the head of any member of P*, add „A :- false“. Example : P(x) :- Q(x), R(x). R(a). Becomes P* R(a) :- true. P(a) :- Q(a), R(a). Q(a) :- false.

Steffen Staab Advanced Data Modeling 4 of 36 WeST Truth ordering Minimize with respect to order, i.e. default to false: Definition: The space {false,true} is given the truth ordering false < t true, with x < t y not holding in any other case. We use ≤ t as usual for < t or =. This ordering is extended to interpretations pointwise: I 1 ≤ t I 2 if and only if I 1 (A) ≤ t I 2 (A) for all ground atoms A. truefalse <t<t

Steffen Staab Advanced Data Modeling 5 of 36 WeST Side remark T P  ω is not necessarily the biggest fixpoint, but T P  α for some α>ω

Steffen Staab Advanced Data Modeling 6 of 36 WeST Fixpoints We know: Normal programs do not have one smallest fixpoint Approach: 1.Consider two (or more) fixpoints 2.Consider multi-valued interpretations

Steffen Staab Advanced Data Modeling 7 of 36 WeST Partial interpretations We know: A classical interpretation assigns every ground atom a truth value from {true, false}. Consider: P :- P. Q. Smallest fixpoint: {Q} Largest fixpoint. {Q,P} Idea: What is true in both fixpoints is true. What is true in one fixpoint, but false in the other is uncertain.

Steffen Staab Advanced Data Modeling 8 of 36 WeST Partial interpretation Definition: A partial valuation is a mapping I from the set of ground atoms to the set {, false, true}, meeting the conditions I(false) = false and I(true)=true We often refer to partial valuations as three valued.

Steffen Staab Advanced Data Modeling 9 of 36 WeST Three valued knowledge ordering Definition: The space {, false, true} is given a knowledge ordering < k false, < k true, with x < k y not holding in any other case. Then ≤ k is defined as usual. The ordering is again extended to partial interpretations pointwise: I 1 ≤ k I 2 iff I 1 (A) ≤ k I 2 (A) for all ground atoms A. truefalse <k<k <k<k Complete semi-lattice

Steffen Staab Advanced Data Modeling 10 of 36 WeST Alternative notation Describe three-valued interpretation I as pair (T,F) of true ground atoms T and false ground atoms F. Then I 1 ≤ k I 2 iff T 1  T 2 and F 1  F 2 („I 2 knows more than I 1 “)

Steffen Staab Advanced Data Modeling 11 of 36 WeST Mapping ϕ P Definition. Let P be a normal program. An associated mapping ϕ P, from partial interpretations to partial interpretations, is defined as follows. ϕ P (I)=J where J is the unique partial interpretation determined by the following: for a ground atom A, 1.J(A)=true if there is a general ground clause A  B 1, …, B n in P* with head A, such that I(B 1 )=true and …. and I(B n )=true. 2.J(A)=falseif for every general ground clause A  B 1, …, B n in P* with head A, I(B 1 )=false, or …, I(B n )=false. 3.J(A)=  otherwise.

Steffen Staab Advanced Data Modeling 12 of 36 WeST Kleene‘s strong three-valued logic AB A ∧ B true false true   falsetruefalse   true   false  AB A ∨ B true falsetrue  falsetrue false   true  false   A  A truefalse True 

Steffen Staab Advanced Data Modeling 13 of 36 WeST Monotonicity of ϕ P Proposition: For a general program P, the operator ϕ P is monotone with respect to ≤ k : I 1 ≤ k I 2 implies ϕ P (I 1 ) ≤ k ϕ P (I 2 ). Note: The smallest fixed point of ϕ P supplies the Fitting semantics (also called Kripke-Kleene semantics) with ϕ P  0 =  ϕ P  α+1 = ϕ P ( ϕ P  α) ϕ P  λ¸ =  { ϕ P  α| α < λ } with λ being a limit ordinal, but  is with respect to ≤ k

Steffen Staab Advanced Data Modeling 14 of 36 WeST Differences and Commonalities between T P and © P Q :- Q. Fixpoint for T P is {}, i.e. I(Q)=false Q :- not Q. No fixpoint. Q :- Q. Fixpoint for ϕ P is ({},{}), i.e. I(Q)= . Q :- not Q. Fixpoint for ϕ P is ({},{}), i.e. I(Q)= . Proposition: Let P be a definite program. Let I k be the smallest fixed point of P (with respect to ≤ k ), and let j t and J t be the smallest and the biggest fixed points of T P (with respect to ≤ t ). Then, for a ground atom A, If j t (A) = J t (A), then I k (A) has this common value. If j t (A)  J t (A) then I k (A)= .

Steffen Staab Advanced Data Modeling 15 of 36 WeST Belnap‘s four-valued Logic

Steffen Staab Advanced Data Modeling 16 of 36 WeST Stable model s. Well founded sem., OWL std. logic programming Belnap‘s four-valued Logic Knowledge and truth ordering f T t  knowledge truth FOUR Default f: closed world, default  : open world ≤t ≤k

Steffen Staab Advanced Data Modeling 17 of 36 WeST Truth values for Belnap‘s logic  = {} false = {false} true={true} T={true,false} ≤ k is now simply defined by  over I=(T,F) ≤ k is a lattice, ≤ t is a lattice; their combination is a bi-lattice.

Steffen Staab Advanced Data Modeling 18 of 36 WeST Operations Logical connectives formalizable as (infinitely distributive) functions on this ordering: a ∨ b = sup t (a,b) a ∧ b = inf t (a,b) a  b = sup k (a,b) a  b = inf k (a,b) f, if a = t  a = t, if a = f a, otherwise f T t  knowledge truth FOUR ≤t ≤k „consensus“ „gullibility“ Four binary operations, all distributive laws hold.

Steffen Staab Advanced Data Modeling 19 of 36 WeST Newly define interpretations I(A ∧ B)=I(A) ∧ I(B) I(A  B) = I(A)  I(B) etc. Definition. Let P be a normal program. Let P* be its grounding as defined before. Let P** be the completion of P* (with possibly infinitely long ground clauses). ϕ P (I)=J, where J is the unique interpretation determined by the following: if A  B is in P**, then J(A)=I(B), where we use Belnap’s logic to evaluate I(B).

Steffen Staab Advanced Data Modeling 20 of 36 WeST Smallest and biggest fixed points Proposition 19: Let i t and I t be the smallest and biggest fixed points of the four-valued operator ϕ P with respect to the ≤ t ordering, where P is a definite program. Likewise, let j k and J k be the smallest and biggest fixed points of ϕ P with respect to the ≤ k ordering. We can state that: j k = i t  I t J k = i t  I t i t = j k ∧ J k I t = j k ∨ J k

Web Science & Technologies University of Koblenz ▪ Landau, Germany On the Semantics of Trust on the Semantic Web Simon Schenk ISWC 2008, Karlsruhe, Germany

Steffen Staab Advanced Data Modeling 22 of 36 WeST „Quantum of Solace“ „Olga Kurylenko toughest Bond-Girl ever.“ olga:GoodActor qos:GoodAction „Olga Kurylenko flat like a stale Martini.“ olga:  GoodActor qos:GoodAction Spiegel ∪ Welt globally inconsistent. To judge, whether Quantum of Solace is a good action movie, we need paraconsistent reasoning: olga:GoodActor → T qos:GoodAction → t

Steffen Staab Advanced Data Modeling 23 of 36 WeST „Quantum of Solace“ olga:GoodActor qos:GoodAction Olga:  GoodActor qos:GoodAction Olga:  GoodActor Qos:  GoodAction daniel:GoodActor Trust in News Sources qos:GoodAction → t SO,W olga:GoodActor → T SO,W,M ? General Trust Order

Steffen Staab Advanced Data Modeling 24 of 36 WeST Other Examples  Collaborative Ontology Editing  Editors trusted differently  Personal relation  Even if possible, strict trust order for employees might be illegal  Caching  Distinguish between certain and possibly outdated information...

Steffen Staab Advanced Data Modeling 25 of 36 WeST Overview  Motivation  Logical Bilattices  „Trust Bi-Lattices“  SROIQ on bilattices  Outlook and Conclusion

Steffen Staab Advanced Data Modeling 26 of 36 WeST Stable model s. Well founded sem., OWL RDF std. logic programming Logical Bi-lattices Knowledge and truth ordering Logical connectives formalizable as (infinitely distributive) functions on this ordering: a ∨ b = sup t (a,b) a ∧ b = inf t (a,b) a  b = sup k (a,b) a  b = inf k (a,b) f, if a = t  a = t, if a = f a, otherwise f T t  knowledge truth FOUR Default f: closed world, default  : open world

Steffen Staab Advanced Data Modeling 27 of 36 WeST Other bilattices  e.g. designed for default reasoning f T  knowledge truth SEVEN dfdt d>d> t f T  knowledge truth NINE df dt d>d> t ofot

Steffen Staab Advanced Data Modeling 28 of 36 WeST

Steffen Staab Advanced Data Modeling 29 of 36 WeST Approach Generate logical bilattice based on trust order Lukasiewicz: Derive (distributive) bilattice from two (distributive) lattices as follows: Given two distributive lattices L 1 and L 2, create a bilattice L, where the nodes have values from L 1 ×L 2, such that (a,b) ≤ k (x,y) iff a ≤ L 1 x ∧ b ≤ L 2 y (a,b) ≤ t (x,y) iff a ≤ L 1 x ∧ y ≤ L 2 b e.g. FOUR = {0,t} × {0,f}: k t FOUR (0,0) (0,f) (t,f) (t,0)

Steffen Staab Advanced Data Modeling 30 of 36 WeST Generate Lattice from Trust Order Derive L 1 and L 2 from trust order T over information sources S i : L 1 = L 2 = {(f i,t i ) | (f i,t i ) ∈ S } ∪ {(t i,t j ) | (i,j) ∈ T } ∪ {(f i,f j ) | (j,i) ∈ T } ∞ C A B t∞t∞ tata tbtb tctc fbfb fafa f∞f∞ fcfc Problem: t b  t c =? t 

Steffen Staab Advanced Data Modeling 31 of 36 WeST Augmented Trust Order Derive L 1 and L 2 from augmented trust order T over information sources S: L 1 = L 2 = {(f i,t i ) | i ∈ S } ∪ {(t i,t j ) | (i,j) ∈ T } ∪ {(f i,f j ) | (j,i) ∈ T } ∞ C A B t∞t∞ tata tbtb tctc fbfb fafa f∞f∞ fcfc AC BC t ac t bc f ac f bc

Steffen Staab Advanced Data Modeling 32 of 36 WeST FOUR-T (1) Use trust order to derive a logical bilattice. Example for comparable information sources: FOUR-T ∞ 2 1

Steffen Staab Advanced Data Modeling 33 of 36 WeST FOUR-T (2)

Steffen Staab Advanced Data Modeling 34 of 36 WeST Application: Inconsistency Resolution Reasons for Inconsistencies: I(p) = t x : r ← p I(q) = f y : r ← q f x  t y = T xy (inconsistent) Subscript of T reflects the maximally and minimally trusted information sources, which cause the inconsistency. Possible resolution: Find minimal inconsistent subontology Drop minimally trusted axioms.

Steffen Staab Advanced Data Modeling 35 of 36 WeST Application: Inconsistency Resolution olga:GoodActor → T W,SO qos:GoodAction → T M,SO,W = f M ⊕ t SO,W olga:GoodActort SO qos:GoodActiont SO olga:GoodActorf W qos:GoodActiont W olga:GoodActorf M qos:GoodActionf M qos:BondMoviet S BondMovie GoodActiont S SROIQ-T Minimally and maximally trusted source contributing to the inconsistency MUPS for qos:GoodAction qos:GoodAction → t SO,W qos:GoodAction → f M Drop minimally trusted axioms Not possible for olga:GoodActor!

Steffen Staab Advanced Data Modeling 36 of 36 WeST Conclusion and Future Work  Go watch „Quantum of Solace“ (Simon’s recommendation)  Trust based reasoning on logical bilattices  Derived from any partial trust order  Applicable to a broad variety of languages  Operationalization  Efficient debugging of large ontologies based on differently trusted and/or time-stamped ontology changes:  Simon Schenk, Renata Dividino, Steffen Staab: Using provenance to debug changing ontologies. J. Web Sem. 9(3): (2011)