SlideShare une entreprise Scribd logo
1  sur  30
Jarrar © 2013 1
Dr. Mustafa Jarrar
Sina Institute, University of Birzeit
mjarrar@birzeit.edu
www.jarrar.info
Lecture Notes on Logic & Logic Agents
University of Birzeit, Palestine
2013
Artificial Intelligence
Logic & Logic Agents
Chapter 7 (& Some background)
Jarrar © 2013 2
Watch this lecture and download the slides from
http://jarrar-courses.blogspot.com/2011/11/artificial-intelligence-fall-2011.html
Jarrar © 2013 3
This lecture
General background about Logic, needed in the proceeding lectures:
• History of Logic, and a quick review of logic.
• Propositional Logic
• Logic Agents
• Logical inference = reasoning
Lecture Keywords:
Logic, History of Logic, knowledge representation, Propositional Logic, Logic agents, Knowledge-
Based Agent, Validity of arguments, Tarski’s world, Tarski’s Semantics, Wumpus World Game,
Inference, Deduction, Reasoning, Entailment, Logical Implication, Soundness, Completeness ،
satisfiable, Unsatisfiable, Validity, Falsifiable, tautology.
،‫االستنتاج‬ ،‫المعرفة‬ ‫تمثيل‬ ،‫المنطق‬ ‫تاريخ‬ ،‫الشكلي‬ ‫المنطق‬ ،‫المنطق‬
‫الحدود‬ ،‫المنطقية‬ ‫الحجمل‬ ‫صحة‬ ،‫االستنباط‬
Jarrar © 2013 4
What is logic?
• A logic allows the axiomatization of the domain information, and the
drawing of conclusions from that information.
– Syntax
– Semantics
– Logical inference = reasoning
Computer Science deals with logic as a tool or a language to represent knowledge (even it
is not true), and reason about it, i.e., draw conclusions automatically (…reaching
intelligence).
Philosophy is more concerned with the truth of axioms, in the real world
Jarrar © 2013 5
Some History of Logic
Complete
Reasoning
Scalable
Reasoning!
1037 1198 ?2001
322 BC
Automated
Reasoning
1960s
Jarrar © 2013 6
Is it a valid argument?
Also called: Query
Review Of Propositional Logic Reasoning
Validity of Arguments
Example from [1]
Jarrar © 2013 7
Is it a valid argument?
Also called: Query
Review Of Propositional Logic Reasoning
Validity of Arguments
Example from [1]
Jarrar © 2013 8
Quick Review: (First-Order-Logic)
Tarski’s World example
Describe Tarski’s world using universal and external quantifiers
Example from [1]
Jarrar © 2013 9
Quick Review: (First-Order-Logic)
Universal and Extensional Quantifiers Example
There is an item that was chosen by every student.  true
There is a student who chose every available item. false
There is a student who chose at least one item from every station.  true
Every student chose at least one item from every station  false.
Example from [1]
Jarrar © 2013 10
Why Logic: Motivation Example
• Logic allows us to represent knowledge precisely (Syntax and
Semantics).
• However, representation alone is not enough.
x PhDStudent(x)  Student (x)
x Employee(x)  Person (x)
x Student(x)  Person (x)
x PhDStudent(x)  Employee (x)
Person
StudentEmployee
PhD Student
• We also need to process this knowledge and make use of it, i.e.
Logical inference = (Reasoning).
Jarrar © 2013 11
x PhDStudent(x)  Student (x)
x Employee(x)  Person (x)
x Student(x)  Person (x)
x PhDStudent(x)  Employee (x)
Person
StudentEmployee
PhD Student
x PhDStudent(x)  Person (x)
How to process the above axioms to know that an axiom can
be derived from another axiom.
Why Logic: Motivation Example
Reasoning:
Jarrar © 2013 12
Person
StudentEmployee
PhD Student
How to process the above axioms to know that an axiom can
be derived from another axiom.
Find contradictions (satisfiability)
x Student(x)  Employee (x) = 
…etc.
x PhDStudent(x)  Student (x)
x Employee(x)  Person (x)
x Student(x)  Person (x)
x PhDStudent(x)  Employee (x)
Why Logic: Motivation Example
Reasoning:
Jarrar © 2013 13
Ch.7
Logic Agents
Most material is based on and improved from [2]
Jarrar © 2013 15
A Knowledge-Based Agent
• A knowledge-based agent consists of a knowledge base (KB) and an
inference engine (IE).
• A knowledge-base is a set of representations of what one knows about
the world (objects and classes of objects, the fact about objects,
relationships among objects, etc.)
• Each individual representation is called a sentence.
• The sentences are expressed in a knowledge representation
language.
• Examples of sentences
– The moon is made of green cheese
– If A is true then B is true
– A is false
– All humans are mortal
– Confucius is a human
Jarrar © 2013 16
A Knowledge-Based Agent
• The Inference engine derives new sentences from the input and KB
• The inference mechanism depends on representation in KB
• The agent operates as follows:
– 1. It receives percepts from environment
– 2. It computes what action it should perform (by IE and KB)
– 3. It performs the chosen action (some actions are simply inserting
inferred new facts into KB).
Knowledge
Base
Inference
Engine
Input from
environment
Output
(actions)
Learning
(KB update)
Jarrar © 2013 18
The Wumpus World
• Demo (Video)
• Performance measure
– gold +1000, death -1000
– -1 per step, -10 for using the arrow
• Environment
– Squares adjacent to wumpus are smelly
– Squares adjacent to pit are breezy
– Glitter iff gold is in the same square
– Shooting kills wumpus if you are facing it
– Shooting uses up the only arrow
– Grabbing picks up gold if in same square
– Releasing drops the gold in same square
• Sensors: Stench, Breeze, Glitter, Bump, Scream
• Actuators: Left turn, Right turn, Forward, Grab, Release, Shoot
Jarrar © 2013 19
Entailment –Logical Implication
• Entailment means that one thing follows from another:
KB ╞ α
• Knowledge base KB entails sentence α
if and only if
α is true in all worlds where KB is true
- E.g., the KB containing “the Giants won” and “the Reds won”
entails “Either the Giants won or the Reds won”
- E.g., x+y = 4 entails 4 = x+y
- Entailment is a relationship between sentences (i.e., Syntax) that
is based on Semantics.
KB
α?
Jarrar © 2013 20
What is a “Model”? (in Logic)
• Logicians typically think in terms of models, which are formally
structured worlds with respect to which truth can be evaluated.
• We say m is a model of a sentence α if α is true in m
• M(α) is the set of all models of α
• Then KB ╞ α iff M(KB)  M(α)
E.g.
KB = “Giants won” and “Reds won”
α = “Giants won”
Or
α = “Red won”
Or
α = either Giants or Red won
Jarrar © 2013 21
Wumpus Models
Jarrar © 2013 22
Wumpus Models
• KB = Wumpus-world rules + observations
Jarrar © 2013 23
Wumpus Models
• KB = wumpus-world rules + observations
• α1 = "[1,2] is safe",
KB ╞ α1, proved by model checking
Jarrar © 2013 24
Another example
• Construct a model satisfying the following 
 = x (Circle(x)  Above (x, f))
