ece 627 intelligent web: ontology and beyond

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Predicate-Argument Structure Monadic predicates: Properties Dyadic predicate: Binary relations Polyadic Predicates: Relations with more then two arguments.
Adapted from Discrete Math
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
1 Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
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)
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
PART TWO PREDICATE LOGIC. Chapter Seven Predicate Logic Symbolization.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Scope, free variable, closed wff §In  X(A) or  X(A), where A is a wff : X is called the variable quantified over; A is said to be (within) the scope.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
2007 D iscrete The foundations C ounting theory N umber theory G raphs & trees structure s
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
Chapter 8 : Fuzzy Logic.
Lecture 1.2: Equivalences, and Predicate Logic
3. The Logic of Quantified Statements Summary
Chapter 2 Fundamentals of Mathematical Logic
Advanced Algorithms Analysis and Design
CSE15 Discrete Mathematics 01/23/17
Knowledge Representation and Reasoning
Discrete Mathematics Logic.
Discrete Mathematics.
Formal Logic CSC 333.
COMP 1380 Discrete Structures I Thompson Rivers University
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
Proposition & Predicates
Mathematics for Computing
CSCI 3310 Mathematical Foundation of Computer Science
CS201: Data Structures and Discrete Mathematics I
Information Technology Department
7.1 Rules of Implication I Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
CS201: Data Structures and Discrete Mathematics I
Natural deduction Gerhard Gentzen.
A Brief Summary for Exam 1
CS 220: Discrete Structures and their Applications
1st-order Predicate Logic (FOL)
Back to “Serious” Topics…
The Method of Deduction
Computer Security: Art and Science, 2nd Edition
Discrete Mathematics Logic.
CSNB234 ARTIFICIAL INTELLIGENCE
Predicates and Quantifiers
Foundations of Discrete Mathematics
COMP 1380 Discrete Structures I Thompson Rivers University
CS201: Data Structures and Discrete Mathematics I
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
ece 720 intelligent web: ontology and beyond
RESOLUTION.
CS201: Data Structures and Discrete Mathematics I
Introduction to Computational Linguistics
1st-order Predicate Logic (FOL)
Presentation transcript:

ece 627 intelligent web: ontology and beyond lecture 14: predicate logic

predicate logic … a predicate (relation) – is a function that maps its arguments to the truth values 0 or 1 known example: less then (symbol <), for arguments 5 and 8 we have 5<8 is true, and 8<5 is false they can be written as infix like <, or letter(s), for example R(x,y) or mother(x,y) ece 627, winter ‘13

predicate logic … predicate logic is not a replacement for propositional logic but an extension or refinement of it ece 627, winter ‘13

predicate logic … in propositional logic, the preposition Every peach is fuzzy is represented by a single symbol p, in predicate logic, the statement is shown in finer detail - with universal quantifier ( x)(peach(x) fuzzy(x)) ece 627, winter ‘13

predicate logic … - with existential quantifier ~( x)(peach(x) ~fuzzy(x)) ece 627, winter ‘13

