ECE 479/579 Principles of Artificial Intelligence Part I Spring Dr. Michael Marefat

Similar documents
Knowledge based Agents

Class 29 - November 3 Semantics for Predicate Logic

ITS336 Lecture 6 First-Order Logic

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

22c:145 Artificial Intelligence

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

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

Rules Build Arguments Rules Building Arguments

First Order Logic (FOL)

Knowledge Representation and Reasoning

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

First Order Logic: Syntax and Semantics

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

THE LOGIC OF COMPOUND STATEMENTS

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Advanced Topics in LP and FP

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

COMP4418: Knowledge Representation and Reasoning First-Order Logic

Propositional, First-Order And Higher-Order Logics: Basic Definitions, Rules of Inference, and Examples

473 Topics. Knowledge Representation III First-Order Logic. Logic-Based KR. Propositional. Logic vs. First Order

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

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

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

THE PREDICATE CALCULUS

First Order Logic Semantics (3A) Young W. Lim 9/17/17

2. Use quantifiers to express the associative law for multiplication of real numbers.

Logic Overview, I. and T T T T F F F T F F F F

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

Strong AI vs. Weak AI Automated Reasoning

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

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

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

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

First Order Logic (1A) Young W. Lim 11/18/13

Section 2.1: Introduction to the Logic of Quantified Statements

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

A Little Deductive Logic

Artificial Intelligence. Propositional logic

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

THE LOGIC OF QUANTIFIED STATEMENTS. Statements with Multiple Quantifiers. Statements with Multiple Quantifiers CHAPTER 3 SECTION 3.

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

o is a type symbol. There are no other type symbols.

MAI0203 Lecture 7: Inference and Predicate Calculus

Chapter 8 First Order Logic

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

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

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

A Little Deductive Logic

Propositional Logic. Spring Propositional Logic Spring / 32

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Predicate Logic. Andreas Klappenecker

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

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

Artificial Intelligence Knowledge Representation I

The Predicate Calculus

Marie Duží

First Order Logic Semantics (3A) Young W. Lim 8/9/17

COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati"

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference

Discrete Mathematical Structures: Theory and Applications

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

COMP9414: Artificial Intelligence First-Order Logic

It rains now. (true) The followings are not propositions.

The proposition p is called the hypothesis or antecedent. The proposition q is called the conclusion or consequence.

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

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Propositional Logic: Review

CS:4420 Artificial Intelligence

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

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

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

DISCRETE MATH: LECTURE Chapter 3.3 Statements with Multiple Quantifiers If you want to establish the truth of a statement of the form

5. And. 5.1 The conjunction

Logic III. Introduction to Artificial Intelligence CSE 150

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

CSC242: Intro to AI. Lecture 12. Tuesday, February 26, 13

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

Lecture overview. Knowledge-based systems in Bioinformatics, 1MB602. Reasoning. Reasoning cont. Inference in propositional logic.

Chapter 3. The Logic of Quantified Statements

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

First Order Logic Arguments (5A) Young W. Lim 2/24/17

Introduction to fuzzy logic

First Order Logic Arguments (5A) Young W. Lim 3/10/17

Recall that the expression x > 3 is not a proposition. Why?

Propositional Logic Arguments (5A) Young W. Lim 2/23/17

Logic. (Propositional Logic)

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

Introduction to Metalogic

Why Knowledge Representation?

Inference in Propositional Logic

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Knowledge Based Systems: Logic and Deduction

CS 2336 Discrete Mathematics

Propositional Logic: Syntax

Logic & Logic Agents Chapter 7 (& Some background)

CS560 Knowledge Discovery and Management. CS560 - Lecture 3 1

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Transcription:

ECE 479/579 Principles of Artificial Intelligence Part I Spring 2005 Dr. Michael Marefat (marefat@ece.arizona.edu)

Required text "Artificial Intelligence: A Modern Approach, Second Edition" by Stuart Russell & Peter Norvig, Prentice Hall, 2003. ISBN:0-13-790395-2.

What is Artificial Intelligence? Computational methods for enabling computers to perform tasks attributed to having having intelligence, such as Design, Configuration, Learning, etc. Common Scenario: Problem How? Symbolic Representation Symbolic Manipulation Solution Logical Language <<< Refer to Chapter 1 of the text >>>

First Order Predicate Logic(FOPL) It is a language. It is defined by its syntax and semantics. Well formed formulas (wffs) are expressions in FOPL. <<< Refer to Chapter 8 of the text >>>

