Logics for Data and Knowledge Representation

Slides:



Advertisements
Similar presentations
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Advertisements

Artificial Intelligence First-Order Predicate Logic -
Logics for Data and Knowledge Representation Modeling Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia, Rui Zhang.
LDK R Logics for Data and Knowledge Representation Exercise 2: PL, ClassL, Ground ClassL.
Logics for Data and Knowledge Representation Propositional Logic: Reasoning Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
LDK R Logics for Data and Knowledge Representation Modeling First version by Alessandro Agostini and Fausto Giunchiglia Second version by Fausto Giunchiglia.
Logics for Data and Knowledge Representation Exercises: Modeling Fausto Giunchiglia, Rui Zhang and Vincenzo Maltese.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
LDK R Logics for Data and Knowledge Representation ClassL (part 3): Reasoning with an ABox 1.
Pattern-directed inference systems
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
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 PL of Classes.
Formal Methods in Software Engineering 1
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
Logics for Data and Knowledge Representation
LDK R Logics for Data and Knowledge Representation ClassL (Propositional Description Logic with Individuals) 1.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Logics for Data and Knowledge Representation Exercises: ClassL Fausto Giunchiglia, Rui Zhang and Vincenzo Maltese.
LDK R Logics for Data and Knowledge Representation ClassL (part 2): Reasoning with a TBox 1.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
LDK R Logics for Data and Knowledge Representation Description Logics: family of languages.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Propositional Logic (a.k.a. Sentential Logic)
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Propositional Calculus: Boolean Functions and Expressions
Logics for Data and Knowledge Representation
ARTIFICIAL INTELLIGENCE
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
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
Logics for Data and Knowledge Representation
1st-order Predicate Logic (FOL)
Back to “Serious” Topics…
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Knowledge Representation I (Propositional Logic)
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
1st-order Predicate Logic (FOL)
Logics for Data and Knowledge Representation
Propositional Satisfiability
Presentation transcript:

Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics

Outline Syntax Semantics Reasoning Alphabet Formation rules Class-valuation Venn diagrams Satisfiability Validity Reasoning Comparing PL and ClassL ClassL reasoning using DPLL

they can be substituted by any proposition or formula Language (Syntax) INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL The syntax of ClassL (propositional DL) is similar to PL Alphabet of symbols Σ0 Σ0 Descriptive Logical ⊓, ⊔,  Constants one proposition only A, B, C … Variables they can be substituted by any proposition or formula P, Q, ψ … Auxiliary symbols: parentheses: ( ) Defined symbols: ⊥ (falsehood symbol, false, bottom) ⊥ =df P ⊓ ¬P T (truth symbol, true, top) T =df ¬⊥ 3

Formation Rules (FR): well formed formulas INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL Well formed formulas (wff) in ClassL can be described by the following BNF grammar (codifying the rules): <Atomic Formula> ::= A | B | ... | P | Q | ... | ⊥ | ⊤ <wff> ::= <Atomic Formula> | ¬<wff> | <wff> ⊓ <wff> | <wff> ⊔ <wff> Atomic formulas are also called atomic propositions Wff are class-propositional formulas (or just propositions) A formula is correct if and only if it is a wff Σ0 + FR define a propositional language PARSER ψ, ClassL Yes, ψ is correct! No 4

Extensional Semantics: Extensions INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL The meanings which are intended to be attached to the symbols and propositions form the intended interpretation σ (sigma) of the language The semantics of a propositional language of classes L are extensional (semantics) The extensional semantics of L is based on the notion of “extension” of a formula (proposition) in L The extension of a proposition is the totality, or class, or set of all objects D (domain elements) to which the proposition applies

Extensional interpretation INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL D = {Cita, Kimba, Simba} BeingLion Monkey Tree Kimba . Cita . . Simba Lion1 Lion2 The World The Mental Model The Formal Model 6

Class-valuation σ INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL In extensional semantics, the first central semantic notion is that of class-valuation (the interpretation function) Given a Class Language L Given a domain of interpretation U A class valuation σ of a propositional language of classes L is a mapping (function) assigning to each formula ψ of L a set σ(ψ) of “objects” (truth-set) in U: σ: L  pow(U)

Class-valuation σ σ(⊥) = ∅ σ(⊤) = U (Universal Class, or Universe) INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL σ(⊥) = ∅ σ(⊤) = U (Universal Class, or Universe) σ(P)  U, as defined by σ σ(¬P) = {a  U | a ∉ σ(P)} = comp(σ(P)) (Complement) σ(P ⊓ Q) = σ(P) ∩ σ(Q) (Intersection) σ(P ⊔ Q) = σ(P) ∪ σ(Q) (Union)

Venn Diagrams and Class-Values INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL By regarding propositions as classes, it is very convenient to use Venn diagrams σ(P) σ(¬P) P P σ(⊥) σ(⊤) σ(P ⊓ Q) σ(P ⊔ Q) P Q P Q

Truth Relation (Satisfaction Relation) INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL Let σ be a class-valuation on language L, we define the truth- relation (or class-satisfaction relation) ⊨ and write σ ⊨ P (read: σ satisfies P) iff σ(P) ≠ ∅ Given a set of propositions Γ, we define σ ⊨ Γ iff σ ⊨ θ for all formulas θ ∈ Γ

Model and Satisfiability INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL Let σ be a class valuation on language L. σ is a model of a proposition P (set of propositions Γ) iff σ satisfies P (Γ). P (Γ) is class-satisfiable if there is a class valuation σ such that σ ⊨ P (σ ⊨ Γ).

Truth, satisfiability and validity INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL Let σ be a class valuation on language L. P is true under σ if P is satisfiable by σ (σ ⊨ P) P is valid if σ ⊨ P for all σ (notation: ⊨ P) In this case, P is called a tautology (always true) NOTE: the notions of ‘true’ and ‘false’ are relative to some truth valuation. A proposition is true iff it is satisfiable

Reasoning on Class-Propositions INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL Given a class-propositions P we want to reason about the following: Model checking Does σ satisfy P? (σ ⊨ P?) Satisfiability Is there any σ such that σ ⊨ P? Unsatisfiability Is it true that there are no σ satisfying P? Validity Is P a tautology? (true for all σ) 13

PL and ClassL are notational variants INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL Theorem: P is satisfiable w.r.t. an intensional interpretation ν if and only if P is satifisfiable w.r.t. an extensional interpretation σ PL ClassL Syntax ∧ ⊓ ∨ ⊔  ⊤ ⊥ P, Q... Semantics ∆={true, false} ∆={o, …} (compare models) 14

ClassL reasoning using DPLL INTRODUCTION :: SYNTAX :: SEMANTICS :: REASONING :: PL AND CLASSL :: CLASSL REASONING USING DPLL Given the theorem and the correspondences above, ClassL reasoning can be implemented using DPLL. The first step consists in translating P into P’ expressed in PL Model checking Does σ satisfy P? (σ ⊨ P?) Find the corresponding model ν and check that v(P’) = true Satisfiability Is there any σ such that σ ⊨ P? Check that DPLL(P’) succeeds and returns a ν Unsatisfiability Is it true that there are no σ satisfying P? Check that DPLL(P’) fails Validity Is P a tautology? (true for all σ) Check that DPLL(P’) fails 15