INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC

Size: px
Start display at page:

Download "INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC"

Transcription

1 1 CHAPTER 7. PREDICATE LOGIC 1 INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC 1 Predicate Logic 1.1 Introduction There are various arguments which cannot be dealt with within the confines of propositional logic. For example All human beings are rational. Some animals are human beings. Hence, some animals are rational. Any friend of Martin is a friend of John. Peter is not John s friend. Hence, Peter is not Martins friend. The successor of an even integer is odd. 2 is an even integer. Hence, the successor of 2 is odd. We introduce notation to study the internal structure of statements - to deal with expressions like any, all and some. Let P (x) denote x has the predicate or property P. Then x.p (x) means that all x has the property P.

2 2 CHAPTER 7. PREDICATE LOGIC 2 Also x.p (x) means that some x has the property P. The symbols and are termed quantifiers - is the universal quantifier and is the existential quantifier. Definition x.p (x) is true if and only if the truth set of P is all of U. Definition x.p (x) is true if and only if the truth set of P is not φ. Now consider some simple examples of translations: i John is brilliant B(j) ii If Brian practices he will win P (b) W (b) iii All grass is green y.(g(y) R(y)) iv Every dog has its day v Some person done this x.(g(x) D(x)) x.(p (x) D(x)) vi There is a winning combination y.(c(y) W (y)) Note We use capital letters usually for predicates and small letters to indicate terms or objects. Furthermore, situations involving the universal quantifier are represented by the implication connective. Situations involving the existential quantifier are represented by conjunction. Finally, so far the predicates used are one place predicates. We extend our notation to two place, three place predicates in general n ary predicates. i Everyone loves logic x.l(x, l) ii Every even number is divisible by 2 x.(e(x) D(x, 2)) iii There is no prime number between 23 and 29 x.(p (x) B(x, 23, 29)) iv Any two numbers can be added together x. y. z.(x + y = z) v Everyone is loved by someone x. y.l(y, x) vi Someone is loved by everyone x. y.l(y, x)

3 3 CHAPTER 7. PREDICATE LOGIC 3 Note The order of the universal and existential quantifiers is significant. Also with each statement there is a suitable domain of interpretation U. Consider the statement Everyone is loved by someone. If U = all people we have x. y.l(y, x) If we were to assume that the domain of interpretation is not restricted to people we might use x.(p (x) y.(p (y) L(y, x))) where P (x) is the predicate of being a person. Example Using predicates, quantifiers and logical connectives we can now convert each of the following arguments to predicate logic. All human beings are rational. Some animals are human beings. Hence, some animals are rational. x.(h(x) R(x)), x.(a(x) H(x)) x.(a(x) R(x)) Any friend of Martin is a friend of John. Peter is not John s friend. Hence, Peter is not Martins friend. x.(f (x, m) F (x, j)), F (p, j) F (p, m) The successor of an even integer is odd. 2 is an even integer. Hence, the successor of 2 is odd. x.((i(x) E(x)) O(s(x))), I(2) E(2) O(s(2))

