仓库源文站点原文


layout: post title: "KBAI 笔记 12 Logic" date: "2019-01-01 08:36:51" categories: 计算机科学 excerpt: "Preview Logic is a language allows to make association of the world in a..."

auth: conge

Preview

Logic

Why do we need formal logic?

Logic

Knowledge base: sentence in the language of logic; complete and correct Rules of Inference engine:

Inferences About Birds

Put the sentence classifying birds in to language of logic

Exercise: Inferences About Foos

The sentences are language of logic

Predicates

":" means indicates. If Feathers(animal): Then Bird(animal) reads if animal has feathers, then animal is bird.

Conjunctions and Disjunctions

And

Or

Not

Implies

Implies

Notation Equivalency

Exercise: Practicing Formal Logic

Truth Tables

Exercise: Truth Tables I

Exercise: Truth Tables II (more complicated sentence)

In theory, we can calculate True or False values for very complicated sentences.

Exercise: Commutative Property

A & B is the same as B & A

Exercise: Distributive Property

Exercise: Associative Property

Exercise: De Morgan's Law

Truth of Implications

This is hard to understand: need to go back to the examples But remember A=> B is actually !A | B.

Implication Elimination

Rules of Inference

Prove Harry is a bird

Although the rules exist for a long times, it's hard to use these rules in AI agent because the computation is not feasible.

Universal Quantifiers and Existential Quantifier

Universal Quantifier

Existential Quantifier

A Simple Proof

resolution theorem proving

  1. convert every sentence into a conjunctive normal form.
    not finished for this part. did not understand
    

exercise

Proof I

Proof II

Proof III

Proof IV

Proof V

Proof VI

Wrap Up

The Cognitive Connection