6. Logical Inference
|
|
- Myles Pierce
- 5 years ago
- Views:
Transcription
1 Artificial Intelligence 6. Logical Inference Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder University of Zagreb Faculty of Electrical Engineering and Computing Academic Year 2016/2017 Creative Commons Attribution NonCommercial NoDerivs Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
2 Outline 1 Three inference tasks 2 Proof theory 3 Resolution in PL 4 Resolution in FOL Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
3 Outline 1 Three inference tasks 2 Proof theory 3 Resolution in PL 4 Resolution in FOL Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
4 Three inference tasks (1) Model checking: given a formula F and an interpretation I, we wish to check if I is the model of F, i.e., if F is true in interpretation I (2) Satisfiability checking or SAT problem: given a formula F, check whether there exists a model for this formula Also known as model building (3) Validity checking: given a formula F, check whether it is valid, i.e., true for every possible interpretation What about proving logical consequences? Proving logical consequences amounts to validity checking (recall the semantic deduction theorem) Q: Are these problems computationally difficult? Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
5 Complexity of inference (1) Model checking: a very simple problem for each formula F and interpretation I, we can check in finitely many steps whether F is true in I decidable in both PL and FOL (under some mild constrainds) the tool for solving this is called a model checker Satisfiability and validity: much harder problems! equally hard, because they are dual to each other: F is valid iff F is not satisfiable thus, if we have an algorithm to solve the SAT problem, we can use it for the satisfiability problem, which in turn means that we can use it to prove logical consequences Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
6 Complexity of inference (2) In PL, SAT is decidable: in finitely many steps we can check if there exists a model for a given formula Although decidable, the problem is intractable (suprapolynomial): the complexity is O(2 n ), where n is the number of propositional variables (2 n rows of a truth table must be checked) SAT problem u PL-u one of the first known NP-complete problem (Cook, 1971) In FOL, SAT is undecidable: no algorithm exists that can check the satisfiability of every formula Algorithms that solve the SAT problem are called SAT solvers. In PL, they can solve all SAT problems, whereas in FOL, they can solve only some Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
7 Problems with proving semantic consequences (1) Intractability: We need to check 2 n interpretations Imagine we wish to prove F1,..., F 100 F 1. Assuming also n = 100, we should check interpretations. This is impossible! Moreover, in this particular case it seems an overkill because it is evident that the semantic consequence relation holds (2) Undecidability: In FOL, the number of interpretations is infinite, thus we have no chance to check all interpretations Actually, FOL is semi-decidable: we can prove validity if it holds, but if it doesn t, we cannot always prove that it doesn t Is there a way out of these problems? Yes, to some extent Instead to deal with interpretations and models (i.e., semantics), we should shift to using rules of inference (i.e, proof theory) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
8 Outline 1 Three inference tasks 2 Proof theory 3 Resolution in PL 4 Resolution in FOL Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
9 Proof theory People don t really draw the conclusions by proving semantic consequences (it s not that they try to find interpretations that satisfy F, but don t satisfy G)! Instead of this, they try to show that G can be derived from the premises using a number of inference rules Each rule needs to be justified and simple Rules of inference enable us to derive new formulae from given premises, without making any explicit reference to the semantics of logic (the truth values of propositional variables) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
10 Proof theory Thus, proof theory offers two benefits over proving semantic consequences: efficiency: instead of searching exhaustively through all the interpretations, we can prove consequences faster (especially when using a smart proof strategy). Note, however, that we cannot escape undecidability of FOL interpretability: we can explain why something follows from the premises (by appealing to the rules of inference). We get a proof Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
11 Deductive consequence Deductive consequence Formula G is a deduction or deductive consequence of formulae F 1, F 2,..., F n if and only if G can be derived from the premises F 1, F 2,..., F n using rules of inference. We write F 1, F 2,..., F n G and read F 1,..., F n derives or deductively entails G. Theorem Formula G is a theorem if and only if G holds, i.e., formula G can be derived from an empty set of premises. Proving F G is equivalent to proving F G This is why we talk of theorem proving instead of deriving deductions Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
12 Proving theorems In AI, we are interested in doing theorem proving automatically This is what automated reasoning and automated theorem proving (ATP) are about Proof theory has provided us with many proof methods A tool that implements a proof method is called a theorem prover Theorem provers differ from model checkers in that they only perform syntactic symbol manipulations (they are not concerned about models and semantics) But of course, what theorem provers derive must be semantically correct, i.e., justifiable in semantic terms Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
13 Rules of inference An example of an inference rule: If two propositions are true, then their conjunction is true as well Conjunction introduction rule A B A B or A, B A B What about the following rule? A B A Intuitively, the first rule is semantically correct, whereas the second rule isn t For a rule to be correct, its deductive consequence must also be the semantic consequence of the premises Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
14 Soundness and completeness Soundness An inference rule is sound if, when applied to a set of premises, derives a formula that is a logical consequence of these premises. Formally, a rule of inference r is sound if and only if Completeness if F 1,..., F n r G then F 1,..., F n G A set of rules R is complete if and only if it can be used to derive all logical consequences: if F 1,..., F n G then F 1,..., F n R G Soundness and completeness tie together semantics and proof theory (they provide a two-way link between and ) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
15 Soundness and completeness an example Let s prove that F G, F G (modus ponens) is a sound rule. We must prove F G, F G. Direct proof: F G F G (F G) F ( (F G) F ) G Let s prove that F G, G F (abduction) is not sound. We must prove F G, G F. Direct proof: F G F G (F G) G ( (F G) G ) F Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
16 Proof methods Theorem provers utilize a particular proof method That method must be semantically sound, and preferably also complete Many methods have been developed: natural deduction systems axiomatic (Hilbert-style) systems sequent calculi tableau method resolution method We will focus on the resolution method. This method is sound and complete, and can easily be implemented on a computer. Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
17 Outline 1 Three inference tasks 2 Proof theory 3 Resolution in PL 4 Resolution in FOL Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
18 Resolution method Resolution method is used in propositional logic and first-order predicate logic First proposed by J. Robinson in 1965 The method consists of a single inference rule: Resolution rule A F A G F G which is equivalent to: or F A, A G F G A F, A G F G The advantage here is that we re working with a single rule, which greatly simplifies automated reasoning Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
19 Resolution rule soundness Let s convince ourselves that the resolution rule is sound We must prove that the deductive consequence derived with the resolution rule also is a semantic consequence. I.e., we must prove: A F, A G F G For example, using the direct method: P {}}{ A F A Q {}}{ A G P Q R {}}{ F G (P Q) R A F G Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
20 Clause Resolution rule can only be applied to premises that are disjunctions If we wish to be able to apply the resolution rule many times over, all premises must be in a form of disjunctions of literals. This form is called a clause Clause A literal is an atom or its negation. A clause is a disjunction of finitely many literals G i : G 1 G 2 G n, n 0 A clause containing a single literal is called a unit clause. Examples of literals: A, F, A, F, G, G Examples of clauses: A F, A G, A B C D, F Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
21 Resolution on clauses Resolution rule on clauses F 1 F i F n G 1 G i G m F 1 F i 1 F i+1 F n G 1 G i 1 G i+1 G n where F i and G i are complementary literals (one is the negation of the other). The premises are called the input clauses and the deduction is called the resolvent. Examples: A B C, D B E A C D E A B, A B A B, A B A A A B, A B B B A B, A B A A Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
22 Conjunctive normal form If the premises are clauses, the set of premises is a conjunction of clauses (the premises are implicitly conjoined with ) Q: Does this restrict the application of resolution? A: No! Every formula can be represented as a conjunction of clauses by conversion into the conjunctive normal form Conjunctive normal form (CNF) Formula F is in a conjunctive normal form iff F is in the form where F i is in the form F 1 F 2 F n G i1 G i2 G im where G ij are literals (atoms or their negations). Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
23 Conversion into CNF Every formula can be converted into CNF in four sequential steps: Conversion into CNF (1) Equivalence elimination: F G ( F G) ( G F ) (2) Implication elimination: F G F G (3) Moving negations onto atoms: (F G) F G (F G) F G (4) Applying distributive law: F (G H) (F G) (F H) Each step is applied repeatedly until the result no longer changes. Involution F F is applied in each step whenever possible. Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
24 Conversion into CNF an example (1) Eliminate equivalences: (2) Eliminate implications: (3) Move negations in: (C D) ( A B) (C D) ( A B) (C D) ( ( A B) ( B A) ) (C D) ( (A B) ( B A) ) (C D) ( (A B) ( B A) ) (4) Apply distributive laws: ( C D) ( (A B) ( B A) ) ( ( C D) (A B) ) ( ( C D) ( B A) ) ( ( C A B) ( D A B) ) ( ( C D) ( B A) ) ( ( C A B) ( D A B) ) ( ( C B A) ( D B A) ) ( C A B) ( D A B) ( C B A) ( D B A) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
25 Clausal form A CNF formula can be represented as a set of clauses implicitly conjoined with Each clause can be represented as set of literals implicitly conjoined with Thus, a formula can be represented as a set of sets of literals This is called the clausal form For example: ( C A B) ( D A B) ( C B) { { C, A, B}, { D, A, B}, { C, B} } We also often write the clauses one below the other: C A B D A B C B Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
26 Resolution The inference step is repeated until: (1) the goal formula is derived (2) no further formulae can be derived (3) computational resources are exhausted Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
27 Resolution an example Let us use resolution to prove: A B, B C, A C Premises in clausal form: (1) A B (2) B C (3) A Derivation: (4) A C (from 1 & 2) (5) C (from 3 & 4) Alternative derivation: (4 ) B (from 1 & 3) (5 ) C (from 2 & 4 ) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
28 Incompleteness of resolution We ve proved that that the resolution rule is sound. But is it complete? We can easily show that the resolution rule is not complete E.g., let us consider the deduction F F G We cannot derive this using the resolution rule (why not?) But F F G does hold (check this!) Since F F G holds, but we cannot derive F F G using the resolution rule, it follows that the resolution rule cannot derive all logical consequences, and hence the resolution rule is not complete Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
29 Direct vs. refutation resolution The resolution procedure we ve been using thus far is the direct resolution, which tries to derive G from F 1,..., F n There also exists refutation resolution, which instead tries to prove that F 1 F n G is inconsistent Direct resolution is incomplete, but refutation resolution is complete Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
30 Refutation resolution (1) Instead of trying to prove F 1,..., F n F 1 F n G is inconsistent As a special case of the resolution rule we have: A A NIL G, we try to prove that NIL denotes the empty clause whose semantic value is If the resolution procedure derives NIL, then this means that the premises are inconsistent (because the resolution rule is sound) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
31 Refutation resolution (2) It has been proven that, whenever the set of clauses is inconsistent, resolution will derive the NIL clause (ground resolution theorem) Thus we can always prove the inconsistency of a set of clauses This also means that we can prove all logical consequences. Q: Why? A: Because we can prove F G using the refutation method, by proving that F G is inconsistent This then means that refutation resolution is complete, because we can use it prove all logical consequences Therefore, refutation resolution is both sound and complete! Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
32 Refutation resolution example 1 Let us show that we can use refutation resolution to prove F F G: Negation of the goal formula: (F G) F G Set of clauses: (1) F (2) F (3) G From (1) and (2) we derive NIL This proves that the set of premises is inconsistent, i.e., that F G is the deductive/logical consequence of F Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
33 Refutation resolution example 2 A diplomatic problem As a Protocol Representative, you re in charge of sending out invitations for the Annual Diplomats Ball. You are to take into account the following: (1) The ambassador wants you to also invite UK, if you invite Turkey. (2) The vice-ambassador wants you to invite Turkey or Argentina. (3) Due to a recent diplomatic incident, you cannot invite both UK and Argentina. Whom to invite? Let s prove: If I invite Turkey, I will not invite Argentina Logical representation of the problem: (T U) (T A) (U A) We need to prove T A (the goal) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
34 Refutation resolution example 2 Conversion into clauses: (1) T U (2) T A (3) U A Negation of the goal: (T A) ( T A) T A Adding new clauses: (4) T (5) A Resolution procedure: (6) U (from 1 & 4) (7) A (from 3 & 6) (8) NIL (from 5 & 7) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
35 Factorization Refutation resolution is complete proviso the clauses are factorized Factorization uses equivalence G G G to eliminate multiple occurrences of a literal in a formula For example: A A, A A A A The set of clauses is inconsistent, but we ve derived a valid formula Q: Is this sound? A: Of course it is. A valid formula is a logical consequence of any formula. But this is not very useful. However, if we first factorize, we get: A, A NIL To retain completeness, we must apply factorization whenever possible Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
36 Refutation resolution algorithm Refutation resolution algorithm (for propositional logic) function plresolution(f, G) clauses cnfconvert(f G) new loop do for each (c 1, c 2 ) in selectclauses(clauses) do resolvents plresolve(c 1, c 2 ) if NIL resolvents then return true new new resolvents if new clauses then return false clauses clauses new cnfconvert converts a formula into a CNF selectclauses selects a set of clause pairs to resolve plresolve resolves two clauses and returns a set of resolvents Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
37 Refutation resolution algorithm remarks Applying the resolution rule on a pair of clauses may result in more than one resolvent, hence the algorithm uses a set of resolvents To retain completeness, factorization should be applied on each derived resolvent The number of possible distinct clauses is finite (when factorized), thus the algorithm certainly termines in a finite number of steps No pair of clauses should be resolved more than once Deriving a NIL clause from a set of clauses is a search problem: in each step we must choose which pair of clauses to resolve So we need a search strategy, which in the context of resolution is called a resolution strategy Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
38 Resolution strategies There are two types of resolution strategies: simplification strategies control strategies Simplification strategies are used to delete redundant or irrelevant clauses generated during the proof procedure, avoiding unnecessary steps later on Control strategies determine the order in which clauses are resolved The strategy needs to be complete: it must derive NIL when given a set of incomplete clauses This is not to be confused with completeness of inference rules (in general, for a proof procedure to be complete, it must combine complete inference rules with a complete search strategy) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
39 Simplification strategy Deletion strategy Removal of redundant clauses: A clause that is subsumed by another clause may be deleted Based on the absorption equivalence: F (F G) F If the set contains a pair of clauses C 1 and C 2 such that C 1 C 2, then clause C 2 may be removed from the set (clauses are represented as sets of literals) Removal of irrelevant clauses: Every valid clause (tautology) is irrelevant (why?) If the resolvent is a valid clause, it may be removed immediately Checking the validity of a clause is simple: a clause is valid iff it contains a complementary pair of literals F i and F i Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
40 Control resolution strategies Level saturation strategy Resolvents are derived level-by-level (as in breadth-first search): we resolve all pairs of first-level clauses (initial set of clauses), then we resolve second-level clauses, etc. At i-th level, the input clauses come from level 1 down to level (i 1) This strategy is complete, but very inefficient (the problem of combinatorial explosion) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
41 Control resolution strategies Set-of-support strategy (SoS) Builds on the asssumption that the set of input premises is consistent For if it were not consistent, it would logically entail any formula! Thus, to prove inconsistency in refutation resolution, we have to combine the input premises clauses with clauses from the negated goal, or with the newly derived clauses Set of support (SoS): the clauses obtained from the negated goal as well as all susequently derived clauses Set-of-support strategy: at least one parent clause always comes from the SoS SoS increases as we derive more clauses SoS strategy is complete and in principle more efficient than level saturation strategy (especially if the SoS is small) Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
42 Outline 1 Three inference tasks 2 Proof theory 3 Resolution in PL 4 Resolution in FOL Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
43 Jump to: AI-6-2-AutomatedReasoningInFOL.pdf Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
44 Wrap-up The three inference tasks are (1) model checking, (2) satisfiability checking, and (3) validity checking The latter two are decidable but intractable in PL, whereas they are undecidable in FOL Proof theory uses rules of inference to derive deductive consequences, without explicit reference to semantics of logic Rules of inference must be sound and preferably complete Refutation resolution (with factorization and a complete strategy) is a sound and complete proof method in both PL and FOL Formulas have to be converted in clausal form before using resolution In FOL, we use unification to match two complementary literals Next topic: Logic programming Dalbelo Bašić, Šnajder (UNIGZ FER) AI Logic inference AY 2016/ / 44
Propositional 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: 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 informationPropositional Resolution
Artificial Intelligence Propositional Resolution Marco Piastra Propositional Resolution 1] Deductive systems and automation Is problem decidible? A deductive system a la Hilbert (i.e. derivation using
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 informationDeductive Systems. Lecture - 3
Deductive Systems Lecture - 3 Axiomatic System 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
More informationCOMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning
COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms
More informationKnowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):
Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building
More informationPropositional Resolution Introduction
Propositional Resolution Introduction (Nilsson Book Handout) Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 SYNTAX dictionary Literal any propositional VARIABLE
More informationPart 1: Propositional Logic
Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax
More informationComputational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)
Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/30) Propositional Logic - sequent calculus To overcome the problems of natural
More informationTitle: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)
B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876
More informationLogic: Propositional Logic (Part I)
Logic: Propositional Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.
More informationLogic and Inferences
Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional
More informationPropositional and Predicate Logic - V
Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus
More informationCOMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning
COMP219: Artificial Intelligence Lecture 20: Propositional Reasoning 1 Overview Last time Logic for KR in general; Propositional Logic; Natural Deduction Today Entailment, satisfiability and validity Normal
More informationWarm-Up Problem. Is the following true or false? 1/35
Warm-Up Problem Is the following true or false? 1/35 Propositional Logic: Resolution Carmen Bruni Lecture 6 Based on work by J Buss, A Gao, L Kari, A Lubiw, B Bonakdarpour, D Maftuleac, C Roberts, R Trefler,
More informationArtificial Intelligence Chapter 7: Logical Agents
Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent State University February 20, 2006 AI: Chapter 7: Logical Agents 1 Contents Knowledge Based Agents
More informationLanguage of Propositional Logic
Logic A logic has: 1. An alphabet that contains all the symbols of the language of the logic. 2. A syntax giving the rules that define the well formed expressions of the language of the logic (often called
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 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 informationPropositional Logic: Review
Propositional Logic: Review Propositional logic Logical constants: true, false Propositional symbols: P, Q, S,... (atomic sentences) Wrapping parentheses: ( ) Sentences are combined by connectives:...and...or
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 informationLogical Agents (I) Instructor: Tsung-Che Chiang
Logical Agents (I) Instructor: Tsung-Che Chiang tcchiang@ieee.org Department of Computer Science and Information Engineering National Taiwan Normal University Artificial Intelligence, Spring, 2010 編譯有誤
More informationAI Programming CS S-09 Knowledge Representation
AI Programming CS662-2013S-09 Knowledge Representation David Galles Department of Computer Science University of San Francisco 09-0: Overview So far, we ve talked about search, which is a means of considering
More informationStrong AI vs. Weak AI Automated Reasoning
Strong AI vs. Weak AI Automated Reasoning George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Artificial intelligence can be classified into two categories:
More informationCritical Reading of Optimization Methods for Logical Inference [1]
Critical Reading of Optimization Methods for Logical Inference [1] Undergraduate Research Internship Department of Management Sciences Fall 2007 Supervisor: Dr. Miguel Anjos UNIVERSITY OF WATERLOO Rajesh
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 informationInference in Propositional Logic
Inference in Propositional Logic Deepak Kumar November 2017 Propositional Logic A language for symbolic reasoning Proposition a statement that is either True or False. E.g. Bryn Mawr College is located
More informationProof Methods for Propositional Logic
Proof Methods for Propositional Logic Logical equivalence Two sentences are logically equivalent iff they are true in the same models: α ß iff α β and β α Russell and Norvig Chapter 7 CS440 Fall 2015 1
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 informationWarm-Up Problem. Write a Resolution Proof for. Res 1/32
Warm-Up Problem Write a Resolution Proof for Res 1/32 A second Rule Sometimes throughout we need to also make simplifications: You can do this in line without explicitly mentioning it (just pretend you
More informationCSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13
CSC242: Intro to AI Lecture 11 Propositional Inference Propositional Inference Factored Representation Splits a state into variables (factors, attributes, features, things you know ) that can have values
More informationEE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 10, 5/9/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Logical Agents Chapter 7
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 informationFirst-Order Theorem Proving and Vampire
First-Order Theorem Proving and Vampire Laura Kovács 1,2 and Martin Suda 2 1 TU Wien 2 Chalmers Outline Introduction First-Order Logic and TPTP Inference Systems Saturation Algorithms Redundancy Elimination
More informationInference Methods In Propositional Logic
Lecture Notes, Artificial Intelligence ((ENCS434)) University of Birzeit 1 st Semester, 2011 Artificial Intelligence (ENCS434) Inference Methods In Propositional Logic Dr. Mustafa Jarrar University of
More informationPropositional Resolution Part 1. Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence
Propositional Resolution Part 1 Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence SYNTAX dictionary Literal any propositional VARIABLE a or negation of a variable a, a VAR, Example
More informationArtificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer
Artificial Intelligence Propositional Logic Copyright 2011 Dieter Fensel and Florian Fischer 1 Where are we? # Title 1 Introduction 2 Propositional Logic 3 Predicate Logic 4 Reasoning 5 Search Methods
More informationPropositional and First-Order Logic
Propositional and First-Order Logic Chapter 7.4 7.8, 8.1 8.3, 8.5 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer Logic roadmap overview Propositional logic (review) Problems with
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 informationPropositional Resolution
Computational Logic Lecture 4 Propositional Resolution Michael Genesereth Spring 2005 Stanford University Modified by Charles Ling and TA, for CS2209 Use with permission Propositional Resolution Propositional
More informationIntelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK
Intelligent Systems Propositional Logic Dieter Fensel and Dumitru Roman www.sti-innsbruck.at Copyright 2008 STI INNSBRUCK www.sti-innsbruck.at Where are we? # Title 1 Introduction 2 Propositional Logic
More informationDecision Procedures for Satisfiability and Validity in Propositional Logic
Decision Procedures for Satisfiability and Validity in Propositional Logic Meghdad Ghari Institute for Research in Fundamental Sciences (IPM) School of Mathematics-Isfahan Branch Logic Group http://math.ipm.ac.ir/isfahan/logic-group.htm
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 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 informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard, Maren Bennewitz, and Marco Ragni Albert-Ludwigs-Universität Freiburg Contents 1 Agents
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 17, 2016
More informationLogic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )
Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) 2 Knowledge Representation represent knowledge about the world in a manner that
More informationLogical Agents: Propositional Logic. Chapter 7
Logical Agents: Propositional Logic Chapter 7 Outline Topics: Knowledge-based agents Example domain: The Wumpus World Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity,
More informationInference in first-order logic
CS 2710 Foundations of AI Lecture 15 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB
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 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 informationInference Methods In Propositional Logic
Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) Inference Methods In Propositional Logic
More informationcis32-ai lecture # 18 mon-3-apr-2006
cis32-ai lecture # 18 mon-3-apr-2006 today s topics: propositional logic cis32-spring2006-sklar-lec18 1 Introduction Weak (search-based) problem-solving does not scale to real problems. To succeed, problem
More information22c:145 Artificial Intelligence
22c:145 Artificial Intelligence Fall 2005 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2001-05 Cesare Tinelli and Hantao Zhang. a a These notes are copyrighted material and may not
More informationCS 7180: Behavioral Modeling and Decision- making in AI
CS 7180: Behavioral Modeling and Decision- making in AI Review of Propositional Logic Prof. Amy Sliva September 7, 2012 Outline General properties of logics Syntax, semantics, entailment, inference, and
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.3-7.5 in the course
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 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 informationLogic: Propositional Logic Truth Tables
Logic: Propositional Logic Truth Tables Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06
More informationLogical Agent & Propositional Logic
Logical Agent & Propositional Logic Berlin Chen 2005 References: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 7 2. S. Russell s teaching materials Introduction The representation
More informationClassical Propositional Logic
The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,
More informationThe Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT
The Wumpus Game Stench Stench Gold Stench Start 1 The Wumpus Game Stench in the square containing the wumpus and in the directly adjacent squares in the squares directly adjacent to a pit Glitter in the
More informationDescription Logics. Deduction in Propositional Logic. franconi. Enrico Franconi
(1/20) Description Logics Deduction in Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/20) Decision
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 informationPropositional Logic: Part II - Syntax & Proofs 0-0
Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems
More informationNatural Deduction for Propositional Logic
Natural Deduction for Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 10, 2018 Bow-Yaw Wang (Academia Sinica) Natural Deduction for Propositional Logic
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 informationCS:4420 Artificial Intelligence
CS:4420 Artificial Intelligence Spring 2018 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart
More informationDescription Logics. Foundations of Propositional Logic. franconi. Enrico Franconi
(1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge
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 informationLogical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5
rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical
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 information7. Propositional Logic. Wolfram Burgard and Bernhard Nebel
Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics
More informationLogical Agent & Propositional Logic
Logical Agent & Propositional Logic Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. S. Russell and P. Norvig. Artificial Intelligence:
More informationAgenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World
Agenda Artificial Intelligence 10. Propositional Reasoning, Part I: Principles How to Think About What is True or False 1 Introduction Álvaro Torralba Wolfgang Wahlster 2 Propositional Logic 3 Resolution
More informationIntelligent Agents. Pınar Yolum Utrecht University
Intelligent Agents Pınar Yolum p.yolum@uu.nl Utrecht University Logical Agents (Based mostly on the course slides from http://aima.cs.berkeley.edu/) Outline Knowledge-based agents Wumpus world Logic in
More informationNatural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson
Natural Deduction Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. An example 1. Validity by truth table 2. Validity by proof 2. What s a proof 1. Proof checker 3. Rules of
More informationLearning Goals of CS245 Logic and Computation
Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction
More informationPropositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel
Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/
More informationFirst-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig
First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic
More informationInference in first-order logic
CS 57 Introduction to AI Lecture 5 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB (a
More informationOverview. Knowledge-Based 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 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 informationLOGIC PROPOSITIONAL REASONING
LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1
More informationPropositional Logic Arguments (5A) Young W. Lim 11/30/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 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 informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Frank Hutter and Bernhard Nebel Albert-Ludwigs-Universität Freiburg
More informationPropositional and Predicate Logic. jean/gbooks/logic.html
CMSC 630 February 10, 2009 1 Propositional and Predicate Logic Sources J. Gallier. Logic for Computer Science, John Wiley and Sons, Hoboken NJ, 1986. 2003 revised edition available on line at http://www.cis.upenn.edu/
More informationLogical Agents. Chapter 7
Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem
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 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. Propositional logic
Artificial Intelligence Propositional logic Propositional Logic: Syntax Syntax of propositional logic defines allowable sentences Atomic sentences consists of a single proposition symbol Each symbol stands
More informationComp487/587 - Boolean Formulas
Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested
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 informationLogic for Computer Science - Week 4 Natural Deduction
Logic for Computer Science - Week 4 Natural Deduction 1 Introduction In the previous lecture we have discussed some important notions about the semantics of propositional logic. 1. the truth value of a
More informationLogic. (Propositional Logic)
Logic (Propositional Logic) 1 REPRESENTING KNOWLEDGE: LOGIC Logic is the branch of mathematics / philosophy concerned with knowledge and reasoning Aristotle distinguished between three types of arguments:
More informationCS 730/730W/830: Intro AI
CS 730/730W/830: Intro AI 1 handout: slides 730W journal entries were due Wheeler Ruml (UNH) Lecture 9, CS 730 1 / 16 Logic First-Order Logic The Joy of Power Wheeler Ruml (UNH) Lecture 9, CS 730 2 / 16
More informationPřednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1
Přednáška 12 Důkazové kalkuly Kalkul Hilbertova typu 11/29/2006 Hilbertův kalkul 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: A. a language B. a set of axioms C. a set of
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (previous lecture, Part I) Chapter 7.5 (this lecture, Part II) (optional: 7.6-7.8)
More information