simpler NNF, with polarity-dependent elimination of equivalence
done right