4 4 CHAPTER 7. PREDICATE LOGIC Functions In the last argument we used a function. Function notation easily fits into our predicate logic symbolism. In general f(a 1, a 2,..., a n ) is a function of n arguments (more generally represented as fi n ). For example, The square of an odd number is odd may be represented as x.(o(x) O(s(x)) where s(x) is a single variable function that returns the square of x. Exercise Let U = all people. Translate the following, using functions where suitable. i Anyone who is persistent can learn logic ii No politician is honest iii Not all birds can fly iv John hates everyone who does not hate himself v John likes Kate s sister vi John is afraid of Kate s mother s sister s husband [Solutions:] i x.(p (x) L(x)) ii x.(p (x) H(x)) or x.(p (x) H(x)) iii x.(b(x) F (x)) iv x.( H(x, x) H(j, x)) v L(j, s(k)) vi A(j, h(s(m(k))))

5 5 CHAPTER 7. PREDICATE LOGIC Terms and Well-formed Formulae Definition We define terms recursively as follows: i Every constant is a term. ii Every variable is a term iii If t 1, t 2,..., t n are terms then fi n(t 1, t 2,..., t n ) is a term. iv Nothing else is a term. String of constants, variables and functions must be properly formed for the purposes of logic. We define the correct formation of formulae. Definition Well-formed formulae are defined recursively as follows: i Pi n(t 1, t 2,..., t n ) is a well-formed formulae, where the t i are terms. ii If A and B are well-formed formulae so are A, A B, A B, A B and A B. iii If A is a well-formed formulae so is x.a. iv If A is a well-formed formula so is x.a. v Nothing else is a well-formed formulae. Remark For the wff x.a(x) the scope of the quantifier is A(x). x.(a(x, y) A(x)) x.a(x, y) A(x) x.(a(x, y) x.a(x)) the scope of x is A(x, y) A(x). the scope of x is A(x, y). the scope of x is A(x, y) x.a(x) and the scope of x is A(x). Consider the following wff x.p (x, y) The occurrences of the variable x are said to be bound. The occurrences of y is said to be free. When a variable x occurs within the scope of x of x it is said to be bound. An occurrence that is not bound is free.

6 6 CHAPTER 7. PREDICATE LOGIC 6 Example For the wff x.( y.a(x, y, z) z.a(z)) we can say that the scope of x is y.a(x, y, z) z.a(z). The scope of y is A(x, y, z). The scope of z is A(z). Every occurrence of x and y is bound. The first occurrence of z is free, the other occurrence is bound. Exercise For each quantifier in thee following examples state its scope. For each variable state whether each occurrence is bound or free. i x.b(y, z) ii x. y.a(x, y, z) iii x. y.a(x, y, z) z.a(x, z, z) 1.2 Resolution in Predicate Logic Recall that the resolution principle was used to investigate if a sequence of compound statements are inconsistent. Again, in the context of an argument if we negate the conclusion of the argument and show, using resolution, that it is inconsistent with the premises of the argument, then the argument will be valid. This approach is very mechanical but is relying on an inconsistency (contradiction) being established. If an inconsistency cannot be established the argument may be invalid. Recall the resolution principle of propositional logic. Theorem 1 The Resolution Principle A resolvent of two clauses C 1 and C 2 is a logical consequence of C 1 C 2. C 1 C 2 res(c 1, C 2 ) Resolution in predicate logic is bases on the same principle in fact the wff are, more or less, reduced to propositions in order to apply the method. Hence the terms normal form, clauses, literals, resolvents and resolution all must be brought to mind again. However, as you would expect, complications arise with the richer notation of predicate logic and there can be alot of preparation before the resolution principle can be applied.

7 7 CHAPTER 7. PREDICATE LOGIC Prenex Normal Form Remember to apply the resolution technique in propositional logic our wff must be in conjunctive normal form and are represented as clauses. Clauses in predicate logic are similar but there is extra preparation due to quantifiers being present. The procedure is to move all quantifiers to the front of the wff, thereby getting what is known as prenex normal form. For example, the first of the two following wff is in prenex normal form, the second is not. x. y. z.(a(x, y) (B(x) C(x, z))) x. y.a(x, y) z.(b(x) C(x, z)) In order to convert an arbitrary wff to prenex normal form we first eliminate and in favour of and, and make use of the following equivalences: 1. x.a(x) x.b(x) x.(a(x) B(x)) 2. x.a(x) x.b(x) x.(a(x) B(x)) 3. x.a(x) y.b(y) x. y(a(x) B(y)) 4. x.a(x) y.b(y) x. y(a(x) B(y)) 5. x.a(x) y.b(y) x. y(a(x) B(y)) 6. x.a(x) y.b(y) x. y(a(x) B(y)) 7. x.a(x) y.b(y) x. y(a(x) B(y)) 8. x.a(x) y.b(y) x. y(a(x) B(y)) 9. x.a(x) y.b(y) x. y(a(x) B(y)) 10. x.a(x) y.b(y) x. y(a(x) B(y)) 11. x.a(x) x.b(x) x.(a(x) B(x)) 12. x.a(x) x.b(x) x.(a(x) B(x)) Note that identities 11 and 12 require an appropriate change of variables. Example We can convert a wff to prenex normal form as follows: x.a(x) x.b(x) x.a(x) x.b(x) x. A(x) x.b(x) x.( A(x) B(x))

8 8 CHAPTER 7. PREDICATE LOGIC 8 Example In a similar way we have x.a(x) x.b(x) x.a(x) x.b(x) x. A(x) x.b(x) x. A(x) y.b(y) x. y.( A(x) B(y)) Example In a similar way we have x. y.[(a(x, y) B(y, z)) x.c(x, z)] x. y.[ (A(x, y) B(y, z)) x.c(x, z)] x. y.[ A(x, y) B(y, z) x.c(x, z)] x. y.[ A(x, y) B(y, z) w.c(w, z)] x. y. w.[ A(x, y) B(y, z) C(w, z)] Exercise Convert the following wff to prenex normal form i x.a(x) x.b(x) ii x. y.[ z.((a(x, y, z) B(y)) x.c(x, z)] Finally, a further transformation must be performed before we have clauses to which the resolution principle can applied. We must attempt to remove the existential quantifier from our wff in prenex normal form (if it exists). This technique is called Skolemisation Skolemisation When a wff is in prenex normal form we can use the now familiar existential rule x will allow us to remove an existential quantifier. Recall x (Existential Instantiation) x.a(x) A(c) where c is a term which has not been used in the derivation so far. However, it would be incorrect to do the following: x. y.m(x, y) x.m(x, c)

9 9 CHAPTER 7. PREDICATE LOGIC 9 Say, we let M(x, y) denote that the mother of x is y. Our premise is for all x, there is a y such that the mother of x is y. Our deduction is for all x there is a term (person) c such that the mother of x is c i.e., c is the mother of all x (c is everyones mother). This is not a correct deduction. The following is the correct deduction: x. y.m(x, y) x.m(x, m(x)) where the single variable function m(x) returns the mother of x. It should be that y varies with the value of x, hence we use the function m(x). This function returns for each x that persons mother.. The function used may be single-variable, bi-variable etc, depending on the number of s preceding x. y.a(x, y) x.a(x, f(x)) x. y. z.a(x, y, z) x. y.a(x, y, f(x, y)) x. y. z. u.[a(x, y, z) B(u, z)] x. y. z.[a(x, y, f(x, y)) B(u, f(x, y))] Notice that in the last wff that the function that replaces z does not involve u since u occurs to the right of z. Now the statements are universally quantified so we can drop all universal quantifiers and write the wff in clause form. Definition The process of eliminating the existential quantifier and replacing the corresponding variable by either a constant (Skolem constant) or a function (Skolem function) is called Skolemisation. Example We have already seen how to bring the following wff to prenex normal form as follows x. y.[(a(x, y) B(y, z)) x.c(x, z)] x. y.[ (A(x, y) B(y, z)) x.c(x, z)] x. y.[ A(x, y) B(y, z) x.c(x, z)] x. y.[ A(x, y) B(y, z) w.c(w, z)] x. y. w.[ A(x, y) B(y, z) C(w, z)] Now to bring to Skolem standard form. Since there are two s preceeding we need only replace the variable w with a function of two variables, say f(x, y).

10 10 CHAPTER 7. PREDICATE LOGIC 10 x. y.[ A(x, y) B(y, z) C(f(x, y), z)] The wff is now universally quantified so we can represent it in clause form as { A(x, y), B(y, z), C(f(x, y), z)} Exercise Write each of the following in Skolem standard form, and write the result as a set of clauses i x.a(x) x. y.(b(x) C(x, y)) ii x.a(x) x. y.(b(x) C(x, y)) iii x. y.[(a(x, y) B(x, y)) x.c(x, z)] The Resolution Principle Consider the following argument from earlier All human beings are rational. Some animals are human beings. Hence, some animals are rational. x.(h(x) R(x)), x.(a(x) H(x)) x.(a(x) R(x)) where H(x), R(x) and A(x) denote the properties of being human, rational and an animal. Taking each wff of the argument in turn (remembering to negate the conclusion) we bring to clause form as follows: x.(h(x) R(x)) x.( H(x) R(x)) x.(a(x) H(x)) A(a) H(a) x.(a(x) R(x)) x. (A(x) R(x)) x.( A(x) R(x)) We can use the resolution principle to show that these statements cannot be simultaneously be true i.e., they are inconsistent. Remembering that the clauses involving x are universally quantified, our clauses are

11 11 CHAPTER 7. PREDICATE LOGIC 11 { H(x), R(x)}, {A(a)}, {H(a)}, { A(x), R(x)} Constructing a resolution tree we get { H(x), R(x)} {H(a)} { A(x), R(x)} {A(a)} {R(a)} { A(a)} We have applied the resolution principle to the above clauses. It has yielded a contradiction so we conclude the the statements are inconsistent. This further implies that the argument from which these statements have come is a valid argument. Definition A resolution deduction of from a set of clauses S is called a refutation of S. Example Consider the following argument: All students are determined. Anyone who is determined and hardworking will succeed. Michael is a hardworking student. Therefore, Michael will succeed. S(x) x is a student D(x) x is a determined H(x) x is a hardworking I(x) x is will succeed x.(s(x) D(x)), x.((d(x) H(x)) I(x)), S(m) H(m) I(m) Taking each wff of the argument in turn (remembering to negate the conclusion) we bring to clause form as follows:

12 12 CHAPTER 7. PREDICATE LOGIC 12 x.(s(x) D(x)) x.( S(x) D(x)) x.((d(x) H(x)) I(x)) x.( (D(x) H(x)) I(x)) x.( D(x) H(x) I(x)) S(m) H(m) S(m) H(m) I(m) I(m) We can use the resolution principle to show that these statements cannot be simultaneously be true i.e., they are inconsistent. Remembering that the clauses involving x are universally quantified, our clauses are { S(x), D(x)}, { D(x), H(x), I(x)}, {S(m)}, {H(m)}, { I(m)} Constructing a resolution tree we get { S(x), D(x)} { D(x), H(x), I(x)} {S(m)} {H(m)} { I(m)} { S(m), H(m), I(m)} { H(m), I(m)} {I(m)} We have applied the resolution principle to the above clauses. It has yielded a contradiction so we conclude the the statements are inconsistent. This further implies that the argument from which these statements have come is a valid argument.

13 13 CHAPTER 7. PREDICATE LOGIC 13 Exercise Consider the following argument: Some students attend logic lectures diligently. No student attends boring logic lectures diligently. Sean s lectures on logic are attended diligently by all students. Therefore, none of Sean s lectures are boring. S(x) x is a student L(x) x is a logic lecture A(x, y) x attends y diligently B(x) x is boring G(x, y) x is given by y s Sean. x.(s(x) y.(l(y) A(x, y))), x.(s(x) y.((l(y) B(y)) A(x, y))), x.((l(x) G(x, s)) z.(s(z) A(z, x)) x.((l(x) G(x, s)) B(x)) Convert each wff to clause form and use the resolution principle to establish its validity the argument is valid.

14 14 CHAPTER 7. PREDICATE LOGIC Formal Proofs in Predicate Logic Review of Formal Proofs in Propositional Logic We consider a more formal or syntactic treatment of proofs and deductions. Our objective is to prove logical forms from given logical forms using formal rules of deduction. The rules of deduction are like the rules of a game, such as chess. They permit certain logical moves. They must be adhered to in order to play the formal game of logic. The rules of deduction will ensure true conclusions will be deduced from true premises. Remark We will use the logical constant to replace the symbol 0. This constant has the false value. It is known by the latin name falsum. The rules of deduction are intended to represent in a formal way the intuitive or natural methods of reasoning used by humans. I ( introduction) A B A B E ( elimination) A B A E ( elimination) A B B I ( introduction) A A B I ( introduction) B A B E ( elimination) A B.. A B C C C

15 15 CHAPTER 7. PREDICATE LOGIC 15 If C is derived from A, and C is derived from B, then C may be derived from A B. The reason A and B are crossed out is that they are no longer needed - A B takes their place. If A and B are assumptions then they are said to be discharged. I ( introduction) A. C A C If C can be derived from the assumption A, then we can discharge the assumption and conclude that A C. For example, say we conclude that The cat drank the cream from the assumption The saucer is empty. Then it is reasonable to make the assertion If the saucer is empty, then the cat drank the cream. We do not hold on to the assumption The saucer is empty, since it is contained in the assertion. E ( elimination) A A C C If A holds, and A implies C, then C holds. This is the modus ponens rule of reasoning. C From a contradiction, any conclusion C can be drawn. RAA (Reductio Ad Absurdum) A. A

16 16 CHAPTER 7. PREDICATE LOGIC 16 This rule formalises the famous proof by contradiction method of arguing. If assuming that A is not the case leads to a contradiction, then we conclude that A is the case. Using the I rule and noting that A A we get a complementary form of this rule: A. A We will refer to this form of the rule as RAA also. Finally we have a final rule. Id (Identity) A A Any formula can be derived from itself. Remark The method of natural deduction was introduced by the German/Polish mathematician Gerhard Gentzen ( ) in a paper published in He intended to set up a formal system which comes as close as possible to actual reasoning. Let us consider how we use he above rules of deduction to establish the validity of an argument in a more efficient way. Recall the form of an argument A 1, A 2,..., A n C Note If the set of assumptions are empty we simply write C Further Rules of Deduction The rules of deduction established for propositional logic are used in a similar way along with four new rules to deal with quantifiers. x (U niversal Instantiation) x.a(x) A(c)

17 17 CHAPTER 7. PREDICATE LOGIC 17 where c is some arbitrary element of the universe. x (Existential Instantiation) x.a(x) A(c) where c is a term which has not been used in the derivation so far. I (U niversal Generalisation) A(c) x.a(x) where A(c) holds for every element c of the universe and x must not appear as a free variable in A(c). I (Existential Generalisation) A(c) x.a(x) where c is an element of the universe and x must not appear as a free variable in A(c). The following laws of logic establish a relationship between and. They can be easily confirmed by way of example. x.a(x) x. A(x) x.a(x) x. A(x) Natural Deduction We can illustrate each of the above rules with the following examples. The first example illustrates universal instantiation x.

18 18 CHAPTER 7. PREDICATE LOGIC 18 Example x.(a(x) B(x)), A(c) B(c) Proof 1. x.(a(x) B(x)) Hypothesis 2. A(c) Hypothesis 3. A(c) B(c) by x 4. B(c) by E with 2, 3. This next example illustrates the use of existential instantiation x. Example x.(a(x) B(x)), x.a(x) B(c) Proof 1. x.(a(x) B(x)) Hypothesis 2. x.a(x) Hypothesis 3. A(c) by x 4. A(c) B(c) by x 5. B(c) by E with 3, 4. This next example illustrates the use of universal generalisation. Example x.(a(x) B(x)), x.a(x) x.b(x) Proof 1. x.(a(x) B(x)) Hypothesis 2. x.a(x) Hypothesis 3. A(c) B(c) by x 4. A(c) by x 5. B(c) by E

19 19 CHAPTER 7. PREDICATE LOGIC x.b(x) by I (universal generalization) on 5. Remark Consider the previous argument x.(a(x) B(x)), x.a(x) x.b(x) An example of a corresponding hypothetical argument could be as follows: For every x if x > 1, then x 1 > 0. Also for every number x, x > 1. Hence we conclude that for every x, x 1 > 0. Finally, a short example to illustrate the use of existential generalisation. Example x.a(x) x.a(x) Proof 1. x.a(x) Hypothesis 2. A(c) x 3. x.a(x) by I (existential generalization) on 2. Example x.a(x) B(x) x.a(x) y.b(y) Proof 1. x.a(x) B(x) Hypothesis 2. A(c) B(c) by x 3. A(c) by E 4. x.a(x) by I 5. B(c) by E 6. y.b(y) by x 7. x.a(x) y.b(y) by I on 4, 6.

20 20 CHAPTER 7. PREDICATE LOGIC 20 Example x.(a(x) B(x)), x.a(x) x.b(x) Proof 1. x.(a(x) B(x)) Hypothesis 2. x.a(x) Hypothesis 3. A(c) B(c) by x (c has not been used so far) 4. A(c) by x 5. B(c) by E 6. x.b(x) by I (existential generalization) on 8. Example x.(a(x) B(x)), x.(b(x) C(x)), y.a(y) z.c(z) Proof 1. x.(a(x) B(x)) Hypothesis 2. x.(b(x) C(x)) Hypothesis 3. y.a(y) Hypothesis 4. A(c) by x (c has not been used so far) 5. A(c) B(c) by x 6. B(c) by E 7. B(c) C(c) by x 8. C(c) by E 9. z.c(z) by I (existential generalization) on 8.

21 21 CHAPTER 7. PREDICATE LOGIC 21 Example x.a(x) B(x), B(c) A(c) Proof 1. x.a(x) B(x) Hypothesis 2. B(c) Hypothesis 3. A(c) B(c) by x 4. A(c) Assumption 5. B(c) by E 6. by 2, A(c) by RRA, discharging assumption. Remark We can use the deduction theorem in our proofs which we discussed in section 1.6 axiomatic propositional logic. When a wff of the form C D is to be establish, it may be useful to include C among the hypotheses, derive D from the expanded set of hypotheses, and then conclude C D from the original set using the deduction theorem. Recall, again, the deduction theorem. Theorem 1 (The Deduction Theorem) Let H be a set (possibly empty) of wff of AL, and let A and B be any wff of AL. If H {A} B then H A B Example x.(a(x) B(x)) ( x.a(x) x.b(x)) Proof 1. x.(a(x) B(x)) Hypothesis 2. x.a(x) Hypothesis 3. A(c) by x (c has not been used so far)

22 22 CHAPTER 7. PREDICATE LOGIC A(c) B(c) by x 5. B(c) by E 6. x.b(x) by I (existential generalization) on x.(a(x) B(x)), x.a(x) x.b(x) 8. x.(a(x) B(x)) x.a(x) x.b(x) by deduction theorem 9. x.(a(x) B(x)) ( x.a(x) x.b(x)) by deduction theorem Example x.(a(x) B(x)), x.a(x) x.b(x) Proof 1. x.a(x) Hypothesis 2. x. B(x) Hypothesis 3. A(c) x 4. B(c) x 5. (A(c) B(c)) (A B) (A B) 6. x. (A(x) B(x)) I 7. x.a(x), x. B(x) x. (A(x) B(x)) 8. x.a(x) x. B(x) x. (A(x) B(x)) by Deduction T heorem 9. x.a(x) ( x. (A(x) B(x)) x. B(x) A B B A 10. x.a(x) x.(a(x) B(x)) x.b(x) x. A(x) x.a(x) 11. x.a(x), x.(a(x) B(x)) x.b(x) by Deduction T heorem This final proof above involves the use of many formal rules of logic - including the converse of the deduction theorem.

23 23 CHAPTER 7. PREDICATE LOGIC 23 Exercise Derive each of the following theorems using the deduction theorem i ii x.a(x) x.a(x) x.(a(x) B(x)) ( x.a(x) x.b(x)) iii x. y.a(x, y) x.a(x, x) Exercise Use predicates, quantifiers and logical connectives to convert this argument to predicate logic. All computer science graduates are people. Some computer science graduates are logical thinkers. Therefore, some people are logical thinkers. Write a formal proof for this argument. Exercise Use predicates, quantifiers and logical connectives to convert this argument to predicate logic. All students are determined. Anyone who is determined and hardworking will succeed. Michael is a hardworking student. Therefore, Michael will succeed. Write a formal proof for this argument. Exercise Use predicates, quantifiers and logical connectives to convert this argument to predicate logic. Some students are anxious. Some students do not study. If a student is anxious he will not pass his examination unless he studies. Therefore, some students will not pass their examination. Write a formal proof for this argument.

24 24 CHAPTER 7. PREDICATE LOGIC 24 Exercise Use predicates, quantifiers and logical connectives to convert this argument to predicate logic. The horse that is registered for today s race is not a thoroughbred. Every horse registered for today s race has won a race this year. Therefore, a horse that has won a race this year is not a thoroughbred. Write a formal proof for this argument.

Denote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s).

Denote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s). PREDICATE CALCULUS Predicates Statement function Variables Free and bound variables Quantifiers Universe of discourse Logical equivalences and implications for quantified statements Theory of inference

More information

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures Formal Logic: Quantifiers, Predicates, and Validity CS 130 Discrete Structures Variables and Statements Variables: A variable is a symbol that stands for an individual in a collection or set. For example,

More information

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

4 Quantifiers and Quantified Arguments 4.1 Quantifiers 4 Quantifiers and Quantified Arguments 4.1 Quantifiers Recall from Chapter 3 the definition of a predicate as an assertion containing one or more variables such that, if the variables are replaced by objects

More information

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PROPOSITIONAL LOGIC

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PROPOSITIONAL LOGIC 1 CHAPTER 4. PROPOSITIONAL LOGIC 1 INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PROPOSITIONAL LOGIC 1 Propositional Logic 1.1 Introduction George Boole, mathematician, logician

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

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

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

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

SYMBOLIC LOGIC UNIT 10: SINGULAR SENTENCES

SYMBOLIC LOGIC UNIT 10: SINGULAR SENTENCES SYMBOLIC LOGIC UNIT 10: SINGULAR SENTENCES Singular Sentences name Paris is beautiful (monadic) predicate (monadic) predicate letter Bp individual constant Singular Sentences Bp These are our new simple

More information

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014 Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014 Class #23 - Translation into Predicate Logic II ( 3.2) Only as a Quantifier P Only Ps are Qs is logically equivalent to all Qs are

More information

Predicate Logic. 1 Predicate Logic Symbolization

Predicate Logic. 1 Predicate Logic Symbolization 1 Predicate Logic Symbolization innovation of predicate logic: analysis of simple statements into two parts: the subject and the predicate. E.g. 1: John is a giant. subject = John predicate =... is a giant

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

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January ) Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January 23 30 2017) John Lasseter Revised February 14, 2017 The following notes are a record of the class sessions we ve devoted to the

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

Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, Predicate logic

Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, Predicate logic Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, 2018 Predicate logic 1. Why propositional logic is not enough? Discussion: (i) Does (1a) contradict (1b)? [Two sentences are contradictory

More information

1 Introduction to Predicate Resolution

1 Introduction to Predicate Resolution 1 Introduction to Predicate Resolution The resolution proof system for Predicate Logic operates, as in propositional case on sets of clauses and uses a resolution rule as the only rule of inference. The

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

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

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

Mat 243 Exam 1 Review

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

More information

Marie Duží

Marie Duží Marie Duží marie.duzi@vsb.cz 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: 1. a language 2. a set of axioms 3. a set of deduction rules ad 1. The definition of a language

More information

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. March 1, :00 pm Duration: 1:15 hs

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. March 1, :00 pm Duration: 1:15 hs University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura March 1, 2012 1:00 pm Duration: 1:15 hs Closed book, no calculators THIS MIDTERM AND ITS SOLUTION IS SUBJECT TO COPYRIGHT; NO PARTS OF

More information

Logic: First Order Logic

Logic: First Order Logic Logic: First Order Logic Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06

More information

Introduction to first-order logic:

Introduction to first-order logic: Introduction to first-order logic: First-order structures and languages. Terms and formulae in first-order logic. Interpretations, truth, validity, and satisfaction. Valentin Goranko DTU Informatics September

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

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

More information

Introduction to Metalogic

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

More information

First order Logic ( Predicate Logic) and Methods of Proof

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

More information

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

Phil 2B03 (McMaster University Final Examination) Page 1 of 4

Phil 2B03 (McMaster University Final Examination) Page 1 of 4 Phil 2B03 (McMaster University Final Examination) Page 1 of 4 1. [SL proof] (a) Prove the formal validity of the following sequent: (F & G), F H, H G H (1) (F & G) Prem (2) F H Prem (3) H G Prem (4) H

More information

1 Predicates and Quantifiers

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

More information

Logic: First Order Logic

Logic: First Order Logic Logic: First Order Logic Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06

More information

Strong AI vs. Weak AI Automated Reasoning

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

More information

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction Introduction I Proofs Computer Science & Engineering 235 Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu A proof is a proof. What kind of a proof? It s a proof. A proof is a proof. And when

More information

A. Propositional Logic

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

More information

CITS2211 Discrete Structures Proofs

CITS2211 Discrete Structures Proofs CITS2211 Discrete Structures Proofs Unit coordinator: Rachel Cardell-Oliver August 13, 2017 Highlights 1 Arguments vs Proofs. 2 Proof strategies 3 Famous proofs Reading Chapter 1: What is a proof? Mathematics

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

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

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

More information

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

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

More information

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

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

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

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

06 From Propositional to Predicate Logic

06 From Propositional to Predicate Logic Martin Henz February 19, 2014 Generated on Wednesday 19 th February, 2014, 09:48 1 Syntax of Predicate Logic 2 3 4 5 6 Need for Richer Language Predicates Variables Functions 1 Syntax of Predicate Logic

More information

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. February 9, :30 pm Duration: 1:50 hs. Closed book, no calculators

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. February 9, :30 pm Duration: 1:50 hs. Closed book, no calculators University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura February 9, 2010 11:30 pm Duration: 1:50 hs Closed book, no calculators Last name: First name: Student number: There are 5 questions and

More information

Chapter 9. Proofs. In this chapter we will demonstrate how this system works. The precise definition of 9-1

Chapter 9. Proofs. In this chapter we will demonstrate how this system works. The precise definition of 9-1 Chapter 9 Proofs In the first part of this book we have discussed complete axiomatic systems for propositional and predicate logic In the previous chapter we have introduced the tableau systems of Beth,

More information

Proseminar on Semantic Theory Fall 2013 Ling 720 First Order (Predicate) Logic: Syntax and Natural Deduction 1

Proseminar on Semantic Theory Fall 2013 Ling 720 First Order (Predicate) Logic: Syntax and Natural Deduction 1 First Order (Predicate) Logic: Syntax and Natural Deduction 1 A Reminder of Our Plot I wish to provide some historical and intellectual context to the formal tools that logicians developed to study the

More information

Predicate Logic - Deductive Systems

Predicate Logic - Deductive Systems CS402, Spring 2018 G for Predicate Logic Let s remind ourselves of semantic tableaux. Consider xp(x) xq(x) x(p(x) q(x)). ( xp(x) xq(x) x(p(x) q(x))) xp(x) xq(x), x(p(x) q(x)) xp(x), x(p(x) q(x)) xq(x),

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

Section 1.1 Propositions

Section 1.1 Propositions Set Theory & Logic Section 1.1 Propositions Fall, 2009 Section 1.1 Propositions In Chapter 1, our main goals are to prove sentences about numbers, equations or functions and to write the proofs. Definition.

More information

The Process of Mathematical Proof

The Process of Mathematical Proof 1 The Process of Mathematical Proof Introduction. Mathematical proofs use the rules of logical deduction that grew out of the work of Aristotle around 350 BC. In previous courses, there was probably an

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

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

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

Logic for Computer Science - Week 4 Natural Deduction

Logic for Computer Science - Week 4 Natural Deduction Logic for Computer Science - Week 4 Natural Deduction 1 Introduction In the previous lecture we have discussed some important notions about the semantics of propositional logic. 1. the truth value of a

More information

III. Elementary Logic

III. Elementary Logic III. Elementary Logic The Language of Mathematics While we use our natural language to transmit our mathematical ideas, the language has some undesirable features which are not acceptable in mathematics.

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

Predicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04

Predicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04 Predicate Logic Today s Menu Predicate Logic Quantifiers: Universal and Existential Nesting of Quantifiers Applications Limitations of Propositional Logic Suppose we have: All human beings are mortal.

More information

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007 Proofs Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Fall 2007 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 1.5, 1.6, and 1.7 of Rosen cse235@cse.unl.edu

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

Intermediate Logic. First-Order Logic

Intermediate Logic. First-Order Logic Intermediate Logic Lecture Four First-Order Logic Rob Trueman rob.trueman@york.ac.uk University of York Introducing First-Order Logic First-Order Logic Introducing First-Order Logic Names Predicates Quantifiers

More information

Full file at Chapter 1

Full file at   Chapter 1 Chapter 1 Use the following to answer questions 1-5: In the questions below determine whether the proposition is TRUE or FALSE 1. 1 + 1 = 3 if and only if 2 + 2 = 3. 2. If it is raining, then it is raining.

More information

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

More information

Predicate Logic. 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

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano

More information

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology 1 Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007 Suprakash Datta datta@cs.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cs.yorku.ca/course/1019

More information

15414/614 Optional Lecture 1: Propositional Logic

15414/614 Optional Lecture 1: Propositional Logic 15414/614 Optional Lecture 1: Propositional Logic Qinsi Wang Logic is the study of information encoded in the form of logical sentences. We use the language of Logic to state observations, to define concepts,

More information

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

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

More information

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates Predicate Logic In what we ve discussed thus far, we haven t addressed other kinds of valid inferences: those involving quantification and predication. For example: All philosophers are wise Socrates is

More information

15414/614 Optional Lecture 3: Predicate Logic

15414/614 Optional Lecture 3: Predicate Logic 15414/614 Optional Lecture 3: Predicate Logic Anvesh Komuravelli 1 Why Predicate Logic? Consider the following statements. 1. Every student is younger than some instructor. 2. Not all birds can fly. Propositional

More information

Logical Structures in Natural Language: First order Logic (FoL)

Logical Structures in Natural Language: First order Logic (FoL) Logical Structures in Natural Language: First order Logic (FoL) Raffaella Bernardi Università degli Studi di Trento e-mail: bernardi@disi.unitn.it Contents 1 How far can we go with PL?................................

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

Solutions to Exercises (Sections )

Solutions to Exercises (Sections ) s to Exercises (Sections 1.1-1.10) Section 1.1 Exercise 1.1.1: Identifying propositions (a) Have a nice day. : Command, not a proposition. (b) The soup is cold. : Proposition. Negation: The soup is not

More information

CHAPTER 10. Predicate Automated Proof Systems

CHAPTER 10. Predicate Automated Proof Systems CHAPTER 10 ch10 Predicate Automated Proof Systems We define and discuss here a Rasiowa and Sikorski Gentzen style proof system QRS for classical predicate logic. The propositional version of it, the RS

More information

PHIL 50 INTRODUCTION TO LOGIC 1 FREE AND BOUND VARIABLES MARCELLO DI BELLO STANFORD UNIVERSITY DERIVATIONS IN PREDICATE LOGIC WEEK #8

PHIL 50 INTRODUCTION TO LOGIC 1 FREE AND BOUND VARIABLES MARCELLO DI BELLO STANFORD UNIVERSITY DERIVATIONS IN PREDICATE LOGIC WEEK #8 PHIL 50 INTRODUCTION TO LOGIC MARCELLO DI BELLO STANFORD UNIVERSITY DERIVATIONS IN PREDICATE LOGIC WEEK #8 1 FREE AND BOUND VARIABLES Before discussing the derivation rules for predicate logic, we should

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

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

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

More information

Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.

Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational. Quantifiers 1-17-2008 Here is a (true) statement about real numbers: Every real number is either rational or irrational. I could try to translate the statement as follows: Let P = x is a real number Q

More information

Section 1.2: Propositional Logic

Section 1.2: Propositional Logic Section 1.2: Propositional Logic January 17, 2017 Abstract Now we re going to use the tools of formal logic to reach logical conclusions ( prove theorems ) based on wffs formed by some given statements.

More information

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

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

Normal Forms for First-Order Logic

Normal Forms for First-Order Logic Logic and Proof Hilary 2016 James Worrell Normal Forms for First-Order Logic In this lecture we show how to transform an arbitrary formula of first-order logic to an equisatisfiable formula in Skolem form.

More information

Predicate Logic Quantifier Rules

Predicate Logic Quantifier Rules Predicate Logic Quantifier Rules CS251 at CCUT, Spring 2017 David Lu May 8 th, 2017 Contents 1. Universal Instantiation (UI) 2. Existential Generalization (EG) 3. Universal Generalization (UG) 4. Existential

More information

CS2336 Discrete Mathematics

CS2336 Discrete Mathematics CS2336 Discrete Mathematics Homework 1 Tutorial: March 20, 2014 Problems marked with * will be explained in the tutorial. 1. Determine which of the following statements are propositions and which are non-propositions.

More information

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam Logic and Modelling Introduction to Predicate Logic Jörg Endrullis VU University Amsterdam Predicate Logic In propositional logic there are: propositional variables p, q, r,... that can be T or F In predicate

More information

Symbolising Quantified Arguments

Symbolising Quantified Arguments Symbolising Quantified Arguments 1. (i) Symbolise the following argument, given the universe of discourse is U = set of all animals. Animals are either male or female. Not all Cats are male, Therefore,

More information

Predicates, Quantifiers and Nested Quantifiers

Predicates, Quantifiers and Nested Quantifiers Predicates, Quantifiers and Nested Quantifiers Predicates Recall the example of a non-proposition in our first presentation: 2x=1. Let us call this expression P(x). P(x) is not a proposition because x

More information

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4 INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4 Neil D. Jones DIKU 2005 Some slides today new, some based on logic 2004 (Nils Andersen), some based on kernebegreber (NJ 2005) PREDICATE LOGIC:

More information

1.3 Predicates and Quantifiers

1.3 Predicates and Quantifiers 1.3 Predicates and Quantifiers INTRODUCTION Statements x>3, x=y+3 and x + y=z are not propositions, if the variables are not specified. In this section we discuss the ways of producing propositions from

More information

RULES OF UNIVERSAL INSTANTIATION AND GENERALIZATION, EXISTENTIAL INSTANTIATION AND GENERALIZATION, AND RULES OF QUANTIFIER EQUIVALENCE

RULES OF UNIVERSAL INSTANTIATION AND GENERALIZATION, EXISTENTIAL INSTANTIATION AND GENERALIZATION, AND RULES OF QUANTIFIER EQUIVALENCE 1 UNIT 2 RULES OF UNIVERSAL INSTANTIATION AND GENERALIZATION, EXISTENTIAL INSTANTIATION AND GENERALIZATION, AND RULES OF QUANTIFIER EQUIVALENCE Contents 2.0 Objectives 2.1 Introduction 2.2 Rules of Quantification

More information

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

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

More information

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) (2011 Admission Onwards) I Semester Core Course FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK 1) If A and B are two sets

More information

Inferences Critical. Lecture 30: Inference. Application: Question Answering. Types of Inferences

Inferences Critical. Lecture 30: Inference. Application: Question Answering. Types of Inferences Inferences Critical Lecture 30: Inference CS 181O Spring 2016 Kim Bruce Inferences, often using world knowledge, play a big role in understanding utterances John ate the pudding with a fork John ate the

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

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

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

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

More information

STRATEGIES OF PROBLEM SOLVING

STRATEGIES OF PROBLEM SOLVING STRATEGIES OF PROBLEM SOLVING Second Edition Maria Nogin Department of Mathematics College of Science and Mathematics California State University, Fresno 2014 2 Chapter 1 Introduction Solving mathematical

More information

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1)

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1) Introduction to Predicate Logic Part 1 Professor Anita Wasilewska Lecture Notes (1) Introduction Lecture Notes (1) and (2) provide an OVERVIEW of a standard intuitive formalization and introduction to

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

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information