Appendix A

Mathematical Notation

We use the symbol Image to mean “equals by definition.”

If P and Q are propositions, so too are ¬P (read as “not P”), P Image Q (“P or Q”), P Image Q (“P and Q”), P Image Q (“P implies Q”), and P Image Q (“P is equivalent to Q”). For equivalence, we often write “P if and only if Q”.

If P is a proposition and x is a variable, (∃x)P is a proposition (read as “there exists x such that P”). If P is a proposition and x is a variable, (∀x)P is a proposition (read as “for all x, P”); (∀x)P Image (¬(∃xP).

We use this vocabulary from set theory:

a Image X (“a is an element of X”)

XY (“X is a subset of Y”)

{a0, ..., an} (“the finite set with elements a0, ..., and an”)

{a Image X|P(a)} (“the subset of X for which the predicate P holds”)

XY (“the union of X and Y”)

XY (“the intersection of X and Y”)

X × Y (“the direct product of X and Y”)

f : XY (“f is a function from X to Y”)

f : X0 × X1Y (“f is a function from the product of X0 and X1 to Y”)

x Image ε (x)(“x maps to ε(x)”, always given following a function signature)

A closed interval [a, b] is the set of all elements x such that axb. An open interval (a, b) is the set of all elements x such that a < x < b. A half-open-on-right interval [a, b) is the set of all elements x such that ax < b. A half-open-on-left interval (a, b] is the set of all elements x such that a < xb. A half-open interval is our shorthand for half-open on right. These definitions generalize to weak orderings.

We use this notation in specifications, where i and j are iterators and n is an integer:

i Image j (“i precedes j”)

i Image j (“i precedes or equals j”)

[i, j) (“half-open bounded range from i to j”)

[i, j] (“closed bounded range from i to j”)

Image (“half-open weak or counted range from i for n ≥ 0”)

Image (“closed weak or counted range from i for n ≥ 0”)

We use this terminology when discussing concepts:

Weak refers to weakening, which includes dropping, an axiom. For example, a weak ordering replaces equality with equivalence.

Semi refers to dropping an operation. For example, a semigroup lacks the inverse operation.

Partial refers to restricting the definition space. For example, partial subtraction (cancellation) ab is defined when ab.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.208.91