feat(library/simplifier): conditional rewriting

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
feat(library/simplifier): conditional rewriting