Bottom Up: Soundness and Completeness

Slides:



Advertisements
Similar presentations
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Advertisements

PROOF BY CONTRADICTION
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.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
CPSC 322, Lecture 20Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Computer Science cpsc322, Lecture 20 (Textbook.
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.
TR1413: INTRO TO DISCRETE MATHEMATICS LECTURE 2: MATHEMATICAL INDUCTION.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) March, 5, 2010.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Knoweldge Representation & Reasoning
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) March, 8, 2010.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Jim Little UBC CS 322 – CSP October 22, 2014.
CPSC 322, Lecture 22Slide 1 Logic: Domain Modeling /Proofs + Top-Down Proofs Computer Science cpsc322, Lecture 22 (Textbook Chpt 5.2) Oct, 26, 2010.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
LDK R Logics for Data and Knowledge Representation PL of Classes.
October 17, 2012Introduction to Artificial Intelligence Lecture 11: Knowledge Representation and Reasoning I 1Semantics In propositional logic, we associate.
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)
Slide 1 Propositional Logic Intro, Syntax Jim Little UBC CS 322 – CSP October 17, 2014 Textbook § – 5.2.
Logic: Proof procedures, soundness and correctness CPSC 322 – Logic 2 Textbook §5.2 March 7, 2011.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 12/Feb/2007.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
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.
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Knowledge Based Systems
Logic: TD as search, Datalog (variables)
Computer Science cpsc322, Lecture 20
Knowledge Representation and Reasoning
Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19
Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19
Advanced Algorithms Analysis and Design
Propositional Definite Clause Logic: Syntax, Semantics, R&R and Proofs
The Propositional Calculus
Logics for Data and Knowledge Representation
Hubert Chan (Chapters 1.6, 1.7, 4.1)
Logics for Data and Knowledge Representation
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logic: Top-down proof procedure and Datalog
Artificial Intelligence
Assignment-2 due now Enterprise Architecture Conference Sat. Oct 27
CS 416 Artificial Intelligence
Back to “Serious” Topics…
Computer Security: Art and Science, 2nd Edition
Logic: Domain Modeling /Proofs + Computer Science cpsc322, Lecture 22
Search techniques.
Computer Science cpsc322, Lecture 20
Bottom Up: Soundness and Completeness
Advanced Analysis of Algorithms
THE WELL ORDERING PROPERTY
Representations & Reasoning Systems (RRS) (2.2)
Proofs (2.7) (How to compute logical consequences of a KB rather that
Bottom Up: Soundness and Completeness
Presentation transcript:

Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) June, 6, 2017 CPSC 322, Lecture 21

Soundness of Bottom-up Proofs Completeness of Bottom-up Proofs Lecture Overview Recap Soundness of Bottom-up Proofs Completeness of Bottom-up Proofs CPSC 322, Lecture 21

(Propositional) Logic: Key ideas Given a domain that can be represented with n propositions you have ___________ interpretations (possible worlds) If you do not know anything you can be in any of those If you know that some logical formulas are true (your …….). You know that you can be only in _____________________ It would be nice to know what else is true in all those... CPSC 322, Lecture 21

PDCL syntax / semantics / proofs Interpretations? Domain can be represented by three propositions: p, q, r r q p T F Models? which are formally structured worlds with respect to which truth can be evaluated What is logically entailed ? Prove CPSC 322, Lecture 21

PDCL syntax / semantics / proofs Interpretations r q p T F Models What is logically entailed? which are formally structured worlds with respect to which truth can be evaluated Prove CPSC 322, Lecture 21

Soundness of Bottom-up Proofs Completeness of Bottom-up Proofs Lecture Overview Recap Soundness of Bottom-up Proofs Completeness of Bottom-up Proofs CPSC 322, Lecture 21

Soundness of bottom-up proof procedure Generic Soundness of proof procedure: If G can be proved by the procedure (KB ⊦ G) then G is logically entailed by the KB (KB ⊧ G) For Bottom-Up proof if at the end of procedure then G is logically entailed by the KB So BU is sound, if all the atoms in_______________ If g is a set of atoms Suppose there is a g such that KB ⊦ g and KB ⊭ g. CPSC 322, Lecture 21

