Knowledge Engineering

Knowledge engineering is the process of figuring out how to represent propositions and logic in AI. Humans reason based on existing knowledge and draw conclusions, and we want to be able to recreate that in AI.

This is directly linked to what I learned in MATH135.

Knowledge-Based Agents These are agents that reason by operating on internal representations of knowledge.

Propositional Logic

Propositional logic is based on propositions, statements about the world that can be either true or false.

Sentence A sentence is an assertion about the world in a knowledge representation language. A sentence is how AI stores knowledge and uses it to infer new information.

Knowledge Base (KB) The knowledge base is a set of sentences known by a knowledge-based agent. Given in the form of propositional logic sentences that can be used to make additional inferences about the world.

Entailment (⊨) If α ⊨ β (α entails β), then in any world where α is true, β is true, too.

For example, if α: “It is a Tuesday in January” and β: “It is a Tuesday,” then we know that α ⊨ β. If it is true that it it a Tuesday in January, we also know that it is a Tuesday.

title: Entailment vs Implication
They're different. **Implication** is a logical connective between two propositions, while **entailment** is a relation that means that if all the information in α is true, then all the information in β is true.

Inference

Inference is the process of deriving new sentences from old ones.

There are several models we can use. Model Checking Algorithm

Inference Rules

These are basic rules, they include rules about

Knowledge and Search Problems

Inference can be viewed as a search problem with the following properties:

  • Initial state: starting knowledge base
  • Actions: inference rules
  • Transition model: new knowledge base after inference
  • Goal test: checking whether the statement that we are trying to prove is in the KB
  • Path cost function: the number of steps in the proof

Resolution

Resolution is a powerful inference rule that states that if one of two atomic propositions in an Or proposition is false, the other has to be true. For example, given the proposition “Ron is in the Great Hall” Or “Hermione is in the library”, in addition to the proposition “Ron is not in the Great Hall,” we can conclude that “Hermione is in the library.” More formally, we can define resolution the following way: