THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

Similar documents
COMP219: Artificial Intelligence. Lecture 19: Logic for KR

First Order Logic: Syntax and Semantics

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Automated Reasoning Lecture 5: First-Order Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Logic: Propositional Logic Truth Tables

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Propositional Logic: Review

Classical First-Order Logic

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

Logic: Propositional Logic (Part I)

Learning Goals of CS245 Logic and Computation

A Logic Primer. Stavros Tripakis University of California, Berkeley

Propositional Logic: Logical Agents (Part I)

Natural Deduction for Propositional Logic

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Propositional Logic: Part II - Syntax & Proofs 0-0

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Reasoning. Inference. Knowledge Representation 4/6/2018. User

A Logic Primer. Stavros Tripakis University of California, Berkeley. Stavros Tripakis (UC Berkeley) EE 144/244, Fall 2014 A Logic Primer 1 / 35

Advanced Topics in LP and FP

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Classical First-Order Logic

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Knowledge based Agents

Propositional Logic Language

03 Review of First-Order Logic

Reasoning Under Uncertainty: Introduction to Probability

Logical Agents. Administrative. Thursday: Midterm 1, 7p-9p. Next Tuesday: DOW1013: Last name A-M DOW1017: Last name N-Z

Introduction to Logic in Computer Science: Autumn 2006

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

MAI0203 Lecture 7: Inference and Predicate Calculus

Logical Agents. September 14, 2004

AAA615: Formal Methods. Lecture 2 First-Order Logic

Reasoning Under Uncertainty: Introduction to Probability

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/26)

Propositional Reasoning

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

CS 730/730W/830: Intro AI

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig.

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

Logic Background (1A) Young W. Lim 5/14/18

Knowledge Representation and Reasoning

Introduction to Intelligent Systems

Artificial Intelligence

Artificial Intelligence Knowledge Representation I

Introduction to Intelligent Systems

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

First-Order Predicate Logic. Basics

Introduction to Artificial Intelligence. Logical Agents

Logical Agents (I) Instructor: Tsung-Che Chiang

if t 1,...,t k Terms and P k is a k-ary predicate, then P k (t 1,...,t k ) Formulas (atomic formulas)

Propositional Logic: Logical Agents (Part I)

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation

02 Propositional Logic

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Logic Background (1A) Young W. Lim 12/14/15

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

Logical Agents. Outline

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Propositional logic (revision) & semantic entailment. p. 1/34

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

First-Order Logic (FOL)

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Modal Logics. Most applications of modal logic require a refined version of basic modal logic.

Kecerdasan Buatan M. Ali Fauzi

22c:145 Artificial Intelligence

Overview of Logic and Computation: Notes

Propositional Logic Arguments (5A) Young W. Lim 10/11/16

KB Agents and Propositional Logic

cis32-ai lecture # 18 mon-3-apr-2006

Logical Structures in Natural Language: First order Logic (FoL)

A Little Deductive Logic

Part 1: Propositional Logic

Artificial Intelligence. Propositional logic

Artificial Intelligence Knowledge Representation I

Introduction to Metalogic

Classical Propositional Logic

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Agents that reason logically

Inference in Propositional Logic

Logical Agent & Propositional Logic

GS03/4023: Validation and Verification Predicate Logic Jonathan P. Bowen Anthony Hall

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Artificial Intelligence Chapter 7: Logical Agents

First Order Logic (FOL) 1 znj/dm2017

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

Transcription:

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

FOL: A language to formulate knowledge Logic is the study of entailment relationslanguages, truth conditions and rules of inference. FOL or Predicate Calculus is very popular logical language invented by Frege at the turn of twentieth century for the formalization of mathematical inference. It has been used by the AI community for KR purposes. The tools of FOL ideally suits for a knowledgelevel analysis of a KBS.

What does it mean to have a language? 3 Aspects applying to declarative languages: Syntax: well formedness Semantics: meaning Pragmatics: usage

The Syntax of FOL Logical Symbols(have a fixed meaning or use ~ reserved words in a PL) Punctuation: (, ),.. Connectives:, Λ,,,, = Variables: x,y,z, sometimes with subscripts. Nonlogical Symbols(application dependent meaning or use, have arity ~ identifiers in a PL) Function symbols: a,b,c,f,g,h,mother, Predicate symbols: P,Q,R,OlderThan

