1. Getting started with propositional logic
Getting started with prop. logic
Covered in FC1:
Link to originalWell-formed formulae
The set of all well-formed formulae is inductively defined as: ?
Link to original
- All propositional symbols are atomic formulae.
- If is a formula, so is .
- If and are formulae, then do is any combination of:
- Nothing else is a formula.
2. Reading and evaluating formulae
Precendence of propositional symbols:
Link to originalInterpretation
An interpretation or valuation is a function that assigns a truth-value to every propositional symbol $P$, hence $v(P) \in \{ 0, 1 \}$.
- If , then is true under the interpretation .
- If , then is false under the interpretation . An interpretation is extended to all well-formed formula using truth-tables.
As oppossed to FC1, we include an extra column for for interpretation. For example, take , we generate the following truth table:
Link to original
interpretation F F F F T F T F F T T T
3. Types of formula and logical equivalence
Types of formula
Logical equivalence
Covered in FC1, Logically equivalent.
Logic Puzzle
Island of TuFa has two tribes, the Tu’s who always tell the truth, and the Fa’s who always lie.
A traveller encountered three resident of TuFa, , , and , and each made a statement:
- says ” and tell the truth tells the truth”
- says “If and tell the truth, then it is not the case that if and tell the truth, then tells the truth.”
- says ” is lying or is telling the truth.”
Determine to which tribe each of , , and belongs.
Let , and be whether , and are telling the truth, respectively.
Formalising these statements:
- :
- :
- :
We know that:
We can consider all of these in a truth table:
interpretation 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 1 0 0 1 1 0 0 1 1 0 1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 1 0 1 1 0 1 1 1 1 1 1 1 1 0 0 0 is the only interpretation that makes the three statements, , , and true. Hence and must belong to Tu, and to Fa.
Link to original