Open In App
Related Articles

Propositional Equivalences

Improve Article
Improve
Save Article
Save
Like Article
Like

Introduction
Two logical expressions are said to be equivalent if they have the same truth value in all cases. Sometimes this fact helps in proving a mathematical result by replacing one expression with another equivalent expression, without changing the truth value of the original compound proposition.

Types of propositions based on Truth values

    There are three types of propositions when classified according to their truth values

  1. Tautology – A proposition which is always true, is called a tautology.
  2. Contradiction – A proposition which is always false, is called a contradiction.
  3. Contingency – A proposition that is neither a tautology nor a contradiction is called a contingency.

Example,

1. p \vee \neg p  is a tautology.
2. p \wedge \neg p  is a contradiction.
3. p \vee q  is a contingency.

Definition of Logical Equivalence
Formally,
Two propositions p and q are said to be logically equivalent if p \leftrightarrow q is a Tautology. The notation p\equiv q is used to denote that p and q are logically equivalent.
One way of proving that two propositions are logically equivalent is to use a truth table. The truth table must be identical for all combinations for the given propositions to be equivalent. But this method is not always feasible since the propositions can be increasingly complex both in the number of propositional variables used and size of the expression.
In this case, there needs to be a better way to prove that the two given propositions are logically equivalent. That better way is to construct a mathematical proof which uses already established logical equivalences to construct additional more useful logical equivalences.
Some basic established logical equivalences are tabulated below-

  \begin{tabular}{ ||c||c|| }      \hline     Equivalence & Name of Identity\\     \hline          \hline     p\wedge T \equiv p &  Identity Laws\\     p\vee F \equiv p &  \\     \hline          p\wedge F \equiv F &  Domination Laws\\     p\vee T \equiv T &  \\     \hline          p\wedge p \equiv p &  Idempotent Laws\\     p\vee p \equiv p &  \\     \hline          \neg(\neg p) \equiv p &  Double Negation Law\\     \hline          p\wedge q \equiv q\wedge p &  Commutative Laws\\     p\vee q \equiv q\vee p &  \\     \hline          (p\wedge q) \wedge r\equiv p\wedge (q \wedge r) &  Associative Laws\\     (p\vee q) \vee r\equiv p\vee (q \vee r) &  \\     \hline      p\wedge (q \vee r)\equiv (p\wedge q)\vee (p\wedge r) &  Ditributive Laws\\     p\vee (q \wedge r)\equiv (p\vee q)\wedge (p\vee r) &  \\     \hline          \hline      \neg(p\wedge q) \equiv \neg p \vee \neg q &  De Morgan's Laws\\     \neg(p\vee q) \equiv \neg p \wedge \neg q &  \\     \hline      p\wedge (p \vee q)\equiv p &  Absorption Laws\\     p\vee (p \wedge q)\equiv p &  \\     \hline          p\wedge \neg p \equiv F &  Negation Laws\\     p\vee \neg p \equiv T &  \\     \hline \end{tabular}

The above Logical Equivalences used only conjunction, disjunction and negation. Other logical Equivalences using conditionals and bi-conditionals are-

 \begin{tabular}{ ||c|| } \hline p\rightarrow q \equiv \neg p\vee q \\  p\rightarrow q \equiv \neg q\rightarrow \neg p \\ p\wedge q \equiv \neg(q\rightarrow \neg p)\\ (p\rightarrow q)\wedge (p\rightarrow r) \equiv p\rightarrow (q\wedge r)\\ (p\rightarrow r)\wedge (q\rightarrow r) \equiv (p\vee q)\rightarrow r\\ (p\rightarrow q)\vee (p\rightarrow r) \equiv p\rightarrow (q\vee r)\\ (p\rightarrow r)\vee (q\rightarrow r) \equiv (p\wedge q)\rightarrow r\\  \hline \end{tabular} \quad \begin{tabular}{ ||c|| } \hline p\leftrightarrow q \equiv (p\rightarrow q) \wedge (q\rightarrow p) \\ p\leftrightarrow q \equiv \neg p \leftrightarrow \neg q \\ p\leftrightarrow q \equiv (p\wedge q) \vee (\neg p \wedge \neg q) \\ \neg (p\leftrightarrow q) \equiv p\leftrightarrow \neg q\\ \hline \end{tabular}


Example,
Show that \neg (p\rightarrow q) \equiv p\wedge \neg q.

Considering LHS,

     \begin{align*} \neg (p\rightarrow q) &\equiv \neg(\neg p \vee q) && \text Using\:first\:equivalence\:of\:Conditionals\\ &\equiv \neg(\neg p) \wedge \neg q&& \text Using\:De\:Morgan's\:law\\ &\equiv p\wedge \neg q&& \text Using\:Double\:negation\:law \end{align}

Another example,
Show that \neg(p\vee (\neg p \wedge q)) \equiv \neg p \wedge \neg q.

Considering LHS,

     \begin{align*} \neg(p\vee (\neg p \wedge q)) &\equiv \neg p \wedge \neg(\neg p \wedge q) && \text Using\:De\:Morgan's\:law\\ &\equiv\neg p \wedge (\neg(\neg p) \vee \neg q)&& \text Using\:De\:Morgan's\:law\\ &\equiv\neg p \wedge (p \vee \neg q)&& \text Using\:Double\:negation\:law\\ &\equiv(\neg p \wedge p)\vee (\neg p \wedge \neg q)&& \text Using\:Distributive\:law\\ &\equiv F \vee (\neg p \wedge \neg q) && \text Using\:Negation\:Law\\ &\equiv \neg p \wedge \neg q && \text Using\:Identity\:Law \end{align}

The above examples could easily be solved using a truth table. But this can only be done for a proposition having a small number of propositional variables. When the number of variables grows the truth table method becomes impractical.
For a proposition having 20 variables, 2^{20} rows have to be evaluated in the truth table. This may be easy to do with a computer, but even a computer would fail in computing the truth table of a proposition having 1000 variables.

GATE CS Corner Questions

Practicing the following questions will help you test your knowledge. All questions have been asked in GATE in previous years or in GATE Mock Tests. It is highly recommended that you practice them.
1. GATE CS 2008, Question 33
2. GATE CS 2014 Set-2, Question 63
3. GATE CS 2006, Question 27
4. GATE CS 2015 Set-3, Question 65

References,
Logical Equivalence – Wikipedia
Discrete Mathematics and its Applications, by Kenneth H Rosen

This article is contributed by Chirag Manwani. If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.


Last Updated : 14 Sep, 2023
Like Article
Save Article
Similar Reads
Related Tutorials