Deductive Systems. Lecture  3


 Sarah Patrick
 9 months ago
 Views:
Transcription
1 Deductive Systems Lecture  3
2 Axiomatic System
3 Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth table and natural deduction approaches. The proofs of the theorems are often difficult and require a guess in selection of appropriate axiom(s) and rules. These methods basically require forward chaining strategy where we start with the given hypotheses and prove the goal.
4 Axiomatic System for PL Cont Three axioms and one rule of deduction. Axiom1 (A1): α (β α) Axiom2 (A2): (α (β γ)) ((α β) (α γ)) Axiom3 (A3): (~ α ~ β) ( β α) Modus Ponen (MP) defined as follows: Hypotheses: α β and α Consequent: β
5 Cont Definition: A deduction of a formula in Axiomatic System for Propositional Logic is a sequence of wellformed formulae α 1, α 2,..., α n such that for each i, (1 i n), either Either α i is an axiom or α i is a hypothesis (given to be true) Or α i is derived from α j and α k where j, k < i using modus ponen inference rule. We call α i to be a deductive consequence of {α 1,...,α i1 }. It is denoted by {α 1,.., α i1 }  α i. More formally, deductive consequence is defined on next slide.
6 Cont Definition: If is a set of hypotheses involved in the deduction of α as defined above, then α is called to be a deductive consequence of or α is deducible from. It is written as α. Definition: If is an empty set and α is deduced, then we write  α. In this case α is deduced from axioms only and no hypotheses are used. In such case we call α to be a theorem. Instances of the axioms are the simplest forms of theorems in Axiomatic Theory.
7 Cont It should be noted that proofs need not be unique. We have to carefully select axioms, which can lead to the proof. The proof of a theorem can be tricky and hard. The proofs require mixture of bottom up and top down reasoning. Start reasoning bottom up seeing what we can do with axioms and top down reasoning seeing what might possibly lead to answer.
8 Examples Establish the following: Ex1: {Q}  (P Q) i.e.,p Q is a deductive consequence of {Q}. {Hypothesis} Q (1) {Axiom A1} Q (P Q) (2) {MP, (1,2)} P Q proved
9 Examples Cont Ex2: { P Q, Q R }  ( P R ) i.e., P R is a deductive consequence of { P Q, Q R }. {Hypothesis} P Q (1) {Hypothesis} Q R (2) {Axiom A1} (Q R) (P (Q R)) (3) {MP, (2, 3)} P (Q R) (4) {Axiom A2} (P (Q R)) ((P Q) (P R)) (5) {MP, (4, 5)} (P Q) (P R) (6) {MP, (1, 6)} P R proved
10 Deduction Theorems in AS Deduction Theorem: If is a set of hypotheses and α and β are wellformed formulae, then { α }  β implies  (α β ). Converse of deduction theorem: Given  (α β ), we can prove { α }  β.
11 Useful Tips 1. Given α, we can easily prove β α for any wellformed formulae α and β. 2. If α β is to be proved, then include α in the set of hypotheses and derive β from the set { α}. Then using deduction theorem, we conclude α β.
12 Examples Example1: Prove  ~P (P Q) using deduction theorem of Axiomatic System. Proof: Prove {~ P}  (P Q) and  ~ P (P Q) follows from deduction theorem.
13 Proof {Prove} {~ P}  (P Q) {Hypothesis} ~ P (1) {Axiom A1} ~ P (~ Q ~ P) (2) {MP, (1, 2)} ~ Q ~ P (3) {Axiom A3} (~ Q ~ P) ( P Q) (4) {MP, (3,4)} P Q proved Hence by using deduction theorem, we conclude  ~ P (P Q)
14 Cont Example2: Prove that  (~ ~ P ~ ~P) is a theorem. Proof: {Theorem} {Axiom A1} {Axiom A2}  (~ ~P ~ ~P) ~ ~ P (( Q ~ ~P) ~ ~P) (1) (~ ~P (( Q ~ ~P) ~ ~P)) ((~ ~P ( Q ~ ~ P)) (~ ~P ~ ~P)) (2) { MP, (1, 2)} ((~ ~P ( Q ~ ~ P)) (~ ~P ~ ~P)) (3) {Axiom A1} ~ ~P ( Q ~ ~ P) (4) { MP, (3, 4) } ~ ~P ~ ~ P proved
15 Cont Definition: A truth valuation is a function ν from a set of wellformed formulae to the set {T, F} such that for any wellformed formulae α and β ν(~ α ) ν (α ) ν (α β ) = F iff ν (α ) = T and ν (β ) = F The truth assignment to the atoms uniquely determines the truth valuation of all formulae. Definition: A formula α is said to be valid (denoted by = α) if and only if for all valuation ν, ν(α) = T. Lemma 1: If α and β are wellformed formulae, then = α and = (α β) implies = β.
16 Cont Definition: A formula α is said to be inconsistent if and only if for all valuation ν, ν(α) = F. Definition: If α is a formula and a valuation ν such that ν(α) = T, then α is said to be consistent. Definition: A set of formulae is said to be mutually consistent if and only if they are all true simultaneously for some valuation. Definition: A set of formulae is said to be mutually inconsistent if and only if there exists no valuation under which conjunction of formulae is true.
17 Soundness and Completeness in AS Theorem : If α is a formula in AS, then α is a theorem if and only if α is valid. (Soundness): Every theorem is valid i.e.,  α = α. (Completeness): if α is valid then α is a theorem i.e., = α  α. (Consistency): Axiomatic System for propositional logic is consistent if it is not possible to prove both α and ~ α for any wellformed formula α i.e., not both  α and  ~ α.
18 Semantic Tableaux Method
19 Semantic Tableaux System in PL Earlier approaches require construction of proof of a formula from given set of formulae and are called direct methods. In semantic tableaux, the set of rules are applied systematically on a formula or set of formulae to establish its consistency or inconsistency. Semantic tableau binary tree constructed by using semantic rules with a formula as a root Assume α and β be any two formulae.
20 Semantic Tableaux Rules Let α and β be any two formulae. Rule 1: A tableau for a formula (α Λ β) is constructed by adding both α and β to the same path (branch). This can be represented as follows: α Λ β α β Interpretation: α Λ β is true if both α and β are true
21 Rules  Cont Rule 2: A tableau for a formula ~ (α Λ β) is constructed by adding two alternative paths one containing ~ α and other containing ~ β ~ (α Λ β) ~ α ~ β Interpretation: or ~ β is true ~ (α Λ β ) is true if either ~ α
22 Cont Rule 3: A tableau for a formula (α V β) is constructed by adding two new paths one containing α and other containing β. α V β α β Interpretation: α V β is true if either α or β is true
23 Cont Rule 4: A tableau for a formula ~ (α V β) is constructed by adding both ~ α and ~ β to the same path. This can be expressed as follows: ~ ( α V β) ~ α ~ β Rule 5: Semantic tableau for ~~ α ~~ α α
24 Rule 6: Semantic tableau for α β α β ~ α β Rule 7: Semantic tableau for ~ ( α β) ~ (α β) α ~ β
25 Rule 8: Semantic tableau for α β α β (α Λ β) V (~ α Λ ~ β) α β α Λ β ~ α Λ ~ β Rule 9: Semantic tableau for ~ (α β) ~ (α β) (α Λ ~ β) V (~ α Λ β) ~ (α β) α Λ ~ β ~ α Λ β
26 Consistency and Inconsistency If an atom P and ~ P appear on a same path of a semantic tableau, then inconsistency is indicated and such path is said to be contradictory or closed (finished) path. Even if one path remains non contradictory or unclosed (open), then the formula α at the root of a tableau is consistent.
27 Valuation A valuation ν is said to be a model of α (or ν satisfies α) iff ν (α) = T. In tableaux approach, model for a consistent formula α is constructed as follows: On an open path, assign truth values to atoms (positive or negative) of α which is at the root of a tableau such that α is made to be true. It is achieved by assigning truth value T to each atomic formula (positive or negative) on that path.
28 Contradictory Tableau Contradictory tableau (or finished tableau) is defined to be a tableau in which all the paths are contradictory or closed (finished). If a tableau for a formula α at the root is a contradictory tableau, then a formula α is said to be inconsistent. A formula α is consistent if there is at least on open path in a tableau with root α
29 Example Inconsistent Example: Show that α : (P Λ Q R) Λ (~P S) Λ Q Λ ~ R Λ ~ S is inconsistent using tableaux method. {Troot} (P Λ Q R) Λ ( ~P S) Λ Q Λ ~ R Λ ~ S (1) {Apply rule 1 to 1} P Λ Q R (2) ~P S (3) Q ~ R ~ S {Apply rule 6 to 3} P S Closed: {S, ~ S} on the path {Apply rule 6 to 2)} ~ (P Λ Q) R Closed { R, ~ R} ~P ~ Q Closed {P, ~ P} Closed{~ Q, Q}
30 Example  Consistent Problem: Show that α: ( Q Λ~R) Λ (R P) is consistent and find its model. Solution: {Troot} ( Q Λ ~ R) Λ ( R P) (1) {Apply rule 1 to 1} (Q Λ ~ R) (2) {Apply rule 1 to 2} ( R P) (3) Q {Apply rule 6 to 3} ~R ~ R P open open
31 Example Cont Since tableau for α has open paths, we conclude that α is consistent. The models are constructed by assigning T to all atomic formulae appearing on open paths. Assign Q = T and ~ R = T i.e., R = F. So { Q = T, R = F } is a model of α. Assign Q = T and ~ R = T and P = T. So { P = T, Q = T, R = F } is another model. Useful Tip: Thumb rule for constructing a tableau is to apply non branching rules before the branching rules in any order
32 Important Definitions A set of formulae {α 1, α 2,.,α n } is said to be consistent if the formulae in a set are simultaneously true for some model i.e., if a tableau for α 1 Λ α 2 Λ.. Λ α n has at least one open (or non contradictory) path. A set of formulae {α 1, α 2,.,α n } is said to be inconsistent iff all the formulae can not be true simultaneously i.e., tableau for (α 1 Λ α 2 Λ.Λ α n ) as a root is a contradictory tableau.
33 Definitions Cont A formula α is tableau provable if tableau with root entry as ~ α is contradictory tableau. A tableau proof of a formula α is a contradictory tableau with root entry as ~ α. A formula α is valid if α is tableau provable.
34 Soundness and Completeness Theorem: (Soundness) If α is tableau provable (  α ), then α is valid ( = α ) i.e.,  α = α. Theorem: (Completeness) If α is valid, then α is tableau provable i.e., = α  α.
35 Example  Validity Example: Show that α : P ( Q P) is valid Solution: In order to show that α is a valid, we will try to show that α is tableau provable i.e., ~ α is inconsistent. {Troot} ~ (P ( Q P)) (1) {Apply rule7 to 1} P ~ ( Q P) (2) {Apply rule 7 to 2} Q ~P Closed {P, ~ P} Hence P ( Q P) is valid.
36 Logical Consequence A tableau proof of a formula α from a set of premises = {α 1, α 2,,α n } is a tableau obtained from (α 1 Λ α 2 Λ.. Λ α n ) with ~ α as a root entry. If it is a contradictory tableau, then we say that α is tableau provable from. It is denoted by  α. A formula α is said to be a logical consequence (LC) of a set of premises, if α is tableau provable from. It is denoted by = α.
37 Soundness and Completeness of LC Theorem: (Soundness of deduction from premises): If there is a tableau proof of α from a set of premises, then α is a logical consequence of, i.e.,  α = α. Theorem: (Completeness of deduction from premises): If α is a logical consequence of a set of premises, then α is tableau provable from, i.e., = α  α.
38 Resolution Method in PL
39 Resolution Refutation in PL Resolution refutation is another simple method to prove a formula by contradiction. Here negation of goal to be proved is added to given set of clauses. It is shown then that there is a refutation in new set using resolution principle. Resolution: During this process we need to identify two clauses, one with positive atom (P) and other with negative atom (~P) for the application of resolution rule.
40 Cont Resolution is based on modus ponen inference rule. This method is most favoured for developing computer based theorem provers. Automatic theorem provers using resolution are simple and efficient systems. Resolution is performed on special types of formulae called clauses. Clause is propositional formula expressed using {V, ~ } operators.
41 Conjunctive and Disjunctive Normal Forms In Disjunctive Normal Form (DNF), a formula is represented in the form (L 11 Λ.. Λ L 1n ) V.. V (L m1 Λ.. Λ L mk ), of where all L ij are literals. It is a disjunction conjunction. In Conjunctive Normal Form (CNF), a formula is represented in the form (L 11 V.. V L 1n ) Λ Λ (L p1 V.. V L pm ), where all L ij are literals. It is a conjunction of disjunction. A clause is a special formula expressed as disjunction of literals. If a clause contains only one literal, then it is called unit clause.
42 Conversion of a Formula to its CNF Each formula in Propositional Logic can be easily transformed into its equivalent DNF or CNF representation using equivalence laws. Eliminate and by using the following equivalence laws. P Q ~ P V Q P Q ( P Q) Λ ( Q P) Eliminate double negation signs by using ~ ~ P P
43 Cont Use De Morgan s laws to push ~ (negation) immediately before atomic formula. ~ ( P Λ Q) ~ P V ~ Q ~ ( P V Q) ~ P Λ ~ Q Use distributive law to get CNF. P V (Q Λ R) (P V Q) Λ (P V R) We notice that CNF representation of a formula is of the form (C 1 Λ.. ΛC n ), where each C k, (1 k n ) is a clause that is disjunction of literals.
44 Resolution of Clauses If two clauses C 1 and C 2 contain a complementary pair of literals {L, ~L}, then these clauses can be resolved together by deleting L from C 1 and ~ L from C 2 and constructing a new clause by the disjunction of the remaining literals in C 1 and C 2. The new clause thus generated is called resolvent of C 1 and C 2. Here C and C 1 2 clause. are called parents of resolved If the resolvent contains one or more set of complementary pair of literals, then resolvent is always true.
45 Resolution Tree Inverted binary tree is generated with the last node of the binary tree to be a resolvent. This also called resolution tree. Example: Find resolvent of: C 1 = P V Q V R C 2 C 3 = ~ Q V ~ W = ~ P V ~ W
46 Example Resolution Tree P V Q V R ~ Q V ~W {Q, ~ Q} P V R V ~W {P, ~P} ~ P V ~ W R V ~W Thus Resolvent(C 1,C 2, C 3 ) = R V ~W
47 Definitions Theorem: If C is a resolvent of two clauses C 1 and C 2, then C is a logical consequence of {C 1, C 2 }. Definition: A deduction of an empty clause from a set S of clauses is called a resolution refutation of S. Theorem: (Soundness & Completeness of resolution): There is a resolution refutation of S iff S is unsatisfiable / inconsistent.
48 Cont Theorem: Let S be a set of clauses. A clause C is a logical consequence of S iff the set S = S {~ C} is unsatisfiable. In other words, C is a logical consequence of a given set S iff an empty clause is deduced from the set S'.
49 Example Example: Mary will get her degree if she registers as a student and pass her exam. She has registered herself as a student. She has passed her exam. Show that she will get a degree. Solution: Symbolize above statements as follows: R: Mary is a registered student P: Mary has passed her exam D: Mary gets her degree The formulae corresponding to above listed sentences are as follows:
50 Cont Mary will get her degree if she registers as a student and pass her exam. R Λ P D (~ R V ~ P V D) She has registered herself as a student. R She has passed her exam. P Conclude Mary will get a degree. D
51 Example Cont Set of clauses are: S = {~ R V ~ P V D, R, P } Add negation of "Mary gets her degree (= D)" to S. New set S' is: S' = {~ R V ~ P V D, R, P, ~ D} We can easily see that empty clause is deduced from above set. Hence we can conclude that Mary gets her degree
52 Deriving Contradiction ~ R V ~ P V D R ~ P V D P D ~ D
53 Exercises I. Establish the following: 1. { P Q, Q R }  ( P R ) 2. { P Q}  (R P) (R Q) 3. { P }  (~ P Q) 4. { ~Q, P ( ~Q R) }  P R 5. {P Q, ~ Q }  ~ P. This is called Modus Tollen rule. II. Prove the following theorems 1.  (P P) 2.  (~ P P) P 3.  (P Q) (~ Q ~ P) 4.  (P ~ Q) ( Q ~ P) III. Give tableau proof of each of the following formulae and show that formulae are valid. 1. P ( Q P) 2. (P Λ (Q V R) (( P Λ Q) V ( P Λ R)) 3. ~ (P V Q) (~ P Λ ~ Q) IV. Are the following arguments valid? 1. If John lives in England then he lives in UK. John lives in England. Therefore, John lives in UK. 2. If John lives in England then he lives in UK. John lives in UK. Therefore, John lives in England. 3. If John lives in England then he lives in UK. John does not live in UK. Therefore, John does not live in England. V. Prove by resolution refutation 1. {P Λ Q, ~ P V R} = Q V R 2. { P, Q R, P R} = P Λ R 3. {P Q Λ R, P} = R
Computational Logic. Davide Martinenghi. Spring Free University of BozenBolzano. Computational Logic Davide Martinenghi (1/30)
Computational Logic Davide Martinenghi Free University of BozenBolzano Spring 2010 Computational Logic Davide Martinenghi (1/30) Propositional Logic  sequent calculus To overcome the problems of natural
More informationAdvanced Topics in LP and FP
Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection
More information02 Propositional Logic
SE 2F03 Fall 2005 02 Propositional Logic Instructor: W. M. Farmer Revised: 25 September 2005 1 What is Propositional Logic? Propositional logic is the study of the truth or falsehood of propositions or
More informationIntroduction Logic Inference. Discrete Mathematics Andrei Bulatov
Introduction Logic Inference Discrete Mathematics Andrei Bulatov Discrete Mathematics  Logic Inference 62 Previous Lecture Laws of logic Expressions for implication, biconditional, exclusive or Valid
More informationThe Importance of Being Formal. Martin Henz. February 5, Propositional Logic
The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets
More informationKnowledge based Agents
Knowledge based Agents Shobhanjana Kalita Dept. of Computer Science & Engineering Tezpur University Slides prepared from Artificial Intelligence A Modern approach by Russell & Norvig Knowledge Based Agents
More informationPropositional logic II.
Lecture 5 Propositional logic II. Milos Hauskrecht milos@cs.pitt.edu 5329 ennott quare Propositional logic. yntax yntax: ymbols (alphabet) in P: Constants: True, False Propositional symbols Examples: P
More informationPropositional Logic: Models and Proofs
Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505
More informationLogic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001
Logic Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001 Last Lecture Games Cont. αβ pruning Outline Games with chance, e.g. Backgammon Logical Agents and thewumpus World
More informationPropositional Reasoning
Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS
More informationPropositional Logic Language
Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite
More informationPropositional Logic. Logic. Propositional Logic Syntax. Propositional Logic
Propositional Logic Reading: Chapter 7.1, 7.3 7.5 [ased on slides from Jerry Zhu, Louis Oliphant and ndrew Moore] Logic If the rules of the world are presented formally, then a decision maker can use logical
More informationCS 380: ARTIFICIAL INTELLIGENCE
CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS 11/8/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary of last day: Logical gents: The can
More information3 Propositional Logic
3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists
More informationVersion January Please send comments and corrections to
Mathematical Logic for Computer Science Second revised edition, SpringerVerlag London, 2001 Answers to Exercises Mordechai BenAri Department of Science Teaching Weizmann Institute of Science Rehovot
More informationCS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón
CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS Santiago Ontañón so367@drexeledu Summary of last day: Logical gents: The can reason from the knowledge they have They can make deductions from their perceptions,
More informationLogic: First Order Logic
Logic: First Order Logic Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of BolzanoBozen http://www.inf.unibz.it/~bernardi/courses/logic06
More informationSupplementary exercises in propositional logic
Supplementary exercises in propositional logic The purpose of these exercises is to train your ability to manipulate and analyze logical formulas. Familiarize yourself with chapter 7.37.5 in the course
More informationRevised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1
Revised by Hankui Zhuo, March, 08 Logical agents Chapter 7 Chapter 7 Outline Wumpus world Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference
More informationSemantics and Pragmatics of NLP
Semantics and Pragmatics of NLP Alex Ewan School of Informatics University of Edinburgh 28 January 2008 1 2 3 Taking Stock We have: Introduced syntax and semantics for FOL plus lambdas. Represented FOL
More informationNotes on Inference and Deduction
Notes on Inference and Deduction Consider the following argument 1 Assumptions: If the races are fixed or the gambling houses are crooked, then the tourist trade will decline. If the tourist trade declines
More informationIntroduction to Intelligent Systems
Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:
More informationArtificial Intelligence
Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) Outline Knowledgebased agents Wumpus world Logic in general
More informationInf2D 13: ResolutionBased Inference
School of Informatics, University of Edinburgh 13/02/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Last lecture: Forward and backward chaining Backward chaining: If Goal is known
More informationPropositional Calculus: Formula Simplification, Essential Laws, Normal Forms
P Formula Simplification, Essential Laws, Normal Forms Lila Kari University of Waterloo P Formula Simplification, Essential Laws, Normal CS245, Forms Logic and Computation 1 / 26 Propositional calculus
More informationPropositional Logic. Fall () Propositional Logic Fall / 30
Propositional Logic Fall 2013 () Propositional Logic Fall 2013 1 / 30 1 Introduction Learning Outcomes for this Presentation 2 Definitions Statements Logical connectives Interpretations, contexts,... Logically
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short
More informationChapter 7 R&N ICS 271 Fall 2017 Kalev Kask
Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing
More informationIntroduction to Metalogic
Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)
More informationPropositional logic. Programming and Modal Logic
Propositional logic Programming and Modal Logic 20062007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness
More informationCOMP219: Artificial Intelligence. Lecture 19: Logic for KR
COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof
More informationLogic for Computer Scientists
Logic for Computer Scientists Pascal Hitzler http://www.pascalhitzler.de CS 499/699 Lecture, Winter Quarter 2011 Wright State University, Dayton, OH, U.S.A. [final version: 03/10/2011] Contents 1 Propositional
More informationArtificial Intelligence
Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2016/17 (slides based on Stuart Russell s AI course) Motivation: Most students will have learnt about propositional
More informationAI Programming CS S09 Knowledge Representation
AI Programming CS6622013S09 Knowledge Representation David Galles Department of Computer Science University of San Francisco 090: Overview So far, we ve talked about search, which is a means of considering
More informationPropositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173
Propositional Logic CSC 17 Propositional logic mathematical model (or algebra) for reasoning about the truth of logical expressions (propositions) Logical expressions propositional variables or logical
More informationClassical Propositional Logic
The Language of A Henkinstyle Proof for Natural Deduction January 16, 2013 The Language of A Henkinstyle Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,
More informationPropositional Logic Part 1
Propositional Logic Part 1 Yingyu Liang yliang@cs.wisc.edu Computer Sciences Department University of Wisconsin, Madison [Based on slides from Louis Oliphant, Andrew Moore, Jerry Zhu] slide 1 5 is even
More informationPropositional Logic. Spring Propositional Logic Spring / 32
Propositional Logic Spring 2016 Propositional Logic Spring 2016 1 / 32 Introduction Learning Outcomes for this Presentation Learning Outcomes... At the conclusion of this session, we will Define the elements
More informationCHAPTER 1  LOGIC OF COMPOUND STATEMENTS
CHAPTER 1  LOGIC OF COMPOUND STATEMENTS 1.1  Logical Form and Logical Equivalence Definition. A statement or proposition is a sentence that is either true or false, but not both. ex. 1 + 2 = 3 IS a statement
More informationFirst Order Logic: Syntax and Semantics
CS1081 First Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Problems Propositional logic isn t very expressive As an example, consider p = Scotland won on Saturday
More informationComputation and Logic Definitions
Computation and Logic Definitions True and False Also called Boolean truth values, True and False represent the two values or states an atom can assume. We can use any two distinct objects to represent
More informationNormal Forms of Propositional Logic
Normal Forms of Propositional Logic BowYaw Wang Institute of Information Science Academia Sinica, Taiwan September 12, 2017 BowYaw Wang (Academia Sinica) Normal Forms of Propositional Logic September
More informationPropositional Logic. CS 3234: Logic and Formal Systems. Martin Henz and Aquinas Hobor. August 26, Generated on Tuesday 31 August, 2010, 16:54
Propositional Logic CS 3234: Logic and Formal Systems Martin Henz and Aquinas Hobor August 26, 2010 Generated on Tuesday 31 August, 2010, 16:54 1 Motivation In traditional logic, terms represent sets,
More informationConvert to clause form:
Convert to clause form: Convert the following statement to clause form: x[b(x) ( y [ Q(x,y) P(y) ] y [ Q(x,y) Q(y,x) ] y [ B(y) E(x,y)] ) ] 1 Eliminate the implication ( ) E1 E2 = E1 E2 x[ B(x) ( y [
More informationLogical agents. Chapter 7. Chapter 7 1
Logical agents Chapter 7 Chapter 7 Outline Knowledgebased agents Wumpus world Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules
More informationDeliberative Agents Knowledge Representation I. Deliberative Agents
Deliberative Agents Knowledge Representation I Vasant Honavar Bioinformatics and Computational Biology Program Center for Computational Intelligence, Learning, & Discovery honavar@cs.iastate.edu www.cs.iastate.edu/~honavar/
More informationPropositional Logic Arguments (5A) Young W. Lim 10/11/16
Propositional Logic (5A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationThe Logic of Compound Statements cont.
The Logic of Compound Statements cont. CSE 215, Computer Science 1, Fall 2011 Stony Brook University http://www.cs.stonybrook.edu/~cse215 Refresh from last time: Logical Equivalences Commutativity of :
More informationInference in firstorder logic
CS 2710 Foundations of AI Lecture 15 Inference in firstorder logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB
More informationPropositional Logics and their Algebraic Equivalents
Propositional Logics and their Algebraic Equivalents Kyle Brooks April 18, 2012 Contents 1 Introduction 1 2 Formal Logic Systems 1 2.1 Consequence Relations......................... 2 3 Propositional Logic
More informationLogic for Computer Scientists
Logic for Computer Scientists Pascal Hitzler http://www.pascalhitzler.de CS 499/699 Lecture, Winter Quarter 2012 Wright State University, Dayton, OH, U.S.A. [version: 03/01/2012] Contents 1 Propositional
More informationPropositional logic. Programming and Modal Logic
Propositional logic Programming and Modal Logic 20062007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness
More informationMAI0203 Lecture 7: Inference and Predicate Calculus
MAI0203 Lecture 7: Inference and Predicate Calculus Methods of Artificial Intelligence WS 2002/2003 Part II: Inference and Knowledge Representation II.7 Inference and Predicate Calculus MAI0203 Lecture
More informationCS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms
CS206 Lecture 03 Propositional Logic Proofs G. Sivakumar Computer Science Department IIT Bombay siva@iitb.ac.in http://www.cse.iitb.ac.in/ siva Page 1 of 12 Fri, Jan 03, 2003 Plan for Lecture 03 Axioms
More informationApplied Logic. Lecture 1  Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw
Applied Logic Lecture 1  Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018
More informationDeduction by Daniel Bonevac. Chapter 3 Truth Trees
Deduction by Daniel Bonevac Chapter 3 Truth Trees Truth trees Truth trees provide an alternate decision procedure for assessing validity, logical equivalence, satisfiability and other logical properties
More informationChapter 1: The Logic of Compound Statements. January 7, 2008
Chapter 1: The Logic of Compound Statements January 7, 2008 Outline 1 1.1 Logical Form and Logical Equivalence 2 1.2 Conditional Statements 3 1.3 Valid and Invalid Arguments Central notion of deductive
More informationOverview. KnowledgeBased Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR
COMP219: Artificial Intelligence Lecture 19: Logic for KR Last time Expert Systems and Ontologies oday Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof theory Natural
More informationIntroduction to Logic in Computer Science: Autumn 2007
Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Tableaux for Firstorder Logic The next part of
More informationPHI Propositional Logic Lecture 2. Truth Tables
PHI 103  Propositional Logic Lecture 2 ruth ables ruth ables Part 1  ruth unctions for Logical Operators ruth unction  the truthvalue of any compound proposition determined solely by the truthvalue
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) This lecture topic: Propositional Logic (two lectures) Chapter 7.17.4 (previous lecture, Part I) Chapter 7.5 (this lecture, Part II) (optional: 7.67.8)
More informationPropositional Logic: BottomUp Proofs
Propositional Logic: BottomUp Proofs CPSC 322 Logic 3 Textbook 5.2 Propositional Logic: BottomUp Proofs CPSC 322 Logic 3, Slide 1 Lecture Overview 1 Recap 2 BottomUp Proofs 3 Soundness of BottomUp
More informationCITS2211 Discrete Structures Proofs
CITS2211 Discrete Structures Proofs Unit coordinator: Rachel CardellOliver August 13, 2017 Highlights 1 Arguments vs Proofs. 2 Proof strategies 3 Famous proofs Reading Chapter 1: What is a proof? Mathematics
More informationIntelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.
Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015
More informationResolution: Motivation
Resolution: Motivation Steps in inferencing (e.g., forwardchaining) 1. Define a set of inference rules 2. Define a set of axioms 3. Repeatedly choose one inference rule & one or more axioms (or premices)
More informationFormal Logic 2. This lecture: Standard Procedure of Inferencing Normal forms Standard Deductive Proofs in Logic using Inference Rules
ormal Logic 2 HW2 Due Now & ickup HW3 handout! Last lecture ropositional Logic ropositions, Statements, Connectives, ruth table, ormula W roperties: autology, Contradiction, Validity, Satisfiability Logical
More informationIntroduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010
Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction
More information7.5.2 Proof by Resolution
137 7.5.2 Proof by Resolution The inference rules covered so far are sound Combined with any complete search algorithm they also constitute a complete inference algorithm However, removing any one inference
More informationLecture 4: Proposition, Connectives and Truth Tables
Discrete Mathematics (II) Spring 2017 Lecture 4: Proposition, Connectives and Truth Tables Lecturer: Yi Li 1 Overview In last lecture, we give a brief introduction to mathematical logic and then redefine
More informationMathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture  15 Propositional Calculus (PC)
Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras Lecture  15 Propositional Calculus (PC) So, now if you look back, you can see that there are three
More informationCHAPTER 11. Introduction to Intuitionistic Logic
CHAPTER 11 Introduction to Intuitionistic Logic Intuitionistic logic has developed as a result of certain philosophical views on the foundation of mathematics, known as intuitionism. Intuitionism was originated
More informationResolution (14A) Young W. Lim 8/15/14
Resolution (14A) Young W. Lim Copyright (c) 20132014 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationPropositional and Predicate Logic  II
Propositional and Predicate Logic  II Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic  II WS 2016/2017 1 / 16 Basic syntax Language Propositional logic
More informationPropositional natural deduction
Propositional natural deduction COMP2600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2016 Major proof techniques 1 / 25 Three major styles of proof in logic and mathematics Model
More informationClause/Term Resolution and Learning in the Evaluation of Quantified Boolean Formulas
Journal of Artificial Intelligence Research 1 (1993) 115 Submitted 6/91; published 9/91 Clause/Term Resolution and Learning in the Evaluation of Quantified Boolean Formulas Enrico Giunchiglia Massimo
More informationPropositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38
Propositional Logic Jason Filippou CMSC250 @ UMCP 05312016 ason Filippou (CMSC250 @ UMCP) Propositional Logic 05312016 1 / 38 Outline 1 Syntax 2 Semantics Truth Tables Simplifying expressions 3 Inference
More informationTableaux, Abduction and Truthlikeness RESEARCH REPORT
Section of Logic and Cognitive Science Institute of Psychology Adam Mickiewicz University in Poznań Mariusz Urbański Tableaux, Abduction and Truthlikeness RESEARCH REPORT Szamarzewskiego 89, 60589 Poznań,
More informationTableau Systems for Logics of Formal Inconsistency
Tableau Systems for Logics of Formal Inconsistency Walter A. Carnielli Centre for Logic and Epistemology, and Department of Philosophy State University of Campinas CLE/Unicamp, Campinas, Brazil João Marcos
More informationLogical Agents. Outline
Logical Agents *(Chapter 7 (Russel & Norvig, 2004)) Outline Knowledgebased agents Wumpus world Logic in general  models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability
More informationPropositional Logic Arguments (5A) Young W. Lim 11/8/16
Propositional Logic (5A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationRules Build Arguments Rules Building Arguments
Section 1.6 1 Section Summary Valid Arguments Inference Rules for Propositional Logic Using Rules of Inference to Build Arguments Rules of Inference for Quantified Statements Building Arguments for Quantified
More informationLogic Part II: Intuitionistic Logic and Natural Deduction
Yesterday Remember yesterday? classical logic: reasoning about truth of formulas propositional logic: atomic sentences, composed by connectives validity and satisability can be decided by truth tables
More informationCSE 20 DISCRETE MATH. Fall
CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20ab/ Today's learning goals Distinguish between a theorem, an axiom, lemma, a corollary, and a conjecture. Recognize direct proofs
More informationSec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text)
Section 1.3 1 Sec$on Summary Tautologies, Contradictions, and Contingencies. Logical Equivalence Important Logical Equivalences Showing Logical Equivalence Normal Forms (optional, covered in exercises
More informationExample. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives
Logic Logic is study of abstract reasoning, specifically, concerned with whether reasoning is correct. Logic focuses on relationship among statements as opposed to the content of any particular statement.
More informationFirstOrder Theorem Proving and Vampire
FirstOrder Theorem Proving and Vampire Laura Kovács 1,2 and Martin Suda 2 1 TU Wien 2 Chalmers Outline Introduction FirstOrder Logic and TPTP Inference Systems Saturation Algorithms Redundancy Elimination
More information10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truthpreserving system of inference
Logic? Propositional Logic (Rosen, Chapter 1.1 1.3) TOPICS Propositional Logic Truth Tables Implication Logical Proofs 10/1/12 CS160 Fall Semester 2012 2 What is logic? Logic is a truthpreserving system
More informationCS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms
CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms Assaf Kfoury 5 February 2017 Assaf Kfoury, CS 512, Spring
More informationCHAPTER 10. Gentzen Style Proof Systems for Classical Logic
CHAPTER 10 Gentzen Style Proof Systems for Classical Logic Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. By humans, not mentioning
More information3 The Semantics of the Propositional Calculus
3 The Semantics of the Propositional Calculus 1. Interpretations Formulas of the propositional calculus express statement forms. In chapter two, we gave informal descriptions of the meanings of the logical
More informationLogical Agents. Chapter 7
Logical Agents Chapter 7 Outline Knowledgebased agents Wumpus world Logic in general  models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem
More informationFirst Order Logic: Syntax and Semantics
irst Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Logic Recap You should already know the basics of irst Order Logic (OL) It s a prerequisite of this course!
More informationOverview, cont. Overview, cont. Logistics. Optional Reference #1. Optional Reference #2. Workload and Grading
Course staff CS389L: Automated Logical Reasoning Lecture 1: ntroduction and Review of Basics şıl Dillig nstructor: şil Dillig Email: isil@cs.utexas.edu Office hours: Thursday after class until 6:30 pm
More informationLogical Agents. Santa Clara University
Logical Agents Santa Clara University Logical Agents Humans know things Humans use knowledge to make plans Humans do not act completely reflexive, but reason AI: Simple problemsolving agents have knowledge
More informationFirst Order Logic (1A) Young W. Lim 11/18/13
Copyright (c) 2013. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software
More informationPropositional Logic Resolution (6A) Young W. Lim 12/31/16
Propositional Logic Resolution (6A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License,
More informationMathematics for linguists
Mathematics for linguists WS 2009/2010 University of Tübingen January 7, 2010 Gerhard Jäger Mathematics for linguists p. 1 Inferences and truth trees Inferences (with a finite set of premises; from now
More informationAxiomatic systems. Revisiting the rules of inference. Example: A theorem and its proof in an abstract axiomatic system:
Axiomatic systems Revisiting the rules of inference Material for this section references College Geometry: A Discovery Approach, 2/e, David C. Kay, Addison Wesley, 2001. In particular, see section 2.1,
More information1 Propositional Logic
CS 2800, Logic and Computation Propositional Logic Lectures Pete Manolios Version: 384 Spring 2011 1 Propositional Logic The study of logic was initiated by the ancient Greeks, who were concerned with
More informationIntroduction to Artificial Intelligence. Logical Agents
Introduction to Artificial Intelligence Logical Agents (Logic, Deduction, Knowledge Representation) Bernhard Beckert UNIVERSITÄT KOBLENZLANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Knowledgebased
More information