CPSC 322, Lecture 20Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Computer Science cpsc322, Lecture 20 (Textbook.

Slides:



Advertisements
Similar presentations
Department of Computer Science Undergraduate Events More
Advertisements

Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) February, 27, 2009.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
CPSC 322 Introduction to Artificial Intelligence September 20, 2004.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Knowledge Representation I (Propositional Logic) CSE 473.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) March, 5, 2010.
Knoweldge Representation & Reasoning
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) March, 8, 2010.
Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Jim Little UBC CS 322 – CSP October 22, 2014.
Computer Science CPSC 502 Lecture 6 Finish Planning Start Logic (Ch 5)
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 26, 2010.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Logical Agents Logic Propositional Logic Summary
Logic: Intro & Propositional Definite Clause Logic CPSC 322 – Logic 1 Textbook §5.1 March 4, 2011.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 11 of 41 Wednesday, 15.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
9/30/98 Prof. Richard Fikes Inference In First Order Logic Computer Science Department Stanford University CS222 Fall 1998.
CS6133 Software Specification and Verification
CPSC 322, Lecture 19Slide 1 (finish Planning) Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt – 5.2) Oct,
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Slide 1 Propositional Logic Intro, Syntax Jim Little UBC CS 322 – CSP October 17, 2014 Textbook § – 5.2.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Logic: Proof procedures, soundness and correctness CPSC 322 – Logic 2 Textbook §5.2 March 7, 2011.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
UBC Department of Computer Science Undergraduate Events More
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Computer Science CPSC 322 Lecture 14 Intro to Logic (5.1, 5.1.1) 1.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 30, 2013.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Logic: TD as search, Datalog (variables)
Computer Science cpsc322, Lecture 20
Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19
Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19
Propositional Definite Clause Logic: Syntax, Semantics, R&R and Proofs
Introduction to Knowledge-bases
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21
Project 2 due date moved to next Wed
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Logic: Top-down proof procedure and Datalog
Assignment-2 due now Enterprise Architecture Conference Sat. Oct 27
CS 416 Artificial Intelligence
Logic: Domain Modeling /Proofs + Computer Science cpsc322, Lecture 22
Computer Science cpsc322, Lecture 20
Bottom Up: Soundness and Completeness
Bottom Up: Soundness and Completeness
Representations & Reasoning Systems (RRS) (2.2)
Bottom Up: Soundness and Completeness
Presentation transcript:

CPSC 322, Lecture 20Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Computer Science cpsc322, Lecture 20 (Textbook Chpt ) March, 3, 2010

CPSC 322, Lecture 20Slide 2 Lecture Overview Recap: Logic intro Propositional Definite Clause Logic: Semantics PDCL: Bottom-up Proof

CPSC 322, Lecture 20Slide 3 Logics as a R&R system formalize a domain reason about it

CPSC 322, Lecture 18Slide 4 Logics in AI: Similar slide to the one for planning Propositional Logics First-Order Logics Propositional Definite Clause Logics Semantics and Proof Theory Satisfiability Testing (SAT) Description Logics Cognitive Architectures Video Games Hardware Verification Product Configuration Ontologies Semantic Web Information Extraction Summarization Production Systems Tutoring Systems

CPSC 322, Lecture 20Slide 5 Propositional (Definite Clauses) Logic: Syntax We start from a restricted form of Prop. Logic: Only two kinds of statements that a proposition is true that a proposition is true if one or more other propositions are true

CPSC 322, Lecture 20Slide 6 Lecture Overview Recap: Logic intro Propositional Definite Clause Logic: Semantics PDCL: Bottom-up Proof

CPSC 322, Lecture 20Slide 7 Propositional Definite Clauses Semantics: Interpretation Definition (interpretation) An interpretation I assigns a truth value to each atom. Semantics allows you to relate the symbols in the logic to the domain you're trying to model. An atom can be….. If your domain can be represented by four atoms (propositions): So an interpretation is just a…………………………..

CPSC 322, Lecture 20Slide 8 PDC Semantics: Body Definition (truth values of statements): A body b 1 ∧ b 2 is true in I if and only if b 1 is true in I and b 2 is true in I. We can use the interpretation to determine the truth value of clauses and knowledge bases: pqrs I1I1 true I2I2 false I3I3 true false I4I4 true false I5I5 true falsetrue

