PROOFS OF IMPLICATIONS INVOLVING QUANTIFIERS DISTRIBUTION OVER LOGICAL OPERATORS

Similar documents
Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers

MAT2345 Discrete Math

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

Predicate Logic. Andreas Klappenecker

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

2-4: The Use of Quantifiers

ICS141: Discrete Mathematics for Computer Science I

Predicate Calculus lecture 1

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

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof:

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

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

Discrete Mathematics

Introduction to Sets and Logic (MATH 1190)

University of Aberdeen, Computing Science CS2013 Predicate Logic 4 Kees van Deemter

1.3 Predicates and Quantifiers

Propositional Logic Not Enough

THE LOGIC OF QUANTIFIED STATEMENTS

PREDICATE LOGIC. Schaum's outline chapter 4 Rosen chapter 1. September 11, ioc.pdf

COMP9414: Artificial Intelligence First-Order Logic

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

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

Logic and Proofs. (A brief summary)

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

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

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

CSE 311: Foundations of Computing. Lecture 6: More Predicate Logic

A consistent theory of truth for languages which conform to classical logic

Mat 243 Exam 1 Review

Theory of Computation

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Predicate Calculus - Syntax

Full file at

Math Fundamentals of Higher Math

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

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

Lecture 3. Logic Predicates and Quantified Statements Statements with Multiple Quantifiers. Introduction to Proofs. Reading (Epp s textbook)

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

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.

Propositional Functions. Quantifiers. Assignment of values. Existential Quantification of P(x) Universal Quantification of P(x)

Discrete Structures for Computer Science

Recall that the expression x > 3 is not a proposition. Why?

Discrete Mathematics and Its Applications

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

Topic #3 Predicate Logic. Predicate Logic

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra.

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

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

First Order Logic (FOL)

Review for Midterm 1. Andreas Klappenecker

First order Logic ( Predicate Logic) and Methods of Proof

Proposi'onal Logic Not Enough

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

Lecture 10 CS 1813 Discrete Mathematics. Quantify What? Reasoning with Predicates

About the course. CSE 321 Discrete Structures. Why this material is important. Topic List. Propositional Logic. Administration. From the CSE catalog:

1. Propositions: Contrapositives and Converses

ECOM Discrete Mathematics

First Order Logic Implication (4A) Young W. Lim 4/6/17

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

Logic and Proof. Aiichiro Nakano

Maryam Al-Towailb (KSU) Discrete Mathematics and Its Applications Math. Rules Math. of1101 Inference 1 / 13

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

Propositions and Proofs

Logic and Proofs. (A brief summary)

Proving Arguments Valid in Predicate Calculus

06 From Propositional to Predicate Logic

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

Formal (Natural) Deduction for Predicate Calculus

Section 2.1: Introduction to the Logic of Quantified Statements

Arithmetic Decision Procedures: a simple introduction

Logic (3A) Young W. Lim 10/29/13

Chapter 1 Elementary Logic

Section Summary. Section 1.5 9/9/2014

1.1 Language and Logic

Introduction. Predicates and Quantifiers. Discrete Mathematics Andrei Bulatov

Math.3336: Discrete Mathematics. Nested Quantifiers

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

Bound and Free Variables. Theorems and Proofs. More valid formulas involving quantifiers:

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Background for Discrete Mathematics

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Logic and Propositional Calculus

First Order Logic (1A) Young W. Lim 11/5/13

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

Announcements CompSci 102 Discrete Math for Computer Science

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

EECS 1028 M: Discrete Mathematics for Engineers

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

1.1 Language and Logic

CPSC 121: Models of Computation

Propositions. c D. Poole and A. Mackworth 2010 Artificial Intelligence, Lecture 5.1, Page 1

Predicate Logic: Sematics Part 1

Discrete Mathematics

Logic (3A) Young W. Lim 11/2/13

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Transcription:

PROOFS OF IMPLICATIONS INVOLVING QUANTIFIERS DISTRIBUTION OVER LOGICAL OPERATORS 1 MAHER A. NABULSI, 2 NESREEN A. HAMAD 1,2 Department of Computer Science, Faculty of Science and Information Technology, Al-Zaytoonah University of Jordan, Amman, Jordan E-mail: 1 nabulsi@zuj.edu.jo, 2 nesreen.hamad@zuj.edu.jo ABSTRACT Mathematics is considered the base for computer science. In particular, discrete mathematics is commonly used in many disciplines of computer science. One of the main topics that are discussed in discrete mathematics is quantifiers and their relations with logical operators. Accordingly, this paper proposes a new method to prove the validity of some implications involving quantifiers and logical operators. The proposed method is based on the idea of showing that whenever the premise of the implication is true, the conclusion cannot be false (must be true), so the implication is valid. On the other hand, if the conclusion can be false then the implication is not valid. Keywords: Predicate logic, Propositional logic, Quantifiers and Logical operators, Validity of implications. 1. INTRODUCTION Predicate logic and propositional logic in discrete mathematics bring a great tool for reasoning properly about mathematics, algorithms, and computers. They are used widely in computer science, and we need to identify their basic concepts in order to study many of the more advanced subjects in computer science. Propositional logic is used widely in information retrieval, digital circuit design and computer architecture, designing programming languages and software engineering [1]. On the other hand, predicate logic is used to form the basis of Prolog (Programming in logic) which is a language that is used widely to stimulate intelligent through programs in the field of artificial intelligence [2]. In addition, Structured Query Language (SQL) which is used widely in designing database systems is formed based on the predicate logic [3]. However, predicate logic is considered as an extension to propositional logic by adding two quantifiers which make it more expressive than the propositional logic and more applicable in complex problems. One of the main issues in predicate logic is proving the validity of some assertions using different methods of proofs. In this paper, a new method is proposed for proving the quantifiers distribution over logical operators, which is considered an essential problem that is associated with predicate logic. This subject has been mentioned in few books and researches, and the processes of proving these relations are not clear enough. Our goal is to propose a new method that is more comprehensive, clearer, and deals with the problem in details. Additionally, the importance of this subject comes from the necessity of knowing which of these relationships are valid and which ones are invalid; this can assist in applying such topic in artificial intelligence, designing computer circuits, etc. Firstly, some definitions that are related to our work are introduced. Also, two methods that were used to prove the validity of some logical implications are presented in this section. Definition 1. A predicate is an assertion that contains a finite number of variables and becomes a proposition when specific values are substituted for the variables from the domain of the predicate or when these variables are bound using quantifiers [4]. Definition 2. The domain of discourse of a predicate variable is the set of all values that may be substituted in place of the variable [5]. 2824

Definition 3. The logical implication is a logical connective (or a binary operator) denoted by ( ). The implication is used to form statement of the form (p q) (termed a conditional statement) which is read as : ( if p then q ) or ( p only if q). In logical implications, p is called the premise and q is called the conclusion. The converse of (p q) is (q p) [6]. The truth table of (p q) is presented in table 1 [7] [8]. Table 1: The Truth Table of p q p q p q 0 0 1 0 1 1 1 0 0 1 1 1 Definition 4. Quantification is a concept that specifies the quantity of cases in the domain of discourse that satisfy an open formula [9]. The two main quantifiers are: the universal ( ) and the existential ( ). Let P(x) be a predicate with domain D. A universal statement is a statement in the form x P(x). It is true if and only if (iff) P(x) is true for every x from D. It is false iff P(x) is false for at least one x from D. Let P(x) be a predicate with domain D. An existential statement is a statement in the form x P(X). It is true iff P(x) is true for at least one x from D. It is false iff P(x) is false for every x from D [10]. It is proven that the existential quantifier ( ) does not distribute over the AND ( ) logical operator. Consequently, x [ P(x) Q(x) ] [ x P(x) x Q(x) ] [7] [10], where P(x) and Q(x) are predicates with domain D, but one side implies the other is valid, so the following implication is valid: x [ P(x) Q(x) ] [ x P(x) x Q(x) ], and the converse is not valid [4] [7]. Also, the universal quantifier ( ) is not distributable over the logical operator OR ( ). So, x [ P(x) Q(x) ] [ x P(x) x Q(x)] [7] [10], but one side implies the other is valid, so the following implication is valid: [ x P(x) x Q(x)] x[ P(x) Q(x)], and the converse is not valid [7] [11]. Furthermore, the ( ) quantifier does not distributes over the implication logical operator. As a consequent, x [ P(x) Q(x) ] [ x P(x) xq(x) ] [7], but one side implies the other is valid, so the following implication is valid: [ x P(x) xq(x) ] x [ P(x) Q(x) ], and the converse is not valid [7]. In addition, the ( ) quantifier does not distribute over the implication logical operator. So, x [ P(x) Q(x) ] [ x P(x) x Q(x)] [7]. However, one side implies the other is valid as follows: x [ P(x) Q(x) ] [ x P(x) x Q(x)], but the converse is not valid [7]. Nabulsi (2000) [12] showed that the validity of the previous implications can be proven using the method of truth table. For example, to prove that x [ P(x) Q(x) ] [ x P(x) x Q(x) ] is valid, the author assumed that the universe is the set {0,1}, then proved the validity of this implication as follows: - x[p(x) Q(x)] [P(0) Q(0)] [ P(1) Q(1)]. If we assumed that [ P(0) Q(0) ] is denoted by A and [ P(1) Q(1) ] is denoted by B then x [ P(x) Q(x) ] A B. -[ xp(x) xq(x)] [P(0) P(1)] [Q(0) Q(1)]. If we assumed that [P(0) P(1)] is denoted by C and [ Q(0) Q(1)] ] is denoted by D then x [P(x) x Q(x)] C D. - P(0), P(1), Q(0) and Q(1) are considered as four variables to construct the truth table of 16 cases as shown in table 2. The remaining implications can be proved in the same way. Rasiowa (1973) [13] discussed that the [ x P(x) x Q(x) ] x[ P(x) Q(x) ] is proved to be valid by assuming that the conclusion is false; which means that [P(x) Q(x)] is not satisfied for every x D, so there is an element (a) D, such that [P(x) Q(x) ] is a false proposition. So, p(x) is false and q(x) is false. Consequently, x P(x) is false and x Q(x) is false in the Left- Hand Side (LHS), this will result in a false premise; 2825

as a result, the implication is valid. Also, the x [ P(x) Q(x) ] [ x P(x) x Q(x) ] is proved to be valid, by assuming that the conclusion [ x P(x) x Q(x)] is false, and because it is false, then x P(x) must be true and x Q(x) must be false, so every element of D satisfies p(x). Also, there must be an element (a) such that q(x) is false. Therefore, P(x) Q(x) in the LHS must be false, and this will result in a valid implication. The rest of this paper is organized as follows: Section 2 presents our proposed method. How to solve some examples using the proposed method is presented in Section 3.Finally, the drawn conclusions and the planned future work are discussed in Section 4. The method proposed in [12] is long, timeconsuming, and provided one example only. On the other hand, the method in [13] is somewhat difficult, not very clear, and provided two examples only. This paper proposes a clearer and easier solution in comparison with the other two methods. Table 2: The Truth Table of x [ P(x) Q(x) ] [ x P(x) x Q(x) ] P(0) P(1) Q(0) Q(1) A B A B C D C D (A B) (C D) 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0 0 1 0 1 0 0 1 1 0 0 0 0 1 0 1 0 1 0 0 0 0 0 1 0 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 1 0 0 0 0 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 0 1 1 0 0 1 0 0 0 1 1 1 1 1 0 1 0 1 0 1 1 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0 1 0 0 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2. METHODOLOGY This section will propose the new approach to prove some implications involving quantifiers and logical operators. Our method is based on the following idea: If we could prove that whenever the premise is true, the conclusion cannot be false which means it must be true, so the implication is valid, otherwise, the implication is not valid. This is due to the fact that an implication is false only when the premise is true and the conclusion is false according to third line of the truth table shown in table 1. Now we start proving the validity of the following four implications: 1. x [ P(x) Q(x) ] [ x P(x) x Q(x) ] 2. [ x P(x) x Q (x) ] x[ P(x) Q(x) ] 3. [ x P(x) x Q(x) ] x [ P(x) Q(x) ] 4. x [ P(x) Q(x) ] [ x P(x) x Q(x)] 2826

