SlideShare a Scribd company logo
1 of 24
Knowledge
Representation
And First Order
Logic
Saeeda Parsa
sparsa313@gmail.com
(Sheikh Zayed Islamic Centre,
University of Karachi)
Knowledge Representation:
Knowledge representation is the name we
give to how we encode knowledge, beliefs,
actions, feelings, goals, desires, preferences,
and all other mental states in artificial
systems.
Knowledge is the information about a domain
that can be used to solve problems in that
domain. To solve many problems requires
much knowledge, and this knowledge must be
represented in the computer. As part of
designing a program to solve problems, we
must define how the knowledge will be
represented.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
What to Represent:
 Object: All the facts about objects in our
world domain. E.g., Guitars contains strings,
trumpets are brass instruments.
 Events: Events are the actions which occur
in our world.
 Performance: It describe behavior which
involves knowledge about how to do things.
 Meta-knowledge: It is knowledge about what
we know.
 Facts: Facts are the truths about the real
world and what we represent.
 Knowledge-Base: The central component of
the knowledge-based agents is the
knowledge base. It is represented as KB. The
Knowledgebase is a group of the Sentences
(Here, sentences are used as a technical
term and not identical with the English
language).
First consider what kind of knowledge which
needs to be represented in AI systems:
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Types of Knowledge in Artificial Intelligence:
1. Meta Knowledge – It’s a knowledge about knowledge and how to gain them
2. Heuristic – Knowledge – Representing knowledge of some expert in a field or
subject.
3. Procedural Knowledge – Gives information/ knowledge about how to achieve
something.
4. Declarative Knowledge – Its about statements that describe a particular object and
its attributes , including some behavior in relation with it.
5. Structural Knowledge – Describes what relationship exists between concepts/
objects.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Types of Knowledge :
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
General Representations:
 Logical Representations
1. Multi-valued logics
 More than two truth values
 e.g., true, false & unknown
 Fuzzy logic uses probabilities, truth value in
[0,1]
2. Modal logics
 Modal operators define mode for propositions
 Epistemic logics (belief)
 e.g. p (necessarily p), p (possibly p), …
 Temporal logics (time)
 e.g. p (always p), p (eventually p), …
 Non-Logical Representations
1. Production Rules
2. Semantic Networks (Nets)
3. Description Logics (Frames)
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
First-Order Logic
 Definition:
 First-order logic is symbolized reasoning in which each sentence, or statement is
broken down into a subject and a predicate. The predicate modifies or defines the
properties of the subject. In first order logic a predicate can only refer to a single
subject. First order logic is also known as first order predicate calculus or first-order
functional calculus.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Syntax
 There are two key parts of first-order logic.
 Syntax: determines which collections of symbols are legal
expressions in first-order logic, while the semantics determine
the meanings behind these expressions.
 Alphabet:
 Unlike natural languages, such as English, the language of first-
order logic is completely formal so that it can be mechanically
determined whether a given expression is legal. There are two
key types of legal expressions: which intuitively represent
objects and formulas which intuitively express predicates that
can be true or false.
 The terms and formulas of first-order logic are strings
of symbols where all the symbols together form the alphabet of
the language. As with all formal languages the nature of the
symbols themselves is outside the scope of formal logic they are
often regarded simply as letters and punctuation symbols.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
What Is Formal
Language?
Formal Language:
Formal specifications use mathematical
notation to describe in a precise way the
properties which an information system must
have, without unduly constraining the way in
which these properties are achieved.
A formal specification can serve as a single,
reliable reference point for those who
investigate the cu
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Types of Formal Languages:
1: Z-Language (Z-
Notation),
Z is a formal
specification language
for computer systems
which is based on set
theory and predicate
logic.
2: Prolog (Programming
Language)
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Logical Symbols:
 There are several logical symbols in the alphabet, which vary by author but usually include:
 The quantifier symbols ∀ and ∃
 The logical connectives: ∧ for conjunction, ∨ for disjunction, → for implication, ↔
for biconditional, ¬ for negation. Other logical connective symbols are included. Some authors use
Cpq, instead of →, and Epq, instead of ↔, especially in contexts where → is used for other
purposes. Moreover, the horseshoe ⊃ may replace →; the triple-bar ≡ may replace ↔.
 Parentheses, brackets, and other punctuation symbols.
 An infinite set of variables. Likely alphabet x, y, z, ... . Subscripts are often used to distinguish
variables: x0, x1, x2, ... .
 An equality symbol (sometimes, identity symbol) =; see the section on equality below.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Non-logical symbols
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Formulas:
1. Predicate symbols. If P is an n-ary predicate symbol and
t1, ..., tn are terms then P(T1….Tn) is a formula.
2. Equality. If the equality symbol is considered part of
logic, and tl and t2 are terms, then t1 = t2 is a
formula.
3. Negation. If cp is a formula, then —Q is a formula.
4. Binary connectives. If cp and are formulas, then (Q
* W) is a formula. Similar rules apply to other binary
logical connectives.
5. Quantifiers. If p is a formula and x is a variable,
then (for all x, p holds) and (there exists x such that
p) are formulas.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Quantifiers
A language element which
generates a quantification (such
as "every") is called a quantifier.
First-order logic contains two
standard quantifiers, called
universal and existential.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Types Of Quantifiers:
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Predicate
 in mathematical logic a predicate is commonly understood to be
a Boolean-valued function P: X→ {true, false}, called the predicate
on X. However, predicates have many different uses and
interpretations in mathematics and logic, and their precise
definition, meaning and use will vary from theory to theory. So, for
example, when a theory defines the concept of a relation then a
predicate is simply the characteristic function(otherwise known as
the indicator function) of a relation. However, not all theories have
relations, or are founded on set theory and so one must be careful
with the proper definition and semantic interpretation of a
predicate.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Semantics:
 An interpretation of a first-order language assigns a denotation to each non-
logical symbol in that language. It also determines a domain of discourse that
specifies the range of the quantifiers. The result is that each term is assigned
an object that it represents, each predicate is assigned a property of objects,
and each sentence is assigned a truth value. In this way, an interpretation
provides semantic meaning to the terms, the predicates, and formulas of the
language. The study of the interpretations of formal languages is
called formal semantics. What follows is a description of the standard
or Tarskian semantics for first-order logic. (It is also possible to define game
semantics for first-order logic but aside from requiring the axiom of choice,
game semantics agree with Tarskian semantics for first-order logic, so game
semantics will not be elaborated herein.)
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Uses And History:
 First-order logic can be useful in the creation of computer programs. It
is also of interest to researchers in artificial intelligence ( AI ). There
are more powerful forms of logic, but first-order logic is adequate for
most everyday reasoning. The Incompleteness Theorem , proven in
1930, demonstrates that first-order logic is in general undecidable.
That means there exist statements in this logic form that, under
certain conditions, cannot be proven either true or false.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Logic And Mathematics
 In mathematics, it is used in an informal way quite extensively. The various
connectives and quantifiers find their way into a great deal of mathematical
discourse, both formal and informal, as in a classroom setting. Here you
will often find elements of FOL interspersed with English or the
mathematician's native language. If you've ever taken calculus you have
probably seen such formulas as:
 Ɐϵ > 0 ⱻγ > 0 . . .
 Here, the unusual, rotated letters are taken directly from the language FOL.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Logic And Philosophy
 In philosophy, FOL and enrichments of it are used in two different ways. As in
mathematics, the notation of FOL is used when absolute clarity, rigor, and
lack of ambiguity are essential. But it is also used as a case study of making
informal notions (like grammaticality, meaning, truth, and proof) precise and
rigorous. The applications in linguistics stem from this use, since linguistics is
concerned, in large part, with understanding some of these same informal
notions.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Logic And Artificial Intelligence
 In artificial intelligence, FOL is also used in two ways.
Some researchers take advantage of the simple structure
of FOL sentences to use it as a way to encode knowledge
to be stored and used by a computer. Thinking is
modeled by manipulations involving sentences of FOL.
The other use is as a precise specification language for
stating axioms and proving results about artificial agents.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Logic And Computer Science
 In computer science, FOL has had an even more profound influence. The very
idea of an artificial language that is precise yet rich enough to program
computers was inspired by this language. In addition, all extant programming
languages borrow some notions from one or another dialect of FOL.
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
Application
s of Logic
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
T h a n k Y o u
sparsa313@gmail.com (Sheikh Zayed Islamic Centre)

More Related Content

What's hot

Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logicgiki67
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)chauhankapil
 
5. phases of nlp
5. phases of nlp5. phases of nlp
5. phases of nlpmonircse2
 
Unit4: Knowledge Representation
Unit4: Knowledge RepresentationUnit4: Knowledge Representation
Unit4: Knowledge RepresentationTekendra Nath Yogi
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AIVishal Singh
 
First Order Logic resolution
First Order Logic resolutionFirst Order Logic resolution
First Order Logic resolutionAmar Jukuntla
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)surbhi jha
 
Theory of first order logic
Theory of first order logicTheory of first order logic
Theory of first order logicDevaddd
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rulesHarini Balamurugan
 
