CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 15, 16, 17- Completeness Proof; Self References and.

Slides:



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

CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 2 - Search.
CS344: Principles of Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 7, 8, 9: Monotonicity 16, 17 and 19 th Jan, 2012.
Review for CS1050. Review Questions Without using truth tables, prove that  (p  q)   q is a tautology. Prove that the sum of an even integer and an.
Possible World Semantics for Modal Logic
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.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–5 and 6: Propositional Calculus.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture– 4, 5, 6: A* properties 9 th,10 th and 12 th January,
Copyright © Cengage Learning. All rights reserved.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12- Completeness Proof; Self References and Paradoxes 16 th August,
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
1.  The set N = {1,2,3,4,……..} is known as natural numbers or the set of positive integers  The natural numbers are used mainly for :  counting  ordering.
Discrete Mathematics Lecture 4 Harper Langston New York University.
1 Intro to Induction Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–2,3: A* 3 rd and 5 th January, 2012.
1 Strong Mathematical Induction. Principle of Strong Mathematical Induction Let P(n) be a predicate defined for integers n; a and b be fixed integers.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Methods of Proof & Proof Strategies
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5: Monotonicity 13 th Jan, 2011.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 15/Jan/2007.
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.
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 (associated lab: CS386)
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–4: Fuzzy Control of Inverted.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–7: (a) Formal System;(b) How to read research papers 3 rd August, 2010.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 3 - Search.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5: Power of Heuristic; non- conventional search.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9- Completeness proof; introducing knowledge representation.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 2 - Search.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 13– Search 17 th August, 2010.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 3 - Search.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 17– Theorems in A* (admissibility, Better performance.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lectures 18, 19, 20– A* Monotonicity 2 nd, 6 th and 7 th September, 2010.
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 3: Search, A*
1 Discrete Mathematical Mathematical Induction ( الاستقراء الرياضي )
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–10: Soundness of Propositional Calculus 12 th August, 2010.
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
Fall 2002CMSC Discrete Structures1 Chapter 3 Sequences Mathematical Induction Recursion Recursion.
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
Advanced Algorithms Analysis and Design
CS154, Lecture 11: Self Reference, Foundation of Mathematics
Mathematical Induction Recursion
Discussion on Greedy Search and A*
Discussion on Greedy Search and A*
CS 4100 Artificial Intelligence
Artificial Intelligence
Applied Discrete Mathematics Week 9: Integer Properties
CS621: Artificial Intelligence
CS621: Artificial Intelligence
Follow me for a walk through...
Induction Chapter
Follow me for a walk through...
CS344 : Introduction to Artificial Intelligence
CS621: Artificial Intelligence
Artificial Intelligence
CS 621 Artificial Intelligence Lecture /09/05 Prof
Artificial Intelligence
Presentation transcript:

CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 15, 16, 17- Completeness Proof; Self References and Paradoxes Week of 9/2/09 (with a quiz on 9 th )

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

An example to illustrate the completeness proof pqp  (p V q) TFT TTT FTT FFT

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

Completeness Proof

We have a truth table with 2 n 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 P 1 ’, P 2 ’, …, P n ’ |- A’ For every row where P i ’ = P i if V(P i ) = T = ~Pi if V(P i ) = F And A’ = A if V(A) = T = ~A if V(A) = F

Completeness of Propositional Calculus Statement If V(A) = T for all V, then |--A i.e. A is a theorem. Lemma: If A consists of propositions P 1, P 2, …, P n then P’ 1, P’ 2, …, P’ n |-- A’, where A’ = A if V(A) = true = ~Aotherwise Similarly for each P’ i

Proof for Lemma Proof by induction on the number of ‘ → ’ symbols in A Basis: Number of ‘ → ’ symbols is zero. A is ℱ or P. This is true as, |-- (A → A) i.e. A → A is a theorem. Hypothesis: Let the lemma be true for number of ‘ → ’ symbols ≤ n. Induction: Let A which is B → C contain n+1 ‘ → ’

Induction: By hypothesis, P’ 1, P’ 2, …, P’ n |-- B’ P’ 1, P’ 2, …, P’ n |-- C’ If we show that B’, C’ |-- A’ (A is B → C), then the proof is complete. For this we have to show: B, C |-- B → C True as B, C, B |-- C B, ~C |-- ~(B → C) True since B, ~C, B → C |-- ℱ ~B, C |-- B → C True since ~B, C, B |-- C ~B, ~C |-- B → C True since ~B, ~C, B, C → ℱ |-- ℱ Hence the lemma is proved. Proof of Lemma (contd.)

Proof of Theorem A is a tautology. There are 2 n models corresponding to P 1, P 2, …, P n propositions. Consider, P 1, P 2, …, P n |--A and P 1, P 2, …, ~P n |--A P 1, P 2, …, P n-1 |-- P n → A and P 1, P 2, …, P n-1 |-- ~P n → A RHS can be written as: |--((P n → A) → ((~P n → A) → A)) |--(~P n → A) → A |--A Thus dropping the propositions progressively we show |-- A

Self Reference and Paradoxes

Paradox -1 “This statement is false” The truth of this cannot be decided

Paradox -2 (Russell Paradox or Barber Paradox) “In a city, a barber B shaves all and only those who do not shave themselves” Question: Does the barber shave himself? Cannot be answered

Paradox -3 (Richardian Paradox) Order the statements about properties of number in same order. E.g., 1. “A prime no. is one that is divisible by itself of 1.” 2. “ A square no. is one that is product of 2 identical numbers.”.

Paradox -3 (Richardian Paradox) Definition: A number is called Richardian if it does not have the property that it indexes. For example, in the above arrangement 2 is Richardian because it is not a square no.

Paradox -3 (Richardian Paradox) Now, suppose in this arrangement M is the number for the definition of Richardian M : “A no. is called Richardian … “ Question : is M Richardian? Cannot be answered.

All these paradoxes came because of 1. Self reference 2. Confusion between what is inside a system and what is outside

Answer to Quiz-1 (9/2/09)

Question: proof of MR theorem “Prove that if monotone restriction is satisfied, the path to a node taken up for expansion is optimal.” i.e., for a node n being expanded, g(n) = g*(n) Arpit’s Maheswari’s contribution in the proof is acknowledged

Proof Lemma: If monotone restriction is satisfied, f values of nodes expanded is non decreasing. i.e., if n q is expanded after n p, f(n p ) ≤ f(n q ) Proof of Lemma: Case 1 : n q is child of n p g(n q ) + h(n q ) = g(n p ) +c(n p, n q ) + h(n q ) but, c(n p, n q ) + h(n q ) ≥ h(n p ) hence, f(n q ) ≥ g(n p ) + h(n p ) = f(n p ) npnp g nqnq h(n p ) h(n q )

Proof of Lemma Case 2 : n p and n q are both in open list, n q expanded after n p by definition of A*, f(n p ) ≤ f(n q ) Case 3 : n q did not exist on open list when n p was expanded. But there was another node n r which led to n q later i.e., f(n p ) ≤ f(n r )... ≤ f(n q ) Thus, the lemma is proved.

Actual Proof of the Theorem Proof by induction on the length of the path to an expanded node n. n q is in OL. Base Case: k = 0 g(s) = g*(s) statement is true Hypothesis: Suppose the statement is true for length = k. i.e., g(n p ) = g(n k ) = g*(n p ) s n n1n1 nqnq npnp k All in closed list

Actual Proof of the Theorem Induction: To examine g(n) = g(n k+1 ) By lemma, f(n) ≤ f(n q ) i.e., g(n) + h(n) ≤ g(n q ) + h(n q ) c(n p, n) + g(n p ) + h(n) ≤ g(n q ) + h(n q ) Add c(n q, n) to both sides, c(n p, n) + g(n p ) +h(n) + c(n q, n) ≤ g(n q ) + c(n q, n) +h(n q ) But, h(n) + c(n q, n) ≥ h(n q ) hence, c(n p, n) + g(n p ) ≤ g(n q ) + c(n q, n) Thus, g(n) = g*(n) nqnq n g h(n q ) h(n) g(n) through n p g(n) through n q

Assignment-2 Create a system to prove syntactically the theoremhood of any propositional calculus expression. This will be an automatic theorem prover for propositional calculus. The input to the system will be any propositional calculus expression and the output a yes/no answer depending on whether the expression is a theorem or not.