Knowledge Representation

Size: px
Start display at page:

Download "Knowledge Representation"

Transcription

1 Knowledge Representation References Rich and Knight, Artificial Intelligence, 2nd ed. McGraw-Hill, 1991 Russell and Norvig, Artificial Intelligence: A modern approach, 2nd ed. Prentice Hall, 2003

2 Outline KR and natural language KR and Data Bases KR and Logic Semantic networks and frames

3 KR and Natural Language

4 KR and natural language Natural language pros: Very expressive: probably everything that can be expressed symbolically can be expressed in natural language (pictures, content of art, emotions are hard to express) Much more expressive than state-of-the-art KR formalisms Natural language cons: Often ambiguous Syntax and semantics not fully understood Little uniformity in the structure of sentences

5 KR and Data Bases

6 KR and databases An example of typical DB record: Person record = name : max 20 characters age : 3 digits in range sex : { male, female } status : { married,bachelor,spinster,divorced,widowed,engaged } first_names_of_children : up to 10 names (each max 15 chars)

7 KR and DBMSs: an instance of Person

8 KR and DBMSs: Discussion Properties of traditional DB systems Only simple aspects of some universe of discourse We can represent entities and relationships between entities, but not much more Well suited to efficiently represent large amounts of data

9 KR and Logic: Propositional Logic

10 KR and propositional logic Syntax The syntax of a propositional language describes the possible configurations that can constitute sentences, based upon the concept of fact and sentence (which can be a fact or a combination of facts obtained b y applying to facts suitable connectives) Semantics Without semantics, a sentence is just an arrangement of terms that fulfill syntactic constraints The semantics is aimed at determining the facts in the world to which the sentences refer, so that a truth value can be assigned to each of them

11 KR and propositional logic Syntax Propositions (e.g., A, B,...) Connectives (e.g.,,,,...) Derivation rules (e.g. modus ponens) Modus ponens simply asserts that: { X, X Y } Y (it is a meta-rule, meaning that for every X and for every Y such that both X and X Y hold, then Y can be asserted) Syntactic entailment can be defined according to the selected derivation rules

12 KR and propositional logic Semantics Semantics in propositional logic is based on the concept of truth assignment; i.e. a function F is supposed to assign a truth value to each proposition e.g. true(a), false(b), false(c) Semantic entailment can be defined according to the concept of truth assignment

13 KR and propositional logic Inference: an example Facts (2): cold, snow Rules (1): (cold (snow rain)) Deduction (1): ice ice

14 KR and propositional logic Soundness Yes, propositional logic is sound (i.e., for any set of wffs S such that S syntactically entails a wff A then S semantically entails A) Completeness Yes, propositional logic is complete (i.e., the other way around, meaning that for any set of wffs S such that S semantically entails wff A then S syntactically entails A)

15 KR and propositional logic Propositional logic is decidable Starting from wffs, a truth-assignment function, and some deductiove apparatus, all sentences can be determined as being false or true

16 KR and propositional logic Properties of propositional logic (summary) Rather general representation formalism Unambiguous, syntax and semantics No generally efficient procedure for processing knowledge (inference) Decidable (we can decide in finite time whether a proposition is true or not)

17 KR and Logic: First-Order Logic

18 KR and propositional logic Properties of propositional logic General representation formalism Decidable (we can decide in finite time whether a proposition is true or not) Reasoning about sets of objects is difficult (e.g. concept hierarchies)

19 KR and first-order logic Syntax The syntax of a first-order logic language describes the possible configurations that can be labelled as well-formed formulas wffs)

20 KR and first-order logic Terms Constants [ e.g. A ] Variables [ e.g. x ] Functions [ e.g. f(x, y) ] Atomic formulas Predicates defined over terms [ e.g. on(x, y) ] Well-formed formulas (wff) Atomic formulas or wff to which connectives and quantifiers are applied [ e.g. x: on(x, table1) red(x) ]

21 KR and first-order logic

22 KR and first-order logic Semantics The semantics is aimed at determining which wffs are true or false, according to the interpretation given to terms and predicates

23 KR and first-order logic Soundness Yes, first-order logic is sound (i.e., for any set of formulas S such that S syntactically entails A then S semantically entails A) Completeness Yes, first-order logic is complete (i.e., the other way around, meaning that for any set of formulas S such that S semantically entails A then S syntactically entails A)

24 KR and first-order logic First-order logic is semi-decidable Starting from wffs, a suitable interpretation, and some deductiove apparatus, in general, not all sentences can be determined as being false or true In other words: - if a wff is true, sooner or later we will come up with a corresponding theorem - if a wff is false there is no guarantee that we will be able to verify it (an infinite loop in our deductive apparatus may occur)

25 KR and first-order logic Properties of first-order logic (summary) General representation formalism (more general than propositional logic) Very expressive, and unambiguous, syntax and semantics No generally efficient procedure for processing knowledge (inference) Semi-decidable (we can decide in finite time whether a wff is true or not)

26 KR and Logic: Other Logic Formalisms

27 Other logic formalisms Second order logic Second-order logic is an extension of first-order logic which contains variables in predicate positions (rather than only in term positions, as in first-order logic), and quantifiers binding them Modal and temporal logics Operators: necessity and possibility Fuzzy logic degrees of membership in a set (instead of T or F) Other: Multivalued, non-monotonic,...

28 Semantic Networks and Frames

