Substitution (logic)

from Wikipedia, the free encyclopedia

In logic, substitution is the general term used to describe the replacement of one expression by another.

More precisely, four different expressions have to be distinguished from one another:

  • the substituendum (Latin: "that to be replaced"): the term that is replaced
  • the substituent (Latin: "the substitute"): the expression that replaces
  • the substitution base: the term in which to replace
  • the substitution result: the result of the substitution.

Example:

Let's replace in the expression

(read: "if , then and ") through the expression

(read: " or "), we get:

.

Here is the substituent, the substituent, the substitution base and the substitution result.

A distinction is made between universal and simple substitution, and the term “free to substitute” is also important in quantifier logic .

Universal and easy substitution

In the case of universal substitution, all occurrences of the substituent must be replaced; in the case of simple substitution, not all occurrences need to be replaced. The difference between the two types of substitution only becomes relevant when there are at least two occurrences of the substituent in the substitution base. With universal substitution, the substituent no longer appears in the substitution result, with simple substitution it can still occur.

Example:

Let's replace in the expression

the expression through

,

so we get with universal substitution:

.

With simple substitution we could also get the following:

Universal and simple substitution play a role in different laws:

Law of Universal Substitution

If a statement is a theorem and is the result of the universal substitution of by , then it is again a theorem. It is important here that universal substitution is made; a simple substitution does not guarantee that a theorem is. Another requirement is that the substituendum is a "sentence parameter", i. H. a non-complex formula which, moreover, does not appear in any axiom . There is no corresponding restriction on the substituent .

Example:

In the theorem

we can replace the term universal with

and in turn get a theorem, namely:

With simple substitution we could also get the following:

which is not a theorem. If we dropped the requirement that the substituent is a sentence parameter, we could replace the whole expression with a formula, for example , and get:

which of course is not a theorem either.

The property that universal substitution gets the theorem property is exploited in some calculi by formulating this as a rule of inference. The rule of universal substitution states that in every formula that has been obtained with a proof, every sentence parameter can be universally replaced by any statement.

Law of Substitution of Equivalent Statements

If two statements and equivalent and is a result of the simple substitution of by in , then and also equivalent.

Example:

For example, two equivalent statements are:

and

,

If we now in the statement

by simply substituting, we can get the following:

and are now again equivalent.

The term "free for substitution"

A term can be substituted by a variable in a formula if it is not in the scope of a quantifier or .

The background of this definition is as follows: In quantifier logic one wants to speak of the fact that one statement represents an all- or existential generalization of another. For example is

Someone smokes

formally:

an existence generalization of

Frank smokes,

formally:

It now seems as if one obtains a generalization if one replaces the occurrences of the term to be generalized (in the example "Frank" or ) with universal and puts a quantifier or in front of the statement. A generalization is only obtained under the additional condition that the term to be generalized is free for replacement by .

example

Look at the statement

When someone loves Frank, Frank is happy

formally

Note that here there is no substitution by , since it occurs in the scope of the existential quantifier. Therefore the following statement is not an all-generalization of :

because this statement means:

"If someone loves himself, everyone is happy"

and this completely misses the meaning of the original statement.

In such a case, however, you can always carry out a generalization with another variable. For example, in is free to substitute with , so the following all-generalization can be formed:

and this statement then has the desired meaning, namely:

“Everyone who loves someone is happy”.