Module 5. Knowledge Representation and Logic (Propositional Logic) Version 2 CSE IIT, Kharagpur

Similar documents
Artificial Intelligence: Valid Arguments and Proof Systems. Prof. Deepak Khemani. Department of Computer Science and Engineering

Artificial Intelligence. Clause Form and The Resolution Rule. Prof. Deepak Khemani. Department of Computer Science and Engineering

Semantic Entailment and Natural Deduction

4.1 A problem with semantic demonstrations of validity

Name: Course: CAP 4601 Semester: Summer 2013 Assignment: Assignment 06 Date: 08 JUL Complete the following written problems:

Lecture 17:Inference Michael Fourman

(Refer Slide Time 03:00)

Philosophy 220. Truth Functional Properties Expressed in terms of Consistency

Logic I or Moving in on the Monkey & Bananas Problem

An Introduction to. Formal Logic. Second edition. Peter Smith, February 27, 2019

Scott Soames: Understanding Truth

Does Deduction really rest on a more secure epistemological footing than Induction?

Revisiting the Socrates Example

Artificial Intelligence Prof. P. Dasgupta Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

What would count as Ibn Sīnā (11th century Persia) having first order logic?

16. Universal derivation

Verification and Validation

Negative Introspection Is Mysterious

UC Berkeley, Philosophy 142, Spring 2016

Is the law of excluded middle a law of logic?

What is the Nature of Logic? Judy Pelham Philosophy, York University, Canada July 16, 2013 Pan-Hellenic Logic Symposium Athens, Greece

Artificial Intelligence Prof. P. Dasgupta Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Circumscribing Inconsistency

LOGIC ANTHONY KAPOLKA FYF 101-9/3/2010

LGCS 199DR: Independent Study in Pragmatics

The way we convince people is generally to refer to sufficiently many things that they already know are correct.

All They Know: A Study in Multi-Agent Autoepistemic Reasoning

Exercise Sets. KS Philosophical Logic: Modality, Conditionals Vagueness. Dirk Kindermann University of Graz July 2014

HANDBOOK (New or substantially modified material appears in boxes.)

Understanding Truth Scott Soames Précis Philosophy and Phenomenological Research Volume LXV, No. 2, 2002

SUPPOSITIONAL REASONING AND PERCEPTUAL JUSTIFICATION

Logic I, Fall 2009 Final Exam

Illustrating Deduction. A Didactic Sequence for Secondary School

(Some More) Vagueness

Semantic Foundations for Deductive Methods

Knowledge, Time, and the Problem of Logical Omniscience

HANDBOOK. IV. Argument Construction Determine the Ultimate Conclusion Construct the Chain of Reasoning Communicate the Argument 13

Paradox of Deniability

Constructive Logic, Truth and Warranted Assertibility

INTERMEDIATE LOGIC Glossary of key terms

MATH1061/MATH7861 Discrete Mathematics Semester 2, Lecture 5 Valid and Invalid Arguments. Learning Goals

CHAPTER 1 A PROPOSITIONAL THEORY OF ASSERTIVE ILLOCUTIONARY ARGUMENTS OCTOBER 2017

HOW TO ANALYZE AN ARGUMENT

Study Guides. Chapter 1 - Basic Training

A Model of Decidable Introspective Reasoning with Quantifying-In

2.1 Review. 2.2 Inference and justifications

Can Gödel s Incompleteness Theorem be a Ground for Dialetheism? *

Philosophy 1100: Ethics

Semantics and the Justification of Deductive Inference

A Liar Paradox. Richard G. Heck, Jr. Brown University

Lecture 4: Deductive Validity

Announcements. CS311H: Discrete Mathematics. First Order Logic, Rules of Inference. Satisfiability, Validity in FOL. Example.

Quantificational logic and empty names

THE FREGE-GEACH PROBLEM AND KALDERON S MORAL FICTIONALISM. Matti Eklund Cornell University

ILLOCUTIONARY ORIGINS OF FAMILIAR LOGICAL OPERATORS

