I was following the solution of one particular propositional logic puzzle where I encountered that the initial well-formed formula was reduced to:
((Q → ((A → B) ∧ (¬A → ¬B))) ∧ (¬Q → ((¬A → B) ∧ (A → ¬B))))
The example then used the definition of Logical Equivalence(<=>) and the below identity:
((¬p ↔ q) ↔ ¬(p ↔ q))
to reduce the formula to
Q ↔ (A ↔ B)
Can anyone please help me understand how the final concise form was derived using the identity?