All articles
Discrete MathematicsOpen to everyone

Algebra of Propositions and Logical Equivalences

Learn the algebra of propositions with essential logical equivalence laws, implication and biconditional identities, De Morgan’s laws, duality, and step-by-step truth table examples.

Gulshan Kumar

· 20 min read

In propositional logic, compound propositions are formed by combining simpler propositions using logical operators such as AND, OR, NOT, implication, and biconditional.

Just as ordinary algebra has laws for simplifying numerical expressions, propositional logic has a collection of logical equivalence laws that allow us to simplify and transform logical expressions without changing their truth values.

These laws are collectively called the algebra of propositions.


1. Logical Equivalence

Two propositions are said to be logically equivalent if they have the same truth value for every possible combination of truth values of their variables.

If propositions PP and QQ are logically equivalent, we write:

P≡QP \equiv Q

For example,

p→q≡¬p∨qp \to q \equiv \neg p \lor q

This means that p→qp \to q and ¬p∨q\neg p \lor q always produce exactly the same truth value.

Logical equivalences are extremely useful because they allow complicated logical expressions to be rewritten in simpler forms.


2. Basic Laws of Propositional Algebra

Let pp, qq, and rr be propositions.

Let:

  • TT represent True
  • FF represent False
  • ¬\neg represent NOT
  • ∧\land represent AND
  • ∨\lor represent OR

The following laws are fundamental.


Identity Laws

p∧T≡pp \land T \equiv p p∨F≡pp \lor F \equiv p

These are called identity laws because combining a proposition with the appropriate identity value does not change it.

Intuition

For AND:

  • pp AND True depends entirely on pp.

Therefore,

p∧T=pp \land T = p

For OR:

  • pp OR False also depends entirely on pp.

Therefore,

p∨F=pp \lor F = p

Domination Laws

p∨T≡Tp \lor T \equiv T p∧F≡Fp \land F \equiv F

Here, one truth value completely determines the result.

If one operand of OR is True, the entire expression must be True:

p∨T≡Tp \lor T \equiv T

Similarly, if one operand of AND is False, the entire expression must be False:

p∧F≡Fp \land F \equiv F

Idempotent Laws

p∨p≡pp \lor p \equiv p p∧p≡pp \land p \equiv p

Repeating the same proposition does not change its truth value.

For example, saying

"It is raining OR it is raining"

has exactly the same logical meaning as simply saying

"It is raining."


Double Negation Law

¬(¬p)≡p\neg(\neg p) \equiv p

Negating a proposition twice gives the original proposition.

If pp means:

It is raining.

then ¬p\neg p means:

It is not raining.

and ¬(¬p)\neg(\neg p) again means:

It is raining.

Therefore,

¬¬p≡p\neg\neg p \equiv p

3. Commutative Laws

p∨q≡q∨pp \lor q \equiv q \lor p p∧q≡q∧pp \land q \equiv q \land p

The order of propositions does not matter when using AND or OR.

For example,

p∧qp \land q

has the same truth value as

q∧pq \land p

This is similar to ordinary arithmetic:

a+b=b+aa+b=b+a

4. Associative Laws

(p∨q)∨r≡p∨(q∨r)(p \lor q)\lor r \equiv p\lor(q\lor r) (p∧q)∧r≡p∧(q∧r)(p\land q)\land r \equiv p\land(q\land r)

When the same logical operator is used repeatedly, changing the grouping does not change the result.

Therefore, we can often simply write

p∨q∨rp\lor q\lor r

or

p∧q∧rp\land q\land r

without worrying about the grouping.


5. Distributive Laws

Logical operators can distribute over one another.

OR distributed over AND

p∨(q∧r)≡(p∨q)∧(p∨r)p\lor(q\land r) \equiv (p\lor q)\land(p\lor r)

AND distributed over OR

p∧(q∨r)≡(p∧q)∨(p∧r)p\land(q\lor r) \equiv (p\land q)\lor(p\land r)

Notice something interesting here.

In ordinary algebra, multiplication distributes over addition. In propositional logic, however, both AND and OR have distributive forms.


6. De Morgan's Laws

De Morgan's laws describe what happens when a negation is applied to an AND or OR expression.

¬(p∧q)≡¬p∨¬q\neg(p\land q) \equiv \neg p\lor\neg q

and

¬(p∨q)≡¬p∧¬q\neg(p\lor q) \equiv \neg p\land\neg q

