xor function
True when an odd number of conditions are true.
How to write it
xor(p, q, ...)
- p
- A condition. Takes a condition, true or false.
- q
- A condition. Takes a condition, true or false.
Examples
xor(true, false)In the solver,
Open in the solverxor(true, false)givestrue.
Related functions
- boolean_minimize
A shortest equivalent form of a condition.
- unequal
True when two values differ: the function form of !=.
- conflicting_rules
Every set of rules that cannot hold together, each a list of the rules it needs; [] when all can hold.
- truth_table
The truth table of a condition: a row for each choice of values.
- cylindrical_decomposition
Describe where a condition holds as bounds on each variable in turn.
- satisfiability_instances
The assignments of its variables that make a condition true.