Grade 10
Propositions and logical reasoning
A proposition is a statement that is either true or false, never both. Connectives such as , , , build compound statements, and truth tables let us verify equivalences such as with certainty.
IntuitionStatements that are true or false
A light switch is either on or off — never in between. Mathematics uses the same idea: a proposition is a declarative sentence with exactly one truth value, (true) or (false). "" is a proposition (); "" is not a proposition until is fixed, because its truth depends on an unknown.
SchoolConnectives and truth tables
Definition: Logical connectives
Given propositions , : negation is true exactly when is false; conjunction (" and ") is true exactly when both are true; disjunction (" or ") is true when at least one is true; the conditional ("if then ") is false only when is true and is false; the biconditional is true exactly when and share the same truth value.
This is one of De Morgan's laws: negating "both and " is the same as "not , or not ". Its twin, , negates a disjunction into a conjunction of negations.
UndergraduateEquivalence laws and valid inference rules
For all propositions : and .
Why is it true?
"Not both" always splits into two exhaustive cases — at least one fails — which is exactly disjunction of negations; this is the logical skeleton behind negating "for all" statements and behind digital circuits that convert AND-gates into OR-gates of inverted inputs (NAND/NOR equivalence).
Proof
We prove by exhaustively checking all four combinations of truth values for and , since a propositional formula is fully determined by its truth table.
Case : , so . Also and , so . Both sides equal .
Case : , so . Also , , so . Both sides equal .
Case : by symmetry with the previous case, and . Both sides agree.
Case : , so . Also , , so . Both sides agree.
All four rows of the truth table match, so holds as a tautology (an identity true under every assignment). The second law follows by an identical four-row check, or algebraically by substituting for in the first law and negating both sides using .
For all propositions : .
Why is it true?
A conditional statement and its contrapositive always carry the same information — "if raining then wet ground" is exactly as true as "if the ground is not wet then it is not raining". This equivalence is the logical justification for proof by contraposition, one of the two most common indirect proof techniques (the other being proof by contradiction).
Proof
We prove by comparing truth tables for and across all four assignments.
Case : (a true hypothesis with a true conclusion). Also , so has a false hypothesis, which makes the whole conditional regardless of . Both sides are .
Case : (true hypothesis, false conclusion is the only case that makes a conditional false). Also and , so has a true hypothesis and false conclusion, giving . Both sides are .
Case : (false hypothesis makes any conditional true). Also , so automatically. Both sides are .
Case : (false hypothesis). Also , , so (true hypothesis, true conclusion). Both sides are .
All four rows agree, so and have identical truth tables and are logically equivalent. Note this differs from the converse and the inverse , which are equivalent to each other but generally NOT equivalent to the original conditional — a common source of invalid arguments.
UndergraduateReal-World Applications and Worked Examples
Digital circuits are physical realizations of propositional logic: an AND-gate computes , an OR-gate computes , and an inverter computes . Engineers use De Morgan's laws to redesign circuits using only NAND gates (cheaper to fabricate), and use Modus Ponens () / Modus Tollens () style reasoning to verify that a circuit's output matches its specification for every input combination. The same connectives underlie SQL `WHERE` clauses, spreadsheet formulas, and search-engine query syntax.
Example: Simplifying a circuit specification
An alarm should trigger unless (the door is closed AND the window is closed). Write the trigger condition without a leading negation over a conjunction, i.e. simplify , and describe the equivalent gate layout.
Solution
Let = "door is closed" and = "window is closed". The trigger condition is .
By De Morgan's law, .
So the alarm triggers exactly when the door is NOT closed, OR the window is NOT closed — in circuit terms, feed the door and window sensors through inverters, then combine with an OR-gate; equivalently, a single NAND-gate applied directly to (door-closed, window-closed) computes the same output without separate inverters, which is why NAND is called a "universal gate".
Example: Modus Tollens in debugging
A programmer knows "if the cache is stale, then the page shows old data" (). She reloads and observes the page shows current data (). What can she conclude, and which inference rule justifies it?
Solution
Let = "cache is stale", = "page shows old data". We are given and the observation (page shows current data).
Modus Tollens states : from and , we may validly infer .
So she can conclude the cache is NOT stale. Note the trap she must avoid: seeing true would NOT let her conclude (that would be the invalid "affirming the consequent" fallacy) — old-looking data could have many other causes.
If is true and is false, what is the truth value of ?
Which statement is logically equivalent to ?
Given is true and is true, Modus Ponens () lets us conclude:
A NAND gate directly implements which single connective applied to a conjunction?
References
- Kenneth H. Rosen (2018). Discrete Mathematics and Its Applications
- George Boole (1854). An Investigation of the Laws of Thought