Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Logic and comparison functions

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

45 functions

Described functions

  • boolean_minimize

    A shortest equivalent form of a condition.

  • conflicting_rules

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

  • cylindrical_decomposition

    Describe where a condition holds as bounds on each variable in turn.

  • eliminate_quantifiers

    An equivalent condition with the quantifiers removed.

  • equal

    True when two values are equal: the function form of ==.

  • equivalent

    True when two conditions are both true or both false.

  • greater

    True when the first value is greater than the second: the function form of >.

  • greater_equal

    True when the first value is at least the second: the function form of >=.

  • implies

    True unless the first condition is true and the second false.

  • is_even

    Test whether a whole number is even.

  • is_integer

    Test whether a value is a whole number.

  • is_number

    Test whether a value is a number.

  • is_numeric

    Test whether a value has a numeric value, such as pi.

  • is_odd

    Test whether a whole number is odd.

  • is_satisfiable

    Test whether a condition is true for some value of its variables.

  • is_tautology

    Test whether a condition is true for every value of its variables.

  • less

    True when the first value is less than the second: the function form of <.

  • less_equal

    True when the first value is at most the second: the function form of <=.

  • logical_and

    True when every condition is true: the function form of and.

  • logical_expand

    Distribute and over or in a logical expression.

  • logical_not

    The opposite of a condition: the function form of not.

  • logical_or

    True when some condition is true: the function form of or.

  • nand

    False when every condition is true.

  • nor

    True when every condition is false.

  • satisfiability_count

    How many assignments of its variables make a condition true.

  • satisfiability_instances

    The assignments of its variables that make a condition true.

  • truth_table

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

  • unequal

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

  • 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.

Other categories

Last updated