Representations of Knowledge Logic based methods First Order Predicate Logic: A language. Everything is represented as a sentence: wffs, well-formed formulas. Logical Connectives Predicates Terms Quantifiers On( ) Constants A On(A,B) Variables?X Function f(?x) A B C <<< Refer to Section 8.1 of the text >>>

Bigdog has a high speed, and it is accessible to all engineering students, or Bigdog cannot be a college-wide computer. All computers that are college-wide computers are Unix-Servers. Has_High_Speed (Bigdog) Boolean Combinations: 1. : and 2. : or 3. : not 4. : Implies

Example: A: Antecedent. Job ( Person1, Engineer) Is_A ( Person1, Middle_Class) C: Conclusion A C A C T T T T F F F T T F F T

Ex: Represent the following in Predicate Logic: 1. John lives in a Yellow House. Is_A (John, Person) Lives_in (House1, John) Color (House1, Yellow) 2.If the car is red, it is a Chevy. [ Is_A (Car1, Car) Color (Car1, Red) ] Is_A (Car1, Chevy) Formulas in which all arguments are constants or functions of constants are Ground formulas. Non-ground formulas have variables.

Fido is a dog, Fido belongs to John, John is at school, John s dog goes wherever he goes. Where is Fido?

Is_A( Fido, Dog)

In order to interpret Predicate Logic representations: 1. To each Predicate symbol, we must assign a corresponding relationship in the domain. 2. To each Constant, We must assign a unique entity. 3. To each function, we must assign a mapping in the domain. These assignments together define the semantics of the given Predicate Logic language.

Once semantics is established, we determine the truth(t) or False(F) of each wff sentence. The value of wff should be T if the corresponding interpretation is correct in the domain. In converting Problems to Symbolic Representations we must come up with an Ontology. Ontology consists of Predicates Constants Variables This process is referred to as Ontologic Engineering. <<< Refer to Section 10.1 of the text >>>

Ex: ( with variable) Married [ father(?x), mother (?x) ] Predicate function function By convention: - Predicated started with Caps. - functions started with lower case. - Constants started with Caps. - Vars. written with? as first letter :?x We can substitute for Variables ( but not for constants): Married [ father ( Person1), mother ( Person1) ]

Ex: If the building is single-story, it is not built by Duncan. [ Is-A ( Building 1, Building) No_of_Stories ( Building1, 1) ] Built ( Building1, Duncan)

Properties of Wffs If the truth values of two wffs are the same regardless of their interpretation, these are equivalent. The equivalences below can be established by truth tables: Formula ( W1) W1 W1 W2 Equivalent W1 W2 (W1 W2) W1 W2 (W1 W2) W1 W2 W1 (W2 W3) W1 (W2 W3) W1 W2 (W1 W2) W3 (W1 W2) W3 W2 W1

Quantification Allows us to distinguish between assignments to variable values. a. Universal Quantifier?x in front of W(?x), we get?x W(?x), this is T, if for all values of?x, W(?x) is true. (?x) [ Animal_type (?x, Elephant) Color (?x, Gray) ] b. Existential Quantifier (?x) in front of a formula W(?x), (?x) W(?x), it is true, if some assignment of value to?x in domain, makes W(?x) correct. (?x)[ President_of (US,?x)] <<< Refer to Section 8.2 pg. 249 of the text >>>

Example: All blocks on top of moved blocks, or attached to moved blocks, are also moved. (?x) (?y) {{Is_A(?x, Block) Is_A(?y, Block) [On_top_of(?x,?y) Attached(?x,?y)] Done(?y, Move)} Done(?x,Move)} C B A

For Every set x, there is a set y, such that the cardinality of y is greater than the cardinality of x. Some inference Rules applied to wffs in FOPL. Rules of inference are applied to wffs to produce new results. Universal Specialization: (?x) W1(?x) A a wff in database a constant in database Deduce W1(A) Theorem

Modus Ponens: W1(?x) W2(?x) W1(A) a wff in DB a wff in DB Deduce W2(A) W2(?y) W3(?y,?z) W3(A,?z) Modus Tollens: W1(?x) W2(?x) a wff in DB W2(A) a wff in DB Theorems Deduce W2(A) Derived wffs are called theorems. A proof is a sequence of inference rules used to derive a theorem.

Equivalence Properties for Quantified formulas Formula Equivalent (?x) W(?x) (?x) [ W(?x)] (?x) W(?x) (?x) [ W(?x)] (?x)[w1(?x) W2(?x)] (?x)[w1(?x) W2(?x)] (?x) W1(?x) (?y) W2(?y) (?x) W1(?x) (?y) W2(?y)