Skip to content

nonminimal_bool can produce minimal but not human readable expressions #3141

Open
@oli-obk

Description

@oli-obk

E.g. !a && (b || c) || a && (d || e) || !a && f produces

  • !(!a && !b && !c && !f || a && !d && !e)
  • (a || b || c || f) && (!a || d || e)

But a human would rather have

a && (d || e) || !a && (b || c || f)

which is three operators deep, and our algorithm always produces expressions two operators deep.

There must be some scientific papers, theses or blog posts about different models of "simple" boolean expressions. Lets find some and implement them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions