1 Modal logic(s). 2 Encoding modality linguistically Auxiliary (modal) verbs can, should, may, must, could, ought to,... Adverbs possibly, perhaps, allegedly,...

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

First Order Logic Logic is a mathematical attempt to formalize the way we think. First-order predicate calculus was created in an attempt to mechanize.
Introduction to Theorem Proving
Logic Use mathematical deduction to derive new knowledge.
Logic.
CAS LX 502 8a. Formal semantics Truth and meaning The basis of formal semantics: knowing the meaning of a sentence is knowing under what conditions.
Knowledge Representation Methods
Artificial Intelligence First-Order Predicate Logic -
CSE (c) S. Tanimoto, 2008 Propositional Logic
1 Problem Solving CS 331 Dr M M Awais Representational Methods Formal Methods Propositional Logic Predicate Logic.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
From Chapter 4 Formal Specification using Z David Lightfoot
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
TR1413: Discrete Mathematics For Computer Science Lecture 4: System L.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
1 Knowledge Representation and Reasoning. 2 Knowledge Representation & Reasoning How knowledge about the world can be represented How knowledge about.
Chapter 7 Reasoning about Knowledge by Neha Saxena Id: 13 CS 267.
Predicates and Quantifiers
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Math 3121 Abstract Algebra I Section 0: Sets. The axiomatic approach to Mathematics The notion of definition - from the text: "It is impossible to define.
MATH 224 – Discrete Mathematics
CSE PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC)
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Pattern-directed inference systems
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
LDK R Logics for Data and Knowledge Representation PL of Classes.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
SSK3003 DISCRETE STRUCTURES
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
CS6133 Software Specification and Verification
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
Propositional Logic Predicate Logic
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Artificial Intelligence First-Order Predicate Logic - First-Order Predicate Logic (FOL or FOPL), also called First-Order Predicate Calculus.
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.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Artificial Intelligence Chapter 23 Multiple Agents Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Knowledge Representation and Inference Dr Nicholas Gibbins 32/3019.
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.
Chapter 7. Propositional and Predicate Logic
Knowledge Representation and Reasoning
Logics for Data and Knowledge Representation
Back to “Serious” Topics…
MA/CSSE 474 More Math Review Theory of Computation
Computer Security: Art and Science, 2nd Edition
Chapter 7. Propositional and Predicate Logic
1.3 Propositional Equivalences
Introduction to Computational Linguistics
CS589 Principles of DB Systems Fall 2008 Lecture 4e: Logic (Model-theoretic view of a DB) Lois Delcambre
Logics for Data and Knowledge Representation
Presentation transcript:

1 Modal logic(s)

2 Encoding modality linguistically Auxiliary (modal) verbs can, should, may, must, could, ought to,... Adverbs possibly, perhaps, allegedly,... Adjectives useful, possible, inflammable, edible,... Many languages are much richer

3 Modal-based ambiguity in NL John can sing. Fred would take Mary to the movies. The dog just ran away. Dave will discard the newspaper. Jack may come to the party.

4 Propositional logic (review) Used to represent properties of propositions Formal properties, allows for wide range of applications, usable crosslinguistically Has three parts: vocabulary, syntax, semantics

5 Propositional logic (1) Vocabulary: Atoms representing whole propositions: p, q, r, s, … Logic connectives: &, V, , ,  Parentheses and brackets: (, ), [, ] Examples John is hungry.: p John eats Cheerios.: q p  q ¬p  ¬q

6 Propositional logic (2) Syntax (well-formed formulas, wff’s): Any atomic proposition is a wff. If  is a wff, then  is a wff. If  and  are wff’s, then (  &  ), (  v  ), (    ), and (    ) are wff’s. Nothing else is a wff. Examples  & pq is not a wff ((p  q) & (p  r)) is a wff (p v q)   s is a wff ((((p & q) v  r)  s)  t) is a wff

7 Propositional logic (3) Semantics: V(  ) = 1 iff V(  ) = 0. V(  &  ) = 1 iff V(  ) = 1 and V(  ) = 1. V(  v  ) = 1 iff V(  ) = 1 or V(  ) = 1. V(    ) = 1 iff V(  ) = 0 or V(  ) = 1. V(    ) = 1 iff V(  ) = V(  ). The valuation function V is all- important for semantic computations.

8 Logical inferences Modus Ponens: p  q p q Modus Tollens: p  q  q  p Hypothetical syllogism: p  q q  r p  r Disjunctive syllogism: p v q  p q

9 Formal logic and inferences DeMorgan’s Laws  (  v  )  (  &  )  (  &  )  (  v  ) Conditional Laws (    )  (  v  ) (    )  (    ) (    )   (  &  ) Biconditional Laws (    )  (    ) & (    ) (    )  (  &  ) v (  &  )

