In some situations DeMorgan rule is not being applied.
Here is a sample
import boolean
algebra = boolean.BooleanAlgebra()
TRUE, FALSE, NOT, AND, OR, symbol = algebra.definition()
x = NOT(AND(NOT(symbol("x0")), NOT(symbol("x4"))))
print(x.simplify())
The actual output is
But one would expect
In some situations DeMorgan rule is not being applied.
Here is a sample
The actual output is
But one would expect