(finished, but not polished)
To answer the following questions:
Let us take the example from the first exercise.
โโโโ ab -> ba
โโโโ ba -> ab
โโโโ aa ->
โโโโ b ->
What, intuitively, are some invariants? Which properties do not change when we apply the rules?
Here is a list we came up with in class, can you find more?
If we only have
โโโโ ab -> ba
โโโโ ba -> ab
invariants are
โโโโ length
โโโโ number of a's
โโโโ number of b's
โโโโ number of a's + number of b's
โโโโ number of a's = number of b's
โโโโ number of a's + number of b's = length
โโโโ ...
We can split this list into two different groups. In the first group,
โโโโ length
โโโโ number of a's
โโโโ number of b's
โโโโ number of a's + number of b's
โโโโ ...
in the second group
โโโโ number of a's = number of b's
โโโโ number of a's + number of b's = length
Notice that one can build larger invariants from smaller ones as we have done in
โโโโ number of a's + number of b's
โโโโ number of a's + number of b's = length
Definition: A function
Remark: We call
We have seen that every function
Being an invariant of
How do you prove that there is no path in an ARS that leads from
How do you prove a statement of the form "not
How do you prove that
Such reasoning typically cannot be done by applying a mechanical method (or algorithm) to the available data. Some insight is often needed.
But there is a method that helps.
The method says that the required insight can be formulated as an invariant property
Exercise: Show that if
We have seen that one can combine invariants.
Here we show how to build from invariant properties a complete set of invariants, or also, one complete invariant.
Example: Let
โโโโ ab -> ba
โโโโ ba -> ab
โโโโ aa ->
โโโโ bb ->
There are two invariant properties that come to mind immediately:
a
in b
in These two invariants are complete in the sense that they disinguish all words that are not equivalent. In other words, if two words agree on
The converse also holds by virtue of the the properties being invariant.
Exercise: Show that the invariants being complete implies that
We can also combine the two invariants into one invariant
where
Exercise: Show that
This is a well-known puzzle, don't look up the answer on the internet.
Take a chess board and tiles (or dominoes) that cover exactly two squares of the board.
This puzzle indicates that invariants have a much wider range of applications than our ARS examples. [2] Invariants are one of the most powerful problem solving techniques.
Remark on Problem Solving: Notice how we thought about the chess board puzzle by making it more general. Instead of just looking at one board shape and asking whether it can be tiled, we used at a range of different board shapes. Generalising a problem in such a way is an important problem solving technique.
From a mathematical point of view, an invariant on
As any function,
We sometimes say that
In our examples the equivalence relation is the equivalence closure
And the function
By "covering the board" or "tiling the board" I mean that every square of the board is under exactly one dominoe (tile) and that every dominoe (tile) is over exactly two squares. โฉ๏ธ
In fact, one can formulate the chess puzzle as an ARS where an element of the ARS is a configuration of dominoes on the board and the relation