Bool set of booleans 224
false boolean constant false 107, 222, 225
true boolean constant true 222, 225, 269
set of natural numbers 233, 296
set of real numbers 233
empty set 224
{} empty set (alternative notation) 224
∞ infinity 239
∈ membership relation 224
set brackets 224
|| number of elements 234
⇓ minimum quantifier 303
⇑ maximum quantifier 303
⇐ if, follows from 246, 262, 274
⇒ only if, implies 246, 262, 274
∧ conjunction (“and”) 271
∨ disjunction (inclusive “or”) 270
= equals 261
≡ equivalence 261
≡ equivalence quantifier 303
inequivalence 114
inequivalence quantifier 303
∑ summation 287
multiplication 297
∀ “for all” quantifier 191, 279, 298
∃ “there exists” quantifier 191, 298
(arbitrary) quantifier 302
{ } set comprehension 288

bv : range : term
quantifier notation 302
A
abstraction 11–12, 30–31, 41, 301
absurdity 276
acyclic graph 70, 328, 354–357
addition of a semiring 244
additive inverse 244
al-Adli ar-Rumi 218
adults and children problem 36, 40
algorithmics 6
Allardice, R.E. 156
anti-monotonicity 311
anti-reflexive relation 112
anti-symmetric relation 251–252, 354
anti-symmetry
of the subset relation 283
arithmetic 237
array, two-dimensional 351
assertion 162
assignment
simultaneous 12
statement 12
associativity 102, 240–241, 267, 294
of conjunction 273
of disjunction 270
of equality 99
of equivalence 99, 104–105, 107
of maximum 313
of multiplication 99
of relation composition 331–332
atomic proposition 97
auxiliary variable 21
axiom 97
B
balanced ternary notation 146
base type 233
basis (of an inductive argument) 119
binary operator 230
binary search 163–166, 197–198
binomial coefficient 361
addition formula 363
black and white balls problem 8–9
Boole, George 222–223, 248–249
boolean algebra 223, 237, 267–283
bound variable 223, 226, 286–287, 289–291, 302–303
bridge problem 4–5, 54–63, 183–200
brute-force search 35–42, 91, 201
C
cancellative 311
capture (of free variables) 291, 299, 303
carrier (of an operator) 237
chameleons of Camelot problem 178, 180
characteristic function 236
Chen, Wei xii
chicken-chasing problem 5, 166–177
chocolate-bar problem 7–8, 10–16
Chong, Siang Yew, xii
Claus, M. 147
closure (of a relation) 252
reflexive transitive 252, 254, 338–339, 354
transitive 252, 254, 328, 334–339
combinatorics 40, 185, 357–366
commutativity 237
comparison 137
composition
of functions 340
conclusion of a calculation 260
conditional statement 63–65, 72
conjectures 128
conjunctional (use of an operator) 103–104, 250, 261
constant-false function 245
constant-true function 245
construction 131
continued
disjunction 270
equivalence 104, 107, 115, 269
expression 103, 240, 242, 250–251
product 286
summation 285
contraposition 109–111, 276, 310
convergence (of infinite summations) 297
cutting the plane 121, 123–126
cycle 328
D
De Morgan’s rule 273–274, 276, 306
decryption 116
deduction, mathematical 128
definitional equality 229
Dijkstra, Edsger W. xii, 66, 117, 146, 180, 217
directed state-transition graph 37
disjunction 244–245, 270–272, 274
addition over maximum 314
“at most” over maximum 313
conjunction through disjunction 273
conjunction through equivalence 274
disjunction through conjunction 273
disjunction through equivalence 270
“if” over conjunction 278, 282
“if” over disjunction 278, 282
distributivity rule
existential quantification 301
general quantifications 306
summations 297
universal quantification 300
divides (relation on numbers) 247
divisor 315
dominoes problem 9
dotdotdot notation 285–286, 291, 298
double negation, rule of 109, 281
duality (between conjunction and disjunction) 274
dummy renaming 291–292, 299–300, 303
dummy rules 292
Dutch national flag problem 180
E
edge-count 327
element (of a set) 224
elementary algebra 243
empty path 327
empty range 161, 287, 294, 299, 300–301, 303
empty word 265
encryption 116
definitional 229
of booleans 98–100, 103–104, 244–245, 261, 267–269
of propositions 97
of sets 279
equivalence class 257
equivalence relation 216, 256–257
equivales 104
Euclid’s algorithm 316
excluded middle 271
existential quantification 64, 297–298, 300–301, 303
expression 222
F
factorisation 242
field 282
Find program 180
follows-from relation 274
for-all quantification 71
FORTRAN 229
Fraser, A.Y. 156
free variable 223, 226–227, 289–291, 303
composition 340
higher-order 235
space 233
unary 229
functional relation 340
G
Galois field 282
Gantt chart 368
Gardner, Martin 156
Gaussian elimination 353
global variable 290
goat, cabbags and wolf problem 36, 37–39, 41, 44
Gödel, Kurt 117
graph
bipartite 329
state-transition 37
greatest common divisor 230, 238–239, 241, 252, 315–316
abelian 243
guard 63
H
Hamiltonian-circuit problems 216–217
Hasse diagram 246, 252–255, 328, 339
heterogeneous relations 328–329
hint (in a calculation) 14, 259
I
of disjunction 270
idempotent semiring 244
identity relation 338
implication 25–27, 244, 272–279
implies relation 274
in-line expression 261
inclusive-or 26
indirect equality 310, 313–314
in experimental sciences 128
mathematical 128
principle of mathematical 15–16, 30
step 119
of booleans 245
infinite quantification 287
infinity 239
injective relation 340
input---output relation 4
instance (of an expression) 223
intermediate-value theorem 163
interpretation 31
intersection (of sets) 225, 280
system 38
inverse distributivity law 242
inverse functions 295
K
knave 95
knight 95
knights-and-knaves puzzles 95–117
Knuth, Donald E. 6
L
least common multiple 238, 316
Leibniz 278
see also substitution of equals for equals
Leibniz, Gottfried Wilhelm 97, 255–256, 277
Leibniz’s rule 99, 255, 267, 278
lexicographic ordering 184
limit (infinite quantification) 297
linear combination 18
list comprehension 302
local variable 289
body 158
losing position 68
Lucas, Edouard 147
Lukasiewicz, J. 117
M
Manhattan distance 169
matchstick games 67–77, 79–83, 88–89, 128–129
measure of progress 159
membership relation 224
Mendes, Alexandra xiii
meta-rule 277
Michaelis, Diethard xii, 180, 217
modular arithmetic 25, 316–322
modulus 25
monoid 243
multiple 315
Murray, H.J.R. 217
mutual implication 278–279, 282
N
naming the elements of a problem 36, 41, 44
natural number 119
boolean 245
modulo Q 323
nervous-couples problem 36, 40, 42–50, 179–180, 358–359
nesting 290, 292–293, 295, 299–300, 303
Nim 92
non-deterministic choice 23–24
notation, mathematical 221
NP-complete problems 217
O
one-point rule 294–295, 299, 301, 303
one-to-one correspondence 340
only-if statement 26
only-if step 263
operator
binary 230
symbol 230
unary 229
order isomorphism 311
lexicographic 184
P
parameter 5
parsing 232
finish node 327
start node 327
Pi notation 286
Pólya, George 17
polymorphism 235
polynomial 132
postcondition 50
postfix notation 228
power set 236
precedence 231
in calculations 262
precondition 50
predicate 226
prefix notation 228
problem decomposition 35–36, 45–48
of a semiring 244
proposition 97
atomic 97
Q
quantification 71
Quicksort 180
quotient space 257
R
range
empty 161, 287, 294, 299–301, 303
of a function 235
infinite 306
of a quantification 286–288, 302
rearranging
universal quantification 299
Recorde, Robert 106, 255 recurrence relation 361, 363
recursion 151
reflexivity 98, 247–248, 267, 276
regular algebra 354
relation
algebra 237
functional 340
total 340
universal 333
release (of bound variables) 291–292, 299, 303
ring 244
Roget, Peter Mark 217
Rote, Günter 200
S
of bound variables 287
semantic side condition 289
semiring 243–244, 349–350, 353–354,
sequential composition 51, 157
cardinality 234
enumeration 224
equality 279
finite 224
shunting 276
side condition 289, 291, 299–300
Smullyan, Raymond 117
splitting rule
for existential quantifications 301
general form 303
idempotent operators 304
for universal quantification 299–300
Sprague---Grundy number 92
state-space explosion problem 40
state-transition 37
graph 37
straight-move circuits 202–206
strengthening 27, 262–263, 275–276
subset 236
substitution 277
of equals for equals 61, 99, 255, 267, 257, 259, 277–278
in quantified expressions 291
surjective relation 340
operator 102
symmetry 35–36, 41–44, 46–47, 81–82, 237–238, 294
of disjunction 270
of equivalence 107
syntactic side condition 289
T
target 235
Tarski, Alfred 117
term (of a quantification) 286–287, 302
termination condition 159
tetrominoes problem 9–10, 24–30
thru 64
tiling problem 135
topological search 70, 88, 356–357
torch problem 200
total relation 340
trading rule 291, 296, 300–301, 304
transitive closure 252, 254, 328, 334–339
transitive relation 249–251, 260
of implication 278
of less-than 260
triomino problem 121–122, 126–127
trit 146
dependent 86
type (of a bound variable) 302
U
unary function 229
unary operator 229
undirected state-transition graph 37
union 225
of disjunction 271
of a symmetric binary operator 238–239
universal quantification 71, 161, 279, 297–303
universal relation 333
universe 225
V
van Gasteren, A. (Netty) G.M. 66
variable 222
bound 223, 226, 286–287, 289–291, 302–303
free 223, 226–227, 289–291, 303
vernacular, mathematical 221
Vierkant Voor Wiskunde 34
W
while statement 159
Wiltink, Gerard 117
winning position 68
Woodward, John, xii
Z