• Model:
Circle(a)
Circle(c)
Triangle(f)
a in [3,5]
c in [2,4]
f in [3,3]
a
c
f
We say that this model is an interpretation for 
Jarrar © 2013 25
Properties of Inference Procedures
Inference = Deduction = Reasoning
• KB ├i α = sentence α can be derived from KB by procedure i
• Soundness: i is sound if
whenever KB ├i α, it is also true that KB╞ α
• Completeness: i is complete if
whenever KB╞ α, it is also true that KB ├i α
• Preview: we will define a logic (first-order logic) which is expressive
enough to say almost anything of interest, and for which there exists a
sound and complete inference procedure.
• That is, the procedure will answer any question whose answer follows
from what is known by the KB.
KB ├i α
Jarrar © 2013 26
Propositional logic
Jarrar © 2013 27
Propositional logic: Syntax
• Propositional logic is the simplest logic –illustrates basic ideas
Jarrar © 2013 28
Propositional Logic: Semantics
Each model specifies true/false for each proposition symbol
E.g. P1,2 P2,2 P3,1
false true false
With these symbols, 8 (= 23) possible models, can be enumerated automatically.
Rules for evaluating truth with respect to a model m:
S is true iff S is false
S1  S2 is true iff S1 is true and S2 is true
S1  S2 is true iff S1is true or S2 is true
S1  S2 is true iff S1 is false or S2 is true
i.e., is false iff S1 is true and S2 is false
S1  S2 is true iff S1S2 is true andS2S1 is true
Simple recursive process evaluates an arbitrary sentence, e.g.,
P1,2  (P2,2  P3,1) = true  (true  false) = true  true = true
Jarrar © 2013 29
A simple knowledge base
Let Pi,j be true if there is a pit in [i, j].
Let Bi,j be true if there is a breeze in [i, j].
Knowledge Base:
 P1,1 There is no pit in [1, 1]