Chapter 8 - Sentential Truth Tables and Argument Forms

how to be an expressivist about truth

Chapter 3: Basic Propositional Logic. Based on Harry Gensler s book For CS2209A/B By Dr. Charles Ling;

A Judgmental Formulation of Modal Logic

An alternative understanding of interpretations: Incompatibility Semantics

THE SEMANTIC REALISM OF STROUD S RESPONSE TO AUSTIN S ARGUMENT AGAINST SCEPTICISM

Comments on Truth at A World for Modal Propositions

Remarks on a Foundationalist Theory of Truth. Anil Gupta University of Pittsburgh

Cognitivism about imperatives

Boghossian & Harman on the analytic theory of the a priori

A. Problem set #3 it has been posted and is due Tuesday, 15 November

Informalizing Formal Logic

How Gödelian Ontological Arguments Fail

Logic & Proofs. Chapter 3 Content. Sentential Logic Semantics. Contents: Studying this chapter will enable you to:

What is the Frege/Russell Analysis of Quantification? Scott Soames

GROUNDING AND LOGICAL BASING PERMISSIONS

PROPOSITIONAL LOGIC OF SUPPOSITION AND ASSERTION 1

Formalizing a Deductively Open Belief Space

Facts and Free Logic. R. M. Sainsbury

Facts and Free Logic R. M. Sainsbury

What is an Argument? Validity vs. Soundess of Arguments

Logic Appendix: More detailed instruction in deductive logic

There are two common forms of deductively valid conditional argument: modus ponens and modus tollens.

Millian responses to Frege s puzzle

Coordination Problems

Selections from Aristotle s Prior Analytics 41a21 41b5

Can A Priori Justified Belief Be Extended Through Deduction? It is often assumed that if one deduces some proposition p from some premises

Philosophy 203 History of Modern Western Philosophy. Russell Marcus Hamilton College Spring 2010

part one MACROSTRUCTURE Cambridge University Press X - A Theory of Argument Mark Vorobej Excerpt More information

Chapter 1. Introduction. 1.1 Deductive and Plausible Reasoning Strong Syllogism

PHI 1500: Major Issues in Philosophy

The Paradox of Knowability and Semantic Anti-Realism

1.2. What is said: propositions

Conditionals II: no truth conditions?

SOME RADICAL CONSEQUENCES OF GEACH'S LOGICAL THEORIES

Logical Omniscience in the Many Agent Case

ELEMENTS OF LOGIC. 1.1 What is Logic? Arguments and Propositions

A Recursive Semantics for Defeasible Reasoning

Chapter 9- Sentential Proofs

A Problem for a Direct-Reference Theory of Belief Reports. Stephen Schiffer New York University

Ling 98a: The Meaning of Negation (Week 1)

LOGIC: An INTRODUCTION to the FORMAL STUDY of REASONING. JOHN L. POLLOCK University of Arizona

A Logic of Implicit and Explicit Belief

The Problem of Induction and Popper s Deductivism

Predicate logic. Miguel Palomino Dpto. Sistemas Informáticos y Computación (UCM) Madrid Spain

Transcription:

Module 5 Knowledge Representation and Logic (Propositional Logic)

Lesson 12 Propositional Logic inference rules

5.5 Rules of Inference Here are some examples of sound rules of inference. Each can be shown to be sound once and for all using a truth table. The left column contains the premise sentence(s), and the right column contains the derived sentence. We write each of these derivations as A - B, where A is the premise and B is the derived sentence. Name Premise(s) Modus Ponens A, A => B B Derived Sentence And Introduction A, B A ^ B And Elimination A ^ B A Double Negation ~~A A Unit Resolution A v B, ~B A Resolution A v B, ~B v C A v C In addition to the above rules of inference one also requires a set of equivalences of propositional logic like A /\ B is equivalent to B /\ A. A number of such equivalences were presented in the discussion on propositional logic. 5.6 Using Inference Rules to Prove a Query/Goal/Theorem A proof is a sequence of sentences, where each sentence is either a premise or a sentence derived from earlier sentences in the proof by one of the rules of inference. The last sentence is the query (also called goal or theorem) that we want to prove. Example for the "weather problem" given above. 1. Q Premise 2. Q => P Premise 3. P Modus Ponens(1,2) 4. (P ^ Q) => R Premise 5. P ^ Q And Introduction(1,3) 6. R Modus Ponens(4,5) 5.6.1 Inference vs Entailmant There is a subtle difference between entailment and inference.

