其他分享
首页 > 其他分享> > 刘顺琦 - CSCI 561 midterm 2 basic knowledge

刘顺琦 - CSCI 561 midterm 2 basic knowledge

作者:互联网

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-WPpj6Rfn-1627034161223)(basic%20knowledge.assets/image-20210328184258627.png)]

The inference algorithm is sound if it derives only sentences that are entailed by KB.

The inference algorithm is complete if it can derive any sentence that is entailed by KB

A literal is a propositional variable (called a positive literal) or its negation (called a negative literal).

ground term: They behave just like propositional symbols in automated reasoning. They can unify with literals containing only universally quantified(al) variables(al* *). They may contain terms that are functions.

(•Ground term: A term that does not contain a variable. A constant symbol•A function applies to some ground term)

Horn Clauses

The definite clause language does not allow a contradiction to be stated. However, a simple expansion of the language can allow proof by contradiction.

A definite clause is a Horn clause that has exactly one positive literal. (~p v q v ~r)

A Horn clause is a clause (a disjunction of literals) with at most one positive unnegated, literal.

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-6meigFoc-1627034161228)(basic%20knowledge.assets/image-20210330180151594.png)]

An integrity constraint is a clause of the form. A Horn clause without a positive literal is called a [goal]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-XnT2WLxK-1627034161232)(basic%20knowledge.assets/image-20210328205007337.png)]

BC: DFS L-R Incomplete due to infinite loops(prolog), sound in FOL

**FC:sound in FOL sound and complete in Definite clauses **

In Propositional LOGIC unification algo need one or more substitution that causes two literals like P and ~P to match so that they cancel out each other. Every FOL KB can be propositionalized . Propositional logic does not scale to the environments of unbounded size

Propositional logical is monotonic. Propositional logic has two quantifiers: for universal and exists.

PL<FOL(In propositional logic you are allowed to use the usual propositional connectives (and, or, …). In first order logic you are allowed to quantify (forall, exist) over variables, which makes it strictly more expressive.)

Every first-order logic knowledge base can be translated into a propositional one(WRONG IN COMPLEX SI)

One predicate that takes one argument. In such cases, we can automatically convert our first-order logic knowledge base to an equivalent propositional logic knowledgebase. For each possible combination of arguments of each predicate, we must define a symbol in the propositional logic version.

α |= β α entails sentence β if and only if β is true in all worlds where α is true(KB ⊨ α, if and only if KB ⇒ α)

The inference using Modus Ponens is incomplete (MP cannot use on ~HF)

GMP

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-bisR9Ov0-1627034161236)(basic%20knowledge.assets/image-20210330154003387.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-1qAUkyik-1627034161240)(basic%20knowledge.assets/image-20210330154914646.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-HqistiWA-1627034161246)(basic%20knowledge.assets/image-20210330154958222.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-n2WClc4u-1627034161248)(basic%20knowledge.assets/image-20210330155241818.png)]

PDDL(planing domain definite language) avoids the frame problem by using add and delete lists.

Using clever indexing, can reduce number of calls to unification

∀x Libra(x) ⇒ BornIn( x ,September) ∨ BornIn( x ,October)
B.(a小范围,b大范围)******

where [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-DJhzLj91-1627034161250)(basic%20knowledge.assets/image-20210329163954710-1617091290361.png)]is a metalogical symbol representing “can be replaced in a proof with”.

Satisfiable sentence: there exists a truth value assignment for the variables that makes the sentence true (truth value = t).

Try all the possible assignments to see if one works.

Valid sentence: all truth value assignments for the variables make the sentence true.

• Try all possible assignments and check that they all work.

De Morgan’s Laws:(negation in)

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-4JPdleUO-1627034161252)(basic%20knowledge.assets/image-20210329170137953-1617091290362.png)]

Distributed Law

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-mcP8pICk-1627034161256)(basic%20knowledge.assets/image-20210329170337734-1617091290362.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-4iMvrKAT-1627034161258)(basic%20knowledge.assets/image-20210330104253676-1617091290362.png)]

Logical reasoning systems

•Use hash table to avoid looping over entire KB for each TELL or FETCH

Predicates (relations/functions).

To form the inverse of the conditional statement, take the negation of both the hypothesis and the conclusion. The inverse of “If it rains, then they cancel school” is “If it does not rain, then they do not cancel school.”

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-kebOcIT2-1627034161262)(basic%20knowledge.assets/image-20210330171111309.png)]

If the statement is true, then the contrapositive is also logically true. If the converse is true, then the inverse is also logically true.

The goal of the unification procedure is to look for at least one substitution that causes two literals to match.

an atomic sentence is a type of declarative sentence which is either true or false.

complex sentences cannot be created by using a single propositional symbol

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-X3IrnvGm-1627034161264)(basic%20knowledge.assets/image-20210330181543237.png)]

Skolemization can Introduce new functions and Remove all existential quantifiers

commutative operation: 可交换的

universal instantiation/elimination

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-imsEaewZ-1627034161266)(basic%20knowledge.assets/image-20210330214620106.png)]

Resolution is a sound and complete inference procedure for both Propositional Logic and First-Order Logic that amounts to proof by contradiction.

truth table checking requires exponential time and the decidability of a logic does not necessarily impact its tractability.

vice versa 反过来也一样

image-20210330221510605

sentence is sentence =》

image-20210330231232491

entailment

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-qeeRZdgO-1627034161268)(basic%20knowledge.assets/image-20210331001858639.png)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-9XyswIpp-1627034161271)(basic%20knowledge.assets/image-20210331002018452.png)]

计算器要算fuzzy logic,center of mass(可能要算质心)。

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-pJoUFYmJ-1627034161273)(basic%20knowledge.assets/image-20210331003601167.png)]

CNF 没有quantify

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-9NWysjU0-1627034161275)(basic%20knowledge.assets/image-20210331005129717.png)]

In plain first-order logic without equality, every formula is monotonic(KB的无关sentence增加,不会导致之前的entailed的结果变化)FOL不一定是

To be Reflexive you should have (0,0) (1,1) (2,2) (3,3)

To be symmetric if you have (0,1), then you should have (1,0)

To be transitive if you have (1,2) (2,4), then you should have (1,4)

ordered plans are created by a search through a space of plans. (rather than the state space)

referential transparency is generally defined as the fact that an expression, in a program, may be replaced by its value (or anything having the same value) without changing the result of the program.

Predicate symbol must be same, atoms or expression with different predicate symbol can never be unified

Following are some basic conditions for unification:

unified.

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Lv8XLnqN-1627034161279)(basic%20knowledge.assets/image-20210331191154271.png)]

标签:png,knowledge,img,midterm,561,image,basic%,防盗链,图片
来源: https://blog.csdn.net/qq_35651140/article/details/119041414