MCS-212 · Block 1 Unit 1

Propositional Calculus

Section 4 of 8

Block 1 · Unit 1Propositional Calculus15 min · Section 4 of 8

1.4Precedence rule and truth tables of compound propositions

Covers IGNOU MCS-212 §1.3 (Precedence Rule)

When a formula has several connectives and no brackets, we need a fixed rule that tells us which connective to apply first, just as BODMAS does for arithmetic. With that rule we can build the truth table of any compound proposition, column by column.

Why we need a rule

Take ¬p∨q\neg p \lor q. It could mean (¬p)∨q(\neg p) \lor q or ¬(p∨q)\neg (p \lor q). If pp and qq are both T, the first is T and the second is F. So without an agreed order, one formula would have two different meanings.

LevelConnective(s)Arithmetic analogy
1 (first)¬\negminus sign of a single number
2∧\landmultiplication
3∨\lor, ⊕\oplusaddition
4 (last)→\to, ↔\leftrightarrowcomparison

Building a truth table step by step

  1. List the simple propositions. With nn of them, the table has 2n2^n rows (2 rows for one, 4 for two, 8 for three).
  2. Fill the rows in a fixed pattern: the first column alternates in blocks of 2n−12^{n-1} (TTTTFFFF for three variables), the next in blocks of half that size (TTFFTTFF), the last alternates every row (TFTFTFTF).
  3. Bracket the formula using the rule of precedence.
  4. Add one column for each sub-formula, from the innermost outwards.
  5. The last column is the answer.

Key takeaways

  • Order of precedence (IGNOU): ¬\neg, then ∧\land, then ∨\lor and ⊕\oplus, then →\to and ↔\leftrightarrow; equal levels go left to right.
  • Rosen puts →\to above ↔\leftrightarrow; use brackets to avoid any doubt.
  • A formula with nn variables needs 2n2^n rows.
  • Give every sub-formula its own column and check a row by hand.

Practice questions

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

Question 1 · multiple choice

Let pp be T, qq be F and rr be T. What is the truth value of p∨q→q∧rp \lor q \to q \land r?

Show answer

Answer: B. F

By precedence, ∧\land and ∨\lor come before →\to, so the formula is (p∨q)→(q∧r)(p \lor q) \to (q \land r). p∨qp \lor q = T and q∧rq \land r = F, so we get T→FT \to F, which is F. Option 3 is wrong because the rule of precedence decides the grouping.

Question 2 · multiple choice

How is ¬p∧q∨r\neg p \land q \lor r bracketed by the rule of precedence?

Show answer

Answer: A. ((¬p)∧q)∨r((\neg p) \land q) \lor r

¬\neg is applied first and only to pp, then ∧\land, then ∨\lor. Option 3 is tempting if you read left to right, but ∧\land is applied before ∨\lor.

Question 3 · multiple choice

How many rows does the truth table of a formula with 4 simple propositions have?

Show answer

Answer: C. 16

Each proposition has 2 values, so there are 24=162^4 = 16 combinations. Option 1 (232^3) is the count for three propositions.

Question 4 · multiple choice

Using the IGNOU rule of precedence, how is p→q↔rp \to q \leftrightarrow r bracketed?

Show answer

Answer: D. (p→q)↔r(p \to q) \leftrightarrow r

→\to and ↔\leftrightarrow are at the same level, so they are applied from left to right: →\to first. (Rosen’s rule, with →\to above ↔\leftrightarrow, gives the same result here.) Option 1 applies the right-hand connective first, which the rule does not allow.

Question 5 · multiple choice

Let pp be F, qq be T and rr be F. What is the truth value of ¬p∨q∧r\neg p \lor q \land r?

Show answer

Answer: C. T

The formula is (¬p)∨(q∧r)(\neg p) \lor (q \land r) = T ∨\lor F = T. Option 2 is tempting if you apply ∨\lor before ∧\land, but q∧rq \land r being F does not make the disjunction false because ¬p\neg p is T.

Question 6 · short answer

Construct the truth table of p∧¬q→rp \land \neg q \to r.

Show worked answer

By precedence the formula is (p∧(¬q))→r(p \land (\neg q)) \to r. Rows (p,q,r)(p, q, r) in the order TTT, TTF, TFT, TFF, FTT, FTF, FFT, FFF. ¬q\neg q: F, F, T, T, F, F, T, T. p∧¬qp \land \neg q: F, F, T, T, F, F, F, F. (p∧¬q)→r(p \land \neg q) \to r: T, T, T, F, T, T, T, T. The formula is false only in the row pp = T, qq = F, rr = F.

↑ ↓ move↵ openTab switch type