This document discusses propositional logic and its role in discrete mathematics. It begins by stating the objectives of understanding logic, determining if a sentence is a proposition, and analyzing problems using logic connectives. It then defines key concepts in propositional logic like propositions, truth tables, logical connectives like negation, conjunction and disjunction. Examples are provided to illustrate how to use these concepts to evaluate logic statements and represent them using bits and logic gates. The overall summary is that this document introduces the basic concepts of propositional logic needed for discrete mathematics.
This document discusses propositional logic and its role in discrete mathematics. It begins by stating the objectives of understanding logic, determining if a sentence is a proposition, and analyzing problems using logic connectives. It then defines key concepts in propositional logic like propositions, truth tables, logical connectives like negation, conjunction and disjunction. Examples are provided to illustrate how to use these concepts to evaluate logic statements and represent them using bits and logic gates. The overall summary is that this document introduces the basic concepts of propositional logic needed for discrete mathematics.
TOPIC 1: PROPOSITIONAL LOGIC By: Edison A. Roxas, ECE OBJECTIVES Propositional Logic 2 earoxas @ UST 2012 At the end of the topic, the students should be able to: 1. Understand the role of Logic in Discrete Mathematics; 2. Determine if a given sentence is a proposition or not; and 3. Analyze problems involving unary logic and connectives. 4. Apply basic knowledge in Logic Circuit and Switching Theory implementation. 3 DISCRETE MATHEMATICS It is the study of the structures which are discrete rather than continuous. Discrete objects are those which can be enumerated by integers, more formally, objects that can be characterized with countable sets. Discrete Mathematics finds use in computer science, algorithm development, cryptography, research, and operations others. earoxas @ UST 2012 Propositional Logic 4 LOGIC The study of reasoning. Specifically concerned with whether reasoning is correct. Focuses on the relationship among statements than the contents of particular statements. Used in Mathematics to prove theorems. earoxas @ UST 2012 Propositional Logic 5 LOGIC The rules of logic give precise meaning to mathematical statements. These rules are used to distinguish between valid and invalid mathematical arguments. The rules are used in the design of computer programs; the verification of the correctness of programs; and in many other ways. earoxas @ UST 2012 Propositional Logic 6 LOGIC All Engineers are good in Math. Anyone good in Math is a Mathematician. Therefore, all Engineers are Mathematicians. earoxas @ UST 2012 Propositional Logic 7 PROPOSITIONS It is a declarative sentence / an assertion (that is, a sentence that declares a fact) that is either TRUE or FALSE, but NOT BOTH. It is the basic building block of any theory of logic. Letters are used to denote propositional variables (or statement variables), usually propositional variables used are p, q, r and s. Any sentence associated with a TRUTH VALUE is a proposition. earoxas @ UST 2012 Propositional Logic 8 PROPOSITIONS The truth value of a proposition is T for TRUE and F for FALSE. The area of logic that deals with the propositions is called the propositional calculus or propositional logic developed by the Greek Philosopher Aristotle. The methods of producing new propositions from existing were discussed by English Mathematician George Boole in his book, The Laws of Thought. earoxas @ UST 2012 Propositional Logic 9 Example 1.1: Which among the following sentences are propositions? 1. The capital of Philippines is Manila. 2. 8 is a prime number. 3. There are 53 cards in a deck. 4. 2 + 5 = 7 5. 2 + 2 = 5 6. What is a Truth Table? 7. Answer the following questions completely. 8. x + 2 = 3 9. x y > 4 10. This statement is FALSE. earoxas @ UST 2012 Propositional Logic 10 TRUTH TABLE A truth table is a list of possible combination for individual propositions p 1 , p 2 , , p n . To solve for the number of combinations possible for any given value of propositions, we use n = 2 k . where: k = number of columns n = number of rows from 0 to 2 K - 1 earoxas @ UST 2012 Propositional Logic LOGICAL CONNECTIVES A propositional variables denotes an arbitrary constant with unspecified truth value P, Q, R Basic Logical Connectives Negation Not P ~P Conjunction P and Q P ^ Q Disjunction P or Q P v Q earoxas @ UST 2012 Propositional Logic 11 12 NEGATION OPERATOR The negation of p is denoted as p not p. Meaning, it is not the case of p. / ~ is a unary operator. A unary operator assigns to each element in a set. The truth tables of p and p are opposites. earoxas @ UST 2012 Propositional Logic 13 Example 1.2: Find the Negation of the following proposition. 1. Today is Sunday. 2. CJ Corona is telling the truth. 3. 2 + 3 = 19 4. The probability of an event to happen. 5. Binary 10011 2 . earoxas @ UST 2012 Propositional Logic 14 CONNECTIVES An assertion which contains at least one propositional variable is called a propositional form. It is used to combine two propositions into a single proposition. CONJUNCTION: p q p and q DISJUNCTION: p q p or q Binary operators: and Binary operators assigns to pair of elements in a set. earoxas @ UST 2012 Propositional Logic 15 CONJUNCTIONS ( ) The conjunction of p and q, denoted by p q, is the proposition p and q. The conjunction p q is TRUE when both p and q are true; otherwise is FALSE. earoxas @ UST 2012 Propositional Logic 16 DISJUNCTION ( ) Disjunctions are Inclusive OR Propositions, that is, at least one of the propositions must be true for the propositions to be TRUE. earoxas @ UST 2012 Propositional Logic 17 Example 1.3: Form the sentences required by the following numbers. 1. If p: Math is Fun. q: English is Hard. What is the conjunction and disjunction? 2. If p: Algebra q: Probabilities Prerequisite of Discrete Math is the Disjunctions of p and q. Prerequisite Advance Math is the Conjunctions of p and q. earoxas @ UST 2012 Propositional Logic 18 EXCLUSIVE OR Exclusive OR Propositions are TRUE only when exactly ONE of the constituent propositions is TRUE. Either This or That. Entrees are served with soup or salad. Exclusive OR Propositions are denoted as p q. earoxas @ UST 2012 Propositional Logic 19 APPLICATION LOGIC AND BIT OPERATIONS: A bit (binary digit) is a symbol with two possible values, namely zero (0) and one (1). A True value can be represented by 1 and a False value by 0. LOGIC CIRCUIT & SWITCHING THEORY DESIGN: Logic Gates are electronic circuits used in combination to achieve a desirable output. earoxas @ UST 2012 Propositional Logic APPLICATION Example 1.4: Find the bitwise OR, bitwise AND, and bitwise XOR of the bit strings 011 101 101 and 111 001 110. Example 1.5: Use Logic Gates to implement the following functions and find the possible outputs. a. F = xy + xy b. F = (x+y)(x+y) c. F = xyz + xy + xyz earoxas @ UST 2012 Propositional Logic 20