Syntax(cont d) Constants: function of arity 0 (a,b,c,..) Propositions: predicates of arity 0 Syntactic Expressions: Terms: used to refer something in the world. Every variable is a term. f(t 1,,t n ) is a term (t 1,,t n are terms) Formulas: used to express a proposition. P(t 1,,t n ) is a formula. t 1 = t 2 is a formula. If α and β are formulas, and x is a variable, then α, (α β), (α β), x.α, x.α are formulas. First two types of formulas are called atoms.

Syntax (cont d) Propositional Logic A subset of FOL No terms, no quantifiers, but only propositional symbols. Ex: (P (Q R)) Abbreviations: (α β) for ( α β) (α β) for (( α β) ( β α)).

Scope of Quantifiers(syn. cont d) A variable occurrence is bound in a formula if it lies within the scope of a quantifier, and free otherwise. i.e. x is bound if it appears in a subformula x.α, x.α of the formula. Substitition: If x is a variable, t is a term, and α is a formula, α x t stands for the formula that results from replacing all free occurrences of x in α by t. α[ c ] means α with each free x i replaced by the corresponding c i.

Semantics Explains what the expressions of a language mean. Nonlogical symbols are used in an application-dependent way. All we need to say regarding the meaning of the nonlogical symbols, and hence the meaning of all sentences.

Semantics(cont d) There are objects in the world. For any predicate P of arity 1, some of the objects will satisfy P and some will not.an interpretation of P settles the question, deciding for each object whether it has or does not have the property in question. An interpretation of a predicate of arity n decides on which n-tuples of objects stand in the corresponding n-ary relation. No other aspects of the world matter.

Interpretations (sem. cont d) An interpretation I in FOL is a pair < D,I >; D: domain, any nonempty set of objects, I: interpretation mapping, from the nonlogical symbols to functions and relations over D. I[P] is an n-ary relation over D. I[f] is an n-ary function over D. A variable assignment over D is a mapping from the variables of FOL to the elements of D.

Denotation (sem. cont d) Given an interpretation, we can specify which elements of D are denoted by any variable-free term of FOL. t : denotation of term t, given an interpretation I and a variable assignment µ. Example: bestfriend(john)

Satisfaction and Models (sem. cont d) Given an interpretation and the denotation relation, we can now specify which sentences of FOL are true and which are false. I,µ α means α is satisfied in I. When α is a sentence(having no free variables), satisfaction does not depend on µ then we write I α (i.e. α is true in µ). In propositional logic, we write I [α] = 1 if I α. I S, where S is a set of sentences, means all of the sentences in S are true in I. In this case, I is a logical model of S.

There exists a set of rules to evaluate the truth or falsity of sentences in the intended interpretation. For example: I,µ α iff it is not the case that I,µ α.

The Pragmatics How are we supposed to use this language to represent knowledge?

Logical Consequence α is a logical consequence of S (or S logically entails α), written as S α, iff for every interpretation I, if I S then I α. Every model of S satisfies α. There is no interpretation I where I S { α}, i.e. S { α} is unsatisfiable.

KBS and Logical Entailment Reasoning based on logical consequence only allows safe, logically guaranteed conclusions to be drawn. By starting with a rich collection of sentences as given premises, including not only facts about particulars of the intended application but also those expressing connections among the nonlogical symbols involved (ex: x.dog(x) Mammal (x)), the set of entailed conclusions becomes a much richer set, closer to the set of sentences true in the intended interpretation. Calculating these entailments thus becomes more like the form of reasoning we would expect of someone who understood the meaning of the terms involved.

Explicit and Implicit Belief KB: Explicitly given beliefs of the system. Entailments of KB: Implicitly given beliefs. It is often nontrivial to move from explicit to implicit beliefs. For FOL, the problem of determining whether one sentence is a logical consequence of others is in general unsolvable: No automated procedure can decide validity, and so no automated procedure can tell us in all cases whether or not a sentence is entailed.

Knowledge-Based Systems For KR, we start with a large KB. This KB could be the result of what the system is told, or perhaps what the system found out for itself through perception or learning. Our goal is to influence the behaviour of the overall system based on what is implicit in this KB, or as close as possible. This requires reasoning.

Deductive Inference Deductive Inference is the process of calculating the entailments of a KB, that is, given the KB, and for any sentence α, determining whether or not KB α. A reasoning process is logically sound if whenever it produces α, then α is guaranteed to be a logical consequence. A reasoning process is logically complete if it is guaranteed to produce α whenever α is entailed. No automated reasoning process for FOL can be both sound and complete in general.