Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical Operators (3.4.3): Incorrect usage of converse and contrapositive? #1187

Open
sujaldev opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@sujaldev
Copy link

sujaldev commented Dec 11, 2024

Nit-picking but 3.4.3 says:

The reason and and or are like control flow structures is that they short-circuit. Not only does and return the left operand if it is false, it doesn’t even evaluate the right one in that case. Conversely (contrapositively?), if the left operand of an or is true, the right is skipped.

If we define the propositions: $p$ as "left operand is true" and $q$ as "right operand is evaluated", then

left operand if it is false, it doesn’t even evaluate the right one in that case

can be written as $\neg p \rightarrow \neg q$ and

if the left operand of an or is true, the right is skipped

can be written as $p \rightarrow \neg q$, which is neither the converse nor the contrapositive of $\neg p \rightarrow \neg q$, or am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant