OGIC 2.1 Propositional Calculus

Size: px
Start display at page:

Download "OGIC 2.1 Propositional Calculus"

Transcription

1 2 LOGIC 2. Propositional Calculus 2.. Definitions This concerns formulae or propositions, B, C,... which are statements which are True or False. If and B are formulae then the following are also formulae: Negation (NOT) Conjunction (ND) B Disjunction (OR) Β Unilateral Implication B Equality = B (same as B and B sometimes called Bilateral Implication) If a formula includes one or more of these operations it is called a composite formula; otherwise it is an atomic formula These can be defined explicitly in terms of truth tables. B B B =B B t t f t t t t t f f f t f f f t t f t f t f f t f f t t one row for each possible combination B is true only if and B are both true B is true if or B is true = B is true if and B have the same value B is true if is true and B is true or if is false and B is true or false. Complex formulae can be obtained by combining formulae and operators. Propositional calculus is concerned only with these formulae and operators, but does not look inside an atomic formula to see if it is true or false. Some formulae are unsatisfiable (never true), e.g. ( ) Some formulae are valid (always true), e.g. ( ) 2.2 Redundancy There is some redundancy in the set of connectives,,, expressed in De Morgan's laws, which are () ( B) equivalent to B (2) ( B) equivalent to B B Venn diagram These can be shown to be true using Venn diagrams or they can be proved using truth tables, e.g. for the st law: B B ( B) B B t t t f f f f t f t f f t f f t t f t f f f f f t t t t So columns 4 and 7 are the same for all possible values of & B. This proves the equivalence ( B) = B. Similarly for the 2nd law. Other examples (mostly obvious) are as follows: = T = F = T = = Commutation B = B B = B ssociation (B C) = ( B) C and similar for Distribution (B C) = ( B) ( C) and similar for & reversed lso ( B) = ( B) = Tautology T = T (the tautology is true for any formula ). T =

