Propositions Laws and Algebra

Last Updated : 3 Jun, 2026

Propositions, Laws, and Algebra is a branch of propositional logic that deals with logical statements, logical operations, and algebraic laws used to simplify and analyze logical expressions. It forms the basis of logical reasoning and is widely used in mathematics and computer science.

Laws of Algebra of Propositions

Below are the laws of Algebra of Propositions:

Idempotent Law

  • p ∨ p ≅ p
  • p ∧ p ≅ p 

The truth table of the conjunction and disjunction of a proposition with itself will equal the proposition.

Associative Law

  •     (p ∨ q) ∨ r ≅ p ∨ (q ∨ r)
  •     (p ∧ q) ∧ r ≅ p ∧ (q ∧ r)

Associative Law states that propositions also follow associativity and can be written as mentioned above.

Distributive Law

  •     p ∨ (q ∧  r) ≅ (p ∨ q) ∧ (p ∨ r)
  •     p ∧ (q ∨  r) ≅ (p ∧ q) ∨ (p ∧ r)

Distributive Law states that propositions also follow the distribution and can be written as mentioned above.

Commutative Law

  •      p ∨ q ≅ q ∨ p 
  •      p ∧ q ≅ q ∧ p

It states that propositions follow commutative property i.e if a=b then b=a

Identity Law

  •     p ∨ T ≅ T
  •     p ∨ F ≅ p
  •     p ∧ T ≅ p
  •     p ∧ F ≅ F

where T is a Tautology, F is a Contradiction and p is a proposition.

De Morgan's Law

In propositional logic and boolean algebra, De Morgan's laws are a pair of transformation rules that are both valid rules of inference. They are named after Augustus De Morgan, a 19th-century British mathematician. The rules allow the expression of conjunctions and disjunctions purely in terms of each other via negation. In formal language, the rules are written as:

  • \neg (p\wedge q) \equiv \neg p \vee \neg q
  • \neg (p\vee q) \equiv \neg p \wedge \neg q

Involution Law

  • ~~p ≅ p

Complement Law

  • p ∨ ~p ≅ T 
  • p ∧ ~p ≅ F
  • ~T ≅ F
  • ~F ≅ T

where T is a Tautology, F is a Contradiction and p is a proposition.

Special Conditional Statements

As we know that we can form new propositions using existing propositions and logical connectives. New conditional statements can be formed starting with a conditional statement p\rightarrow q    . In particular, there are three related conditional statements that occur so often that they have special names.

  • Implication : p\rightarrow q
  • Converse : The converse of the proposition p\rightarrow q     is q\rightarrow p
  • Contrapositive : The contrapositive of the proposition p\rightarrow q     is \neg q\rightarrow \neg p
  • Inverse : The inverse of the proposition p\rightarrow q     is \neg p\rightarrow \neg q

Note : It is interesting to note that the truth value of the conditional statement p\rightarrow q    is the same as it's contrapositive, and the truth value of the Converse of p\rightarrow q    is the same as the truth value of its Inverse. When two compound propositions always have the same truth value, they are said to be equivalent. Therefore,

  • p\rightarrow q \equiv \neg q\rightarrow \neg p
  • q\rightarrow p \equiv \neg p\rightarrow \neg q

Example : Let p represent “Today is Friday” and q represent “It is raining today”.

  • Implication (p → q): If today is Friday, then it is raining.
  • Converse (q → p): If it is raining, then today is Friday.
  • Contrapositive (~q → ~p): If it is not raining, then today is not Friday.
  • Inverse (~p → ~q): If today is not Friday, then it is not raining.

Implicit Use of Biconditionals

In natural language, biconditional statements are not always written explicitly using “if and only if”. They are often expressed using “if, then” or “only if” statements where the converse is implied but not directly stated.

For example, the statement “If you complete your homework, then you can go out and play” may also imply “You can go out and play only if you complete your homework.” Thus, such statements can sometimes represent a biconditional relationship.

Precedence Order of Logical Connectives

Logical connectives are used to construct compound propoitions by joining existing propositions. Although parenthesis can be used to specify the order in which the logical operators in the compound proposition need to be applied, there exists a precedence order in Logical Operators. The precedence Order is-

\begin{array}{ |c|c| } \hline Operator & Precedence \\ \hline \neg & 1 \\ \hline \wedge & 2 \\ \vee & 3 \\ \hline \rightarrow & 4 \\ \leftrightarrow & 5 \\ \hline\end{array}

Here, higher the number lower the precedence. 

Translating English Sentences

In propositional logic, English sentences can be translated into logical expressions using propositional variables and logical connectives. This helps in analyzing statements and representing them in a precise mathematical form.

Example: “You can access the Internet from campus only if you are a computer science major or you are not a freshman.”

Let:

  • p = “You can access the Internet from campus”
  • q = “You are a computer science major”
  • r = “You are a freshman”

Using logical connectives, the logical expression for the given statement is:

p\rightarrow (q\vee \neg r)

Some Examples are

1. Implication

If today is Friday, then it is raining.

  • Converse: If it is raining, then today is Friday.
  • Contrapositive: If it is not raining, then today is not Friday.
  • Inverse: If today is not Friday, then it is not raining.

2. Translate English Sentence

"You can access the Internet from campus only if you are a computer science major or you are not a freshman."

  • Logical Expression: 𝑝 - > (𝑞 ∨ ¬ 𝑟 )
  • Where:
    • p = "You can access the Internet from campus."
    • q = "You are a computer science major."
    • r = "You are a freshman."

Practice Problems

  1. Simplify ¬(p ∨ ¬q).
  2. Prove p ∧ (p ∨ q) ≅ p.
  3. What is the inverse of p → q?
  4. Simplify ¬p ∨ (p ∧ q).
  5. Prove (p ∧ T) ≅ p.
  6. Determine the contrapositive of p → q.
  7. Simplify ¬(p ∧ ¬q).
  8. Prove (p ∨ F) ≅ p.
  9. What is the converse of p → ¬q?
  10. Simplify ¬(p ∨ q).

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.

Comment