29 Semantic Networks The important thing with any representation language is to understand the semantics and the proof theory; the details related with syntax are less important Whether the language uses strings (syntactic, logic-based representation) rather than nodes and links (graphical, graph-oriented representation) has no effect on the meaning or on its implementation by a computer program

30 Semantic networks The basic idea is that one cannot understand the meaning of a single word without access to all the essential knowledge that relates to that word

31 Semantic networks For instance, one would not be able to understand the word "sell" without knowing anything about the situation of commercial transfer, which also involves, among other things, a seller, a buyer, goods, money, the relation between the money and the goods, the relations between the seller and the goods and the money, the relation between the buyer and the goods and the money and so on

32 Semantic Networks Slot-filler representation was introduced by Quillian in 1968 (formerly from Pierce, 1896): Directed graph Nodes represent objects Labeled arcs: binary relationships between objects, which can represent a predicate with two arguments Semantic network formalisms have a very simple execution model (i.e. they are rather easy to implement)

33 Semantic Nets: Some semantics relations is-a relationship - Hyponymy (A is subordinate of B A is kind of B) - Hypernymy (A is superordinate of B) part-of relationship - Meronymy (A is part of B) - Holonymy (B has A as a part of itself) identity relationship - Synonymy (A denotes the same as B) - Antonymy (A denotes the opposite of B)

