Summary: The domain axioms of WaterWorld in first-order logic.
We summarize the details of how we choose to model WaterWorld boards in first-order logic: exactly what relations we make up, and the formal domain axioms which capture the game's rules.
This will follow almost exactly the same pattern as our WaterWorld model in propositional logic. However, we will take advantage of the additional flexibility provided by first-order logic.
Rather than modeling only the default 6×4 WaterWorld board;, we will be able to model any board representable by our relations. This will allow boards of any size and configuration, with one major constraint — each location can have at most three neighboring pirates.
Our domain is simply the set of all board locations. This set can be arbitrarily large — even infinite!
The board configuration is given by the binary “neighbor”
relation
The next relations correspond directly to the propositions in the propositional logic model.
In addition, to have encode the domain axioms for an arbitrary domain,
we also need an equality relation over our domain of locations.
As is traditional, we will use infix notation for this relation,
for example,
Note that these relations describe the state of the underlying
board — the model — and not our particular view of it.
Our particular view will be reflected in which formulas
we'll accept as premises. So we'll accept
Many of our axioms correspond directly, albeit much more succinctly, with those of the propositional model. In addition, we have axioms that specify that our neighbor and equality relations are self-consistent.
Axioms asserting that the neighbor relation is anti-reflexive and symmetric:
Axioms asserting that “=” truly is an equality relation, i.e., it is reflexive, symmetric, and transitive.
Axioms asserting that the neighbor counts are correct.
Each of these is of the form
“if location
Axioms asserting that the neighbor counts are consistent. While redundant, including axioms like the following can be convenient.
Note that this set of axioms is not quite complete, as explored in an exercise.