A useful way to remember De Morgan's laws is:

Negate each proposition and switch the operator.

Thus,

∧⟷∨\land \quad \longleftrightarrow \quad \lor

For example,

¬(p∧q)\neg(p\land q)

becomes

¬p∨¬q\neg p\lor\neg q

while

¬(p∨q)\neg(p\lor q)

becomes

¬p∧¬q\neg p\land\neg q

7. Absorption Laws

p∨(p∧q)≡pp\lor(p\land q)\equiv p p∧(p∨q)≡pp\land(p\lor q)\equiv p

These are called absorption laws because the larger expression containing qq is effectively absorbed by pp.

For example,

p∨(p∧q)p\lor(p\land q)

can only be true when pp is true, so the expression behaves exactly like pp.


8. Negation Laws

p∨¬p≡Tp\lor\neg p\equiv T p∧¬p≡Fp\land\neg p\equiv F

A proposition must either be true or false. Therefore,

p∨¬pp\lor\neg p

is always true.

This is known as the Law of Excluded Middle.

On the other hand,

p∧¬pp\land\neg p

can never be true because a proposition and its negation cannot simultaneously be true.

This is the Law of Contradiction.


9. Summary of the Basic Equivalence Laws

LawLogical Equivalences
Identityp∧T≡pp\land T\equiv p
p∨F≡pp\lor F\equiv p
Dominationp∨T≡Tp\lor T\equiv T
p∧F≡Fp\land F\equiv F
Idempotentp∨p≡pp\lor p\equiv p
p∧p≡pp\land p\equiv p
Double Negation¬(¬p)≡p\neg(\neg p)\equiv p
Commutativep∨q≡q∨pp\lor q\equiv q\lor p
p∧q≡q∧pp\land q\equiv q\land p
Associative(p∨q)∨r≡p∨(q∨r)(p\lor q)\lor r\equiv p\lor(q\lor r)
(p∧q)∧r≡p∧(q∧r)(p\land q)\land r\equiv p\land(q\land r)
Distributivep∨(q∧r)≡(p∨q)∧(p∨r)p\lor(q\land r)\equiv(p\lor q)\land(p\lor r)
p∧(q∨r)≡(p∧q)∨(p∧r)p\land(q\lor r)\equiv(p\land q)\lor(p\land r)
De Morgan's¬(p∧q)≡¬p∨¬q\neg(p\land q)\equiv\neg p\lor\neg q
¬(p∨q)≡¬p∧¬q\neg(p\lor q)\equiv\neg p\land\neg q
Absorptionp∨(p∧q)≡pp\lor(p\land q)\equiv p
p∧(p∨q)≡pp\land(p\lor q)\equiv p
Negationp∨¬p≡Tp\lor\neg p\equiv T
p∧¬p≡Fp\land\neg p\equiv F

10. Principle of Duality

An important feature of propositional algebra is that most laws occur in dual pairs.

The dual of a logical expression is obtained by simultaneously replacing:

T↔FT \leftrightarrow F

and

∧↔∨\land \leftrightarrow \lor

Variables and negations remain unchanged.

For example, consider the identity law:

p∧T≡pp\land T\equiv p

Replace ∧\land with ∨\lor and TT with FF:

p∨F≡pp\lor F\equiv p

Therefore, these two identity laws form a dual pair.

Similarly,

p∨T≡Tp\lor T\equiv T

has the dual

p∧F≡Fp\land F\equiv F

The double-negation law,

¬(¬p)≡p\neg(\neg p)\equiv p

does not contain ∧\land, ∨\lor, TT, or FF, so it is self-dual under these replacements.


11. Logical Equivalences Involving Implication

Recall that

p→qp\to q

means:

If pp is true, then qq is true.

Implication can be rewritten using NOT and OR.

Fundamental Implication Law

p→q≡¬p∨qp\to q\equiv\neg p\lor q

This is one of the most important equivalences in propositional logic.

It allows us to completely eliminate the implication operator.


Contrapositive

p→q≡¬q→¬pp\to q\equiv\neg q\to\neg p

The proposition

¬q→¬p\neg q\to\neg p

is called the contrapositive of p→qp\to q.

A conditional statement and its contrapositive are logically equivalent.


OR Using Implication

p∨q≡¬p→qp\lor q\equiv\neg p\to q

Using the implication law,

¬p→q\neg p\to q

becomes

¬(¬p)∨q\neg(\neg p)\lor q

