Knowledge representation with logic

from Wikipedia, the free encyclopedia

Knowledge representation with logic is a type of knowledge representation that is based on formal logic . To build knowledge-based systems, objects in the real world must be represented in a language that a computer understands so that it can deal with this knowledge. So z. B. an expert formalize his knowledge about his subject area and make it usable for many others (so-called expert system). A logical system is a formal language suitable for this.

Knowledge representation with logic

Knowledge based system

If one uses classical logic as a representation of a knowledge-based system , one speaks of a classical-logical system .

Classic-logical system

Such a logical system can be divided into two basic components. The first of the two components of a classical-logical system is the so-called inference relation to model human reasoning . The second component consists of a representation language in which the knowledge base , the core of the knowledge-based system, can be formulated. The task of this representation language is taken over in the classical-logical system by the classical logics. This means that the existing knowledge is encoded in predicate logic formulas . The most important potential of the classical-logical system defined on these two components, however, consists in the inference of knowledge itself. If the inference relation is defined according to the logical representation language, there is the possibility of inferring knowledge , that is, from what is already available in the system Know how to derive new knowledge about the inference relation.

Inference in the classical-logical system

From the division of the inference into deduction, induction and abduction it follows that induction as well as abduction as inference mechanisms are not necessarily correct. Thus, deduction is the only sure method in the end (cf. 3-division of the inference according to Peirce (1839–1914)), because the knowledge derived in this case is always true. Because of this property, logical systems use the deductive instance of inference to model the logical inference operator. A correct sequence of steps of this inference procedure, in the course of which new knowledge B is derived from existing knowledge W, is also referred to as proof.

With the use of such a deductive inference component, however, it becomes impossible to revise conclusions that have once been derived as true. Therefore, in classical-logical systems that are based on purely deductive methods, it is impossible to correctly model non- monotonic reasoning as a fundamental characteristic of human inference.

One possible approach to solving this defect in the inference model of the logical system is the gradual gradation of the correctness of derivations. This gradation can be achieved in two ways. On the one hand, it does this by using probabilities. By quantifying derivatives using percentages, one obtains a probabilistic logic in which gradual gradations are entirely possible. On the other hand, the gradual grading of conclusions in fuzzy logic is made possible by the use of degrees to describe vague predicates.

Building a logical system

Basic components

  • = Signature
  • Int ( ) = set of all interpretations about the signature
  • For ( ) = set of all formulas above the signature
  • = Fulfillment relation

The signature Σ

The set theoretical intuition behind the concept of the signature is a set of names and concepts through which all elements of a knowledge base W to be represented are formalized. More precisely, the elements of a signature are names that are classified according to predicates and functors and differentiated according to their arity.

Propositional signature

In propositional logic, signatures contain zero-character names or identifiers, which are also known as propositional variables.

Example:

Predicate logic signature

Signatures in first level predicate logic contain zero and multi-digit functors and predicates. Thus, a signature can be viewed as a tuple in predicate logic, where git:

= (Func, Pred)

With

  • Func = set of zero or multiple-place functors Zero-place functors are called constants
  • Pred = set of zero or multi-digit predicates

Due to the fact that propositional logic is a true subset of first level predicate logic, the set of all predicate logic signatures also contains the set of all propositional signatures as a true subset. It follows that the propositional variables can be modeled by zero-digit predicates. These can represent atomic formulas, i.e. the atoms of propositional logic.

Example:

The set of interpretations Int (Σ)

The most important property of an interpretation within the logical system is that, together with the fulfillment relation, it establishes the connection between the syntax (in the form of the signature ) of the representation language and the semantics of statements by assigning the names of the signature to objects of a knowledge base W assigns.

Interpretation in propositional logic

When interpreting a propositional signature, each propositional variable from the signature is assigned a truth value. This assignment is made through an interpretation for which the following applies:

The amount Int (called ) the set of all functions of a given signature after . This interpretation of a signature is also called assignment, because this function assigns a truth value to each proposition variable.

Interpretation in predicate logic

In PL1, the structure of an interpretation can be described as follows:

where:

  • = non-empty carrier set with all objects of an interpretation
  • = Functional amount:

  • = Set of relations:

An interpretation I in PL1 maps functors and predicates of the signature to objects of the world to be represented above the universe U according to the following table:

Zero-place functors Elements from U
One or more digit functors Functions
Zero-digit predicates Allocation with truth value
Single-digit predicates Subset of U
Multi-digit predicates Relations R

Example:

Let signature with = p, with arity i and interpretation

given. The following applies:

I (one)
I (plus)
I (same)

The set of formulas For (Σ)

The set of formulas via a signature is an essential part of a logical system. Formulas form the syntactic representation of objects of the world W to be represented, of statements about these objects, as well as of facts with which the world W is described. An essential property of the formulas of a logic system is its well-formulated unit (English well-formed formula ). For ( ) contains all formulas that can be formed from the elements of the signature according to the given grammar for formulas . It is precisely for these formulas that the property of being well formulated applies.

Formulas in propositional logic

If the signature is a purely propositional signature, i. H. the signature only contains propositional variables (= zero-digit predicates), so these themselves already form atomic propositional formulas, the so-called literals. In the case of a propositional signature, the set For ( ) thus includes the signature itself and all more complex forms that can be formed by logical links in accordance with the grammar for formulas.

Example:

Let a signature = {Mon, Tue, Wed, Thu, Fri, Sat, Sun} be given. So z. B. the following formulas can be formed:

Formulas in predicate logic

In addition to the propositional formulas For ( ) listed in the previous section , formulas in the predicate logic formula set For ( ) can also contain variables and quantifications using these variables. If a signature contains the single-digit predicate P (x), the formula set For ( ) contains the predicate itself, as well as existential and universal quantification of the statement P about the individual variable x

Example:

Let a signature example: = {father (x, y), grandfather (x, y)} and let x, y, z be variables, the following formula can be derived from this: Father (x, y) father (y, z) grandfather (x, z)

Furthermore, let a signature = {loves (x, y)} be given, where x, y denote variables for people. The following sentences can be formulated using predicate logic formulas using this signature:

Everybody loves somebody
Somebody loves somebody
Everybody loves everybody
Nobody loves everybody
Somebody loves nobody

The fulfillment relation

Together with the interpretation of a signature, the fulfillment relation represents the connection between the objects of a world W syntactically represented by formulas and their semantics in W. A fulfillment relation indicates when a formula is valid in an interpretation and whether a formula in an interpretation is true or false is. Since this relation is one of the basic components of the logical system, every logical system provides such a satisfaction relation:

Example:

Let be an interpretation, A a literal and let (A) = 1, then .

If you transfer the fulfillment relation to a relation between formulas, you get the logical conclusion:

It is read as "from F logically follows G" or "G logically follows from F".