-
Notifications
You must be signed in to change notification settings - Fork 4
Logical Formulas
Victor Mataré edited this page May 22, 2020
·
1 revision
A boolean expression is everything that evaluates to a truth value and can thus be used as a condition.
pop_front(LIST_EXPR)
pop_back(LIST_EXPR)
LIST_EXPR[INDEX]COMPOUND_EXPR . BOOLEAN_FIELD_NAMEtrue
falseBOOLEAN_LHS & BOOLEAN_RHS // Conjunction
BOOLEAN_LHS | BOOLEAN_RHS // Disjunction
BOOLEAN_LHS == BOOLEAN_RHS // Equivalence
BOOLEAN_LHS != BOOLEAN_RHS // XOR
BOOLEAN_LHS -> BOOLEAN_RHS // ImplicationEXPR_LHS == EXPR_RHS
EXPR_LHS != EXPR_RHS
EXPR_LHS > EXPR_RHS
EXPR_LHS >= EXPR_RHS
EXPR_LHS < EXPR_RHS
EXPR_LHS <= EXPR_RHSBoth EXPR_LHS and EXPR_RHS must have the same type.
! BOOLEAN_EXPRexists (VAR) BOOLEAN_EXPR(VAR)
forall (VAR) BOOLEAN_EXPR(VAR)For the quantification operator to work correctly, the possible assignments for VAR must be somehow restricted.
Currently, the only way to do that is to use VAR as parameter of an action or fluent that defines a domain for that parameter.