MCS-212 · Block 1 Unit 1

Propositional Calculus

Section 5 of 8

Block 1 · Unit 1Propositional Calculus14 min · Section 5 of 8

1.5Logical equivalence and the laws of logic

Covers IGNOU MCS-212 §1.4 (logical equivalence, De Morgan's laws, laws a–e, E16–E18)

Two sentences can look different but always have the same truth value: “If Lala is rich, he owns a car” and “If Lala does not own a car, he is not rich”. In logic we call such sentences logically equivalent. Equivalences let us replace a complicated formula by a simpler one, exactly as we simplify algebraic expressions.

What logical equivalence means

r≡sr \equiv s is not a new connective. It is a statement about the two formulas. It means the same as ”r↔sr \leftrightarrow s is always true”.

The contrapositive is equivalent to the original

ppqq¬p\neg p¬q\neg qp→qp \to q¬q→¬p\neg q \to \neg p
TTFFTT
TFFTFF
FTTFTT
FFTTTT

The last two columns agree in every row, so p→q≡¬q→¬pp \to q \equiv \neg q \to \neg p.

De Morgan’s laws

In words: to negate an “and”, negate both parts and change “and” to “or”; to negate an “or”, negate both parts and change “or” to “and”. These are De Morgan’s laws.

The standard laws

Here T\mathbf{T} stands for any tautology (always true) and F\mathbf{F} for any contradiction (always false). Every law can be proved with a small truth table.

LawForm with ∧\landForm with ∨\lor
Double negation¬(¬p)≡p\neg(\neg p) \equiv p
Idempotentp∧p≡pp \land p \equiv pp∨p≡pp \lor p \equiv p
Commutativep∧q≡q∧pp \land q \equiv q \land pp∨q≡q∨pp \lor q \equiv q \lor p
Associative(p∧q)∧r≡p∧(q∧r)(p \land q) \land r \equiv p \land (q \land r)(p∨q)∨r≡p∨(q∨r)(p \lor q) \lor r \equiv p \lor (q \lor r)
Distributivep∧(q∨r)≡(p∧q)∨(p∧r)p \land (q \lor r) \equiv (p \land q) \lor (p \land r)p∨(q∧r)≡(p∨q)∧(p∨r)p \lor (q \land r) \equiv (p \lor q) \land (p \lor r)
De Morgan¬(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
Identityp∧T≡pp \land \mathbf{T} \equiv pp∨F≡pp \lor \mathbf{F} \equiv p
Dominationp∧F≡Fp \land \mathbf{F} \equiv \mathbf{F}p∨T≡Tp \lor \mathbf{T} \equiv \mathbf{T}
Negation (complement)p∧¬p≡Fp \land \neg p \equiv \mathbf{F}p∨¬p≡Tp \lor \neg p \equiv \mathbf{T}
Absorptionp∧(p∨q)≡pp \land (p \lor q) \equiv pp∨(p∧q)≡pp \lor (p \land q) \equiv p
Conditionalp→q≡¬p∨qp \to q \equiv \neg p \lor q

The identity and domination laws are exactly E18 of the study material, and the conditional law is E17. The absorption and negation laws are not listed in the study material but are standard (Rosen, Section 1.3, Table 6) and are needed in the exercises.

Logical equivalence is an equivalence relation

For all formulas rr, ss, tt: r≡rr \equiv r (reflexive); if r≡sr \equiv s then s≡rs \equiv r (symmetric); if r≡sr \equiv s and s≡ts \equiv t then r≡tr \equiv t (transitive), because “same column” is reflexive, symmetric and transitive. This answers E16, and it is what lets us write long chains r≡s≡t≡…r \equiv s \equiv t \equiv \dots in the next section.

Key takeaways

  • r≡sr \equiv s means rr and ss have the same truth value in every row.
  • p→q≡¬q→¬pp \to q \equiv \neg q \to \neg p (contrapositive) and p→q≡¬p∨qp \to q \equiv \neg p \lor q.
  • De Morgan: negating “and” gives “or” of negations, and the other way round.
  • The standard laws let us simplify formulas like algebra.

Practice questions

Answer on paper first, then check. The explanation matters more than the letter you chose.

Question 1 · multiple choice

Which formula is logically equivalent to p→qp \to q?

Show answer

Answer: C. ¬q→¬p\neg q \to \neg p

The contrapositive ¬q→¬p\neg q \to \neg p has the same truth table as p→qp \to q. Option 1 (converse) is tempting, but for pp = F, qq = T we get q→pq \to p = F while p→qp \to q = T.

Question 2 · multiple choice

By De Morgan’s laws, ¬(p∨q)\neg(p \lor q) is equivalent to:

Show answer

Answer: A. ¬p∧¬q\neg p \land \neg q

Negating an “or” gives the “and” of the negations. Option 2 is tempting because it keeps ∨\lor, but you must change ∨\lor to ∧\land.

Question 3 · multiple choice

Which formula is equivalent to p→qp \to q by the conditional law?

Show answer

Answer: D. ¬p∨q\neg p \lor q

p→qp \to q is false only when pp = T and qq = F, and the same is true of ¬p∨q\neg p \lor q. Option 1 is tempting, but it is the formula for q→pq \to p.

Question 4 · multiple choice

Is q→¬pq \to \neg p logically equivalent to p→qp \to q?

Show answer

Answer: B. No; for pp = T and qq = T, q→¬pq \to \neg p is F while p→qp \to q is T.

The contrapositive is ¬q→¬p\neg q \to \neg p, not q→¬pq \to \neg p (the text after Table 6 of the study material has this misprint). Option 4 is wrong: when both are F, both formulas are T.

Question 5 · multiple choice

What is the negation of “The server is up and the database is reachable”?

Show answer

Answer: C. The server is down or the database is not reachable.

¬(p∧q)≡¬p∨¬q\neg(p \land q) \equiv \neg p \lor \neg q. Option 1 is tempting, but it negates both parts without changing “and” to “or”, so it is too strong.

Question 6 · short answer

Prove the distributive law p∨(q∧r)≡(p∨q)∧(p∨r)p \lor (q \land r) \equiv (p \lor q) \land (p \lor r) with a truth table.

Show worked answer

Rows (p,q,r)(p, q, r) in the order TTT, TTF, TFT, TFF, FTT, FTF, FFT, FFF. q∧rq \land r: T, F, F, F, T, F, F, F. p∨(q∧r)p \lor (q \land r): T, T, T, T, T, F, F, F. p∨qp \lor q: T, T, T, T, T, T, F, F. p∨rp \lor r: T, T, T, T, T, F, T, F. (p∨q)∧(p∨r)(p \lor q) \land (p \lor r): T, T, T, T, T, F, F, F. The columns for p∨(q∧r)p \lor (q \land r) and (p∨q)∧(p∨r)(p \lor q) \land (p \lor r) are identical, so the two formulas are logically equivalent.

↑ ↓ move↵ openTab switch type