predicate logic … - with both quantifiers ( x)( y)(integer(x) (prime(y) x<y) ece 627, winter ‘13

predicate logic … order of quantifiers ( x)( y) ( man(x) dept(x,account) (woman(y) hometown(y,Boston) married(x,y)) ) ece 627, winter ‘13

predicate logic … while … ( y)( x) ( man(x) dept(x,account) (woman(y) hometown(y,Boston) married(x,y)) ) ece 627, winter ‘13

predicate logic formation rules vocabulary contains symbols for constants and variables, parenthesis, Boolean operators, and symbols for quantifiers, functions and predicates all of them are combined according to three rules ece 627, winter ‘13

predicate logic formation rules a term is either a constant (2 or a, b, c, …), a variable (x, y or x0, x1, x2, …), or a function or an operator symbol applied to its arguments, each of which is itself a term for example: f(x), 2+2 ece 627, winter ‘13

predicate logic formation rules an atom is either a single letter (p) representing preposition or a predicate symbol (P, Q, R, …) applied to its arguments, each of which is itself a term for example: P(f(x), 2+2), Q(7) ece 627, winter ‘13

predicate logic formation rules a formula is either an atom, a formula preceded by ~, any two formulas A and B together with any two-place Boolean operator op in the combination (A op B), or any formula A and any variable x in either of the combinations ( x)A or ( x)A ece 627, winter ‘13

predicate logic formulas - examples (P(f(x),2+2) Q(7)) ~(P(f(x),2+2) Q(7)) ( y)~(P(f(x),2+2) Q(7)) ( x)( y)~(P(f(x),2+2) Q(7)) the occurrence of x in f(x) is bound by the quantifier ( x), the quantifier ( y) has not effect on the formula, y does not occur as an argument of any function/predicate ece 627, winter ‘13

predicate logic formulas - examples John is tall T(j) John is taller than Bill TR(j,b) Everybody sleeps x (S(x)) Somebody likes David x [L(x,d)] ece 627, winter ‘13

predicate logic formulas - examples There are happy people x H(x) Some books are interesting x [B(x) I(x)] Some books are interesting and some are easy to read x [B(x) I(x)] x [B(x) E(x)] No books are good x [B(x) G(x)] ece 627, winter ‘13

predicate logic rules of inference rule of inference - is to preserve truth, if we start with formulas that are true, the result of performing a rule of inference on them must also be true ece 627, winter ‘13

predicate logic rules of inference issue of equivalence: ( x)(peach(x) fuzzy(x)) ~( x)(peach(x) ~fuzzy(x)) if these formulas were represented by p and q, there would be no way to prove p q, but the rules of predicate logic can show the equivalence ece 627, winter ‘13

predicate logic rules of inference the rule for relating the quantifiers ( x)A is equivalent to ~( x)~A ece 627, winter ‘13

predicate logic rules of inference so, the first rule: ~( x)~(peach(x) fuzzy(x)) knowing, that ~(p ~q), then ~( x)~~(peach(x) ~fuzzy(x)) ece 627, winter ‘13

predicate logic rules of inference and ~( x)(peach(x) ~fuzzy(x)) this shows 1st formula implies 2nd, if we use the inverse of rules to show the 2nd implies 1st – then both formulas are equivalent ece 627, winter ‘13

predicate logic rules of inference Modus ponens: from p and p q, derive q Modus tollens: from ~q and p q, derive ~p ece 627, winter ‘13

predicate logic rules of inference Hypothetical syllogism: from p q and q r, derive p r Disjunctive syllogism: from p q and ~p, derive p ece 627, winter ‘13

predicate logic rules of inference Conjunction: from p and q, derive p q Addition: from p, derive p q (any formula may be added to a disjunction) ece 627, winter ‘13

predicate logic rules of inference Subtraction: from p q, derive p (extra conjuncts may be thrown away) ece 627, winter ‘13

predicate logic equivalences Idempotency: p p is equivalent to p, and p p is equivalent to p Commutativity: p q is equivalent to q p, and p q is equivalent to q p ece 627, winter ‘13

predicate logic equivalences Associativity: p (q r) is equivalent to (p q) r, and p (q r) is equivalent to (p q) r Distributivity: p (q r) is equivalent to (p q) (p r), and p (q r) is equivalent to (p q) (p r) ece 627, winter ‘13

predicate logic equivalences Absorption: p (p q) is equivalent to p, and p (p q) is equivalent to p Double negation: p is equivalent to ~~p ece 627, winter ‘13

predicate logic equivalences De Morgan’s laws: ~(p q) is equivalent to ~p ~q, and ~(p q) is equivalent to ~p ~q ece 627, winter ‘13

predicate logic rules for quantifiers if A is an atom, then all occurrences of a variable in A are said to be free if a formula C was derived from formulas A and B by combining them with Boolean operators, then all occurrences of variables that are free in A and B are also free in C ece 627, winter ‘13

predicate logic rules for quantifiers if a formula C was derived form a formula A by preceding A with either ( x) or ( x), then all free occurrences of x in A are said to be bound in C, all free occurrences of other variables in A remain free in C ece 627, winter ‘13

predicate logic rules for quantifiers rules for dealing with variables depend on which occurrences are free and bound and which variables must be renamed to avoid name clashes with other variables ece 627, winter ‘13

predicate logic rules for quantifiers let F(x) be a formula with one or more free occurrences of a variable x, then F(t) is the result of substituting every free occurrence of x in F with t ece 627, winter ‘13

predicate logic rules of quantifier negation ( x)A ~( x)~A ~( x)A ( x)~A ece 627, winter ‘13

predicate logic rules of quantifier (in)dependence ( x)( y)A(x,y) ( y)( x)A(x,y) ece 627, winter ‘13

predicate logic rules of quantifier movement A ( x)(B(x)) ( x)(A B(x)) ( x)(B(x)) A ( x)(B(x) A) ece 627, winter ‘13

predicate logic rules of quantifier movement example: ( x)(P(x)) ( y)(Q(y)) ( y)[( x)(P(x)) (Q(y))] ( y)( x)[(P(x)) (Q(y))] ece 627, winter ‘13

predicate logic rules for quantifiers: permissible substitutions universal instantiation: from ( x)F(x), derive F(c) where c is any constant existential generalization: from F(c), where c is any constant, derive ( x)F(x) provided that every occurrence of x in F(x) is free ece 627, winter ‘13

predicate logic rules for quantifiers: permissible substitutions dropping quantifiers: if the variable x does not occur free in F, then from ( x)F(x) derive F, and from ( x)F(x) derive adding quantifiers: from F derive ( x)F or derive ( x)F, where x is any variable ece 627, winter ‘13

predicate logic rules for quantifiers: permissible substitutions substituting equal for equals: for any terms s and t where s=t, derive F(t) from F(s), provided that all free occurrences of variables in t remain free in F(t) ece 627, winter ‘13

typed predicate logic … this form is a purely syntactic extension of untyped logic – its semantic identical to untyped logic, as well as ever theorem and proof the only difference – addition of a type label after the quantifier – x:N - (label is a monadic predicate - n(x)) ece 627, winter ‘13

typed predicate logic … for knowledge representation typed logic has the advantage of being more concise and readable it can support rules of inference based on inheritance (they do not make logic more expressive, they shorten some proofs) ece 627, winter ‘13

typed predicate logic … Universal: ( x:N)F(x) ( x)(n(x) F(x)) Existential: ( x:N)F(x) ( x)(n(x) F(x)) ece 627, winter ‘13

typed predicate logic … with a string of multiple quantifiers of the same kind and with the same type label, it is permissible to factor out the common quantifier and type label ( x,y,x:Number) ((x < y y < z) x < z) ece 627, winter ‘13

typed predicate logic … for untyped … ( x)(number(x) ( y)(number(y) ( z)(number(z) ((x < y y < z) x < z) ))) ece 627, winter ‘13

typed predicate logic … Untyped formula as a special case of a typed one Universal: ( x:T)F(x) ( x)(T(x) F(x)) ( x) F(x) Existential: ( x:T)F(x) ( x)(T(x) F(x)) ece 627, winter ‘13