Week 2 · Lesson 4 · 55 minutes

Simplify without changing behaviour

I can prove that two Boolean expressions agree.

Planned lesson. Follow your teacher’s teaching order.

Source workbook pages: 15.

Resources

Vocabulary

Vocabulary
equivalent: the same output for every input case; identity: a rule that is always true
55-minute lesson sequence
  1. 0–5 · Retrieve identity rules by testing both A values.
  2. 5–15 · Model factoring and explain symbols without replacing gate names.
  3. 15–25 · Guide task 1 algebra, then have each student check all four rows.
  4. 25–45 · Construct both task 2 circuits and verify De Morgan row by row.
  5. 45–50 · Compare gate count while checking that no behaviour changed.
  6. 50–55 · Collect the equivalence exit reason.

Try before notes

What are A AND 1 and A OR 0 equal to? Try A=0 and A=1.

Build the idea

Equivalent expressions give the same output for every allowed input. A shorter expression is useful only if it preserves behaviour. A truth table is a complete check for a small finite set of Boolean inputs.

Useful identities include A OR 0=A and A AND 1=A. A OR NOT A=1 because one of them must be true. A AND NOT A=0 because they cannot both be true.

De Morgan changes both the operation and the inputs: NOT(A AND B) equals (NOT A) OR (NOT B). Keep the outer NOT visible until the whole transformation is finished.

NOT(A AND B)
       ⇕ same output in every row
(NOT A) OR (NOT B)

See the method

Use + for OR, a dot for AND and NOT in words. A.B + A.NOT B = A.(B + NOT B) = A.1 = A. The first step factors A. Useful rules: A+A=A; A.A=A; A+0=A; A.1=A; A+NOT A=1; A.NOT A=0. A simpler circuit must keep the same output.

Predict then reveal

Simplify (R OR 0) AND 1. Explain each step.

Reveal reasoning

R OR 0 becomes R by the OR identity. R AND 1 becomes R by the AND identity. For R=0 both forms give 0; for R=1 both give 1.

Check De Morgan for NOT(A AND B) and (NOT A) OR (NOT B) in order 00,01,10,11.

Reveal reasoning

AND is 0,0,0,1; invert to get 1,1,1,0. The second expression gives 1 OR 1, 1 OR 0, 0 OR 1, 0 OR 0: also 1,1,1,0.

Work one step together

Read the first task. Each learner predicts the first step privately. Compare the method, then complete one intermediate row or one code iteration together. Do not display a finished workbook answer.

Practice

  1. Simplify (P AND Q) OR (P AND NOT Q). Name the reasoning. Verify the original and the simplified expression in four truth-table rows.

Your turn

Complete the remaining steps of task 1 alone, then the next tasks. Predict before running code. Save your own evidence before comparing.

Practice

  1. Simplify (P AND Q) OR (P AND NOT Q). Name the reasoning. Verify the original and the simplified expression in four truth-table rows.
  2. Check NOT(A OR B) and (NOT A) AND (NOT B) for all four rows. Draw both circuits. Explain which gate can replace the first whole circuit.

Check and explain

One matching row does not prove equivalence; one differing row disproves it.

Point to the first step, row, condition or requirement that supports your answer. If results differ, find the first different state and repair one cause.

Show what you know

Is testing just one input enough to prove equivalence?

HL challenge when ready

Simplify A OR (A AND B) and verify.

Week 2 homework

Show working. Keep code and output. Stop at 25 minutes and mark where you reached.

  1. Make a truth table for Y=(A AND B) OR NOT C. Show intermediate columns and all eight rows.
  2. Draw Y using standard gate symbols. Write a Python expression with the same meaning.
  3. Simplify (X AND Y) OR (NOT X AND Y). Use algebra and a two-variable Karnaugh map.
  4. A learner says XOR and OR are always equal. Give one counterexample.

Source workbook pages: 17.

Weekly homework (Word)

Python practice · two short prompts

Spend about 3 minutes on each during practice time. Predict, run, change one thing, then explain. These prompts do not add homework.

A starter is runnable code to explore or complete. If the playground restores your saved code, the linked starter is selected in Example: use Load example when ready. Download your work before confirming replacement.

Prompt 1

Check whether a and (a or b) always matches a.

No imports needed.

Hint and starter code

Equivalent rules give the same output for every allowed input.

# Equivalent rules give the same output for every allowed input.
for a in [False, True]:
    for b in [False, True]:
        print(a, b, (a and (a or b)) == a)
Open this starter in Python playground →
Prompt 2

Check De Morgan’s rule for two inputs using a truth table.

No imports needed.

Hint and starter code

A truth table lists each input combination and its output.

# A truth table lists each input combination and its output.
for a in [False, True]:
    for b in [False, True]:
        left = not (a and b)
        right = (not a) or (not b)
        print(left == right)
Open this starter in Python playground →