# Logic and comparison functions

Comparisons, logical connectives, truth tables, satisfiability and tautologies, and quantifier elimination.

45 functions

## Described functions

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

  A shortest equivalent form of a condition.
- [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.
- [cylindrical_decomposition](https://hilberon.com/library/cylindrical_decomposition)

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

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

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

  True when two conditions are both true or both false.
- [greater](https://hilberon.com/library/greater)

  True when the first value is greater than the second: the function form of >.
- [greater_equal](https://hilberon.com/library/greater_equal)

  True when the first value is at least the second: the function form of >=.
- [implies](https://hilberon.com/library/implies)

  True unless the first condition is true and the second false.
- [is_even](https://hilberon.com/library/is_even)

  Test whether a whole number is even.
- [is_integer](https://hilberon.com/library/is_integer)

  Test whether a value is a whole number.
- [is_number](https://hilberon.com/library/is_number)

  Test whether a value is a number.
- [is_numeric](https://hilberon.com/library/is_numeric)

  Test whether a value has a numeric value, such as pi.
- [is_odd](https://hilberon.com/library/is_odd)

  Test whether a whole number is odd.
- [is_satisfiable](https://hilberon.com/library/is_satisfiable)

  Test whether a condition is true for some value of its variables.
- [is_tautology](https://hilberon.com/library/is_tautology)

  Test whether a condition is true for every value of its variables.
- [less](https://hilberon.com/library/less)

  True when the first value is less than the second: the function form of \<.
- [less_equal](https://hilberon.com/library/less_equal)

  True when the first value is at most the second: the function form of \<=.
- [logical_and](https://hilberon.com/library/logical_and)

  True when every condition is true: the function form of and.
- [logical_expand](https://hilberon.com/library/logical_expand)

  Distribute and over or in a logical expression.
- [logical_not](https://hilberon.com/library/logical_not)

  The opposite of a condition: the function form of not.
- [logical_or](https://hilberon.com/library/logical_or)

  True when some condition is true: the function form of or.
- [nand](https://hilberon.com/library/nand)

  False when every condition is true.
- [nor](https://hilberon.com/library/nor)

  True when every condition is false.
- [satisfiability_count](https://hilberon.com/library/satisfiability_count)

  How many assignments of its variables make a condition true.
- [satisfiability_instances](https://hilberon.com/library/satisfiability_instances)

  The assignments of its variables that make a condition true.
- [truth_table](https://hilberon.com/library/truth_table)

  The truth table of a condition: a row for each choice of values.
- [unequal](https://hilberon.com/library/unequal)

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

  True when an odd number of conditions are true.

## More functions in this category

Nobody has described these yet: each is listed with its first form.

- [boolean_convert](https://hilberon.com/library/boolean_convert)
- [boolean_counting_function](https://hilberon.com/library/boolean_counting_function)
- [boolean_function](https://hilberon.com/library/boolean_function)
- [boolean_table](https://hilberon.com/library/boolean_table)
- [cad_alternation_data](https://hilberon.com/library/cad_alternation_data)
- [cad_coverage](https://hilberon.com/library/cad_coverage)
- [cad_decision_data](https://hilberon.com/library/cad_decision_data)
- [cad_region_data](https://hilberon.com/library/cad_region_data)
- [exists](https://hilberon.com/library/exists)
- [for_all](https://hilberon.com/library/for_all)
- [is_cad_alternation_certificate](https://hilberon.com/library/is_cad_alternation_certificate)
- [is_cad_decision_certificate](https://hilberon.com/library/is_cad_decision_certificate)
- [is_cad_region_certificate](https://hilberon.com/library/is_cad_region_certificate)
- [is_identical](https://hilberon.com/library/is_identical)
- [is_not_identical](https://hilberon.com/library/is_not_identical)
- [is_true](https://hilberon.com/library/is_true)

## Other categories

- [Abstract algebra](https://hilberon.com/library/category/abstract-algebra) 55
- [Algebra](https://hilberon.com/library/category/algebra) 52
- [Assumptions](https://hilberon.com/library/category/assumptions) 10
- [Calculus](https://hilberon.com/library/category/calculus) 21
- [Differential and difference equations](https://hilberon.com/library/category/differential-and-difference-equations) 187
- [Elementary functions](https://hilberon.com/library/category/elementary-functions) 34
- [Equation solving](https://hilberon.com/library/category/equation-solving) 15
- [Linear algebra](https://hilberon.com/library/category/linear-algebra) 44
- [Lists](https://hilberon.com/library/category/lists) 52
- [Number theory](https://hilberon.com/library/category/number-theory) 53
- [Numerical computation](https://hilberon.com/library/category/numerical-computation) 5
- [Optimization](https://hilberon.com/library/category/optimization) 6
- [Presentation](https://hilberon.com/library/category/presentation) 7
- [Probability and stochastic processes](https://hilberon.com/library/category/probability-and-stochastic-processes) 73
- [Programming](https://hilberon.com/library/category/programming) 43
- [Series and sums](https://hilberon.com/library/category/series-and-sums) 17
- [Special functions](https://hilberon.com/library/category/special-functions) 95
- [Strings](https://hilberon.com/library/category/strings) 4
- [Transforms](https://hilberon.com/library/category/transforms) 15
- [Trigonometry](https://hilberon.com/library/category/trigonometry) 28

---
Source: https://hilberon.com/library/category/logic-and-comparison
