Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeMorgan not applied in a specific case #109

Open
tomas789 opened this issue Nov 14, 2022 · 0 comments
Open

DeMorgan not applied in a specific case #109

tomas789 opened this issue Nov 14, 2022 · 0 comments

Comments

@tomas789
Copy link
Contributor

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

~(~x0&~x4)

But one would expect

x0|x4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant