HOME

TheInfoList



OR:

A substitution is a
syntactic In linguistics, syntax ( ) is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure (constituency ...
transformation on formal expressions. To ''apply'' a substitution to an expression means to consistently replace its variable, or placeholder, symbols with other expressions. The resulting expression is called a ''substitution instance'', or ''instance'' for short, of the original expression.


Propositional logic


Definition

Where ''ψ'' and ''φ'' represent
formula In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwe ...
s of
propositional logic The propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. Sometimes, it is called ''first-order'' propositional logic to contra ...
, ''ψ'' is a ''substitution instance'' of ''φ''
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
''ψ'' may be obtained from ''φ'' by substituting formulas for propositional variables in ''φ'', replacing each occurrence of the same variable by an occurrence of the same formula. For example: ::''ψ:'' (R → S) & (T → S) is a substitution instance of ::''φ:'' P & Q That is, ''ψ'' can be obtained by replacing P and Q in ''φ'' with (R → S) and (T → S) respectively. Similarly: ::''ψ:'' (A ↔ A) ↔ (A ↔ A) is a substitution instance of: ::''φ:'' (A ↔ A) since ''ψ'' can be obtained by replacing each A in ''φ'' with (A ↔ A). In some
deduction system A formal system is an abstract structure and formalization of an axiomatic system used for deducing, using rules of inference, theorems from axioms. In 1921, David Hilbert proposed to use formal systems as the foundation of knowledge in math ...
s for propositional logic, a new expression (a
proposition A proposition is a statement that can be either true or false. It is a central concept in the philosophy of language, semantics, logic, and related fields. Propositions are the object s denoted by declarative sentences; for example, "The sky ...
) may be entered on a line of a derivation if it is a substitution instance of a previous line of the derivation. This is how new lines are introduced in some axiomatic systems. In systems that use rules of transformation, a rule may include the use of a ''substitution instance'' for the purpose of introducing certain variables into a derivation.


Tautologies

A propositional formula is a tautology if it is true under every valuation (or interpretation) of its predicate symbols. If Φ is a tautology, and Θ is a substitution instance of Φ, then Θ is again a tautology. This fact implies the soundness of the deduction rule described in the previous section.


First-order logic

In
first-order logic First-order logic, also called predicate logic, predicate calculus, or quantificational logic, is a collection of formal systems used in mathematics, philosophy, linguistics, and computer science. First-order logic uses quantified variables over ...
, a ''substitution'' is a total mapping from variables to terms; many, but not all authors additionally require ''σ''(''x'') = ''x'' for all but finitely many variables ''x''. The notation Some authors use ''t''1/''x''1, …, ''t''''k''/''x''''k'' to denote that substitution, e.g. , here: p. 682. refers to a substitution mapping each variable ''x''''i'' to the corresponding term ''t''''i'', for ''i''=1,…,''k'', and every other variable to itself; the ''x''''i'' must be pairwise distinct. Most authors additionally require each term ''t''''i'' to be syntactically different from ''x''''i'', to avoid infinitely many distinct notations for the same substitution. ''Applying'' that substitution to a term ''t'' is written in
postfix notation Reverse Polish notation (RPN), also known as reverse Łukasiewicz notation, Polish postfix notation or simply postfix notation, is a mathematical notation in which Operation (mathematics), operators ''follow'' their operands, in contrast to pr ...
as ''t'' ; it means to (simultaneously) replace every occurrence of each ''x''''i'' in ''t'' by ''t''''i''.From a
term algebra Term may refer to: Language *Terminology, context-specific nouns or compound words **Technical term (or ''term of art''), used by specialists in a field ***Scientific terminology, used by scientists *Term (argumentation), part of an argument in d ...
point of view, the set ''T'' of terms is the free term algebra over the set ''V'' of variables, hence for each substitution mapping σ: ''V'' → ''T'' there is a unique
homomorphism In algebra, a homomorphism is a morphism, structure-preserving map (mathematics), map between two algebraic structures of the same type (such as two group (mathematics), groups, two ring (mathematics), rings, or two vector spaces). The word ''homo ...
: ''T'' → ''T'' that agrees with σ on ''V'' ⊆ ''T''; the above-defined application of ''σ'' to a term ''t'' is then viewed as applying the function to the argument ''t''.
The result ''tσ'' of applying a substitution ''σ'' to a term ''t'' is called an ''instance'' of that term ''t''. For example, applying the substitution to the term : The ''domain'' ''dom''(''σ'') of a substitution ''σ'' is commonly defined as the set of variables actually replaced, i.e. ''dom''(''σ'') = . A substitution is called a ''ground'' substitution if it maps all variables of its domain to ground, i.e. variable-free, terms. The substitution instance ''tσ'' of a ground substitution is a ground term if all of ''t''s variables are in ''σ''s domain, i.e. if ''vars''(''t'') ⊆ ''dom''(''σ''). A substitution ''σ'' is called a ''linear'' substitution if ''tσ'' is a
linear In mathematics, the term ''linear'' is used in two distinct senses for two different properties: * linearity of a '' function'' (or '' mapping''); * linearity of a '' polynomial''. An example of a linear function is the function defined by f(x) ...
term for some (and hence every) linear term ''t'' containing precisely the variables of ''σ''s domain, i.e. with ''vars''(''t'') = ''dom''(''σ''). A substitution ''σ'' is called a ''flat'' substitution if ''xσ'' is a variable for every variable ''x''. A substitution ''σ'' is called a ''renaming'' substitution if it is a
permutation In mathematics, a permutation of a set can mean one of two different things: * an arrangement of its members in a sequence or linear order, or * the act or process of changing the linear order of an ordered set. An example of the first mean ...
on the set of all variables. Like every permutation, a renaming substitution σ always has an ''inverse'' substitution ''σ''−1, such that ''tσσ''−1 = ''t'' = ''tσ''−1''σ'' for every term ''t''. However, it is not possible to define an inverse for an arbitrary substitution. For example, is a ground substitution, is non-ground and non-flat, but linear, is non-linear and non-flat, is flat, but non-linear, is both linear and flat, but not a renaming, since it maps both ''y'' and ''y''2 to ''y''2; each of these substitutions has the set as its domain. An example for a renaming substitution is , it has the inverse . The flat substitution cannot have an inverse, since e.g. (''x''+''y'') = ''z''+''z'', and the latter term cannot be transformed back to ''x''+''y'', as the information about the origin a ''z'' stems from is lost. The ground substitution cannot have an inverse due to a similar loss of origin information e.g. in (''x''+2) = 2+2, even if replacing constants by variables was allowed by some fictitious kind of "generalized substitutions". Two substitutions are considered ''equal'' if they map each variable to syntactically equal result terms, formally: ''σ'' = ''τ'' if ''xσ'' = ''xτ'' for each variable ''x'' ∈ ''V''. The ''composition'' of two substitutions ''σ'' = and ''τ'' = is obtained by removing from the substitution those pairs ''y''''i'' ↦ ''u''''i'' for which ''y''''i'' ∈ . The composition of ''σ'' and ''τ'' is denoted by ''στ''. Composition is an associative operation, and is compatible with substitution application, i.e. (''ρσ'')''τ'' = ''ρ''(''στ''), and (''tσ'')''τ'' = ''t''(''στ''), respectively, for every substitutions ''ρ'', ''σ'', ''τ'', and every term ''t''. The ''identity substitution'', which maps every variable to itself, is the
neutral element In mathematics, an identity element or neutral element of a binary operation is an element that leaves unchanged every element when the operation is applied. For example, 0 is an identity element of the addition of real numbers. This concept is use ...
of substitution composition. A substitution ''σ'' is called ''idempotent'' if ''σσ'' = ''σ'', and hence ''tσσ'' = ''tσ'' for every term ''t''. When ''x''''i''≠''t''''i'' for all ''i'', the substitution is idempotent if and only if none of the variables ''x''''i'' occurs in any ''t''''j''. Substitution composition is not commutative, that is, ''στ'' may be different from ''τσ'', even if ''σ'' and ''τ'' are idempotent. For example, is equal to , but different from . The substitution is idempotent, e.g. ((''x''+''y'') ) = ((''y''+''y'')+''y'') = (''y''+''y'')+''y'', while the substitution is non-idempotent, e.g. ((''x''+''y'') ) = ((''x''+''y'')+''y'') = ((''x''+''y'')+''y'')+''y''. An example for non-commuting substitutions is = , but = .


Mathematics

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, there are two common uses of substitution: ''substitution of variables'' for constants (also called assignment for that variable), and the ''substitution property of equality'', also called ''Leibniz's Law''. Considering mathematics as a
formal language In logic, mathematics, computer science, and linguistics, a formal language is a set of strings whose symbols are taken from a set called "alphabet". The alphabet of a formal language consists of symbols that concatenate into strings (also c ...
, a variable is a
symbol A symbol is a mark, Sign (semiotics), sign, or word that indicates, signifies, or is understood as representing an idea, physical object, object, or wikt:relationship, relationship. Symbols allow people to go beyond what is known or seen by cr ...
from an
alphabet An alphabet is a standard set of letter (alphabet), letters written to represent particular sounds in a spoken language. Specifically, letters largely correspond to phonemes as the smallest sound segments that can distinguish one word from a ...
, usually a letter like , , and , which denotes a range of possible
values In ethics and social sciences, value denotes the degree of importance of some thing or action, with the aim of determining which actions are best to do or what way is best to live ( normative ethics), or to describe the significance of different a ...
. If a variable is free in a given expression or
formula In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwe ...
, then it can be replaced with any of the values in its range. Certain kinds of bound variables can be substituted too. For instance,
parameter A parameter (), generally, is any characteristic that can help in defining or classifying a particular system (meaning an event, project, object, situation, etc.). That is, a parameter is an element of a system that is useful, or critical, when ...
s of an expression (like the
coefficient In mathematics, a coefficient is a Factor (arithmetic), multiplicative factor involved in some Summand, term of a polynomial, a series (mathematics), series, or any other type of expression (mathematics), expression. It may be a Dimensionless qu ...
s of a
polynomial In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
), or the
argument An argument is a series of sentences, statements, or propositions some of which are called premises and one is the conclusion. The purpose of an argument is to give reasons for one's conclusion via justification, explanation, and/or persu ...
of a function. Moreover, variables being universally quantified can be replaced with any of the values in its range, and the result will a true statement. (This is called Universal instantiation) For a non-formalized language, that is, in most mathematical texts outside of
mathematical logic Mathematical logic is the study of Logic#Formal logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory (also known as computability theory). Research in mathematical logic com ...
, for an individual expression it is not always possible to identify which variables are free and bound. For example, in \sum_ a_, depending on the context, the variable i can be free and k bound, or vice-versa, but they cannot both be free. Determining which value is assumed to be free depends on context and
semantics Semantics is the study of linguistic Meaning (philosophy), meaning. It examines what meaning is, how words get their meaning, and how the meaning of a complex expression depends on its parts. Part of this process involves the distinction betwee ...
. The ''substitution property of equality'', or ''Leibniz's Law'' (though the latter term is usually reserved for philosophical contexts), generally states that, if two things are equal, then any property of one, must be a property of the other. It can be formally stated in logical notation as:(a=b) \implies \bigl \phi(a) \Rightarrow \phi(b) \bigrFor every a and b , and any
well-formed formula In mathematical logic, propositional logic and predicate logic, a well-formed formula, abbreviated WFF or wff, often simply formula, is a finite sequence of symbols from a given alphabet that is part of a formal language. The abbreviation wf ...
\phi(x) (with a free variable x). For example: For all
real numbers In mathematics, a real number is a number that can be used to measurement, measure a continuous variable, continuous one-dimensional quantity such as a time, duration or temperature. Here, ''continuous'' means that pairs of values can have arbi ...
and , if , then implies (here, \phi(x) is ). This is a property which is most often used in
algebra Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
, especially in solving systems of equations, but is apllied in nearly every area of math that uses equality. This, taken together with the reflexive property of equality, forms the axioms of equality in first-order logic. Substitution is related to, but not identical to,
function composition In mathematics, the composition operator \circ takes two function (mathematics), functions, f and g, and returns a new function h(x) := (g \circ f) (x) = g(f(x)). Thus, the function is function application, applied after applying to . (g \c ...
; it is closely related to ''β''-reduction in
lambda calculus In mathematical logic, the lambda calculus (also written as ''λ''-calculus) is a formal system for expressing computability, computation based on function Abstraction (computer science), abstraction and function application, application using var ...
. In contrast to these notions, however, the accent in algebra is on the preservation of algebraic structure by the substitution operation, the fact that substitution gives a
homomorphism In algebra, a homomorphism is a morphism, structure-preserving map (mathematics), map between two algebraic structures of the same type (such as two group (mathematics), groups, two ring (mathematics), rings, or two vector spaces). The word ''homo ...
for the structure at hand (in the case of polynomials, the ring structure).


Substitution is a basic operation in
algebra Algebra is a branch of mathematics that deals with abstract systems, known as algebraic structures, and the manipulation of expressions within those systems. It is a generalization of arithmetic that introduces variables and algebraic ope ...
, in particular in
computer algebra In mathematics and computer science, computer algebra, also called symbolic computation or algebraic computation, is a scientific area that refers to the study and development of algorithms and software for manipulating expression (mathematics), ...
. A common case of substitution involves
polynomial In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
s, where substitution of a numerical value (or another expression) for the indeterminate of a univariate polynomial amounts to evaluating the polynomial at that value. Indeed, this operation occurs so frequently that the notation for polynomials is often adapted to it; instead of designating a polynomial by a name like ''P'', as one would do for other mathematical objects, one could define :P(X)=X^5-3X^2+5X-17 so that substitution for ''X'' can be designated by replacement inside "''P''(''X'')", say :P(2) = 13 or :P(X+1) = X^5 + 5X^4 + 10X^3 + 7X^2 + 4X - 14. Substitution can also be applied to other kinds of formal objects built from symbols, for instance elements of
free group In mathematics, the free group ''F'S'' over a given set ''S'' consists of all words that can be built from members of ''S'', considering two words to be different unless their equality follows from the group axioms (e.g. ''st'' = ''suu''− ...
s. In order for substitution to be defined, one needs an algebraic structure with an appropriate
universal property In mathematics, more specifically in category theory, a universal property is a property that characterizes up to an isomorphism the result of some constructions. Thus, universal properties can be used for defining some objects independently fro ...
, that asserts the existence of unique homomorphisms that send indeterminates to specific values; the substitution then amounts to finding the image of an element under such a homomorphism.


Proof of substitution in ZFC

The following is a proof of the substitution property of equality in ZFC (as defined in first-order logic without equality), which is adapted from ''Introduction to Axiomatic Set Theory'' (1982) by Gaisi Takeuti and Wilson M. Zaring. See Zermelo–Fraenkel set theory § Formal language for the definition of formulas in ZFC. The definition is recursive, so a proof by induction is used. In ZFC in first-order logic without equality, "set equality" is defined to mean that two sets have the same elements, written symbolically as "for all z, z is in x if and onlt if z is in y". Then, the Axiom of Extensionality asserts that if two sets have the same elements, then they belong to the same sets:


See also

*
Integration by substitution In calculus, integration by substitution, also known as ''u''-substitution, reverse chain rule or change of variables, is a method for evaluating integrals and antiderivatives. It is the counterpart to the chain rule for differentiation, and c ...
* * String interpolation * Substitution property of Equality * Trigonometric substitution * Universal instantiation * Principal equation form


Notes


Citations


References

* Crabbé, M. (2004).
On the Notion of Substitution
'. Logic Journal of the IGPL, 12, 111–124. * Curry, H. B. (1952)
On the definition of substitution, replacement and allied notions in an abstract formal system
'. Revue philosophique de Louvain 50, 251–269. * Kleene, S. C. (1967). ''Mathematical Logic''. Reprinted 2002, Dover. * Robinson, Alan J. A.; Voronkov, Andrei (2001-06-22).
Handbook of Automated Reasoning
'. Elsevier.


External links

* {{DEFAULTSORT:Substitution (Logic) Propositional calculus Concepts in logic Logical truth Automated theorem proving Logic programming