How do you express system specifications using logical propositions p, q, and r?

  • Thread starter Thread starter VinnyCee
  • Start date Start date
  • Tags Tags
    Logic
Click For Summary

Homework Help Overview

The discussion revolves around expressing system specifications using logical propositions related to user access based on password validity and subscription payment. The propositions involved are p, q, and r, representing specific conditions regarding user actions and access rights.

Discussion Character

  • Conceptual clarification, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants are attempting to express various conditions using logical connectives and are questioning the correctness of the expressions provided. There is a focus on the implications of the logical statements and whether they accurately represent the intended conditions for access.

Discussion Status

There is an ongoing examination of the logical expressions, with some participants pointing out potential typos and inaccuracies in the original statements. Multiple interpretations of the implications are being explored, particularly regarding the biconditional nature of one of the expressions.

Contextual Notes

Participants are operating under the constraints of homework rules, which may limit the extent of guidance provided. The discussion reflects a collaborative effort to clarify logical propositions without reaching a definitive conclusion on the correctness of all expressions.

VinnyCee
Messages
486
Reaction score
0

Homework Statement



Express the system specifications using the propositions p "The user enters a valid password," q "Access is granted," and r "The user has paid the subscription fee" and logical connectives.

a) The user has paid the subscription fee, but does not enter a valid password.

b) Access is granted whenever the user has paid the subscription fee and enters a valid password.

c) Access is denied if the user has not paid the subscription fee.

d) If the user has not entered a valid password but has paid the subscription fee, then access is granted.

Homework Equations



p = "The user enters a valid password"
q = "Access is granted"
r = "The user has paid the subscription fee"

The Attempt at a Solution



a) r\,\wedge\,\neg\,p

b) q\,\longleftrightarrow\,(r\,\wedge\,q)

c) \neg\,r\,\longrightarrow\,\neg\,q

d) (\neg\,p\,\wedge\,r)\,\longrightarrow\,qDo these answers look right?
 
Physics news on Phys.org
Everything looks right, except you made a typo (I guess) in b), it should be q\,\longleftrightarrow\,(r\,\wedge\,p), unless I'm missing something.
 
Even modulo typos, b is not right. The implication is not both ways. It does not assert that the only way to get access is with subscription and a valid password.
 
matt grime said:
Even modulo typos, b is not right. The implication is not both ways. It does not assert that the only way to get access is with subscription and a valid password.

Excuse my mistake, it should be (r \wedge p) \Rightarrow q.
 
So they are all right except that B is really (r\,\wedge\,p)\,\longrightarrow\,q?
 
VinnyCee said:
So they are all right except that B is really (r\,\wedge\,p)\,\longrightarrow\,q?

Yes, you already have two answers which implied that. :wink:
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
37K
  • · Replies 3 ·
Replies
3
Views
29K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 5 ·
Replies
5
Views
7K
Replies
4
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K