2 2..3 Example Simplify X = (( (B )) (C (D C))) Syntactic approach (B ) = ( B ) de Morgan = ( B) ( ) Distribution = ( B) T = T Tautology C (D C) = C (C D) Commutation = (C C) D ssociation = C D So X = T (C D) = C D In the semantic approach we could build a truth table for all 6 combinations of, B, C and D and show the two columns to be the same (much longer!). 2.4 Implication Some laws concerning implication. ( B) B Modus ponens ( ( B)) B Modus tollens (( B) B) (Syllogism) (( B) (B C)) ( C) Reductio ad absurbum( T) Each infers that if the LHS is t then the RHS is t. Example : it is snowing B : it is cold Modus Tollens states (( B) B) which states that if it is snowing implies it is cold, but it is not cold; then this infers that it is not snowing. Proof of Modus Tollens Use a Truth Table (5) (6) (5) (6) B B B ( B) ( B) t f t f f f t f f t t t t t t t f t f f t f t f t f t t So ((( B) B) ) = t for all and B values. Thus: Modus Tollens is proved. 2.5 NF or Normal Form ll formulas can be reduced to NF (Normal Form) in which the only operators acting on the tomic Formulas are, or. For example ( B C) D (X Y Z W) is in NF. To put in NF we need expressions for B and = B in NF. We can replace B by B (prove from our definition in 2..4 using truth tables) and = B by (( B) (B )) = (( Β) ( B )) Example () ( R (S P)) = (R (S P) = ((R S) (R P) Example (2) ( P Q) (S P) = (P Q) (S P) de Morgan = (P Q) (S P) = (P Q) (P S) Commutation = P (Q S) ssociation 2.2 Predicate Calculus 2.2. Definitions Predicate Calculus looks at the internal structure of formulae, and views these as predicates and a number of arguments. e.g. (i) Water is Wet Wet (Water) (ii) Peter cut the grass with a hook cut (Peter, the grass, a hook) (Note similarity with a semantic set in Chapter 5) In the above "cut" and "wet" are the predicates, the other identifiers are the arguments (or terms), the number being the "arity" of the predicate. rguments may be constants, variables, functions, true, false or other predicates. Constants: Variables: Height, Colour Functions: Father(George),Plus(5,6), verage (2.4, 3.6, 5.7, 8.9,... ) The number of arguments of a function is called the arity of the function (similar to a Predicate). Predicates: wet, cut, likes Example: Cut(father(Peter), the grass, a hook, from (2. pm), to (4. pm))

3 Loves(Son(Peter),Daughter(Maureen)) Operators Predicates may include the operators of Propositional calculus,,,, = and two others (variable quantifiers) x and x which constrain the variable x in the following formula or predicate. x(p(x)) means "there exists a variable x for which P(x) is true" x(p(x)) means "for all x P(x) is true". (Note: or cannot be constraints on predicates in st order predicate calculus, only on variables). So x must be a variable. [This course is only concerned with st order calculus.] Some relationships (showing that one of and is redundant) (a) x (P(x)) = x( P(x)) (b) x(p(x)) = x ( P(x)) (c) x(p(x) Q(x))= xp(x) xq(x) (d) x(p(x) Q(x))= x P(x) xq(x) Note: x P(x) = y P(y) Examples of domains is called the Existential Operator is called the the Universal Operator English Sentences More examples (a) Podge is a black cat is a (Podge, cat, colour (black)) (b) If there is snow tomorrow we will go skiing snows (tomorrow) go (we, skiing) (c) Nobody likes exams person (likes (person, exams)) (d) x(admires(jane,x) (good(x) clever (x)) human (x)) ll those Jane admires are good and clever. (e) Some students like studying. student (likes (student, studying)) x (... student (x)) (f) lternatively replace student by the fuzzy quantifier SOME student SOME student (like (student, studying)) This more accurately represents the meaning (see Section 2.3) Inference Take the famous example: () ll men are mortal x(man(x) mortal(x)) (2) Socrates is a man man (Socrates) So (3) Socrates is mortal mortal(socrates) We obtain (3) from () by noting that the universal operator x allows us to substitute any value in the domain of x and still have a true statement. Thus by substituting Socrates for x we get Man(Socrates) mortal (Socrates); and we infer the truth of (3) using Modus Ponens. This can be seen by writing: Man (Socrates) = Mortal (Socrates) = B If is true and B, then B is true In the above we had to match two statements () and (2). This is often not easy because of the variables in the predicates. (i) In the case of the universal operator,, matching can usually be obtained by a simple substitution, e.g. [Socrates/x] meaning [Socrates replaces x] (This is the notation used for a variable substitution). The algorithm used to determine such a substitution is called "Unification". (ii) In the case of the existential operator,, where possible, it is replaced by the constants which make the predicate true, e.g. x Parent (x, Tom) [meaning x is a parent of Tom] can be replaced by Parent (John, Tom) Parent (Jane, Tom) [meaning Tom has parents John & Jane] However, this is often not possible; for example y( x (Parent (x,y) person (x) person (y))) (Meaning all persons y have a parent x) cannot be replaced by predicates defining the parents of all persons. ristotle s Pile of Stones Stoa of ttalus cropolis, thens 2.3 Fuzzy Logic ristotle was the first to realise that logic based on T or F alone was not sufficient - because a future event E was neither T nor F but had only the potential of being T or F. Pot (E) =.7 (say) on scale [,]. Many events or facts have such fuzzy truth values.

4 2.3. Fuzzy and Crisp Sets (a) Fuzzy Set Consider the statement: : It is a sunny day. This means that there is a light cloud cover on the day. For what % (x%) cloud cover is True? The answer might be given as x < 3%. But what about 3% cloud cover? Is it still sunny? Obviously there is not a precise percentage separating sunny and not sunny. We overcome this problem by defining a membership function µ (x) for degrees of membership of which might be µ max µ (x) 3% 5% % Cloud Cover The set X defined for µ (x) > is called a fuzzy set. If µ max = and µ min = then the set is normalised. The value µ (x) can be considered as a "possibility", i.e. similar to the probability that belongs to the set X if it has the value x. This equals when x is close to % and drops to zero when x is above 5% in our example. Note µ (x) is not a probability: for example (x)dx µ as it would be for probability. Other examples: : Peter is old f : Peter is fairly old v : Peter is very old µ (age) f v 5 7 Note "fairly" and "very" are examples of fuzzy quantifiers (see S 2.3.4) (b) Crisp Set : Peter is old enough to vote has a membership function: µ (age) 8 age Such a set with µ (x) = for all = for all not is called a crisp set. This is the kind of set used in convential logic Engineering Example.

5 material (m) has a resistivity (r) =.34 units. This is a fuzzy value with a membership function: σ µ m (r) = exp{-(r -.34) 2 /2 σ 2 }and σ Type 2 Fuzzy Set But is σ correct? This too is a fuzzy value. When, as in this case, the values µ m (r) are themselves fuzzy we have a Type 2 Fuzzy set, the usual type of fuzzy set. (We can have Type 3, 4 etc. Fuzzy sets also). Uncertainty in µ can be defined in terms of an interval if y (x) µ (x) y 2 (x). So µ (x) appears like y 2 (x) µ (x) range of values y (x) x Fuzzy Predicates Consider the example Old paintings are usually rare. Rare items are expensive. So Old paintings are usually expensive. This fuzzy logic deduction depends on the fuzzy predicates: expensive, old, rare and fuzzy quantifiers: usually, In Fuzzy predicate logic the above example can be expressed as Old (Painting) Usually Rare (Painting) item (Rare (item) Expensive (item)) So by unification Rare (painting) Expensive (painting) pply the fuzzy quantifier to both sides: B C Usually Rare (Painting) Usually Expensive (Painting) B But Old (Painting) Usually Rare (Painting) C So Old (Painting) Usually Expensive (Painting) [Syllogism] Numerical Values These fuzzy quantifiers can be given numerical values as illustrated in the figure.

6 F Q (S).9 Fairly S.5.5 S.4 Very S.5.7. S where S = µ (x) for some predicate (like Old). This is sometimes called strength of truth of Similar curves can be drawn for other fuzzy quantifiers. The application of a fuzzy quantifier Q such as "very" or "fairly" has a numerical effect F Q (S) which varies with the strength of S as illustrated in the figure. Thus "very" changes a strength of.7 to about.4 and "fairly" changes it to about.9. Thus the effect of a quantifier is equivalent to an operator or function µ very old (X) = F very (µ old (X)) This supports our application of a fuzzy quantifier to both sides of an implication, as in the example: Rare Expensive Usually Rare Usually Expensive Various analytic forms have appeared in the literature for some of these quantifiers. [Note: term fuzzy modifer used sometimes, but we only use fuzzy quantifer] Operators Each fuzzy predicate is represented in fuzzy logic by a fuzzy set, but the logical operators,,,, = need redefinition for fuzzy values. (i) Define as having a membership µ (x) = - µ (x) This has the important property of crisp logic ( ) = We expect µ ( ) (x) = µ (x) for all x in fuzzy logic, which it is for the above definition since µ ( ) = - µ = - ( - µ ) = µ Possible definitions of the operators,, =, are as follows (ii) B µ B (x) = Min (µ (x), µ B (x)) For example, Reliable Inexpensive Both Years Car: Reliable and Inexpensive (iii) B µ B (x) = Max (µ (x), µ B (x)) (iv) =B We expect that this must be symmetric in & B. lso µ = = for all x This indicates the following µ =B (x) = - µ (x) - µ B (x) (v) B If is false, B is true

7 So if µ =, µ B = If is true, B is true if B is true B is false if B is false So if µ =, µ B = µ B is consistant with this. (+µ Β ) P line 2 µ Α Β line Q µ B µ This suggests the straight line (line ) in the figure, which is µ B = - µ (- µ B ) But we know µ = always. So this cannot be correct, as -µ (- µ ) always. So we try µ B = ( µ - µ B ) (line 2) But this > if µ < µ B, so this cannot be correct. This resulted in the final result. µ B = Min (, - ( µ - µ B ) ) (thick line) This has property µ =B = µ ( B) (B ) = min( µ B, µ B ) =... = - µ - µ B which is consistent with our earlier definition. But note µ as we would expect Fuzzy Values Many values in our knowledge do not have precise values. For example. (a) the weight of a hook (b) the weight a baby can lift (c) the distance a person can throw an object Yet a "fuzzy" knowledge of these values is critical to our understanding of language and to intelligence. For example - the weight of a fish hook can be described in terms of possibilities as in the figure below Possibility Weight of fish hook, Weight in grams The distance a person can throw a stone: Possibility. Distance in metres These fuzzy values are all part of the knowledge of a human.

8 If probabilities are used, the integrals under the curves equal. Probabilities are commonly used to express fuzziness (or uncertainty) in Expert Systems (see Chapter 3). More complex examples of fuzzy values are speech or fuzzy images of classes of items eg "a car" In the UK we have an image of something like a Ford Fiesta a "good car" is perhaps a Vauxhall Vectra an expensive car: Mercedes In US it is much bigger: Chevy In Germany "a car" is a BMW So the fuzzy image "car" depends on person and place pproximate Representation of Fuzziness To facilitate computation, for many problems it is sufficient to use straight lines as in the diagrams: Example Old ge ge F Q (S) Q: Very Q s = µ (x) The commutative, associative, distributative and De Morgan s laws are the subject of a homework. The laws hold for the operators but not for the operators = Modus ponens, Modus tollens, Syllogism, Reductio ad absurbum only hold approximately, i.e. the laws are fuzzy like the predicates. 2.5 PPLICTIONS of FUZZY LOGIC lthough Fuzzy Logic was first concerned with language and statements, it is still little used in Linguistics. It underlies uncertain reasoning in Expert Systems and has other applications from finance to earthquake prediction. But its main application today is in process control. n example is an automatic train approaching a station. To stop it may use crisp logic: if train < 5 m from station then apply brake at 5 m there is then a sudden jerk. In fuzzy logic if train is near station then slow train where near is a fuzzy predicate and slow is a fuzzy command which applies a brake with a pressure dependent on the truth value of near and other quantities like speed and de-acceleration. This fuzzy Logic allows the train to stop and leave the station smoothly (first used in JPN).

9 µ (D) D: Distance (m) The principal is now used to smooth the operation of many machines (including video recorders) and for the control of whole chemical processes in factories. The basic structure is as follows: Begin End Process Parameters (e.g. Brake Pressure) Sensor Data (e.g. Distance) Defuzzification Fuzzification Fuzzy Parameter µ (e.g. Pressure) Computer (Inference Engine) Fuzzy data (µ (e.g. Distance)) Knowledge Base Data, Formulae There can be several fuzzy quantities, a large number of formulae, data items and laws in a complex process: eg. If (flow in pipe k is low) then (open valve T slightly). General Fuzzy Logic systems can now be purchased, e.g. MathWorks Fuzzy Logic Toolbox costs Logical Programming Writing software to represent fuzzy or crisp predicates and laws, and to make logical deduction, as in an Expert System, is not straightforward or natural in procedural languages such as Modula, FORTRN or C. Special languages have been developed for this purpose: LISP, PROLOG, POP and others. We here describe PROLOG, the most successful until now Statements Prolog statement is written like a predicate e.g. likes (tom, ice-cream). age (jack, 24). [note lower case] (rather than a command in a conventional language: such as X:= 3*T + 2;) If statements such as the above are typed into a PROLOG program they are immediately stored as knowledge in a PROLOG knowledge base. ny predicate can be stored in this way Questions To pose a question: Is predicate a true? we write? - a. PROLOG then explores its knowledge base to find if it can deduce the truth of a, e.g.? - likes (tom, ice-cream). This matches with our first example, so the answer is: yes It answers no if a is false or unknown Conjunction To ask a question? - a, b, c, d. asks if a b c d are true. It does this by examining the truth of each in turn. Example;? - drives (jack, fast-car), handsome (jack), rich (jack).

10 To find if anyone drives a fast car we write? - drives (_, fast-car). Here _ is like a wild card or predicate; it is called an anonymous variable and the response is yes if any statement like drives (jack, fast-car). is found. e.g.? - likes( _, ann ). Does anyone like nn? Variables To find who likes nn, we can use a variable, for example? - likes(person, ann). variable variable starts with a capital. If it finds a statement likes(jack, ann). Then it replies Person = jack. which is more useful to nn than just yes! If nn types ; and hits the return key she may find another statement: likes(bob, ann). Example? - age(jack,). Response = 24 Example 2? - studies (Student,Course). note two variables Response might be Student = john; Course = maths; Student = jane; Course = physics;... Course = maths; no Example 3? - studies (john,course), studies (jane,course). will find any common course attended by john and jane; Course = maths Lists list is written [a, b, c, d, e, f, g] shorthand for this list is [a V] or [a, b, c V] when V is a variable equal to the tail of the list; i.e Rules The rule V = [d, e, f, g] in second case. [ ] is the empty list [jack] is a list of one element jack B is written B: -. The statement G: -, B. is the rule and B G Example If child_of (mary, jack). means Mary is the child of Jack. parent_of (p, c). means p is the parent of c then we can write the obvious rule: parent_of (x,y): - child_of (y,x). So? -parent_of (Parent,mary) will first look in the knowledge base for predicates of the form parent_of(..., mary). If none is found it looks for rules which imply such a statement and finds the above rule. By replacing y by mary and x by Parent it deduces: parent_of(parent,mary): - child_of(mary,parent). and now looks for predicates of the form: child_of(mary,...). It finds child_of(mary, jack). and returns Parent = jack This demonstrates that backward-chaining is carried out automatically by PROLOG. So are several other processes in I. However, Object-Oriented languages like C ++ and JV, can also include objects for all of these processes and they are generally more flexible.

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional) Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.6) TOPICS Propositional Logic Logical Operators Truth Tables Implication Logical Equivalence Inference Rules What you should know about propositional

