Skip to content

DeMorgan not applied in a specific case #109

@tomas789

Description

@tomas789

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions