How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

Similar documents
Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Propositional Logic: Logical Agents (Part I)

Logic, Human Logic, and Propositional Logic. Human Logic. Fragments of Information. Conclusions. Foundations of Semantics LING 130 James Pustejovsky

Propositional Logic: Logical Agents (Part I)

Advanced Topics in LP and FP

Propositional Resolution

First Order Logic: Syntax and Semantics

Propositional Logic: Review

KB Agents and Propositional Logic

Knowledge based Agents

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

Reasoning. Inference. Knowledge Representation 4/6/2018. User

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Propositional Logic Part 1

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Learning Goals of CS245 Logic and Computation

Logical Agents. September 14, 2004

CSCI-495 Artificial Intelligence. Lecture 17

Artificial Intelligence. Propositional logic

Computational Logic Lecture 3. Logical Entailment. Michael Genesereth Autumn Logical Reasoning

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning

Chapter 1: The Logic of Compound Statements. January 7, 2008

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

22c:145 Artificial Intelligence

Artificial Intelligence Chapter 7: Logical Agents

Logic. (Propositional Logic)

Inference in Propositional Logic

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Logic and Inferences

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Propositional logic II.

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Introduction to Metalogic

AI Programming CS S-09 Knowledge Representation

Agents that reason logically

Logic for Computer Science - Week 4 Natural Deduction

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

Proof Methods for Propositional Logic

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction

Propositional Logic: Models and Proofs

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Logical Agents (I) Instructor: Tsung-Che Chiang

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Deductive Systems. Lecture - 3

MAI0203 Lecture 7: Inference and Predicate Calculus

03 Propositional Logic II

5. And. 5.1 The conjunction

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

Logic. Propositional Logic: Syntax. Wffs

CS 730/830: Intro AI. 1 handout: slides. Wheeler Ruml (UNH) Lecture 11, CS / 15. Propositional Logic. First-Order Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Reasoning Under Uncertainty: Introduction to Probability

A Quick Lesson on Negation

Deliberative Agents Knowledge Representation I. Deliberative Agents

Reasoning Under Uncertainty: Introduction to Probability

CS 380: ARTIFICIAL INTELLIGENCE

02 Propositional Logic

Propositional Logic: Syntax

Knowledge Based Systems: Logic and Deduction

CS 771 Artificial Intelligence. Propositional Logic

Knowledge Representation. Propositional logic

CSCI 5582 Artificial Intelligence. Today 9/28. Knowledge Representation. Lecture 9

Logic: Propositional Logic (Part I)

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Propositional Languages

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT

Propositional Logic: Semantics and an Example

Artificial Intelligence Knowledge Representation I

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

Propositional Logic: Methods of Proof (Part II)

Language of Propositional Logic

CS 730/730W/830: Intro AI

cis32-ai lecture # 18 mon-3-apr-2006

Knowledge Representation and Reasoning

Logic. Propositional Logic: Syntax

Inference Methods In Propositional Logic

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers

Intelligent Agents. Pınar Yolum Utrecht University


n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

5. And. 5.1 The conjunction

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

Introduction to Logic

Logical agents. Chapter 7. Chapter 7 1

Logic: The Big Picture

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Propositional and Predicate Logic - V

6. Logical Inference

Transcription:

Major results: (wrt propositional logic) How to reason correctly. How to reason efficiently. How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey. Probability deals with statements that are possibly true, such as whether I will win the lottery next week. Propositional logic deals with concrete statements that are either true true or false. Predicate Logic (first order logic) allows statements to contain variables, such as if X is married to Y then Y is married to X. 1

We need formal definitions for: legal sentences or propositions (syntax) inference rules, for generated new sentence. (entailment) truth or validity. (semantics) Example Syntax: (x > y)&(y > z) (x > z) Interpretation: x = John s age y= Mary s age z= Tom s age If John is older than Mary and Mary is older than Tom, then we can conclude John is older than Tom. (semantics) Conclusion is not approximately true or probably true, but absolutely true. 2

