MENTAL
 Main Menu
 Applications
 Logic
 Non-Monotonic Logic


Non-Monotonic Logic
 NON-MONOTONIC
LOGIC

"While much human reasoning corresponds to traditional logic, a significant portion of common sense reasoning does not appear to be monotonic."(John McCarthy)

"'Logical' reasoning is not flexible enough to serve as a foundation of thought" (Marvin Minsky).



Concept

Classical logic is based on the following. Suppose we have a series of sentences, from which certain conclusions are inferred. If we add new sentences, there will be new conclusions, but the original conclusions are not altered, they are preserved in the extended set of conclusions. This property is called "monotonicity".

Non-monotonic logic is a type of logic aimed at managing dynamic inferences (or tentative conclusions) in the light of the (incomplete) information available at any given time. Conclusions are updated (removed, added or modified) with the appearance of new information.

Normally, adding new information reduces the number of conclusions. This also happens when a certain entity is described in a general way (e.g., "E is an animal") and then new characteristics are added (e.g., "E is a mammal", "E is a flyer", etc.), which progressively narrow its scope.


Monotonic logic vs. non-monotonic logic

The distinguishing characteristics are:
Retractability vs. non-monoticity

Reasoning in which conclusions are drawn from incomplete information and assumptions, conclusions that can later be reversed when more information becomes available, are called "revocable," "refutable," or "retractable" reasoning (defeasible reasoning). Revokeable reasoning is common in a large number of fields such as: scientific research, design of devices (electronic or mechanical), diagnosis of situations or problems, etc.

Retractability and non-monotonicity are not synonyms. All non-monotonic reasoning is retractable. But the converse is not true: retractability does not imply non-monoticity because retractability may have been caused by changes in context.


The problems of non-monotonic logic

The problems that arise in non-monotonic logic systems are:
Applications of Non-Monotonic Logic

Artificial Intelligence (AI)

Logic plays an essential role in AI. Classical logic has played an important role in computer science, but it is useless for AI. Normal human reasoning is non-monotonic. Therefore, AI systems must be able to reason non-monotonically. We know that the real world is a dynamic world, where things change. Therefore, knowledge is non-monotonic, i.e., each new knowledge comes to modify and even invalidate previous knowledge.

An AI system must have intelligent behavior: reasoning and inferring plausible conclusions, planning, making decisions in different types of situations, performing actions, etc., all based on the information it possesses at any given moment. To do this, a computer program capable of acting intelligently must have a model and a general representation of the world. "A computer program capable of acting intelligently in the world must have a general representation of the world in terms of which to interpret the inputs" [McCarthy & Hayes, 1969].


Common sense reasoning

Non-monotonic reasoning is closely related to the topic of formalizing commonsense reasoning, a key topic in AI. Common sense reasoning is human reasoning of a qualitative type accepted by a community.

John McCarthy was the first to emphasize the need and importance of formalizing common sense before there was any theory about it. This field of AI was inaugurated in 1958 by McCarthy in his paper "Programs with common sense" [McCarthy, 1958].


The frame problem

The frame problem is a problem posed by John McCarthy and Patrick Hayes in their 1969 paper "Some Philosophical Problems from the Standpoint of Artificial Intelligence" [McCarthy & Hayes, 1969]. The point is that an artificial agent must know what changes and what does not change as a result of an action it can execute. The things that do not change as a result of an agent action will normally be very numerous and it is difficult to have them all in the system database because they are, in general, not homogeneous. According to McCarthty, the context is too large an entity to be fully specified.

The frame problem involves predictive reasoning, a type of reasoning that is essential for planning and formalizing intelligent behavior: starting from the current situation, knowing the immediately subsequent states for each possible action to be taken.

A simpler and more efficient solution is to reason non-monotonically using the default rule that things do not change except when they are known or explicitly specified to be altered.


Default reasoning

In default reasoning (default reasoning) default properties are assumed as long as not otherwise specified, and conclusions are inferred. It is also called "generic reasoning" because it assumes generic or typical properties that represent "normality".

