p="The message is scanned for viruses"
q="The message was sent from an unknown system
a) Replace the known sub-statements by p and q in the given statement:
p whenever q
However, "p whenever q" is equivalent with "if q, then p":
"q \\to p"
b) Replace the known sub-statements by p and q in the given statement:
q but not p
"but" implies "and"
q and not p
Replace 'and" by "\\wedge" and "not" by "\\neg"
"q \\wedge \\neg p"
c) Replace the known sub-statements by p and q in the given statement:
p whenever q
However, "p whenever q" is equivalent with "if q, then p":
"q \\to p"
d) Replace the known sub-statements by p and q in the given statement:
when not q then not p
"q when p" is equivalent with "if p, then q":
if not q then not p
Replace "if-then" by "\\to" and "not" by "\\neg"
"\\neg q \\to \\neg p"
Comments
Leave a comment