B1,1  (P1,2  P2,1) B1,1 is breezy if and only if there is a pit in a neighboring square
B2,1  (P1,1  P2,2  P3,1)
 These sentences are true in all wumpus worlds.
 B1,1
B2,1
Jarrar © 2013 30
Validity and Satisfiability
A sentence is valid if it is true in all models,
e.g., True, A A, A  A, (A  (A  B))  B
Validity is connected to inference via the Deduction Theorem:
KB ╞ α if and only if (KB  α) is valid
A sentence is satisfiable if it is true in some model
e.g., A  B, C
A sentence is unsatisfiable if it is true in no models
e.g., A  A
Satisfiability is connected to inference via the following:
KB ╞ α if and only if (KB α) is unsatisfiable Person
Student
Employe
e
PhD Student
Jarrar © 2013 31
Validity and Satisfiability
An interpretation I is a model of α:
I ╞ α
A formula α is
• Satisfiable, if there is some I that satisfies α ,
• Unsatisfiable, if α is not satisfiable,
• Falsifiable, if there is some I that does not satisfy α ,
• Valid (i.e., a tautology), if every I is a model of α .
Two formulas are logically equivalent (α  ), if for all I :
I ╞ α iff I ╞ 
Jarrar © 2013 32
References
[1] Discrete Mathematics with Applications by Susanna S. Epp (3rd Edition)
[2] S. Russell and P. Norvig: Artificial Intelligence: A Modern Approach Prentice Hall, 2003, Second Edition
[3] Enrico Franconi: Lecture Notes on Description Logics
http://www.inf.unibz.it/~franconi/dl/course/slides/intro/intro.pdf
[4] Franz Kurfess: Lecture Notes on Artificial Intelligence
http://users.csc.calpoly.edu/~fkurfess/Courses/Artificial-Intelligence/F09/Slides/6B-Logic.ppt

Contenu connexe

Tendances

Harnessing Deep Neural Networks with Logic Rules
Harnessing Deep Neural Networks with Logic RulesHarnessing Deep Neural Networks with Logic Rules
Harnessing Deep Neural Networks with Logic RulesSho Takase
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agentsMegha Sharma
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
Dependent Types in Natural Language Semantics
Dependent Types in Natural Language SemanticsDependent Types in Natural Language Semantics
Dependent Types in Natural Language SemanticsDaisuke BEKKI
 
Predicate calculus
Predicate calculusPredicate calculus
Predicate calculusRajendran
 
Composing (Im)politeness in Dependent Type Semantics
Composing (Im)politeness in Dependent Type SemanticsComposing (Im)politeness in Dependent Type Semantics
Composing (Im)politeness in Dependent Type SemanticsDaisuke BEKKI
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
Rethinking Perturbations in Encoder-Decoders for Fast Training
Rethinking Perturbations in Encoder-Decoders for Fast TrainingRethinking Perturbations in Encoder-Decoders for Fast Training
Rethinking Perturbations in Encoder-Decoders for Fast TrainingSho Takase
 
ACL読み会2014@PFI "Less Grammar, More Features"
ACL読み会2014@PFI "Less Grammar, More Features"ACL読み会2014@PFI "Less Grammar, More Features"
ACL読み会2014@PFI "Less Grammar, More Features"nozyh
 
Fuzzy Logic Ppt
Fuzzy Logic PptFuzzy Logic Ppt
Fuzzy Logic Pptrafi
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy GryshchukGrammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy GryshchukGrammarly
 
Do Neural Models Learn Transitivity of Veridical Inference?
Do Neural Models Learn Transitivity of Veridical Inference?Do Neural Models Learn Transitivity of Veridical Inference?
Do Neural Models Learn Transitivity of Veridical Inference?Hitomi Yanaka
 

