Error with negation after opening parenthesis.

Fixed an error that was causing implied negation to fail if used after
opening a mathematical set.