First order logic

3,474 views 10 slides May 10, 2021
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

First order logic in AI


Slide Content

ARTIFICIAL INTELLIGENCE OMega TechEd 20 First Order Logic

OMega TechEd Subscribe First Order Logic First-order logic is another way of knowledge representation in artificial intelligence. It is an extension to propositional  logic. First - order logic  is also known as Predicate   logic  or  First-order predicate logic. Propositional logic assumes the world contain facts . First order logic assumes the world contains Object, relations and function relation . Objects: Person, numbers… Relations: brother of, part of,… Function Relation: father of, best friend,…

Predicate Logic Example A sentence in  first - order logic  is written in the form Px or P(x), where P  is the predicate  and x  is the  subject(object), represented as a variable. John is tall. t all(John) John is Subject and tall is predicate Arun and Vijay are friends. friends(Arun , Vijay). OMega TechEd Subscribe

Basic Elements of First Order Logic Elements Examples Constant 1, 2, Pune, Ajay… Variables x, y, a , b,… Predicates Brother, Father,… Function Sqrt, LeftLegOf ,… Connectives ^, V, ¬, Equality == Quantifier Ɐ, Ǝ Subscribe OMega TechEd

Quantifiers In First Order Logic , a sentence can be structured using the Universal quantifier or the Existential quantifier. OMega TechEd Subscribe

Some Examples of FOL 1. All kings are person. Ɐx: King(x) person(x) 2. No-one likes noodles. Ɐx: person(x) ¬ likes(x, noodles) 3. Some dog is a pet. Ǝx : (dog(x) ^ pet(x)) 4. Every student pass or fail. Ɐx: (student(x) (pass(x) V fail (x))) 5. If x is a parent of y then x is older than y. OMega TechEd Subscribe Parent( x,y ) older( x,y ) Ɐx Ɐy

Properties of Quantifiers Ɐx Ɐy is the same as Ɐy Ɐx Ǝx Ǝy is the same as Ǝy Ǝx Ǝx Ɐy is not the same as Ɐy Ǝx Ǝx Ɐy loves( x,y )- “There is a person who loves everyone in the world” Ɐy Ǝx loves( x,y )-”Everyone in the world is loved by at least one person” Quantifier duality: Each can be expressed using the other. Ɐx likes(x, IceCream ) ¬ Ǝx ¬likes( x,Icecream ) Ǝx plays(x, Cricket) ¬ Ɐx ¬plays(x, Cricket) OMega TechEd Subscribe

Self Test Every cat drinks milk. Virat loves Anushka Someone is Laughing Nobody loves George All men are mortal OMega TechEd Subscribe Check your answers in comment box.

Thanks For Watching Reference: Artificial Intelligence A Modern Approach Third Edition Peter Norvig and Stuart J. Russell Subscribe Like Share OMega TechEd Next Topic: Forward and Backward Chaining

OMega TechEd About the Channel This channel helps you to prepare for BSc IT and BSc computer science subjects. In this channel we will learn Business Intelligence ,Artificial Intelligence, Digital Electronics, Internet OF Things Python programming , Data-Structure etc. Which is useful for upcoming university exams. Gmail: [email protected] Social Media Handles: omega.teched megha_with Subscribe