Condensed detachment (Rule D) is a method of finding the most general possible conclusion given two formal logical statements.
It was developed by the Irish
logician
Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the study of deductively valid inferences or logical truths. It examines how conclusions follow from premises based on the structure of arg ...
Carew Meredith in the 1950s and inspired by the work of
Łukasiewicz
Łukasiewicz is a Polish surname. It comes from the given name Łukasz (Lucas). It is found across Poland, particularly in central regions. It is related to the surnames Łukaszewicz and Lukashevich.
People
* Antoni Łukasiewicz (born 1983), ...
.
Informal description
A rule of detachment (often referred to as
modus ponens
In propositional logic, (; MP), also known as (), implication elimination, or affirming the antecedent, is a deductive argument form and rule of inference. It can be summarized as "''P'' implies ''Q.'' ''P'' is true. Therefore, ''Q'' must ...
) says:
"Given that
implies
, and given
, infer
."
The condensed detachment goes a step further and says:
"Given that
implies
, and given an
, use a
unifier of
and
to make
and
the same, then use a standard rule of detachment."
A
substitution
Substitution may refer to:
Arts and media
*Substitution (poetry), a variation in poetic scansion
* Substitution (theatre), an acting methodology
Music
*Chord substitution, swapping one chord for a related one within a chord progression
*Tritone ...
''A'' that when applied to
produces
, and substitution ''B'' that when applied to
produces
, are called unifiers of
and
.
Various unifiers may produce expressions with varying numbers of
free variable
In mathematics, and in other disciplines involving formal languages, including mathematical logic and computer science, a variable may be said to be either free or bound. Some older books use the terms real variable and apparent variable for f ...
s. Some possible unifying expressions are
substitution instance
A substitution is a syntactic 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 ''su ...
s of others. If one expression is a substitution instance of another (and not just a variable renaming), then that other is called "more general".
If the most general unifier is used in condensed detachment, then the logical result is the most general conclusion that can be made in the given inference with the given second expression. Since any weaker inference you can get is a substitution instance of the most general one, nothing less than the most general unifier is ever used in practice.
Some logics, such as classical
propositional calculus
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 ...
, have a set of defining axioms with the "D-completeness" property. If a set of axioms is D-Complete, then any valid theorem of the system, including all of its substitution instances (up to variable renaming), can be generated by condensed detachment alone. For example, if
is a theorem of a D-complete system, condensed detachment can prove not only that theorem but also its substitution instance
by using a longer proof. Note that "D-completeness" is a property of an axiomatic basis for a system, not an intrinsic property of a logic system itself.
J. A. Kalman proved that any conclusion that can be generated by a sequence of uniform substitution (all instances of a variable are replaced with the same content) and ''
modus ponens
In propositional logic, (; MP), also known as (), implication elimination, or affirming the antecedent, is a deductive argument form and rule of inference. It can be summarized as "''P'' implies ''Q.'' ''P'' is true. Therefore, ''Q'' must ...
'' steps can either be generated by condensed detachment alone, or is a substitution instance of something that can be generated by condensed detachment alone.
This makes condensed detachment useful for any logic system that has ''
modus ponens
In propositional logic, (; MP), also known as (), implication elimination, or affirming the antecedent, is a deductive argument form and rule of inference. It can be summarized as "''P'' implies ''Q.'' ''P'' is true. Therefore, ''Q'' must ...
'' and substitution, regardless of whether or not it is D-complete.
D-notation
Since a given major premise and a given minor premise uniquely determine the conclusion (up to variable renaming),
Meredith observed that it was only necessary to note which two statements were involved and that the condensed detachment can be used without any other notation required. This led to the "D-notation" for
proofs. This notation uses the "D" operator to mean condensed detachment, and takes 2 arguments, in a standard
prefix notation
Polish notation (PN), also known as normal Polish notation (NPN), Łukasiewicz notation, Warsaw notation, Polish prefix notation, Eastern Notation or simply prefix notation, is a mathematical notation in which operators ''precede'' their oper ...
string. For example, if you have four axioms a typical proof in D-notation might look like: DD12D34 which shows a condensed detachment step using the result of two prior condensed detachment steps, the first of which used axioms 1 and 2, and the second of which used axioms 3 and 4.
This notation, besides being used in some automated theorem provers, sometimes appears in catalogs of proofs. For example, the "shortest known proofs" database of
Metamath
Metamath is a formal language and an associated computer program (a proof assistant) for archiving and verifying mathematical proofs. Several databases of proved theorems have been developed using Metamath covering standard results in logic, set ...
's mmsolitaire project features 196 theorems with such proofs.
Condensed detachment's use of unification predates the
resolution technique of
automated theorem proving
Automated theorem proving (also known as ATP or automated deduction) is a subfield of automated reasoning and mathematical logic dealing with proving mathematical theorems by computer programs. Automated reasoning over mathematical proof was a majo ...
which was introduced in 1965.
Advantages
For automated theorem proving condensed detachment has a number of advantages over raw ''
modus ponens
In propositional logic, (; MP), also known as (), implication elimination, or affirming the antecedent, is a deductive argument form and rule of inference. It can be summarized as "''P'' implies ''Q.'' ''P'' is true. Therefore, ''Q'' must ...
'' and uniform substitution.
At a proof using modus ponens and substitution you have an infinite number of choices for what you can substitute for variables. This means that you have an infinite number of possible next steps. With condensed detachment there are only a finite number of possible next steps in a proof, namely the most general variants of combined previous steps or axioms.
The D-notation for complete condensed detachment proofs allows easy description of proofs for cataloging and search. A typical complete 30 step proof is less than 60 characters long in D-notation (excluding the statement of the axioms.)
References
*
*
{{logic
Logic