SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
FIRST ORDER PREDICATE
LOGIC(FOPL)
OBJECTIVE
 INTODUCTION
 DIFFERENCE BETWEEN PROPOSITIONAL LOGIC & FIRST ORDER
LOGIC
 PARTS OF FIRST ORDER LOGIC
 QUANTIFIERS
 What are Rules of Inference for?
 PROS & CONS OF FOPL
 REFERENCES
INTRODUCTION
 First-order logic—also known as first-order predicate
calculus and predicate logic—is a collection of formal systems used
in mathematics, philosophy, linguistics, and computer science. First-order
logic uses quantified variables over non-logical objects and allows the use
of sentences that contain variables, so that rather than propositions such
as Socrates is a man one can have expressions in the form "there exists X
such that X is Socrates and X is a man" and there exists is a quantifier
while X is a variable.
 PL(Propositional Logic)
• It uses prepositions in which
complete sentence is denoted by
symbol.
• PL can’t represent individual
entities. Eg: Meena is short
• It can’t express generalization,
specialization or pattern. Eg:
Triangles have 3 sides.
D I F F E R E N C E B E T W E E N P R O P O S I T I O N A L L O G I C &
F I R S T O R D E R L O G I C
 FOL(First Order Logic)
• FOL was predicated which involve
constants, variables, functions, relations.
• FOL can represent individual
properties. Eg: short(Meena).
• It can express generalization,
specialization or pattern. Eg:
No._of_sides(triangle 3)
PARTS OF FIRST ORDE R L OGIC
 There are two key parts of first-order logic.
The syntax determines which collections of symbols are legal
expressions in first-order logic, while the semantics determine the
meanings behind these expressions.
SYNTAX OF FIRST-ORDER LOGIC:
BASIC ELEMENTS
Note: The equality predicate is always in the vocabulary. It is
written in infix notation
 Atomic sentence
predicate ( term1; : : : ; termn )
or
term1 = term2
 Term
function ( term1; : : : ; termn )
or
constant
or
variable
S Y N TA X O F F I R S T - O R D E R L O G I C : A T O M I C
S E N T E N C E S
 Example
S Y N TA X O F F I R S T - O R D E R L O G I C : C O M P L E X
S E N T E N C E S
 Built from atomic sentences using connectives
SEMANTICS
 A predicate logic expression gets a meaning through a configuration, i.e. the
specification of
1. a non-empty domain,
2. an interpretation that gives
• for every constant an element of that domain,
• for every function symbol with arity n some concrete n-ary function on the
domain, and
• for every predicate symbol with arity n some concrete n-ary relation on the
domain, and
3. an assignment for the free variables in the expression.
SE MANTICS OF TE RMS & FORMUL AS
SEMANTICS: EXAMPLES
QUANTIFIERS
The variable of predicates is quantified by quantifiers. There are two types of
quantifier in predicate logic − Universal Quantifier and Existential Quantifier.
 Universal Quantifier
Universal quantifier states that the statements within its scope are true for every
value of the specific variable. It is denoted by the symbol ∀.
∀xP(x) is read as for every value of x, P(x) is true.
Example − "Man is mortal" can be transformed into the propositional
form ∀xP(x) where P(x) is the predicate which denotes x is mortal and the universe
of discourse is all men.
Existential Quantifier
 Existential quantifier states that the statements within its scope are true for some values of the
specific variable. It is denoted by the symbol ∃.
∃xP(x) is read as for some values of x, P(x) is true.
Example − "Some people are dishonest" can be transformed into the propositional form ∃xP(x) where
P(x) is the predicate which denotes x is dishonest and the universe of discourse is some people.
Nested Quantifiers
If we use a quantifier that appears within the scope of another quantifier, it is called nested quantifier.
Example
∀ a∃bP(x,y) where P(a,b) denotes a+b=0
∀ a∀b∀cP(a,b,c) where P(a,b)P(a,b) denotes a+(b+c)=(a+b)+c
Note − ∀a∃bP(x,y)≠∃a∀bP(x,y)
To deduce new statements from the statements whose truth that we already know, Rules of
Inference are used.
WHAT ARE RUL E S OF INFE RE NCE FOR?
 Mathematical logic is often used for logical proofs. Proofs are valid arguments