It is based on two principles:
  1. The principle of generality. A distinction must be made between universal and generic statements:

    • A universal statement is valid for all the elements considered. For example, "All men are mortal."

    • A generic statement is valid for all typical or normal elements considered, i.e., those that have no special characteristics. For example, "Normal birds fly."

  2. The principle of specificity. Specific information takes precedence over generic information in case of conflict.
Example:
Abductive reasoning

Abductive reasoning is a type of reversible reasoning in which, starting from a fact, the most probable hypothesis, the simplest possible and the one that best explains the fact, is formulated. The hypothesis is introduced as a new rule that connects the hypothesis with the fact.

For example, if the grass is wet, then it most likely rained. This conclusion can be retracted if you subsequently observe that the roof is dry or if you know that a sprinkler was running.

Hypothetical statements are essential in the formulation of scientific theories and the scientific method, pioneered by Galileo and Francis Bacon. For Popper, hypotheses and scientific theories are conjectures that have to be refutable.


Non-monotonic inheritance

Non-monotonic inheritance is the problem of constructing hierarchies when exceptions exist [Horty, 1994]. Two principles apply:
  1. The inheritance principle.
    When we have knowledge organized by taxonomies, a class is assumed to inherit the properties of higher classes, as long as no exceptions are specified.

  2. The principle of specificity.
    Specific information takes precedence over legacy information in case of conflict. This principle applies when there are exceptions to the inheritance principle. There may be higher order exceptions (exceptions of exceptions).
For example:
Formalisms of Non-Monotonic Logic

Default logic (default logic)

Default logic [Reiter, 1980] uses implications that supplement first-order predicate logic with rules of the form being p the known, q a justification and r is the consequent. Its meaning is: "If p is known and is consistent with the assumption of q, then it implies r". In the simple cases, q and r are equal.

The following notation is commonly used for different types of inference: For example: The principle of specificity applies: the specific prevails over the generic. For example:
Constituency

Developed by John McCarthy [1980], it is a formalization based on the use of general sentences that cover most of the cases, to later delimit (circumscribe) by means of other sentences to specify exceptions or particular cases.

Circumscription is based on the following principles: McCarthy used circumscription to try to formalize common sense and the frame problem. He also used it to formalize the principle of inertia: things do not change unless otherwise stated.

McCarthy formalized circumscription using second-order logic to minimize the extent of abnormal or infrequent predicates. This logic allows predicates to have associated quantifiers (or variables) in sentences.

For example:
Closed World AssumptionClosed World Assumption (CWA)

This formalism, due to Raymond Reiter [1978], consists in presupposing that every true sentence is known. Therefore (by modus tollens), what is not known is false. It is particularly useful for reasoning about databases that are assumed to be complete.

Examples:
  1. A travel agent has access to a database of flights and has to answer a client about whether there is a direct flight from one city A to another city B. The query to the database gives as an answer that there is or there are no direct flights.

  2. We have a database of a company's personnel, which we assume to be complete. A query as to whether a given employee works for the company produces either "yes" or "no" as the answer.
This formalism is a purely formal process. It involves non-monotonic inference, since the addition of new information may produce a different answer.

In the open world assumption formalism (Open World Assumption, OWA), not known does not imply falsity.


Self-epistemic logic

Autoepistemic logic [Moore, 1985] is based on the idea that we can make inferences from our introspective knowledge by reasoning about our own beliefs. For example, I can infer that I don't owe a million euros to anyone, because if I did I would know.

In this type of logic knowledge is represented by practical rules with implications about our beliefs.


Logic programming

In logic programming, a program consists of a set of rules of the form. For example, In logic programming, the principle of "default negation" is used: if you do not explicitly specify that an element does not have a property, then it does. In the example above, if a bird has not been specified that it is not a penguin, then it is assumed to be a penguin.

The logic programming language Prolog, developed by Colmerauer and his team [1973], was the first language to incorporate non-monotonic logic.

An example of a logic program is: Suppose P is a bird. By default, it is not a penguin. Therefore, applying the first rule, P flies. The other two rules do not apply.

Suppose P is a penguin. The first rule does not apply, but the other two do. Therefore, P is a flightless bird.


The Non-Monotonic Logic in MENTAL

With MENTAL everything is simpler, clearer and more direct because we work directly with primary archetypes, the archetypes of consciousness:
Examples
  1. The above example of constituency:

    ⟨( (x/bird ∧ x/normal) → x/fly )⟩
    (all normal birds fly)

    ⟨( (x/bird ∧ x/non-normal) → x/no-fly )⟩
    (all non-normal birds do not fly)

    ⟨( (x/bird → x/normal )⟩
    (all birds are normal)

    ⟨( x/penguin → x/bird )⟩
    (a penguin is a bird)

    P/bird
    (P is a bird. Conclusion: "P flies")

    P/no-normal
    (New fact. New conclusion: "P does not fly")

    Conclusions (including facts):
    P/bird P/penguin P/no-fly

  2. An example of using meta-rules.

    ⟨( k=1 → ⟨( x/man → x/mortal )⟩ )⟩
    Pepe/man
    k=0
    (Pepe/mortal)? // ev. θ
    k=1
    (Pepe/mortal)? // ev. α


Conclusions

In short, with MENTAL it is very easy to specify a non-monotonic logic system from the formal point of view. Once again, everything is clearer, more direct and intuitive, thanks to the possibilities of the language, mainly the generic expressions, which allow to infer consequences at any time and to modify the expressions of the abstract space.

Non-monotonic logic is not a new logic. The underlying logic does not change. It is a logic extended with assumptions or hypotheses and with meta-rules to describe principles (such as generality, specificity and inheritance). Once extended with these contents, the resulting logic is a deductive logic.

Non-monotonic formalisms do not solve the problems of reasoning in AI. AI must be approached from degrees of freedom (the primary archetypes), not just from the logical point of view.


Generalization

According to the principle of generalization, the concept of "non-monotonic" has to be general, i.e., apply not only to logic. In general, a non-monotonic system is one in which the abstract space changes every time new facts (non-generic expressions) are added. A non-generic expression can modify a generic expression, as in the following simple example:

Program: Initial situation: Addition of a new fact and modification of an existing one: New situation:

Adenda

Origin of non-monotonic logic

non-monotonic logic arose from the realization that first-order predicate logic was inadequate for handling commonsense reasoning, retractable inferences, and for generally addressing the problems posed by AI. Its pioneers were John McCarthy (one of the fathers of artificial intelligence), Drew McDermott, Jon Doyle and Raymond Reiter.

Non-monotonic logic has developed mainly in the field of AI, specifically on the topic of formalizing common sense reasoning. Today it is considered an essential part of AI.

In 1980, the Artificial Intelligence Journal published a monographic issue (number 13) on the theories and formalisms of non-monotonic logic, an event that is considered the beginning of the era of this new logic.


The three types of reasoning

According to Peirce, there are three types of reasoning:
  1. Deductive or top-down.
    Classical logic, monotonic logic, applies. Conclusions are drawn from premises. It is purely rational, from the mode of consciousness of the left side of the brain.

  2. Inductive or bottom-up.
    From various facts a general conclusion is inferred that explains all the facts. It is intuitive, from the mode of consciousness of the right side of the brain.

  3. Abductive.
    Combines the previous two. Non-monotonic logic is applied. It tries to explain a fact by means of an explanatory hypothesis. Peirce called abductive reasoning "guessing".
Induction relies on the regularity of facts. Abduction works with knowledge of an unexpected, infrequent, or abnormal fact, the cause of which has not yet been determined, and which needs an explanatory hypothesis.

Abductive reasoning is intuitive and rational. It is, therefore, associated with consciousness and creativity. It tries to make reality intelligible by formulating hypotheses that attempt to give a rational explanation to a fact or phenomenon. This type of reasoning is what makes the progress of science possible. Consciousness is manifested or expressed in the rule that unites the opposites (the hypothesis and the fact).


Bibliography