SlideShare une entreprise Scribd logo
1  sur  16
CAA Reading Project
By,
Team: dccomics
Chinmay Patel (201405627)
Dharak Kharod (201405583)
Vinayak Bharti (201405522)
Pawan Kumar (201405637)
B16: First Order Logic
Created By,
Team: dccomics
Chinmay Patel (201405627)
Introduction
➢ First-order logic is a collection of formal systems used in mathematics,
philosophy, linguistics, and computer science. It is also known as first-order
predicate calculus or first-order functional calculus.
➢ It is used to represent knowledge. It is much more expressive as a KR language
and more commonly used in AI. It can be useful in creation of computer
programs.
➢ There are more powerful forms of logic, but first-order logic is adequate for most
everyday reasoning.
➢ There are many variations: propositional logic, horn logic, higher order logic,
three-valued logic, probabilistic logics, etc.
Introduction
➢ First-order logic is the standard for the formalization of mathematics into axioms
and is studied in the foundations of mathematics.
➢ 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 contains predicates, quantifiers and variables. Variables range
over individuals(domain of discourse).
Propositional Logic
➢ Propositional logic is declarative. Knowledge and inference are separate. It
assumes that the world contains facts.
➢ It has a simple syntax and simple semantics. It suffices to illustrate the process
of inference.
➢ Propositional logic quickly becomes impractical, even for very small worlds. It
allows partial/disjunctive/negated information unlike most data structures and
databases.
➢ Meaning in propositional logic is context-independent unlike natural language,
where meaning depends on context.
➢ Propositional logic has very limited expressive power whereas first-order logic is
more powerful than propositional logic.
First-order logic (FOL) models the world in terms of
➢ Objects, which are things with individual identities
➢ Properties of objects, that distinguish them from other objects
➢ Relations, that hold among sets of objects
➢ Functions, which are a subset of relations where there is only one “value” for any
given “input”
➢ Objects: students, lectures, companies, cars, wars etc.
➢ Relations: brother-of, bigger-than, outside, part-of, has-color, occurs-after, owns,
visits, precedes etc.
➢ Properties: blue, oval, even, large etc.
➢ Functions: father-of, best-friend, second-half, one-more-than etc.
Syntax of First-order logic
➢ Constant symbols: (i.e., the "individuals" in the world) E.g., Mary, 3, Kingjohn
➢ Function symbols: (mapping individuals to individuals) E.g., father-of(Mary) =
John, color-of(Sky) = Blue
➢ Predicate symbols: (mapping from individuals to truth values) E.g., greater(5,3),
green(Grass), color(Grass, Green)
➢ Variable symbols: E.g., x, y, a, b
➢ Connectives: not (¬), and (∧), or (∨), implies (⇒), if and only if (⇔)
➢ Quantifiers: Universal (∀) and Existential (∃)
Terminology
➢ A term (denoting a real-world individual) is a constant symbol, a variable symbol,
or an n-place function of n terms. x and f(x1
, ..., xn
) are terms, where each xi
is a
term. A term with no variables is a ground term.
➢ A well-formed formula (wff) is a sentence containing no “free” variables. That is,
all variables are “bound” by universal or existential quantifiers. For example,
(∃x)P(x,y) has x bound as a universally quantified variable, but y is free.
➢ A valid sentence or tautology is a sentence that is True under all interpretations,
no matter what the world is actually like or what the semantics is. Example: “It’s
raining or it’s not raining”.
➢ An inconsistent sentence or contradiction is a sentence that is False under all
interpretations. The world is never like what it describes, as in “It’s raining and it’s
not raining.”
Examples
➢ King John and Richard the Lion heart are brothers. (Atomic sentence)
➢ The length of left leg of Richard is greater than the length of left leg of King John.
Complex Sentence
➢ An atomic sentence (which has value true or false) is an n-place predicate of n
terms.
➢ Complex sentences are made from atomic sentences using connectives: ¬S, S1
∧ S2
, S1
∨ S2
, S1
⇒ S2
, S1
⇔ S2
➢ Sibling(KingJohn,Richard) ⇒ Sibling(Richard,KingJohn)
First-order logic illustrated : Graphical Example
Universal Quantification
➢ ∀ means “for all”
➢ Allows us to make statements about all objects that have certain properties.
Universal quantification corresponds to conjunction ("and") in that (∀x)P(x)
means that P holds for all values of x in the domain associated with that variable.
E.g. (∀x) dolphin(x) ⇒ mammal(x)
➢ Universal quantifiers are usually used with "implies" to form "if-then rules."
➢ For example,
➢ (∀x)(King(x) ∧ Person(x)) is not correct. This would imply that all objects x are
Kings and are People.
➢ (∀x)(King(x) ⇒ Person(x)) is the correct way to say this.
Existential Quantification
➢ ∃x means “there exists an x such that….” (at least one object x)
➢ Allows us to make statements about some object without naming it. Existential
quantification corresponds to disjunction ("or") in that (∃x)P(x) means that P
holds for some value of x in the domain associated with that variable. E.g. (∃x)
mammal(x) ∧ lays-eggs(x)
➢ Existential quantifiers are usually used with "and" to specify a list of properties or
facts about an individual. E.g. (∃i)(Integer(i) ∧ GreaterThan(i,0))
➢ Switching the order of same quantifiers does not change the meaning. Switching
the order of universals and existentials does change the meaning. E.g. Everyone
likes someone: (∀x)(∃y)likes(x,y) ; Someone is liked by everyone:
(∃y)(∀x)likes(x,y). Both are different sentences.
Limitations of First-Order Logic
➢ One needs to sacrifice some expressive power in order to reduce the
computational complexity of using a particular logical formalism in a real-world
scenario.
➢ FOL is a powerful language for representing knowledge. But its expressiveness
complicates the derivation of inferences. (It gets easier if we eliminate existential
quantification and assume `negation by failure'.)
➢ Expressing the degree of similarity or degree of relatedness is a major challenge
in first-order logic representation.
➢ In FOL, one cannot construct sentences which make assertions about other
sentences. For example, one cannot say things like ‘there exists a property such
that...' For this task, one needs a higher-order logic.
Second-order and Higher-order Logic
➢ Second-order logic is an extension of first-order logic where, in addition to
quantifiers such as “for every object (in the universe of discourse),” one has
quantifiers such as “for every property of objects (in the universe of discourse).”
➢ This augmentation of the language increases its expressive strength, without
adding new non-logical symbols, such as new predicate symbols. For classical
extensional logic (as in this entry), properties can be identified with sets, so that
second-order logic provides ones with the quantifier “for every set of objects.”
➢ According to one scheme, third-order logic allows super-predicate symbols to
occur free, and fourth-order logic allows them to be quantified. According to the
other scheme, third-order logic already allows quantification of super-predicate
symbols.
➢ A higher order logic allows predicates to accept arguments which are themselves
predicates.Second order logic cannot be reduced to first-order logic.
Thank You

Contenu connexe

Tendances

Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceRamla Sheikh
 
AI simple search strategies
AI simple search strategiesAI simple search strategies
AI simple search strategiesRenas Rekany
 
Prolog Programming : Basics
Prolog Programming : BasicsProlog Programming : Basics
Prolog Programming : BasicsMitul Desai
 
Greedy method1
Greedy method1Greedy method1
Greedy method1Rajendran
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logicAmey Kerkar
 
Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logicparsa rafiq
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and LiftingMegha Sharma
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)chauhankapil
 
Resolution method in AI.pptx
Resolution method in AI.pptxResolution method in AI.pptx
Resolution method in AI.pptxAbdullah251975
 
First order logic in knowledge representation
First order logic in knowledge representationFirst order logic in knowledge representation
First order logic in knowledge representationSabaragamuwa University
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligencelordmwesh
 
Introduction to Programming in LISP
Introduction to Programming in LISPIntroduction to Programming in LISP
Introduction to Programming in LISPKnoldus Inc.
 
Issues in knowledge representation
Issues in knowledge representationIssues in knowledge representation
Issues in knowledge representationSravanthi Emani
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rulesHarini Balamurugan
 

Tendances (20)

Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
AI simple search strategies
AI simple search strategiesAI simple search strategies
AI simple search strategies
 
Prolog Programming : Basics
Prolog Programming : BasicsProlog Programming : Basics
Prolog Programming : Basics
 
Greedy method1
Greedy method1Greedy method1
Greedy method1
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Artificial intelligence and first order logic
Artificial intelligence and first order logicArtificial intelligence and first order logic
Artificial intelligence and first order logic
 
Unification and Lifting
Unification and LiftingUnification and Lifting
Unification and Lifting
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
 
Resolution method in AI.pptx
Resolution method in AI.pptxResolution method in AI.pptx
Resolution method in AI.pptx
 
First order logic in knowledge representation
First order logic in knowledge representationFirst order logic in knowledge representation
First order logic in knowledge representation
 
Game Playing in Artificial Intelligence
Game Playing in Artificial IntelligenceGame Playing in Artificial Intelligence
Game Playing in Artificial Intelligence
 
Quick sort
Quick sortQuick sort
Quick sort
 
3. Syntax Analyzer.pptx
3. Syntax Analyzer.pptx3. Syntax Analyzer.pptx
3. Syntax Analyzer.pptx
 
Introduction to Programming in LISP
Introduction to Programming in LISPIntroduction to Programming in LISP
Introduction to Programming in LISP
 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
 
Fol
FolFol
Fol
 
Issues in knowledge representation
Issues in knowledge representationIssues in knowledge representation
Issues in knowledge representation
 
First order logic
First order logicFirst order logic
First order logic
 
knowledge representation using rules
knowledge representation using rulesknowledge representation using rules
knowledge representation using rules
 
Branch and bound
Branch and boundBranch and bound
Branch and bound
 

Similaire à First order logic

Basic Knowledge Representation in First Order Logic.ppt
Basic Knowledge Representation in First Order Logic.pptBasic Knowledge Representation in First Order Logic.ppt
Basic Knowledge Representation in First Order Logic.pptAshfaqAhmed693399
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdfsmarwaneid
 
Lean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction RevisitedLean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction RevisitedValeria de Paiva
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)SHUBHAM KUMAR GUPTA
 
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
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfHrideshSapkota2
 
Ai lecture 09(unit03)
Ai lecture  09(unit03)Ai lecture  09(unit03)
Ai lecture 09(unit03)vikas dhakane
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAsst.prof M.Gokilavani
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptNobitaNobi489694
 
Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivitymaartenmarx
 
GDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSCSSN
 
AI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfAI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfARMANVERMA7
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAsst.prof M.Gokilavani
 
Lean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicLean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicValeria de Paiva
 

Similaire à First order logic (20)

Module_5_1.pptx
Module_5_1.pptxModule_5_1.pptx
Module_5_1.pptx
 
continuity of module 2.pptx
continuity of module 2.pptxcontinuity of module 2.pptx
continuity of module 2.pptx
 
01bkb04p.ppt
01bkb04p.ppt01bkb04p.ppt
01bkb04p.ppt
 
Lec 3.pdf
Lec 3.pdfLec 3.pdf
Lec 3.pdf
 
Basic Knowledge Representation in First Order Logic.ppt
Basic Knowledge Representation in First Order Logic.pptBasic Knowledge Representation in First Order Logic.ppt
Basic Knowledge Representation in First Order Logic.ppt
 
Chapter 01 - p2.pdf
Chapter 01 - p2.pdfChapter 01 - p2.pdf
Chapter 01 - p2.pdf
 
Logic
LogicLogic
Logic
 
Lean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction RevisitedLean Logic for Lean Times: Entailment and Contradiction Revisited
Lean Logic for Lean Times: Entailment and Contradiction Revisited
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
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
 
Unit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdfUnit-4-Knowledge-representation.pdf
Unit-4-Knowledge-representation.pdf
 
Ai lecture 09(unit03)
Ai lecture  09(unit03)Ai lecture  09(unit03)
Ai lecture 09(unit03)
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptx
 
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.pptdfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
dfgsdfdsgdfgfdgdrgdfgffdhyrthfgnhgjhgdfs.ppt
 
Ilja state2014expressivity
Ilja state2014expressivityIlja state2014expressivity
Ilja state2014expressivity
 
GDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision MakingGDSC SSN - solution Challenge : Fundamentals of Decision Making
GDSC SSN - solution Challenge : Fundamentals of Decision Making
 
AI_Session 21 First order logic.pptx
AI_Session 21 First order logic.pptxAI_Session 21 First order logic.pptx
AI_Session 21 First order logic.pptx
 
AI NOTES ppt 4.pdf
AI NOTES ppt 4.pdfAI NOTES ppt 4.pdf
AI NOTES ppt 4.pdf
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
 
Lean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicLean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural Logic
 

Dernier

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Dernier (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

First order logic

  • 1. CAA Reading Project By, Team: dccomics Chinmay Patel (201405627) Dharak Kharod (201405583) Vinayak Bharti (201405522) Pawan Kumar (201405637)
  • 2. B16: First Order Logic Created By, Team: dccomics Chinmay Patel (201405627)
  • 3. Introduction ➢ First-order logic is a collection of formal systems used in mathematics, philosophy, linguistics, and computer science. It is also known as first-order predicate calculus or first-order functional calculus. ➢ It is used to represent knowledge. It is much more expressive as a KR language and more commonly used in AI. It can be useful in creation of computer programs. ➢ There are more powerful forms of logic, but first-order logic is adequate for most everyday reasoning. ➢ There are many variations: propositional logic, horn logic, higher order logic, three-valued logic, probabilistic logics, etc.
  • 4. Introduction ➢ First-order logic is the standard for the formalization of mathematics into axioms and is studied in the foundations of mathematics. ➢ 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 contains predicates, quantifiers and variables. Variables range over individuals(domain of discourse).
  • 5. Propositional Logic ➢ Propositional logic is declarative. Knowledge and inference are separate. It assumes that the world contains facts. ➢ It has a simple syntax and simple semantics. It suffices to illustrate the process of inference. ➢ Propositional logic quickly becomes impractical, even for very small worlds. It allows partial/disjunctive/negated information unlike most data structures and databases. ➢ Meaning in propositional logic is context-independent unlike natural language, where meaning depends on context. ➢ Propositional logic has very limited expressive power whereas first-order logic is more powerful than propositional logic.
  • 6. First-order logic (FOL) models the world in terms of ➢ Objects, which are things with individual identities ➢ Properties of objects, that distinguish them from other objects ➢ Relations, that hold among sets of objects ➢ Functions, which are a subset of relations where there is only one “value” for any given “input” ➢ Objects: students, lectures, companies, cars, wars etc. ➢ Relations: brother-of, bigger-than, outside, part-of, has-color, occurs-after, owns, visits, precedes etc. ➢ Properties: blue, oval, even, large etc. ➢ Functions: father-of, best-friend, second-half, one-more-than etc.
  • 7. Syntax of First-order logic ➢ Constant symbols: (i.e., the "individuals" in the world) E.g., Mary, 3, Kingjohn ➢ Function symbols: (mapping individuals to individuals) E.g., father-of(Mary) = John, color-of(Sky) = Blue ➢ Predicate symbols: (mapping from individuals to truth values) E.g., greater(5,3), green(Grass), color(Grass, Green) ➢ Variable symbols: E.g., x, y, a, b ➢ Connectives: not (¬), and (∧), or (∨), implies (⇒), if and only if (⇔) ➢ Quantifiers: Universal (∀) and Existential (∃)
  • 8. Terminology ➢ A term (denoting a real-world individual) is a constant symbol, a variable symbol, or an n-place function of n terms. x and f(x1 , ..., xn ) are terms, where each xi is a term. A term with no variables is a ground term. ➢ A well-formed formula (wff) is a sentence containing no “free” variables. That is, all variables are “bound” by universal or existential quantifiers. For example, (∃x)P(x,y) has x bound as a universally quantified variable, but y is free. ➢ A valid sentence or tautology is a sentence that is True under all interpretations, no matter what the world is actually like or what the semantics is. Example: “It’s raining or it’s not raining”. ➢ An inconsistent sentence or contradiction is a sentence that is False under all interpretations. The world is never like what it describes, as in “It’s raining and it’s not raining.”
  • 9. Examples ➢ King John and Richard the Lion heart are brothers. (Atomic sentence) ➢ The length of left leg of Richard is greater than the length of left leg of King John.
  • 10. Complex Sentence ➢ An atomic sentence (which has value true or false) is an n-place predicate of n terms. ➢ Complex sentences are made from atomic sentences using connectives: ¬S, S1 ∧ S2 , S1 ∨ S2 , S1 ⇒ S2 , S1 ⇔ S2 ➢ Sibling(KingJohn,Richard) ⇒ Sibling(Richard,KingJohn)
  • 11. First-order logic illustrated : Graphical Example
  • 12. Universal Quantification ➢ ∀ means “for all” ➢ Allows us to make statements about all objects that have certain properties. Universal quantification corresponds to conjunction ("and") in that (∀x)P(x) means that P holds for all values of x in the domain associated with that variable. E.g. (∀x) dolphin(x) ⇒ mammal(x) ➢ Universal quantifiers are usually used with "implies" to form "if-then rules." ➢ For example, ➢ (∀x)(King(x) ∧ Person(x)) is not correct. This would imply that all objects x are Kings and are People. ➢ (∀x)(King(x) ⇒ Person(x)) is the correct way to say this.
  • 13. Existential Quantification ➢ ∃x means “there exists an x such that….” (at least one object x) ➢ Allows us to make statements about some object without naming it. Existential quantification corresponds to disjunction ("or") in that (∃x)P(x) means that P holds for some value of x in the domain associated with that variable. E.g. (∃x) mammal(x) ∧ lays-eggs(x) ➢ Existential quantifiers are usually used with "and" to specify a list of properties or facts about an individual. E.g. (∃i)(Integer(i) ∧ GreaterThan(i,0)) ➢ Switching the order of same quantifiers does not change the meaning. Switching the order of universals and existentials does change the meaning. E.g. Everyone likes someone: (∀x)(∃y)likes(x,y) ; Someone is liked by everyone: (∃y)(∀x)likes(x,y). Both are different sentences.
  • 14. Limitations of First-Order Logic ➢ One needs to sacrifice some expressive power in order to reduce the computational complexity of using a particular logical formalism in a real-world scenario. ➢ FOL is a powerful language for representing knowledge. But its expressiveness complicates the derivation of inferences. (It gets easier if we eliminate existential quantification and assume `negation by failure'.) ➢ Expressing the degree of similarity or degree of relatedness is a major challenge in first-order logic representation. ➢ In FOL, one cannot construct sentences which make assertions about other sentences. For example, one cannot say things like ‘there exists a property such that...' For this task, one needs a higher-order logic.
  • 15. Second-order and Higher-order Logic ➢ Second-order logic is an extension of first-order logic where, in addition to quantifiers such as “for every object (in the universe of discourse),” one has quantifiers such as “for every property of objects (in the universe of discourse).” ➢ This augmentation of the language increases its expressive strength, without adding new non-logical symbols, such as new predicate symbols. For classical extensional logic (as in this entry), properties can be identified with sets, so that second-order logic provides ones with the quantifier “for every set of objects.” ➢ According to one scheme, third-order logic allows super-predicate symbols to occur free, and fourth-order logic allows them to be quantified. According to the other scheme, third-order logic already allows quantification of super-predicate symbols. ➢ A higher order logic allows predicates to accept arguments which are themselves predicates.Second order logic cannot be reduced to first-order logic.