Tendances (20)

AI Lesson 09
AI Lesson 09AI Lesson 09
AI Lesson 09
 
Harnessing Deep Neural Networks with Logic Rules
Harnessing Deep Neural Networks with Logic RulesHarnessing Deep Neural Networks with Logic Rules
Harnessing Deep Neural Networks with Logic Rules
 
Knowledge based agents
Knowledge based agentsKnowledge based agents
Knowledge based agents
 
First order logic
First order logicFirst order logic
First order logic
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
Dependent Types in Natural Language Semantics
Dependent Types in Natural Language SemanticsDependent Types in Natural Language Semantics
Dependent Types in Natural Language Semantics
 
Logic
LogicLogic
Logic
 
Predicate calculus
Predicate calculusPredicate calculus
Predicate calculus
 
Composing (Im)politeness in Dependent Type Semantics
Composing (Im)politeness in Dependent Type SemanticsComposing (Im)politeness in Dependent Type Semantics
Composing (Im)politeness in Dependent Type Semantics
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
Predicate logic
 Predicate logic Predicate logic
Predicate logic
 
Rethinking Perturbations in Encoder-Decoders for Fast Training
Rethinking Perturbations in Encoder-Decoders for Fast TrainingRethinking Perturbations in Encoder-Decoders for Fast Training
Rethinking Perturbations in Encoder-Decoders for Fast Training
 
AI Lesson 12
AI Lesson 12AI Lesson 12
AI Lesson 12
 
ACL読み会2014@PFI "Less Grammar, More Features"
ACL読み会2014@PFI "Less Grammar, More Features"ACL読み会2014@PFI "Less Grammar, More Features"
ACL読み会2014@PFI "Less Grammar, More Features"
 
Fuzzy hypersoft sets and its weightage operator for decision making
Fuzzy hypersoft sets and its weightage operator for decision makingFuzzy hypersoft sets and its weightage operator for decision making
Fuzzy hypersoft sets and its weightage operator for decision making
 
Chapter 4 (final)
Chapter 4 (final)Chapter 4 (final)
Chapter 4 (final)
 
Fuzzy Logic Ppt
Fuzzy Logic PptFuzzy Logic Ppt
Fuzzy Logic Ppt
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy GryshchukGrammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
Grammarly Meetup: Paraphrase Detection in NLP (PART 2) - Andriy Gryshchuk
 
Do Neural Models Learn Transitivity of Veridical Inference?
Do Neural Models Learn Transitivity of Veridical Inference?Do Neural Models Learn Transitivity of Veridical Inference?
Do Neural Models Learn Transitivity of Veridical Inference?
 

Similaire à Jarrar: Introduction to logic and Logic Agents

Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)Nitesh Singh
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Sabu Francis
 
aritficial intellegence
aritficial intellegencearitficial intellegence
aritficial intellegenceAnkit Sharma
 
Top school in delhi ncr
Top school in delhi ncrTop school in delhi ncr
Top school in delhi ncrEdhole.com
 
Bayesian Generalization Error and Real Log Canonical Threshold in Non-negativ...
Bayesian Generalization Error and Real Log Canonical Threshold in Non-negativ...Bayesian Generalization Error and Real Log Canonical Threshold in Non-negativ...
Bayesian Generalization Error and Real Log Canonical Threshold in Non-negativ...Naoki Hayashi
 
PredicatesQuantifiers.docx
PredicatesQuantifiers.docxPredicatesQuantifiers.docx
PredicatesQuantifiers.docxWaqasSami6
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Deep Learning for Information Retrieval: Models, Progress, & Opportunities
Deep Learning for Information Retrieval: Models, Progress, & OpportunitiesDeep Learning for Information Retrieval: Models, Progress, & Opportunities
Deep Learning for Information Retrieval: Models, Progress, & OpportunitiesMatthew Lease
 
AI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfAI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfARMANVERMA7
 

Similaire à Jarrar: Introduction to logic and Logic Agents (20)

AI-Unit4.ppt
AI-Unit4.pptAI-Unit4.ppt
AI-Unit4.ppt
 
Logic agent
Logic agentLogic agent
Logic agent
 
Chapter1p2.pptx
Chapter1p2.pptxChapter1p2.pptx
Chapter1p2.pptx
 
