syntax
atom
- truth symbols true and false
- propositional variables (p, q, r)
Literal - atom a or negation
Formula - literal or application of logic connective
semantics
Interpretation - map each propositional variables in formula to one truth value
given interpretation, formula evaluates to truth value
- satifying interpretation or model, Model: evaluates to under ,
- falsifying interpretation or counter-model, Counter-model: evaluates to under ,
inductive definition of semantics
base cases
inductive cases
examples
- T
- since
- since
- by 2 and semantics of
- by 1, 2 and semantics of
- by 1, 3 and semantics of
- by 4, 5 and semantics of
satisfiability and validity
is satisfiable iff there exists an such that is unsatisfiable iff there does not exist an such that is valid iff for all , is contingent if is satisfiable but not valid
- if F is satisfiable is unsatisfiable, NO!
sat, unsat, or valid?
- , sat but not valid
- , unsat
deciding satisfiability and validity
procedure for checking satisfiability can also decide validity. why?
2 simple techniques.
- truth table method: search-based
- cons: impractical, need to list interpretation, doesnt work for logic with inf domains
- semantic argument method: deduction-based
- proof by contradiction, assume F is not valid, there exists falsifying interpretation I such that I F
Proof Rules
Rule 1
Deduce to
Rule 2
Deduce to
Rule 3
Based on Semantics of disjunction
Deduce to
Rule 4
Based on semantics of implication,
From we can deduce
Rule 5
Based on the semantics of iff Similarly
Rule 6
Derive contradiction,