I'm taking a discrete maths course and we were tasked with converting the following English sentence into propositional logic:
"You can take a picture of the painting only if your camera's flash is off or you are not close to the painting."
We split the sentence into the propositions
p: You can take a picture of the painting
q: Your camera's flash is off
r: You are close to the painting.
Everyone agreed on the "or" and the "not". However, the class was pretty evenly split regarding the "only if" part of the statement: some were saying that the correct translation is p ↔ (q ∨ ¬r), while others were saying that it should be p → (q ∨ ¬r). Which is correct?
I think the biconditional statement is the correct one, because the original sentence can be rewritten as the following two sentences while keeping the same meaning and also fulfill (p → q) ∧ (q → p) = p ↔ q:
- If you can take a picture of the painting, then your camera's flash is off or you are not close to the painting.
- If your camera's flash is off or you are not close to the painting, then you can take a picture of the painting.
I believe they both imply each other. If you can take a picture of the painting, then it is implied that you are not close to the painting or your camera's flash is off. If your camera's flash is off or you are not close to the painting, then it is implied that you can take a picture of the painting.