I would like to transform an expression so that all negation operators are propagated down to the literals. So ~(a | b)
becomes ~a & ~b
. Does anyone have a solution for this?
from pyeda.boolalg.expr import expr
formula = "~(a | b)"
e = expr(formula, simplify=False)