CIA2326 Week4: Predicate Logic : introduction Lee McCluskey, room 2/07

Slides:



Advertisements
Similar presentations
Predicate Logic Colin Campbell. A Formal Language Predicate Logic provides a way to formalize natural language so that ambiguity is removed. Mathematical.
Advertisements

1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Predicates and Quantifiers
First-Order Logic (FOL) aka. predicate calculus. First-Order Logic (FOL) Syntax User defines these primitives: –Constant symbols (i.e., the "individuals"
Knowledge Representation Methods
AI - Week 13 Knowledge Representation, Logic, Semantic Web Lee McCluskey, room 2/07
1 Conditional XPath, the first order complete XPath dialect Maarten Marx Presented by: Einav Bar-Ner.
Formal Aspects of Computer Science - Week 5 Logic and Reasoning Lee McCluskey, room 2/07
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Logic Programming Languages. Objective To introduce the concepts of logic programming and logic programming languages To introduce a brief description.
AI - Week 16 Logic and Reasoning in AI: Resolution Refutation Lee McCluskey, room 2/07
AI - Week 15 Logic and Reasoning in AI Lee McCluskey, room 2/07
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Modelling Conceptual Knowledge using Logic - Week 6 Lee McCluskey Department of Computing and Mathematical Sciences University of Huddersfield.
The Semantic Web Week 12 Term 1 Recap Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module Website:
The Semantic Web – WEEK 10: Introduction to Description Logics The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] We are back down to.
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
Predicates and Quantifiers
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
1st-order Predicate Logic (FOL)
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
Database Management Systems, R. Ramakrishnan1 Relational Calculus Chapter 4.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
CIS2326 Week2: Logic and Prolog Lee McCluskey First term:
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
3.2 Semantics. 2 Semantics Attribute Grammars The Meanings of Programs: Semantics Sebesta Chapter 3.
CS6133 Software Specification and Verification
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
The Law of Resolution Formal Aspects of Computer Science - Week 7 The Law of Resolution Lee McCluskey, room 2/07
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
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.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
1 Chapter 2.1 Chapter 2.2 Chapter 2.3 Chapter 2.4 All images are copyrighted to their respective copyright holders and reproduced here for academic purposes.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Chapter 7. Propositional and Predicate Logic
Proposition & Predicates
CS201: Data Structures and Discrete Mathematics I
Logic Programming Languages
CSE 311 Foundations of Computing I
Logics for Data and Knowledge Representation
1st-order Predicate Logic (FOL)
MA/CSSE 474 More Math Review Theory of Computation
Computer Security: Art and Science, 2nd Edition
Logics for Data and Knowledge Representation
Predicates and Quantifiers
Encoding Knowledge with First Order Predicate Logic
Encoding Knowledge with First Order Predicate Logic
Logics for Data and Knowledge Representation
CS201: Data Structures and Discrete Mathematics I
Encoding Knowledge with First Order Predicate Logic
1st-order Predicate Logic (FOL)
Logics for Data and Knowledge Representation
Presentation transcript:

CIA2326 Week4: Predicate Logic : introduction Lee McCluskey, room 2/07

School of Computing and Mathematics, University of Huddersfield Propositional logic..usually means a language where propositional variables denote true and false. The language is made up of these variables and “logical connectives”. If X and Y are propositional variables then… ~X means "not X" X v Y " means "X or Y" X & Y " means "X and Y" X -> Y " means "X implies Y" or "X only if Y" X <- Y " means "X if Y" X Y " means "X if and only if Y"

School of Computing and Mathematics, University of Huddersfield First - order (predicate) logic FOL (FOPL) is MORE EXPRESSIVE than propositional logic. It is a notation used widely in computing for n giving meaning to systems eg relational calculus in data bases n model of computation (with computational forms such as Prolog) - to help prove program correctness - To formalise requirements in EG safety-critical systems n expressing and manipulating knowledge

School of Computing and Mathematics, University of Huddersfield FOPL – grammar Syntax Classes Example Syntax constants.. a,b,c... functions.. f,g,h... - apply to constants/vars predicates.. p,q,r...- unary, binary,.. variables.. x,y,z... quantifiers.. A, E (A is upside down, and E back to front) connectives.. V, &, =>,, <= Other bits.. Brackets Wffs – well formed formulae Eg Ax(p(x) => Ey q(x,y)&p(y))

School of Computing and Mathematics, University of Huddersfield FOPL – grammar WFF ::= ATOM | ~ ATOM | (WFF) | WFF connective WFF | quantifier variable WFF ATOM ::= predicate | predicate(ARG-LIST) ARG-LIST ::= TERM | TERM, ARG-LIST TERM ::= constant | variable | function(ARG-LIST)

School of Computing and Mathematics, University of Huddersfield Giving Meaning to FOPL n constants denote object names and data-type values in the world n unary predicates represent properties/classes eg cat(x), person(x),.. n other predicates represent relations between objects, and values of attributes eg brother(bill,ben), status(tank, full), between(X,Y,Z) n Wffs represent logical structure

School of Computing and Mathematics, University of Huddersfield Relation of FOPL with Prolog Conversion of Prolog into FOPL: Prolog clauses can be directly translated into FOPL, except for the so-called "extra logical" and "meta-logical" built in predicates. The three simple rules for conversion are: - 1. "," corresponds to "&" – 2. ":-" corresponds to "<-" 3. All variables are universally quantified. Examples grandfather(X,Y) :- father(X,Z),parent(Z,Y). In FOPC: Ax,Ax,Az (grandfather(x,y) <- (father(x,z)&parent(z,y))) uncle(X,Y) :- parent(Z,Y),brother(X,Z). In FOPC: Ax,Ay,Az ( uncle(x,y) <- (parent(z,y)&brother(x,z)))

School of Computing and Mathematics, University of Huddersfield FOPL: interpretation Given Wffs in FOPL, an interpretation I is given by mapping the constants, function and predicate symbols to elements in the conceptualisation Eg consider the set of wffs a., b. and c. a. Ax (P(x) -> R(x)) b. P(a) c. not (Ex P(x) & Q(x)) We may give this set many interpretations, for example: 1. Universe = people; P = "is a man", Q = "is a woman", R = "is mortal", a = "Socates". We say that Wff W is true in an interpretation I if W evaluates to true under I. The evaluation uses the “well known” meaning of connectives and quantifiers

School of Computing and Mathematics, University of Huddersfield FOPL: interpretation – another example Universe = persons Wffs Ax,Ax,Az g(x,y) <= (f(x,z)&p(z,y)) Ax,Ay,Az u(x,y) <= (p(z,y)&b(x,z)) Ax m(x) => p(x) Ax f(x) => p(x) Example Interpretation is: g = grandfather, f = father, p = parent, b = brother, u = uncle, m = mother Are the wffs true?

School of Computing and Mathematics, University of Huddersfield FOPL – reasoning IN fopl we are fundamentally interested in if a wff w LOGICALLY FOLLOWS from another wff W (usually written as “..a set of WFFs”) W |= w Definition: w logically follows from W if and only if every interpretation that makes W true also makes w true

School of Computing and Mathematics, University of Huddersfield FOPL – more definitions A Wff is Satisfiable – at least one interpretation makes it true Unsatisfiable – no interpretation makes it true Tautological or Valid – all interpretations makes it true

School of Computing and Mathematics, University of Huddersfield Conclusion: n FOPL is more expressive that Propositional Logic n We have introduced some definitions (which apply to FOPL and Propositional Logic) eg “Interpretation”, “Logically Follows”, “(Un)satisfiable” n See first 3 sections of