# boolean_minimize function

A shortest equivalent form of a condition.

## How to write it

### boolean_minimize(p)

**p**

A condition. Takes a condition, true or false.

## Examples

- $\displaystyle p \land q \lor p \land \lnot q = p$

  `boolean_minimize(p and q or p and not q)`

  In the solver, `boolean_minimize(p and q or p and not q)` gives `p`.

  [Open in the solver](https://hilberon.com/?q=boolean_minimize%28p%20and%20q%20or%20p%20and%20not%20q%29)

## Related functions

- [conflicting_rules](https://hilberon.com/library/conflicting_rules)

  Every set of rules that cannot hold together, each a list of the rules it needs; \[\] when all can hold.
- [xor](https://hilberon.com/library/xor)

  True when an odd number of conditions are true.
- [cylindrical_decomposition](https://hilberon.com/library/cylindrical_decomposition)

  Describe where a condition holds as bounds on each variable in turn.
- [unequal](https://hilberon.com/library/unequal)

  True when two values differ: the function form of !=.
- [eliminate_quantifiers](https://hilberon.com/library/eliminate_quantifiers)

  An equivalent condition with the quantifiers removed.
- [truth_table](https://hilberon.com/library/truth_table)

  The truth table of a condition: a row for each choice of values.

---
Source: https://hilberon.com/library/boolean_minimize
