1 Propositional Logic Proposition 2 Propositions can be divided into simple propositions and compound propositions. A simple (or basic) proposition is.

Slides:



Advertisements
Similar presentations
Logic The study of correct reasoning.
Advertisements

TRUTH TABLES Section 1.3.
Computing Truth Value.
TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
Logic & Critical Reasoning
Chapter Two Symbolizing in Sentential Logic This chapter is a preliminary to the project of building a model of validity for sentential arguments. We.
1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton.
Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
CS128 – Discrete Mathematics for Computer Science
DEDUCTIVE REASONING: PROPOSITIONAL LOGIC Purposes: To analyze complex claims and deductive argument forms To determine what arguments are valid or not.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 3 Syntax of Propositional Logic Parse trees revised Construction of parse trees Semantics of propositional.
Today’s Topics n Review Logical Implication & Truth Table Tests for Validity n Truth Value Analysis n Short Form Validity Tests n Consistency and validity.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Propositional Logic Lecture 2: Sep 9. Conditional Statement If p then q p is called the hypothesis; q is called the conclusion “If your GPA is 4.0, then.
Copyright © Cengage Learning. All rights reserved.
Adapted from Discrete Math
Elementary Logic PHIL Intersession 2013 MTWHF 10:00 – 12:00 ASA0118C Steven A. Miller Day 4.
The Foundations: Logic and Proofs
Propositional Logic.
Intro to Discrete Structures
1.1 Sets and Logic Set – a collection of objects. Set brackets {} are used to enclose the elements of a set. Example: {1, 2, 5, 9} Elements – objects inside.
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
Discrete Maths 2. Propositional Logic Objective
Discrete Mathematics and Its Applications
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Adapted from Patrick J. Hurley, A Concise Introduction to Logic (Belmont: Thomson Wadsworth, 2008).
MATH 102 Contemporary Math S. Rook
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
Predicate Logic. TRUTH-TABLE REMINDERS The problem people had the most trouble with was 1e: construct a truth-table for: (P & (~Q & R)) Many of you only.
Chapter Three Truth Tables 1. Computing Truth-Values We can use truth tables to determine the truth-value of any compound sentence containing one of.
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
Chapter 7 Logic, Sets, and Counting
Chapter 3: Semantics PHIL 121: Methods of Reasoning March 13, 2013 Instructor:Karin Howe Binghamton University.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
MAIN TOPIC : Statement, Open Sentences, and Truth Values Negation Compound Statement Equivalency, Tautology, Contradiction, and Contingency Converse, Inverse,
MLS 570 Critical Thinking Reading Notes for Fogelin: Propositional Logic Fall Term 2006 North Central College.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
How do I show that two compound propositions are logically equivalent?
Thinking Mathematically
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
Chapter 1: The Foundations: Logic and Proofs
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
TRUTH TABLES. Introduction The truth value of a statement is the classification as true or false which denoted by T or F. A truth table is a listing of.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Outline Logic Propositional Logic Well formed formula Truth table
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt.
Thinking Mathematically Logic 3.4 Truth Tables for the Conditional and Biconditional.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Chapter 1 Logic and proofs
Truth Tables, Continued 6.3 and 6.4 March 14th. 6.3 Truth tables for propositions Remember: a truth table gives the truth value of a compound proposition.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
Chapter 1 Propositional Logic
Logic.
2. The Logic of Compound Statements Summary
Truth Tables How to build them
6.1 Symbols and Translation
Principles of Computing – UFCFA3-30-1
CS201: Data Structures and Discrete Mathematics I
The Logic of Declarative Statements
CHAPTER 3 Logic.
TRUTH TABLES.
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

1 Propositional Logic

Proposition 2 Propositions can be divided into simple propositions and compound propositions. A simple (or basic) proposition is a proposition that contains no connectives (e.g., not, and, or, if, etc.). Compound propositions are composed of simple propositions and logical connectives.

3 In propositional logic, we deal with propositions as the basic units of meaning.  i.e. We are not concerned about the structure within a simple proposition.

Simple/basic propositions 4 John is a man. Mary is beautiful. Paul stole the watch.

Compound propositions 5 It is not the case that John is clever. If you give me the money, then I will be rich. Either Mary is a liar or John misunderstands Mary.

Symbols 6 We use capitalized letters to represent propositions. So if the proposition “John is clever” is A and the proposition “Mary is happy” is B, then the compound proposition “John is clever and Mary is happy” is A and B.

7 We use the following symbols (called “logical operators” to translate connectives: 1) ~ negation (not, it is not the case that) 2) conjunction (and, but, also) 3) v disjunction (or, unless) 4)  implication (if …then, only if) 5) ≡ equivalence (if and only if)

8 In some books, ‘&’ or ‘  ’ is used for and; ‘  ’ is used for not; ‘  ’ is used for imply; ‘  ’ is used for equivalent.

9 Example: It is not the case that E ~E B and C B C Either C or D C v D If A then B A  B H if and only if D H ≡ D

10 Only ~ is placed in front of an expression. Other operators are placed between expressions.

11 A combination of letters by the legitimate uses of the logical operators and parentheses is a well-formed formula (WFF). Which of the following are WFFs? ~ v B  C A B C ~P v ~Q

Main Operator 12 The main operator is the operator in a compound proposition that governs the largest component(s) in the proposition. It is also the last operator to be dealt with in finding out the truth value (T or F) of a compound proposition. Compare to our use of +, , , . In 4  (3 + 2), “  ” is the main mathematical operator.

13 The main operator of the following propositions is “~” ~B ~(A  B) ~((A ≡ F) (D ≡ E))

14 When a proposition has negation as its main operator, the proposition is also called “a negation”. This also applies to other operators.

15 Main operator is “”. K ~L (E v F) (G v H) ((R  T) v (S  U)) ((W ≡ X) v (Y ≡ Z))

16 The main operator is “v”. ~C v ~D (F H) v (~K ~L) (S (T  U)) v (X (Y ≡ Z))

17 The main operator is “  ”. H  ~J (A v C)  (D E) (K v (S ~T))  (~F v (M O))

18 The main operator is “ ≡ ”. M ≡ ~T (B v D) ≡ (A C) (K v (F  I)) ≡ (~L (G v H))

19 Translation

20 In order to represent the structure of a compound proposition or an argument, we need to translate it into symbols. Two different sentences expressing the same proposition should be translated into the same capital letter.

21 Sometimes, two different connectives (e.g., “or” and “unless”) should also be translated into the same logical operator. The translations should have the same meaning as the original sentences.

Negation 22 Negation is not a problematic symbol.

Conjunction 23 Conjunction means the obtaining of truth for both conjuncts. Therefore, “but” in English is also read as a conjunction. “John left early but Mary stayed” means it is true that “John left early” and “Mary stayed”. (J M)

Disjunction 24 Disjunction should be read as the inclusive “or”. That means both disjuncts can be true or either one of the disjuncts is true. The only impossible case is where both disjuncts are false. “Unless” is also considered a disjunction. “Unless you work hard, you will fail” is equivalent to “Either you work hard, or you will fail”.

25 Parentheses are sometimes required to avoid ambiguity. For example, (A B) v C has different meaning from A (B v C). Similar to the use of brackets in mathematics.

Implication 26 In an implication or conditional proposition, “If A, then B,” A is called the “antecedent,” and B is called the “consequent.” The antecedent always follows “If”, “provided that”, “on condition that”, etc. The consequent always follows “then”, “only if”, and “implies that”, etc.

27 Given that A ⊃ B, A is a sufficient condition of B. B is a necessary condition of A.

Necessary condition 28 The necessary condition B is one that must occur in order for the condition A to occur. In other words, without B, A cannot occur. E.g.:  Having GPA 1.7 or above is necessary for graduation.  Being vulnerable is necessary for being courageous.

Sufficient condition 29 The sufficient condition A is one with which that B can occur. But note that there may be many other ways for B to occur. E.g.:  Being a father is sufficient for being a parent.  Cleaning hands is sufficient for removing bacteria from them.

Different relations 30 Given any two conditions, X and Y, there are 4 ways in which X may be related to Y: X is both necessary and sufficient for Y. E.g.: Being a father is necessary and sufficient for being a male parent. X is necessary but not sufficient for Y. E.g.: Having water is necessary for making soup. X is sufficient but not necessary for Y. E.g.: Having a son is sufficient for being a parent. X is neither necessary nor sufficient for Y. E.g.: Getting a university degree is neither necessary nor sufficient for success

31 The fact that X is neither necessary nor sufficient for Y does not imply that X is not important to Y. E.g.: Democracy is not necessary nor sufficient for having a good government. But it might still be more likely for democracy to produce a good government.

Possibility 32 To say that X is necessary for Y is to say that it is not possible for Y to occur without X. To say that X is sufficient for Y is to say that it is not possible for X to occur without Y. Given that there are different kinds of possibility (technological, physical, logical), there are different kinds of necessary conditions and sufficient conditions.

Equivalence 33 Given two conditions, X and Y, to say that X is equivalent to Y means that X is the necessary and sufficient for Y. That means “X ≡ Y” is logically equivalent to “(X  Y) (Y  X)”. We can show that they are logically equivalent by using truth table (discussed in the next topic).

Translation Exercise 34 John cooks dinner and Dick reads novels, or Mary drinks wine. John cooks dinner, and Dick reads novels or Mary drinks wine.

35 Either John cooks dinner and Dick reads novels or Mary drinks wine. John cooks dinner and either Dick reads novels or Mary drinks wine.

36 John cooks dinner or both Dick reads novels and Mary drinks wine. John cooks dinner or Dick and Mary drink wine.

37 If John cooks dinner, then if Dick reads novels, then Mary drinks wine. If John’s cooking dinner implies that Dick reads novels, then Mary drinks wine. If either John cooks dinner and Dick reads novels or Billy sleeps late, then Mary drinks wine.

Translation of categorical statements There are 4 types of categorical statements:  All apples are plants.  This statement is equivalent to “If a is an apple, a is a plant.”  No apples are vegetables.  This statement is equivalent to “If a is an apple, a is not a vegetable.”  Some apples are red.  This statement is equivalent to “a is an apple and a is red.”  Some apples are not red.  This statement is equivalent to “a is an apple and a is not red.” 38

39 Definitions of Logical Operators

Truth Tables 40 The 5 logical operators are defined by truth tables. A truth table shows how the truth value of a compound proposition depends on the truth value of its components

41 P ~P TF FT

42 PQ P  Q TTT TFF FTF FFF

43 PQP v Q TTT TFT FTT FFF

44 PQ P  Q TTT TFF FTT FFT

Question 45 Each one of the 4 cards below has a letter on one side and a number on the other. Tell me which card(s) you definitely need to turn over, and only that (those) card(s), in order to determine whether the cards are following the rule to the effect that: if a card has vowel on one side, it has an even number on the other side. ET 4 7

Conditional Statement 46 Please note that when P is F, whether Q is T or F, P  Q is T. E.g.: The proposition “If Paul is bald, then he is rich” is true when Paul is not bald.

47 PQ P  Q TTT TFF FTF FFT

Applications 48 We use the five tables to compute the truth-values of any compound propositions. Steps: 1) Assign letters to basic propositions (avoid duplication). 2) Translate by joining letters with the logical operators. 3) Insert parentheses as required.

49 4) Assign truth-values to individual letters. 5) Compute the truth-values of the next-smallest compound proposition, and so on. 6) Compute the truth-value under the main operator.

Example 1 50 (A v D)  E Given A is true and D, E false, then (T v F)  F T  F F

Example 2 51 Given A, B, C true and D, E, F false: (~(D v F) (B v ~A))  ~(F  ~C) (~(F v F) (T v ~T))  ~(F  ~T) (~( F ) ( T v F))  ~(F  F) (T ( T ))  ~(T) T  F F

52 Truth Tables

Truth tables for propositions 53 The previous examples work because the truth values of individual letters are given in advance. That corresponds to how normal people understand a complicated saying by checking the truth and falsity of the basic propositions first. Now we want to exhaust all the possible combinations of truth-values in order to know the properties of the compound propositions. This may save us time to check the truth and falsity of the individual propositions.

54 We have a way to know the number of rows of a complete truth table for any given propositions. It depends on the number of letters involved. If there are 2 letters, there are 4 rows; 3 letters, 8 rows and so on. Therefore, for n Letters, there are 2 n rows.

55 For example, we can draw the truth-table for (A v ~B)  B by constructing 4 rows. Then we assign the truth values to individual letters. The rule is to alternate the truth-values for the rightmost column, then alternate pairs for truth- values for the next column and so on. In this way, we need not worry about omission or repetition.

56 (A v ~B)  B T T T F F T F F

57 Then we put in the truth value of the consequent. (A v ~B)  B T T T T F F F T T F F F

58 Then we compute the truth-value of the shortest compound statement. (A v ~B)  B T F T T T T F F F F T T F T F F

59 Then we move on to do the same for v and finally we compute the truth-values under the main connective . (A v ~ B)  B T T F T T T T T T F F F F F F T T T F T T F F F

60 In the above example, we notice that the truth-values of the compound proposition only depend on the truth-values of B. That means the compound proposition is a needlessly complicated way of saying B, if we are only interested in the truth and falsity of a proposition in all possible circumstances. As a summary, drawing the truth-tables can enable us to see certain important features of a compound proposition.

Types of Propositions 61 Propositions can be divided into 3 types based on their logical features:  Tautology  A compound proposition is a tautology or logically true if it is true regardless of the truth-values of its components.  Self-contradiction  A compound proposition is said to be self-contradictory or logically false if it is false regardless of the truth-values of its components.  Contingency  A compound proposition is said to be contingent if its truth-values depend on the truth-values of its components.

62 Proposition typeColumn under main operator TautologyAll true Self-contradictoryAll false ContingentAt least one true, at least one false

Relations between Propositions 63 Two propositions are (logically) equivalent if they have the same truth-values regardless of the truth- values of the components. Two propositions are (logically) contradictory if they have opposite truth-values regardless of the truth-values of their components.

64 Two propositions are (logically) consistent if there is at least one line in the truth table on which both of them are true. Two propositions are (logically) inconsistent if there is no line on which both of them are true.

Logically equivalent 65

Logically contradictory 66 K  L K ~ L T T T T F F T T F F T T T F F T T F F F T F T F F F T F

Logically consistent 67 K V L K L T T T T T F T F F F T T F F T F F F

Logically inconsistent 68 K ≡ L K ~ L T T T T F F T T F F T T T F F F T F F F T F T F F F T F

69 Any pair of propositions can only be either consistent or inconsistent. If two propositions are logically contradictory, they are also logically inconsistent. But if two propositions are logically equivalent, they may not be logically consistent (two self- contradictions are both logically equivalent and logically inconsistent).

Consistency & Validity 70 An argument is invalid if and only if the premises and the falsehood of the conclusion are logically consistent.  I.e., an argument is invalid if and only if there is a logical possibility that the premises are true and the conclusion is false. An argument is valid if and only if the premises and the falsehood of the conclusion are logically inconsistent.  I.e., an argument is valid if and only if there is no logical possibility that the premises are true and the conclusion is false.

Truth tables for arguments 71 1) Follow the previous rules. 2) Write out the symbolized argument with single slash between premises and double slash between the last premise and the conclusion. 3) Look for a line in the table in which the main operators of all of the premises are true and the main operator of the conclusion false. If there is, the argument is invalid. Otherwise, the argument is valid.

72 4) Any argument having mutually inconsistent premises is valid regardless of what the conclusion may be. 5) Any argument having a tautologous conclusion is valid regardless of what its premises may be.

Example 73 If Bin Laden is responsible for the 911 attack, then bombing Afghanistan is a right action. Bin Laden is not responsible for the 911 attack. Therefore, bombing Afghanistan is not a right action.

74 Use letter L, B to symbolize the two propositions. L  B ~L ~B

75

Indirect truth tables 76 Drawing a large table is troublesome. We need a faster way to spot invalidity. We do it by assuming that the argument is invalid. Then we work backward to obtain truth-values for all the components. If no contradiction is seen, then the argument is indeed invalid.

Testing for Invalidity 77 ~A  (B v C) ~B C  A

78 ~A  (B v C) / ~B // C  A Then assign false to the conclusion and truth to the premises. ~ A  (B v C) / ~ B // C  A T T F F F T F T F T T T F T F F

79 The previous slide shows how each step is obtained. But in practice we need not solve a problem by showing each step with different lines. The below is a one-line proof of the argument’s invalidity, the red T/F highlighting the assumptions. ~ A  (B v C) / ~ B // C  A T F T F T T T F T F F

Testing for consistency 80 Similar to before except that we have no conclusion. Instead we assume that all the propositions are consistent by assigning T to the main operator of each. If there is a contradiction, then the propositions are inconsistent, otherwise consistent.

Example 81 A v B B  (C v A) C  ~B ~A A v B / B  (C v A) / C  ~ B / ~ A F T T T T T T F T T F T T F contradiction