that determine the truth values of mathematical statements.
 An argument is a sequence of statements. The last statement is the conclusion
and all its preceding statements are called premises (or hypothesis). The symbol
“∴∴”, (read therefore) is placed before the conclusion. A valid argument is one
where the conclusion follows from the truth values of the premises.
 Rules of Inference provide the templates or guidelines for constructing valid
arguments from the statements that we already have.
TABL E FOR RUL E S OF INFE RE NCE
 Addition: If P is a premise, we can use Addiction rule to
derive P∨Q.
First order predicate logic(fopl)
First order predicate logic(fopl)
First order predicate logic(fopl)
PROS & CONS OF FOPL
PROS:
 Propositional logic is declarative:
pieces of syntax correspond to facts
 Propositional logic allows partial / disjunctive / negated information
(unlike most data structures and databases)
 Propositional logic is compositional:
meaning of B1;1 ^P1;2 is derived from meaning of B1;1 and of P1;2
 Meaning in propositional logic is context-independent
(unlike natural language, where meaning depends on context)
CONS:
 Propositional logic has very limited expressive power
(unlike natural language)
Example:
Cannot say “pits cause breezes in adjacent squares”
except by writing one sentence for each square
APPLICATIONS
 Predicate logic is useful in its own right as a tool for presenting
arguments rigorously & determining their validity.
 The original purpose of predicate logic was to provide a formal
procedure for proving mathematical theorems.
 The main work done by predicate logic is as the framework for the
formulation of theories.
REFERENCES
 https://en.wikipedia.org/wiki/Geographic_information_system
 https://www.youtube.com/watch?v=pcV2lL6yNZ8
 https://www.tutorialspoint.com/discrete_mathematics/operators_
and_postulates.htm
First order predicate logic(fopl)

More Related Content

PPTX
2. forward chaining and backward chaining
PPTX
Semantic net in AI
PPT
Predicate logic_2(Artificial Intelligence)
PPTX
knowledge representation using rules
PPTX
First order logic
PPTX
Turing machine-TOC
PPTX
Truth management system
PPTX
Uninformed search /Blind search in AI
2. forward chaining and backward chaining
Semantic net in AI
Predicate logic_2(Artificial Intelligence)
knowledge representation using rules
First order logic
Turing machine-TOC
Truth management system
Uninformed search /Blind search in AI

What's hot (20)

PPTX
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
PPTX
Framing in data link layer
PPTX
Problem solving agents
PPTX
Lecture 16 memory bounded search
DOCX
Nonrecursive predictive parsing
PPTX
Predicate logic
PDF
Parallel Algorithms
PPTX
Double DES & Triple DES
PPTX
Knowledge representation and Predicate logic
PPTX
Congestion on computer network
PPTX
weak slot and filler structure
PPTX
Segmentation in operating systems
PDF
Artificial Intelligence - Hill climbing.
PPT
Kleene's theorem
PPTX
MD5 ALGORITHM.pptx
PPT
KNOWLEDGE REPRESENTATION ISSUES.ppt
PDF
Design & Analysis of Algorithms Lecture Notes
PPTX
AI Unification.pptx
PPT
recursive transition_networks
PPTX
Color Models
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Framing in data link layer
Problem solving agents
Lecture 16 memory bounded search
Nonrecursive predictive parsing
Predicate logic
Parallel Algorithms
Double DES & Triple DES
Knowledge representation and Predicate logic
Congestion on computer network
weak slot and filler structure
Segmentation in operating systems
Artificial Intelligence - Hill climbing.
Kleene's theorem
MD5 ALGORITHM.pptx
KNOWLEDGE REPRESENTATION ISSUES.ppt
Design & Analysis of Algorithms Lecture Notes
AI Unification.pptx
recursive transition_networks
Color Models
Ad

Similar to First order predicate logic(fopl) (20)

