Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 Consider the following logic argument: 2 ( a ) $ p q - > r $ 3 ( b ) $ s q $
Consider the following logic argument:
a $ p q r $
b $ s q $
c $ t $
d $ p t $
e $ p r s $
f $ q $
Create a truth table and find the critical row
Identify the values for pqrs and t for the argument to be
valid
Use valid argument forms to deduce the conclusion from
the premises and test each one
: def impliesp q:
return not p or q
printfptqtrtsttttatbtctd
tetf
for p in True False:
for q in True False:
for r in True False:
for s in True False:
for t in True False:
a impliesnot p q
b s or not q
c not t
d impliespt
e impliesnot p and r not s
f not q
if allabcde:
criticalrow critical row"
#printfptqtrtsttttatb
tctdtetfcriticalrow
else:
criticalrow
flag
printfptqtrtsttttatbtc
tdtetfcriticalrow
p q r s t a b c d
e f
True True True True True True True False True
True False
True True True True False True True True False
True False
True True True False True True False False True
True False
True True True False False True False True False
True False
True True False True True True True False True
True False
True True False True False True True True False
True False
True True False False True True False False True
True False
True True False False False True False True False
True False
True False True True True True True False True
True True
True False True True False True True True False
True True
True False True False True True True False True
True True
True False True False False True True True False
True True
True False False True True True True False True
True True
True False False True False True True True False
True True
True False False False True True True False True
True True
True False False False False True True True False
True True
False True True True True True True False True
False False
False True True True False True True True True
False False
False True True False True True False False True
True False
False True True False False True False True True
True False
False True False True True True True False True
True False
False True False True False True True True True
True False critical row
False True False False True True False False True
True False
False True False False False True False True True
True False
False False True True True False True False True
False True
False False True True False False True True True
False True
False False True False True False True False True
True True
False False True False False False True True True
True True
False False False True True False True False True
True True
False False False True False False True True True
True True
False False False False True False True False True
True True
False False False False False False True True True
True True
: p False # Meaning that the premise not p is True
q False # This is the conclusion, not q is True
r True # Meaning that the premise not r is True
s False # Meaning that the premise not s is True
t False # Meaning that the premise not t is True
: printBy Modus Tollens"
printimpliespt
printnot t
printnot p
By Modus Tollens
True
True
True
: printBy Generalization"
printnot p
printnot p or q
By Generalization
True
True
: printBy Modus Ponens"
printimpliesnot p or qr
printnot p or q
printr
By Modus Ponens
True
True
True
: printBy Conjuction"
printr
printnot p
printnot p and r
By Conjuction
True
True
True
: printBy Modus Ponens"
printimpliesnot p and r not s
printnot p and r
printnot s
By Modus Ponens
True
True
True
: printBy Elimination"
prints or not q
printnot s
printnot q
By Elimination
True
True
True
:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started