Soundness of bottom-up proof procedure Suppose this is not the case. Let h be the first atom added to C that is not entailed by KB (i.e., that's in every model of KB) Suppose h isn't true in model M of KB. Since h was added to C, there must be a clause in KB of form: Each bi is true in M (because of 1.). h is false in M. So…… Therefore Contradiction! thus no such h exists. this clause is false in M. M isn't a model of KB If g is a set of atoms Suppose there is a g such that KB ⊦ g and KB ⊭ g. CPSC 322, Lecture 21

Soundness of Bottom-up Proofs Completeness of Bottom-up Proofs Lecture Overview Recap Soundness of Bottom-up Proofs Completeness of Bottom-up Proofs CPSC 322, Lecture 21

Completeness of Bottom Up Generic Completeness of proof procedure: If G is logically entailed by the KB (KB ⊧ G) then G can be proved by the procedure (KB ⊦ G) Sketch of our proof: Suppose KB ⊧ G. Then G is true in all models of KB. Thus G is true in any particular model of KB We will define a model so that if G is true in that model, G is proved by the bottom up algorithm. Thus KB ⊦ G. CPSC 322, Lecture 21

Let’s work on step 3 3. We will define a model so that if G is true in that model, G is proved by the bottom up algorithm. 3.1 We will define an interpretation I so that if G is true in I , G is proved by the bottom up algorithm. 3.2 We will then show that ……… CPSC 322, Lecture 21

Let’s work on step 3.1 3.1 Define interpretation I so that if G is true in I , Then G ⊆ C . Let I be the interpretation in which every element of C is and every other atom is . { } { e } { e, d } { e, d, c} { e, d, c, f } a ← e ∧ g. b ← f ∧ g. c ← e. f ← c ∧ e. e. d. { a, b, c, d, e, f, g } CPSC 322, Lecture 22

Let’s work on step 3.2 Claim: I is a model of KB (we’ll call it the minimal model). Proof: Assume that I is not a model of KB. Then there must exist some clause h ← b1 ∧ … ∧ bm in KB (having zero or more bi 's) which is in I. The only way this can occur is if b1 … bm are in I (i.e., are in C) and h is in I (i.e., is not in C) But if each bi belonged to C, Bottom Up would have added h to C as well. So, there can be no clause in the KB that is false in interpretation I (which implies the claim :-) CPSC 322, Lecture 21

Completeness of Bottom Up (proof summary) If KB ⊧ G then KB ⊦ G Suppose KB ⊧ G . Then G is true Thus G is true Thus Thus G is proved by….. i.e., If KB ⊧ g then KB ⊦ G Suppose KB ⊧ G . Then G is true in all models of KB. Thus G is true in the minimal model Thus G ⊆ C Thus g is generated by the bottom up algorithm. Thus KB ⊦ G. CPSC 322, Lecture 22

An exercise for you Let’s consider these two alternative proof procedures for PDCL KB a ← e ∧ g. b ← f ∧ g. c ← e. f ← c e. d. X. CX = {All clauses in KB with empty bodies} Y. CY = {All atoms in the knowledge base} A. Both X and Y are sound and complete B. Both X and Y are neither sound nor complete C. X is sound only and Y is complete only D. X is complete only and Y is sound only

An exercise for you Let’s consider these two alternative proof procedures for PDCL KB a ← e ∧ g. b ← f ∧ g. c ← e. f ← c e. d. A. CA = {All clauses in KB with empty bodies} B. CB = {All atoms in the knowledge base} A is sound only and B is complete only

Learning Goals for today’s class You can: Prove that BU proof procedure is sound Prove that BU proof procedure is complete CPSC 322, Lecture 4

we will start at 1pm sharp ! Next class Midterm, this Thur, June 8, First 50mins block we will start at 1pm sharp ! Using PDC Logic to model the electrical domain Reasoning in the electrical domain Top-down proof procedure (as Search!) Datalog CPSC 322, Lecture 20