Logic vs inequalities

Our goal is to reformulate the logical conditions (such as IF-THEN-ELSE) encountered in the discrete hybrid model (DHA) as inequalities (and possibly equations), which will allow us to formulate the model as a mathematical program, actually a mixed-integer program (MIP). In order to get there, we are going to recap some fundamentals of logic and then we are going to show how various logical conditions can be reformulated as linear inequalities.

Propositional logic and connectives

Propositions (also logical formulas) are either true or false. They are composed of elementary or atomic propositions (also Boolean variables) and connectives.

Boolean variable (or elementary proposition)

X evaluates to true or false. Oftentimes values 0 and 1 are used, but it should be clear that these are not numbers but symbols that represent logical values.

Connectives

  • Conjunction (logical and): X_1 \land X_2
  • Disjunction (logical or): X_1 \lor X_2
  • Negation: \neg X_2
  • Implication: X_1 \rightarrow X_2
  • Equivalence: X_1 \leftrightarrow X_2
  • Logical XOR: X_1 \oplus X_2

Equivalences of logical propositions

We will heavily used the following equivalences between logical propositions: \begin{aligned} X_1 \rightarrow X_2 \qquad &\equiv \qquad \neg X_2 \rightarrow \neg X_1,\\ X_1 \leftrightarrow X_2 \qquad &\equiv \qquad (X_1 \rightarrow X_2) \land (X_2 \rightarrow X_1),\\ X_1 \land X_2 \qquad &\equiv \qquad \neg (\neg X_1 \lor \neg X_2),\\ X_1 \rightarrow X_2 \qquad &\equiv \qquad \neg X_1 \lor X_2. \end{aligned}

The first three are certainly well known. If the last one does not look familiar, it can be seen as follows: for no X_1 and X_2 does X1 \land \neg X2 evaluate to true. In other words, \neg(X1 \land \neg X2) is true. De Morgan then gives \neg X1 \lor X2.

Two kinds of equivalence

It may be confusing that we use the term equivalence in two different meanings here and with two different symbols. Indeed, the symbol \leftrightarrow (sometimes also called material equivalence or biconditional) is a part of the logical proposition, while the symbol \equiv is used to relate two logical propositions. While this is well established and described in the literature, the notation varies wildly. In particular, beware that the symbol \iff can frequently be encountered in both contexts (that is why we avoid it here). On the other hand, we take the liberty to refer to both cases just as the equivalence, hoping that the context will make it clear which one is meant.

Back to top