34 Semantic networks: Pros... Easy to represent objects, attributes, and values (conceptual networks) Case grammar (Fillmore, 1968): there is a verb for each simple sentence with a set of characteristics or cases: agent, object, result, instrument, origin, place, time, [see E. Rich's AI book or wikipedia]

35 Semantic networks: Cons... Quantification, negation, implication and disjunction are difficult to represent Difficult to represent different kinds of relationships Difficult to represent non binary relationships (e.g. actions)

36 Semantic networks: An example

37 Semantic networks: Inference Intersection search Who is the Brooklyn Dodgers fielder? Property inheritance How tall is Pee-Wee Reese? What is Pee-Wee Reese s batting average? Matching What is the batting average of the Brooklyn Dodgers fielder?

38 Semantic networks: Intersection search Intersection search Who is the Brooklyn Dodgers fielder? Property inheritance How tall is Pee-Wee Reese? What is Pee-Wee Reese s batting average? Matching What is the batting average of the Brooklyn Dodgers fielder?

39 Semantic networks: Intersection search

40 Semantic networks: Property inheritance Intersection search Who is the Brooklyn Dodgers fielder? Property inheritance How tall is Pee-Wee Reese? What is Pee-Wee Reese s batting average? Matching What is the batting average of the Brooklyn Dodgers fielder?

41 Semantic networks: Property inheritance

42 Semantic networks: Matching Intersection search Who is the Brooklyn Dodgers fielder? Property inheritance How tall is Pee-Wee Reese? What is Pee-Wee Reese s batting average? Matching What is the batting average of the Brooklyn Dodgers fielder?

43 Semantics networks: Matching x z

44 Semantic networks: Properties Allow to structure the knowledge to reflect the structure of the part of the universe which is being represented Very strong representation facilities for procedural attachment

45 Semantic networks: Properties So far we have seen a very general notion To be useful a clear syntax and semantics must be given to semantic networks: frames arise with the need to assign more structure to nodes and links

46 Semantic networks and frames A word activates, or evokes, a frame of semantic knowledge relating to the specific concept it refers to (or highlights, in frame semantic terminology) A semantic frame is defined as a coherent structure of related concepts Frames are based on recurring experiences e.g. the commercial transaction frame is based on recurring experiences of commercial transaction

47 Semantics networks and frames A frame consists of a collection of slots which can be filled with values or pointers to other frames Viewing a semantic network node as a frame: Baseball player isa cardinality: *height: *bats: *batting-average: *team: Adult-male =handed.252 PS =handed replaces a concrete value (e.g. left, right), which is supposed to be specified by another entry

48 Semantic networks and frames Classes and subclasses, instances Attributes are represented as slots (fields) Slot values can be objects Facets: attributes of an attribute Slots can be frames because they have attributes (value, classes to which value belongs, default value, rules by which it can be inherited, ) Inheritance Methods: procedures associated to classes Daemons: procedures that watch for events (set, delete, ) Ontologies: formal representations of domain knowledge What things exist, what are their properties

49 KR: An example up, right Let us consider, for instance, the 8-puzzle problem - Lists (1,2,3,0,5,6,4,7,8) - Predicate logic cell(1,1,1), cell(3,1,4), - Frames Cell31 InstanceOf: Cell Attribute *x: *y: *value: Possible values/value (v11, v12, v13, v21, ) cell(x, y, value) Cell Isa: Attribute Possible values/value *x: {1,2,3} *y: {1,2,3} *value: {1,2,..9}

AITA : Knowledge Representation

AITA : Knowledge Representation AITA : Knowledge Representation John A. Bullinaria, 2003 1. What is Knowledge? 2. What is a Knowledge Representation? 3. Requirements of a Knowledge Representation 4. Knowledge Representation in Natural

More information

AITA : Frame Based Systems

AITA : Frame Based Systems AITA : Frame Based Systems John A. Bullinaria, 2003 1. The Evolution of Semantic Networks into Frames 2. Frame Based Systems The Basic Idea 3. Converting Semantic Networks into Frames 4. Set Theory as

More information

Module 8. Other representation formalisms. Version 2 CSE IIT, Kharagpur

Module 8. Other representation formalisms. Version 2 CSE IIT, Kharagpur Module 8 Other representation formalisms 8.1 Instructional Objective The students should understand the syntax and semantic of semantic networks Students should learn about different constructs and relations

More information

Knowledge Representation Issues, Predicate Logic, Rules

Knowledge Representation Issues, Predicate Logic, Rules Knowledge Representations : AI Course Lecture 15 22, notes, slides www.myreaders.info/, RC Chakraborty, e-mail rcchak@gmail.com, June 01, 2010 www.myreaders.info/html/artificial_intelligence.html www.myreaders.info

More information

Semantic Nets, Frames, World Representation. CS W February, 2004

Semantic Nets, Frames, World Representation. CS W February, 2004 Semantic Nets, Frames, World Representation CS W4701 24 February, 2004 Knowledge Representation as a medium for human expression An intelligent system must have KRs that can be interpreted by humans. We

More information

CSC 501 Semantics of Programming Languages

CSC 501 Semantics of Programming Languages CSC 501 Semantics of Programming Languages Subtitle: An Introduction to Formal Methods. Instructor: Dr. Lutz Hamel Email: hamel@cs.uri.edu Office: Tyler, Rm 251 Books There are no required books in this

More information

Chapter 3: Propositional Languages

Chapter 3: Propositional Languages Chapter 3: Propositional Languages We define here a general notion of a propositional language. We show how to obtain, as specific cases, various languages for propositional classical logic and some non-classical

More information

PdOd Kev Events I Re-world war I1 rwa

PdOd Kev Events I Re-world war I1 rwa I PdOd Kev Events I Re-world war I rwa LECTURE: Knowledge Representation Overview 0 'Qpes of knowledge: objects, events, meta-knowledge, etc. 0 Characteristics of representation: expressive adequacy vs.

More information

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution Foundations of AI 9. Predicate Logic Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution Wolfram Burgard, Andreas Karwath, Bernhard Nebel, and Martin Riedmiller 09/1 Contents Motivation

More information

INF5390 Kunstig intelligens. First-Order Logic. Roar Fjellheim

INF5390 Kunstig intelligens. First-Order Logic. Roar Fjellheim INF5390 Kunstig intelligens First-Order Logic Roar Fjellheim Outline Logical commitments First-order logic First-order inference Resolution rule Reasoning systems Summary Extracts from AIMA Chapter 8:

More information

For next Tuesday. Read chapter 8 No written homework Initial posts due Thursday 1pm and responses due by class time Tuesday

For next Tuesday. Read chapter 8 No written homework Initial posts due Thursday 1pm and responses due by class time Tuesday For next Tuesday Read chapter 8 No written homework Initial posts due Thursday 1pm and responses due by class time Tuesday Any questions? Program 1 Imperfect Knowledge What issues arise when we don t know

More information

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory Logic as a framework for NL semantics Semantic Theory Type Theory Manfred Pinkal Stefan Thater Summer 2007 Approximate NL meaning as truth conditions. Logic supports precise, consistent and controlled

More information

Knowledge Representation

Knowledge Representation Knowledge Representation What is knowledge? Is knowledge the same thing as facts? some define knowledge as the fact or condition of knowing something with familiarity gained through experience or association.

More information

Propositional Logic Formal Syntax and Semantics. Computability and Logic

Propositional Logic Formal Syntax and Semantics. Computability and Logic Propositional Logic Formal Syntax and Semantics Computability and Logic Syntax and Semantics Syntax: The study of how expressions are structured (think: grammar) Semantics: The study of the relationship

More information

Propositional Logic. Andreas Klappenecker

Propositional Logic. Andreas Klappenecker Propositional Logic Andreas Klappenecker Propositions A proposition is a declarative sentence that is either true or false (but not both). Examples: College Station is the capital of the USA. There are

More information

CS 380/480 Foundations of Artificial Intelligence Winter 2007 Assignment 2 Solutions to Selected Problems

CS 380/480 Foundations of Artificial Intelligence Winter 2007 Assignment 2 Solutions to Selected Problems CS 380/480 Foundations of Artificial Intelligence Winter 2007 Assignment 2 Solutions to Selected Problems 1. Search trees for the state-space graph given below: We only show the search trees corresponding

More information

STABILITY AND PARADOX IN ALGORITHMIC LOGIC

STABILITY AND PARADOX IN ALGORITHMIC LOGIC STABILITY AND PARADOX IN ALGORITHMIC LOGIC WAYNE AITKEN, JEFFREY A. BARRETT Abstract. Algorithmic logic is the logic of basic statements concerning algorithms and the algorithmic rules of deduction between

More information

Knowledge Representation and Reasoning Logics for Artificial Intelligence

Knowledge Representation and Reasoning Logics for Artificial Intelligence Knowledge Representation and Reasoning Logics for Artificial Intelligence Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science University at Buffalo, The State

More information

Lecture 4: January 12, 2015

Lecture 4: January 12, 2015 32002: AI (First Order Predicate Logic, Interpretation and Inferences) Spring 2015 Lecturer: K.R. Chowdhary Lecture 4: January 12, 2015 : Professor of CS (VF) Disclaimer: These notes have not been subjected

More information

Lecture 17 of 41. Clausal (Conjunctive Normal) Form and Resolution Techniques

Lecture 17 of 41. Clausal (Conjunctive Normal) Form and Resolution Techniques Lecture 17 of 41 Clausal (Conjunctive Normal) Form and Resolution Techniques Wednesday, 29 September 2004 William H. Hsu, KSU http://www.kddresearch.org http://www.cis.ksu.edu/~bhsu Reading: Chapter 9,

More information

Lecture 7: January 15, 2014

Lecture 7: January 15, 2014 32002: AI (First order Predicate Logic, Syntax and Semantics) Spring 2014 Lecturer: K.R. Chowdhary Lecture 7: January 15, 2014 : Professor of CS (GF) Disclaimer: These notes have not been subjected to

More information

Towards a Logical Reconstruction of Relational Database Theory

Towards a Logical Reconstruction of Relational Database Theory Towards a Logical Reconstruction of Relational Database Theory On Conceptual Modelling, Lecture Notes in Computer Science. 1984 Raymond Reiter Summary by C. Rey November 27, 2008-1 / 63 Foreword DB: 2

More information

made up of characters, some of which form character data, and some of which form markup Markup encodes a description of the document's storage layout

made up of characters, some of which form character data, and some of which form markup Markup encodes a description of the document's storage layout A new method for knowledge representation in expert system's (XMLKR) Mehdi Bahrami Payame Noor University (PNU), Tehran, Iran MehdiBahrami@gmailcom Dr Siavosh Kaviani Abstract Knowledge representation

More information

Declarative Programming. 2: theoretical backgrounds

Declarative Programming. 2: theoretical backgrounds Declarative Programming 2: theoretical backgrounds 1 Logic Systems: structure and meta-theoretical properties logic system syntax semantics proof theory defines which sentences are legal in the logical

More information

Visually Interacting with a Knowledge Base

Visually Interacting with a Knowledge Base Visually Interacting with a Knowledge Base Using Frames, Logic, and Propositional Graphs With Extended Background Material Daniel R. Schlegel and Stuart C. Shapiro Department of Computer Science and Engineering

More information

Knowledge Representation: Production Systems II

Knowledge Representation: Production Systems II Knowledge Representation: Production Systems II References: Rich and Knight, Artificial Intelligence, 2nd ed. McGraw-Hill, 1991 Russell and Norvig, Artificial Intelligence: A modern approach, 2nd ed. Prentice

More information

Propositional Logic. Part I

Propositional Logic. Part I Part I Propositional Logic 1 Classical Logic and the Material Conditional 1.1 Introduction 1.1.1 The first purpose of this chapter is to review classical propositional logic, including semantic tableaux.

More information

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/27

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/27 CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter 2.1-2.7 p. 1/27 CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer

More information

Knowledge Representation and Ontologies Part 1: Modeling Information through Ontologies

Knowledge Representation and Ontologies Part 1: Modeling Information through Ontologies Knowledge Representation and Ontologies Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2011/2012 Part 1 Modeling Information through Ontologies D. Calvanese (FUB)

More information

Logic and its Applications

Logic and its Applications Logic and its Applications Edmund Burke and Eric Foxley PRENTICE HALL London New York Toronto Sydney Tokyo Singapore Madrid Mexico City Munich Contents Preface xiii Propositional logic 1 1.1 Informal introduction

More information

Evaluation of Predicate Calculus By Arve Meisingset, retired research scientist from Telenor Research Oslo Norway

Evaluation of Predicate Calculus By Arve Meisingset, retired research scientist from Telenor Research Oslo Norway Evaluation of Predicate Calculus By Arve Meisingset, retired research scientist from Telenor Research 31.05.2017 Oslo Norway Predicate Calculus is a calculus on the truth-values of predicates. This usage

More information

First Order Predicate Logic CIS 32

First Order Predicate Logic CIS 32 First Order Predicate Logic CIS 32 Functionalia Demos? HW 3 is out on the web-page. Today: Predicate Logic Constructing the Logical Agent Predicate Logic First-order predicate logic More expressive than

More information

CPS331 Lecture: Fuzzy Logic last revised October 11, Objectives: 1. To introduce fuzzy logic as a way of handling imprecise information

CPS331 Lecture: Fuzzy Logic last revised October 11, Objectives: 1. To introduce fuzzy logic as a way of handling imprecise information CPS331 Lecture: Fuzzy Logic last revised October 11, 2016 Objectives: 1. To introduce fuzzy logic as a way of handling imprecise information Materials: 1. Projectable of young membership function 2. Projectable

More information

X-KIF New Knowledge Modeling Language

X-KIF New Knowledge Modeling Language Proceedings of I-MEDIA 07 and I-SEMANTICS 07 Graz, Austria, September 5-7, 2007 X-KIF New Knowledge Modeling Language Michal Ševčenko (Czech Technical University in Prague sevcenko@vc.cvut.cz) Abstract:

More information

Knowledge representation Semantic networks and frames

Knowledge representation Semantic networks and frames Knowledge representation Semantic networks and frames CmSc310 Artificial Intelligence 1. Introduction: What is knowledge? The science that studies various issues about knowledge is called epistemology.

More information

Knowledge Representation. CS 486/686: Introduction to Artificial Intelligence

Knowledge Representation. CS 486/686: Introduction to Artificial Intelligence Knowledge Representation CS 486/686: Introduction to Artificial Intelligence 1 Outline Knowledge-based agents Logics in general Propositional Logic& Reasoning First Order Logic 2 Introduction So far we

More information

Knowledge Representation and Reasoning Logics for Artificial Intelligence

Knowledge Representation and Reasoning Logics for Artificial Intelligence Knowledge Representation and Reasoning Logics for Artificial Intelligence Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science University at Buffalo, The State

More information

FUZZY BOOLEAN ALGEBRAS AND LUKASIEWICZ LOGIC. Angel Garrido

FUZZY BOOLEAN ALGEBRAS AND LUKASIEWICZ LOGIC. Angel Garrido Acta Universitatis Apulensis ISSN: 1582-5329 No. 22/2010 pp. 101-111 FUZZY BOOLEAN ALGEBRAS AND LUKASIEWICZ LOGIC Angel Garrido Abstract. In this paper, we analyze the more adequate tools to solve many

More information

A review of First-Order Logic

A review of First-Order Logic Knowledge Interchange Format A review of First-Order Logic Using KIF Knowledge Interchange Format Material adapted from Professor Richard Fikes Stanford University Sys 3 Know. Base in Lang3 KIF ~ First

More information

1. true / false By a compiler we mean a program that translates to code that will run natively on some machine.

1. true / false By a compiler we mean a program that translates to code that will run natively on some machine. 1. true / false By a compiler we mean a program that translates to code that will run natively on some machine. 2. true / false ML can be compiled. 3. true / false FORTRAN can reasonably be considered

More information

Chapter 2 & 3: Representations & Reasoning Systems (2.2)

Chapter 2 & 3: Representations & Reasoning Systems (2.2) Chapter 2 & 3: A Representation & Reasoning System & Using Definite Knowledge Representations & Reasoning Systems (RRS) (2.2) Simplifying Assumptions of the Initial RRS (2.3) Datalog (2.4) Semantics (2.5)

More information

Object-based representation. Objects

Object-based representation. Objects Object-based representation Luger, Part III, 6.0, 6.1, 6.2.2-6.2.4, 6.4 (skim) Objects Two basic forms of Structured Objects Semantic Nets Frames Semantic Nets (Associative Nets) Components Nodes - represent

More information

LOGIC AND DISCRETE MATHEMATICS

LOGIC AND DISCRETE MATHEMATICS LOGIC AND DISCRETE MATHEMATICS A Computer Science Perspective WINFRIED KARL GRASSMANN Department of Computer Science University of Saskatchewan JEAN-PAUL TREMBLAY Department of Computer Science University

More information

Computation Club: Gödel s theorem

Computation Club: Gödel s theorem Computation Club: Gödel s theorem The big picture mathematicians do a lot of reasoning and write a lot of proofs formal systems try to capture the ideas of reasoning and proof in a purely mechanical set

More information

CSE 473 Lecture 12 Chapter 8. First-Order Logic. CSE AI faculty

CSE 473 Lecture 12 Chapter 8. First-Order Logic. CSE AI faculty CSE 473 Lecture 12 Chapter 8 First-Order Logic CSE AI faculty What s on our menu today? First-Order Logic Definitions Universal and Existential Quantifiers Skolemization Unification 2 Propositional vs.

More information

Automated Reasoning. Natural Deduction in First-Order Logic

Automated Reasoning. Natural Deduction in First-Order Logic Automated Reasoning Natural Deduction in First-Order Logic Jacques Fleuriot Automated Reasoning Lecture 4, page 1 Problem Consider the following problem: Every person has a heart. George Bush is a person.

More information

What is the study of logic?

What is the study of logic? Chapter 2: The Representation of Knowledge Expert Systems: Principles and Programming, Fourth Edition What is the study of logic? Logic is the study of making inferences given a set of facts, we attempt

More information

1. Logic as a subject matter is the study of logics, understood as models of acceptable inference patterns

1. Logic as a subject matter is the study of logics, understood as models of acceptable inference patterns Lecture 9: Propositional Logic I Philosophy 130 23 & 28 October 2014 O Rourke I. Administrative A. Problem sets due Thursday, 30 October B. Midterm course evaluations C. Questions? II. Logic and Form A.

More information

Axiomatic Specification. Al-Said, Apcar, Jerejian

Axiomatic Specification. Al-Said, Apcar, Jerejian Axiomatic Specification Al-Said, Apcar, Jerejian 1 Axioms: Wffs that can be written down without any reference to any other Wffs. Wffs that are stipulated as unproved premises for the proof of other wffs

More information

Description Logics. Structural Description Logics (Acknowledgement: Enrico Franconi) Object-Oriented Representations. Applications

Description Logics. Structural Description Logics (Acknowledgement: Enrico Franconi) Object-Oriented Representations. Applications Description Logics Structural Description Logics (Acknowledgement: Enrico Franconi) The need for a formalism Ambiguities of object-oriented representations A structure upon FOL A predicate level language

More information

Part I Logic programming paradigm

Part I Logic programming paradigm Part I Logic programming paradigm 1 Logic programming and pure Prolog 1.1 Introduction 3 1.2 Syntax 4 1.3 The meaning of a program 7 1.4 Computing with equations 9 1.5 Prolog: the first steps 15 1.6 Two

More information

Proseminar on Semantic Theory Fall 2013 Ling 720 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1

Proseminar on Semantic Theory Fall 2013 Ling 720 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1 1. Statement of the Problem, Outline of the Solution to Come (1) The Key Problem There is much to recommend an algebraic

More information

HANDBOOK OF LOGIC IN ARTIFICIAL INTELLIGENCE AND LOGIC PROGRAMMING

HANDBOOK OF LOGIC IN ARTIFICIAL INTELLIGENCE AND LOGIC PROGRAMMING HANDBOOK OF LOGIC IN ARTIFICIAL INTELLIGENCE AND LOGIC PROGRAMMING Volume 5 Logic Programming Edited by DOV M. GABBAY and C. J. HOGGER Imperial College of Science, Technology and Medicine London and J.

More information

Formal Structural Requirements. Functional Requirements: Why Formal? Revisiting SADT. A Formalization of RML/Telos. A Survey of Formal Methods

Formal Structural Requirements. Functional Requirements: Why Formal? Revisiting SADT. A Formalization of RML/Telos. A Survey of Formal Methods Functional Requirements: Formal Structural Requirements Why Formal? Revisiting SADT RML/Telos Essentials A Formalization of RML/Telos A Survey of Formal Methods 1 2 RML/Telos Essentials [S. Greenspan,

More information

STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH

STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH Slide 3.1 3 STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH 3.0 Introduction 3.1 Graph Theory 3.2 Strategies for State Space Search 3.3 Using the State Space to Represent Reasoning with the Predicate

More information

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,, CMPSCI 601: Recall From Last Time Lecture 5 Definition: A context-free grammar (CFG) is a 4- tuple, variables = nonterminals, terminals, rules = productions,,, are all finite. 1 ( ) $ Pumping Lemma for

More information

Formal Predicate Calculus. Michael Meyling

Formal Predicate Calculus. Michael Meyling Formal Predicate Calculus Michael Meyling May 24, 2013 2 The source for this document can be found here: http://www.qedeq.org/0_04_07/doc/math/qedeq_formal_logic_v1.xml Copyright by the authors. All rights

More information

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi is another way of showing that an argument is correct. Definitions: Literal: A variable or a negation of a variable is called a literal. Sum and Product: A disjunction of literals is called a sum and a

More information

An Evolution of Mathematical Tools

An Evolution of Mathematical Tools An Evolution of Mathematical Tools From Conceptualization to Formalization Here's what we do when we build a formal model (or do a computation): 0. Identify a collection of objects/events in the real world.

More information

THE PREDICATE CALCULUS

THE PREDICATE CALCULUS 2 THE PREDICATE CALCULUS Slide 2.1 2.0 Introduction 2.1 The Propositional Calculus 2.2 The Predicate Calculus 2.3 Using Inference Rules to Produce Predicate Calculus Expressions 2.4 Application: A Logic-Based

More information

Ontology and Database Systems: Knowledge Representation and Ontologies Part 1: Modeling Information through Ontologies

Ontology and Database Systems: Knowledge Representation and Ontologies Part 1: Modeling Information through Ontologies Ontology and Database Systems: Knowledge Representation and Ontologies Diego Calvanese Faculty of Computer Science European Master in Computational Logic A.Y. 2016/2017 Part 1 Modeling Information through

More information

PROPOSITIONAL LOGIC (2)

PROPOSITIONAL LOGIC (2) PROPOSITIONAL LOGIC (2) based on Huth & Ruan Logic in Computer Science: Modelling and Reasoning about Systems Cambridge University Press, 2004 Russell & Norvig Artificial Intelligence: A Modern Approach

More information

Propositional Logic:

Propositional Logic: CS2209A 2017 Applied Logic for Computer Science Lecture 2 Propositional Logic: Syntax, semantics, truth table Instructor: Yu Zhen Xie Language of logic: building blocks Proposition: A sentence that can

More information

Propositional Calculus: Boolean Functions and Expressions. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Propositional Calculus: Boolean Functions and Expressions. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson Propositional Calculus: Boolean Functions and Expressions CS 270: Mathematical Foundations of Computer Science Jeremy Johnson Propositional Calculus Objective: To provide students with the concepts and

More information

COMP Intro to Logic for Computer Scientists. Lecture 2

COMP Intro to Logic for Computer Scientists. Lecture 2 COMP 1002 Intro to Logic for Computer Scientists Lecture 2 B 5 2 J Language of logic: building blocks Proposition: A sentence that can be true or false. A: It is raining in St. John s right now. B: 2+2=7

More information

Publication Data. Reading Options. Licence and permissions ISBN Mark Jago, 2007

Publication Data. Reading Options. Licence and permissions ISBN Mark Jago, 2007 Running Head The World is all that is the case http//www.humanities-ebooks.co.uk Philosophy Insights General Editor: Mark ddis Formal Logic Mark Jago What makes an argument valid? For advice on use of

More information

Question about Final Exam. CS 416 Artificial Intelligence. What do we like about propositional logic? First-order logic

Question about Final Exam. CS 416 Artificial Intelligence. What do we like about propositional logic? First-order logic Page 1 Question about Final Exam CS 416 Artificial Intelligence I will have a date for you by Tuesday of next week. Lecture 13 First-Order Logic Chapter 8 First-order logic We saw how propositional logic

More information

RESULTS ON TRANSLATING DEFAULTS TO CIRCUMSCRIPTION. Tomasz Imielinski. Computer Science Department Rutgers University New Brunswick, N.

RESULTS ON TRANSLATING DEFAULTS TO CIRCUMSCRIPTION. Tomasz Imielinski. Computer Science Department Rutgers University New Brunswick, N. RESULTS ON TRANSLATING DEFAULTS TO CIRCUMSCRIPTION Tomasz Imielinski Computer Science Department Rutgers University New Brunswick, N.J 08905 ABSTRACT In this paper we define different concepts, of translating

More information

Typed Lambda Calculus

Typed Lambda Calculus Department of Linguistics Ohio State University Sept. 8, 2016 The Two Sides of A typed lambda calculus (TLC) can be viewed in two complementary ways: model-theoretically, as a system of notation for functions

More information

Programming Languages Third Edition

Programming Languages Third Edition Programming Languages Third Edition Chapter 12 Formal Semantics Objectives Become familiar with a sample small language for the purpose of semantic specification Understand operational semantics Understand

More information

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS 1 THE FORMALIZATION OF MATHEMATICS by Harvey M. Friedman Ohio State University Department of Mathematics friedman@math.ohio-state.edu www.math.ohio-state.edu/~friedman/ May 21, 1997 Can mathematics be

More information

ITCS 6150 Intelligent Systems. Lecture 13 First-Order Logic Chapter 8

ITCS 6150 Intelligent Systems. Lecture 13 First-Order Logic Chapter 8 ITCS 6150 Intelligent Systems Lecture 13 First-Order Logic Chapter 8 First-order logic We saw how propositional logic can create intelligent behavior But propositional logic is a poor representation for

More information

Module 6. Knowledge Representation and Logic (First Order Logic) Version 2 CSE IIT, Kharagpur

Module 6. Knowledge Representation and Logic (First Order Logic) Version 2 CSE IIT, Kharagpur Module 6 Knowledge Representation and Logic (First Order Logic) 6.1 Instructional Objective Students should understand the advantages of first order logic as a knowledge representation language Students

More information

COMP219: Artificial Intelligence. Lecture 14: Knowledge Representation

COMP219: Artificial Intelligence. Lecture 14: Knowledge Representation COMP219: Artificial Intelligence Lecture 14: Knowledge Representation 1 Overview Last time Game playing Minimax decisions Alpha-beta pruning Today Introduce the need for explicit knowledge representation

More information

CSC Discrete Math I, Spring Sets

CSC Discrete Math I, Spring Sets CSC 125 - Discrete Math I, Spring 2017 Sets Sets A set is well-defined, unordered collection of objects The objects in a set are called the elements, or members, of the set A set is said to contain its

More information

Structural representations of unstructured knowledge

Structural representations of unstructured knowledge Paper Structural representations of unstructured knowledge Wiesław Traczyk Abstract Knowledge should be represented in a formal, structured manner if we want to process and manage it. Unfortunately a source

More information

Fuzzy logic. 1. Introduction. 2. Fuzzy sets. Radosªaw Warzocha. Wrocªaw, February 4, Denition Set operations

Fuzzy logic. 1. Introduction. 2. Fuzzy sets. Radosªaw Warzocha. Wrocªaw, February 4, Denition Set operations Fuzzy logic Radosªaw Warzocha Wrocªaw, February 4, 2014 1. Introduction A fuzzy concept appearing in works of many philosophers, eg. Hegel, Nietzche, Marx and Engels, is a concept the value of which can

More information

What s in an Instance?

What s in an Instance? RPI Computer Science Technical Report #94-18, 1994. What s in an Instance? Christopher A. Welty and David A. Ferrucci RPI Computer Science Dept. Troy, NY 12180 {weltyc,ferrucci}@cs.rpi.edu The notion of

More information

Introductory logic and sets for Computer scientists

Introductory logic and sets for Computer scientists Introductory logic and sets for Computer scientists Nimal Nissanke University of Reading ADDISON WESLEY LONGMAN Harlow, England II Reading, Massachusetts Menlo Park, California New York Don Mills, Ontario

More information

Principles of Knowledge Representation and Reasoning

Principles of Knowledge Representation and Reasoning Principles of Knowledge Representation and Semantic Networks and Description Logics II: Description Logics Terminology and Notation Albert-Ludwigs-Universität Freiburg Bernhard Nebel, Stefan Wölfl, and

More information

7. Relational Calculus (Part I) 7.1 Introduction

7. Relational Calculus (Part I) 7.1 Introduction 7. Relational Calculus (Part I) 7.1 Introduction We established earlier the fundamental role of relational algebra and calculus in relational databases (see 5.1). More specifically, relational calculus

More information

8. Relational Calculus (Part II)

8. Relational Calculus (Part II) 8. Relational Calculus (Part II) Relational Calculus, as defined in the previous chapter, provides the theoretical foundations for the design of practical data sub-languages (DSL). In this chapter, we

More information

Software Paradigms (Lesson 6) Logic Programming

Software Paradigms (Lesson 6) Logic Programming Software Paradigms (Lesson 6) Logic Programming Table of Contents 1 Introduction... 2 2 Facts... 3 3 Predicates (Structured Terms)... 4 3.1 General Structures... 4 3.2 Predicates (Syntax)... 4 3.3 Simple

More information

User-Defined Nonmonotonicity in Unification-Based Formalisms

User-Defined Nonmonotonicity in Unification-Based Formalisms User-Defined Nonmonotonicity in Unification-Based Formalisms Lena Str~Smb~ick Department of Computer and Information Science LinkSping University S-58185 LinkSping, Sweden lestr~ida, liu. so Abstract A

More information

Goals: Define the syntax of a simple imperative language Define a semantics using natural deduction 1

Goals: Define the syntax of a simple imperative language Define a semantics using natural deduction 1 Natural Semantics Goals: Define the syntax of a simple imperative language Define a semantics using natural deduction 1 1 Natural deduction is an instance of first-order logic; that is, it is the formal

More information

A MULTI-DIMENSIONAL DATA ORGANIZATION THAT ASSISTS IN THE PARSING AND PRODUCTION OF A SENTENCE

A MULTI-DIMENSIONAL DATA ORGANIZATION THAT ASSISTS IN THE PARSING AND PRODUCTION OF A SENTENCE A MULTI-DIMENSIONAL DATA ORGANIZATION THAT ASSISTS IN THE PARSING AND PRODUCTION OF A SENTENCE W. Faris and K. Cheng Department of Computer Science University of Houston Houston, TX, 77204, USA http://www.cs.uh.edu

More information

CS 512, Spring 2017: Take-Home End-of-Term Examination

CS 512, Spring 2017: Take-Home End-of-Term Examination CS 512, Spring 2017: Take-Home End-of-Term Examination Out: Tuesday, 9 May 2017, 12:00 noon Due: Wednesday, 10 May 2017, by 11:59 am Turn in your solutions electronically, as a single PDF file, by placing

More information

15-819M: Data, Code, Decisions

15-819M: Data, Code, Decisions 15-819M: Data, Code, Decisions 08: First-Order Logic André Platzer aplatzer@cs.cmu.edu Carnegie Mellon University, Pittsburgh, PA André Platzer (CMU) 15-819M/08: Data, Code, Decisions 1 / 40 Outline 1

More information

First-Order Logic PREDICATE LOGIC. Syntax. Terms

First-Order Logic PREDICATE LOGIC. Syntax. Terms First-Order Logic PREDICATE LOGIC Aim of this lecture: to introduce first-order predicate logic. More expressive than propositional logic. Consider the following argument: all monitors are ready; X12 is

More information

CSE 20 DISCRETE MATH. Fall

CSE 20 DISCRETE MATH. Fall CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Final exam The final exam is Saturday December 16 11:30am-2:30pm. Lecture A will take the exam in Lecture B will take the exam

More information

Proving the Correctness of Distributed Algorithms using TLA

Proving the Correctness of Distributed Algorithms using TLA Proving the Correctness of Distributed Algorithms using TLA Khushboo Kanjani, khush@cs.tamu.edu, Texas A & M University 11 May 2007 Abstract This work is a summary of the Temporal Logic of Actions(TLA)

More information

COMP4418 Knowledge Representation and Reasoning

COMP4418 Knowledge Representation and Reasoning COMP4418 Knowledge Representation and Reasoning Week 3 Practical Reasoning David Rajaratnam Click to edit Present s Name Practical Reasoning - My Interests Cognitive Robotics. Connect high level cognition

More information

Chapter 4 Fuzzy Logic

Chapter 4 Fuzzy Logic 4.1 Introduction Chapter 4 Fuzzy Logic The human brain interprets the sensory information provided by organs. Fuzzy set theory focus on processing the information. Numerical computation can be performed

More information

Going beyond propositional logic

Going beyond propositional logic Going beyond propositional logic Consider the following statements: p: Ling took CS245 q: Ling passed CS245 r: Ling failed CS245 Taken literally, these are all atomic statements, and formally they have

More information

Chapter 3. Describing Syntax and Semantics

Chapter 3. Describing Syntax and Semantics Chapter 3 Describing Syntax and Semantics Chapter 3 Topics Introduction The General Problem of Describing Syntax Formal Methods of Describing Syntax Attribute Grammars Describing the Meanings of Programs:

More information

Lecture 5. Logic I. Statement Logic

Lecture 5. Logic I. Statement Logic Ling 726: Mathematical Linguistics, Logic. Statement Logic V. Borschev and B. Partee, September 27, 2 p. Lecture 5. Logic I. Statement Logic. Statement Logic...... Goals..... Syntax of Statement Logic....2.

More information

Knowledge Representations. How else can we represent knowledge in addition to formal logic?

Knowledge Representations. How else can we represent knowledge in addition to formal logic? Knowledge Representations How else can we represent knowledge in addition to formal logic? 1 Common Knowledge Representations Formal Logic Production Rules Semantic Nets Schemata and Frames 2 Production

More information

Vibhav Gogate University of Texas, Dallas Artificial Intelligence: CS 4365 First-order Logic

Vibhav Gogate University of Texas, Dallas Artificial Intelligence: CS 4365 First-order Logic Artificial Intelligence: CS 4365 First-order Logic Vibhav Gogate University of Texas, Dallas First-order Logic Course Outline: Where are we? Introduction and Agents Search, Heuristics and CSPs Adversarial

More information

THE FOUNDATIONS OF MATHEMATICS

THE FOUNDATIONS OF MATHEMATICS THE FOUNDATIONS OF MATHEMATICS By: Sterling McKay APRIL 21, 2014 LONE STAR - MONTGOMERY Mentor: William R. Brown, MBA Mckay 1 In mathematics, truth is arguably the most essential of its components. Suppose

More information

CS221 / Autumn 2017 / Liang & Ermon. Lecture 17: Logic II

CS221 / Autumn 2017 / Liang & Ermon. Lecture 17: Logic II CS221 / Autumn 2017 / Liang & Ermon Lecture 17: Logic II Review: ingredients of a logic Syntax: defines a set of valid formulas (Formulas) Example: Rain Wet Semantics: for each formula, specify a set of

More information