20
1.5 Rules of Inference

1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Embed Size (px)

Citation preview

Page 1: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

1.5 Rules of Inference

Page 2: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Valid Arguments in Propositional Logic

• By an argument, we mean a sequence of statements that end with a conclusion.

• By valid, we mean that the conclusion, or final statement of the argument, must follow from the truth of the preceding statements, or premises, of the argument.

• an argument is valid if and only if it is impossible for all the premises to be true and the conclusion to be false.OR

• If all the premises are true, then the conclusion must be true.

Page 3: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

argument form.

• the validity of an argument follows from the validity of the form of the argument.

• when both Pq and p are true, then q must also be true.

• We say this form of argument is true (i.e the conclusion must also be true) whenever all its premises (all statements in the argument other than the final one, the conclusion) are true,

• If one of the premises is false, we cannot conclude that the conclusion is true. (Most likely, this conclusionis false.)

Page 4: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Example:Consider the following argument involving

propositions:

“If we have 3+5=8 then 3+5=10”,“3+5=10”,Therefore,3+5=8“If we have 3+5=8 then 3+5=10”,“3+5=10”,ــــــــــــــــــــــــــــــــــــــــــــــــــ3+5=8

Page 5: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

DEFINITION 1• An argument in propositional logic is a sequence of

propositions. All but the final proposition in the argument are called premises and the final proposition is called the conclusion. An

• argument is valid if the truth of all its premises implies that the conclusion is true.

• An argument form in propositional logic is a sequence of compound propositions involving propositional variables.

• An argument form is valid if no matter which particular propositions are substituted for the propositional variables in its premises, the conclusion is true if the premises are all true.

• the conclusion is true if the premises are all true

Page 6: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

• From the definition of a valid argument form we see that the argument form with premises

PI , P2 , . . . , Pn and conclusion q is valid, when (PIᴧP2. . . ᴧPn ) q is a tautology.

• The key to showing that an argument in propositional logic is valid is to show that its

argument form is valid.

Page 7: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Rules of Inference for Propositional Logic

We can always use a truth table to show that an argument form is valid. We do this by showing that whenever the premises are true, the conclusion must also be true.

Truth Table

Formal Informal

Page 8: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

modus ponens, or the law of detachment.

This tautology is the basis of the rule of inference called modus ponens, or the law of detachment.

This tautology leads to the following valid argument form,

Page 9: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

”If you are a student then you will get an ”IDYou are a student,Therefore,

You will get an ID

The general form of this argument is:If P then QPTherefore Q

If a student failed in mathematics, she either obtained a degree less than 60 or that the absence proportion exceeded 25%,The student does not have any of the previous casesTherefore,Student succeeded

The general form of this argument is:If P then QNot QTherefore Not P

Either team A or Team B will win the match Team B lostTherefore Team A won

The general form of this argument is:Either P or Q Not PTherefore Q

If John graduated ,then he will get a jobIf John gets a job, he will marry.Therefore, if graduated, , he will marry.

The general form of this argument is:If P then QIf Q then RTherefore If P then R

Page 10: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Example:

Determine whether the following argument is valid or invalid (Hint: use the truthe table)

Page 11: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Solution:1/ We make all premises true:“pq”=TP= T,2/ See in the table where is p=T & “Pq”=T,You see it in the raw 1 so this is the critical row,3/ Now see what aboute the conclusion?The conclusion is true,Therefore, the argument is valid.

Page 12: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Example:

Determine whether the following argument is valid or invalid (Hint: use informal method)

Pq⌐pــــــــــــــــــــــــ :. ⌐ q

Page 13: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Solution:

put all premises true:“Pq”= T , ⌐p=T, then p=F Now, put q= T,So, we still have “Pq” =T but q =T, Then ⌐ q=F,The conclusion is Fale whereas all primisis are true,Therefor, the argument is invalid.

Page 14: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Example:

Determine whether the following argument is valid or invalid (Hint: use informal method)Pqq(pr)P_____________

.:r

Page 15: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Solution:put all premises true:

“pq” = T ①“q(pr)”=T ② Put Q= (pr) then we have qQ=T

P=T, ③ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــSince p=T and “pq” = T, then q=T,④Now, from ④ & ②q=T & “q(pr)”=T then Q= (pr)=T, ⑤From ③ & ⑤ p=T & (pr)=T, then r must be true.Therefore r=TAnd the argument is valid

Page 16: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Example:Determine whether the following argument is valid or invalid (Hint: use informal method)P ⌐rr(pq)rp_____________

.:⌐p⌐q

Page 17: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Solution:

put all premises true:“P ⌐r”=T ①“r(pq)”=T ② “rp”=T ③ـــــــــــــــــــــــــــــ

“P ⌐r”=T

*P=T⌐r=T

**P=F⌐r=T

***P=F⌐r=F .:⌐p⌐q

Page 18: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

①“P ⌐r”=T

*P=T⌐r=T

*****

“r(pq)”=T ② “rp”=T ③

By * ⌐r=T then r=FBy ②(pq) must be true,i.e(pq)=TBut by *P=T (then ⌐p=F)Then q must be True , i.eq=T, then ⌐q=FTherefore:⌐p⌐q=T

Page 19: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

①“P ⌐r”=T

*

**P=F⌐r=T

***

“r(pq)”=T ② “rp”=T ③

By ** ⌐r=T then r=FBut by **P=F (then ⌐p=T)By ②(pq) either true or false,i.e(pq)=T or (pq)=F

1/ if (pq)=T then either q=T or q=F, # If q=T then ⌐q=FTherefore:⌐p⌐q=F and the argument is invalid

Page 20: 1.5 Rules of Inference. Valid Arguments in Propositional Logic By an argument, we mean a sequence of statements that end with a conclusion. By valid,

Homework:Determine whether the following argument is

valid or invalid: