How Can We Test Rules Built from And, Or and Not? Teach learners to turn a clearly stated rule into an expression, evaluate every combination in a small model, and explain why a proposed rewrite preserves or changes its meaning. A generated rule can look convincing while one misplaced bracket changes the result. Boolean reasoning gives students a concrete way to inspect that change and communicate a repair.
This international coursework lab uses fictional resource cards with explicitly assigned attributes. It develops mathematical reasoning through a complete eight-case example, contrasting rules and an independent transfer task. AI can assist with drafting and checking, while learners retain responsibility for definitions and evidence. Future superintelligence remains hypothetical; the activities are original teaching proposals, not evidence of measured educational outcomes.
- Define every Boolean input and the meaning of the output.
- Distinguish inclusive OR from exclusive OR, or XOR.
- Evaluate a small truth table systematically and completely.
- Use parentheses and negation to preserve the intended rule.
- Test equivalent expressions and expose a wrong rewrite with a counterexample.
- Separate a complete mathematical check from verification of real-world inputs.
Choose your reading route
Coursework series: Quantifier and Scope Lab · Constraint Consistency Lab · Proof and Counterexample Lab · Classification and Taxonomy Studio · Vocabulary Coding and Engineering
Continue this coursework series: Aggregation and Weighting Lab · Boolean Logic Lab (this article) · Geometric Scaling Lab · Error Detection and Checksums Lab
Full chapter index
Chapters 1–5
Chapters 6–10
Chapters 11–15
Chapters 16–20
Chapters 21–25
Chapter 26
1. A small connective can change an entire rule
Imagine a catalogue that should display a resource when it has at least one usable format and is not held for review. The sentence contains two different relationships: an alternative between formats and a restriction applying to the whole choice. A rule that attaches the restriction to only one format behaves differently.
The lab makes that distinction inspectable. Learners write the intended expression, calculate its outputs, and compare a proposed alternative row by row. The educational capability is to connect a sentence, a formal rule and its consequences. Producing an expression quickly is useful; explaining exactly which cases it admits makes the work reviewable by someone else.
2. Define two-valued inputs before combining them
A Boolean variable has one of two values, true or false. In this lab, write 1 for true and 0 for false; these digits are labels for truth values. AND is true when both inputs are true. Inclusive OR is true when at least one input is true, including when both are true. NOT reverses the truth value.
These are the conventions used in MIT’s introduction to propositional logic. Before using them, decide what each variable means. A label such as ready is too vague unless the activity specifies the exact condition that makes it true. A precise expression cannot repair an undefined input.
3. Vocabulary Coding and Engineering: preserve the rule's meaning
Within eduKate’s proposed Vocabulary Coding and Engineering framework, a useful vocabulary entry includes the term, its definition, a matching example and a boundary example. For inclusive OR, the matching cases include both inputs being true. For XOR, that same case is excluded. Recording the difference prevents an everyday reading of or from silently replacing the declared mathematical convention.
Keep a small shared dictionary for input, output, conjunction, disjunction, negation and equivalence. Learners should translate each symbol back into ordinary language without changing its scope. This use of VCE is a classroom design proposal for maintaining shared meanings; it does not establish a validated theory of cognition or guarantee correct decisions.
4. The fictional resource-card display rule
Let P mean that a card has a printable version, D that it has a downloadable version, and H that it is held for review. These fictional attributes are already known and are supplied as exact true-or-false values. The required rule displays the card if it has either version or both, provided that it is not held for review.
Define the display output S by S = (P OR D) AND NOT H. Display is a mathematical output label in this invented catalogue exercise, not a judgment about the quality of a resource. Allow all eight combinations of the three inputs. In particular, printable and downloadable are separate attributes; neither is assumed to imply the other.
5. Calculate one case through intermediate results
Take P = 0, D = 1 and H = 0. First calculate P OR D, which is 1 because the downloadable version is present. Next calculate NOT H, which is 1 because the card is not held. The final AND combines 1 and 1, so S = 1 and the fictional rule displays the card.
Now change only H to 1. The format result remains 1, but NOT H becomes 0. The final result is 0. Writing these intermediate values helps a reviewer locate an error: it may concern an input, the meaning of OR, the negation, or the final combination. A bare final digit hides those distinct possibilities.
6. Enumerate every assignment without omission
Use the fixed input order P, D, H and list the triples 000, 001, 010, 011, 100, 101, 110 and 111. Their respective S outputs are 0, 0, 1, 0, 1, 0, 1 and 0. Thus the displayed cases are exactly 010, 100 and 110: at least one format is present and the final hold digit is zero.
Each of three inputs has two allowed values, so the full table contains 2 × 2 × 2 = 8 assignments. Check both completeness and uniqueness. A list of eight rows containing a repeated triple is not a complete test. The fixed ordering also lets two people compare their work without mistaking reordered rows for different results.
| P | D | H | Display S |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 |
7. Do not interpret three passing rows as a real-world rate
Three of the eight possible assignments produce S = 1. That statement counts combinations in the defined mathematical space. It does not mean that three eighths of actual catalogue resources would be displayed. Real cards could occur with very different frequencies, and some combinations might never occur in a particular collection.
If the exercise separately specifies that the eight triples are equally likely, then the display probability under that extra model is 3/8. Without a distribution, the table supplies logical possibilities rather than occurrence probabilities. Ask learners to label each conclusion as a count of assignments, a conditional probability under stated assumptions, or a claim requiring observations.
8. Contrast inclusive OR with exactly one
Now change the fictional requirement: display a card only when exactly one of the two formats is present and it is not held. Write X = (P XOR D) AND NOT H. XOR is true when the two inputs differ. The accepted triples are 010 and 100; the original accepted case 110 is now rejected because both formats are present.
An equivalent way to express exactly one is (P OR D) AND NOT(P AND D). Learners can verify its four possible P,D assignments before adding the hold condition. The change from inclusive choice to exclusive choice is a deliberate change of specification. It is not a harmless substitution of a shorter word or a more sophisticated-looking symbol.
9. Read parentheses as instructions about scope
Compare the intended S = (P OR D) AND NOT H with W = P OR (D AND NOT H). In S, the hold restriction applies after the format choice. In W, a true P is enough to make the entire expression true, regardless of H. The two expressions therefore encode different display requirements.
Use P = 1, D = 0, H = 1 to demonstrate the difference. S is 0 because the card is held, while W is 1 because P is true. Parentheses make the grouping explicit without asking the reader to recall an operator-precedence convention. In teaching materials, that small investment in clarity makes both interpretation and checking easier.
10. Find every case affected by a wrong rewrite
A hypothetical AI answer claims that W is a simpler version of S. Compare the complete tables instead of accepting the wording. W has outputs 0, 0, 1, 0, 1, 1, 1, 1 in the same eight-row order. It differs from S at 101 and 111, the two cases where a printable card is held for review.
One differing row is sufficient to disprove equivalence. Finding both differing rows explains the full consequence within this model: the wrong expression admits every held printable card. The repair is to restore the grouping around P OR D before applying NOT H. Record the faulty expression, a counterexample, the correction and the complete comparison in the learning portfolio.
11. Write the complement of the display rule correctly
The complement NOT S should describe every case the original rule does not display. Applying the usual negation rules gives NOT S = (NOT P AND NOT D) OR H. In words, a card is not displayed when neither format exists or when it is held. The original table confirms that this complement is true at the five rows where S is false.
The common mistake NOT P OR NOT D OR H is too broad. At 100, the original rule displays the printable, unheld card, but this wrong complement is true simply because D is false. Negating a compound expression changes both its constituent truth conditions and the way they are joined. Check the resulting expression against the entire original condition.
12. Verify a useful equivalent expression
Distribute the final condition across the two alternatives to obtain E = (P AND NOT H) OR (D AND NOT H). This says that either the printable route passes with no hold, or the downloadable route passes with no hold. Evaluating E over all eight assignments gives the same outputs as S: 0, 0, 1, 0, 1, 0, 1, 0.
The two expressions organise the reasoning differently while preserving the output for every allowed input. A reviewer might prefer S because the shared restriction appears once, or E because each route is explicit. Neither preference changes their logical equivalence. For this exercise, readability is a design judgment to explain after correctness has been established.
13. Separate necessary conditions from sufficient conditions
For S to be true, NOT H must be true: being unheld is necessary. It is not sufficient, because 000 is unheld yet has no format. The combined condition P AND NOT H is sufficient for S, but is not necessary; the downloadable-only case 010 also passes. These statements follow directly from the eight-row table.
Ask the learner to find a row that defeats each incorrect reversal. Knowing that display implies no hold does not permit the conclusion that no hold implies display. Likewise, a printable version alone is not sufficient: 101 fails. This exercise makes the direction of a condition tangible without treating an ordinary-language explanation as proof of an untested converse.
14. Treat an unknown attribute as missing information
Suppose P = 1 and D = 0, but the value of H has not been supplied. The two-valued rule has not acquired a third Boolean value; the learner lacks one of its inputs. Consider both compatible assignments, 100 and 101. Their outputs differ, so the available information does not determine whether S is true.
Missing information does not always prevent a conclusion. If P = 0 and D = 0 while H is unknown, both compatible assignments give S = 0. The output is then determined despite the missing input. This method reasons over possible completions; it does not silently convert unknown into false or introduce a general-purpose three-valued logic.
15. Make extra constraints visible before removing cases
An instructor could introduce a different fictional catalogue in which every downloadable card also has a printable version. This adds the constraint D implies P. It excludes the triples 010 and 011, leaving six feasible assignments. The original lab did not contain that constraint, so applying it retrospectively would change the problem.
On the restricted domain, S is true only at 100 and 110 and is equivalent there to P AND NOT H. Across all eight unconstrained assignments, that shorter expression fails to match S at 010. State whether equivalence is claimed for every Boolean assignment or only those satisfying an explicit constraint. A local simplification can depend on information outside the expression itself.
16. Distinguish formula correctness from input correctness
A complete truth table can establish how the specified expression behaves for the defined inputs. It cannot establish that an actual card’s attributes were recorded correctly, that the display requirement is appropriate, or that a software implementation faithfully evaluates the expression. Those are separate questions requiring their own evidence.
Keep three artifacts: a specification in ordinary language, a truth-table model, and a record explaining how each input would be established. In this paper exercise the inputs are supplied, so only the model is checked directly. Learners should identify the boundary of their verification precisely. This protects useful logical work from being presented as a broader guarantee than it supports.
17. Build a compact review record
A review record should name the variables, preserve their definitions, state the expression and include the full ordered table. Add the incorrect-parentheses example, the equivalent distributed expression and the complement. For each claim of equivalence, identify the comparison domain. For each rejected claim, show at least one specific assignment that makes the outputs differ.
The record need not use advanced software. Paper, an accessible text document or a small spreadsheet can all hold the evidence. If software generates the rows, inspect the input ordering and at least several intermediate calculations independently. A correctly formatted table is useful only when its labels, expressions and calculated outputs actually refer to the same model.
18. Prompt AI for a rule that can be inspected
A suitable prompt is: Using only two-valued inputs P, D and H, model the stated card-display requirement. Define every operator, list all eight distinct input triples in the specified order, and show the intermediate format and hold results. Compare the intended expression with P OR (D AND NOT H), identify every disagreement, and explain the scope of the restriction.
Ask for a separate XOR variant and an explanation of unknown inputs. Then check the response against the original specification and independently recompute the differing rows. Keep the prompt and any correction together. AI contributes candidate representations and explanations; the coursework evidence lies in the learner’s ability to test them and defend the final interpretation.
19. Assess the reasoning with observable evidence
Use four proposed rubric dimensions: precise input definitions, complete and correct evaluation, justification of equivalence or disagreement, and transfer with stated limits. Score each from zero to three: zero for absent evidence, one for partial work with substantial gaps, two for mostly correct work with a repairable omission, and three for correct, explicit evidence across the required cases.
Apply the dimensions separately. A student might construct an accurate table but leave unknown inputs unexplained, or identify the bracket error while missing a row. Feedback should name the specific repair. The possible total is twelve, but the dimension profile is more informative than the total alone. This is an original classroom rubric, not a validated measure of general reasoning ability.
20. Independent transfer: a gallery with exactly one medium
In a new fictional gallery, let T mean a text panel is present, I an illustration is present, and A that the exhibit is archived. Show an exhibit only when exactly one medium is present and it is not archived. Independently write G = (T XOR I) AND NOT A. In the order 000 through 111 for T,I,A, its outputs are 0, 0, 1, 0, 1, 0, 0, 0.
The shown cases are 010 and 100. An inclusive-OR substitution wrongly includes 110. The complement is (T AND I) OR (NOT T AND NOT I) OR A, true on the remaining six assignments. Explain why both-present and neither-present cases are excluded, then verify the complement independently. The changed exactly-one requirement tests whether the learner can rebuild the rule, rather than merely rename the original variables.
21. Primary school: sort cards with explicit rules
Begin with invented picture cards carrying two clear attributes, such as a circle and a stripe. Ask children to choose cards with a circle and a stripe, with at least one of those features, or with exactly one. Include all four combinations so the both-present and neither-present cases can be discussed directly.
Let children point, sort, explain aloud or use suitable tactile versions. Introduce a third attribute only when the two-attribute distinctions are secure. Adults may use AI to prepare reviewed examples without requiring children to access an AI service. The learning goal is to follow and explain a clear rule; formal symbols can be introduced when they help the child communicate that reasoning.
22. Secondary school: connect language, tables and expressions
Students can compare a written requirement, two candidate expressions and their complete truth tables. Ask them to design a distinguishing input, explain the difference, and write a corrected rule. A short programming exercise may follow, provided the activity specifies the actual language’s operators and compares its outputs with the mathematical model.
Keep the core task accessible without code. Learners can demonstrate the same Boolean reasoning through a table, spoken explanation or supported notation. Where software is used, distinguish the mathematical truth labels from language-specific conventions about numbers, missing values and evaluation. The lab’s exact Boolean assumptions should stay visible rather than being replaced by an unexplained implementation shortcut.
23. University, institutions and EnDist
Advanced coursework can extend the exercise to formal specifications, symbolic simplification and methods for checking larger rule systems. Exhaustive enumeration grows from eight rows for three Boolean inputs to sixteen for four, then doubles with each additional input. Learners should explain when a small complete table is useful and what further methods a larger problem would require.
Within eduKate’s proposed EnDist framework, AI may distribute the capacity to express and inspect rules to more people. Educational value depends on also distributing understanding of definitions, scope and verification limits. A readable explanation, explicit assumptions and a reproducible check allow participants with different technical backgrounds to examine the same decision rule and propose informed improvements.
24. A four-week Boolean Logic Lab
Week one: define AND, inclusive OR, XOR and NOT using complete two-input examples, then specify the fictional resource-card rule. Week two: calculate its eight-row table, inspect the wrong-parentheses expression and record every disagreement. Deliver the dictionary, specification and checked table together so the definitions remain connected to the results.
Week three: verify the complement and distributed expression, investigate unknown inputs, and evaluate the effect of the additional D-implies-P constraint. Week four: complete the independent gallery task before consulting assistance, then critique an AI-generated solution and defend the final answer. Use the four rubric dimensions to plan a precise revision, with suitable access supports throughout the activity.
25. Questions learners, families and educators may ask
Does or always mean exactly one? No; this lab uses inclusive OR and names XOR separately. Do different-looking expressions always give different answers? No; equivalence requires agreement on every assignment in the stated domain. Is one counterexample enough to reject equivalence? Yes, provided the assignment belongs to that domain and both outputs are calculated correctly.
Does an unknown input mean false? No; examine the compatible completions. Do three passing rows out of eight establish a real-world percentage? No, unless an appropriate occurrence model is separately supplied. Does a complete truth table verify an entire application? No; it establishes the Boolean relationship in the stated model, while input accuracy, implementation and the appropriateness of the rule require separate evidence.
26. Sources, boundaries and next steps
The formal background is supported by MIT OpenCourseWare’s Logic and Propositions, Chapter 3.1–3.5, covering Boolean operators, truth tables and equivalence. The resource catalogue, gallery, complete calculations, learning sequence and rubric here are original instructional examples. They are not observations of real learners or deployed systems.
Continue with the Quantifier and Scope Lab, Constraint Consistency Lab, Proof and Counterexample Lab and Classification and Taxonomy Studio. Together these activities connect precise language to rules that can be inspected. The next useful step is to choose a small fictional rule, state its complete domain, and produce a review record that another learner can independently check and explain.
Related coursework: Quantifier and Scope Lab · Constraint Consistency Lab · Proof and Counterexample Lab · Classification and Taxonomy Studio.
