Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Working on a program that handles CNF (conjunctive normal form). If I have a formula like

(a iff b) where iff is if and only if. I'd like to know which one of the following options is the correct result:

  1. (a implies b) and (b implies a), making the final result as (not a or b) and (not b or a)

  2. a implies b and b implies a, in this case and has higher precedence and the result would be different (not sure what it will be)

Thanks in advance

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Option 1 is the correct one. "p iff q" means "(p → q) ∧ (q → p)".

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.