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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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|cite|improve this question
up vote 1 down vote accepted

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

share|cite|improve this answer

Your Answer


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.