Chapter 10

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 logicCSDA

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. ¬\neg, ∧\land, ∨\lor, →\to, ↔\leftrightarrow 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 logicCSDA

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 ∀x(A(x)→B(x))\forall x(A(x)\to B(x)); “some A are B” is ∃x(A(x)∧B(x))\exists x(A(x)\land B(x)).

10.3 Sets, functions and relationsCS

Past papers · CS 2014–2026 (23 papers): 20 questions, 29 marks

A function f:A→Bf:A\to B 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 AATest
ReflexiveaRaaRa for every aa
SymmetricaRb⇒bRaaRb\Rightarrow bRa
AntisymmetricaRbaRb and bRa⇒a=bbRa\Rightarrow a=b
TransitiveaRbaRb and bRc⇒aRcbRc\Rightarrow aRc
Equivalence relationReflexive, symmetric, transitive; equivalence classes partition AA
Partial orderReflexive, antisymmetric, transitive

A set is countable if finite or bijective with a subset of N\mathbb N. Finite products and countable unions of countable sets are countable; Z,Q\mathbb Z,\mathbb Q and finite strings over a finite alphabet are countable. R\mathbb R, P(N)\mathcal P(\mathbb N) 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 latticesCS

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 groupsCS

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 HH is a subset that is itself a group under the inherited operation. A nonempty subset is a subgroup exactly when ab−1∈Hab^{-1}\in H for all a,b∈Ha,b\in H. A left coset is aH={ah:h∈H}aH=\{ah:h\in H\}; the index [G:H][G:H] 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.

Revise offline: the whole Engineering Mathematics handbook as one PDF

75 pages · 3.2 MBFree to read online. Sign in to download the PDF.We save the handbook, version and request time in My downloads. Privacy policy

All chapters · Corrections