Notice that inference is not directly related to truth; i.e. we can infer a sentence provided we have rules of inference that produce the sentence from the original sentences. However, if rules of inference are to be useful we wish them to be related to entailment. Ideally we would like: iff but this equivalence may fail in two ways: but We have inferred q by applying rules of inference to p, but there is some model in which p holds but q does not hold. In this case the rules of inference have inferred ``too much''. but q is a sentence which holds in all models in which p holds, but we cannot find rules of inference that will infer q from p. In this case the rules of inference are insufficient to infer the things we want to be able to infer. 5.7 Soundness and Completeness These notions are so important that there are 2 properties of logics associated with them. ``A sound inference procedure infers things that are valid consequences''

``A complete inference procedure is able to infer anything that is that is a valid consequence'' The ``best'' inference procedures are both sound and complete, but gaining completeness is often computationally expensive. Notice that even if inference is not complete it is desirable that it is sound. Propositional Logic and Predicate Logic each with Modus Ponens as their inference produce are sound but not complete. We shall see that we need further (sound) rules of inference to achieve completeness. In fact we shall see that we shall even restrict the language in order to achieve an effective inference procedure that is sound and complete for a subset of First Order Predicate Logic. The notion of soundness and completeness is more generally applied than in logic. Whenever we create a knowledge based program we use the syntax of the knowledge representation language, we assign a semantics in some way and the reasoning mechanism defines the inference procedures. The semantics will define what entailment means in this representation and we will be interested in how well the reasoning mechanism achieves entailment. 5.7.1 Decidability Determining whether is computationally hard. If q is a consequence then if is complete then we know that and we can apply the rules of inference exhaustively knowing that we will eventually find the sequence of rules of inference. It may take a long time but it is finite. However if q is not a consequence (remember the task is whether or not ) then we can happily apply rules of inference generating more and more irrelevant consequences. So the procedure is guaranteed to eventually stop if q is derivable, but may not terminate otherwise.

Entailment in Propositional Logic is decidable since truth tables can be applied in a finite number of steps to determine whether or not. Entailment in Predicate Logic is only semi-decidable; it is only guaranteed to terminate when q is a consequence. One result of this semi-decidability is that many problems are not decidable; if they rely on failing to prove some sentence. Planning is typically not decidable. A common reaction to a non-decidable problem is to assume the answer after some reasoning time threshold has been reached. Another reaction to the semidecidability of Predicate Logic is to restrict attention to subsets of the logic; however even if its entailment is decidable the procedure may be computationally expensive. Questions 1. Consider a knowledge base KB that contains the following propositional logic sentences: a) Construct a truth table that shows the truth value of each sentence in KB and indicate the models in which the KB is true. b) Does KB entail R? Use the definition of entailment to justify your answer. c) Does KB entail? Extend the truth table and use the definition of entailment to justify your answer. d) Does KB entail? Extend the truth table and use the definition of entailment to justify your answer. 2. Using propositional logic prove (D) from (A,B,C):

Solution 1.a. Truth table: 1.b. In every model in which the KB is true (indicated in the table), R is also true; thus the KB entails R. 1.c. The KB does not entail P. When (P,Q,R) is (F,F,T), is false. 1.d In every model in which the KB is true, is also true. 2. The proof steps are described below. Transforming A,B,C and the negation of D to CNF gives the following clauses:

Resolution proof may then proceed as follows: