in Mathematical Logic edited by
510 views
2 votes
2 votes

q = you can access the library

r = you have a valid ID

s = you have paid subscription fee of that day

Consider the following English sentence

“You cannot access the library if you don’t have a valid ID unless you have paid subscription fee of that day”

which of the following is the correct logical expression?

  1. $q \rightarrow (r \vee s )$
  2. $(q \rightarrow r) \vee s$
in Mathematical Logic edited by
510 views

3 Comments

why do you add $s$ variable?
0
0
0
0
edited by
Now see the answer.
0
0

1 Answer

2 votes
2 votes

$“$You cannot access the library if you don’t have a valid ID unless you have paid subscription fee of that day$”$

we can write like this

$“$You cannot access the library if you don’t have a valid ID and you  don't have paid subscription fee of that day$”$

$\neg q$   if   $\neg r$     unless   s

$\neg q$   if   $\neg r$    and $\neg s$

$\neg q$   if $\neg r \wedge \neg s$

$(\neg r \wedge \neg s)\rightarrow \neg q$

Implication:$P\rightarrow Q\equiv \neg P\vee Q$

Contrapositive Positive$:\neg Q\rightarrow \neg P\equiv \neg(\neg Q)\vee \neg P\equiv Q\vee \neg P\equiv\neg P\vee Q$

$Q$  if $P\equiv P\rightarrow Q$

$(\neg r \wedge \neg s)\rightarrow \neg q\equiv \neg(\neg q)\rightarrow\neg(\neg r \wedge \neg s)\equiv q\rightarrow(r\vee s)$

3 Comments

unless is or right?

0
0
$P$ Unless $Q\equiv \neg Q\rightarrow P\equiv \neg(\neg Q)\vee P\equiv P\vee Q$
0
0

¬q   if   ¬r     unless s

¬q   if   ¬r    and ¬s

why you have replaced 

¬r     unless   s

with 

¬r    and ¬s

 

 

 

0
0

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true