A I (Artificial Intelligence)

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Biointelligence Lab School of Computer Sci. & Eng.
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Artificial Intelligence
First Order Logic Resolution
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
Logic Use mathematical deduction to derive new knowledge.
Chapter 6 Logical Reasoning Xiu-jun GONG (Ph. D) School of Computer Science and Technology, Tianjin University
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2011 Adina Magda Florea
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Automated reasoning and theorem proving Introduction: logic in AI Automated reasoning: ResolutionUnificationNormalization.
Using Predicate Logic Chapter 5.
Predicate Logic Terms represent specific objects in the world and can be constants, variables or functions. Predicate Symbols refer to a particular relation.
Resolution Theorem Prover in First-Order Logic
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
AI - Week 16 Logic and Reasoning in AI: Resolution Refutation Lee McCluskey, room 2/07
Inference and Resolution for Problem Solving
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Propositional logic It represents real-world facts as logical propositions in well formed formulas. It presented as an atomic propositions, and complex.
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
UBI517 Expert Systems 1 Lecture 2 Knowledge Representation.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Automated reasoning and theorem proving Introduction: logic in AI Automated reasoning: ResolutionUnificationNormalization.
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.
SAT-solving Introduction: logic in AI SAT-solving techniques: Unit-propagationLocal-search.
UNIVERSITI TENAGA NASIONAL 1 CSNB234 ARTIFICIAL INTELLIGENCE Chapter 3 Propositional Logic & Predicate Logic Chapter 3 Propositional Logic & Predicate.
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.
1 Chapter 8 Inference and Resolution for Problem Solving.
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Logical Representations and Resolution. Boolean Logic Conjunctive normal form Resolution.
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.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Intelligent Control Methods Lecture 7: Knowledge representation Slovak University of Technology Faculty of Material Science and Technology in Trnava.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 18 of 41 Friday, 01 October.
Reasoning using First-Order Logic
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 Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
1 Example: The following knowledge is given :The following knowledge is given : 1. Marcus was a man. 2. Marcus was a Pompeian. 3. All Pompeians were Romans.
CIT 856 – Artificial Intelligence
Answer Extraction To use resolution to answer questions, for example a query of the form  X C(X), we must keep track of the substitutions made during.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Definition and Technologies Knowledge Representation.
Knowledge Representation
EA C461 Artificial Intelligence
Propositional Logic Resolution
Automated reasoning and theorem proving
Knowledge Representation
Predicate Logic Lecture 7.
Horn Clauses and Unification
Logical Inference: Through Proof to Truth
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Logic Programming Languages
Logic Use mathematical deduction to derive new knowledge.
Horn Clauses and Unification
Horn Clauses and Unification
Horn Clauses and Unification
CS 188: Artificial Intelligence
Horn Clauses and Unification
CSNB234 ARTIFICIAL INTELLIGENCE
Teorie assiomatico-deduttive (calcolo dei predicati)
Resolution Proof System for First Order Logic
Presentation transcript:

A I (Artificial Intelligence) Professor I. J. Chung 2018-07-19

