SlideShare a Scribd company logo
2
Most read
9
Most read
11
Most read
FIRST ORDER LOGIC IN
KNOWLEDGE
REPRESENTATION
Ishara Athukorala
EP 1310
11/03/16
1
Why First Order Logic
Propositional logic has limited expressive power.
• Propositional logic assumes that the world contains facts.
• First-order logic assumes the world contains,
• Objects: people, houses, numbers, colors, baseball games, wars, …
• Relations: red, round, prime, brother of, bigger than, part of, comes between, …
• Functions: father of, best friend, one more than, …
11/03/16
2
Syntax of First Order Logic
• Constants: john,apples
• Predicates: likes(john, apples)
• Functions: likes(john, fruit_of(apple_tree))
• Variables: likes(X, apples)
• Connectives:¬, ⇒, ∧, ∨, ⇔
• Equality:=
• Quantifiers: True for all objects (Universal)
Exists at least one object (Existential)
11/03/16
3
Relations
• Some relations are properties: they state some fact about a single
object: Round(ball), Prime(7).
• n-ary relations state facts about two or more objects:
Married(John,Mary), LargerThan(3,2).
• Some relations are functions: their value is another object:
Plus(2,3), Father(Dan).
11/03/16
4
Models for FOL: Graphical Example
11/03/16
5
Terms
• A logical expression that refers to an object.
• Two types of terms,
1. Constant symbols
2. Function symbols
11/03/16
6
Atomic Sentences
• Atomic sentences state facts using terms and predicate
symbols
P(x,y) interpreted as “x is P of y”.
Examples:
• Brother_of(Mary,Pete) is false
• Brother_of(Pete,Brother(Pete)) is True.
Binary
relation
Function
11/03/16
7
Complex Sentences
• Complex sentences with connectives
( ( ), ) ( ( ))Brother LeftLeg Richard John Democrat Bush¬ ∨
objects
connectives
Binary
relation
function
properties
11/03/16
8
Universal Quantification
11/03/16
9
Existential Quantification
11/03/16
10
Some Examples…
• All purple mushrooms are poisonous.
∀x (mushroom(x) ∧ purple(x)) → poisonous(x)
• Every gardener likes the sun.
∀x gardener(x) → likes(x,Sun)
• Clinton is not tall.
¬tall(Clinton)
11/03/16
11
Some Examples…
• “On Mondays and Wednesdays I go to John’s house for dinner”
∀X.((is_mon(X) V is_wed(X)) -> eat_meal(me,houseOf(John),X))
• “Every rose has a thorn”
∀X(rose(X) -> EY.(has(X,Y) ∧ thorn(Y)))
11/03/16
12
References
• Benson Mates, Elementary Logic, OUP, New York 1972 (Library of
Congress Catalog Card no.74-166004)
• Elliot Mendelson, Introduction to Mathematical Logic, Van Nostran
Reinholds Company, New York 1964
11/03/16
13
THANK YOU
11/03/16
14

More Related Content

PPTX
Unification and Lifting
PPTX
Propositional logic
PDF
Uncertain knowledge and reasoning
PPTX
Probabilistic Reasoning
PPTX
First order logic
PPTX
Lecture 26 local beam search
PPT
Artificial Intelligence 1 Planning In The Real World
PPTX
Inference in First-Order Logic
Unification and Lifting
Propositional logic
Uncertain knowledge and reasoning
Probabilistic Reasoning
First order logic
Lecture 26 local beam search
Artificial Intelligence 1 Planning In The Real World
Inference in First-Order Logic

What's hot (20)

PPTX
knowledge representation using rules
PPT
First order logic
PPTX
Knowledge representation and Predicate logic
PPTX
AI_Session 10 Local search in continious space.pptx
PPTX
Chomsky classification of Language
PPT
Problems, Problem spaces and Search
PPT
Knowledge Representation & Reasoning
PPTX
2. forward chaining and backward chaining
PDF
Unit4: Knowledge Representation
PDF
AI_ 3 & 4 Knowledge Representation issues
PDF
I. AO* SEARCH ALGORITHM
PPTX
Uninformed search /Blind search in AI
PPTX
Informed and Uninformed search Strategies
PPTX
Pumping lemma
PDF
AI_unit IV Full Notes.pdf
PDF
Problem Solving
PDF
AI_Unit I notes .pdf
PPTX
ProLog (Artificial Intelligence) Introduction
PDF
Artificial Intelligence Notes Unit 1
PPT
Game Playing in Artificial Intelligence
knowledge representation using rules
First order logic
Knowledge representation and Predicate logic
AI_Session 10 Local search in continious space.pptx
Chomsky classification of Language
Problems, Problem spaces and Search
Knowledge Representation & Reasoning
2. forward chaining and backward chaining
Unit4: Knowledge Representation
AI_ 3 & 4 Knowledge Representation issues
I. AO* SEARCH ALGORITHM
Uninformed search /Blind search in AI
Informed and Uninformed search Strategies
Pumping lemma
AI_unit IV Full Notes.pdf
Problem Solving
AI_Unit I notes .pdf
ProLog (Artificial Intelligence) Introduction
Artificial Intelligence Notes Unit 1
Game Playing in Artificial Intelligence
Ad

Viewers also liked (10)

PPT
Propositional And First-Order Logic
PPTX
Jarrar: First Order Logic
PPT
Discrete Math Lecture 02: First Order Logic
PPT
Inference in first order logic12
PPTX
Jarrar: First Order Logic- Inference Methods
PPT
Class first order logic
PPT
English Comprehension (Inference Qns)
PPTX
Propositional logic & inference
PPT
Predicate Logic
PDF
03 - Predicate logic
Propositional And First-Order Logic
Jarrar: First Order Logic
Discrete Math Lecture 02: First Order Logic
Inference in first order logic12
Jarrar: First Order Logic- Inference Methods
Class first order logic
English Comprehension (Inference Qns)
Propositional logic & inference
Predicate Logic
03 - Predicate logic
Ad

