Satisfaction Problems, Constraint Propagation, Backtracking Search for CSPs, Local Search for CSPs, The Structure of Problems.
• Propositional Logic: Knowledge-Based Agents, The Wumpus
World, Logic, Propositional Logic, Propositional Theorem Proving: Inference and proofs, Proof by resolution, Horn clauses and definite clauses, Forward and backward chaining, Effective Propositional Model Checking, Agents Based on Propositional Logic.
Ch. Kranthi Rekha, Asst. Prof, BIET, ECE 2
10/7/2020 Propositional logic • Propositional logic is a simple language consisting of proposition symbols and logical connectives. It can handle propositions that are known true, known false, or completely unknown. • Syntax • The syntax defines the allowable sentences. • Atomic sentences: consist of a single proposition symbol, each such symbol stands for a proposition that can be true or false. (e.g. W1,3 stand for the proposition that the wumpus is in [1, 3].) • Complex sentences: constructed from simpler sentences, using parentheses and logical connectives.
10/7/2020 Ch. Kranthi Rekha, Asst. Prof, BIET, ECE 4 Semantics • The semantics defines the rules for determining the truth of a sentence with respect to a particular model. • The semantics for propositional logic must specify how to compute the truth value of any sentence, given a model. • For atomic sentences: The truth value of every other proposition symbol must be specified directly in the model.
A simple inference procedure • To decide whether KB ⊨ α for some sentence α: • Algorithm 1: Model-checking approach • Enumerate the models (assignments of true or false to every relevant proposition symbol), check that α is true in every model in which KB is true.
10/7/2020 Ch. Kranthi Rekha, Asst. Prof, BIET, ECE 8 Propositional theorem proving • We can determine entailment by model checking (enumerating models, introduced above) or theorem proving. • Theorem proving: Applying rules of inference directly to the sentences in our knowledge base to construct a proof of the desired sentence without consulting models. • Inference rules are patterns of sound inference that can be used to find proofs. The resolution rule yields a complete inference algorithm for knowledge bases that are expressed in conjunctive normal form. Forward chaining and backward chaining are very natural reasoning algorithms for knowledge bases in Horn form. • Logical equivalence: • Two sentences α and β are logically equivalent if they are true in the same set of models. (write as α ≡ β). • Also: α ≡ β if and only if α ⊨ β and β ⊨ α.
10/7/2020 Ch. Kranthi Rekha, Asst. Prof, BIET, ECE 10 • Validity: A sentence is valid if it is true in all models. • Valid sentences are also known as tautologies—they are necessarily true. Every valid sentence is logically equivalent to True. • The deduction theorem: For any sentence αand β, α ⊨ β if and only if the sentence (α ⇒ β) is valid. • Satisfiability: A sentence is satisfiable if it is true in, or satisfied by, some model. Satisfiability can be checked by enumerating the possible models until one is found that satisfies the sentence. • The SAT problem: The problem of determining the satisfiability of sentences in propositional logic. • Validity and satisfiability are connected: • α is valid iff ¬α is unsatisfiable; • α is satisfiable iff ¬α is not valid; • α ⊨ β if and only if the sentence (α∧¬β) is unsatisfiable. • Proving β from α by checking the unsatisfiability of (α∧¬β) corresponds to proof by refutation / proof by contradiction.
Proof by resolution • Resolution: An inference rule that yields a complete inference algorithm when coupled with any complete search algorithm. • Clause: A disjunction of literals. (e.g. A∨B). A single literal can be viewed as a unit clause (a disjunction of one literal ).