Today s Lecture 4/13/ WFFs/ Free and Bound Variables 9.3 Proofs for Pred. Logic (4 new implicational rules)!

Size: px
Start display at page:

Download "Today s Lecture 4/13/ WFFs/ Free and Bound Variables 9.3 Proofs for Pred. Logic (4 new implicational rules)!"

Transcription

1 Today s Lecture 4/13/ WFFs/ Free and Bound Variables 9.3 Proofs for Pred. Logic (4 new implicational rules)!

2 Announcements Welcome Back! Answers to latest symbolizations HW are posted on-line Homework: --Ex 9.1 pg. 431 Part B (1-15 All) --Ex 9.3 pgs Part A (1-15 All).

3 Well Formed Formulas (WFFs) What counts as a well formed symbolic expression in predicate logic?

4 WFFs Any capital letter by itself (i.e. a statement letter representing an atomic statement) counts as a WFF.

5 WFFs Any capital letter by itself (i.e. a statement letter representing an atomic statement) counts as a WFF. Any capital letter coupled with either an individual constant or an individual variable (or both) counts as a WFF. Examples: Ca, Bx, Dxb.

6 WFFs Any capital letter by itself (i.e. a statement letter representing an atomic statement) counts as a WFF. Any capital letter coupled with either an individual constant or an individual variable (or both) counts as a WFF. Examples: Ca, Bx, Dxb. If a WFF is negated, the result is also a WFF. Examples: ~A, ~Bx, ~Ha

7 WFFs If two WFFs are connected by a,!, ", or a #, the result is also a WFF. Examples: (Fa Gb); (Hx # Kd); (Sy " Ry); (Ab! Bc).

