You are here

Inference

26 July, 2019 - 12:03
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/383d4b87-2d7b-454e-99fe-2eaa43eae8ff@20.20

Truth tables and equivalences are useful and powerful tools, but they do not correspond to how we usually reason about things. What we will do now is look at more familiar reasoning and how to formalize that. For example, with Boolean algebra it is awkward to prove that ab implies a. For that, it is necessary to reword the problem in terms of equivalences, as abatrue. Our next tool provides a more straightforward way to reason about implications.

Example 2.11

Given the following piece of a WaterWorld board, how would you conclude that G is unsafe?
 

media/image13.png
Figure 2.4 A glimpse of a WaterWorld board  

Since H has 2, at least two of H's three neighbors must be unsafe. But, since we know that one of these, J, isn't unsafe, then the two others, including G, must both be unsafe. Let's write this out more explicitly:

1

H - has - 2would imply one of the following is true:

(P - unsafe and G - unsafe), or

(J - unsafe and P - unsafe), or

(G - unsafe and J - unsafe).

WaterWorld domain axiom, i.e., definition of H - has - 2

2

H - has - 2 is true.

Premise (by inspection of this particular board)

3

One of the following is true:

(P - unsafe and G - unsafe), or

(J - unsafe and P - unsafe), or

(G - unsafe and J - unsafe).

lines 1,2

4

not J - unsafe

Premise (by inspection)

5

(P - unsafe and G - unsafe)

lines 3,4

6

G - unsafe

line 5

Whew! A lot of small steps are involved in even this small deduction. It's apparent we'd want to automate this as much as possible! Let's look at some other short examples, which we'll formalize in a moment.

Exercise 2.4.1.1

How do you know that A − has − 2 proves B − unsafe ?

Exercise 2.4.1.2

Similarly, how do you reason that A − has − 1 and G − safe prove B − unsafe?