According to the precedence of logical connectives, operator $\rightarrow$ gets higher precedence than $\leftrightarrow$ operator. But what about associativity of $\rightarrow$ operator?
The implies operator ($\rightarrow$) does not have the associative property. That means that $(p \rightarrow q) \rightarrow r$ is not equivalent to $p \rightarrow (q \rightarrow r)$. Because of that, the question comes op how $p \rightarrow q \rightarrow r$ should be interpreted.
The proposition $p \rightarrow q \rightarrow r$ can be defined in multiple ways that make sense:
- $(p \rightarrow q) \rightarrow r$ (left associativity)
- $p \rightarrow (q \rightarrow r)$ (right associativity)
- $(p \rightarrow q) \land (q \rightarrow r)$
Which one of these definitions is used?
I could not locate any book/webpage that mentions about associativity of logical operators in discrete mathematics.
Please also cite the reference (book/reliable webpage) that you use to answer my question (as I'm planning to add this to wikipedia page about 'logical connectives').
Thanks.
PS: I got this question when I saw this problem: Check if following compound proposition is tautology or not:
$$ \mathrm{p} \leftrightarrow (\mathrm{q} \wedge \mathrm{r}) \rightarrow \neg\mathrm{r} \rightarrow \neg\mathrm{p}$$
\Rightarrow
($\Rightarrow$) and\rightarrow
($\rightarrow$). The latter is the usual connective, the former is "logical implication"; as I understand it, people who work in Mathematical Logic make a clear distinction between the two (and get endlessly annoyed by those who don't...) – Arturo Magidin Nov 28 '10 at 23:52The reason why the bracket (→)→ is not equal to →(→) is because of notational peculiarities. Associativity is not about brackets, associativity is about successive applications of an operator, which is different. And the successive applications of the implies operator yield same result independent of the order in which the operations are performed.
Read about https://en.wikipedia.org/wiki/Light%27s_associativity_test
– Jencel Mar 31 '21 at 17:48