When a proposition is not well-formed, there is some ambiguity when trying to evaluate it. As such, an order of evaluation is required to properly parse it.
How do we parse the statement below?
Binding Powers
Logical connectives have binding power, which defines their order of precedence. A connective that ‘binds’ stronger is one that should be evaluated first. The binding powers are:
That is:
- Negation binds strongest, stronger than disjunction and conjunction
- Disjunction and conjunction have equal precedence, can be evaluated left-to-right if no parentheses are present
- They also bind stronger than implication, which binds weakest.
For example, even though the proposition is not well-formed, because we know negation binds stronger than conjunction, we can ‘add’ our own implicit parentheses:
A combination of disjunction and conjunction must have parentheses!
Because both connectives have equal precedence/binding power, we cannot evaluate a statement like:
without explicit parentheses!
Properties of Connectives
- Both conjunction () and disjunction () are symmetrical, meaning
Expression Trees
Once the binding powers have been accounted for, a visual way to evaluate such compound statements is via an expression tree:
%%🖋 Edit in Excalidraw, and the dark exported image%%
Note that an expression tree behaves in the ‘reverse’ of binding powers, that is, if two connectives are in the same parenthesis layer, the connective with the lower binding power is put higher up the tree.