Chapter1p2.pptx
Chapter1p2.pptxChapter1p2.pptx
Chapter1p2.pptx
 
Logic programming (1)
Logic programming (1)Logic programming (1)
Logic programming (1)
 
Logic
LogicLogic
Logic
 
Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1Introduction to logic and prolog - Part 1
Introduction to logic and prolog - Part 1
 
aritficial intellegence
aritficial intellegencearitficial intellegence
aritficial intellegence
 
Top school in delhi ncr
Top school in delhi ncrTop school in delhi ncr
Top school in delhi ncr
 
Bayesian Generalization Error and Real Log Canonical Threshold in Non-negativ...
Bayesian Generalization Error and Real Log Canonical Threshold in Non-negativ...Bayesian Generalization Error and Real Log Canonical Threshold in Non-negativ...
Bayesian Generalization Error and Real Log Canonical Threshold in Non-negativ...
 
PredicatesQuantifiers.docx
PredicatesQuantifiers.docxPredicatesQuantifiers.docx
PredicatesQuantifiers.docx
 
Lecture1.pptx
Lecture1.pptxLecture1.pptx
Lecture1.pptx
 
Logic.ppt
Logic.pptLogic.ppt
Logic.ppt
 
m7-logic.ppt
m7-logic.pptm7-logic.ppt
m7-logic.ppt
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Deep Learning for Information Retrieval: Models, Progress, & Opportunities
Deep Learning for Information Retrieval: Models, Progress, & OpportunitiesDeep Learning for Information Retrieval: Models, Progress, & Opportunities
Deep Learning for Information Retrieval: Models, Progress, & Opportunities
 
l4.pptx
l4.pptxl4.pptx
l4.pptx
 
Infrastructures et recommandations pour les Humanités Numériques - Big Data e...
Infrastructures et recommandations pour les Humanités Numériques - Big Data e...Infrastructures et recommandations pour les Humanités Numériques - Big Data e...
Infrastructures et recommandations pour les Humanités Numériques - Big Data e...
 
AI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfAI NOTES ppt 4.pdf
AI NOTES ppt 4.pdf
 
continuity of module 2.pptx
continuity of module 2.pptxcontinuity of module 2.pptx
continuity of module 2.pptx
 

Plus de Mustafa Jarrar

Clustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment AnalysisClustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment AnalysisMustafa Jarrar
 
Classifying Processes and Basic Formal Ontology
Classifying Processes  and Basic Formal OntologyClassifying Processes  and Basic Formal Ontology
Classifying Processes and Basic Formal OntologyMustafa Jarrar
 
Discrete Mathematics Course Outline
Discrete Mathematics Course OutlineDiscrete Mathematics Course Outline
Discrete Mathematics Course OutlineMustafa Jarrar
 
Business Process Implementation
Business Process ImplementationBusiness Process Implementation
Business Process ImplementationMustafa Jarrar
 
Business Process Design and Re-engineering
Business Process Design and Re-engineeringBusiness Process Design and Re-engineering
Business Process Design and Re-engineeringMustafa Jarrar
 
BPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical ConstructsBPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical ConstructsMustafa Jarrar
 
BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs  BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs Mustafa Jarrar
 
Introduction to Business Process Management
Introduction to Business Process ManagementIntroduction to Business Process Management
Introduction to Business Process ManagementMustafa Jarrar
 
Customer Complaint Ontology
Customer Complaint Ontology Customer Complaint Ontology
Customer Complaint Ontology Mustafa Jarrar
 
Subset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion RulesSubset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion RulesMustafa Jarrar
 
Schema Modularization in ORM
Schema Modularization in ORMSchema Modularization in ORM
Schema Modularization in ORMMustafa Jarrar
 
On Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in PalestineOn Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in PalestineMustafa Jarrar
 
Lessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesLessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesMustafa Jarrar
 
Presentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-finalPresentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-finalMustafa Jarrar
 
Jarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 CallsJarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 CallsMustafa Jarrar
 
Habash: Arabic Natural Language Processing
Habash: Arabic Natural Language ProcessingHabash: Arabic Natural Language Processing
Habash: Arabic Natural Language ProcessingMustafa Jarrar
 
Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Mustafa Jarrar
 
Riestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 ProposalsRiestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 ProposalsMustafa Jarrar
 
Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020Mustafa Jarrar
 
Jarrar: Sparql Project
Jarrar: Sparql ProjectJarrar: Sparql Project
Jarrar: Sparql ProjectMustafa Jarrar
 

Plus de Mustafa Jarrar (20)

Clustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment AnalysisClustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment Analysis
 
Classifying Processes and Basic Formal Ontology
Classifying Processes  and Basic Formal OntologyClassifying Processes  and Basic Formal Ontology
Classifying Processes and Basic Formal Ontology
 
Discrete Mathematics Course Outline
Discrete Mathematics Course OutlineDiscrete Mathematics Course Outline
Discrete Mathematics Course Outline
 
Business Process Implementation
Business Process ImplementationBusiness Process Implementation
Business Process Implementation
 
Business Process Design and Re-engineering
Business Process Design and Re-engineeringBusiness Process Design and Re-engineering
Business Process Design and Re-engineering
 
BPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical ConstructsBPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical Constructs
 
BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs  BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs
 
Introduction to Business Process Management
Introduction to Business Process ManagementIntroduction to Business Process Management
Introduction to Business Process Management
 
Customer Complaint Ontology
Customer Complaint Ontology Customer Complaint Ontology
Customer Complaint Ontology
 
Subset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion RulesSubset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion Rules
 
Schema Modularization in ORM
Schema Modularization in ORMSchema Modularization in ORM
Schema Modularization in ORM
 
On Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in PalestineOn Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in Palestine
 
Lessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesLessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online Courses
 
Presentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-finalPresentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-final
 
Jarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 CallsJarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 Calls
 
Habash: Arabic Natural Language Processing
Habash: Arabic Natural Language ProcessingHabash: Arabic Natural Language Processing
Habash: Arabic Natural Language Processing
 
Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing
 
Riestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 ProposalsRiestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 Proposals
 
Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020
 
Jarrar: Sparql Project
Jarrar: Sparql ProjectJarrar: Sparql Project
Jarrar: Sparql Project
 

Dernier

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Dernier (20)

Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

