Review Logic Terminology
Reviewβ
Propositional logicβ
does not have predicates, just formulas of singular propositional symbols
ex: Β¬π β¨ π β r
First-order logicβ
formulas use variables, constants, predicates, functions, β, β
Variableβ
generally end of alphabet: w, x, y, z
Constantβ
generally start of alphabet: a, b, c, d
Predicateβ
- a property or relation
- P(a) would mean a constant a has property P
- P(x) would mean the same for indeterminate variable
Functionβ
- constants are a subset of these with no parameters
- generally f, g, h,...
- maps within domain of variables f(x) -> y
Namesβ
Disjunction: V
Conjunction: β§
Negation: Β¬
Conjunctive Normal Form (CNF)β
a set of clauses changed to a form where it becomes a conjunction of clauses where each clause is a disjunction of literals
Β¬ π΅ β¨ πΆ becomes (Β¬π΅) β§ (Β¬πΆ)
(A β§ π΅) β¨ πΆ becomes (π΄ β¨ πΆ) β§ (π΅ β¨ πΆ)
Unificationβ
attempt to find the most general unifier (mgu)
mgu is a valid mapping of variable/constant/function mapping to make two terms the same
Ex. if I have f(a) and f(x)
β’ mgu mapping x->a makes f(a)=f(a)
Resolutionβ
Chα»©ng minh phαΊ£n chα»©ng
- Negate the conclusion trying to be proven(!)
- Then turn this into CNF
- Attempt to derive empty clause
- If found this indicates the set of clauses was not satisfiable
- This then means that the original conclusion was supported by the clauses