Artificial Intelligence: A Modern Method Study Notes (Chapter 7)-Logic Agent

Knowledge-based Agent

The core component of the knowledge-based agent is the knowledge base (KB) . The knowledge base is a collection of sentences. These sentences are expressed in knowledge representation language and express certain assertions about the world.
When certain sentences are directly given rather than inferred They are called axioms, and those derived from axioms are called theorems.

Two basic operations of the knowledge base: Tell (add new sentences to the knowledge base) and Ask (query what is currently known)
Insert picture description here
Insert picture description here

logic

Insert picture description here
Insert picture description here
Model checking: by enumerating all models that may be true to verify that α is true when KB is true
Insert picture description here
Insert picture description here
Insert picture description here

Propositional logic

grammar

The grammar of propositional logic defines legal sentences. Atomic sentences are composed of a single proposition. Each proposition represents a proposition that is true or false. Generally, capital letters are used to represent the proposition, such as: P, Q, R
have two propositions The words have fixed meanings: TRUE is the proposition of eternal truth, FALSE is the proposition of eternal false

Compound sentences are composed of simple sentences with brackets and logical connectives
Insert picture description here

Semantics

Insert picture description here
Insert picture description here

model

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Implies

Insert picture description here

Logical equivalence

Insert picture description here
Insert picture description here
Insert picture description here

Proof method

  1. Model checking
  2. Logical equivalence
  3. Inference rules

Insert picture description here
A sentence is unsatisfiable, that is, this sentence is equivalent to false: (If it is proved that this sentence is unsatisfiable, it is proved that this sentence is false)
A sentence is satisfiable, that is, this sentence is equivalent to true

Model checking

Insert picture description here
To put it plainly, model checking is an exhaustive method. List the truth table of each variable, and see the true and false of this sentence.

Insert picture description here
Insert picture description here

Logical equivalence

Insert picture description here
Insert picture description here

Inference rules

Use old sentences to introduce new sentences
Insert picture description here
Insert picture description here

Formalized as a search problem

Insert picture description here

Clause and CNF

Clause: All variables are all disjunctive relations
CNF: main conjunctive paradigm
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Resolution principle

Insert picture description here

Instance

Insert picture description here
Insert picture description here
Insert picture description here

HORN clauses and finite clauses

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44972129/article/details/109194569