Similar to First order logic in knowledge representation (20)

PPTX
First order logic in artificial Intelligence.pptx
PPTX
Module_5_1.pptx
PDF
First order logic
PPT
10-fol.ppt
PPTX
AI_05_First Order Logic.pptx
PPT
First order logic.ppt
DOCX
22 sch Artificial intelligence module 4.docx
PPT
Basic Knowledge Representation in First Order Logic.ppt
PPT
basic knowledge represenatation in first order logic
PPT
predicate logic proposition logic FirstOrderLogic.ppt
PPT
Knowledge Representation with predicate knoledgeFirstOrderLogic.ppt
PPT
predicateLogic.ppt
PPT
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
PPTX
First Order Logic and Qualtifiers in AI.pptx
PPTX
Basic Knowledge Representation and Reasonong
PPTX
Foundations of Knowledge Representation in Artificial Intelligence.pptx
PPTX
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
DOCX
What is First Order Logic in AI or FOL in AI.docx
PDF
Knowledge Representation, Prepositional Logic, Representation and Mapping
PPTX
First order logic in artificial Intelligence.pptx
Module_5_1.pptx
First order logic
10-fol.ppt
AI_05_First Order Logic.pptx
First order logic.ppt
22 sch Artificial intelligence module 4.docx
Basic Knowledge Representation in First Order Logic.ppt
basic knowledge represenatation in first order logic
predicate logic proposition logic FirstOrderLogic.ppt
Knowledge Representation with predicate knoledgeFirstOrderLogic.ppt
predicateLogic.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
First Order Logic and Qualtifiers in AI.pptx
Basic Knowledge Representation and Reasonong
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
What is First Order Logic in AI or FOL in AI.docx
Knowledge Representation, Prepositional Logic, Representation and Mapping

More from Sabaragamuwa University (6)

PPTX
Online parking
PPTX
Brain computer interface
PPTX
UI & UX Engineering
PPTX
Project management best practices
PPTX
VSO & JIRA Project Management Tool
PPTX
UI & UX Engineering
Online parking
Brain computer interface
UI & UX Engineering
Project management best practices
VSO & JIRA Project Management Tool
UI & UX Engineering

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
Teaching material agriculture food technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Digital-Transformation-Roadmap-for-Companies.pptx
sap open course for s4hana steps from ECC to s4
Unlocking AI with Model Context Protocol (MCP)
Mobile App Security Testing_ A Comprehensive Guide.pdf
Approach and Philosophy of On baking technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
20250228 LYD VKU AI Blended-Learning.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?

First order logic in knowledge representation

  • 1. FIRST ORDER LOGIC IN KNOWLEDGE REPRESENTATION Ishara Athukorala EP 1310 11/03/16 1
  • 2. Why First Order Logic Propositional logic has limited expressive power. • Propositional logic assumes that the world contains facts. • First-order logic assumes the world contains, • Objects: people, houses, numbers, colors, baseball games, wars, … • Relations: red, round, prime, brother of, bigger than, part of, comes between, … • Functions: father of, best friend, one more than, … 11/03/16 2
  • 3. Syntax of First Order Logic • Constants: john,apples • Predicates: likes(john, apples) • Functions: likes(john, fruit_of(apple_tree)) • Variables: likes(X, apples) • Connectives:¬, ⇒, ∧, ∨, ⇔ • Equality:= • Quantifiers: True for all objects (Universal) Exists at least one object (Existential) 11/03/16 3
  • 4. Relations • Some relations are properties: they state some fact about a single object: Round(ball), Prime(7). • n-ary relations state facts about two or more objects: Married(John,Mary), LargerThan(3,2). • Some relations are functions: their value is another object: Plus(2,3), Father(Dan). 11/03/16 4
  • 5. Models for FOL: Graphical Example 11/03/16 5
  • 6. Terms • A logical expression that refers to an object. • Two types of terms, 1. Constant symbols 2. Function symbols 11/03/16 6
  • 7. Atomic Sentences • Atomic sentences state facts using terms and predicate symbols P(x,y) interpreted as “x is P of y”. Examples: • Brother_of(Mary,Pete) is false • Brother_of(Pete,Brother(Pete)) is True. Binary relation Function 11/03/16 7
  • 8. Complex Sentences • Complex sentences with connectives ( ( ), ) ( ( ))Brother LeftLeg Richard John Democrat Bush¬ ∨ objects connectives Binary relation function properties 11/03/16 8
  • 11. Some Examples… • All purple mushrooms are poisonous. ∀x (mushroom(x) ∧ purple(x)) → poisonous(x) • Every gardener likes the sun. ∀x gardener(x) → likes(x,Sun) • Clinton is not tall. ¬tall(Clinton) 11/03/16 11
  • 12. Some Examples… • “On Mondays and Wednesdays I go to John’s house for dinner” ∀X.((is_mon(X) V is_wed(X)) -> eat_meal(me,houseOf(John),X)) • “Every rose has a thorn” ∀X(rose(X) -> EY.(has(X,Y) ∧ thorn(Y))) 11/03/16 12
  • 13. References • Benson Mates, Elementary Logic, OUP, New York 1972 (Library of Congress Catalog Card no.74-166004) • Elliot Mendelson, Introduction to Mathematical Logic, Van Nostran Reinholds Company, New York 1964 11/03/16 13