The simple model with which we begin is concerned with integers and whether they are odd or even; we shall call it the parity model. There are various technical terms associated with it:
the universe;
variables;
the parity values;
the parity switcher;
the parity table;
the operations;
expressions;
equivalence of expressions.
The universe for the model is the set of integers. The variables, denoted by letters and so on, can stand for any elements of the universe. For example, might represent the integer , while stands for .
There are two parity values (for ‘‘odd’’) and (for ‘‘even’’) which any variable can take, depending on which element of the universe it represents. Thus if represents , then the parity value of is (because the number is odd), and if represents , then the parity value of is (because is even). (Note: using for ‘‘odd’’ might cause confusion, so we prefer .)
The parity switcher (called ‘‘twiddles’’) is an operation on the variables, defined by setting the integer represented by to be minus the integer represented by . For example, if represents , then represents , and if represents , then represents . We observe that the parity value of a variable is always the opposite of that of ; we summarize this observation in the following parity table.
E | |
D |
Moreover, we note that because .
There are two operations (‘‘plus’’) and (‘‘times’’) which we can use to create expressions from the variables. Thus for variables and , we can form and . For example, if and represent and , respectively, then represents while represents . The expressions obtained in this way also have parity values; they are completely determined by the parity values of the variables concerned as shown in the following parity tables.
E | D | |||||
D | E | |||||
D | E | |||||
E | E |
Note that each table has rows to allow for all possible combinations of the parity values of the two variables and .
The operations , and can be applied to expressions (as well as variables), enabling us to construct more complex expressions. When an expression involves more than a single operation, we use brackets to clarify its structure, and we work from the inside of the brackets outwards. For example, in the expression , we first create , we then multiply this by , and finally we add .
We can form parity tables for complicated expressions by building them up column by column. For example, the expression has the following table.
E | E | E | D | D | |||
E | D | E | E | E | |||
D | E | E | E | E | |||
D | D | D | E | D | |||
D | D | D | D | E | |||
D | E | E | E | E | |||
E | D | E | E | E | |||
E | E | E | E | E |
Note that this table has rows to allow for all possible combinations of the parity values of the three variables , and .
In some cases we may find that two different expressions have the same parity table. For example, has the same parity table as because the right-hand column of the following table is the same as that of the table above.
E | D | D | |||
D | E | E | |||
D | E | E | |||
E | D | D | |||
E | D | E | |||
D | E | E | |||
D | E | E | |||
E | D | E |
This means that, whatever elements of the universe are represented by , and , the two expressions will have the same parity, that is, both will be odd or both will be even. We call such expressions equivalent.