and by double negation,

p∨qp\lor q

Hence,

p∨q≡¬p→qp\lor q\equiv\neg p\to q

AND Using Implication

p∧q≡¬(p→¬q)p\land q\equiv\neg(p\to\neg q)

Because

p→¬q≡¬p∨¬qp\to\neg q \equiv \neg p\lor\neg q

negating both sides gives

¬(¬p∨¬q)\neg(\neg p\lor\neg q)

Applying De Morgan's law,

p∧qp\land q

Therefore,

p∧q≡¬(p→¬q)p\land q\equiv\neg(p\to\neg q)

Negation of an Implication

A particularly important equivalence is

¬(p→q)≡p∧¬q\neg(p\to q) \equiv p\land\neg q

Why?

Because p→qp\to q is false in exactly one situation:

p=T,q=Fp=T,\qquad q=F

Therefore, saying

"p→qp\to q is false"

means exactly

"pp is true AND qq is false."

Hence,

¬(p→q)≡p∧¬q\boxed{\neg(p\to q)\equiv p\land\neg q}

12. Additional Implication Equivalences

The following equivalences are also useful:

(p→q)∧(p→r)≡p→(q∧r)(p\to q)\land(p\to r) \equiv p\to(q\land r) (p→r)∧(q→r)≡(p∨q)→r(p\to r)\land(q\to r) \equiv (p\lor q)\to r (p→q)∨(p→r)≡p→(q∨r)(p\to q)\lor(p\to r) \equiv p\to(q\lor r) (p→r)∨(q→r)≡(p∧q)→r(p\to r)\lor(q\to r) \equiv (p\land q)\to r

These identities are especially useful when simplifying compound logical expressions.


Summary of Logical Equivalences Involving Conditional Statements

Logical Equivalence
p→q≡¬p∨qp\to q\equiv\neg p\lor q
p→q≡¬q→¬pp\to q\equiv\neg q\to\neg p
p∨q≡¬p→qp\lor q\equiv\neg p\to q
p∧q≡¬(p→¬q)p\land q\equiv\neg(p\to\neg q)
¬(p→q)≡p∧¬q\neg(p\to q)\equiv p\land\neg q
(p→q)∧(p→r)≡p→(q∧r)(p\to q)\land(p\to r)\equiv p\to(q\land r)
(p→r)∧(q→r)≡(p∨q)→r(p\to r)\land(q\to r)\equiv(p\lor q)\to r
(p→q)∨(p→r)≡p→(q∨r)(p\to q)\lor(p\to r)\equiv p\to(q\lor r)
(p→r)∨(q→r)≡(p∧q)→r(p\to r)\lor(q\to r)\equiv(p\land q)\to r

13. Logical Equivalences Involving Biconditional

The biconditional

p↔qp\leftrightarrow q

means:

pp if and only if qq.

It is true whenever pp and qq have the same truth value.


Biconditional as Two Implications

p↔q≡(p→q)∧(q→p)p\leftrightarrow q \equiv (p\to q)\land(q\to p)

For pp and qq to be equivalent, both directions must hold.


Negating Both Sides

p↔q≡¬p↔¬qp\leftrightarrow q \equiv \neg p\leftrightarrow\neg q

Negating both propositions does not change whether their truth values are equal.


Biconditional Using AND and OR

p↔q≡(p∧q)∨(¬p∧¬q)p\leftrightarrow q \equiv (p\land q)\lor(\neg p\land\neg q)

This representation makes the meaning of the biconditional very clear.

It is true when either:

p=T,q=Tp=T,\quad q=T

or

p=F,q=Fp=F,\quad q=F

In other words, pp and qq must agree.


Negation of a Biconditional

¬(p↔q)≡p↔¬q\neg(p\leftrightarrow q) \equiv p\leftrightarrow\neg q

It can also be written as

¬(p↔q)≡(p∧¬q)∨(¬p∧q)\neg(p\leftrightarrow q) \equiv (p\land\neg q)\lor(\neg p\land q)

The negation is therefore true exactly when pp and qq have different truth values.


Summary of Logical Equivalences Involving Biconditional Statements

