How to write this logical statement?

42 Views Asked by At

how to write the logical expression for this? Either ... or... if .

For example: Either you win or lose if you play the game.

2

There are 2 best solutions below

1
On BEST ANSWER

If $p$ then $q$ is equivalent to $q$ if $p$.

so if you let $w$, $l$, $p$ be boolean variables representing win, lose, and play, you could write:

$p \implies (w \lor l)$

1
On

Are you looking for common logical symbols that are used to represent these connectives? If so, you can use $\lor$ for "or" and $\impliedby$ for "if". Your example sentence can be written as

"You play the game $\implies$ you win $\lor$ you lose"

You should really avoid using these symbols in normal writing though; they should be reserved for making mathematical claims unambiguous (e.g. $\lor$ denotes inclusive or, while "or" in English can be either inclusive or exclusive).