Rodin HandbookThis work is sponsored by the Deploy Project This work is licensed under a Creative Commons Attribution 3.0 Unported License |
2.6.2 Populate the ContextIn this section we model the Agatha puzzle step by step. 2.6.2.1 Modelling the PersonsWe have three persons in the Agatha puzzle: Agatha herself, the butler and Charles. We model the three persons as constants (one constant for each person) in the corresponding CONSTANTS section:
These constants or persons respectively are part of a set:
Now, the constants itself are not very useful since they have no type (In addition, the constants will be highlighted in red, indicating a problem). The semantics of the sets (3.3.4) and constants (3.2.2.3) are specified in the axioms (3.2.2.3). As already mentioned above the persons are part of the set persons. We model this by creating a partition (3.3.4.7) in the AXIOMS section:
2.6.2.2 Modelling the Relations “Persons who hate each other” and “Who’s how rich”We create two more constants hates and richer to model the relations “Persons who hate each other” and “Who’s how rich”. The relations are abstract, which means that they say nothing about the concrete persons (Agatha, the butler and Charles). We define the concrete relationships between the persons later in this section. The first constant hates is an arbitrary relation (3.3.5) between persons:
The second constant richer is also a relation between persons:
However, we know that the relation is irreflexive (no person is richer than itself):
In addition, we know that the relation is transitive:
Finally, the relation is trichotomous (one person is always richer than the other or vice versa, never both directions):
2.6.2.3 Modelling the “Crime”Since the objective of the puzzle is to find the killer, we have to create a new constant killer which is an element of persons:
In addition, the puzzle have some more relationships between the different persons which are all modelled as axioms. We know that the killer hates his victim and is no richer than his victim:
Charles hates no one that Agatha hates and Agatha hates everybody except the butler:
The butler hates everyone not richer than aunt Agatha and the butler hates everyone whom Agatha hates. However, no one hates everyone:
Finally, we have to model the solution:
We mark the axiom solution as a theorem (2.7.1) by clicking on the not theorem button1 as shown in figure 2.12.
Figure 2.12: Mark an Axiom as Theorem
The introduced theorem still has to be proven. Thus Rodin generates a proof obligation called solution/THM. But at this point of the tutorial we do not want to go into the details of proof yet.
This concludes the tutorial. The following section shows the complete Context. Footnotes
|