1 Propositional Logic Syntax: logical constants True and False are sentences. propositional symbols P,Q, R, etc are sentences These will either be true (t) or false (f) Balanced Parenthesis if S is a sentence, so is (S). logical operators or connectives :,,,,,,,... Actually NAND (Shaeffer stroke) is the only connective that is needed. Sentences legal combinations of connectives and variables, i.e. propositional letters are sentences and if s1 and s2 are sentences so are s1, (s1), s1 s2, Note: Instead of one can use and since p q p q Semantics: Each propositional variable can be either True or False. The truth or falsity of a sentence is defined compositionally. Truth tables define the semantics of the logical operations. A sentence is true if any assignment of the propositional variables yields true. This means that a formula with k variables will have 2 k interpretations. 3

Rules of Inference These define derivability or provability, not truth. All of these rules are sound. Modus Ponens α β,β β And-Elimination α 1... α n α i And-Introduction α 1,α 2,...α n α 1... α n Or-Introduction α i α 1... α n Double-Negation Elimination α α Unit Resolution α β, β α Resolution α β, β γ α γ Note: Many possible sets of axioms and inference rules exist, and this is just one of them. How do we know if these axioms are sound or complete? Are these easy to use? Not for most people. 4

2 Important Concepts A formula is satisfiable if it is true for some assignment of the propositional variables. E.G. (p q) ( p q) is true if p=t and q=t. The assignment of either t or f to the variables is called an interpretation. An interpretation is also called a world Satifiable = true in some interpretation. A formula is true or valid if it is true in all interpretations. E.G. p p is always true. A formula is unsatisfiable if there is no interpretation in which it is true. E.G. p p is unsatisfiable. A formula is provable if it follows from the axioms and rules of inference. The axioms and rules of inference define a logic. A logic is sound if every provable statement is true. A logic is complete if every true statement can be proven. A logic is decidable if an effective procedure exists to determine if any statement is true or false. Proposition logic is monotonic, i.e. if we add more sentences, then the old inferences are still valid. A Horn sentence has the form P 1... P n Q where each P i and Q is a nonnegated atom. Horn sentences allow for computationally tractable inferences. 5

3 Drawing Conclusions Inference Rules: rules for producing new conclusions. Modus Ponens: p, p q q Abduction (one version): q, p q p Modus Ponens is sound while abduction is not. Resolution: (sound) p q, p r q r 4 Theorems Theorems are sentences that are derived from the axioms and the rules of inference. If the rules of inferences are sound, then any theorem will be true. If the rules of inferences are complete, then any true statement can be proven. 6

5 Translating into Propositional Logic Building good computational models is difficult. We did this for the state-space paradigm, and we will do if for propositional and predicate logic. Example: If it rains, then the game will be cancelled. If the game is cancelled, then we will clean the house. If it rains, then we will clean the house. Is this a valid conclusion? Let p= it rains, q= game canceled, r= we clean house. Then the abstract reasoning schema is: If p then q If q then r If p then r Is this valid form of argument? How can we tell? Formally: p q, q r p r 7

6 Establishing Truth by Models A model is case. If a formula is true for every case, it is true. Example: Use models to prove that: p q, q r p r p q r p q r p q q r p r t t t f f f t t t t t f f f t t f f t f t f t f f t t t f f f t t f t f f t t t f f t t t f t f t f t t f t f f t t t f t t t f f f t t t t t t 7 Summary Propositional logic is sound (easy) and complete (difficult). Proposition logic is decidable, i.e. we can determine if any statement is either true or false. How? Use a truth table. Computationally, to determine a set of clauses is satisfiable is NP-hard, i.e. with our current knowledge this computation takes exponential time in the number of propositional variables. How much work is involved in setting up a truth table? 8

8 Limitations of Propositional Logic Can t deal with uncertain information, e.g. There is an 80% chance of rain tomorrow. This will be covered in section on Expert Systems Can t combine evidence, e.g. How would you represent the information and reasoning that allowed you to decide on a particular career, car, or school? Can t express quantification, e.g. Every person has a father. Some students deserve better grades then others. Doesn t deal with relations, e.g. If X is contained in Y, and Y is contained in Z then X is contained in Z or If X is married to Y, then Y is married to X. Can t talk about itself, e.g. The relation taller than is transitive Goal: To write down in a precise way what we know. 9