1.1
Updates:

Some basic logic

Elliott

Here is our initial world: So, we know some principles that are true in our world. But, we still cannot say anything very specific. We do not know, for example, if we are happy or unhappy, or whether it is raining, or whether we are wet.

We can add a fact to our world, as follows:

So, now we know something specific. It is raining. But, using logic we also know some additional facts about the world too: Unfortunately, we also know some other things, so we have to be careful::
Another way to consider the statement "If it is Wednesday, then it is raining" is as a restatement, "Either (a) it is not Wednesday, or (b) it is raining."

A short form of this is: Not(Wednesday) OR Raining.

Which means:

Why? Well the following are all true statements:
  1. We do not know anything about the relationship between days of the week other than Wednesday, and whether it is raining. We have no information at all about those days.
  2. We have two statements Not(Wednesday), and Raining. AT LEAST ONE OF THEM must be TRUE
  3. Thus it is not allowed that both [it is Wednesday] is TRUE, and Not(raining) is TRUE, because then both of our two statements would be FALSE and this is not allowed. In other words, if it is true that it is Wednesday, then, because Not(raining) is not allowed at the same time, then "raining" must be true. So Wednesday ==> rain, is the same as Not(Wednesday) OR rain.
  4. If, on the other hand, Not(Wednesday) is TRUE, then one of our two statements is TRUE, and the other one about rain can be TRUE or FALSE according to our rules. In other words, if the day of the week is something other than Wednesday, then it might be raining, or it might not be raining. We have nothing to go on.
  5. [A OR B] in this king of logic is inclusive which means that A is TRUE or B is TRUE, or both of them are TRUE.
We can now extend our logic by adding variables, using what is called First-order logic:

For this we use the quantifiers ForAall, and ThereExists. We can always write statements using either ForAll, or ThereExists, by restating one in terms of the other.


We can also use a techique called resolution to learn new things about our world:
  1. A or B—fact
  2. (not B) or C—fact
  3. A or C [by resolution logic, from 1 and 2]
If:

A is A killed sam.
B is B loved Sam.
C is C killed Sam.


Now consider:

1. It is true that A killed Sam or B loved Sam.
2. It is true that either (B did not love Sam) or (C killed Sam).



Thus, we still don't know who killed Sam, but it was either A or C or both A and C did it together. Think about it: B either loved Sam, or she didn't. If she didn't love Sam, then A killed him because of (1). On the other hand if she did love Sam then from (2) (not B) is FALSE and C must be TRUE with no judgement about A.