valid check added; tseitin does not work correctly
merge