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

What's hot (20)

PPTX
AI: Learning in AI
DataminingTools Inc
 
PPT
Genetic algorithm
garima931
 
PPTX
Deep Reinforcement Learning
Usman Qayyum
 
PPTX
Knowledge representation in AI
Vishal Singh
 
PPTX
Issues in knowledge representation
Sravanthi Emani
 
PPT
Logical Agents
Yasir Khan
 
PPTX
Knowledge representation In Artificial Intelligence
Ramla Sheikh
 
PPTX
Naive bayes
Ashraf Uddin
 
PPTX
Unification and Lifting
Megha Sharma
 
PPTX
Inference in First-Order Logic
Junya Tanaka
 
PPTX
Knowledge representation and Predicate logic
Amey Kerkar
 
PPT
predicate logic example
SHUBHAM KUMAR GUPTA
 
PPTX
Problem solving in Artificial Intelligence.pptx
kitsenthilkumarcse
 
PPT
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
PDF
Reinforcement learning, Q-Learning
Kuppusamy P
 
PPTX
An introduction to reinforcement learning
Subrat Panda, PhD
 
PPTX
Knowledge representation
Md. Tanvir Masud
 
PPT
Artificial intelligence and knowledge representation
Sajan Sahu
 
PPTX
AI_Session 28 planning graph.pptx
Guru Nanak Technical Institutions
 
PPTX
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
Guru Nanak Technical Institutions
 
AI: Learning in AI
DataminingTools Inc
 
Genetic algorithm
garima931
 
Deep Reinforcement Learning
Usman Qayyum
 
Knowledge representation in AI
Vishal Singh
 
Issues in knowledge representation
Sravanthi Emani
 
Logical Agents
Yasir Khan
 
Knowledge representation In Artificial Intelligence
Ramla Sheikh
 
Naive bayes
Ashraf Uddin
 
Unification and Lifting
Megha Sharma
 
Inference in First-Order Logic
Junya Tanaka
 
Knowledge representation and Predicate logic
Amey Kerkar
 
predicate logic example
SHUBHAM KUMAR GUPTA
 
Problem solving in Artificial Intelligence.pptx
kitsenthilkumarcse
 
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
Reinforcement learning, Q-Learning
Kuppusamy P
 
An introduction to reinforcement learning
Subrat Panda, PhD
 
Knowledge representation
Md. Tanvir Masud
 
Artificial intelligence and knowledge representation
Sajan Sahu
 
AI_Session 28 planning graph.pptx
Guru Nanak Technical Institutions
 
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
Guru Nanak Technical Institutions
 

Viewers also liked (10)

PPT
Propositional And First-Order Logic
ankush_kumar
 
PPTX
Jarrar: First Order Logic
Mustafa Jarrar
 
PPT
Discrete Math Lecture 02: First Order Logic
IT Engineering Department
 
PPT
Inference in first order logic12
yosser atassi
 
PPTX
Jarrar: First Order Logic- Inference Methods
Mustafa Jarrar
 
PPT
Class first order logic
chandsek666
 
PPT
English Comprehension (Inference Qns)
Adrian Peeris
 
PPTX
Propositional logic & inference
Slideshare
 
PPT
Predicate Logic
giki67
 
PDF
03 - Predicate logic
Tudor Girba
 
Propositional And First-Order Logic
ankush_kumar
 
Jarrar: First Order Logic
Mustafa Jarrar
 
Discrete Math Lecture 02: First Order Logic
IT Engineering Department
 
Inference in first order logic12
yosser atassi
 
Jarrar: First Order Logic- Inference Methods
Mustafa Jarrar
 
Class first order logic
chandsek666
 
English Comprehension (Inference Qns)
Adrian Peeris
 
Propositional logic & inference
Slideshare
 
Predicate Logic
giki67
 
03 - Predicate logic
Tudor Girba
 
Ad

Similar to First order logic in knowledge representation (20)

PPTX
First order logic in artificial Intelligence.pptx
Y21IT051
 
PPTX
Module_5_1.pptx
DrKalaavathiBuvanesh
 
PDF
First order logic
Chinmay Patel
 
PPT
10-fol.ppt
MDAmin47
 
PPTX
AI_05_First Order Logic.pptx
Yousef Aburawi
 
PPT
First order logic.ppt
visnuyaathav1
 
DOCX
22 sch Artificial intelligence module 4.docx
BHAVANABIDARKAR
 
PPT
basic knowledge represenatation in first order logic
chougulesup79
 
PPT
Basic Knowledge Representation in First Order Logic.ppt
AshfaqAhmed693399
 
PPT
predicate logic proposition logic FirstOrderLogic.ppt
SuryaBasnet3
 
PPT
Knowledge Representation with predicate knoledgeFirstOrderLogic.ppt
SuryaBasnet3
 
PPT
predicateLogic.ppt
MUZAMILALI48
 
PPT
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
NobitaNobi489694
 
PPTX
First Order Logic and Qualtifiers in AI.pptx
Chandrashekharkuri3
 
PPTX
Foundations of Knowledge Representation in Artificial Intelligence.pptx
kitsenthilkumarcse
 
PPTX
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Ashish Duggal
 
DOCX
What is First Order Logic in AI or FOL in AI.docx
neelamsanjeevkumar
 
PDF
Knowledge Representation, Prepositional Logic, Representation and Mapping
PrabhuR97
 
PPTX
Logic DM
Rokonuzzaman Rony
 
PPTX
First order logic
Faiz Zeya
 
First order logic in artificial Intelligence.pptx
Y21IT051
 
Module_5_1.pptx
DrKalaavathiBuvanesh
 
First order logic
Chinmay Patel
 
10-fol.ppt
MDAmin47
 
AI_05_First Order Logic.pptx
Yousef Aburawi
 
First order logic.ppt
visnuyaathav1
 
22 sch Artificial intelligence module 4.docx
BHAVANABIDARKAR
 
basic knowledge represenatation in first order logic
chougulesup79
 
Basic Knowledge Representation in First Order Logic.ppt
AshfaqAhmed693399
 
predicate logic proposition logic FirstOrderLogic.ppt
SuryaBasnet3
 
Knowledge Representation with predicate knoledgeFirstOrderLogic.ppt
SuryaBasnet3
 
predicateLogic.ppt
MUZAMILALI48
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
NobitaNobi489694
 
First Order Logic and Qualtifiers in AI.pptx
Chandrashekharkuri3
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
kitsenthilkumarcse
 
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Ashish Duggal
 
What is First Order Logic in AI or FOL in AI.docx
neelamsanjeevkumar
 
Knowledge Representation, Prepositional Logic, Representation and Mapping
PrabhuR97
 
First order logic
Faiz Zeya
 
Ad

More from Sabaragamuwa University (6)

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

Recently uploaded (20)

PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Python basic programing language for automation
DanialHabibi2
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 

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