Formula 1. x[p(x) Q(x)] [ xp(x) xq(x)] is valid. In this implication, the LHS (the premise) of the implication means that the same value of x can be chosen to satisfy both predicates P(x) and Q(x). However, the Right- Hand Side (RHS) (the conclusion) of the implication means that different values of x can be chosen in order to satisfy P(x) and Q(x). Proof. The LHS is true if there is at least one value of x that satisfies both P(x) and Q(x). x P(x) is true and x Q(x) is true. The right side cannot be false, therefore the implication is valid. Formula 2. [ xp(x) xq(x)] x[p(x) Q(x)] is valid. The LHS consist of two parts; x P(x) and x Q(x), it will be true if one or both of them is true. On the other hand, the RHS will be true if each value of x makes either P(x) or Q(x) true. Proof. In the LHS there are three cases which make it true as follows: Case 1: - x P(x) is true. - x Q(x) is true. Each value of x makes both P(x) and Q(x) true in the RHS. Case 2: - x P(x) is true. - x Q(x) is false. Each value of x makes P(x) true in the RHS. Case 3: - x P(x) is false. - x Q(x) is true. Each value of x makes Q(x) true in the RHS. According to the previous three cases the RHS will always be true (cannot be false), therefore, the implication is valid. Formula 3. [ xp(x) xq(x)] x[p(x) Q(x)] is valid. In order to prove Formula 3, it needs to be rewritten into an equivalent one for simplicity; in classical logic, (p q) is logically equivalent to ( p q) [6]. Therefore, {[ x P(x) xq(x)] x[p(x) Q(x)]} {[ x P(x) xq(x)] x[ P(x) Q(x)]} {[ xp(x) xq(x) ] [ x P(x) xq(x)]} It is known that xp(x) is equivalent to x P(x) [4]. So, after replacing xp(x) by x P(x),we are going to prove that [ x P(x) xq(x)] [ x P(x) xq(x)] is valid. Proof. In the LHS there are three cases which make it true as follows: Case 1: - x P(x) is true. - x Q(x) is true. x P(x) is true because [ x P(x) x P(x) ] is valid [7], and x Q(x) is also true in the RHS. Case 2 : - x P(x) is true. - x Q(x) is false. x P(x) is true in the RHS of the implication. Case 3: - x P(x) is false. - x Q(x) is true. x Q(x) is true in the RHS. According to the previous three cases of Formula 3, the RHS will always be true (cannot be false), therefore, the implication is valid. 2827

Formula 4. x[p(x) Q(x)] [ xp(x) xq(x)] is valid. In order to prove Formula 4, it needs to be rewritten into an equivalent form for simplicity; { x[p(x) Q(x)] [ xp(x) xq(x)]} { x[ P(x) Q(x)] [ xp(x) xq(x)]} It is known that xp(x) is equivalent to x P(x) [4]. So, after replacing xp(x) by x P(x), we are going to prove that x [ P(x) Q(x)] [ x P(x) xq(x)] is valid. The LHS becomes true if each value of x makes either P(x) or Q(x) true. In the RHS, there is two parts; x P(x) and xq(x) and it is sufficient that one of them is true, so the RHS becomes true. Proof. In the LHS there are three cases that make it true: Case 1: In the LHS some values of x make P(x) true and the remaining values of x make Q(x) true. x P(x) is true in the RHS. Case 2: In the LHS, all values of x will make P(x) true. x P(x) is true. x P(x) is true in the RHS. The RHS will be true. Case 3: In the LHS, all values of x will make Q(x) true. x Q(x) is true in the RHS. All the cases of Formula 4 resulted in a true value for the RHS. Therefore, the implication is valid. 3. EXAMPLES OF HOW TO SOLVE PROBLEMS USING THE PROPOSED METHOD In this section the validity of two examples using the proposed method of proof will be verified. The criteria to evaluate the validity of the implications is the following: whenever the premise of the implication is true, the conclusion must be true, so the implication is valid. If the conclusion can be false, then the implication is not valid. Example 1. Prove or disprove the following [ xp(x) xq(x)] [ xp(x) x Q(x)] Solution. The left side has three cases in order to be true: Case 1: xp(x) and x Q(x) are both true. Case 2: xp(x) is false and x Q(x) is true. In case 1 and case 2: - xq(x) in the LHS is true. xq(x) is true in the RHS. Case 3: - x P(x) is true. - x Q(x) is false. x P(x) is true in the RHS because [ x P(x) x P(x)] is valid. All the three cases resulted in having the RHS to be true. For that reason, the implication is valid. Example 2. Prove or disprove the following [ x P(x) x Q(x) ] [ x P(x) x Q(x) ] Solution. Let Assume that the LHS is true, so in order to be true, there will be three cases: Case 1: x P(x) and x Q(x) are both true. Case 2: x P(x) is false and x Q(x) is true. In case 1 and case 2: - x Q(x) is true in the LHS. 2828