10 Lexical items and predication …sneezed   x.(sneeze(x)) …saw…   y.  x.(see(x,y)) … laughed and is not a woman   x.(laugh(x) & ¬woman(x)) … respects himself   x.respect(x,x) …respects and is respected by…   y.  x.[respect(x,y) & respect(y,x)]

11 The function of lambdas Lambdas fill open predicates’ variables with content John sneezed. John,  x.(sneeze(x))  x.(sneeze(x)) (John)  x.(sneeze(x)) (John) sneeze(John)

12 The basic op:  -conversion In an expression (  x.W)(z), replace all occurrences of the variable x in the expression W with z. (  x.hungry(x))(John)  hungry(John) (  x.[¬married(x) & male(x) & adult(x)])(John) ¬married(John) & male(John) & adult(John)

13 Contingency and truth non-contingent contingent true statements false statements possibly true statements (= not necessarily false) not possibly true (= necessarily false) not possibly false (= necessarily true) possibly false statements (= not necessarily true)

14 Two necessary ingredients Background: premises from which conclusions are drawn Relation: “force” of the conclusion John may be the murderer. John must be the murderer.

15 Model-theoretic valuation M = where U is domain of individuals V is a valuation function For example, U = {mary, bill, pc23} V (likes) = {, } V (hungry) = {mary, bill} V (is broken) = {pc23} V (is French) = Ø

16 Model-theoretic valuation [[Mary is hungry]] M = [[is hungry]]([[Mary]]) = [V(hungry)](mary) is true iff mary ∈ V(hungry) = 1 [[my computer likes Mary]] M = 1 iff ∈ [[likes]] iff ∈ V(likes) = 0 So far, have only used constants BUT variables are also possible function g assigns to any variable an element from U

17 Possible worlds Variants, miniscule or drastic, from the actual context (world) W is the set of all possible worlds w’, w’’, w’’’,... Ordering can be induced on the set of all possible worlds The ordering is reflexive and transitive Modal logic: evaluates truth value of p w/rt each of the possible worlds in W

18 Modal logic Build up a useful system from propositional logic Add two operators: ◊: It is possible that... □ : It is necessary that... K Logic: propositional logic plus: If A is a theorem, then so is □ A □ (A  B)  ( □ A  □ B)

19 Semantics of operators If ψ = □ φ, then [[ψ]] M,w,g =1 iff ∀w∈ W, [[φ]] M,w,g =1. If ψ = ⃟ φ, then [[ψ]] M,w,g =1 iff there exists at least one w∈ W such that [[φ]] M,w,g =1.

20 Notes on K Obvious equivalencies: ◊A = ¬ □ ¬A Operators behave very much like quantifiers in predicate calculus K is too weak, so add to it: M: □ A  A The result is called the T logic.

21 Notes on T Still too weak, so: (4) □ A  □□ A (5) ◊A  □ ◊A Logic S4: adding (4) to T Logic S5: adding (5) to T

22 S5 Not adequate for all types of modality However, it is commonly used for database work

23 O say what is (modal) truth? Let M = be a model with mapping I, and V be a valuation in the model; then: 1. M,w ⊨ v φ iff I(φ)(w) = true 2. If R(t 1,...,t k ) is atomic, M,w ⊨ v R(t 1...t k ) iff ∈ V(R)(w) 3. M,w ⊨ v ¬ φ iff M,w ¬ ⊨ v φ 4. M,w ⊨ v φ & ψ iff M,w ⊨ v φ and M,w ⊨ v ψ 5. M,w ⊨ v φ ( ∀x) φ iff M,w ⊨ v φ[x/u] for all u ∈ U 6. M,w ⊨ v □ φ iff M,w ⊨ v φ for all w ∈ W 7. M,w ⊨ v [λx.φ(x)](t) if M,w ⊨ v φ[x/u] where u = g(t,w)

24 Human necessity φ is a human necessity iff it is true in all worlds closest to the ideal If W is the modal base, ∀ w∈W there exists wʹ∈W such that: w ≤ wʹ, and ∀ wʹʹ∈W, if wʹ ≤ wʹʹ then φ is true in wʹʹ φ is a human possibility iff ¬φ is not a human necessity

25 Backgrounds (Kratzer) Realistic: for each w, set of p’s that are true Totally realistic: set of p’s that uniquely define w Epistemic: p’s that are established knowledge in w Stereotypical: p’s in the normal course of w Deontic: p’s that are commanded in w Teleological: p’s that are related to aims in w Buletic: p’s that are wished/desirable in w Empty: the empty set of p’s in any w

26 Related notions Conditionals Counterfactuals Generics Tense Intensionality Doxastics (belief models)

27 The Fitting paper Applies modal logic to databases model-theoretic, S5,  formulas tableau methods for proofs, derived rules Operator that associates, combines semantic items compositionally Predicates, entities Variables

28 The Fitting paper db records: possible worlds access: ordering on possible worlds two types of axioms: constraint axioms instance axioms Queries: modal logic expressions Proofs and derivations: tableau methods (several rules)