CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–10: Soundness of Propositional Calculus 12 th August, 2010.

Slides:



Advertisements
Similar presentations
Introduction to Proofs
Advertisements

CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 10– Club and Circuit Examples.
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: Artificial Intelligence
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–5 and 6: Propositional Calculus.
Logic Concepts Lecture Module 11.
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,
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–1: Introduction 2 nd January
From Chapter 4 Formal Specification using Z David Lightfoot
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Copyright © Cengage Learning. All rights reserved.
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Introduction to Computer Science. A Quick Puzzle Well-Formed Formula  any formula that is structurally correct  may be meaningless Axiom  A statement.
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
CS621: Artificial Intelligence Lecture 27: Backpropagation applied to recognition problems; start of logic Pushpak Bhattacharyya Computer Science and Engineering.
Introduction to Proofs
MATH 224 – Discrete Mathematics
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
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.
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
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 19: Interpretation in Predicate.
Course Overview and Road Map Computability and Logic.
MATH 224 – Discrete Mathematics
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12- Completeness Proof; Self References and Paradoxes 16 th August,
Activity 1-19: The Propositional Calculus
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–4: Fuzzy Control of Inverted.
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
Great Theoretical Ideas in Computer Science.
CSE Winter 2008 Introduction to Program Verification January 31 proofs through simplification.
Godel’s proof Danny Brown. Outline of godel’s proof 1.Create a statement that says of itself that it is not provable 2.Show that this statement is provable.
Great Theoretical Ideas in Computer Science.
CS6133 Software Specification and Verification
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–7: (a) Formal System;(b) How to read research papers 3 rd August, 2010.
CS621: Artificial Intelligence Lecture 28: Propositional calculus; Puzzle Solving Pushpak Bhattacharyya Computer Science and Engineering Department IIT.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9- Completeness proof; introducing knowledge representation.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 14: AI, Logic, and Puzzle Solving.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Thales’ Legacy: What Is A Proof? Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 27April 22, 2004Carnegie Mellon.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture 16 – 09/09/05 Prof. Pushpak Bhattacharyya Soundness, Completeness,
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.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
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,
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5- Deduction Theorem.
CS344: Introduction to Artificial Intelligence (associated lab: CS386)
CS344 : Introduction to Artificial Intelligence
CS621: Artificial Intelligence
Great Theoretical Ideas in Computer Science
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
Back to “Serious” Topics…
CSNB234 ARTIFICIAL INTELLIGENCE
CS621: Artificial Intelligence
ece 720 intelligent web: ontology and beyond
CS344 : Introduction to Artificial Intelligence
Representations & Reasoning Systems (RRS) (2.2)
CS 621 Artificial Intelligence Lecture /09/05 Prof
Presentation transcript:

CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–10: Soundness of Propositional Calculus 12 th August, 2010

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

Soundness Provability Truth Completeness TruthProvability

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

TRUE Expression s System Outside Knowledge Validation

Consistency The System should not be able to prove both P and ~P, i.e., should not be able to derive F

Examine the relation between Soundness & Consistency SoundnessConsistency

If a System is inconsistent, i.e., can derive F, it can prove any expression to be a theorem. Because F  P is a theorem

Inconsistency  Unsoundness To show that F  P is a theorem Observe that F, P  F ⊢ F By D.T. F ⊢ (P  F )  F; A3 ⊢ P i.e. ⊢ F  P Thus, inconsistency implies unsoundness

Unsoundness  Inconsistency Suppose we make the Hilbert System of propositional calculus unsound by introducing (A /\ B) as an axiom Now AND can be written as (A  (B  F ))  F If we assign F to A, we have ( F  (B  F ))  F But ( F  (B  F )) is an axiom (A1) Hence F is derived

Inconsistency is a Serious issue. Informal Statement of Godel Theorem: If a sufficiently powerful system is complete it is inconsistent. Sufficiently powerful: Can capture at least Peano Arithmetic

Introduce Semantics in Propositional logic Valuation Function V Definition of V V( F ) = F Where F is called ‘false’ and is one of the two symbols (T, F) Semantic ‘false’ Syntactic ‘false

V( F ) = F V(A  B) is defined through what is called the truth table V(A)V(B)V(A  B) T F F T T T F F T F T T

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

To see that ( F  P) is a tautology two models V(P) = T V(P) = F V( F  P) = T for both

F  P is a theorem F  P is a tautology SoundnessCompleteness

If a system is Sound & Complete, it does not matter how you “Prove” or “show the validity” Take the Syntactic Path or the Semantic Path

Syntax vs. Semantics issue Refers to FORM VS. CONTENT Tea (Content) Form

Form & Content Godel, Escher, Bach By D. Hofstadter logician painter musician

Problem (PQ)  (PQ) Semantic Proof A B PQP QP QA  B TF F T T TT T T T FF F F T FT F T T

To show syntactically (PQ)(PQ) 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

Soundness Proof Hilbert Formalization of Propositional Calculus is sound. “Whatever is provable is valid”

Statement Given A 1, A 2, …,A n |- B V(B) is ‘T’ for all V s for which V(A i ) = T

Proof Case 1B is an axiom V(B) = T by actual observation Statement is correct

Case 2B is one of A i s if V(A i ) = T, so is V(B) statement is correct

Case 3B is the result of MP on E i & E j E j is E i B Suppose V(B) = F Then either V(E i ) = F or V(E j ) = F...Ei...Ej...B...Ei...Ej...B

i.e.E i /E j is result of MP of two expressions coming before them Thus we progressively deal with shorter and shorter proof body. Ultimately we hit an axiom/hypothesis. Hence V(B) = T Soundness proved

A puzzle (Zohar Manna, Mathematical Theory of Computation, 1974) From Propositional Calculus

Tourist in a country of truth- sayers and liers Facts and Rules: In a certain country, people either always speak the truth or always lie. A tourist T comes to a junction in the country and finds an inhabitant S of the country standing there. One of the roads at the junction leads to the capital of the country and the other does not. S can be asked only yes/no questions. Question: What single yes/no question can T ask of S, so that the direction of the capital is revealed?

Diagrammatic representation S (either always says the truth Or always lies) T (tourist) Capital

Deciding the Propositions: a very difficult step- needs human intelligence P: Left road leads to capital Q: S always speaks the truth

Meta Question: What question should the tourist ask The form of the question Very difficult: needs human intelligence The tourist should ask Is R true? The answer is “yes” if and only if the left road leads to the capital The structure of R to be found as a function of P and Q

A more mechanical part: use of truth table PQS’s Answer R TTYesT TF F FTNoF FF T

Get form of R: quite mechanical From the truth table R is of the form (P x-nor Q) or (P ≡ Q)

Get R in English/Hindi/Hebrew… Natural Language Generation: non-trivial The question the tourist will ask is Is it true that the left road leads to the capital if and only if you speak the truth? Exercise: A more well known form of this question asked by the tourist uses the X-OR operator instead of the X-Nor. What changes do you have to incorporate to the solution, to get that answer?