More information

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference Logic? Propositional Logic (Rosen, Chapter 1.1 1.3) TOPICS Propositional Logic Truth Tables Implication Logical Proofs 10/1/12 CS160 Fall Semester 2012 2 What is logic? Logic is a truth-preserving system

More information

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

It rains now. (true) The followings are not propositions. Chapter 8 Fuzzy Logic Formal language is a language in which the syntax is precisely given and thus is different from informal language like English and French. The study of the formal languages is the

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

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

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B Discrete Math Review Discrete Math Review (Rosen, Chapter 1.1 1.7, 5.5) TOPICS Sets and Functions Propositional and Predicate Logic Logical Operators and Truth Tables Logical Equivalences and Inference

More information

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

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

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

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

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference Math.3336: Discrete Mathematics Nested Quantifiers/Rules of Inference Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu

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

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

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

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

Predicate Logic & Quantification

Predicate Logic & Quantification Predicate Logic & Quantification Things you should do Homework 1 due today at 3pm Via gradescope. Directions posted on the website. Group homework 1 posted, due Tuesday. Groups of 1-3. We suggest 3. In

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

Intro to Logic and Proofs

Intro to Logic and Proofs Intro to Logic and Proofs Propositions A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. Examples: It is raining today. Washington

More information

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1) CS100: DISCREE SRUCURES Lecture 5: Logic (Ch1) Lecture Overview 2 Statement Logical Connectives Conjunction Disjunction Propositions Conditional Bio-conditional Converse Inverse Contrapositive Laws of