Fuzzy Logic Ppt
Fuzzy Logic PptFuzzy Logic Ppt
Fuzzy Logic Pptrafi
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 ReliabilityAli Usman
 
Design & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture NotesDesign & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture NotesFellowBuddy.com
 

What's hot (20)

Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
First order logic
First order logicFirst order logic
First order logic
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
 
5. phases of nlp
5. phases of nlp5. phases of nlp
5. phases of nlp
 
Kr using rules
Kr using rulesKr using rules
Kr using rules
 
Prolog basics
Prolog basicsProlog basics
Prolog basics
 
Unit4: Knowledge Representation
Unit4: Knowledge RepresentationUnit4: Knowledge Representation
Unit4: Knowledge Representation
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
 
First Order Logic resolution
First Order Logic resolutionFirst Order Logic resolution
First Order Logic resolution
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
First order predicate logic(fopl)
First order predicate logic(fopl)First order predicate logic(fopl)
First order predicate logic(fopl)
 
Physical symbol system
Physical symbol systemPhysical symbol system
Physical symbol system
 
Theory of first order logic
Theory of first order logicTheory of first order logic
Theory of first order logic
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rules
 
Fuzzy Logic Ppt
Fuzzy Logic PptFuzzy Logic Ppt
Fuzzy Logic Ppt
 
NLP
NLPNLP
NLP
 
Database , 12 Reliability
Database , 12 ReliabilityDatabase , 12 Reliability
Database , 12 Reliability
 
Design & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture NotesDesign & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture Notes
 
Predicate logic
 Predicate logic Predicate logic
Predicate logic
 

Similar to Artificial intelligence and first order logic

Lecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptxLecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptxPriyalMayurManvar
 
Ai lecture 07(unit03)
Ai lecture  07(unit03)Ai lecture  07(unit03)
Ai lecture 07(unit03)vikas dhakane
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxkitsenthilkumarcse
 
Ch2 (8).pptx
Ch2 (8).pptxCh2 (8).pptx
Ch2 (8).pptxDeyaHani
 
Ai lecture 09(unit03)
Ai lecture  09(unit03)Ai lecture  09(unit03)
Ai lecture 09(unit03)vikas dhakane
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxRuchitaMaaran
 
A course on mathematical logic
A course on mathematical logicA course on mathematical logic
A course on mathematical logicSpringer
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfHrideshSapkota2
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingMariana Soffer
 
Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivitymaartenmarx
 
LOGIC-PRESENTATION.pptx
LOGIC-PRESENTATION.pptxLOGIC-PRESENTATION.pptx
LOGIC-PRESENTATION.pptxAlfredoAmango
 
I am kind of confused about quantifiers. I am not sure how to transl.pdf
I am kind of confused about quantifiers. I am not sure how to transl.pdfI am kind of confused about quantifiers. I am not sure how to transl.pdf
I am kind of confused about quantifiers. I am not sure how to transl.pdfAMITPANCHAL154
 
Possible Word Representation
Possible Word RepresentationPossible Word Representation
Possible Word Representationchauhankapil
 
Semiotics and conceptual modeling gv 2015
Semiotics and conceptual modeling   gv 2015Semiotics and conceptual modeling   gv 2015
Semiotics and conceptual modeling gv 2015Guido Vetere
 

Similar to Artificial intelligence and first order logic (20)

Lecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptxLecture 1-3-Logics-In-computer-science.pptx
Lecture 1-3-Logics-In-computer-science.pptx
 
Ai lecture 07(unit03)
Ai lecture  07(unit03)Ai lecture  07(unit03)
Ai lecture 07(unit03)
 
Foundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptxFoundations of Knowledge Representation in Artificial Intelligence.pptx
Foundations of Knowledge Representation in Artificial Intelligence.pptx
 
AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
 
AI: Logic in AI
AI: Logic in AIAI: Logic in AI
AI: Logic in AI
 
Ch2 (8).pptx
Ch2 (8).pptxCh2 (8).pptx
Ch2 (8).pptx
 
Ai lecture 09(unit03)
Ai lecture  09(unit03)Ai lecture  09(unit03)
Ai lecture 09(unit03)
 
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptxARTIFICIAL INTELLIGENCE---UNIT 4.pptx
ARTIFICIAL INTELLIGENCE---UNIT 4.pptx
 
AI Lesson 11
AI Lesson 11AI Lesson 11
AI Lesson 11
 
A course on mathematical logic
A course on mathematical logicA course on mathematical logic
A course on mathematical logic
 
Lec 3.pdf
Lec 3.pdfLec 3.pdf
Lec 3.pdf
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdf
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivity
 
