740 likes | 887 Views
Automated reasoning with propositional and predicate logics. Spring 2007, Juris V īksna. Propositional logic. Propositional logic. A formal definition of propositional logic formulas:. [Adapted from M.Davis, E.Weyukerl]. Propositional logic - assignments. [Adapted from M.Davis, E.Weyukerl].
E N D
Automated reasoning with propositional and predicate logics Spring 2007,Juris Vīksna
Propositional logic A formal definition of propositional logic formulas: [Adapted from M.Davis, E.Weyukerl]
Propositional logic - assignments [Adapted from M.Davis, E.Weyukerl]
Propositional logic How useful is propositional logic?
Satisfiability and tautologies In Latvian: satisfiable = nepretrunīga unsatisfiable = pretrunīga [Adapted from M.Davis, E.Weyukerl]
Some useful equivalences [Adapted from M.Davis, E.Weyukerl]
Logical consequence [Adapted from M.Davis, E.Weyukerl]
How it looks for CNFs/DNFs? [Adapted from M.Davis, E.Weyukerl]
Logical consequence [Adapted from M.Davis, E.Weyukerl] Deciding (1) is much simpler for DNFs Deciding (2) is much simpler for CNFs Unfortunately: When applying case (1) it is easy to obtain CNF, not DNF... When applying case (2) it is easy to obtain DNF, not CNF... (This also means that CNFDNF conversion in general requires an exponential time) Largely by following the tradition we will use case (2)
Conversion of formula to CNF (III) Use distributive laws to obtain CNF [Adapted from M.Davis, E.Weyukerl]
CNF - some more simplifications [Adapted from M.Davis, E.Weyukerl]
Thus, we currently have: [Adapted from M.Davis, E.Weyukerl]
Some useful notation [Adapted from M.Davis, E.Weyukerl]
Empty clauses and empty formulas [Adapted from M.Davis, E.Weyukerl]
Yet more of notation [Adapted from M.Davis, E.Weyukerl]
Davis-Putnam rules I [Adapted from M.Davis, E.Weyukerl]
Davis-Putnam rules I [Adapted from M.Davis, E.Weyukerl]
Davis-Putnam rules I [Adapted from M.Davis, E.Weyukerl]
Davis-Putnam rules II and III [Adapted from M.Davis, E.Weyukerl]
Davis-Putnam procedure Use rules II, III and I (in this order of preference) [Adapted from M.Davis, E.Weyukerl]
Complexity of Davis-Putnam procedure Each step decreases the number of literals by 1 (thus for n literals there will be up to n steps) Rules II and III do not increase the number of formulas to be checked Unfortunately, when only rule I applies, the number of formulas doubles In worst case the complexity might be (2n)
Resolvent [Adapted from M.Davis, E.Weyukerl]
Notation again... [Adapted from M.Davis, E.Weyukerl]
Resolution method [Adapted from M.Davis, E.Weyukerl]
Resolution method [Adapted from M.Davis, E.Weyukerl]
Ground Resolution Theorem [Adapted from M.Davis, E.Weyukerl]
Ground Resolution Theorem [Adapted from M.Davis, E.Weyukerl]
Finite satisfiability This will be useful when we move up to predicate logic... [Adapted from M.Davis, E.Weyukerl]
Enumeration principle [Adapted from M.Davis, E.Weyukerl]
Finite satisfiability - some lemmas [Adapted from M.Davis, E.Weyukerl]
Finite satisfiability - some lemmas [Adapted from M.Davis, E.Weyukerl]
Finite satisfiability - some lemmas [Adapted from M.Davis, E.Weyukerl]
Compactness theorem [Adapted from M.Davis, E.Weyukerl]
Predicate logic [Adapted from M.Davis, E.Weyukerl] Lets start with a formal definition:
Predicate logic - an alphabet [Adapted from M.Davis, E.Weyukerl]
Predicate logic - terms [Adapted from M.Davis, E.Weyukerl]
Predicate logic - formulas [Adapted from M.Davis, E.Weyukerl]
Free and bound occurrences [Adapted from M.Davis, E.Weyukerl]
Predicate logic - interpretations [Adapted from M.Davis, E.Weyukerl]
Interpretations - some notation [Adapted from M.Davis, E.Weyukerl]
Interpretations [Adapted from M.Davis, E.Weyukerl]
Interpretations [Adapted from M.Davis, E.Weyukerl]
Interpretations [Adapted from M.Davis, E.Weyukerl]
Interpretations [Adapted from M.Davis, E.Weyukerl]
Interpretations [Adapted from M.Davis, E.Weyukerl]