x Q(x) is true in the RHS. Case 3: - x P(x) is true in the LHS. - x Q(x) is false in the LHS. x Q(x) is false in the RHS. x P(x) is true or false in the RHS the RHS can be true or false. In case 3, the RHS is either true or false, so the implication is not valid. 4. CONCLUSIONS AND FUTURE WORK This paper proposed a new method to verify the validity of implications involving quantifiers distribution over logical operators. The idea is based on the fact that whenever the premise of the implication is true, the conclusion of that implication cannot be false (must be true), which results in a valid implication. Moreover, if the conclusion can be false the implication is not valid. Accordingly, we used the proposed method to prove the validity of the following four implications: 1. x [ P(x) Q(x) ] [ x P(x) x Q(x) ] 2. [ x P(x) x Q(x) ] x [ P(x) Q(x) ] 3. [ x P(x) xq(x) ] x [ P(x) Q(x) ] 4. x [ P(x) Q(x) ] [ x P(x) x Q(x) ] Additionally, the following two problems: [ x P(x) x Q(x) ] [ x P(x) x Q(x) ] and [ xp(x) x Q(x)] [ x P(x) x Q(x) ] were verified by using the proposed method. We showed that the first one is valid and the second is not valid. In future, we will investigate other methods to prove relations between quantifiers and logical operators, which are more simple and efficient. REFRENCES: [1] J. O'Donnell, C. Hall, R. Page. Discrete mathematics using a computer. 1st ed. London: Springer; 2006. [2] L. Sterling, E. Shapiro, D. Warren. The art of prolog. 1st ed. Cambridge: The MIT Press; 2000. [3] I. Ben-Gan,L. Kollar, D. Sarka, S. Kass. Inside Microsoft SQL Server 2008: T-SQL Querying. 1st ed. Microsoft Press; 2009. [4] K. Rosen. Discrete Mathematics and Its Applications. 7th ed. New York: McGraw-Hill; 2012. [5] J. Saguillo. Domains of Sciences, Universes of Discourse and Omega Arguments. History and Philosophy of Logic. Vol. 20, No. 3-4, 1999, pp. 267-290. [6] G. Janacek, M Close. Mathematics for Computer Scientists [Internet]. 1st ed. Denmark: Gareth J. Janacek, Mark Lemmon Close & Ventus Publishing ApS; 2011 [cited 17 March 2017]. Available from: http://web.ftvs.cuni.cz/hendl/metodologie/gentle -introduction-to-mathematics-for-computer.pdf. [7] D. Stanat, D. McAllister. Discrete mathematics in computer science, 1st ed. Prentice Hall Professional Technical Reference;1977. [8] A. Shiflet. Discrete mathematics for computer science. 1st ed. St. Paul: West Pub. Co; 1987. [9] D. Liben-Nowell. Discrete mathematics for computer science preliminary edition. 1st ed. John Wiley; 2015. [10] D. Barker-Plummer,J. Barwise, J. Etchemendy. Language proof and logic.2nd ed. CSLI Publ; 2011. [11] J. Gallier. Discrete mathematics [Internet]. 2nd ed. New York: Springer; [cited 17 March 2017] 2017. Available from: http://www.cis.upenn.edu/~jean/discmath-rootb.pdf. [12] M. Nabulsi. Some Propositions, Quantified Assertions and their Uses in Computer Hardware Design An-Najah University Journal for Research - A (Natural Sciences). Vol. 14, No. 1, 2000, pp.157-168. [13] H. Rasiowa. Introduction to Modern Mathematics. 1st ed. Netherland: Elsevier (North Holland Publishing Co ); 1973. 2829