AI (Artificial Intelligence) Knowledge Representation Logical representation : Formal logic ( 1st order predicate calculus ) Inference rules and proof procedures Prolog Logic program as KBS / ES Variety : parallel logic program. Declarative representation. cf: Ada ( spec. + body ) 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Procedural representation : set of instructions for solving problems. If … then … else structure in RBS. Production system. Procedure for solving a goal in a problem domain. Network representation : Graph representation with nodes (objects) and arcs (representation). Semantic network, conceptual dependencies, conceptual graphs. 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Structured representation : Extension of network representation With a complex data structure consisting of slots and attached values. Script, frame, objects 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Logical representation schemes : English predicate calculus prolog and ∧ , or ∨ ; only if ← := not not E.g. spot is a dog dog ( spot ). 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) E.g. 1) Marcus was a person. person ( marcus ). 2) Marcus was a pompeian. pompeian (marcus ). 3) All pompeian were Romans. ∀x pompeian(x) → roman(x) pompeian(x) ∨ roman (x) 4) Caesar was a ruler. ruler(caesar) 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) 5) All Romans were either loyal to Ceasar or hated him. ∀x roman(x) → (loyalto(x,caesar) ∨ hate(x,caesar)) ~roman(x) ∨ loyalto(x,caesar) ∨ hate(x,caesar) : clausal form 6) everyone is loyal to someone. ∀x ∃y loyalto (x,y) loyalto (x,f(x)) Skolem function 7) People only try to assassinate rulers they are not loyal to ∀x ∀y : person(x) ∧ ruler(y) ∧ trytoassassinate(x,y) → ~loyalto (x,y) ~person(x) ∨ ~ruler(y) ∨ ~trytoassassinate(x,y) ∨ ~loyalto(x,y) 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) 8) Marcus tried to assassinate Caesar. trytoassassinate(marcus,caesar) Question : “Did Marcus hate Caesar?” hate(marcus, caesar) 9) ~hate(marcus,caesar) Robinson’s resolution (pf. By contradiction) : negate the hypothesis to be proved & derive the contradiction (empty clause) 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Refutation graph : unsatisfiable set S={B(x),~B(x)∨C(x),~C(a)∨D(b), ~C(c)∨E(d),~D(x)∨~E(y)} 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Clausal form : well-formed formula of predicate calculus → clause form (∀x){P(x) ⇒ {(∀y){P(y) ⇒ P(f(x,y))} ∧ ~(∀y){Q(x,y) ⇒ P(y)}}} Eliminate implication sign A ⇒ B ⇔ ~A∨B (∀x){~P(x)∨{(∀y){~P(y) ∨ P(f(x,y))} ∧ ~(∀y){~Q(x,y) ∨ P(y)}}} Reduce scopes of negation signs ∴ (∀x){~P(x)∨{(∀y){~P(y)∨P(f(x,y))}∧(∃y){~{~Q(x,y)∨P(y)}}}} (∀x){~P(x)∨{(∀y){~P(y)∨P(f(x,y))}∧(∃y){Q(x,y)∧~P(y)}}} Standardize variables (∀x){~P(x)∨{(∀y){~P(y)∨P(f(x,y))}∧(∃w){Q(x,w)∧~P(w)}}} 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Eliminate existential quantifier (∀y) (∃x) P(x,y) (∀y) P(g(y),y) Skolem function ∴(∀x){~P(x)∨{(∀y){~P(y)∨P(f(x,y))}∧{Q(x,g(x))∧~P(g(x))}}} Convert to prenext form : (∀x∀y){~P(x)∨{{~P(y)∨P(f(x,y))}∧{Q(x,g(x))∧~P(g(x))}}} prefix Put matrix in CNF (∀x∀y){~P(x)∨~P(y)∨P(f(x,y))} ∧{~P(x)∨Q(x,g(x))}∧{~P(x)∨~P(g(x))}} Eliminate the universal quantifier & ‘and’ sign ∴ ~P(x)∨~P(y)∨P(f(x,y)) ~P(x)∨Q(x,g(x)) ~P(x)∨~P(g(x)) matrix 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Logic program Program paradigm where logical assertions are viewed as programs (Declarative Semantics) ATP with formal knowledge representation defined over 1st order calculus. Robinson’s resolution rule Logic itself is a PL. (declarative semantics) Prolog : verification, validation, proving them. Produce call : -q1,q2,…,qk ~q1∨~q2∨…∨~qk Logic : ‘what’ part control : ‘how’ part cf.Ada 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Problem of logic program Control problem : needs to provide a control information with extra-logical control features. Negation problem : imperfect version of NAF NAF : p.176 下 CWA : if ground atom A is not a logical consequence of program then infer ~A E.g. student (Kim) student (park) since student (lee) is not a logical consequence., we infer ~student (lee) 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) Prolog : logical assertions Horn clause p:-q1,q2,…,qk ≡ p∨~q1∨~q2∨…∨~qk List: [ ] rather than ( ) sum ([ ],0) sum ([H|T],X) :- sum (T,Y), add (H,Y,X) sum of elements of the list add (X,Y,Z) :- Z is X+Y max ([ ],0) :- max ([H|T],X) :- max (T,N), comp (H,N,X) max of the list comp (X,Y,Z) :- X >= Y, Z is X comp (X,Y,Z) :- Z is Y 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) fibo (0,0) :- ! fibo (1,1) :- ! fibo (X,Y) :- X1 is X-1, X2 is X-2, fibo (X1,Y1), fibo (X2,Y2), y is Y1+Y2 power (m,o,1) :- ! power (m,n,c) :- n1 is n-1, power (m,n1,c1), mn c is c1*m 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) append ([ ],X,X) append ([X|XS],YS,[X|ZS]) :- append (XS,YS,ZS) :- append ([a,b],[c],[a,b,c]) 2 :- append ([b],[c],[b,c]) :- append ([ ],[c],[c]) 1 (SLD-tree) 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) SLD-tree for PU{G} via R P: program, G:goal, R:rule ∀ node of the tree is a goal root is G :- A1,A2,…,Am,Ak Am :- Ba,…,Bq :- (A1,…,Am-1,B1,…,Bq,Am+1,…,Ak) Θ E.g. p(x,z) :- q(x,y), p(y,z) p(x,x) q(a,b) goal : :- p(x,b) 2018-07-19 Artificial Intelligence

AI (Artificial Intelligence) AND-parallelism : computation rule in which pwc. Are evaluated concurrently. OR-parallelism : parallelism in the search rule → several clauses can be fired an currently 2018-07-19 Artificial Intelligence