Logic, sets and algebraic structures
Translate a statement before simplifying it. Keep the domain, quantifier scope and definition of each relation visible; a single counterexample disproves a universal claim.
10.1 Propositional logic
Past papers · CS 2014–2026 (23 papers): 14 questions, 18 marks · DA 2024–2026 (3 papers): 4 questions, 5 marks
A proposition has a truth value. , , , , denote NOT, AND, inclusive OR, implication and equivalence. A tautology is true under every assignment; a contradiction is false under every assignment; a satisfiable formula is true under at least one.
10.2 Predicate logic
Past papers · CS 2014–2026 (23 papers): 12 questions, 19 marks · DA 2024–2026 (3 papers): 3 questions, 5 marks
A predicate becomes a proposition when its free variables are assigned or quantified. Here domains are nonempty unless stated otherwise. “All A are B” is ; “some A are B” is .
10.3 Sets, functions and relations
Past papers · CS 2014–2026 (23 papers): 20 questions, 29 marks
A function assigns exactly one image to each domain element. Injective means distinct inputs have distinct images; surjective means every codomain element is reached; bijective means both. An inverse function exists exactly for a bijection.
| Relation property on | Test |
|---|---|
| Reflexive | for every |
| Symmetric | |
| Antisymmetric | and |
| Transitive | and |
| Equivalence relation | Reflexive, symmetric, transitive; equivalence classes partition |
| Partial order | Reflexive, antisymmetric, transitive |
A set is countable if finite or bijective with a subset of . Finite products and countable unions of countable sets are countable; and finite strings over a finite alphabet are countable. , and all infinite binary sequences are uncountable by diagonalisation.
An empty relation is symmetric and transitive; it is not reflexive on a nonempty set. Antisymmetric does not mean “not symmetric”. Reflexive closure adds diagonal pairs; symmetric closure adds inverse pairs; transitive closure adds all reachable pairs.
10.4 Partial orders and lattices
Past papers · CS 2014–2026 (23 papers): 5 questions, 8 marks
A Hasse diagram omits loops and transitive edges and draws larger elements above smaller ones. Comparable elements have one below the other. A chain is totally ordered; an antichain has pairwise incomparable elements.
10.5 Monoids and groups
Past papers · CS 2014–2026 (23 papers): 13 questions, 21 marks
A binary operation is closed on its set. A semigroup has associativity; a monoid additionally has an identity; a group additionally has an inverse for every element. An abelian group has a commutative operation.
A subgroup is a subset that is itself a group under the inherited operation. A nonempty subset is a subgroup exactly when for all . A left coset is ; the index counts distinct cosets.
Last-minute recall
- An implication fails in exactly one truth-table row.
- Negating a quantifier swaps it and negates its predicate.
- Mixed quantifier order changes whether a witness may depend on the input.
- A function's codomain matters when testing surjectivity.
- Equivalence relations partition; partial orders compare.
- Least is stronger than minimal; greatest is stronger than maximal.
- A lattice requires both a join and a meet for every pair.
- A monoid need not have inverses; a group need not commute.