LOGIC-PRESENTATION.pptx
LOGIC-PRESENTATION.pptxLOGIC-PRESENTATION.pptx
LOGIC-PRESENTATION.pptx
 
AI-09 Logic in AI
AI-09 Logic in AIAI-09 Logic in AI
AI-09 Logic in AI
 
I am kind of confused about quantifiers. I am not sure how to transl.pdf
I am kind of confused about quantifiers. I am not sure how to transl.pdfI am kind of confused about quantifiers. I am not sure how to transl.pdf
I am kind of confused about quantifiers. I am not sure how to transl.pdf
 
continuity of module 2.pptx
continuity of module 2.pptxcontinuity of module 2.pptx
continuity of module 2.pptx
 
Possible Word Representation
Possible Word RepresentationPossible Word Representation
Possible Word Representation
 
Semiotics and conceptual modeling gv 2015
Semiotics and conceptual modeling   gv 2015Semiotics and conceptual modeling   gv 2015
Semiotics and conceptual modeling gv 2015
 

Recently uploaded

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 

Recently uploaded (20)

Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 

Artificial intelligence and first order logic

  • 1. Knowledge Representation And First Order Logic Saeeda Parsa sparsa313@gmail.com (Sheikh Zayed Islamic Centre, University of Karachi)
  • 2. Knowledge Representation: Knowledge representation is the name we give to how we encode knowledge, beliefs, actions, feelings, goals, desires, preferences, and all other mental states in artificial systems. Knowledge is the information about a domain that can be used to solve problems in that domain. To solve many problems requires much knowledge, and this knowledge must be represented in the computer. As part of designing a program to solve problems, we must define how the knowledge will be represented. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 3. What to Represent:  Object: All the facts about objects in our world domain. E.g., Guitars contains strings, trumpets are brass instruments.  Events: Events are the actions which occur in our world.  Performance: It describe behavior which involves knowledge about how to do things.  Meta-knowledge: It is knowledge about what we know.  Facts: Facts are the truths about the real world and what we represent.  Knowledge-Base: The central component of the knowledge-based agents is the knowledge base. It is represented as KB. The Knowledgebase is a group of the Sentences (Here, sentences are used as a technical term and not identical with the English language). First consider what kind of knowledge which needs to be represented in AI systems: sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 4. Types of Knowledge in Artificial Intelligence: 1. Meta Knowledge – It’s a knowledge about knowledge and how to gain them 2. Heuristic – Knowledge – Representing knowledge of some expert in a field or subject. 3. Procedural Knowledge – Gives information/ knowledge about how to achieve something. 4. Declarative Knowledge – Its about statements that describe a particular object and its attributes , including some behavior in relation with it. 5. Structural Knowledge – Describes what relationship exists between concepts/ objects. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 5. Types of Knowledge : sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 6. General Representations:  Logical Representations 1. Multi-valued logics  More than two truth values  e.g., true, false & unknown  Fuzzy logic uses probabilities, truth value in [0,1] 2. Modal logics  Modal operators define mode for propositions  Epistemic logics (belief)  e.g. p (necessarily p), p (possibly p), …  Temporal logics (time)  e.g. p (always p), p (eventually p), …  Non-Logical Representations 1. Production Rules 2. Semantic Networks (Nets) 3. Description Logics (Frames) sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 7. First-Order Logic  Definition:  First-order logic is symbolized reasoning in which each sentence, or statement is broken down into a subject and a predicate. The predicate modifies or defines the properties of the subject. In first order logic a predicate can only refer to a single subject. First order logic is also known as first order predicate calculus or first-order functional calculus. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 8. Syntax  There are two key parts of first-order logic.  Syntax: determines which collections of symbols are legal expressions in first-order logic, while the semantics determine the meanings behind these expressions.  Alphabet:  Unlike natural languages, such as English, the language of first- order logic is completely formal so that it can be mechanically determined whether a given expression is legal. There are two key types of legal expressions: which intuitively represent objects and formulas which intuitively express predicates that can be true or false.  The terms and formulas of first-order logic are strings of symbols where all the symbols together form the alphabet of the language. As with all formal languages the nature of the symbols themselves is outside the scope of formal logic they are often regarded simply as letters and punctuation symbols. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 9. What Is Formal Language? Formal Language: Formal specifications use mathematical notation to describe in a precise way the properties which an information system must have, without unduly constraining the way in which these properties are achieved. A formal specification can serve as a single, reliable reference point for those who investigate the cu sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 10. Types of Formal Languages: 1: Z-Language (Z- Notation), Z is a formal specification language for computer systems which is based on set theory and predicate logic. 2: Prolog (Programming Language) sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 11. Logical Symbols:  There are several logical symbols in the alphabet, which vary by author but usually include:  The quantifier symbols ∀ and ∃  The logical connectives: ∧ for conjunction, ∨ for disjunction, → for implication, ↔ for biconditional, ¬ for negation. Other logical connective symbols are included. Some authors use Cpq, instead of →, and Epq, instead of ↔, especially in contexts where → is used for other purposes. Moreover, the horseshoe ⊃ may replace →; the triple-bar ≡ may replace ↔.  Parentheses, brackets, and other punctuation symbols.  An infinite set of variables. Likely alphabet x, y, z, ... . Subscripts are often used to distinguish variables: x0, x1, x2, ... .  An equality symbol (sometimes, identity symbol) =; see the section on equality below. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 13. Formulas: 1. Predicate symbols. If P is an n-ary predicate symbol and t1, ..., tn are terms then P(T1….Tn) is a formula. 2. Equality. If the equality symbol is considered part of logic, and tl and t2 are terms, then t1 = t2 is a formula. 3. Negation. If cp is a formula, then —Q is a formula. 4. Binary connectives. If cp and are formulas, then (Q * W) is a formula. Similar rules apply to other binary logical connectives. 5. Quantifiers. If p is a formula and x is a variable, then (for all x, p holds) and (there exists x such that p) are formulas. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 14. Quantifiers A language element which generates a quantification (such as "every") is called a quantifier. First-order logic contains two standard quantifiers, called universal and existential. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 15. Types Of Quantifiers: sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 16. Predicate  in mathematical logic a predicate is commonly understood to be a Boolean-valued function P: X→ {true, false}, called the predicate on X. However, predicates have many different uses and interpretations in mathematics and logic, and their precise definition, meaning and use will vary from theory to theory. So, for example, when a theory defines the concept of a relation then a predicate is simply the characteristic function(otherwise known as the indicator function) of a relation. However, not all theories have relations, or are founded on set theory and so one must be careful with the proper definition and semantic interpretation of a predicate. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 17. Semantics:  An interpretation of a first-order language assigns a denotation to each non- logical symbol in that language. It also determines a domain of discourse that specifies the range of the quantifiers. The result is that each term is assigned an object that it represents, each predicate is assigned a property of objects, and each sentence is assigned a truth value. In this way, an interpretation provides semantic meaning to the terms, the predicates, and formulas of the language. The study of the interpretations of formal languages is called formal semantics. What follows is a description of the standard or Tarskian semantics for first-order logic. (It is also possible to define game semantics for first-order logic but aside from requiring the axiom of choice, game semantics agree with Tarskian semantics for first-order logic, so game semantics will not be elaborated herein.) sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 18. Uses And History:  First-order logic can be useful in the creation of computer programs. It is also of interest to researchers in artificial intelligence ( AI ). There are more powerful forms of logic, but first-order logic is adequate for most everyday reasoning. The Incompleteness Theorem , proven in 1930, demonstrates that first-order logic is in general undecidable. That means there exist statements in this logic form that, under certain conditions, cannot be proven either true or false. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 19. Logic And Mathematics  In mathematics, it is used in an informal way quite extensively. The various connectives and quantifiers find their way into a great deal of mathematical discourse, both formal and informal, as in a classroom setting. Here you will often find elements of FOL interspersed with English or the mathematician's native language. If you've ever taken calculus you have probably seen such formulas as:  Ɐϵ > 0 ⱻγ > 0 . . .  Here, the unusual, rotated letters are taken directly from the language FOL. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 20. Logic And Philosophy  In philosophy, FOL and enrichments of it are used in two different ways. As in mathematics, the notation of FOL is used when absolute clarity, rigor, and lack of ambiguity are essential. But it is also used as a case study of making informal notions (like grammaticality, meaning, truth, and proof) precise and rigorous. The applications in linguistics stem from this use, since linguistics is concerned, in large part, with understanding some of these same informal notions. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 21. Logic And Artificial Intelligence  In artificial intelligence, FOL is also used in two ways. Some researchers take advantage of the simple structure of FOL sentences to use it as a way to encode knowledge to be stored and used by a computer. Thinking is modeled by manipulations involving sentences of FOL. The other use is as a precise specification language for stating axioms and proving results about artificial agents. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 22. Logic And Computer Science  In computer science, FOL has had an even more profound influence. The very idea of an artificial language that is precise yet rich enough to program computers was inspired by this language. In addition, all extant programming languages borrow some notions from one or another dialect of FOL. sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 23. Application s of Logic sparsa313@gmail.com (Sheikh Zayed Islamic Centre)
  • 24. T h a n k Y o u sparsa313@gmail.com (Sheikh Zayed Islamic Centre)