Logic 3 Flashcards
1
Q
Literal (1)
A
- Propositional variable or its negation
2
Q
DNF (2)
A
- Formula of the type ψ1 ∨ ψ2
2. ψ is made by conjunctions ∧
3
Q
CNF (2)
A
- Formula of the type ψ1 ∧ ψ2
2. ψ is made by disjunctions ∨
4
Q
Adequate system (1)
A
- Can express al truth tables.
5
Q
Sheffer stroke equivalences (3)
A
- ¬ψ = ψ | ψ
- ψ ∨ φ = ¬ψ | ¬φ = (ψ|ψ) | (φ|φ)
- ψ ∧ φ = (ψ|φ) | (φ|ψ)
6
Q
CNF Algorithm (3)
A
- IMPL-FREE: Eliminate all implications
- NNF: Move all negations to literals
- DISTR: Apply distributivity to re-arrange in CNF form
7
Q
DPLL (1)
A
- Used to check satisfiability of CNF
8
Q
DPLL Algorithm (3)
A
- If there are unit clauses (only one element in brackets) assign value to variable (T if p or F if ¬p)
- Assign values to pure propositional variables (T if only p appears or F if only ¬p appears)
- Choose a value for a variable and test for both evaluations of T and F.
9
Q
Extracting DNF from truth table (3)
A
- Select rows which evaluate to TRUE
- For each row which is TRUE compose a formula of conjunctions which evaluates to true
- Combine all conjunction formulas through disjunctions.
10
Q
Extracting CNF from truth table (3)
A
- Select all rows which evaluate to FALSE
- For each row compose a formula through disjunctions which makes the valuation of that row false.
- Combine formulas through conjunctions.