CS344 : Introduction to Artificial Intelligence

Slides:



Advertisements
Similar presentations
Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
Advertisements

Introduction to Proofs
February 26, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1 Addition of Integers Example: Add a = (1110) 2 and b = (1011) 2. a 0 + b.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9,10,11- Logic; Deduction Theorem 23/1/09 to 30/1/09.
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 15, 16, 17- Completeness Proof; Self References and.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12- Completeness Proof; Self References and Paradoxes 16 th August,
Formalizing Alpha: Soundness and Completeness Bram van Heuveln Dept. of Cognitive Science RPI.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
CSE115/ENGR160 Discrete Mathematics 01/31/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 02/01/11
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
So far we have learned about:
TR1413: Discrete Mathematics For Computer Science Lecture 4: System L.
Discrete Mathematics and its Applications
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Methods of Proof & Proof Strategies
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Introduction to Proofs
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
Of 33 lecture 12: propositional logic – part I. of 33 propositions and connectives … two-valued logic – every sentence is either true or false some sentences.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12- Completeness Proof; Self References and Paradoxes 16 th August,
CS6133 Software Specification and Verification
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Methods of Proof Dr. Yasir Ali. Proof A (logical) proof of a statement is a finite sequence of statements (called the steps of the proof) leading from.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–7: (a) Formal System;(b) How to read research papers 3 rd August, 2010.
(CSC 102) Lecture 23 Discrete Structures. Previous Lecture Summery  Sequences  Alternating Sequence  Summation Notation  Product Notation  Properties.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9- Completeness proof; introducing knowledge representation.
Of 38 lecture 13: propositional logic – part II. of 38 propositional logic Gentzen system PROP_G design to be simple syntax and vocabulary the same as.
CS104:Discrete Structures Chapter 2: Proof Techniques.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Outline Logic Propositional Logic Well formed formula Truth table
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture 16 – 09/09/05 Prof. Pushpak Bhattacharyya Soundness, Completeness,
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–10: Soundness of Propositional Calculus 12 th August, 2010.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 12/Feb/2007.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 4- Logic.
Chapter 1 Logic and proofs
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–6: Propositional calculus, Semantic Tableau, formal System 2 nd August,
Simple Logic.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5- Deduction Theorem.
Chapter 1 Logic and Proof.
The Foundations: Logic and Proofs
CSE15 Discrete Mathematics 02/01/17
CS344: Introduction to Artificial Intelligence (associated lab: CS386)
Applied Discrete Mathematics Week 5: Mathematical Reasoning
CS344 : Introduction to Artificial Intelligence
CS621: Artificial Intelligence
Proof Techniques.
Methods of Proof A mathematical theorem is usually of the form pq
Explorations in Artificial Intelligence
Chapter 10: Mathematical proofs
Information Technology Department
Propositional Equivalence (§1.2)
The Foundations: Logic and Proofs
Mathematical Reasoning
CS 270 Math Foundations of CS
A Brief Summary for Exam 1
CS 220: Discrete Structures and their Applications
Applied Discrete Mathematics Week 1: Logic
Back to “Serious” Topics…
CS344 : Introduction to Artificial Intelligence
Foundations of Discrete Mathematics
ece 720 intelligent web: ontology and beyond
Mathematical Reasoning
CS 621 Artificial Intelligence Lecture /09/05 Prof
Artificial Intelligence
Presentation transcript:

CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9- Completeness

Formalization of propositional logic (review) Axioms : A1 A2 A3 Inference rule: Given and A, write B A Proof is: A sequence of i) Hypotheses ii) Axioms iii) Results of MP A Theorem is an Expression proved from axioms and inference rules

Soundness, Completeness & Consistency Semantic World ---------- Valuation, Tautology Syntactic World ---------- Theorems, Proofs Completeness * *

Soundness Provability Truth Completeness Truth Provability

Soundness: Correctness of the System Proved entities are indeed true/valid Completeness: Power of the System True things are indeed provable

Tautology An expression ‘E’ is a tautology if V(E) = T for all valuations of constituent propositions Each ‘valuation’ is called a ‘model’.

Problem (P Q) (P Q) Semantic Proof A B P Q P Q P Q A B T F F T T T T T T T F F F F T F T F T T

To show syntactically (P Q) (P Q) i.e. [(P (Q F )) F ] [(P F ) Q]

If we can establish (P (Q F )) F , (P F ), Q F ⊢ F This is shown as Q F hypothesis (Q F ) (P (Q F )) A1

QF; hypothesis (QF)(P(QF)); A1 P(QF); MP F; MP Thus we have a proof of the line we started with

Completeness

Necessary results Statement: (pq)((~pq)q) Proof: If we can show that (pq), (~pq) |- q Or, (pq), (~pq), qF |- F Then we are done.

Proof continued 1. (pq) H1 2. (~pq) H2 3. qF H3 4. (~pq) (~qp) theorem of contraposition 5. ~qp MP, 2, 4 6. P MP, 3,5 7. q MP, 6, 1 8. F MP,7,3 QED

How to prove contraposition To show (pq)(~q~p) Proof: pq, ~q, p |- F Very obvious!

An example to illustrate the completeness proof q p(p V q) T F

Running the completeness proof For every row of the truth table set up a proof: p, ~q |- p(p V q) p, q |- p(p V q) ~p, q |- p(p V q) ~p, ~q |- p(p V q)

p, ~q |- p  (p V q) i.e. p, ~q, p |- p V q p, ~q, p, ~p |- q p, ~q, p, ~p |- F |- F  q |- q

p, q |- p  (p V q) i.e. p, q, p, ~p |- q same as 1

~p, q |- p  (p V q) ~p, q, p, ~p |- q Same as 1, since F is derived 4. ~p, ~q |- p  (p V q)

Why all this? If we have shown p, q |- A and p, ~q |- A then we can show that p |- A

p |- (q  A) also p |- (~q  A) But (q  A)  ((~q  A)  A) is a theorem by MP twice p |- A

General Statement of the completeness proof If V(A) = T for all models then |- A

Elaborating, If P1, P2, …, Pn are constituent propositions of A and if V(A) = T for every model V(Pi) = T/F then |- A

We have a truth table with 2n rows P1 P2 P3 . . . Pn A F F F . . . F T F F F . . . T T . T T T . . . T T

If we can show P1’, P2’, …, Pn’ |- A’ For every row where Pi’ = Pi if V(Pi) = T = ~Pi if V(Pi) = F And A’ = A if V(A) = T = ~A if V(A) = F

Lemma If row has P1’, P2’, …, Pn’, A’ Then P1’, P2’, …, Pn’ |- A’

Check p q p q F F F F T F T F F T T F It is true that p’, q’ |- (p q)’ i.e., ~p, ~q |- ~(p q)

Proof of Lemma By Induction on the no. of ‘’ symbols in A Base Case: A is either Pi or F A is V(A) |- A’ F |- A  F |- F  F

A is Pi V(Pi) V(A) T T F F Pi |- A But |- A A is a theorem and ~Pi |- ~A which is also fine