# conflicting_rules function

Every set of rules that cannot hold together, each a list of the rules it needs; \[\] when all can hold.

## How to write it

### conflicting_rules(rules, domain)

**rules**

The rules, as a list or joined with and; n : integer makes n a whole number. Takes a list, or a condition, true or false.

**domain**

With integer, every unknown is a whole number; without it, a real one.

## Examples

- $\displaystyle \begin{cases} x > 1 \text{ or } y > 1 \\ x \le 0 \\ y < 0 \\ z > 2 \end{cases} \; \begin{cases} x > 1 \text{ or } y > 1 \\ x \le 0 \\ y < 0 \end{cases}$

  `conflicting_rules([x > 1 or y > 1, x <= 0, y < 0, z > 2])`

  In the solver, `conflicting_rules([x > 1 or y > 1, x <= 0, y < 0, z > 2])` gives `[[x > 1 or y > 1, x <= 0, y < 0]]`.

  [Open in the solver](https://hilberon.com/?q=conflicting_rules%28%5Bx%20%3E%201%20or%20y%20%3E%201%2C%20x%20%3C%3D%200%2C%20y%20%3C%200%2C%20z%20%3E%202%5D%29)
- $\displaystyle \begin{cases} 6 t+4 u = 40 \\ t \ge 5 \\ u \ge 2 \end{cases} \; \begin{cases} 6 t+4 u = 40 \\ t \ge 5 \\ u \ge 2 \end{cases}$

  `conflicting_rules([6*t + 4*u = 40, t >= 5, u >= 2], integer)`

  In the solver, `conflicting_rules([6*t + 4*u = 40, t >= 5, u >= 2], integer)` gives `[[6t + 4u = 40, t >= 5, u >= 2]]`.

  [Open in the solver](https://hilberon.com/?q=conflicting_rules%28%5B6*t%20%2B%204*u%20%3D%2040%2C%20t%20%3E%3D%205%2C%20u%20%3E%3D%202%5D%2C%20integer%29)

## Related functions

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

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

  A shortest equivalent form of a condition.
- [eliminate_quantifiers](https://hilberon.com/library/eliminate_quantifiers)

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

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

  True when two values are equal: the function form of ==.
- [unequal](https://hilberon.com/library/unequal)

  True when two values differ: the function form of !=.

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