More information

THE LOGIC OF COMPOUND STATEMENTS

THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS All dogs have four legs. All tables have four legs. Therefore, all dogs are tables LOGIC Logic is a science of the necessary laws of thought, without which no employment

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

software design & management Gachon University Chulyun Kim

software design & management Gachon University Chulyun Kim Gachon University Chulyun Kim 2 Outline Propositional Logic Propositional Equivalences Predicates and Quantifiers Nested Quantifiers Rules of Inference Introduction to Proofs 3 1.1 Propositional Logic

More information

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Originals slides by Dr. Baek and Dr. Still, adapted by J. Stelovsky Based on slides Dr. M. P. Frank and Dr. J.L. Gross

More information

Predicate Logic. Andreas Klappenecker

Predicate Logic. Andreas Klappenecker Predicate Logic Andreas Klappenecker Predicates A function P from a set D to the set Prop of propositions is called a predicate. The set D is called the domain of P. Example Let D=Z be the set of integers.

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

Introduction to fuzzy logic

Introduction to fuzzy logic Introduction to fuzzy logic Andrea Bonarini Artificial Intelligence and Robotics Lab Department of Electronics and Information Politecnico di Milano E-mail: bonarini@elet.polimi.it URL:http://www.dei.polimi.it/people/bonarini

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

(Refer Slide Time: 02:20)

(Refer Slide Time: 02:20) Discrete Mathematical Structures Dr. Kamala Krithivasan Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 5 Logical Inference In the last class we saw about

More information

Chapter 1 Elementary Logic

Chapter 1 Elementary Logic 2017-2018 Chapter 1 Elementary Logic The study of logic is the study of the principles and methods used in distinguishing valid arguments from those that are not valid. The aim of this chapter is to help

More information

ECOM Discrete Mathematics

ECOM Discrete Mathematics ECOM 2311- Discrete Mathematics Chapter # 1 : The Foundations: Logic and Proofs Fall, 2013/2014 ECOM 2311- Discrete Mathematics - Ch.1 Dr. Musbah Shaat 1 / 85 Outline 1 Propositional Logic 2 Propositional

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

DISCRETE MATHEMATICS BA202

DISCRETE MATHEMATICS BA202 TOPIC 1 BASIC LOGIC This topic deals with propositional logic, logical connectives and truth tables and validity. Predicate logic, universal and existential quantification are discussed 1.1 PROPOSITION

More information

Part I: Propositional Calculus

Part I: Propositional Calculus Logic Part I: Propositional Calculus Statements Undefined Terms True, T, #t, 1 False, F, #f, 0 Statement, Proposition Statement/Proposition -- Informal Definition Statement = anything that can meaningfully

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

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes!

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! Logic and Proof On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA 341 001 2 Requirements for Proof 1. Mutual understanding

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

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

On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA

On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA Logic and Proof On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA 341 001 2 Requirements for Proof 1. Mutual understanding

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

Logic and Propositional Calculus

Logic and Propositional Calculus CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know

More information

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

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes: Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements. An inference mechanism (a collection of rules) to

More information

Formal (Natural) Deduction for Predicate Calculus

Formal (Natural) Deduction for Predicate Calculus Formal (Natural) Deduction for Predicate Calculus Lila Kari University of Waterloo Formal (Natural) Deduction for Predicate Calculus CS245, Logic and Computation 1 / 42 Formal deducibility for predicate

More information

Chapter 1: The Logic of Compound Statements. January 7, 2008

Chapter 1: The Logic of Compound Statements. January 7, 2008 Chapter 1: The Logic of Compound Statements January 7, 2008 Outline 1 1.1 Logical Form and Logical Equivalence 2 1.2 Conditional Statements 3 1.3 Valid and Invalid Arguments Central notion of deductive

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

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

Test 1 Solutions(COT3100) (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology:

Test 1 Solutions(COT3100) (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology: Test 1 Solutions(COT3100) Sitharam (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology: ( q (p q) (r p)) r Solution. This is Modus Tollens applied twice, with transitivity

More information

1 The Foundation: Logic and Proofs

1 The Foundation: Logic and Proofs 1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( 명제 ) a declarative sentence that is either true or false, but not both nor neither letters denoting propositions p, q, r, s, T:

More information

Logic: The Big Picture

Logic: The Big Picture Logic: The Big Picture A typical logic is described in terms of syntax: what are the legitimate formulas semantics: under what circumstances is a formula true proof theory/ axiomatization: rules for proving

More information

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic? Logic: Truth Tables CS160 Rosen Chapter 1 Logic? 1 What is logic? Logic is a truth-preserving system of inference Truth-preserving: If the initial statements are true, the inferred statements will be true

More information

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38 Propositional Logic Jason Filippou CMSC250 @ UMCP 05-31-2016 ason Filippou (CMSC250 @ UMCP) Propositional Logic 05-31-2016 1 / 38 Outline 1 Syntax 2 Semantics Truth Tables Simplifying expressions 3 Inference

More information

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker CSCE 222 Discrete Structures for Computing Predicate Logic Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Predicates A function P from a set D to the set Prop of propositions is called a predicate.

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

Predicate Logic 1. The Need for Predicate Logic. The Need for Predicate Logic. The Need for Predicate Logic. The Need for Predicate Logic

Predicate Logic 1. The Need for Predicate Logic. The Need for Predicate Logic. The Need for Predicate Logic. The Need for Predicate Logic Predicate Logic 1 Background to Logic Paradigm Joseph Spring School of Computer Science This Lecture We consider the following topics: The Closed World Assumption Predicates in Extension The Universal

More information

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

2. Use quantifiers to express the associative law for multiplication of real numbers. 1. Define statement function of one variable. When it will become a statement? Statement function is an expression containing symbols and an individual variable. It becomes a statement when the variable

More information

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus

More information

Readings: Conjecture. Theorem. Rosen Section 1.5

Readings: Conjecture. Theorem. Rosen Section 1.5 Readings: Conjecture Theorem Lemma Lemma Step 1 Step 2 Step 3 : Step n-1 Step n a rule of inference an axiom a rule of inference Rosen Section 1.5 Provide justification of the steps used to show that a

More information

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.3) TOPICS Propositional Logic Logical Operations Equivalences Predicate Logic CS160 - Spring Semester 2014 2 What

More information

Logical Agents. September 14, 2004

Logical Agents. September 14, 2004 Logical Agents September 14, 2004 The aim of AI is to develop intelligent agents that can reason about actions and their effects and about the environment, create plans to achieve a goal, execute the plans,

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

Discrete Mathematics and Its Applications

Discrete Mathematics and Its Applications Discrete Mathematics and Its Applications Lecture 1: The Foundations: Logic and Proofs (1.3-1.5) MING GAO DASE @ ECNU (for course related communications) mgao@dase.ecnu.edu.cn Sep. 19, 2017 Outline 1 Logical

More information

Fuzzy Sets and Systems. Lecture 4 (Fuzzy Logic) Bu- Ali Sina University Computer Engineering Dep. Spring 2010

Fuzzy Sets and Systems. Lecture 4 (Fuzzy Logic) Bu- Ali Sina University Computer Engineering Dep. Spring 2010 Fuzzy Sets and Systems Lecture 4 (Fuzzy Logic) Bu- Ali Sina University Computer Engineering Dep. Spring 2010 Outline Fuzzy Logic Classical logic- an overview Multi-valued logic Fuzzy logic Fuzzy proposition

More information

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Why Learning Logic? Logic. Propositional Logic. Compound Propositions Logic Objectives Propositions and compound propositions Negation, conjunction, disjunction, and exclusive or Implication and biconditional Logic equivalence and satisfiability Application of propositional

More information

Review: Potential stumbling blocks

Review: Potential stumbling blocks Review: Potential stumbling blocks Whether the negation sign is on the inside or the outside of a quantified statement makes a big difference! Example: Let T(x) x is tall. Consider the following: x T(x)

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

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University COMP 182 Algorithmic Thinking Proofs Luay Nakhleh Computer Science Rice University 1 Reading Material Chapter 1, Section 3, 6, 7, 8 Propositional Equivalences The compound propositions p and q are called

More information

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel LECTURE NOTES on DISCRETE MATHEMATICS Eusebius Doedel 1 LOGIC Introduction. First we introduce some basic concepts needed in our discussion of logic. These will be covered in more detail later. A set is

More information

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Originals slides by Dr. Baek and Dr. Still, adapted by J. Stelovsky Based on slides Dr. M. P. Frank and Dr. J.L. Gross

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

Rules of Inference. Arguments and Validity

Rules of Inference. Arguments and Validity Arguments and Validity A formal argument in propositional logic is a sequence of propositions, starting with a premise or set of premises, and ending in a conclusion. We say that an argument is valid if

More information

1 The Foundation: Logic and Proofs

1 The Foundation: Logic and Proofs 1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( ) a declarative sentence that is either true or false, but not both nor neither letters denoting propostions p, q, r, s, T: true

More information

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier Section 1.4 Section Summary Predicate logic Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Propositional Logic

More information

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship.

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship. LOGIC In mathematical and everyday English language, we frequently use logic to express our thoughts verbally and in writing. We also use logic in numerous other areas such as computer coding, probability,

More information

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the

More information

Where are my glasses?

Where are my glasses? Proposition logic and argument CISC2100, Spring 2017 X.Zhang 1 Where are my glasses? I know the following statements are true. 1. If I was reading the newspaper in the kitchen, then my glasses are on the

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. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another. Math 0413 Appendix A.0 Logic Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another. This type of logic is called propositional.

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 #6: Rules of Inference Based on materials developed by Dr. Adam Lee Today s topics n Rules of inference

More information

COMP 2600: Formal Methods for Software Engineeing

COMP 2600: Formal Methods for Software Engineeing COMP 2600: Formal Methods for Software Engineeing Dirk Pattinson Semester 2, 2013 What do we mean by FORMAL? Oxford Dictionary in accordance with convention or etiquette or denoting a style of writing

More information

Predicate Calculus - Syntax

Predicate Calculus - Syntax Predicate Calculus - Syntax Lila Kari University of Waterloo Predicate Calculus - Syntax CS245, Logic and Computation 1 / 26 The language L pred of Predicate Calculus - Syntax L pred, the formal language

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

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

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier Section 1.4 Section Summary Predicate logic Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Propositional Logic

More information

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013 Propositional Logic Argument Forms Ioan Despi despi@turing.une.edu.au University of New England July 19, 2013 Outline Ioan Despi Discrete Mathematics 2 of 1 Order of Precedence Ioan Despi Discrete Mathematics

More information

PROPOSITIONAL CALCULUS

PROPOSITIONAL CALCULUS PROPOSITIONAL CALCULUS A proposition is a complete declarative sentence that is either TRUE (truth value T or 1) or FALSE (truth value F or 0), but not both. These are not propositions! Connectives and

More information

Logic, Sets, and Proofs

Logic, Sets, and Proofs Logic, Sets, and Proofs David A. Cox and Catherine C. McGeoch Amherst College 1 Logic Logical Operators. A logical statement is a mathematical statement that can be assigned a value either true or false.

More information

The Logic of Compound Statements cont.

The Logic of Compound Statements cont. The Logic of Compound Statements cont. CSE 215, Computer Science 1, Fall 2011 Stony Brook University http://www.cs.stonybrook.edu/~cse215 Refresh from last time: Logical Equivalences Commutativity of :

More information

Resolution (14A) Young W. Lim 8/15/14

Resolution (14A) Young W. Lim 8/15/14 Resolution (14A) Young W. Lim Copyright (c) 2013-2014 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version

More information

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5 rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical

More information

Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments

Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments Section 1.6 Sec$on Summary Valid Arguments Inference Rules for Propositional Logic Building Arguments Inference Rules for Quantified Statements Building Arguments 2 Revisi$ng the Socrates Example We have

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

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives Logic Logic is study of abstract reasoning, specifically, concerned with whether reasoning is correct. Logic focuses on relationship among statements as opposed to the content of any particular statement.

More information

Math 3336: Discrete Mathematics Practice Problems for Exam I

Math 3336: Discrete Mathematics Practice Problems for Exam I Math 3336: Discrete Mathematics Practice Problems for Exam I The upcoming exam on Tuesday, February 26, will cover the material in Chapter 1 and Chapter 2*. You will be provided with a sheet containing

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

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

Computational Logic. Recall of First-Order Logic. Damiano Zanardini Computational Logic Recall of First-Order Logic Damiano Zanardini UPM European Master in Computational Logic (EMCL) School of Computer Science Technical University of Madrid damiano@fi.upm.es Academic

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

Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers

Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers Artificial Intelligence: Knowledge Representation and Reasoning Week 2 Assessment 1 - Answers 1. When is an inference rule {a1, a2,.., an} c sound? (b) a. When ((a1 a2 an) c) is a tautology b. When ((a1

More information

Propositional Logic: Syntax

Propositional Logic: Syntax Logic 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 programs) epistemic

More information

https://vu5.sfc.keio.ac.jp/slide/

https://vu5.sfc.keio.ac.jp/slide/ 1 FUNDAMENTALS OF LOGIC NO.7 PREDICATE LOGIC 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

Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)

Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional) Predicate Logic 1 Section Summary Predicates Variables Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Logic Programming

More information

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9 Typeset September 23, 2005 1 Statements or propositions Defn: A statement is an assertion

More information

Chapter 3. The Logic of Quantified Statements

Chapter 3. The Logic of Quantified Statements Chapter 3. The Logic of Quantified Statements 3.1. Predicates and Quantified Statements I Predicate in grammar Predicate refers to the part of a sentence that gives information about the subject. Example:

More information