Lesson 2.1 — Combining

Stack the four words. Work a compound sentence down to a single truth value, step by step.

The Setup

Once you know the four words — AND, OR, NOT, IF — you can stack them. But order and grouping matter.

"I want pizza AND soda OR juice."

What does this mean?

Different sentences. Same words.

Parentheses Save Us

In math, parens group things:

In logic, we do the same. Parens tell you which piece to evaluate first.

When you write or read a logical sentence, always use parens to make the grouping clear. English is sloppy. Logic is precise.

Working Out the Answer

To find the truth value of a compound sentence, follow one rule:

Innermost parens first, then work outward.

Each step, replace one sub-expression with its truth value. Keep going until the whole thing is a single TRUE or FALSE. It's the same idea as solving a math expression — you do the inside of the parens before the outside.

Try it with the widget below. Pick a TRUE or FALSE value for each of the three facts, and watch the compound sentence resolve into a single answer.

It's Friday
It's Saturday
I'm grounded
Compound sentence — "I can stay up late":
Start:(Friday OR Saturday) AND (NOT grounded)
Substitute:— pick all three values above —
OR first:—
NOT next:—
AND last:—
Pick TRUE or FALSE for each fact to see the evaluation.

Each step takes the previous line and replaces one sub-expression with its value. By the last step, the whole sentence is a single TRUE or FALSE. That's the deconstruction skill: take a long compound, work the innermost piece, repeat until you're down to one word.

A Worked Example

Let's do one by hand. Suppose:

Evaluate this compound:

(A AND B) OR C

Step 1 — substitute the values:

(TRUE AND TRUE) OR FALSE

Step 2 — innermost parens first. TRUE AND TRUE = TRUE.

TRUE OR FALSE

Step 3 — evaluate the OR. TRUE OR anything = TRUE.

TRUE

Done. The compound sentence is TRUE.

Tricky Bits

1. No parens? English defaults — but they're confusing.

Without parens, English usually treats AND as binding tighter than OR. So pizza AND soda OR juice defaults to (pizza AND soda) OR juice. But this is exactly the kind of default that gets readers confused. Best practice: always write the parens.

2. Stacking the same word.

"I cleaned my room AND I did my homework AND I walked the dog."

Three ANDs in a row — all three parts must be true. Order doesn't matter for stacked ANDs (or stacked ORs).

3. NOT binds tightest.

When a NOT sits next to a variable, it grabs only that variable. NOT A AND B means (NOT A) AND B, not NOT (A AND B). To negate a whole group, you need parens: NOT (A AND B).

Practice

Facts:

Work out each truth value:

  1. (A AND B) OR C
  2. A AND (B OR C)
  3. (A OR C) AND B
  4. (A AND C) OR (B AND C)
  5. NOT (A AND C)
  6. (NOT C) AND (A OR B)

Answers:

  1. True — (TRUE AND TRUE) OR FALSE = TRUE OR FALSE = TRUE.
  2. True — TRUE AND (TRUE OR FALSE) = TRUE AND TRUE = TRUE.
  3. True — (TRUE OR FALSE) AND TRUE = TRUE AND TRUE = TRUE.
  4. False — both AND groups contain C, and C is FALSE. Both groups false, OR of two falses is FALSE.
  5. True — A AND C = TRUE AND FALSE = FALSE, then NOT FALSE = TRUE.
  6. True — NOT C = TRUE, A OR B = TRUE, TRUE AND TRUE = TRUE.

Recap

Disclosure: This page was generated by Claude (Anthropic) under Bill's direction. Bill provided the curriculum design and the pedagogical thread; Claude wrote the prose and built the interactive widget.