ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
The Logic of Quantified Statements
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
Knowledge Representation Methods
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
9/28/98 Prof. Richard Fikes First-Order Logic Knowledge Interchange Format (KIF) Computer Science Department Stanford University CS222 Fall 1998.
Predicate Calculus.
Discrete Structures Chapter 3: The Logic of Quantified Statements
Predicates and Quantifiers
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
Chapter 1: The Foundations: Logic and Proofs
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Knowledge Interchange Format Michael Gruninger National Institute of Standards and Technology
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Discussion #141/20 Discussion #14 Predicate Calculus.
1st-order Predicate Logic (FOL)
Propositional Calculus Composed of symbols –P – some true statement P might represent something like “It is Monday” or “the car is red” And sentences –a.
First Order Predicate Calculus Chapter 7. Propositional logic v. FOPC §Propositional calculus deals only with facts l P : I-love-all-dogs l facts are.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
© Jalal Kawash 2010Peeking into Computer Science George Boole English Mathematician His The Mathematical Analysis of Logic, 1848 is the first.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
Semantics of Predicate Calculus For the propositional calculus, an interpretation was simply an assignment of truth values to the proposition letters of.
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
PREDICATE CALCULS In Propositional Calculus, each atomic symbol denotes a proposition. But there is no way to access the components of an individual assertion.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Chapter 3 Propositional calculus Predicate calculus Artificial Intelligence Dr.Hassan Al-Tarawneh.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
Knowledge Representation and Reasoning 2
3. The Logic of Quantified Statements Summary
Predicates & Quantifiers
The function of knowledge representation scheme is
2.1 Propositions and Logical Operations
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
CS 1502 Formal Methods in Computer Science
CHAPTER 1: LOGICS AND PROOF
Artificial Intelligence Chapter 15. The Predicate Calculus
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Discrete Mathematics Lecture 3: Predicate and Quantifier
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Predicates and Quantifiers
1.3 Propositional Equivalences
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information Technology Institute of Applied Computer Systems Department of Systems Theory and Design SEMANTICS OF PREDICATE CALCULUS

Semantics of Predicate Calculus Predicate calculus semantics provide a formal basis, for determining the truth value of well-formed expressions. The truth of expressions depends on the mapping of constants, variables, predicates, and functions into objects and relations in the domain of discourse.

Semantics of Predicate Calculus The truth of relationships in the domain determined the truth of the corresponding expressions. For example, owns(john, ford) friends(john, bill) If it is indeed that John owns Ford (car) and he and Bill are friends both expressions would each have the truth value (assignment) T.

Semantics of Predicate Calculus To use the predicate calculus as a representation for problem solving, we describe objects and relations in the domain of interpretation with a set of well-formed expressions. The terms and predicates of these expressions denote objects and relations in the domain.

Semantics of Predicate Calculus This knowledge base of predicate calculus expressions, each having truth value T, describes the “state of the world”.

Semantics of Predicate Calculus Interpretation Let the domain D be a nonempty set. An interpretation over D is an assignment of the entities of D to each of the constant, variable, predicate and function symbols of a predicate calculus expression.

Semantics of Predicate Calculus Interpretation (continued) 1.Each constant is assigned an element of D. 2.Each variable is assigned to a nonempty subset of D. These are the allowable substitutions for that variable.

Semantics of Predicate Calculus Interpretation (continued) 3.Each function f of arity m is defined on m arguments of D and defines a mapping from D m into D. 4.Each predicate p of arity n is defined on n arguments from D and defines a mapping from D n into {T, F}.

Semantics of Predicate Calculus Truth value of expressions Given an interpretation, the meaning of an expression is a truth value assignment over the interpretation. Let E be an expression and I an interpretation for E over a nonempty domain D. The truth value for E is determined by:

Semantics of Predicate Calculus Truth value of expressions (continued) 1. The value of constant is the element of D it is assigned to by I. 2. The value of a variable is the set of elements of D it is assigned to by I. 3. The value of a function expression is that element of D obtained by evaluating the function for the parameter values assigned by the interpretation.

Semantics of Predicate Calculus Truth value of expressions (continued) 4. The value of truth symbol “true” is T and “false” is F. 5. The value of an atomic sentence is either T or F, as determined by the interpretation I. 6. The value of the negation of a sentence is T if the value of the sentence is F and is F if the value of the sentence is T.

Semantics of Predicate Calculus Truth value of expressions (continued) 7. – 10. The truth value of expressions using , , , and  is determined from the values of their operands as defined by truth table (the same as in propositional calculus).

Semantics of Predicate Calculus Truth value of expressions (continued) For a variable X and a sentence S containing X: 11. The values of  XS is T for all assignments to X under I, and it is F otherwise. 12. The values of  XS is T if there is an assignment to X in the interpretation under which S is T, otherwise it is F.

Semantics of Predicate Calculus Problems of computing the truth value Universal quantification introduces problems in computing the truth value of a sentence, because all the possible values of a variable symbol must be tested to see whether the expression remains true.

Semantics of Predicate Calculus Problems of computing the truth value (continued) If the domain of interpretation is infinite, exhaustive testing of all substitutions to a universally quantified variable is computationally impossible: the algorithm may never halt. That is why the predicate calculus is said to be undecidable.

Semantics of Predicate Calculus Problems of computing the truth value (continued) Evaluating the truth value of a sentence containing an existentially quantified variable may not be easier. If the domain of the variable is infinite and the sentence is false under all substitutions, the algorithm will never halt.

Semantics of Predicate Calculus Relations between quantifiers For predicates p and q and variables X and Y:  Xp(X)   X  p(X)  Xp(X)   X  p(X)

Semantics of Predicate Calculus Relations between quantifiers (continued)  Xp(X)   Yp(Y)  Xp(X)   Yp(Y)  X(p(X)  q(X))   Xp(X)  Xq(X)  X(p(X)  q(X))   Xp(X)  Xq(X)

Why First-Order Logic? In the language defined, universally and existentially quantified variables may refer only to objects (constants) in the domain of discourse. This language is called the first-order logic (first-order predicate calculus). Predicate and function names may not be replaced by quantified variables (it is allowed in high-order predicate calculi).

Knowledge Representation in First-Order Logic Almost any grammatically correct sentence in any natural language may be expressed in first-order logic using the symbols, connectives, and variable symbols. Important ! – there is no unique mapping of sentences into predicate calculus expressions.

Knowledge Representation in First-Order Logic Example: “All basketball players are tall”. Mappings: 1.  X(basketball player(X)  tall(X)) 2.  X(basketball player(X)  tall(X))

Knowledge Representation in First-Order Logic Blocks world B C T A Knowledge base: 1. Block(A) 2. Block(B) 3. Block(C) 4. Table(T) 5. On(A, T) 6. On(C, T) 7. On(B, C) 8. Clear Top(A) 9. Clear Top(B)