CPSC 322, Lecture 20Slide 9 PDC Semantics: definite clause Definition (truth values of statements cont’): A rule h ← b is false in I if and only if b is true in I and h is false in I. In other words: ”if b is true I am claiming that h must be true, otherwise I am not making any claim” pqrs I1I1 true I2I2 false I3I3 true false I4I4 true false …..….…..….....

CPSC 322, Lecture 20Slide 10 PDC Semantics: Knowledge Base Definition (truth values of statements cont’): A knowledge base KB is true in I if and only if every clause in KB is true in I.

CPSC 322, Lecture 20Slide 11 Models Definition (model) A model of a set of clauses (a KB) is an interpretation in which all the clauses are true.

CPSC 322, Lecture 20Slide 12 Example: Models Which interpretations are models? pqrs I1I1 true I2I2 false I3I3 true false I4I4 true false I5I5 true falsetrue

CPSC 322, Lecture 20Slide 13 Logical Consequence Definition (logical consequence) If KB is a set of clauses and G is a conjunction of atoms, G is a logical consequence of KB, written KB ⊧ G, if G is true in every model of KB. we also say that G logically follows from KB, or that KB entails G. In other words, KB ⊧ G if there is no interpretation in which KB is true and G is false.

CPSC 322, Lecture 20Slide 14 Example: Logical Consequences pqrs I1I1 true I2I2 false I3I3 true false I4I4 true falsetrue I5I5 falsetrue I6I6 falsetrue false I7I7 truefalse I8I8 truefalsetrue … ….……… Which of the following is true? KB ⊧ q, KB ⊧ p, KB ⊧ s, KB ⊧ r

CPSC 322, Lecture 20Slide 15 Lecture Overview Recap: Logic intro Propositional Definite Clause Logic: Semantics PDCL: Bottom-up Proof

CPSC 322, Lecture 20Slide 16 One simple way to prove that G logically follows from a KB Collect all the models of the KB Verify that G is true in all those models Any problem with this approach? The goal of proof theory is to find proof procedures that allow us to prove that a logical formula follows form a KB avoiding the above

CPSC 322, Lecture 20Slide 17 Soundness and Completeness If I tell you I have a proof procedure for PDCL What do I need to show you in order for you to trust my procedure? Definition (soundness) A proof procedure is sound if KB ⊦ G implies KB ⊧ G. Definition (completeness) A proof procedure is complete if KB ⊧ G implies KB ⊦ G. KB ⊦ G means G can be derived by my proof procedure from KB. Recall KB ⊧ G means G is true in all models of KB.

CPSC 322, Lecture 20Slide 18 Bottom-up Ground Proof Procedure One rule of derivation, a generalized form of modus ponens: If “h ← b 1 ∧ … ∧ b m ” is a clause in the knowledge base, and each b i has been derived, then h can be derived. You are forward chaining on this clause. (This rule also covers the case when m=0. )

CPSC 322, Lecture 20Slide 19 Bottom-up proof procedure KB ⊦ G if G ⊆ C at the end of this procedure: C :={}; repeat select clause “h ← b 1 ∧ … ∧ b m ” in KB such that b i ∈ C for all i, and h ∉ C; C := C ∪ { h } until no more clauses can be selected.

CPSC 322, Lecture 20Slide 20 Bottom-up proof procedure: Example z ← f ∧ e q ← f ∧ g ∧ z e ← a ∧ b a b r f r? q? z? C :={}; repeat select clause “h ← b 1 ∧ … ∧ b m ” in KB such that b i ∈ C for all i, and h ∉ C; C := C ∪ { h } until no more clauses can be selected.

CPSC 322, Lecture 4Slide 21 Learning Goals for today’s class You can: Verify whether an interpretation is a model of a PDCL KB. Verify when a conjunction of atoms is a logical consequence of a knowledge base. Define/read/write/trace/debug the bottom-up proof procedure.

CPSC 322, Lecture 20Slide 22 Next class (still section 5.2) Soundness and Completeness of Bottom-up Proof Procedure Using PDC Logic to model the electrical domain Reasoning in the electrical domain

CPSC 322, Lecture 20Slide 23 Study for midterm (Wed March 10 ) Midterm: ~6 short questions (10pts each) + 2 problems (20pts each) Study: textbook and inked slides Work on all practice exercises and revise assignments! While you revise the learning goals, work on review questions (posted) I may even reuse some verbatim Will post a couple of problems from previous offering (maybe slightly more difficult /inappropriate for you because they were not informed by the learning goals) … but I’ll give you the solutions