PPTX
lec3 AI.pptx
PDF
Unit-4-Knowledge-representation.pdf
PPTX
First order predicate logic (fopl)
PDF
A course on mathematical logic
PDF
Ai lecture 09(unit03)
PPTX
Lecture 1-3-Logics-In-computer-science.pptx
PDF
unit-3 First half..pdf nice ppt helps in ai intelligence
PDF
J79 1063
PPTX
First Order Logic
PPTX
Ch2 (8).pptx
DOCX
Propositional logic is a good vehicle to introduce basic properties of logic
PPTX
AI-09 Logic in AI
PDF
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
PPTX
continuity of module 2.pptx
PDF
I am kind of confused about quantifiers. I am not sure how to transl.pdf
PPTX
First Order Logic and Qualtifiers in AI.pptx
PDF
AI Lesson 11
PPTX
Abdbfhdkmdmdjfmfkmfmfmfjjfjfjfnfnnfnfnfn
PPTX
Lecture 2: From Semantics To Semantic-Oriented Applications
PDF
BCS515B Module 4 vtu notes : Artificial Intelligence Module 4 .pdf
lec3 AI.pptx
Unit-4-Knowledge-representation.pdf
First order predicate logic (fopl)
A course on mathematical logic
Ai lecture 09(unit03)
Lecture 1-3-Logics-In-computer-science.pptx
unit-3 First half..pdf nice ppt helps in ai intelligence
J79 1063
First Order Logic
Ch2 (8).pptx
Propositional logic is a good vehicle to introduce basic properties of logic
AI-09 Logic in AI
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
continuity of module 2.pptx
I am kind of confused about quantifiers. I am not sure how to transl.pdf
First Order Logic and Qualtifiers in AI.pptx
AI Lesson 11
Abdbfhdkmdmdjfmfkmfmfmfjjfjfjfnfnnfnfnfn
Lecture 2: From Semantics To Semantic-Oriented Applications
BCS515B Module 4 vtu notes : Artificial Intelligence Module 4 .pdf
Ad

Recently uploaded (20)

PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
737-MAX_SRG.pdf student reference guides
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
Well-logging-methods_new................
PPTX
UNIT 4 Total Quality Management .pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
DOCX
573137875-Attendance-Management-System-original
PPT
Project quality management in manufacturing
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPT
Total quality management ppt for engineering students
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
737-MAX_SRG.pdf student reference guides
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Safety Seminar civil to be ensured for safe working.
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Foundation to blockchain - A guide to Blockchain Tech
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
Well-logging-methods_new................
UNIT 4 Total Quality Management .pptx
R24 SURVEYING LAB MANUAL for civil enggi
573137875-Attendance-Management-System-original
Project quality management in manufacturing
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Total quality management ppt for engineering students
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf

First order predicate logic(fopl)

  • 2. OBJECTIVE  INTODUCTION  DIFFERENCE BETWEEN PROPOSITIONAL LOGIC & FIRST ORDER LOGIC  PARTS OF FIRST ORDER LOGIC  QUANTIFIERS  What are Rules of Inference for?  PROS & CONS OF FOPL  REFERENCES
  • 3. INTRODUCTION  First-order logic—also known as first-order predicate calculus and predicate logic—is a collection of formal systems used in mathematics, philosophy, linguistics, and computer science. First-order logic uses quantified variables over non-logical objects and allows the use of sentences that contain variables, so that rather than propositions such as Socrates is a man one can have expressions in the form "there exists X such that X is Socrates and X is a man" and there exists is a quantifier while X is a variable.
  • 4.  PL(Propositional Logic) • It uses prepositions in which complete sentence is denoted by symbol. • PL can’t represent individual entities. Eg: Meena is short • It can’t express generalization, specialization or pattern. Eg: Triangles have 3 sides. D I F F E R E N C E B E T W E E N P R O P O S I T I O N A L L O G I C & F I R S T O R D E R L O G I C  FOL(First Order Logic) • FOL was predicated which involve constants, variables, functions, relations. • FOL can represent individual properties. Eg: short(Meena). • It can express generalization, specialization or pattern. Eg: No._of_sides(triangle 3)
  • 5. PARTS OF FIRST ORDE R L OGIC  There are two key parts of first-order logic. The syntax determines which collections of symbols are legal expressions in first-order logic, while the semantics determine the meanings behind these expressions.
  • 6. SYNTAX OF FIRST-ORDER LOGIC: BASIC ELEMENTS Note: The equality predicate is always in the vocabulary. It is written in infix notation
  • 7.  Atomic sentence predicate ( term1; : : : ; termn ) or term1 = term2  Term function ( term1; : : : ; termn ) or constant or variable
  • 8. S Y N TA X O F F I R S T - O R D E R L O G I C : A T O M I C S E N T E N C E S  Example
  • 9. S Y N TA X O F F I R S T - O R D E R L O G I C : C O M P L E X S E N T E N C E S  Built from atomic sentences using connectives
  • 10. SEMANTICS  A predicate logic expression gets a meaning through a configuration, i.e. the specification of 1. a non-empty domain, 2. an interpretation that gives • for every constant an element of that domain, • for every function symbol with arity n some concrete n-ary function on the domain, and • for every predicate symbol with arity n some concrete n-ary relation on the domain, and 3. an assignment for the free variables in the expression.
  • 11. SE MANTICS OF TE RMS & FORMUL AS
  • 13. QUANTIFIERS The variable of predicates is quantified by quantifiers. There are two types of quantifier in predicate logic − Universal Quantifier and Existential Quantifier.  Universal Quantifier Universal quantifier states that the statements within its scope are true for every value of the specific variable. It is denoted by the symbol ∀. ∀xP(x) is read as for every value of x, P(x) is true. Example − "Man is mortal" can be transformed into the propositional form ∀xP(x) where P(x) is the predicate which denotes x is mortal and the universe of discourse is all men.
  • 14. Existential Quantifier  Existential quantifier states that the statements within its scope are true for some values of the specific variable. It is denoted by the symbol ∃. ∃xP(x) is read as for some values of x, P(x) is true. Example − "Some people are dishonest" can be transformed into the propositional form ∃xP(x) where P(x) is the predicate which denotes x is dishonest and the universe of discourse is some people. Nested Quantifiers If we use a quantifier that appears within the scope of another quantifier, it is called nested quantifier. Example ∀ a∃bP(x,y) where P(a,b) denotes a+b=0 ∀ a∀b∀cP(a,b,c) where P(a,b)P(a,b) denotes a+(b+c)=(a+b)+c Note − ∀a∃bP(x,y)≠∃a∀bP(x,y) To deduce new statements from the statements whose truth that we already know, Rules of Inference are used.
  • 15. WHAT ARE RUL E S OF INFE RE NCE FOR?  Mathematical logic is often used for logical proofs. Proofs are valid arguments that determine the truth values of mathematical statements.  An argument is a sequence of statements. The last statement is the conclusion and all its preceding statements are called premises (or hypothesis). The symbol “∴∴”, (read therefore) is placed before the conclusion. A valid argument is one where the conclusion follows from the truth values of the premises.  Rules of Inference provide the templates or guidelines for constructing valid arguments from the statements that we already have.
  • 16. TABL E FOR RUL E S OF INFE RE NCE
  • 17.  Addition: If P is a premise, we can use Addiction rule to derive P∨Q.
  • 21. PROS & CONS OF FOPL PROS:  Propositional logic is declarative: pieces of syntax correspond to facts  Propositional logic allows partial / disjunctive / negated information (unlike most data structures and databases)  Propositional logic is compositional: meaning of B1;1 ^P1;2 is derived from meaning of B1;1 and of P1;2  Meaning in propositional logic is context-independent (unlike natural language, where meaning depends on context) CONS:  Propositional logic has very limited expressive power (unlike natural language) Example: Cannot say “pits cause breezes in adjacent squares” except by writing one sentence for each square
  • 22. APPLICATIONS  Predicate logic is useful in its own right as a tool for presenting arguments rigorously & determining their validity.  The original purpose of predicate logic was to provide a formal procedure for proving mathematical theorems.  The main work done by predicate logic is as the framework for the formulation of theories.