2.1 Logical Consequence

| A | B | ||
|---|---|---|---|
| 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| Statement 1 is proved |
| A | B | ||
|---|---|---|---|
| 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 |
| Statement 2 is disproved |
| A | B | ||
|---|---|---|---|
| 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 |
| Statement 3 is proved |
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 0 | 1 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 | 1 |
| 0 | 1 | 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| Statement 4 is proved |
2.2 Satisfiability and Tautologies

- satisfiable and not a tautology,
- example satisfiable:
- example not a tautology:
- satisfiable and tautology: proved by the table in exercise 2.1.4
2.3 Simplifying a Formula
Proof:
- Definition of
- associativity of
- absorption
- de Morgan’s rule
- double negation
- commutativity of
- second distributive law is proved
2.4 Knights and Knaves
Does the left road lead to the village if and only if you are a knight?
| A | Answer | ||
|---|---|---|---|
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 |
2.5 Quantifiers and Predicates

- false
- true
- ???possibly true

- For all integer x there is a integer reciprocal of x (false)
- There exists an x such that x does not form a product of 1 with any y, and there exists a positive y (true)