8 WFFs If two WFFs are connected by a,!, ", or a #, the result is also a WFF. Examples: (Fa Gb); (Hx # Kd); (Sy " Ry); (Ab! Bc). If a WFF is connected with a (x) or an ($x), the result is also a WFF. Examples: (x)nx, ($z)ma, (x)(sx" Ra), and (x)(y)gxy.

9 WFFs If two WFFs are connected by a,!, ", or a #, the result is also a WFF. Examples: (Fa Gb); (Hx # Kd); (Sy " Ry); (Ab! Bc). If a WFF is connected with a (x) or an ($x), the result is also a WFF. Examples: (x)nx, ($z)ma, (x)(sx" Ra), and (x)(y)gxy. Nothing counts as a WFF unless it meets the aforementioned criteria.

10 WFFs For convenience, we ll continue to permit the omission of parentheses when no ambiguity in meaning results (in practice this means dropping the outermost parentheses). We ll also permit the use of brackets when doing do so can make for easier reading of a symbolic statement.

11 Scope of a Quantifier The scope of any quantifier is the shortest WFF immediately to the right of the quantifier.

12 Scope of a Quantifier The scope of any quantifier is the shortest WFF immediately to the right of the quantifier. Recall that (x) and ($x), where x can replaced by any variable, are the two quantifiers.

13 Scope of a Quantifier The scope of any quantifier is the shortest WFF immediately to the right of the quantifier. Recall that (x) and ($x), where x can replaced by any variable, are the two quantifiers. Examples: Consider: (x)(hx " Mx). Here the scope of the quantifier (x) is Hx " Mx

14 Scope of a Quantifier The scope of any quantifier is the shortest WFF immediately to the right of the quantifier. Recall that (x) and ($x), where x can replaced by any variable, are the two quantifiers. Examples: Consider: (x)(hx " Mx). Here the scope of the quantifier (x) is Hx " Mx In (y)hy " My, the scope of the quantifier (y) is Hy

15 Free and Bound Variables The occurrence of a variable x is bound if and only if x lies within the scope of an x-quantifier.

16 Free and Bound Variables The occurrence of a variable x is bound if and only if x lies within the scope of an x-quantifier. To Clarify: z quantifiers [e.g. (z) and ($z)] cannot bind occurrences of any other variable but the variable z.

17 Free and Bound Variables The occurrence of a variable x is bound if and only if x lies within the scope of an x-quantifier. To Clarify: z quantifiers [e.g. (z) and ($z)] cannot bind occurrences of any other variable but the variable z. y quantifiers [e.g. (y) and ($y)] cannot bind occurrences of any other variable but the variable y

18 Free and Bound Variables The occurrence of a variable x is bound if and only if x lies within the scope of an x-quantifier. To Clarify: z quantifiers [e.g. (z) and ($z)] cannot bind occurrences of any other variable but the variable z. y quantifiers [e.g. (y) and ($y)] cannot bind occurrences of any other variable but the variable y The same can be said of all the other variables. A variable is free if it s not bound

19 Exercises 9.1 pg. 431 Part B (1-15 all):

20 # s x in Hx is bound by (x); y in Gy is free. 2. x in Ax is bound by (x), y in By by (y), z is free 3. y in Cy bound by ($y) 4. both z s are bound by (z); the x is free. 5. x in Kx bound by ($x); x in Lx bound by (x) 6. x in Mx bound by (x); y in ~Ny bound by the (y). 7. x and y in Pxy are bound by (x) and (y) respectively. The x in Qx is free. 8. y in Sy bound by ($y)

21 # s all of the x s bound by (x) 10. x in Bx bound by (x); y in Dy bound by (y); z in Ez bound by (z) 11. x in Fxz bound by (x); z in Fxz bound by ($z); y in Fyz bound by ($y); the z in Fyz bound by (z). 12. z in Hz bound by (z); the y in Ky is free. 13. x in Lx bound by the first ($x); x in Nx bound by the second ($x) 14. x in Ox is free; x in Px bound by (x); y in Wy bound by (y) 15. z in Abz is free; y in By bound by (y); y in Cyx is free; x in Cyx bound by (x).

22 Implicational Rules for Predicate Logic Before examining the four implicational rules for predicate logic, we need to note that: --Our past implicational and equivalence rules still apply (e.g. MP, MT, DS, ME, MI, etc). We also need an understanding of: --What it is for a statement to be an instance of a quantified statement.

23 The Concept of an Instance What it is for a statement to be an instance of a quantified statement?

24 The Concept of an Instance What it is for a statement to be an instance of a quantified statement? The process of instantiation takes us from a quantified statement containing variables to a non-quantified statement that has at least some of its variables replaced by individual constants.

25 The Concept of an Instance What it is for a statement to be an instance of a quantified statement? The process of instantiation takes us from a quantified statement containing variables to a non-quantified statement that has at least some of its variables replaced by individual constants. Instantiation always takes us from individual variables to individual constants.

26 The Concept of an Instance The process of instantiation (the process whereby we arrive at an instance of a quantified statement) has two steps:

27 The Concept of an Instance The process of instantiation (the process whereby we arrive at an instance of a quantified statement) has two steps: Step 1: Remove the initial quantifier (the one that governs the entire statement), (x) or ($x).

28 The Concept of an Instance The process of instantiation (the process whereby we arrive at an instance of a quantified statement) has two steps: Step 1: Remove the initial quantifier (the one that governs the entire statement), (x) or ($x). Step 2: In the remaining WFF, uniformly replace all the free occurrences of the variable x (the variable that appeared in the initial quantifier) with an individual constant.

29 The Concept of an Instance Example: (x)[ax " ($y)(gy # Fx)]

30 The Concept of an Instance Example: (x)[ax " ($y)(gy # Fx)] Step 1: Ax " ($y)(gy # Fx)

31 The Concept of an Instance Example: (x)[ax " ($y)(gy # Fx)] Step 1: Ax " ($y)(gy # Fx) Step 2: Aa " ($y)(gy # Fa)

32 The Concept of an Instance Example: (x)[ax " ($y)(gy # Fx)] Step 1: Ax " ($y)(gy # Fx) Step 2: Aa " ($y)(gy # Fa) With the concept of an instance intact, we can move to our first implicational rule.

33 1 st Rule: Universal Instantiation (UI) This rule permits us to instantiate a universally quantified statement. This rule basically permits us to drop universal quantifiers and introduce individual constants to a proof.

34 1 st Rule: Universal Instantiation (UI) Consider the following universally quantified statement: (1) (x)(hx " Mx). This can be read as: Everything is such that if it is human then it is mortal. Well, Obama is a thing, so if Obama is human, then Obama is mortal. Assuming that o= Obama, we can infer the following statement from (1) via UI: Ho " Mo.

35 1 st Rule: Universal Instantiation (UI) (1) (x)(hx " Mx). This can be read as: Everything is such that if it is human then it is mortal. Gizmo is a thing, so if Gizmo is human, then Gizmo is mortal. Let g=gizmo. We can infer the following statement from (1) via UI: Hg " Mg

36 1 st Rule: Universal Instantiation (UI) (1) (x)(hx " Mx). This can be read as: Everything is such that if it is human then it is mortal. Gizmo is a thing, so if Gizmo is human, then Gizmo is mortal. Let g=gizmo. We can infer the following statement from (1) via UI: Hg " Mg UI allows us to move from any universally quantified statement to any instance of that statement.

37 1 st Rule: Universal Instantiation (UI) A brief summary of Universal Instantiation (UI): A line in a proof follows from some previous line via UI if and only if the previous line is a universally quantified statement and the line that follows it is an instance of the universally quantified statement. Memorize this!

38 On Incorrectly and Correctly Applying our Rules If one misapplies an implicational rule, it s highly likely that one could come up with substitution instance (English content) to uniformly replace the symbolized lines in the proof such that the inferred line is made false and the line from which it was inferred is made true (or one could make the substitution instance such that it s easily conceivable that the inferred line can be false while the relevant previous line can be true). To do this is to demonstrate that one hasn t shown that the inferred symbolized line in the proof must be true (i.e. impossible to be false) given the truth of the relevant previous line, which is just to say that one hasn t shown that the inferred line logically follows.

39 On Incorrectly and Correctly Applying our Rules Now when one correctly applies an implicational rule, no matter what substitution instance one comes up with, the inferred line will always come out true, on the assumption that the relevant previous line is true.

40 Some Incorrect Applications of UI 1. (y)(dy " My) 2. Dl " Me. 1, incorrect use of UI. Here the variable is not uniformly replaced, thus 2 is not an instance of 1.

41 Some Incorrect Applications of UI 1. (y)(dy " My) 2. Dl " Me. 1, incorrect use of UI. Here the variable is not uniformly replaced, thus 2 is not an instance of 1. In the above inference, 1 could say: everything is such that if it is a dog, then it s a mammal. Consequently, 2 could be read as: if Lassie is a dog, then Mt Everest is a mammal. If so, 2 is false, thus it doesn t follow from 1.

42 Some Incorrect Applications of UI 1. (y)(dy " My) 2. Dl " Me. 1, incorrect use of UI. Here the variable is not uniformly replaced, thus 2 is not an instance of 1. In the above inference, 1 could say: everything is such that if it is a dog, then it s a mammal. Consequently, 2 could be read as: if Lassie is a dog, then Mt Everest is a mammal. If so, 2 is false, thus it doesn t follow from 1. If the variable y is uniformly replaced with a constant, however, it doesn t matter what English name we replace the constant with -- nor does it matter what the predicate letters stand for -- 2 must be true given the assumption that 1 is true.

43 Some Incorrect Applications of UI 1. (y)(dy " My) 2. Dl " Me. 1, incorrect use of UI. In the above inference, for all we know, 1 says: everything is such that if it is a dog, then it s a mammal. Consequently, 2 could be read as: if Lassie is a dog, then Mt Everest is a mammal. If so, 2 is false, thus it doesn t follow from 1. If the variable y is uniformly replaced with a constant, however, it doesn t matter what English name we replace the constant with -- nor does it matter what the predicate letters stand for -- 2 must be true given the assumption that 1 is true.

44 Some Incorrect Applications of UI 1. ~(y)gy 2. ~Gh 1, incorrect use of UI 1 is not a universally quantified statement; it s rather a negation of a universally quantified statement. (UI is an implicational rule and as such cannot be applied to parts of lines).

45 Some Incorrect Applications of UI 1. ~(y)gy 2. ~Gh 1, incorrect use of UI 1 is not a universally quantified statement; it s rather a negation of a universally quantified statement. (UI is an implicational rule and as such cannot be applied to parts of lines). Let Gy = y is German and let h = Heidi Klum. The above inference could read: not everything is German (true), so Heidi Klum is not German (false). The latter doesn t follow from the former

46 Some Incorrect Applications of UI 1. (x)mx " (y)wy 2. Mg " (y)wy 1, incorrect application of UI 1 is not a universally quantified statement; it s rather a conditional. Say the inference reads: (1) if everything is a mammal, then everything is warm-blooded, so (2) if gizmo is a mammal, then everything is warm-blooded. (2) is false. We certainly haven t made a valid inference.

47 2 nd Rule: Existential Generalization (EG) This rule permits us to introduce existential quantifiers and replace individual constants with individual variables. We are able to move from an instance of an existentially quantified statement to an existentially quantified statement.

48 2 nd Rule: Existential Generalization (EG) Consider: (1) Fs. This can be read as: Seinfeld is funny. Well, if it s true that Seinfeld is funny, then it follows that something (or someone) is funny. The person Seinfeld is afterall a thing, in the broadest sense of that term. Thus we can infer the following statement from (1) via EG: ($x)fx (this says that something i.e. at least one thing is funny)

49 2 nd Rule: Existential Generalization (EG) A Brief Summary of Existential Generalization (EG): A line in a proof follows from some previous line via EG if and only if the line that follows is an existentially quantified statement, and the line from which it follows is an instance of it (the existentially quantified statement). Memorize this!

50 An Incorrect Application of EG 1. Ph " Ch 2. ($y)py " Ch 1, incorrect use of EG When we make an inference such as this, for all we know the line we have inferred is false on the assumption that the line from which the inference was made is true.

51 An Incorrect Application of EG 1. Ph " Ch 2. ($y)py " Ch 1, incorrect use of EG Let the above inference read: (1) if Hillary Clinton is the President of the U.S., then Hillary Clinton is the Commander and Chief; so (2) if something is the President of the U.S., then Hillary Clinton is the Commander and Chief. This latter conditional is false thus we can t say that it logically follows from 1.

52 3 rd Rule: Existential Instantiation (EI) Consider: All baseball players are athletes. At least one baseball player takes steroids. So at least one athlete take steroids. Intuitively this is clearly a valid argument: If the premises are true, the conclusion must be true.

53 3 rd Rule: Existential Instantiation (EI) All baseball players are athletes. At least one baseball player takes steroids. So at least one athlete take steroids. How can we show that this is a valid argument via a proof?

54 3 rd Rule: Existential Instantiation (EI) All baseball players are athletes. At least one baseball player takes steroids. So at least one athlete take steroids. How can we show that this is a valid argument via a proof? It turns out that the fact that we can make up a name to talk about and refer to the non-named baseball player mentioned in premise two is what enables us to show that this argument is valid.

55 3 rd Rule: Existential Instantiation (EI) All baseball players are athletes. At least one baseball player takes steroids. So at least one athlete take steroids. Given that we re assuming it s true that someone indeed satisfies the description of being a baseball player and a taker of steroids (we just don t know who it is), we re justified in coming up with a name to refer to this someone say John Doe ; just so long as all we re claiming about John Doe is that he is a baseball player that takes steroids.

56 3 rd Rule: Existential Instantiation (EI) All baseball players are athletes. At least one baseball player takes steroids. So at least one athlete take steroids. Importantly, we re not doing anything unreasonable in coming up with the name John Doe to refer to (talk about) this one baseball player who takes steroids.

57 3 rd Rule: Existential Instantiation (EI) All baseball players are athletes. At least one baseball player takes steroids. So at least one athlete take steroids. Importantly, we re not doing anything unreasonable in coming up with the name John Doe to refer to (talk about) this one baseball player who takes steroids. Equally important, it s useful for us to do so in order to show the relevant argument to be valid.

58 3 rd Rule: Existential Instantiation (EI) All baseball players are athletes. At least one baseball player takes steroids. So at least one athlete take steroids. Importantly, we re not doing anything unreasonable in coming up with the name John Doe to refer to (talk about) this one baseball player who takes steroids. Equally important, it s useful for us to do so in order to show the relevant argument to be valid. Consider the above argument symbolically and its proof:

59 3 rd Rule: Existential Instantiation (EI) 1. (x)(bx " Ax) 2. ($x)(bx Sx) % ($x)(ax Sx) 3. Bd Sd 2, EI 4. Bd 3, Simp 5. Sd 3, Simp 6. Bd " Ad 1, UI 7. Ad 6,4 MP 8. Ad Sd 7, 5 Conj 9. ($x)(ax Sx) 8, EG

60 First Restriction on EI Restriction 1: the constant we instantiate to via EI cannot be a constant that already appears in the proof. To see this, assume that the following two statements are the only lines in a proof:

61 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player

62 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player From 1 we can claim the following via EI: 3. Bd Md John Doe is a baseball player that is married (the married baseball player alluded to in 1 we re calling John Doe)

63 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player From 1 we can claim the following via EI: 3. Bd Md John Doe is a baseball player that is married [We re just picking out one baseball player that is married, alluded to in 1 -- who it is exactly we don t know -- and calling him Jon Doe. Jon Doe now refers to the individual -- whoever that is -- who fits the description in 1].

64 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player 3. Bd Md John Doe is a baseball player that is married

65 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player 3. Bd Md John Doe is a baseball player that is married From 2 we cannot claim the following via EI: 4. Bd ~Md John Doe is a baseball player that is not married

66 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player 3. Bd Md John Doe is a baseball player that is married From 2 we cannot claim the following via EI: 4. Bd ~Md John Doe is a baseball player that is not married To claim this is to claim that the individual that fulfills the description in 1 (the one we re calling John Doe) also fulfills the description in 2. But we can t assume that one and the same individual fulfills the description in both lines

67 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player 3. Bd Md John Doe is a baseball player that is married 4. Bd ~Md John Doe is a baseball player that is not married

68 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player 3. Bd Md John Doe is a baseball player that is married 4. Bd ~Md John Doe is a baseball player that is not married 4 basically says: the baseball player who is married (the one we re calling John Doe) is a baseball player who is not married.

69 First Restriction on EI 1. ($x)(bx Mx) There s at least one married baseball player 2. ($x)(bx ~Mx) There s at least one unmarried baseball player 3. Bd Md John Doe is a baseball player that is married 4. Bd ~Md John Doe is a baseball player that is not married 4 basically says: the baseball player who is married (the one we re calling John Doe) is a baseball player who is not married. When we make an inference such as this (where we instantiate to a constant that already appears in the proof), we can t be guaranteed that the inferred line is true. The inference from 1 to 4 is an example. 4 is false because we ve already established that John Doe is married.

70 First Restriction on EI Put differently, if we re permitted to existentially instantiate to a variable that is already in use, then the following argument is valid, as evidenced by the proof we could construct for it (see pg. 452). But this argument is invalid. Thus we re not permitted to instantiate in this way. 1.! ($x)(bx Mx) 2.! ($x)(bx ~Mx) % ($x)(mx ~Mx)

71 First Restriction on EI The upshot from all this is that if we want to apply EI to an existentially quantified line, we need to ensure that the constant used (the name picked out) is not already present in the proof; i.e. that the named picked out to refer to something is not already referring to something else.

72 Second Restriction on EI Restriction 2: the constant we instantiate to via EI cannot be a constant that is found in the conclusion of the argument to be proved.

73 Second Restriction on EI Consider the following: 1. ($x)(bx Sx) %Sa 2. Ba Sa 1, incorrect use of EI 3. Sa 2, Simp If we re permitted to instantiate to a constant that appears in the conclusion of the argument to be proved when applying EI, then the above argument is valid, as evidenced by this proof (see pg 452). But the argument is clearly invalid, thus we re not permitted to instantiate to such a constant.

74 Summary of EI A Brief Summary of EI: A line in a proof follows from a previous line via EI if and only if the previous line is an existentially quantified statement and the line that follows from it is an instance of that existentially quantified statement and the constant in the instance neither appears earlier in the proof nor in the conclusion to be proved. Memorize this!

75 4 th Rule: Universal Generalization (UG) Consider the following: All trees are plants. All plants are living things. So all trees are living things. In symbolic form: (x)(tx " Px) (x)(px " Lx) % (x)(tx " Lx)

76 4 th Rule: Universal Generalization (UG) In symbolic form: (x)(tx " Px) (x)(px " Lx) % (x)(tx " Lx) Intuitively, this is clearly valid. But how can we show that it s valid by means of a proof? What enables us to show this argument to be valid is the fact that we re permitted to make a certain universal generalization (a certain claim about all things) under certain conditions. UG permits us to infer a universally quantified formula from an instance of a universally quantified formula, given certain conditions.

77 4 th Rule: Universal Generalization (UG) Consider the proof for our symbolic argument: 1. (x)(tx " Px) 2. (x)(px " Lx) % (x)(tx " Lx) 3. Ta " Pa 1, UI 4. Pa " La 2, UI 5. Ta " La 3,4 HS 6. (x)(tx " Lx) 5, UG

78 4 th Rule: Universal Generalization (UG) Line 6 is our universal generalization about all things. What justifies it? We instantiated to the constant a in 3 and 4, but nothing in the proof required us to instantiate to a. Given what 1 and 2 are claiming, we could have instantiated to any individual constant in 3 and 4, which would have resulted in any constant in 5. Because we could say of any constant (not just a ) that if it were a tree, then it would be a living thing (line 5), we are permitted to claim that everything is such that if it is a tree, then it s a living thing (line 6).

Quantification. Using the suggested notation, symbolize the statements expressed by the following sentences.

Quantification. Using the suggested notation, symbolize the statements expressed by the following sentences. Quantification In this and subsequent chapters, we will develop a more formal system of dealing with categorical statements, one that will be much more flexible than traditional logic, allow a deeper analysis

More information

PHIL 240, Introduction to Logic, Sections Fall 2011 FINAL EXAM 14 December Name (5 points): Section (5 points):

PHIL 240, Introduction to Logic, Sections Fall 2011 FINAL EXAM 14 December Name (5 points): Section (5 points): Section I True / False questions (2 points each) 1. TRUE Any argument that is sound is also valid. 2. FALSE_ If the premises of an argument are all true, then that argument is sound. 3. TRUE Every universal

More information

Chapter 1.3 Quantifiers, Predicates, and Validity. Reading: 1.3 Next Class: 1.4. Motivation

Chapter 1.3 Quantifiers, Predicates, and Validity. Reading: 1.3 Next Class: 1.4. Motivation Chapter 1.3 Quantifiers, Predicates, and Validity Reading: 1.3 Next Class: 1.4 1 Motivation Propositional logic allows to translate and prove certain arguments from natural language If John s wallet was

More information

CSE Discrete Structures

CSE Discrete Structures CSE 2315 - Discrete Structures Lecture 5: Predicate Logic- Fall 2010 1 Motivation The use of predicates, variables, and quantifiers allows to represent a large number of arguments and expressions in formal

More information

Intermediate Logic. Natural Deduction for FOL

Intermediate Logic. Natural Deduction for FOL Intermediate Logic Lecture Seven Natural Deduction for FOL Rob Trueman rob.trueman@york.ac.uk University of York Introducing Natural Deduction for FOL Natural Deduction for FOL Introducing Natural Deduction

More information

Section 2.4: Arguments with Quantified Statements

Section 2.4: Arguments with Quantified Statements Section 2.4: Arguments with Quantified Statements In this section, we shall generalize the ideas we developed in Section 1.3 to arguments which involve quantified statements. Most of the concepts we shall

More information

CITS2211 Discrete Structures Logic

CITS2211 Discrete Structures Logic CITS2211 Discrete Structures Logic Unit coordinator: Rachel Cardell-Oliver August 6, 2017 Highlights All men are mortal, Socrates is a man, therefore Socrates is mortal. Reading Chapter 3: Logical Formulas

More information

Multi-Place Predicates and Multiple Quantifiers

Multi-Place Predicates and Multiple Quantifiers Multi-Place Predicates and Multiple Quantifiers So far we have looked only at monadic predicates. That is, predicates that apply to only one thing. For instance, Fa might mean Alice is friendly. But, what

More information

Automated Reasoning. Natural Deduction in First-Order Logic

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

More information

, ->, and <-> just as atomic sentence letter (which we can still

, ->, and <-> just as atomic sentence letter (which we can still Chapter 1. INTRODUCTION TO PREDICATE LOGIC NOTES In predicate logic we study the logical form INSIDE atomic (shortest) sentences. To say: ''Adam is blond." is to attribute the property of being blond to

More information

Practice Problems: All Computer Science majors are people. Some computer science majors are logical thinkers. Some people are logical thinkers.

Practice Problems: All Computer Science majors are people. Some computer science majors are logical thinkers. Some people are logical thinkers. CSE 240, Fall, 2013 Homework 2 Due, Tuesday September 17. Can turn in class, at the beginning of class, or earlier in the mailbox labelled Pless in Bryan Hall, room 509c. Practice Problems: 1. Consider

More information

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012 CMPSCI 250: Introduction to Computation Lecture #7: Quantifiers and Languages 6 February 2012 Quantifiers and Languages Quantifier Definitions Translating Quantifiers Types and the Universe of Discourse

More information

Going beyond propositional logic

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

More information

CS112 Friday, September 12, 2008

CS112 Friday, September 12, 2008 CS112 Friday, September 12, 2008 Agenda Natural Deduction Questions FOL Translations FOL Interpretations Natural Deduction Questions? First Order Logic Translations Symbolization Key Universe of Discourse

More information

Intermediate Logic. Interpretations

Intermediate Logic. Interpretations Intermediate Logic Lecture Five Interpretations Rob Trueman rob.trueman@york.ac.uk University of York Interpretations: The Indirect Method Interpretations Interpretations: The Indirect Method Interpretations:

More information

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

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

More information

Software Paradigms (Lesson 6) Logic Programming

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

More information

Lecture 4: January 12, 2015

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

More information

Proofwriting Checklist

Proofwriting Checklist CS103 Winter 2019 Proofwriting Checklist Cynthia Lee Keith Schwarz Over the years, we ve found many common proofwriting errors that can easily be spotted once you know how to look for them. In this handout,

More information

logic with quantifiers (informally)

logic with quantifiers (informally) EDAA40 Discrete Structures in Computer Science 8: Quantificational logic Jörn W. Janneck, Dept. of Computer Science, Lund University logic with quantifiers (informally) Given a logical formula that depends

More information

First-Order Translation Checklist

First-Order Translation Checklist CS103 Winter 2019 First-Order Translation Checklist Cynthia Lee Keith Schwarz In this handout, we ve distilled five specific points that you should check in your first-order logic statements before submitting

More information

Automatic Reasoning (Section 8.3)

Automatic Reasoning (Section 8.3) Automatic Reasoning (Section 8.3) Automatic Reasoning Can reasoning be automated? Yes, for some logics, including first-order logic. We could try to automate natural deduction, but there are many proof

More information

CSE 311: Foundations of Computing. Lecture 8: Predicate Logic Proofs

CSE 311: Foundations of Computing. Lecture 8: Predicate Logic Proofs CSE 311: Foundations of Computing Lecture 8: Predicate Logic Proofs Last class: Propositional Inference Rules Two inference rules per binary connective, one to eliminate it and one to introduce it Elim

More information

Constraint Propagation for Efficient Inference in Markov Logic

Constraint Propagation for Efficient Inference in Markov Logic Constraint Propagation for Efficient Inference in Tivadar Papai 1 Parag Singla 2 Henry Kautz 1 1 University of Rochester, Rochester NY 14627, USA 2 University of Texas, Austin TX 78701, USA September 13,

More information

First-Order Logic PREDICATE LOGIC. Syntax. Terms

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

More information

THE LOGIC OF QUANTIFIED STATEMENTS

THE LOGIC OF QUANTIFIED STATEMENTS CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS Copyright Cengage Learning. All rights reserved. SECTION 3.4 Arguments with Quantified Statements Copyright Cengage Learning. All rights reserved. Arguments

More information

Computation Club: Gödel s theorem

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

More information

Solutions to Selected Exercises

Solutions to Selected Exercises Chapter 1 Solutions to Selected Exercises Section 1.1 2. {2, 4} 3. {7, 10} 5. {2, 3, 5, 6, 8, 9} 6. {1, 3, 5, 7, 9, 10} 8. A 9. 11. B 12. {1, 4} 14. {1} 15. {2, 3, 4, 5, 6, 7, 8, 9, 10} 18. 1 19. 3 22.

More information

Notes on Predicate Calculus

Notes on Predicate Calculus Notes on Predicate Calculus by Charles Lin c Charles Lin 2000 All rights reserved 1 Propositional Calculus Enough Propositional calculus is good enough to describe certain kinds of reasoning, but it is

More information

Induction and Semantics in Dafny

Induction and Semantics in Dafny 15-414 Lecture 11 1 Instructor: Matt Fredrikson Induction and Semantics in Dafny TA: Ryan Wagner Encoding the syntax of Imp Recall the abstract syntax of Imp: a AExp ::= n Z x Var a 1 + a 2 b BExp ::=

More information

University of Illinois at Chicago Department of Computer Science. Final Examination. CS 151 Mathematical Foundations of Computer Science Fall 2012

University of Illinois at Chicago Department of Computer Science. Final Examination. CS 151 Mathematical Foundations of Computer Science Fall 2012 University of Illinois at Chicago Department of Computer Science Final Examination CS 151 Mathematical Foundations of Computer Science Fall 2012 Thursday, October 18, 2012 Name: Email: Print your name

More information

CS61A Lecture 38. Robert Huang UC Berkeley April 17, 2013

CS61A Lecture 38. Robert Huang UC Berkeley April 17, 2013 CS61A Lecture 38 Robert Huang UC Berkeley April 17, 2013 Announcements HW12 due Wednesday Scheme project, contest out Review: Program Generator A computer program is just a sequence of bits It is possible

More information

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

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

More information

First Order Predicate Logic CIS 32

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

More information

Z Notation. June 21, 2018

Z Notation. June 21, 2018 Z Notation June 21, 2018 1 Definitions There are many different ways to introduce an object in a Z specification: declarations, abbreviations, axiomatic definitions, and free types. Keep in mind that the

More information

Programming Languages Third Edition

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

More information

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010 CS 3512, Spring 2011 Instructor: Doug Dunham Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010 Prerequisites: Calc I, CS2511 Rough course outline:

More information

Lecture 3: Constructing the Natural Numbers

Lecture 3: Constructing the Natural Numbers Math/CS 120: Intro. to Math Professor: Padraic Bartlett Lecture 3: Constructing the Natural Numbers Weeks 3-4 UCSB 2014 When we defined what a proof was in our first set of lectures, we mentioned that

More information

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

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

More information

Lecture 3: Recursion; Structural Induction

Lecture 3: Recursion; Structural Induction 15-150 Lecture 3: Recursion; Structural Induction Lecture by Dan Licata January 24, 2012 Today, we are going to talk about one of the most important ideas in functional programming, structural recursion

More information

CSI30. Chapter 1. The Foundations: Logic and Proofs Rules of inference with quantifiers Logic and bit operations Specification consistency

CSI30. Chapter 1. The Foundations: Logic and Proofs Rules of inference with quantifiers Logic and bit operations Specification consistency Chapter 1. The Foundations: Logic and Proofs 1.13 Rules of inference with quantifiers Logic and bit operations Specification consistency 1.13 Rules of inference with quantifiers universal instantiation

More information

Recursive Functions. Recursive functions are built up from basic functions by some operations.

Recursive Functions. Recursive functions are built up from basic functions by some operations. Recursive Functions Recursive functions are built up from basic functions by some operations. The Successor Function Let s get very primitive. Suppose we have 0 defined, and want to build the nonnegative

More information

6. Inference and resolution

6. Inference and resolution Computer Science and Software Engineering University of Wisconsin - Platteville 6. Inference and resolution CS 3030 Lecture Notes Yan Shi UW-Platteville Read: Textbook Chapter 8 Part of the slides are

More information

Predicate Logic CHAPTER What This Chapter Is About

Predicate Logic CHAPTER What This Chapter Is About CHAPTER 14 Predicate Logic We now turn our attention to a generalization of propositional logic, called predicate, or first-order, logic. Predicates are functions of zero or more variables that return

More information

Formal Predicate Calculus. Michael Meyling

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

More information

Lecture 9: Predicate Logic. First: Finish Propositional Logic in Haskell. Semantics in Haskell. Syntax In Haskell. CS 181O Spring 2016 Kim Bruce

Lecture 9: Predicate Logic. First: Finish Propositional Logic in Haskell. Semantics in Haskell. Syntax In Haskell. CS 181O Spring 2016 Kim Bruce Lecture 9: Predicate Logic CS 181O Spring 2016 Kim Bruce First: Finish Propositional Logic in Haskell Some slide content taken from Unger and Michaelis Syntax In Haskell data Form = P String Ng Form Cnj

More information

Lecture 5: Predicate Calculus. ffl Predicate Logic ffl The Language ffl Semantics: Structures

Lecture 5: Predicate Calculus. ffl Predicate Logic ffl The Language ffl Semantics: Structures Lecture 5: Predicate Calculus ffl Predicate Logic ffl The Language ffl Semantics: Structures 1 Why Predicate Logic? Propositional logic is not powerful enough to express statements such as ffl For every

More information

for all x, the assertion P(x) is false. there exists x, for which the assertion P(x) is true.

for all x, the assertion P(x) is false. there exists x, for which the assertion P(x) is true. You can t prove a predicate is true because a predicate is not an assertion, you can t prove it is valid as it is not a deduction! If someone asks you to prove P(x), it is not totally clear what they mean.

More information

CS158 Section B Exam 1 Key

CS158 Section B Exam 1 Key CS158 Section B Exam 1 Key Name This is a closed-book exam. The only items not supplied that you are allowed to use are writing implements. You have 50 minutes to complete this exam. The total amount of

More information

Notes. Notes. Introduction. Notes. Propositional Functions. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry.

Notes. Notes. Introduction. Notes. Propositional Functions. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 1 / 1 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 1.3 1.4 of Rosen cse235@cse.unl.edu Introduction

More information

CSE Penn State University - Spring 2006 Professor John Hannan Lecture 7: Problem Solving with Logic - February 21&23, 2006

CSE Penn State University - Spring 2006 Professor John Hannan Lecture 7: Problem Solving with Logic - February 21&23, 2006 CSE 097 - Penn State University - Spring 2006 Professor John Hannan Lecture 7: Problem Solving with Logic - February 21&23, 2006 From Last Time Boolean Logic Constants: 0 and 1 Operators: & and and! 0

More information

Lecture Notes 15 Number systems and logic CSS Data Structures and Object-Oriented Programming Professor Clark F. Olson

Lecture Notes 15 Number systems and logic CSS Data Structures and Object-Oriented Programming Professor Clark F. Olson Lecture Notes 15 Number systems and logic CSS 501 - Data Structures and Object-Oriented Programming Professor Clark F. Olson Number systems The use of alternative number systems is important in computer

More information

CH 87 FUNCTIONS: TABLES AND MAPPINGS

CH 87 FUNCTIONS: TABLES AND MAPPINGS CH 87 FUNCTIONS: TABLES AND MAPPINGS INTRODUCTION T he notion of a function is much more abstract than most of the algebra concepts you ve seen so far, so we ll start with three specific non-math examples.

More information

CS103 Spring 2018 Mathematical Vocabulary

CS103 Spring 2018 Mathematical Vocabulary CS103 Spring 2018 Mathematical Vocabulary You keep using that word. I do not think it means what you think it means. - Inigo Montoya, from The Princess Bride Consider the humble while loop in most programming

More information

Mathematical Logic Part Two

Mathematical Logic Part Two Mathematical Logic Part Two Recap from Last Time Recap So Far A propositional variable a variable that either true or false. The propositional connectives are as follows: Negation: p Conjunction: p q Djunction:

More information

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements CPSC 121: Models of Computation Module 6: Rewriting predicate logic statements Module 6: Rewriting predicate logic statements Pre-class quiz #7 is due March 1st at 19:00. Assigned reading for the quiz:

More information

Homework 1. Due Date: Wednesday 11/26/07 - at the beginning of the lecture

Homework 1. Due Date: Wednesday 11/26/07 - at the beginning of the lecture Homework 1 Due Date: Wednesday 11/26/07 - at the beginning of the lecture Problems marked with a [*] are a littlebit harder and count as extra credit. Note 1. For any of the given problems make sure that

More information

(Refer Slide Time 6:48)

(Refer Slide Time 6:48) Digital Circuits and Systems Prof. S. Srinivasan Department of Electrical Engineering Indian Institute of Technology Madras Lecture - 8 Karnaugh Map Minimization using Maxterms We have been taking about

More information

Chapter 3. Set Theory. 3.1 What is a Set?

Chapter 3. Set Theory. 3.1 What is a Set? Chapter 3 Set Theory 3.1 What is a Set? A set is a well-defined collection of objects called elements or members of the set. Here, well-defined means accurately and unambiguously stated or described. Any

More information

We show that the composite function h, h(x) = g(f(x)) is a reduction h: A m C.

We show that the composite function h, h(x) = g(f(x)) is a reduction h: A m C. 219 Lemma J For all languages A, B, C the following hold i. A m A, (reflexive) ii. if A m B and B m C, then A m C, (transitive) iii. if A m B and B is Turing-recognizable, then so is A, and iv. if A m

More information

Strategies for Proofs

Strategies for Proofs Strategies for Proofs Landscape with House and Ploughman Van Gogh Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois 1 Goals of this lecture A bit more logic Reviewing Implication

More information

9. MATHEMATICIANS ARE FOND OF COLLECTIONS

9. MATHEMATICIANS ARE FOND OF COLLECTIONS get the complete book: http://wwwonemathematicalcatorg/getfulltextfullbookhtm 9 MATHEMATICIANS ARE FOND OF COLLECTIONS collections Collections are extremely important in life: when we group together objects

More information

Lecture 5. Logic I. Statement Logic

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

More information

Resolution (14A) Young W. Lim 6/14/14

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

More information

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Midterm 1

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Midterm 1 CS 70 Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Midterm 1 PRINT Your Name:, (last) SIGN Your Name: (first) PRINT Your Student ID: CIRCLE your exam room: 1 Pimentel 141 Mccone

More information

Starting Boolean Algebra

Starting Boolean Algebra Boolean Algebra March 2, 27 Diagram for FunChip2 Here is a picture of FunChip2 that we created more or less randomly in class on /25 (used in various Activities): Starting Boolean Algebra Boolean algebra

More information

Resolution in FO logic (Ch. 9)

Resolution in FO logic (Ch. 9) Resolution in FO logic (Ch. 9) Review: CNF form Conjunctive normal form is a number of clauses stuck together with ANDs Each clause can only contain ORs, and logical negation must appears right next to

More information

Axiom 3 Z(pos(Z) X(X intersection of Z P(X)))

Axiom 3 Z(pos(Z) X(X intersection of Z P(X))) In this section, we are going to prove the equivalence between Axiom 3 ( the conjunction of any collection of positive properties is positive ) and Proposition 3 ( it is possible that God exists ). First,

More information

CS 4349 Lecture August 21st, 2017

CS 4349 Lecture August 21st, 2017 CS 4349 Lecture August 21st, 2017 Main topics for #lecture include #administrivia, #algorithms, #asymptotic_notation. Welcome and Administrivia Hi, I m Kyle! Welcome to CS 4349. This a class about algorithms.

More information

Order from Chaos. Nebraska Wesleyan University Mathematics Circle

Order from Chaos. Nebraska Wesleyan University Mathematics Circle Order from Chaos Nebraska Wesleyan University Mathematics Circle Austin Mohr Department of Mathematics Nebraska Wesleyan University February 2, 20 The (, )-Puzzle Start by drawing six dots at the corners

More information

Basic Triangle Congruence Lesson Plan

Basic Triangle Congruence Lesson Plan Basic Triangle Congruence Lesson Plan Developed by CSSMA Staff Drafted August 2015 Prescribed Learning Outcomes: Introduce students to the concept of triangle congruence and teach them about the congruency

More information

6.034 Notes: Section 10.1

6.034 Notes: Section 10.1 6.034 Notes: Section 10.1 Slide 10.1.1 A sentence written in conjunctive normal form looks like ((A or B or not C) and (B or D) and (not A) and (B or C)). Slide 10.1.2 Its outermost structure is a conjunction.

More information

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

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

More information

Lecture 5 - Axiomatic semantics

Lecture 5 - Axiomatic semantics Program Verification March 2014 Lecture 5 - Axiomatic semantics Lecturer: Noam Rinetzky Scribes by: Nir Hemed 1.1 Axiomatic semantics The development of the theory is contributed to Robert Floyd, C.A.R

More information

Standard Boolean Forms

Standard Boolean Forms Standard Boolean Forms In this section, we develop the idea of standard forms of Boolean expressions. In part, these forms are based on some standard Boolean simplification rules. Standard forms are either

More information

Workbook Unit 13: Natural Deduction Proofs (IV)

Workbook Unit 13: Natural Deduction Proofs (IV) Workbook Unit 13: Natural Deduction Proofs (IV) Overview 1 1. The Biconditional Introduction Rule ( Int) 2 2. The Disjunction Elimination Rule ( Elim) 7 3. Reductio ad absurdum arguments: ~Int and ~Elim

More information

Computer-supported Modeling and Reasoning. First-Order Logic. 1 More on Isabelle. 1.1 Isabelle System Architecture

Computer-supported Modeling and Reasoning. First-Order Logic. 1 More on Isabelle. 1.1 Isabelle System Architecture Dipl-Inf Achim D Brucker Dr Burkhart Wolff Computer-supported Modeling and easoning http://wwwinfsecethzch/ education/permanent/csmr/ (rev 16814) Submission date: First-Order Logic In this lecture you

More information

Divisibility Rules and Their Explanations

Divisibility Rules and Their Explanations Divisibility Rules and Their Explanations Increase Your Number Sense These divisibility rules apply to determining the divisibility of a positive integer (1, 2, 3, ) by another positive integer or 0 (although

More information

CPSC 121: Models of Computation Assignment #4, due Thursday, March 16 th,2017at16:00

CPSC 121: Models of Computation Assignment #4, due Thursday, March 16 th,2017at16:00 CPSC 121: Models of Computation Assignment #4, due Thursday, March 16 th,2017at16:00 [18] 1. Consider the following predicate logic statement: 9x 2 A, 8y 2 B,9z 2 C, P(x, y, z)! Q(x, y, z), where A, B,

More information

Fall Lecture 3 September 4. Stephen Brookes

Fall Lecture 3 September 4. Stephen Brookes 15-150 Fall 2018 Lecture 3 September 4 Stephen Brookes Today A brief remark about equality types Using patterns Specifying what a function does equality in ML e1 = e2 Only for expressions whose type is

More information

1 Introduction to Logic

1 Introduction to Logic 1 Introduction to Logic Some Vocabulary Logic is the science of discursive reasoning.1 As a science, logic aims to discover general laws that apply to all discursive reasoning. Narrowly specific kinds

More information

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g;

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g; Chapter 5 Set Theory 5.1 Sets and Operations on Sets Preview Activity 1 (Set Operations) Before beginning this section, it would be a good idea to review sets and set notation, including the roster method

More information

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 6

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 6 INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 6 RAVI VAKIL Contents 1. Loose ends 1 2. Playing around with the structure sheaf of the plane 2 3. Defining affine varieties and prevarieties 3 At the end, I collected

More information

Logical reasoning systems

Logical reasoning systems Logical reasoning systems Theorem provers and logic programming languages Production systems Frame systems and semantic networks Description logic systems CS 561, Session 19 1 Logical reasoning systems

More information

Typing Control. Chapter Conditionals

Typing Control. Chapter Conditionals Chapter 26 Typing Control 26.1 Conditionals Let s expand our language with a conditional construct. We can use if0 like before, but for generality it s going to be more convenient to have a proper conditional

More information

The Specification Phase

The Specification Phase The Specification Phase CS427: Elements of Software Engineering Lecture 4.1 10am, 30 Jan 2012 CS427 The Specification Phase 1/16 Outline 1 Recall... The Requirements Phase 2 Phase 2: Specifications 3 Requirements

More information

Computational Logic. SLD resolution. Damiano Zanardini

Computational Logic. SLD resolution. Damiano Zanardini Computational Logic SLD resolution Damiano Zanardini UPM European Master in Computational Logic (EMCL) School of Computer Science Technical University of Madrid damiano@fi.upm.es Academic Year 2009/2010

More information

Optimization of logical query plans Eliminating redundant joins

Optimization of logical query plans Eliminating redundant joins Optimization of logical query plans Eliminating redundant joins 66 Optimization of logical query plans Query Compiler Execution Engine SQL Translation Logical query plan "Intermediate code" Logical plan

More information

Recursively Enumerable Languages, Turing Machines, and Decidability

Recursively Enumerable Languages, Turing Machines, and Decidability Recursively Enumerable Languages, Turing Machines, and Decidability 1 Problem Reduction: Basic Concepts and Analogies The concept of problem reduction is simple at a high level. You simply take an algorithm

More information

An Interesting Way to Combine Numbers

An Interesting Way to Combine Numbers An Interesting Way to Combine Numbers Joshua Zucker and Tom Davis October 12, 2016 Abstract This exercise can be used for middle school students and older. The original problem seems almost impossibly

More information

7. Relational Calculus (Part I) 7.1 Introduction

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

More information

Let A(x) be x is an element of A, and B(x) be x is an element of B.

Let A(x) be x is an element of A, and B(x) be x is an element of B. Homework 6. CSE 240, Fall, 2014 Due, Tuesday October 28. Can turn in at the beginning of class, or earlier in the mailbox labelled Pless in Bryan Hall, room 509c. Practice Problems: 1. Given two arbitrary

More information

Connecting Statements. Today. First there was logic jumping forward.. ..and then proofs and then induction...

Connecting Statements. Today. First there was logic jumping forward.. ..and then proofs and then induction... Today Review for Midterm. First there was logic... A statement is a true or false. Statements? 3 = 4 1? Statement! 3 = 5? Statement! 3? Not a statement! n = 3? Not a statement...but a predicate. Predicate:

More information

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan MATH 22 Lecture M: 10/14/2003 MORE ABOUT FUNCTIONS Form follows function. Louis Henri Sullivan This frightful word, function, was born under other skies than those I have loved. Le Corbusier D ora innanzi

More information

Order from Chaos. University of Nebraska-Lincoln Discrete Mathematics Seminar

Order from Chaos. University of Nebraska-Lincoln Discrete Mathematics Seminar Order from Chaos University of Nebraska-Lincoln Discrete Mathematics Seminar Austin Mohr Department of Mathematics Nebraska Wesleyan University February 8, 20 The (, )-Puzzle Start by drawing six dots

More information

SECTION 1.5: LOGIC PROGRAMMING

SECTION 1.5: LOGIC PROGRAMMING SECTION 1.5: LOGIC PROGRAMMING William DeMeo williamdemeo@gmail.com University of South Carolina February 7, 2013 SPECIFYING FACTS AND RULES We populate our Prolog database with facts using predicates,

More information

B ABC is mapped into A'B'C'

B ABC is mapped into A'B'C' h. 00 Transformations Sec. 1 Mappings & ongruence Mappings Moving a figure around a plane is called mapping. In the figure below, was moved (mapped) to a new position in the plane and the new triangle

More information

Program Verification & Testing; Review of Propositional Logic

Program Verification & Testing; Review of Propositional Logic 8/24: p.1, solved; 9/20: p.5 Program Verification & Testing; Review of Propositional Logic CS 536: Science of Programming, Fall 2018 A. Why Course guidelines are important. Active learning is the style

More information

Section 1.5 Transformation of Functions

Section 1.5 Transformation of Functions 6 Chapter 1 Section 1.5 Transformation of Functions Often when given a problem, we try to model the scenario using mathematics in the form of words, tables, graphs and equations in order to explain or

More information

Bootcamp. Christoph Thiele. Summer An example of a primitive universe

Bootcamp. Christoph Thiele. Summer An example of a primitive universe Bootcamp Christoph Thiele Summer 2012 0.1 An example of a primitive universe A primitive universe consists of primitive objects and primitive sets. This allows to form primitive statements as to which

More information