Jarrar: Introduction to logic and Logic Agents

  • 1. Jarrar © 2013 1 Dr. Mustafa Jarrar Sina Institute, University of Birzeit mjarrar@birzeit.edu www.jarrar.info Lecture Notes on Logic & Logic Agents University of Birzeit, Palestine 2013 Artificial Intelligence Logic & Logic Agents Chapter 7 (& Some background)
  • 2. Jarrar © 2013 2 Watch this lecture and download the slides from http://jarrar-courses.blogspot.com/2011/11/artificial-intelligence-fall-2011.html
  • 3. Jarrar © 2013 3 This lecture General background about Logic, needed in the proceeding lectures: • History of Logic, and a quick review of logic. • Propositional Logic • Logic Agents • Logical inference = reasoning Lecture Keywords: Logic, History of Logic, knowledge representation, Propositional Logic, Logic agents, Knowledge- Based Agent, Validity of arguments, Tarski’s world, Tarski’s Semantics, Wumpus World Game, Inference, Deduction, Reasoning, Entailment, Logical Implication, Soundness, Completeness ، satisfiable, Unsatisfiable, Validity, Falsifiable, tautology. ،‫االستنتاج‬ ،‫المعرفة‬ ‫تمثيل‬ ،‫المنطق‬ ‫تاريخ‬ ،‫الشكلي‬ ‫المنطق‬ ،‫المنطق‬ ‫الحدود‬ ،‫المنطقية‬ ‫الحجمل‬ ‫صحة‬ ،‫االستنباط‬
  • 4. Jarrar © 2013 4 What is logic? • A logic allows the axiomatization of the domain information, and the drawing of conclusions from that information. – Syntax – Semantics – Logical inference = reasoning Computer Science deals with logic as a tool or a language to represent knowledge (even it is not true), and reason about it, i.e., draw conclusions automatically (…reaching intelligence). Philosophy is more concerned with the truth of axioms, in the real world
  • 5. Jarrar © 2013 5 Some History of Logic Complete Reasoning Scalable Reasoning! 1037 1198 ?2001 322 BC Automated Reasoning 1960s
  • 6. Jarrar © 2013 6 Is it a valid argument? Also called: Query Review Of Propositional Logic Reasoning Validity of Arguments Example from [1]
  • 7. Jarrar © 2013 7 Is it a valid argument? Also called: Query Review Of Propositional Logic Reasoning Validity of Arguments Example from [1]
  • 8. Jarrar © 2013 8 Quick Review: (First-Order-Logic) Tarski’s World example Describe Tarski’s world using universal and external quantifiers Example from [1]
  • 9. Jarrar © 2013 9 Quick Review: (First-Order-Logic) Universal and Extensional Quantifiers Example There is an item that was chosen by every student.  true There is a student who chose every available item. false There is a student who chose at least one item from every station.  true Every student chose at least one item from every station  false. Example from [1]
  • 10. Jarrar © 2013 10 Why Logic: Motivation Example • Logic allows us to represent knowledge precisely (Syntax and Semantics). • However, representation alone is not enough. x PhDStudent(x)  Student (x) x Employee(x)  Person (x) x Student(x)  Person (x) x PhDStudent(x)  Employee (x) Person StudentEmployee PhD Student • We also need to process this knowledge and make use of it, i.e. Logical inference = (Reasoning).
  • 11. Jarrar © 2013 11 x PhDStudent(x)  Student (x) x Employee(x)  Person (x) x Student(x)  Person (x) x PhDStudent(x)  Employee (x) Person StudentEmployee PhD Student x PhDStudent(x)  Person (x) How to process the above axioms to know that an axiom can be derived from another axiom. Why Logic: Motivation Example Reasoning:
  • 12. Jarrar © 2013 12 Person StudentEmployee PhD Student How to process the above axioms to know that an axiom can be derived from another axiom. Find contradictions (satisfiability) x Student(x)  Employee (x) =  …etc. x PhDStudent(x)  Student (x) x Employee(x)  Person (x) x Student(x)  Person (x) x PhDStudent(x)  Employee (x) Why Logic: Motivation Example Reasoning:
  • 13. Jarrar © 2013 13 Ch.7 Logic Agents Most material is based on and improved from [2]
  • 14. Jarrar © 2013 15 A Knowledge-Based Agent • A knowledge-based agent consists of a knowledge base (KB) and an inference engine (IE). • A knowledge-base is a set of representations of what one knows about the world (objects and classes of objects, the fact about objects, relationships among objects, etc.) • Each individual representation is called a sentence. • The sentences are expressed in a knowledge representation language. • Examples of sentences – The moon is made of green cheese – If A is true then B is true – A is false – All humans are mortal – Confucius is a human
  • 15. Jarrar © 2013 16 A Knowledge-Based Agent • The Inference engine derives new sentences from the input and KB • The inference mechanism depends on representation in KB • The agent operates as follows: – 1. It receives percepts from environment – 2. It computes what action it should perform (by IE and KB) – 3. It performs the chosen action (some actions are simply inserting inferred new facts into KB). Knowledge Base Inference Engine Input from environment Output (actions) Learning (KB update)
  • 16. Jarrar © 2013 18 The Wumpus World • Demo (Video) • Performance measure – gold +1000, death -1000 – -1 per step, -10 for using the arrow • Environment – Squares adjacent to wumpus are smelly – Squares adjacent to pit are breezy – Glitter iff gold is in the same square – Shooting kills wumpus if you are facing it – Shooting uses up the only arrow – Grabbing picks up gold if in same square – Releasing drops the gold in same square • Sensors: Stench, Breeze, Glitter, Bump, Scream • Actuators: Left turn, Right turn, Forward, Grab, Release, Shoot
  • 17. Jarrar © 2013 19 Entailment –Logical Implication • Entailment means that one thing follows from another: KB ╞ α • Knowledge base KB entails sentence α if and only if α is true in all worlds where KB is true - E.g., the KB containing “the Giants won” and “the Reds won” entails “Either the Giants won or the Reds won” - E.g., x+y = 4 entails 4 = x+y - Entailment is a relationship between sentences (i.e., Syntax) that is based on Semantics. KB α?
  • 18. Jarrar © 2013 20 What is a “Model”? (in Logic) • Logicians typically think in terms of models, which are formally structured worlds with respect to which truth can be evaluated. • We say m is a model of a sentence α if α is true in m • M(α) is the set of all models of α • Then KB ╞ α iff M(KB)  M(α) E.g. KB = “Giants won” and “Reds won” α = “Giants won” Or α = “Red won” Or α = either Giants or Red won
  • 19. Jarrar © 2013 21 Wumpus Models
  • 20. Jarrar © 2013 22 Wumpus Models • KB = Wumpus-world rules + observations
  • 21. Jarrar © 2013 23 Wumpus Models • KB = wumpus-world rules + observations • α1 = "[1,2] is safe", KB ╞ α1, proved by model checking
  • 22. Jarrar © 2013 24 Another example • Construct a model satisfying the following   = x (Circle(x)  Above (x, f)) • Model: Circle(a) Circle(c) Triangle(f) a in [3,5] c in [2,4] f in [3,3] a c f We say that this model is an interpretation for 
  • 23. Jarrar © 2013 25 Properties of Inference Procedures Inference = Deduction = Reasoning • KB ├i α = sentence α can be derived from KB by procedure i • Soundness: i is sound if whenever KB ├i α, it is also true that KB╞ α • Completeness: i is complete if whenever KB╞ α, it is also true that KB ├i α • Preview: we will define a logic (first-order logic) which is expressive enough to say almost anything of interest, and for which there exists a sound and complete inference procedure. • That is, the procedure will answer any question whose answer follows from what is known by the KB. KB ├i α
  • 24. Jarrar © 2013 26 Propositional logic
  • 25. Jarrar © 2013 27 Propositional logic: Syntax • Propositional logic is the simplest logic –illustrates basic ideas
  • 26. Jarrar © 2013 28 Propositional Logic: Semantics Each model specifies true/false for each proposition symbol E.g. P1,2 P2,2 P3,1 false true false With these symbols, 8 (= 23) possible models, can be enumerated automatically. Rules for evaluating truth with respect to a model m: S is true iff S is false S1  S2 is true iff S1 is true and S2 is true S1  S2 is true iff S1is true or S2 is true S1  S2 is true iff S1 is false or S2 is true i.e., is false iff S1 is true and S2 is false S1  S2 is true iff S1S2 is true andS2S1 is true Simple recursive process evaluates an arbitrary sentence, e.g., P1,2  (P2,2  P3,1) = true  (true  false) = true  true = true
  • 27. Jarrar © 2013 29 A simple knowledge base Let Pi,j be true if there is a pit in [i, j]. Let Bi,j be true if there is a breeze in [i, j]. Knowledge Base:  P1,1 There is no pit in [1, 1] B1,1  (P1,2  P2,1) B1,1 is breezy if and only if there is a pit in a neighboring square B2,1  (P1,1  P2,2  P3,1)  These sentences are true in all wumpus worlds.  B1,1 B2,1
  • 28. Jarrar © 2013 30 Validity and Satisfiability A sentence is valid if it is true in all models, e.g., True, A A, A  A, (A  (A  B))  B Validity is connected to inference via the Deduction Theorem: KB ╞ α if and only if (KB  α) is valid A sentence is satisfiable if it is true in some model e.g., A  B, C A sentence is unsatisfiable if it is true in no models e.g., A  A Satisfiability is connected to inference via the following: KB ╞ α if and only if (KB α) is unsatisfiable Person Student Employe e PhD Student
  • 29. Jarrar © 2013 31 Validity and Satisfiability An interpretation I is a model of α: I ╞ α A formula α is • Satisfiable, if there is some I that satisfies α , • Unsatisfiable, if α is not satisfiable, • Falsifiable, if there is some I that does not satisfy α , • Valid (i.e., a tautology), if every I is a model of α . Two formulas are logically equivalent (α  ), if for all I : I ╞ α iff I ╞ 
  • 30. Jarrar © 2013 32 References [1] Discrete Mathematics with Applications by Susanna S. Epp (3rd Edition) [2] S. Russell and P. Norvig: Artificial Intelligence: A Modern Approach Prentice Hall, 2003, Second Edition [3] Enrico Franconi: Lecture Notes on Description Logics http://www.inf.unibz.it/~franconi/dl/course/slides/intro/intro.pdf [4] Franz Kurfess: Lecture Notes on Artificial Intelligence http://users.csc.calpoly.edu/~fkurfess/Courses/Artificial-Intelligence/F09/Slides/6B-Logic.ppt