Philosophy:Condensed detachment

From HandWiki

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 Carew Meredith in the 1950s and inspired by the work of Łukasiewicz.[1]

Informal description

A rule of detachment (often referred to as modus ponens) says:
"Given that [math]\displaystyle{ p }[/math] implies [math]\displaystyle{ q }[/math], and given [math]\displaystyle{ p }[/math], infer [math]\displaystyle{ q }[/math]."

The condensed detachment goes a step further and says:
"Given that [math]\displaystyle{ p }[/math] implies [math]\displaystyle{ q }[/math], and given an [math]\displaystyle{ r }[/math], use a unifier of [math]\displaystyle{ p }[/math] and [math]\displaystyle{ r }[/math] to make [math]\displaystyle{ p }[/math] and [math]\displaystyle{ r }[/math] the same, then use a standard rule of detachment."

A substitution A that when applied to [math]\displaystyle{ p }[/math] produces [math]\displaystyle{ t }[/math], and substitution B that when applied to [math]\displaystyle{ r }[/math] produces [math]\displaystyle{ t }[/math], are called unifiers of [math]\displaystyle{ p }[/math] and [math]\displaystyle{ r }[/math].

Various unifiers may produce expressions with varying numbers of free variables. Some possible unifying expressions are substitution instances 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, 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 [math]\displaystyle{ p \rightarrow p }[/math] is a theorem of a D-complete system, condensed detachment can prove not only that theorem but also its substitution instance [math]\displaystyle{ ( p \rightarrow p ) \rightarrow ( p \rightarrow p ) }[/math] 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.[2]

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 steps can either be generated by condensed detachment alone, or is a substitution instance of something that can be generated by condensed detachment alone.[1] This makes condensed detachment useful for any logic system that has modus ponens 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 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's mmsolitaire project features 196 theorems with such proofs.[3]

Condensed detachment's use of unification predates the resolution technique of automated theorem proving which was introduced in 1965.[4][5]

Advantages

For automated theorem proving condensed detachment has a number of advantages over raw modus ponens and uniform substitution.

At a Modus Ponens and substitution proof 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.[clarification needed]

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

  1. 1.0 1.1 J.A. Kalman (Dec 1983). "Condensed Detachment as a Rule of Inference". Studia Logica 42 (4): 443–451. doi:10.1007/BF01371632. 
  2. N. Megill and M. Bunder (Mar 1996). "Weaker D-Complete Logics". J. Igpl 4 (2): 215–225. doi:10.1093/jigpal/4.2.215. http://us.metamath.org/downloads/weakd.pdf. 
  3. "Shortest known proofs of the propositional calculus theorems from Principia Mathematica". https://us.metamath.org/mmsolitaire/pmproofs.txt. Retrieved 9 September 2023. 
  4. C. A. Meredith and A. N. Prior (1963). "Notes on the axiomatics of the propositional calculus". Notre Dame J. Formal Logic 4 (3): 171–187. doi:10.1305/ndjfl/1093957574. 
  5. J. A. Robinson (1965). "A Machine-Oriented Logic Based on the Resolution Principle". Journal of the ACM 12 (1): 23–41. doi:10.1145/321250.321253. https://dl.acm.org/doi/10.1145/321250.321253.