Logic. The World. First Order Predicate Calculus (FOPC)

Size: px
Start display at page:

Download "Logic. The World. First Order Predicate Calculus (FOPC)"

Transcription

1 Logic Logic was developed to account for why people can make certain types of inferences, called deductions. It is a language, in which it is possible to write down facts and derive new facts from them. The World A conceptualization of the world consists of objects, functions, and relations An object: a thing, a set of things, an abstract thing, an event, a set of events,.... The set of all objects in a conceptualization is the universe of discourse A function: maps one set of objects onto another object (or set of objects) (e.g., motherof, children-of) A relation: A set of n-tuples (e.g. EMPLOYER-EMPLOYEE = {<DePaul, Lytinen>, <DePaul, Minogue>, <US-PEOPLE, Clinton>,...}. Degenerate relations can be 1-tuples, and are properties. First Order Predicate Calculus (FOPC) Logic statements consist of a mixture of terms, predicates, connectives, and quantifiers. A term (object constant) is a symbol that refers to an object (or set of objects) in the world. Example: book3 might refer to a particular book. A predicate (relation constant) is a symbol that represents an attribute of an object, or a relationship between 2 or more objects. Examples: inst: a relationship, as in inst(book3, book). can-fly: a property, as in can-fly(tweety2). A predicate with its arguments is a formula or proposition or sentence. The predicate always comes first (with some exceptions). Example: inst(book3, book). There are 4 connectives: &,, ( ), and. There are 2 quantifiers: and. A function (function constant) is another kind of term. Terms A term is a symbol that refers to an object (or set of objects) in the world. A different symbol is used for each different object (though 2 symbols can refer to the same object) 1

2 Example: book1, book2 might refer to 2 different books Kinds of terms: 1. Concrete terms refer to particular objects or events Example: book2, holiday12, robbery7 2. Compound terms refer to more complicated objects Example: book-set4 (e.g., World Book Encyclopedia) 3. Abstract terms refer to general concepts: classes of objects or types of events Example: book, robbery, blue 2

3 Names Don t Matter Which term is used to represent an object isn t important (except for readability). 1. Concrete terms refer to particular objects or events Example: dfij2, sdfoij12, woi7 2. Compound terms refer to more complicated objects Example: spioj4 (e.g., World Book Encyclopedia) 3. Abstract terms refer to general concepts: classes of objects or types of events Example: pdoij, zjoif, wreoui Predicates and Formulas Predicates express relationships between terms, or properties of terms. They correspond to relations in the world. They usually take one or more arguments. A predicate with its arguments is called a formula or a proposition. This is the simplest kind of formula, so it s also called an atomic formula or literal. Examples: inst(book3, book) paperback(book3) subject(book3, computer-science) owns(pat2, book3) name(pat2, pat) bought(pat2, book3, store12) How do you know what predicates to use? You don t you just make them up Connectives More complicated formulas can be written using connectives. There are 4 of them: & and or implies (if...then) not Connectives are always written between formulas Examples: inst(book3, book) & subject(book3, computer-science) subject(book3, ai) subject(book3, psychology) inst(book3, book) & owns(pat3, book3) can-read(pat3) subject(book3, computer-science) 3

4 Quantifiers 1. : universal quantifier allows us to make statements about classes of objects Example: all books are made of paper really the same as: for all things, if that thing is a book, then it s made of paper x inst(x, book) made-of(x, paper) x is a term, but it s a variable term 2. : existential quantifier allows us to talk about an object without knowing the identify of the object Example: Someone is outside the door Don t know who, just know that someone is there. x inst(x, person) & outside(x, door3) Combining quantifiers Sometimes, it s necessary to use several quantifiers in same statement. Examples: All cats and dogs hate each other. x y (inst(x, dog) & inst(y, cat)) hate(x, y) & hate(y, x) Every student is enrolled in (at least) one course. x inst(x, student) y inst(y, course) & enrolled-in(x, y) Functions May appear wherever terms can Look just like formulas, but they aren t they re terms Example: Every person has a mother and a father as a parent. x inst(x,person) parent(x,mother-of(x)) & parent(x,father-of(x)) Functions do not return an answer. Think of mother-of(pat2) as a term whose name has parentheses in it. Some rules of thumb 1. Always follow or with one or more variables 4

5 2. If an English sentence says All... or Every... then use. 3. and often go together. Example: All birds can sing. x inst(x, bird) can-sing(x) 4. If an English sentence says Some... or There is... then use. 5. and & often go together. Example: Some birds can t fly. (x) inst(x, bird) & can-fly(x) 6. If you can say All x s have a y... or For all x s, there s a y... use both and Example: All birds have beaks. (i.e., All birds have a beak) x inst(x, bird) y inst(y, beak) & has(x,y) 1. Pat is a student and is in CSC All students in CSC480 are intelligent. Examples of FOPC inst(pat0, student) & in(pat0,csc480) x inst(x,student) & in(x,csc480) intelligent(x) 3. All students who are intelligent get A s in all their courses. x y ( inst(x,student) & intelligent(x) & in(x,y)) grade(x,y,a) 4. Your mother s mother is your grandmother. x inst(x,human) grandmother(mother-of(mother-of(x)), x) Other definitions A sentence is satisfiable iff there is some interpretation which satisfies it (i.e., if it could possibly be true). A sentence is unsatisfiable (or inconsistent) iff it cannot be true under any circumstances. For example: inst(pat0,human) & inst(pat0,human) A sentence is valid iff it is always true, no matter what the circumstances. For example: x inst(x,human) inst(x,human) 5

6 Logical Equivalence Two propositions in logic are equivalent iff they are true under exactly the same circumstances. Example: All humans are mortal. All immortal beings are not humans. One proposition entails another if its models are a subset of the other s 6

7 Connectives and Logical Equivalence Can think of connectives being defined in terms of truth tables 1. P Q = P Q 2. (P&Q) = P Q 3. P (Q&R) = (P Q)&(P R) & P Q P&Q P Q P Q T T T T T T T F F T F T F T F F T T F F F F F F P Q P Q P P T T T T F T F F F T F T T F F T Redundancy in connectives P Q P Q P P Q T T T F T T F F F F F T T T T F F T T T P Q P&Q (P&Q) P Q P Q T T T F F F F T F F T F T T F T F T T F T F F F T T T T P Q R Q&R P P Q P R (P Q)& Q&R (P R) T T T T T T T T T T F F F T F F T F T F F F T F T F F F F F F F F T T T T T T T F T F F T T T T F F T F T T T T F F F F T T T T 7

8 Logical Equivalence and Quantifiers The universal quantifier is shorthand for an infinite conjunction: x Px = Pt 0 &Pt 1 &Pt 2 &..., for all terms t n. The existential quantifier is shorthand for an infinite disjunction: x Px = Pt 0 Pt 1 Pt 2..., for all terms t n. 1. x Px = x Px 2. P x Qx = x P Qx x inst(x,person) y parent(x,y) = x y inst(x,person) parent(x,y) x Px = (Pt 0 & Pt 1 & Pt 2...) = Pt 0 Pt 1 Pt 2... = x Px P x Qx = P (Qt 0 Qt 1 Qt 2...) = ( P Qt 0 ) ( P Qt 1 ) ( P Qt 2 )... = (P Qt 0 ) (P Qt 1 )... = x P Qx Deduction We can deduce Q from P whenever we know that P s truth conditions are subsumed by Q s and P is true. Rules of deduction can also be derived from truth tables. 1. Modus ponens Sometimes written: 2. And elimination P Q P Q (P Q)&P ((P Q)&P) Q T T T T T F F F F T T F F F T F P Q P Q 8

9 P Q P&Q (P&Q) P T T T T F F F T F F F F Sometimes written: P&Q P 3. Modus tolens Sometimes written: Logic is redundant P Q P Q Q (P Q) & Q ((P Q) & Q) P T T T F F T F F T F F T T F F F F T T T P Q Q P Skolemization Want equivalent facts to be represented the same Skolemization: canonical form for quantifiers The Rules of Skolemization 1. Replace universally quantified variables with Skolem variables 2. Replace existentially quantified variables with Skolem functions 3. Within negation, reverse rules 1 and 2 Everyone likes Pat. human(?x) likes(?x, Pat0) Someone likes Pat. human(sk0) & likes(sk0, Pat0) Examples 9

10 Everyone likes someone. x human(x) y likes(x,y) x y human(x) likes(x,y) human(?x) likes(?x, sk1(?x)) There are no unicorns. x unicorn(x) x unicorn(x) unicorn(?x) Not everyone likes someone. x human(x) y likes(x,y) x human(x) y likes(x,y) ( human(sk2) likes(sk2,?y)) human(sk2) & likes(sk2,?y) Microsoft has released a version of Word for every operating system on every PC. x y pc-type(x) & os(y) z version(z,word) & released(microsoft,z) pc-type(?x) & os(?y) version(sk4(?x,?y),word) & released(microsoft,sk4(?x,?y)) Cannonical form for connectives Also called conjunctive normal form Only use,, and & (implicitly) Clause Form Only literals (atomic formulas) may be negated Only literals may be disjuncts (negations are ok) Converting to Clause Form 1. Skolemize; change variable names to make them unique 2. p q = p q 3. Distribute negations, using DeMorgan s laws (p&q) = p q (p q) = p& q 4. Distribute disjunctions, using (p&q) r = (p r)&(q r) 10

11 All cities have mayors. x inst(x,city) y mayor-of(x,y) inst(?x,city) mayor-of(?x,sk0(?x)) All big cities have suburbs. More Examples of Logic x inst(x,city) & big(x) y suburb-of(x,y) inst(?x,city) big(?x) suburb-of(?x,sk1(?x)) All cities that are not big do not have suburbs. x inst(x,city) & big(x) y suburb-of(x,y) x y inst(x,city) & big(x) suburb-of(x,y) inst(?x,city) big(?x) suburb-of(?x,?y) All suburbs are cities that are not big. x y suburb-of(x,y) inst(y,city) & big(y) suburb-of(?x,?y) inst(?y,city) suburb-of(?x,?y) big(?y) Logic and Deduction One proposition entails another if its models are a subset of the other s Finding other propositions that are entailed by what you already know is called deduction (a kind of inference). Precisely Defining Inference Let d be a database which consists of a finite sequence of sentences. An inference procedure is a function step that maps an initial database d from the set D and a positive integer n into the database for th n-th step of inference. step : D N D step(, 1) = A proposition P can be derived from iff P step(, i) for some positive integer i An inference procedure is complete iff any sentence which is logically entailed by the sentences in can be derived from An inference procedure is sound iff any sentence which can be derived from is entailed by the sentences in 11

12 Markov inference procedure: choice of database on each step is determined entirely by the database for the last step: next : D D { if n = 1 step(, n) = next(step(, n 1)) otherwise An incremental inference procedure is one in which each new database is obtained from the previous database by adding zero or more new conclusions (monotonic): new : D N D step(, n) = A rule of deduction: Or: P Q P R Q R Truth table: (P Q)&( P R) (Q R) { if n = 1 append(step(, n 1), new(, n 1)) otherwise Resolution P Q R P Q P R (P Q)&( P R) Q R (P Q)&( P R) Q R T T T T T T T T T F T F F T T F T T T T T T F F T F F F F T T T T T T F T F T T T T F F T F T F T F F F F T F F Incremental Markov inference procedure Sound and complete Resolution and Variables Implicitly, resolution includes universal elimination: inst(?x,human) mortal(?x) inst(socrates,human) mortal(socrates) 12

13 Resolving 2 clauses involves unification and instantiation unification: making sure variables are compatible, and computing their bindings instantiation: replacing variables with their bindings Unification the process of determining whether two expressions can be made identical by appropriate substitutions for their variables. substitution: any finite set of associations between variables and expressions in which: 1. each variable is associated with at most one expression 2. no variable with an associated expression occurs within any of the associated expressions Example: {?x/a,?y/f(b),?z/?w} is ok, {?x/g(?y),?y/f(?x)} is not Terms associated with a variable in a substitution are called bindings Unification produces a substitution Substitutions and applying them A substitution can be applied to a formula to produce a new formula done by replacing all variables in the expression by their bindings (unbound variables are not replaced) Example: P(?x,?x,?y,?v){?x/A,?y/F(B),?z/?w} = P(A,A,F(B),?v) The composition of 2 substitutions τ and σ (written as στ) is the substitution obtained by applying τ to the terms of σ, then adding the bindings of τ Example: {?w/g(?x,?y)}{?x/a,?y/b,?z/c} = {?w/g(a,b),?x/a,?y/b,?z/c} Two expressions are unifiable iff there exists a substitution σ which makes the expressions identical The most general unifier: the substitution which unifies two expressions such that its application gets rid of the fewest variables unify(human(?x),human(?y)) {?x/?y} (mgu) {?x/pat0,?y/pat0} (not mgu) unify(likes(?x,?y),likes(pat0,chris2)) {?x/pat0,?y/chris2} Example Unifications 13

14 unify(likes(?x,?x),likes(pat0,chris2)) False (they don t unify) unify(likes(?x,?x),likes(?y,pat0)) {?x/pat0,?y/pat0} unify(likes(?x,?x),likes(?z,mother-of(?z))) False unify(likes(?x,friend-of(?x)),likes(friend-of(?y),?y)) False Resolution Principle with Unification Φ Ψ ((Φ ϕ) (Ψ ψ))γ with ϕ Φ with ψ Ψ where ϕγ = ψγ Example: 1. P(?x) Q(?x,?y) 2. P(A) R(B,?z) 3. Q(A,?y) R(B,?z) 1,2 Resolution is sound and refutation complete!!! But, you can never be sure if something cannot be proven Resolution and Proof by Contradiction 1. Add to the negation of what is to be proven 2. Apply resolution until contradiction is reached (null clause) Given: 1. inst(?x,student) inst(?x,person) 2. inst(?x,dog) inst(?x,person) 3. inst(fido2,dog) Example Prove inst(fido2,student) Step Reason 4. inst(fido2,student) neg of thm 5. inst(?x,dog) inst(?x,student) 1,2 6. inst(fido2,student) 3,5 7. 4,6 Another example 1. DePaul s president is always a Vincentian priest. 1. inst(?x1,dpu-pres) inst(?x1,vpriest) 14

15 2. Vincentian priests are not married to anyone. 2. inst(?x2,vpriest) married(?x2,?x3) 3. If two people file joint tax returns, they are married to each other. 3. file-jointly(?x4,?x5) married-to(?x4,?x5) 4. Bill and Hillary file joint tax returns. 4. file-jointly(b0,h0) Prove that Bill is not DePaul s president. 5. inst(b0,dpu-pres) neg of thm 6. inst(b0,vpriest) 1,5 7. married(b0,?x3) 2,6 8. file-jointly(b0,?x3) 3,7 9. 4,8 15

16 Another Example of Proof by Resolution 1. Every student who took 480 bought a copy of Russell and Norvig. x y inst(x,student) & took(x,csc480) inst(y,rusnor) & bought(x,y) 1. inst(?x1,student) took(?x1,csc480) inst(skgn(?x1),rusnor) 2. inst(?x2,student) took(?x2,csc480) bought(?x2,skgn(?x2)) 2. If you bought something and haven t sold it, you own it. x y bought(x,y) & sold(x,y) owns(x,y) 3. bought(?x3,?x4) sold(?x3,?x4) owns(?x3,?x4) 3. Pat doesn t own a copy of Russell and Norvig. x inst(x,rusnor) & owns(pat0,x) 4. inst(?x5,rusnor) owns(pat0,?x5) 4. Pat is a student and took 480. inst(pat0,student) & took(pat0,csc480) 5. inst(pat0,student) 6. took(pat0,csc480) Prove that Pat sold a copy of Russell and Norvig. Step Reason 7. inst(?z,rusnor) sold(pat0,?z) neg of thm 8. took(pat0,csc480) inst(skgn(pat0),rusnor) 1,5 9. took(pat0,csc480) bought(pat0,skgn(pat0)) 2,5 10. inst(skgn(pat0),rusnor) 6,8 11. bought(pat0,skgn(pat0)) 6,9 12. owns(pat0,skgn(pat0)) 4, sold(pat0,skgn(pat0)) 7, sold(pat0,skgn(pat0)) owns(pat0,skgn(pat0)) 3, sold(pat0,skgn(pat0)) 12, ,15 16

17 Problems with Logic Deduction is conservative. It allows the computer to infer what must be true. People make risky inferences. Example: Tweety is a bird. Tweety can fly. Tweety is an ostrich. Tweety can t fly. In predicate calculus: x inst(x,bird) can-fly(x) x inst(x,ostrich) can-fly(x) x inst(x,ostrich) inst(x,bird) This is a contradiction. In clause form: 1. inst(?x,bird) can-fly(?x) 2. inst(?y,ostrich) can-fly(?y) 3. inst(?z,ostrich) inst(?z,bird) Can prove anything: Resolve 1 with 3, result with 2. Fixing the contradiction x inst(x,bird) & inst(x,ostrich) can-fly(x) x inst(x,ostrich) can-fly(x) x inst(x,ostrich) inst(x,bird) Now, it s impossible to prove can-fly(tweety0) from inst(tweety0,bird) Individual exceptions inst(?x,employee) marital-status(?x,single)?x=emp12 exemptions(?x,1) marital-status(emp12,single) exemptions(emp12,3) Doesn t work, unless you explicitly put in the database: emp0 emp1 emp0 emp2... emp1 emp0 emp1 emp2... Situation Variables 17

18 Facts about the world change over time. This causes problems: location(?x,?y) & move(?x,?y,?z) location(?x,?z) & location(?x,?y) The solution: situation variables add additional argument to predicates that change; this is the situation in which the formula is true location(?x,?y,?s) & move(?x,?y,?z,?s) location(?x,?z,result-of(move,?x,?y,?z,?s)) Situation variables prevent contradictions They also prevent many deductions: The Frame Problem paint(?x,?c,?s) color(?x,?c,result-of(paint,?x,?c,?s)) location(block0,loc0,s0) paint(block0,blue,s0) Where is block0 after it s been painted? Need frame axioms to tell us what hasn t changed: paint(?x,?c,?s) & location(?x,?y,?s) location(?x,?y,result-of(paint,?x,?c,?s)) 18

Propositional Logic Not Enough

Propositional Logic Not Enough Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks

More information

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

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning. 3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on

More information

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.

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. Major results: (wrt propositional logic) How to reason correctly. How to reason efficiently. How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague,

More information

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logic Knowledge Representation & Reasoning Mechanisms Logic Logic as KR Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logical inferences Resolution and Theorem-proving Logic

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition

More information

Propositional Logic: Review

Propositional Logic: Review Propositional Logic: Review Propositional logic Logical constants: true, false Propositional symbols: P, Q, S,... (atomic sentences) Wrapping parentheses: ( ) Sentences are combined by connectives:...and...or

More information

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

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19. Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015

More information

Knowledge Representation and Reasoning

Knowledge Representation and Reasoning Knowledge Representation and Reasoning Geraint A. Wiggins Professor of Computational Creativity Department of Computer Science Vrije Universiteit Brussel Objectives Knowledge Representation in Logic The

More information

Logic III. Introduction to Artificial Intelligence CSE 150

Logic III. Introduction to Artificial Intelligence CSE 150 Logic III Introduction to Artificial Intelligence CSE 150 Outline Last Lecture Propositional Logic and Sound inference rules Introduction First order logic Symbols, Variables, Functions, Predicates This

More information

Strong AI vs. Weak AI Automated Reasoning

Strong AI vs. Weak AI Automated Reasoning Strong AI vs. Weak AI Automated Reasoning George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Artificial intelligence can be classified into two categories:

More information

CS 730/730W/830: Intro AI

CS 730/730W/830: Intro AI CS 730/730W/830: Intro AI 1 handout: slides 730W journal entries were due Wheeler Ruml (UNH) Lecture 9, CS 730 1 / 16 Logic First-Order Logic The Joy of Power Wheeler Ruml (UNH) Lecture 9, CS 730 2 / 16

More information

Section Summary. Section 1.5 9/9/2014

Section Summary. Section 1.5 9/9/2014 Section 1.5 Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements into Statements involving Nested Quantifiers Translated

More information

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

Reasoning. Inference. Knowledge Representation 4/6/2018. User Reasoning Robotics First-order logic Chapter 8-Russel Representation and Reasoning In order to determine appropriate actions to take, an intelligent system needs to represent information about the world

More information

MAI0203 Lecture 7: Inference and Predicate Calculus

MAI0203 Lecture 7: Inference and Predicate Calculus MAI0203 Lecture 7: Inference and Predicate Calculus Methods of Artificial Intelligence WS 2002/2003 Part II: Inference and Knowledge Representation II.7 Inference and Predicate Calculus MAI0203 Lecture

More information

Convert to clause form:

Convert to clause form: Convert to clause form: Convert the following statement to clause form: x[b(x) ( y [ Q(x,y) P(y) ] y [ Q(x,y) Q(y,x) ] y [ B(y) E(x,y)] ) ] 1- Eliminate the implication ( ) E1 E2 = E1 E2 x[ B(x) ( y [

More information

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

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations Logic Propositions and logical operations Main concepts: propositions truth values propositional variables logical operations 1 Propositions and logical operations A proposition is the most basic element

More information

Logic - recap. So far, we have seen that: Logic is a language which can be used to describe:

Logic - recap. So far, we have seen that: Logic is a language which can be used to describe: Logic - recap So far, we have seen that: Logic is a language which can be used to describe: Statements about the real world The simplest pieces of data in an automatic processing system such as a computer

More information

Propositional and First-Order Logic

Propositional and First-Order Logic Propositional and irst-order Logic 1 Propositional Logic 2 Propositional logic Proposition : A proposition is classified as a declarative sentence which is either true or false. eg: 1) It rained yesterday.

More information

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

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic: x NOT ~x x y AND x /\ y x y OR x \/ y Figure 1: Types of gates in a digital circuit. CS2742 midterm test 2 study sheet Boolean circuits: Boolean circuits is a generalization of Boolean formulas in which

More information

COMP9414: Artificial Intelligence First-Order Logic

COMP9414: Artificial Intelligence First-Order Logic COMP9414, Wednesday 13 April, 2005 First-Order Logic 2 COMP9414: Artificial Intelligence First-Order Logic Overview Syntax of First-Order Logic Semantics of First-Order Logic Conjunctive Normal Form Wayne

More information

A. Propositional Logic

A. Propositional Logic CmSc 175 Discrete Mathematics A. Propositional Logic 1. Statements (Propositions ): Statements are sentences that claim certain things. Can be either true or false, but not both. Propositional logic deals

More information

First Order Logic: Syntax and Semantics

First Order Logic: Syntax and Semantics CS1081 First Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Problems Propositional logic isn t very expressive As an example, consider p = Scotland won on Saturday

More information

Mat 243 Exam 1 Review

Mat 243 Exam 1 Review OBJECTIVES (Review problems: on next page) 1.1 Distinguish between propositions and non-propositions. Know the truth tables (i.e., the definitions) of the logical operators,,,, and Write truth tables for

More information

Inference in Propositional Logic

Inference in Propositional Logic Inference in Propositional Logic Deepak Kumar November 2017 Propositional Logic A language for symbolic reasoning Proposition a statement that is either True or False. E.g. Bryn Mawr College is located

More information

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms

More information

First-Order Logic. Announcements. General Logic. PL Review: Truth Tables. First-Order Logic. PL Review: Inference Rules

First-Order Logic. Announcements. General Logic. PL Review: Truth Tables. First-Order Logic. PL Review: Inference Rules irst-order Logic Announcements Homework #2 is assigned, it is due Monday, July 7 (1 week from today) Burr H. Settles CS-540, UW-Madison www.cs.wisc.edu/~cs540-1 Summer 2003 Project proposals are due today

More information

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

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions Review Propositions, propositional operators, truth tables Logical Equivalences. Tautologies & contradictions Some common logical equivalences Predicates & quantifiers Some logical equivalences involving

More information

cis32-ai lecture # 18 mon-3-apr-2006

cis32-ai lecture # 18 mon-3-apr-2006 cis32-ai lecture # 18 mon-3-apr-2006 today s topics: propositional logic cis32-spring2006-sklar-lec18 1 Introduction Weak (search-based) problem-solving does not scale to real problems. To succeed, problem

More information

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

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares

More information

Advanced Topics in LP and FP

Advanced Topics in LP and FP Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

More information

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic Propositional Logic Reading: Chapter 7.1, 7.3 7.5 [ased on slides from Jerry Zhu, Louis Oliphant and ndrew Moore] Logic If the rules of the world are presented formally, then a decision maker can use logical

More information

Propositional Resolution Introduction

Propositional Resolution Introduction Propositional Resolution Introduction (Nilsson Book Handout) Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 SYNTAX dictionary Literal any propositional VARIABLE

More information

Introducing Proof 1. hsn.uk.net. Contents

Introducing Proof 1. hsn.uk.net. Contents Contents 1 1 Introduction 1 What is proof? 1 Statements, Definitions and Euler Diagrams 1 Statements 1 Definitions Our first proof Euler diagrams 4 3 Logical Connectives 5 Negation 6 Conjunction 7 Disjunction

More information

Artificial Intelligence Knowledge Representation I

Artificial Intelligence Knowledge Representation I Artificial Intelligence Knowledge Representation I Agents that reason logically knowledge-based approach implement agents that know about their world and reason about possible courses of action needs to

More information

Logic and Inferences

Logic and Inferences Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional

More information

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional Logical Operators Conjunction Disjunction Negation Exclusive Or Implication Biconditional 1 Statement meaning p q p implies q if p, then q if p, q when p, q whenever p, q q if p q when p q whenever p p

More information

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic Predicate Logic Predicate Logic (Rosen, Chapter 1.4-1.6) TOPICS Predicate Logic Quantifiers Logical Equivalence Predicate Proofs Some statements cannot be expressed in propositional logic, such as: All

More information

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

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017 3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,

More information

Chapter 2: The Logic of Quantified Statements

Chapter 2: The Logic of Quantified Statements Chapter 2: The Logic of Quantified Statements Topics include 2.1, 2.2 Predicates and Quantified Statements, 2.3 Statements with Multiple Quantifiers, and 2.4 Arguments with Quantified Statements. cs1231y

More information

Logic. (Propositional Logic)

Logic. (Propositional Logic) Logic (Propositional Logic) 1 REPRESENTING KNOWLEDGE: LOGIC Logic is the branch of mathematics / philosophy concerned with knowledge and reasoning Aristotle distinguished between three types of arguments:

More information

First order Logic ( Predicate Logic) and Methods of Proof

First order Logic ( Predicate Logic) and Methods of Proof First order Logic ( Predicate Logic) and Methods of Proof 1 Outline Introduction Terminology: Propositional functions; arguments; arity; universe of discourse Quantifiers Definition; using, mixing, negating

More information

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

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic Propositional logic Logical connectives Rules for wffs Truth tables for the connectives Using Truth Tables to evaluate

More information

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows. Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

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

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

Proof. Theorems. Theorems. Example. Example. Example. Part 4. The Big Bang Theory

Proof. Theorems. Theorems. Example. Example. Example. Part 4. The Big Bang Theory Proof Theorems Part 4 The Big Bang Theory Theorems A theorem is a statement we intend to prove using existing known facts (called axioms or lemmas) Used extensively in all mathematical proofs which should

More information

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

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1 Propositional Logic: Syntax and Natural Deduction 1 The Plot That Will Unfold I want to provide some key historical and intellectual context to the model theoretic approach to natural language semantics,

More information

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

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) 2 Knowledge Representation represent knowledge about the world in a manner that

More information

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE 1 CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 February 5, 2015 2 Announcements Homework 1 is due now. Homework 2 will be posted on the web site today. It is due Thursday, Feb. 12 at 10am in class.

More information

Predicate Calculus lecture 1

Predicate Calculus lecture 1 Predicate Calculus lecture 1 Section 1.3 Limitation of Propositional Logic Consider the following reasoning All cats have tails Gouchi is a cat Therefore, Gouchi has tail. MSU/CSE 260 Fall 2009 1 MSU/CSE

More information

6. Logical Inference

6. Logical Inference Artificial Intelligence 6. Logical Inference Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder University of Zagreb Faculty of Electrical Engineering and Computing Academic Year 2016/2017 Creative Commons

More information

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional. Review Propositional Logic Propositions atomic and compound Operators: negation, and, or, xor, implies, biconditional Truth tables A closer look at implies Translating from/ to English Converse, inverse,

More information

Deductive Systems. Lecture - 3

Deductive Systems. Lecture - 3 Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth

More information

Logic. Propositional Logic: Syntax. Wffs

Logic. Propositional Logic: Syntax. Wffs Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

CS 730/830: Intro AI. 3 handouts: slides, asst 6, asst 7. Wheeler Ruml (UNH) Lecture 12, CS / 16. Reasoning.

CS 730/830: Intro AI. 3 handouts: slides, asst 6, asst 7. Wheeler Ruml (UNH) Lecture 12, CS / 16. Reasoning. CS 730/830: Intro AI 3 handouts: slides, asst 6, asst 7 Wheeler Ruml (UNH) Lecture 12, CS 730 1 / 16 Logic First-Order Logic The Joy of Power in First-order Logic Wheeler Ruml (UNH) Lecture 12, CS 730

More information

Lecture 3 : Predicates and Sets DRAFT

Lecture 3 : Predicates and Sets DRAFT CS/Math 240: Introduction to Discrete Mathematics 1/25/2010 Lecture 3 : Predicates and Sets Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we discussed propositions, which are

More information

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)

More information

Logic. Quantifiers. (real numbers understood). x [x is rotten in Denmark]. x<x+x 2 +1

Logic. Quantifiers. (real numbers understood). x [x is rotten in Denmark]. x<x+x 2 +1 Logic One reason for studying logic is that we need a better notation than ordinary English for expressing relationships among various assertions or hypothetical states of affairs. A solid grounding in

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information

Rules Build Arguments Rules Building Arguments

Rules Build Arguments Rules Building Arguments Section 1.6 1 Section Summary Valid Arguments Inference Rules for Propositional Logic Using Rules of Inference to Build Arguments Rules of Inference for Quantified Statements Building Arguments for Quantified

More information

1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology

More information

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them:

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them: Completeness in the Monadic Predicate Calculus We have a system of eight rules of proof. Let's list them: PI At any stage of a derivation, you may write down a sentence φ with {φ} as its premiss set. TC

More information

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

Logic Overview, I. and T T T T F F F T F F F F Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical

More information

Announcements CompSci 102 Discrete Math for Computer Science

Announcements CompSci 102 Discrete Math for Computer Science Announcements CompSci 102 Discrete Math for Computer Science Read for next time Chap. 1.4-1.6 Recitation 1 is tomorrow Homework will be posted by Friday January 19, 2012 Today more logic Prof. Rodger Most

More information

Proposi'onal Logic Not Enough

Proposi'onal Logic Not Enough Section 1.4 Proposi'onal Logic Not Enough If we have: All men are mortal. Socrates is a man. Socrates is mortal Compare to: If it is snowing, then I will study discrete math. It is snowing. I will study

More information

22c:145 Artificial Intelligence

22c:145 Artificial Intelligence 22c:145 Artificial Intelligence Fall 2005 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2001-05 Cesare Tinelli and Hantao Zhang. a a These notes are copyrighted material and may not

More information

173 Logic and Prolog 2013 With Answers and FFQ

173 Logic and Prolog 2013 With Answers and FFQ 173 Logic and Prolog 2013 With Answers and FFQ Please write your name on the bluebook. You may have two sides of handwritten notes. There are 75 points (minutes) total. Stay cool and please write neatly.

More information

Logic: Propositional Logic (Part I)

Logic: Propositional Logic (Part I) Logic: Propositional Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.

More information

Topic #3 Predicate Logic. Predicate Logic

Topic #3 Predicate Logic. Predicate Logic Predicate Logic Predicate Logic Predicate logic is an extension of propositional logic that permits concisely reasoning about whole classes of entities. Propositional logic treats simple propositions (sentences)

More information

Announcements. Today s Menu

Announcements. Today s Menu Announcements Reading Assignment: > Nilsson chapters 13-14 Announcements: > LISP and Extra Credit Project Assigned Today s Handouts in WWW: > Homework 10-13 > Outline for Class 26 > www.mil.ufl.edu/eel5840

More information

Logical Agent & Propositional Logic

Logical Agent & Propositional Logic Logical Agent & Propositional Logic Berlin Chen 2005 References: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 7 2. S. Russell s teaching materials Introduction The representation

More information

Knowledge based Agents

Knowledge based Agents Knowledge based Agents Shobhanjana Kalita Dept. of Computer Science & Engineering Tezpur University Slides prepared from Artificial Intelligence A Modern approach by Russell & Norvig Knowledge Based Agents

More information

Inference in first-order logic

Inference in first-order logic CS 57 Introduction to AI Lecture 5 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB (a

More information

Chapter 16. Logic Programming. Topics. Logic Programming. Logic Programming Paradigm

Chapter 16. Logic Programming. Topics. Logic Programming. Logic Programming Paradigm Topics Chapter 16 Logic Programming Introduction Predicate Propositions Clausal Form Horn 2 Logic Programming Paradigm AKA Declarative Paradigm The programmer Declares the goal of the computation (specification

More information

COMP4418: Knowledge Representation and Reasoning First-Order Logic

COMP4418: Knowledge Representation and Reasoning First-Order Logic COMP4418: Knowledge Representation and Reasoning First-Order Logic Maurice Pagnucco School of Computer Science and Engineering University of New South Wales NSW 2052, AUSTRALIA morri@cse.unsw.edu.au COMP4418

More information

ITS336 Lecture 6 First-Order Logic

ITS336 Lecture 6 First-Order Logic ITS6 Lecture 6 First-Order Logic 6.1 Syntax for FOL Basic Elements of FOL Constant Symbols A constant is an specific object such as a person name Tom, a particular apple etc. Variable Symbols A countably

More information

Supplementary Logic Notes CSE 321 Winter 2009

Supplementary Logic Notes CSE 321 Winter 2009 1 Propositional Logic Supplementary Logic Notes CSE 321 Winter 2009 1.1 More efficient truth table methods The method of using truth tables to prove facts about propositional formulas can be a very tedious

More information

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson Predicate Calculus Formal Methods in Verification of Computer Systems Jeremy Johnson Outline 1. Motivation 1. Variables, quantifiers and predicates 2. Syntax 1. Terms and formulas 2. Quantifiers, scope

More information

Logic and Reasoning. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Logic and Reasoning. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Logic and Reasoning Foundations of Computing Science Pallab Dasgupta Professor, Dept. of Computer Sc & Engg 2 Knowledge and Reasoning Representation, Reasoning and Logic Propositional Logic First-Order

More information

Propositional Logic Language

Propositional Logic Language Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite

More information

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

473 Topics. Knowledge Representation III First-Order Logic. Logic-Based KR. Propositional. Logic vs. First Order 473 Topics Knowledge Representation III First-Order Logic CSE 473 Perception NLP Robotics Multi-agent Inference Logic Supervised Learning Knowledge Representation Search Problem Spaces Agency Reinforcement

More information

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics Unit I LOGIC AND PROOFS B. Thilaka Applied Mathematics UNIT I LOGIC AND PROOFS Propositional Logic Propositional equivalences Predicates and Quantifiers Nested Quantifiers Rules of inference Introduction

More information

Logic and Proof. Aiichiro Nakano

Logic and Proof. Aiichiro Nakano Logic and Proof Aiichiro Nakano Collaboratory for Advanced Computing & Simulations Department of Computer Science Department of Physics & Astronomy Department of Chemical Engineering & Materials Science

More information

1 Predicates and Quantifiers

1 Predicates and Quantifiers 1 Predicates and Quantifiers We have seen how to represent properties of objects. For example, B(x) may represent that x is a student at Bryn Mawr College. Here B stands for is a student at Bryn Mawr College

More information

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

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig. 22c:145 Artificial Intelligence First-Order Logic Readings: Chapter 8 of Russell & Norvig. Einstein s Puzzle in Logic We used propositinal variables to specify everything: x 1 = house #1 is red ; x 2 =

More information

Inference in first-order logic

Inference in first-order logic CS 270 Foundations of AI Lecture 4 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square First-order logic FOL More epressive than propositional logic Advantages: Represents

More information

CSC242: Intro to AI. Lecture 13. Thursday, February 28, 13

CSC242: Intro to AI. Lecture 13. Thursday, February 28, 13 CSC242: Intro to AI Lecture 13 Recap Rooms adjacent to pits will have breezes Socrates is a person All people are mortal Anybody s grandmother is either their mother s or their father s mother Elements

More information

CS 771 Artificial Intelligence. Propositional Logic

CS 771 Artificial Intelligence. Propositional Logic CS 771 Artificial Intelligence Propositional Logic Why Do We Need Logic? Problem-solving agents were very inflexible hard code every possible state E.g., in the transition of 8-puzzle problem, knowledge

More information

Introduction to Logic

Introduction to Logic Introduction to Logic 1 What is Logic? The word logic comes from the Greek logos, which can be translated as reason. Logic as a discipline is about studying the fundamental principles of how to reason

More information

Predicate in English. Predicates and Quantifiers. Predicate in Logic. Propositional Functions: Prelude. Propositional Function

Predicate in English. Predicates and Quantifiers. Predicate in Logic. Propositional Functions: Prelude. Propositional Function Predicates and Quantifiers Chuck Cusack Predicate in English In English, a sentence has 2 parts: the subject and the predicate. The predicate is the part of the sentence that states something about the

More information

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

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit: Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and

More information

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003 MATH 22 Lecture F: 9/18/2003 INFERENCE & QUANTIFICATION Sixty men can do a piece of work sixty times as quickly as one man. One man can dig a post-hole in sixty seconds. Therefore, sixty men can dig a

More information

Section 2.1: Introduction to the Logic of Quantified Statements

Section 2.1: Introduction to the Logic of Quantified Statements Section 2.1: Introduction to the Logic of Quantified Statements In the previous chapter, we studied a branch of logic called propositional logic or propositional calculus. Loosely speaking, propositional

More information

Predicate Logic: Sematics Part 1

Predicate Logic: Sematics Part 1 Predicate Logic: Sematics Part 1 CS402, Spring 2018 Shin Yoo Predicate Calculus Propositional logic is also called sentential logic, i.e. a logical system that deals with whole sentences connected with

More information

Discrete Structures for Computer Science

Discrete Structures for Computer Science Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #4: Predicates and Quantifiers Based on materials developed by Dr. Adam Lee Topics n Predicates n

More information

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Description Logics. Foundations of Propositional Logic.   franconi. Enrico Franconi (1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge

More information

Propositional and First-Order Logic

Propositional and First-Order Logic Propositional and First-Order Logic Chapter 7.4 7.8, 8.1 8.3, 8.5 Some material adopted from notes by Andreas Geyer-Schulz and Chuck Dyer Logic roadmap overview Propositional logic (review) Problems with

More information

We have seen that the symbols,,, and can guide the logical

We have seen that the symbols,,, and can guide the logical CHAPTER 7 Quantified Statements We have seen that the symbols,,, and can guide the logical flow of algorithms. We have learned how to use them to deconstruct many English sentences into a symbolic form.

More information