All rights reservedL. Manevitz Lecture 41 Artificial Intelligence Logic L. Manevitz.

Slides:



Advertisements
Similar presentations
CS4026 Formal Models of Computation Part II The Logic Model Lecture 1 – Programming in Logic.
Advertisements

Biointelligence Lab School of Computer Sci. & Eng.
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Standard Logical Equivalences
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 11.
First Order Logic Resolution
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
Logic Use mathematical deduction to derive new knowledge.
Converting formulas into a normal form Consider the following FOL formula stating that a brick is an object which is on another object which is not a pyramid,
Logic Concepts Lecture Module 11.
Knowledge Representation Methods
Inference and Resolution for Problem Solving
Knoweldge Representation & Reasoning
Introduction to Logic for Artificial Intelligence Lecture 2 Erik Sandewall 2010.
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Predicates and Quantifiers
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
1 Section 7.2 Equivalent Formulas Two wffs A and B are equivalent, written A  B, if they have the same truth value for every interpretation. Property:
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
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
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
Unification Algorithm Input: a finite set Σ of simple expressions Output: a mgu for Σ (if Σ is unifiable) 1. Set k = 0 and  0 = . 2. If Σ  k is a singleton,
LDK R Logics for Data and Knowledge Representation PL of Classes.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
CSE Winter 2008 Introduction to Program Verification January 31 proofs through simplification.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Discrete Mathematical Structures 4 th Edition Kolman, Busby, Ross © 2000 by Prentice-Hall, Inc. ISBN
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
C. Varela1 Logic Programming (PLP 11) Predicate Calculus, Horn Clauses, Clocksin-Mellish Procedure Carlos Varela Rennselaer Polytechnic Institute November.
Propositional Logic Predicate Logic
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Resolution Proofs  Requires axioms to be in clause form  To do harder proofs, we convert their axioms to clause form  Clause form is a disjunctions.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
CSE (c) S. Tanimoto, 2008 Predicate Calculus II 1 Predicate Calculus 2 Outline: Unification: definitions, algorithm Formal interpretations and satisfiability.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Introduction to Logic for Artificial Intelligence Lecture 2
Knowledge Representation and Reasoning
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Natural deduction Gerhard Gentzen.
Propositional Equivalences
Principles of proof calculi Natural deduction
Back to “Serious” Topics…
Computer Security: Art and Science, 2nd Edition
Computer Science cpsc322, Lecture 20
Lecture Notes for SWE 623 by Duminda Wijesekera
ece 720 intelligent web: ontology and beyond
RESOLUTION.
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

All rights reservedL. Manevitz Lecture 41 Artificial Intelligence Logic L. Manevitz

All rights reservedL. Manevitz Lecture 42 Logic - Advantages Pretty universal – (need to choose the correct language). Clear semantics –Interpretation. –Intended Interpretation. Uniform Method of Manipulating –Theorem proving via Resolution. –Green’s Trick for answer production.

All rights reservedL. Manevitz Lecture 43 Representing Information Formulas Semantic connection Formal connection Representation Interpretation

All rights reservedL. Manevitz Lecture 44 Basic Concept Let  be a set of formulas. Let φ be a specific formula. When does φ logically follow from  ? Meaning : in every possible interpretation where  is true then φ is true. Notationally :  φ (  “semantically implies φ).

All rights reservedL. Manevitz Lecture 45 Syntax Language: –Logical symbols. –Relation symbols. –Function symbols. –Constant symbols. Terms – recursive. Formulas – recursive. Sentences – no free variables.

All rights reservedL. Manevitz Lecture 46 Semantics - Interpretation θ= R i  AxAx..xA F k : AxAx..xA  A C l  A θθθθθθθθθ θ θ θ

All rights reservedL. Manevitz Lecture 47 Semantics To handle variables, we extend the notion of satisfaction to include variables (explain on blackboard)

All rights reservedL. Manevitz Lecture 48 How to work with Basic semantic equivalents : – (e.g. De Morgan’s Laws, Assoc. Laws, Distr. Laws). Fundamental Problem : –Find mechanical procedure to test if  φ or not.

All rights reservedL. Manevitz Lecture 49 Abstraction of Proof -  φ Intuitive: φ 1 φ 2 φ n = φ Example: “Acceptable Rule” φ ψ(MP) Where φ i   or φ i follows from {φ j | j<i } By “acceptable” rule φ ψ

All rights reservedL. Manevitz Lecture 410 Definitions A system S is consistent if whenever  φ then  φ. A system S is complete if whenever  φ then  φ. s s

All rights reservedL. Manevitz Lecture 411 Theorem Completeness Theorem: There is a system S s.t.  φ  φ

All rights reservedL. Manevitz Lecture 412 Example Trivially complete where A is any formula. Sound Rule: (MP)  A A B A B

All rights reservedL. Manevitz Lecture 413 Example cont. [M | s] A B iff [M | s] A or [M | s] B by def. If [M | s] A then [M | s] A by def. It follows that [M | s] B. A B A B

All rights reservedL. Manevitz Lecture 414 What kind of systems ? Mimic People (“Natural Deduction”). Mimic Mathematical Proof. Convenient for Computers.