Logical Equivalence
p↔q≡(p→q)∧(q→p)p\leftrightarrow q\equiv(p\to q)\land(q\to p)
p↔q≡¬p↔¬qp\leftrightarrow q\equiv\neg p\leftrightarrow\neg q
p↔q≡(p∧q)∨(¬p∧¬q)p\leftrightarrow q\equiv(p\land q)\lor(\neg p\land\neg q)
¬(p↔q)≡p↔¬q\neg(p\leftrightarrow q)\equiv p\leftrightarrow\neg q
¬(p↔q)≡(p∧¬q)∨(¬p∧q)\neg(p\leftrightarrow q)\equiv(p\land\neg q)\lor(\neg p\land q)

14. Verifying Logical Expressions Using Truth Tables

Logical equivalences can be verified using truth tables.

If two expressions have identical truth values in every possible row, they are logically equivalent.

Let's look at a few examples.


Example 1: Construct the Truth Table for (p∨¬q)→p(p\lor\neg q)\to p

We evaluate the expression step by step.

First calculate:

¬q\neg q

then

p∨¬qp\lor\neg q

and finally

(p∨¬q)→p(p\lor\neg q)\to p
ppqq¬q\neg qp∨¬qp\lor\neg q(p∨¬q)→p(p\lor\neg q)\to p
TTFTT
TFTTT
FTFFT
FFTTF

Therefore, the compound proposition has truth values

T,  T,  T,  FT,\;T,\;T,\;F

Notice the final row.

There,

p∨¬q=Tp\lor\neg q=T

while

p=Fp=F

so the implication becomes

T→FT\to F

which is False.


Example 2: Construct the Truth Table for (¬(p∧q)∨r)→¬p(\neg(p\land q)\lor r)\to\neg p

Because there are three variables pp, qq, and rr, the truth table contains

23=82^3=8

possible combinations.

We evaluate:

p∧qp\land q

then

¬(p∧q)\neg(p\land q)

then

¬(p∧q)∨r\neg(p\land q)\lor r

and finally

(¬(p∧q)∨r)→¬p(\neg(p\land q)\lor r)\to\neg p
ppqqrrp∧qp\land q¬(p∧q)\neg(p\land q)¬(p∧q)∨r\neg(p\land q)\lor r(¬(p∧q)∨r)→¬p(\neg(p\land q)\lor r)\to\neg p
TTTTFTF
TTFTFFT
TFTFTTF
TFFFTTF
FTTFTTT
FTFFTTT
FFTFTTT
FFFFTTT

The final column gives the truth value of the complete compound proposition.


Example 3: Prove That p→q≡¬p∨qp\to q\equiv\neg p\lor q

One of the most important implication identities is

p→q≡¬p∨qp\to q\equiv\neg p\lor q

We can prove this using a truth table.

ppqq¬p\neg pp→qp\to q¬p∨q\neg p\lor q
FFTTT
FTTTT
TFFFF
TTFTT

Compare the final two columns:

p→qp\to q¬p∨q\neg p\lor q
TT
TT
FF
TT

They are identical for every possible combination of pp and qq.

Therefore,

p→q≡¬p∨q\boxed{p\to q\equiv\neg p\lor q}

The logical equivalence is proved.


15. Truth Tables vs. Equivalence Laws

There are two common ways to prove that logical expressions are equivalent.

Method 1: Truth Table

Construct the truth table for both expressions and compare their final columns.

If the columns are identical, the expressions are logically equivalent.

Method 2: Algebraic Simplification

Use established logical laws to transform one expression into another.

For example,

¬(p→q)\neg(p\to q)

Using the implication law,

≡¬(¬p∨q)\equiv\neg(\neg p\lor q)

Using De Morgan's law,

≡¬(¬p)∧¬q\equiv\neg(\neg p)\land\neg q

Using double negation,

≡p∧¬q\equiv p\land\neg q

Therefore,

¬(p→q)≡p∧¬q\boxed{\neg(p\to q)\equiv p\land\neg q}

For large expressions, algebraic simplification is often much faster than constructing a complete truth table.


The algebra of propositions provides a systematic way to simplify and transform logical expressions without changing their meaning. By understanding the fundamental equivalence laws, implication and biconditional identities, De Morgan's laws, duality, and truth-table verification, we can solve complex logical expressions more efficiently. These concepts form an important foundation for discrete mathematics, Boolean algebra, digital logic, programming, and theoretical computer science.

What did you think?

Algebra of PropositionsDe Morgan's LawsLogical EquivalencePropositional LogicTruth Tables

Continue the conversation

Share a question, an insight, or a different perspective.

Discussion loads when you reach this section.

Follow the idea

Keep reading