All rights reservedL. Manevitz Lecture 415 Proof Systems “Natural Deduction” Formal Computational e.g. Resolution Completeness Theorem

All rights reservedL. Manevitz Lecture 416 Control DATA Set of formulas Rules of Deduction What rule to apply to what ?

All rights reservedL. Manevitz Lecture 417 Resolution System (Syntax) Sound Rule Basic Idea: (φ 1 … φ n ) ( φ 1 ψ 1 … ψ m ) φ 2 … φ n ψ 1 … ψ m

All rights reservedL. Manevitz Lecture 418 Semantic Equivalents We can check this, now that we have a definition of truth in interpretations. Example ~(~p) is equivalent to p

All rights reservedL. Manevitz Lecture 419 Semantic Equivalents ( A) A A B A B B A A B (A B) (B A) Associative : –A (B C) (A B) C

All rights reservedL. Manevitz Lecture 420 Semantic Equivalents cont. Commutative: –A B B A Distributive: –A (B C) (A B) (A C)

All rights reservedL. Manevitz Lecture 421 Semantic Equivalents cont. De Morgan: – (A B) ( A) ( B)

All rights reservedL. Manevitz Lecture 422 Quantifier Equivalences De Morgan: (( x)A(x)) ( x) A(x) x A(x) y A(y) x [P(x) Q(x)] ( x P(x)) ( x Q(x))

All rights reservedL. Manevitz Lecture 423 Resolution (Predicate)  S Convert  to set of clauses. Convert S to set of clauses. Let Clauses := all the above clauses. Repeat until NIL found : –Select two clauses. –Resolve (using Unification). –Check result : If result is NIL finish. Otherwise add result to Clauses

All rights reservedL. Manevitz Lecture 424 Over all Procedure 1.Eliminate,. 2.Push to atomic. 3.Eliminate. 4.Rename variables in a formula. 5.Move quantifier to the left.

All rights reservedL. Manevitz Lecture 425 Over all Procedure 6.Push down. 7.Eliminate conj. - By making separate formulas. 8.Rename variables in all formulas. 9.Eliminate - Convention.

All rights reservedL. Manevitz Lecture 426 Example [ x (A(x) B(x)] [ y C(y)] A(a) B(a) y C(y) y [ A(a) B(a) C(y)] Get Clause [ A(a) B(a) C(y)] To replace add a constant to language.

All rights reservedL. Manevitz Lecture Elimination example x y Boss (y,x) –Problem: Constant not sufficient. y depends on x. –Solution: Add a new function symbol f(). x Boss (f(x),x)

All rights reservedL. Manevitz Lecture 428 Example 1. x [Brick(x) [ y[On(x,y) Pyramid(y)] y[On(x,y) On(y,x)] y[ Brick(y) Equal(x,y)]]] 2.x [ Brick(x) [ y[On(x,y) Pyramid(y)] y[On(x,y) On(y,x)] y[ ( Brick(y)) Equal(x,y)]]] Eliminate  Push

All rights reservedL. Manevitz Lecture 429 Example cont. 3.x [ Brick(x) [ y[On(x,y) Pyramid(y)] y[ On(x,y) On(y,x)] y[Brick(y) Equal(x,y)]]] 4.x [ Brick(x) [[On(x,support(x)) Pyramid(support(x))] y[ On(x,y) On(y,x)] y[Brick(y) Equal(x,y)]]] Eliminate Rename variables apart

All rights reservedL. Manevitz Lecture 430 Example cont. 5.x [ Brick(x) [[On(x,support(x)) Pyramid(support(x))] y[ On(x,y) On(y,x)] z[Brick(z) Equal(x,z)]]] 6.x y z [ Brick(x) [[On(x,support(x)) Pyramid(support(x))] [ On(x,y) On(y,x)] [Brick(z) Equal(x,z)]]] Move to left Push down

All rights reservedL. Manevitz Lecture 431 Example cont. 7.x y z [ Brick(x) [On(x,support(x)) Pyramid(support(x))]] [ Brick(x) On(x,y) On(y,x)] [ Brick(x) Brick(z) Equal(x,z)]]

All rights reservedL. Manevitz Lecture 432 Example cont. 8.x y z [[ Brick(x) On(x,support(x))] [ Brick(x) Pyramid(support(x))] [ Brick(x) On(x,y) On(y,x)] [ Brick(x) Brick(z) Equal(x,z)]] Eliminate conj.

All rights reservedL. Manevitz Lecture 433 Example cont. 9.x [ Brick(x) On(x,support(x))] x [ Brick(x) Pyramid(support(x))] x y [ Brick(x) On(x,y) On(y,x)] x z [ Brick(x) Brick(z) Equal(x,z)] Rename variables

All rights reservedL. Manevitz Lecture 434 Example cont. 10. x [ Brick(x) On(x,support(x))] w [ Brick(w) Pyramid(support(w))] u y [ Brick(u) On(u,y) On(y,u)] v z [ Brick(v) Brick(z) Equal(v,z)] Eliminate

All rights reservedL. Manevitz Lecture 435 Example cont. Clause form: Brick(x) On(x,support(x)) Brick(w) Pyramid(support(w)) Brick(u) On(u,y) On(y,u) Brick(v) Brick(z) Equal(v,z)