All Topics  
Natural deduction

 

   Email Print
   Bookmark   Link






 

Natural deduction



 
 
In philosophical logic
Philosophical logic

Philosophical logic is the study of the more specifically philosophical aspects of logic. The term contrasts with philosophy of logic, metalogic, and mathematical logic; and since the development of mathematical logic in the late nineteenth century, it has come to include most of those topics traditionally treated by logic in gene...
, natural deduction is an approach to proof theory
Proof theory

Proof theory is a branch of mathematical logic that represents Mathematical proofs as formal mathematical objects, facilitating their analysis by mathematical techniques....
 that attempts to provide a deductive system
Deductive system

A deductive system consists of the axioms and rules of inference that can be used to formal proof the theorems of the system.Such a deductive system is intended to preserve deduction qualities in the formula s that are expressed in the system....
 which is a formal model of logical reasoning as it "naturally" occurs. This approach is in contrast to axiomatic system
Axiomatic system

In mathematics, an axiomatic system is any Set of axioms from which some or all axioms can be used in conjunction to logically derive theorems....
s which use axiom
Axiom

In traditional logic, an axiom or postulate is a proposition that is not proved or demonstrated but considered to be either self-evidence, or subject to necessary decision....
s.

  • The Rule of Assumption (A)
  • Modus Ponendo Ponens (MPP)
  • The Rule of Double Negation (DN)
  • The Rule of Conditional Proof (CP)
  • The Rule of ?-introduction (?I)
  • The Rule of ?-elimination (?E)
  • The Rule of ?-introduction (?I)
  • The Rule of ?-elimination (?E)
  • Reductio Ad Absurdum (RAA)
    Reductio ad absurdum

    Reductio ad absurdum , also known as an apagogical argument, reductio ad impossibile, or proof by contradiction, is a type of logical argument where one assumes a claim for the sake of argument and derives an absurd or ridiculous outcome, and then concludes that the original claim must have been wrong as it led to an abs...


  • In system L, a proof has a definition with the following conditions:

    1. has a finite sequence of well-formed formula
      Well-formed formula

      In computer science and mathematical logic, a well-formed formula or simply formula is a symbol or string of symbols that is generated by the formal grammar of a formal language....
      s (or wffs)
    2. each line of it is justified by a rule of the system L
    3. the last line of the proof is what is intended, and this last line of the proof uses only the premises which were given, if any.


    If no premise is given, the sequent is called theorem.






    Discussion
    Ask a question about 'Natural deduction'
    Start a new discussion about 'Natural deduction'
    Answer questions from other users
    Full Discussion Forum



    Encyclopedia


    In philosophical logic
    Philosophical logic

    Philosophical logic is the study of the more specifically philosophical aspects of logic. The term contrasts with philosophy of logic, metalogic, and mathematical logic; and since the development of mathematical logic in the late nineteenth century, it has come to include most of those topics traditionally treated by logic in gene...
    , natural deduction is an approach to proof theory
    Proof theory

    Proof theory is a branch of mathematical logic that represents Mathematical proofs as formal mathematical objects, facilitating their analysis by mathematical techniques....
     that attempts to provide a deductive system
    Deductive system

    A deductive system consists of the axioms and rules of inference that can be used to formal proof the theorems of the system.Such a deductive system is intended to preserve deduction qualities in the formula s that are expressed in the system....
     which is a formal model of logical reasoning as it "naturally" occurs. This approach is in contrast to axiomatic system
    Axiomatic system

    In mathematics, an axiomatic system is any Set of axioms from which some or all axioms can be used in conjunction to logically derive theorems....
    s which use axiom
    Axiom

    In traditional logic, an axiom or postulate is a proposition that is not proved or demonstrated but considered to be either self-evidence, or subject to necessary decision....
    s.

    Natural deductive logic


    One version of natural deductive logic has no axioms. System L, developed by E.J. Lemmon, has only nine primitive rules that govern the syntax of a proof.

    The nine primitive rules of system L are
    1. The Rule of Assumption (A)
    2. Modus Ponendo Ponens (MPP)
    3. The Rule of Double Negation (DN)
    4. The Rule of Conditional Proof (CP)
    5. The Rule of ?-introduction (?I)
    6. The Rule of ?-elimination (?E)
    7. The Rule of ?-introduction (?I)
    8. The Rule of ?-elimination (?E)
    9. Reductio Ad Absurdum (RAA)
      Reductio ad absurdum

      Reductio ad absurdum , also known as an apagogical argument, reductio ad impossibile, or proof by contradiction, is a type of logical argument where one assumes a claim for the sake of argument and derives an absurd or ridiculous outcome, and then concludes that the original claim must have been wrong as it led to an abs...


    In system L, a proof has a definition with the following conditions:

    1. has a finite sequence of well-formed formula
      Well-formed formula

      In computer science and mathematical logic, a well-formed formula or simply formula is a symbol or string of symbols that is generated by the formal grammar of a formal language....
      s (or wffs)
    2. each line of it is justified by a rule of the system L
    3. the last line of the proof is what is intended, and this last line of the proof uses only the premises which were given, if any.


    If no premise is given, the sequent is called theorem. Therefore, the definition of a theorem in system L is:
    • a theorem is a sequent that can be proved in system L, using an empty set of assumptions.


    An example of the proof of a sequent (Modus Tollendo Tollens in this case):

    p ? q, ¬q ? ¬p [Modus Tollendo Tollens (MTT)]
    Assumption numberLine numberFormula (wff)Lines in-use and Justification
    1(1)(p ? q) A
    2(2)¬q A
    3(3)p A (for RAA)
    1,3(4)q 1,3,MPP
    1,2,3(5)q ? ¬q 2,4,?I
    1,2(6)¬p 3,5,RAA
    Q.E.D


    An example of the proof of a sequent (a theorem in this case):

    ?p ? ¬p
    Assumption numberLine numberFormula (wff)Lines in-use and Justification
    1(1)¬(p ? ¬p)A (for RAA)
    2(2)¬pA (for RAA)
    2(3)(p ? ¬p)2, ?I
    1, 2(4)(p ? ¬p) ? ¬(p ? ¬p)1, 2, ?I
    1(5)¬¬p2, 4, RAA
    1(6)p5, DN
    1(7)(p ? ¬p)6, ?I
    1(8)(p ? ¬p) ? ¬(p ? ¬p)1, 7, ?I
     (9)¬¬(p ? ¬p)1, 8, RAA
     (10)(p ? ¬p)9, DN
    Q.E.D


    Each rule of system L has its own requirements for the type of input(s) or entry(es) that it can accept and has its own way of treating and calculating the assumptions used by its inputs.

    Motivation

    Natural deduction grew out of a context of dissatisfaction with sentential axiomatizations common to the systems of Hilbert
    David Hilbert

    David Hilbert was a Germany mathematician, recognized as one of the most influential and universal mathematicians of the 19th and early 20th centuries....
    , Frege
    Gottlob Frege

    Friedrich Ludwig Gottlob Frege was a Germany mathematics who became a logician and philosophy. He helped found both modern mathematical logic and analytic philosophy....
    , and Russell
    Bertrand Russell

    Bertrand Arthur William Russell, 3rd Earl Russell, Order of Merit , Fellow of the Royal Society , was a British people philosopher, mathematical logic, mathematician, historian, advocate for social reform, and pacifism....
     (see e.g. Hilbert-style deduction system
    Hilbert-style deduction system

    In logic, especially mathematical logic, a Hilbert-style deduction system is a type of system of Deductive reasoning attributed to Gottlob Frege and David Hilbert....
    ). Such axiomatizations were most famously used by Russell
    Bertrand Russell

    Bertrand Arthur William Russell, 3rd Earl Russell, Order of Merit , Fellow of the Royal Society , was a British people philosopher, mathematical logic, mathematician, historian, advocate for social reform, and pacifism....
     and Whitehead
    Alfred North Whitehead

    Alfred North Whitehead, Order of Merit was an England mathematician who became a philosopher. He wrote on algebra, logic, foundations of mathematics, philosophy of science, physics, metaphysics, and education....
     in their mathematical treatise Principia Mathematica
    Principia Mathematica

    The Principia Mathematica is a 3-volume work on the foundations of mathematics, written by Alfred North Whitehead and Bertrand Russell and published in 1910?1913....
    . Spurred on by a series of seminars in Poland in 1926 by Lukasiewicz
    Jan Lukasiewicz

    Jan Lukasiewicz was a Poland mathematician born in Lw?w, Galicia , Austria-Hungary . His major mathematical work centred on mathematical logic....
     that advocated a more natural treatment of logic, Jaskowski
    Stanislaw Jaskowski

    Stanislaw Jaskowski was a Poland logician who made important contributions to proof theory and formal semantics. He was a student of Jan Lukasiewicz and a member of the Lw?w?Warsaw School of Logic....
     made the earliest attempts at defining a more natural deduction, first in 1929 using a diagrammatic notation, and later updating his proposal in a sequence of papers in 1934 and 1935. His proposals did not prove to be popular, however. Natural deduction in its modern form was independently proposed by the German mathematician Gentzen
    Gerhard Gentzen

    Gerhard Karl Erich Gentzen was a Germany mathematician and logician.He was one of Hermann Weyl's students at the University of G?ttingen from 1929 to 1933....
     in 1935, in a dissertation delivered to the faculty of mathematical sciences of the university of Göttingen. The term natural deduction (or rather, its German equivalent natürliches Schließen) was coined in that paper:

    Ich wollte zunächst einmal einen Formalismus aufstellen, der dem wirklichen Schließen möglichst nahe kommt. So ergab sich ein „Kalkül des natürlichen Schließens“. (First I wished to construct a formalism that comes as close as possible to actual reasoning. Thus arose a "calculus of natural deduction".)

    Gentzen was motivated by a desire to establish the consistency of number theory, and he found immediate use for his natural deduction calculus. He was nevertheless dissatisfied with the complexity of his proofs, and in 1938 gave a new consistency proof using his sequent calculus
    Sequent calculus

    In proof theory and mathematical logic, the sequent calculus is a widely known proof calculus for first-order logic . The term "sequent calculus" applies both to a family of formal systems sharing a certain style of formal inference, and to its individual members, of which the first, and best known, is known under the name LK, distingui...
    . In a series of seminars in 1961 and 1962 Prawitz
    Dag Prawitz

    Dag Prawitz is a Swedish philosopher and logician. He is best known for his work on proof theory and the foundations of natural deduction....
     gave a comprehensive summary of natural deduction calculi, and transported much of Gentzen's work with sequent calculi into the natural deduction framework. His 1965 monograph Natural deduction: a proof-theoretical study was to become the definitive work on natural deduction, and included applications for modal
    Modal logic

    A modal logic is any system of mathematical logic#Formal logic that attempts to deal with notions of possibility and necessity. Traditionally, there are three "modes" or "moods" or "modalities" of the Copula to be, namely, Logical possibility, probability, and Necessary_and_sufficient_conditions#Necessary_conditions....
     and second-order logic
    Second-order logic

    In logic and mathematics second-order logic is an extension of first-order logic, which itself is an extension of propositional logic. Second-order logic is in turn extended by higher-order logic and type theory....
    .

    The system presented in this article is a minor variation of Gentzen's or Prawitz's formulation, but with a closer adherence to Martin-Löf
    Per Martin-Löf

    Per Erik Rutger Martin-L?f is a Sweden logician, philosopher, and mathematician. He is best known for developing intuitionistic type theory as a constructive foundation of mathematics....
    's description of logical judgments and connectives (Martin-Löf, 1996).

    Formal definition

    A deduction (or proof) can be defined precisely in the context of a formal system
    Formal system

    In logic, a formal system consists of a formal language together with a deductive system which consists of a set of inference rules and/or axioms....
     like the propositional calculus
    Propositional calculus

    In logic and mathematics, a propositional calculus or logic is a formal system in which formulae representing propositional formulas can be formed by combining atomic formula propositions using logical connectives, and a system of formal proof rules allows certain formul? to be established as "theorem"....
    . A proposition
    Proposition

    This article is about the term proposition in logic and philosophy; for other uses see PropositionIn logic and philosophy, proposition refers to either the "content" or Meaning of a meaningful declarative sentence or the pattern of symbols, marks, or sounds that make up a meaningful declarative sentence....
     a is deduced from a collection S of premises by applying inference rules repeatedly (see above section
    Deductive reasoning

    Deductive reasoning, sometimes called deductive logic, is reasoning which constructs or evaluates deductive Argument s.In logic, an argument is said to be deductive when the truth of the conclusion is purported to follow necessarily or be a logical consequence of the premises and its corresponding conditional is a necessary truth....
    ). The deduction is a record of this repeated application of inference rules.

    More formally, a finite sequence ß1 ,..., ßn of propositions is said to be a deduction of a from a collection of premises S if
    • ßn = a, and
    • For all 1 = i = n, either ßi is a premise (i.e. ßi ? S) or ßi is the result of the application of some inference rule on earlier propositions in the sequence.


    Different versions of axiomatic propositional logics contain a few axioms, usually three or more, in addition to one or more inference rules. For instance, Gottlob Frege
    Gottlob Frege

    Friedrich Ludwig Gottlob Frege was a Germany mathematics who became a logician and philosophy. He helped found both modern mathematical logic and analytic philosophy....
    's axiomatization of propositional logic, which is also the first instance of such an attempt, has six propositional axioms and two rules. Bertrand Russell
    Bertrand Russell

    Bertrand Arthur William Russell, 3rd Earl Russell, Order of Merit , Fellow of the Royal Society , was a British people philosopher, mathematical logic, mathematician, historian, advocate for social reform, and pacifism....
     and Alfred North Whitehead
    Alfred North Whitehead

    Alfred North Whitehead, Order of Merit was an England mathematician who became a philosopher. He wrote on algebra, logic, foundations of mathematics, philosophy of science, physics, metaphysics, and education....
     also suggested a system with five axioms.

    For instance a version of axiomatic propositional logic due to Jan Lukasiewicz
    Jan Lukasiewicz

    Jan Lukasiewicz was a Poland mathematician born in Lw?w, Galicia , Austria-Hungary . His major mathematical work centred on mathematical logic....
     (1878-1956) has a set A of axioms adopted as follows:
    • [PL1] p ? (q ? p)
    • [PL2] (p ? (q ? r)) ? ((p ? q) ? (p ? r))
    • [PL3] (¬p ? ¬q) ? (q ? p)


    and it has the set R of Rules of inference with one rule in it that is Modu Ponendo Ponens as follows:
    • [MP] from a and a ? ß, infer ß.


    The inference rule(s) allows people to derive the statements following the axioms or given wffs of the ensemble S.

    Judgments and propositions

    A judgment
    Judgment (mathematical logic)

    In mathematical logic, a judgment can be for example an assertion about occurrence of a free variable in an expression of the object language, or about provability of a proposition ; but judgments can be also other inductively definable assertions in the metatheory....
     is something that is knowable, that is, an object of knowledge. It is evident if one in fact knows it. Thus "it is raining" is a judgment, which is evident for the one who knows that it is actually raining; in this case one may readily find evidence for the judgment by looking outside the window or stepping out of the house. In mathematical logic however, evidence is often not as directly observable, but rather deduced from more basic evident judgments. The process of deduction is what constitutes a proof; in other words, a judgment is evident if one has a proof for it.

    The most important judgments in logic are of the form "A is true". The letter A stands for any expression representing a proposition; the truth judgments thus require a more primitive judgment: "A is a proposition". Many other judgments have been studied; for example, "A is false" (see classical logic
    Classical logic

    Classical logic identifies a class of formal logics that have been most intensively studied and most widely used. They are characterised by a number of properties; non-classical logics are those that lack one or more of these properties, which are:...
    ), "A is true at time t" (see temporal logic
    Temporal logic

    In logic, the term temporal logic is used to describe any system of rules and symbolism for representing, and reasoning about, propositions qualified in terms of time....
    ), "A is necessarily true" or "A is possibly true" (see modal logic
    Modal logic

    A modal logic is any system of mathematical logic#Formal logic that attempts to deal with notions of possibility and necessity. Traditionally, there are three "modes" or "moods" or "modalities" of the Copula to be, namely, Logical possibility, probability, and Necessary_and_sufficient_conditions#Necessary_conditions....
    ), "the program M has type t" (see programming language
    Programming language

    A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer....
    s and type theory
    Type theory

    In mathematics, logic and computer science, type theory is any of several formal systems that can serve as alternatives to naive set theory, or the study of such formalisms in general....
    ), "A is achievable from the available resources" (see linear logic
    Linear logic

    fr:Logique lin?aireLinear logic is a substructural logic invented by Jean-Yves Girard as a refinement of both classical_logic and intuitionistic logic, combining the symmetries of the former with many of the Constructivism_ properties of the latter....
    ), and many others. To start with, we shall concern ourselves with the simplest two judgments "A is a proposition" and "A is true", abbreviated as "A prop" and "A true" respectively.

    The judgment "A prop" defines the structure of valid proofs of A, which in turn defines the structure of propositions. For this reason, the inference rules for this judgment are sometimes known as formation rules. To illustrate, if we have two propositions A and B (that is, the judgments "A prop" and "B prop" are evident), then we form the compound proposition A and B, written symbolically as "". We can write this in the form of an inference rule:

    This inference rule is schematic: A and B can be instantiated with any expression. The general form of an inference rule is:

    where each is a judgment and the inference rule is named "name". The judgments above the line are known as premises, and those below the line are conclusions. Other common logical propositions are disjunction , negation , implication , and the logical constants truth and falsehood . Their formation rules are below.

    Introduction and elimination

    Now we discuss the "A true" judgment. Inference rules that introduce a logical connective in the conclusion are known as introduction rules. To introduce conjunctions, i.e., to conclude "A and B true" for propositions A and B, one requires evidence for "A true" and "B true". As an inference rule:

    It must be understood that in such rules the objects are propositions. That is, the above rule is really an abbreviation for:

    This can also be written:

    In this form, the first premise can be satisfied by the formation rule, giving the first two premisses of the previous form. In this article we shall elide the "prop" judgments where they are understood. In the nullary case, one can derive truth from no premises.

    If the truth of a proposition can be established in more than one way, the corresponding connective has multiple introduction rules.

    Note that in the nullary case, i.e., for falsehood, there are no introduction rules. Thus one can never infer falsehood from simpler judgments.

    Dual to introduction rules are elimination rules to describe how to de-construct information about a compound proposition into information about its constituents. Thus, from "A ? B true", we can conclude "A true" and "B true":

    As an example of the use of inference rules, consider commutativity of conjunction. If A ? B is true, then B ? A is true; This derivation can be drawn by composing inference rules in such a fashion that premisses of a lower inference match the conclusion of the next higher inference.

    The inference figures we have seen so far are not sufficient to state the rules of implication introduction or disjunction elimination; for these, we need a more general notion of hypothetical derivation.

    Hypothetical derivations

    A pervasive operation in mathematical logic is reasoning from assumptions. For example, consider the following derivation:

    This derivation does not establish the truth of B as such; rather, it establishes the following fact:
    If A ? (B ? C) is true then B is true.
    In logic, one says "assuming A ? (B ? C) is true, we show that B is true"; in other words, the judgement "B true" depends on the assumed judgement "A ? (B ? C) true". This is a hypothetical derivation, which we write as follows:

    The interpretation is: "B true is derivable from A ? (B ? C) true". Of course, in this specific example we actually know the derivation of "B true" from "A ? (B ? C) true", but in general we may not a-priori know the derivation. The general form of a hypothetical derivation is:

    Each hypothetical derivation has a collection of antecedent derivations (the Di) written on the top line, and a succedent judgement (J) written on the bottom line. Each of the premisses may itself be a hypothetical derivation. (For simplicity, we treat a judgement as a premiss-less derivation.)

    The notion of hypothetical judgement is internalised as the connective of implication. The introduction and elimination rules are as follows.

    In the introduction rule, the antecedent named u is discharged in the conclusion. This is a mechanism for delimiting the scope of the hypothesis: its sole reason for existence is to establish "B true"; it cannot be used for any other purpose, and in particular, it cannot be used below the introduction. As an example, consider the derivation of "A ? (B ? (A ? B)) true":

    This full derivation has no unsatisfied premisses; however, sub-derivations are hypothetical. For instance, the derivation of "B ? (A ? B) true" is hypothetical with antecedent "A true" (named u).

    With hypothetical derivations, we can now write the elimination rule for disjunction:

    In words, if A ? B is true, and we can derive C true both from A true and from B true, then C is indeed true. Note that this rule does not commit to either A true or B true. In the zero-ary case, i.e. for falsehood, we obtain the following elimination rule:

    This is read as: if falsehood is true, then any proposition C is true.

    Negation is similar to implication.

    The introduction rule discharges both the name of the hypothesis u, and the succedent p, i.e., the proposition p must not occur in the conclusion A. Since these rules are schematic, the interpretation of the introduction rule is: if from "A true" we can derive for every proposition p that "p true", then A must be false, i.e., "not A true". For the elimination, if both A and not A are shown to be true, then there is a contradiction, in which case every proposition C is true. Because the rules for implication and negation are so similar, it should be fairly easy to see that not A and A ? ? are equivalent, i.e., each is derivable from the other.

    Consistency, completeness, and normal forms

    A theory
    Theory

    For a more detailed account of theories as expressed in formal language as they are studied in mathematical logic see Theory A theory, in the general sense of the word, is an analytic structure designed to explain a set of observations....
     is said to be consistent if falsehood is not provable (from no assumptions) and is complete if every theorem is provable using the inference rules of the logic. These are statements about the entire logic, and are usually tied to some notion of a model
    Model theory

    In mathematics, model theory is the study of mathematical Structure such as Group , fields, graph , or even models of set theory, using tools from mathematical logic....
    . However, there are local notions of consistency and completeness that are purely syntactic checks on the inference rules, and require no appeals to models. The first of these is local consistency, also known as local reducibility, which says that any derivation containing an introduction of a connective followed immediately by its elimination can be turned into an equivalent derivation without this detour. It is a check on the strength of elimination rules: they must not be so strong that they include knowledge not already contained in its premisses. As an example, consider conjunctions.

    ------ u ------w
    A true B true
    ------------------ ?I
    A ? B true
    ---------- ?E1
    A true
    ?
    ------ u
    A true


    Dually, local completeness says that the elimination rules are strong enough to decompose a connective into the forms suitable for its introduction rule. Again for conjunctions:

    ---------- u
    A ? B true
    ?
    ---------- u ---------- u
    A ? B true A ? B true
    ---------- ?E1 ---------- ?E2
    A true B true
    ----------------------- ?I
    A ? B true


    These notions correspond exactly to ß-reduction and ?-expansion in the lambda calculus
    Lambda calculus

    In mathematical logic and computer science, lambda calculus, also written as ?-calculus, is a formal system designed to investigate function definition, function application and recursion....
    , using the Curry-Howard isomorphism. By local completeness, we see that every derivation can be converted to an equivalent derivation where the principal connective is introduced. In fact, if the entire derivation obeys this ordering of eliminations followed by introductions, then it is said to be normal. In a normal derivation all eliminations happen above introductions. In most logics, every derivation has an equivalent normal derivation, called a normal form. The existence of normal forms is generally hard to prove using natural deduction alone, though such accounts do exist in the literature, most notably by Dag Prawitz
    Dag Prawitz

    Dag Prawitz is a Swedish philosopher and logician. He is best known for his work on proof theory and the foundations of natural deduction....
     in 1961; see his book Natural deduction: a proof-theoretical study, A&W Stockholm 1965, no ISBN. It is much easier to show this indirectly by means of a cut-free sequent calculus
    Sequent calculus

    In proof theory and mathematical logic, the sequent calculus is a widely known proof calculus for first-order logic . The term "sequent calculus" applies both to a family of formal systems sharing a certain style of formal inference, and to its individual members, of which the first, and best known, is known under the name LK, distingui...
     presentation.

    First and higher-order extensions

    First Order Natural Deduction
    The logic of the earlier section is an example of a single-sorted logic, i.e., a logic with a single kind of object: propositions. Many extensions of this simple framework have been proposed; in this section we will extend it with a second sort of individuals or terms. More precisely, we will add a new kind of judgement, "t is a term" (or "t term") where t is schematic. We shall fix a countable set V of variables, another countable set F of function symbols, and construct terms as follows:

    v ? V
    ------ var-F
    v term

    f ? F t1 term t2 term ... tn term
    ------------------------------------------ app-F
    f (t1, t2, ..., tn) term
    For propositions, we consider a third countable set P of predicates, and define atomic predicates over terms with the following formation rule:

    f ? P t1 term t2 term ... tn term
    ------------------------------------------ pred-F
    f (t1, t2, ..., tn) prop
    In addition, we add a pair of quantified propositions: universal and existential:

    ------ u
    x term

    A prop
    ---------- ?Fu
    ?x. A prop

    ------ u
    x term

    A prop
    ---------- ?Fu
    ?x. A prop
    These quantified propositions have the following introduction and elimination rules.


    ------ u
    a term

    [a/x] A true
    ------------ ?Iu, a
    ?x. A true

    ?x. A true t term
    -------------------- ?E
    [t/x] A true

    [t/x] A true
    ------------ ?I
    ?x. A true

    ------ u ------------ v
    a term [a/x] A true

    ?x. A true C true
    -------------------------- ?Ea, u,v
    C true
    In these rules, the notation [t/x] A stands for the substitution of t for every (visible) instance of x in A, avoiding capture; see the article on lambda calculus
    Lambda calculus

    In mathematical logic and computer science, lambda calculus, also written as ?-calculus, is a formal system designed to investigate function definition, function application and recursion....
     for more detail about this standard operation. As before the superscripts on the name stand for the components that are discharged: the term a cannot occur in the conclusion of ?I (such terms are known as eigenvariables or parameters), and the hypotheses named u and v in ?E are localised to the second premiss in a hypothetical derivation. Although the propositional logic of earlier sections was decidable
    Decidability (logic)

    In logic, the term decidable refers to the existence of an effective method for determining membership in a set of formulas. Logical systems such as propositional logic are decidable if membership in their set of logical validity formulas can be effectively determined....
    , adding the quantifiers makes the logic undecidable.

    So far the quantified extensions are first-order: they distinguish propositions from the kinds of objects quantified over. Higher-order logic takes a different approach and has only a single sort of propositions. The quantifiers have as the domain of quantification the very same sort of propositions, as reflected in the formation rules:

    ------ u
    p prop

    A prop
    ---------- ?Fu
    ?p. A prop

    ------ u
    p prop

    A prop
    ---------- ?Fu
    ?p. A prop
    A discussion of the introduction and elimination forms for higher-order logic is beyond the scope of this article. It is possible to be in between first-order and higher-order logics. For example, second-order logic has two kinds of propositions, one kind quantifying over terms, and the second kind quantifying over propositions of the first kind.

    Proofs and type-theory

    The presentation of natural deduction so far has concentrated on the nature of propositions without giving a formal definition of a proof. To formalise the notion of proof, we alter the presentation of hypothetical derivations slightly. We label the antecedents with proof variables (from some countable set V of variables), and decorate the succedent with the actual proof. The antecedents or hypotheses are separated from the succedent by means of a turnstile
    Turnstile (symbol)

    In mathematical logic and computer science the symbol has taken the name turnstile because of its resemblance to a typical turnstile if viewed from above....
     . This modification sometimes goes under the name of localised hypotheses. The following diagram summarises the change.

    ---- u1 ---- u2 ... ---- un
    J1 J2 Jn

    J
    ?
    u1:J1, u2:J2, ..., un:Jn J
    The collection of hypotheses will be written as G when their exact composition is not relevant. To make proofs explicit, we move from the proof-less judgement "A true" to a judgement: "p is a proof of (A true)", which is written symbolically as "p : A true". Following the standard approach, proofs are specified with their own formation rules for the judgement "p proof". The simplest possible proof is the use of a labelled hypothesis; in this case the evidence is the label itself.

    u ? V
    ------- proof-F
    u proof

    --------------------- hyp
    u:A true u : A true
    For brevity, we shall leave off the judgemental label true in the rest of this article, i.e., write "G p : A". Let us re-examine some of the connectives with explicit proofs. For conjunction, we look at the introduction rule ?I to discover the form of proofs of conjunction: they must be a pair of proofs of the two conjuncts. Thus:

    p1 proof p2 proof
    -------------------- pair-F
    (p1, p2) proof

    G p1 : A G p2 : B
    ------------------------ ?I
    G (p1, p2) : A ? B
    The elimination rules ?E1 and ?E2 select either the left or the right conjunct; thus the proofs are a pair of projections — first (fst) and second (snd).

    p proof
    ----------- fst-F
    fst p proof

    G p : A ? B
    ------------- ?E1
    G fst p : A

    p proof
    ----------- snd-F
    snd p proof

    G p : A ? B
    ------------- ?E2
    G snd p : B
    For implication, the introduction form localises or binds the hypothesis, written using a ?; this corresponds to the discharged label. In the rule, "G, u:A" stands for the collection of hypotheses G, together with the additional hypothesis u.

    p proof
    ------------ ?-F
    ?u. p proof

    G, u:A p : B
    ----------------- ?I
    G ?u. p : A ? B

    p1 proof p2 proof
    ------------------- app-F
    p1 p2 proof

    G p1 : A ? B G p2 : A
    ---------------------------- ?E
    G p1 p2 : B
    With proofs available explicitly, one can manipulate and reason about proofs. The key operation on proofs is the substitution of one proof for an assumption used in another proof. This is commonly known as a substitution theorem, and can be proved by induction
    Mathematical induction

    Mathematical induction is a method of mathematical proof typically used to establish that a given statement is true of all natural numbers. It is done by proving that the first statement in the infinite sequence of statements is true, and then proving that if any one statement in the infinite sequence of statements is true, then...
     on the depth (or structure) of the second judgement.

    Substitution theorem : If G p1 : A and G, u:A p2 : B, then G [p1/u] p2 : B.

    So far the judgement "G p : A" has had a purely logical interpretation. In type theory
    Type theory

    In mathematics, logic and computer science, type theory is any of several formal systems that can serve as alternatives to naive set theory, or the study of such formalisms in general....
    , the logical view is exchanged for a more computational view of objects. Propositions in the logical interpretation are now viewed as types, and proofs as programs in the lambda calculus
    Lambda calculus

    In mathematical logic and computer science, lambda calculus, also written as ?-calculus, is a formal system designed to investigate function definition, function application and recursion....
    . Thus the interpretation of "p : A" is "the program p has type A". The logical connectives are also given a different reading: conjunction is viewed as product (×), implication as the function arrow, etc. The differences are only cosmetic, however. Type theory has a natural deduction presentation in terms of formation, introduction and elimination rules; in fact, the reader can easily reconstruct what is known as simple type theory from the previous sections.

    The difference between logic and type theory is primarily a shift of focus from the types (propositions) to the programs (proofs). Type theory is chiefly interested in the convertibility or reducibility of programs. For every type, there are canonical programs of that type which are irreducible; these are known as canonical forms or values. If every program can be reduced to a canonical form, then the type theory is said to be normalising (or weakly normalising). If the canonical form is unique, then the theory is said to be strongly normalising. Normalisability is a rare feature of most non-trivial type theories, which is a big departure from the logical world. (Recall that every logical derivation has an equivalent normal derivation.) To sketch the reason: in type theories that admit recursive definitions, it is possible to write programs that never reduce to a value; such looping programs can generally be given any type. In particular, the looping program has type ?, although there is no logical proof of "? true". For this reason, the propositions as types; proofs as programs paradigm only works in one direction, if at all: interpreting a type theory as a logic generally gives an inconsistent logic.

    Like logic, type theory has many extensions and variants, including first-order and higher-order versions. An interesting branch of type theory, known as dependent type theory, allows quantifiers to range over programs themselves. These quantified types are written as ? and S instead of ? and ?, and have the following formation rules:

    G A type G, x:A B type
    ----------------------------- ?-F
    G ?x:A. B type

    G A type G, x:A B type
    ---------------------------- S-F
    G Sx:A. B type
    These types are generalisations of the arrow and product types, respectively, as witnessed by their introduction and elimination rules.

    G, x:A p : B
    -------------------- ?I
    G ?x. p : ?x:A. B

    G p1 : ?x:A. B G p2 : A
    ----------------------------- ?E
    G p1 p2 : [p2/x] B

    G p1 : A G, x:A p2 : B
    ----------------------------- SI
    G (p1, p2) : Sx:A. B

    G p : Sx:A. B
    ---------------- SE1
    G fst p : A

    G p : Sx:A. B
    ------------------------ SE2
    G snd p : [fst p/x] B
    Dependent type theory in full generality is very powerful: it is able to express almost any conceivable property of programs directly in the types of the program. This generality comes at a steep price — checking that a given program is of a given type is undecidable. For this reason, dependent type theories in practice do not allow quantification over arbitrary programs, but rather restrict to programs of a given decidable index domain, for example integers, strings, or linear programs.

    Since dependent type theories allow types to depend on programs, a natural question to ask is whether it is possible for programs to depend on types, or any other combination. There are many kinds of answers to such questions. A popular approach in type theory is to allow programs to be quantified over types, also known as parametric polymorphism; of this there are two main kinds: if types and programs are kept separate, then one obtains a somewhat more well-behaved system called predicative polymorphism; if the distinction between program and type is blurred, one obtains the type-theoretic analogue of higher-order logic, also known as impredicative polymorphism. Various combinations of dependency and polymorphism have been considered in the literature, the most famous being the lambda cube
    Lambda cube

    In mathematical logic and type theory, the ?-cube is a framework for exploring the axes of refinement in Thierry Coquand's calculus of constructions, starting from the simply typed lambda calculus as the vertex of a cube placed at the origin, and the calculus of constructions as its diametric opposite vertex....
     of Henk Barendregt
    Henk Barendregt

    Hendrik Pieter Barendregt is a Netherlands logician, known for his work in lambda calculus and type theory.Barendregt studied mathematical logic at Utrecht University, obtaining his Masters in 1968 and his Ph.D....
    .

    The intersection of logic and type theory is a vast and active research area. New logics are usually formalised in a general type theoretic setting, known as a logical framework. Popular modern logical frameworks such as the calculus of constructions
    Calculus of constructions

    The calculus of constructions is a higher-order typed lambda calculus, initially developed by Thierry Coquand, where Data types are first-class values....
     and LF
    LF (logical framework)

    In type theory, the LF logical framework provides a means to define logics. It is based on a general treatment of syntax, rules and proofs by means of a dependent type theory lambda calculus....
     are based on higher-order dependent type theory, with various trade-offs in terms of decidability and expressive power. These logical frameworks are themselves always specified as natural deduction systems, which is a testament to the versatility of the natural deduction approach.

    Classical and modal logics

    For simplicity, the logics presented so far have been intuitionistic
    Intuitionistic logic

    Intuitionistic logic, or constructivist logic, is the symbolic logic system originally developed by Arend Heyting to provide a formal basis for Luitzen Egbertus Jan Brouwer's programme of intuitionism....
    . Classical logic
    Classical logic

    Classical logic identifies a class of formal logics that have been most intensively studied and most widely used. They are characterised by a number of properties; non-classical logics are those that lack one or more of these properties, which are:...
     extends intuitionistic logic with an additional axiom
    Axiom

    In traditional logic, an axiom or postulate is a proposition that is not proved or demonstrated but considered to be either self-evidence, or subject to necessary decision....
     or principle of excluded middle:

    For any proposition p, the proposition p ? ¬p is true.


    This statement is not obviously either an introduction or an elimination; indeed, it involves two distinct connectives. Gentzen's original treatment of excluded middle prescribed one of the following three (equivalent) formulations, which were already present in analogous forms in the systems of Hilbert
    David Hilbert

    David Hilbert was a Germany mathematician, recognized as one of the most influential and universal mathematicians of the 19th and early 20th centuries....
     and Heyting
    Arend Heyting

    Arend Heyting was a Netherlands mathematician and logician. He was a student of L.E.J. Brouwer at the Universiteit van Amsterdam, and did much to put intuitionistic logic on a footing where it could become part of mathematical logic....
    :


    -------------- XM1
    A ? ¬A true

    ¬¬A true
    ---------- XM2
    A true

    -------- u
    ¬A true

    p true
    ------ XM3u, p
    A true


    (XM3 is merely XM2 expressed in terms of E.) This treatment of excluded middle, in addition to being objectionable from a purist's standpoint, introduces additional complications in the definition of normal forms.

    A comparatively more satisfactory treatment of classical natural deduction in terms of introduction and elimination rules alone was first proposed by Parigot in 1992 in the form of a classical lambda calculus
    Lambda calculus

    In mathematical logic and computer science, lambda calculus, also written as ?-calculus, is a formal system designed to investigate function definition, function application and recursion....
     called
    Lambda-mu calculus

    In mathematical logic and computer science, the lambda-mu calculus is an extension of the lambda calculus, and was introduced by M. Parigot in [lambda-mu]calculus: an algorithmic interpretation of classical natural deduction, Springer LNAI no....
    . The key insight of his approach was to replace a truth-centric judgement A true with a more classical notion: in localised form, instead of G A, he used G ?, with ? a collection of propositions similar to G. G was treated as a conjunction, and ? as a disjunction. This structure is essentially lifted directly from classical sequent calculi
    Sequent calculus

    In proof theory and mathematical logic, the sequent calculus is a widely known proof calculus for first-order logic . The term "sequent calculus" applies both to a family of formal systems sharing a certain style of formal inference, and to its individual members, of which the first, and best known, is known under the name LK, distingui...
    , but the innovation in ?µ was to give a computational meaning to classical natural deduction proofs in terms of a callcc or a throw/catch mechanism seen in LISP
    Lisp

    A lisp is a speech impediment, historically also known as sigmatism. Stereotypically, people with a lisp are unable to pronounce sibilants , and replace them with Interdental consonants , though there are actually several kinds of lisps....
     and its descendants. (See also: first class control.)

    Another important extension was for modal
    Modal logic

    A modal logic is any system of mathematical logic#Formal logic that attempts to deal with notions of possibility and necessity. Traditionally, there are three "modes" or "moods" or "modalities" of the Copula to be, namely, Logical possibility, probability, and Necessary_and_sufficient_conditions#Necessary_conditions....
     and other logics that need more than just the basic judgement of truth. These were first described in a natural deduction style by Prawitz
    Dag Prawitz

    Dag Prawitz is a Swedish philosopher and logician. He is best known for his work on proof theory and the foundations of natural deduction....
     in 1965, and have since accumulated a large body of related work. To give a simple example, the modal logic of necessity requires one new judgement, "A valid", that is categorical with respect to truth:

    If "A true" under no assumptions of the form "B true", then "A valid".


    This categorical judgement is internalised as a unary connective A (read "necessarily A") with the following introduction and elimination rules:


    A valid
    -------- I
    A true

    A true
    -------- E
    A true


    Note that the premiss "A valid" has no defining rules; instead, the categorical definition of validity is used in its place. This mode becomes clearer in the localised form when the hypotheses are explicit. We write "O;G A true" where G contains the true hypotheses as before, and O contains valid hypotheses. On the right there is just a single judgement "A true"; validity is not needed here since "O A valid" is by definition the same as "O; A true". The introduction and elimination forms are then:

    O; p : A true
    -------------------- I
    O; box p : A true

    O;G p : A true
    ---------------------- E
    O;G unbox p : A true


    The modal hypotheses have their own version of the hypothesis rule and substitution theorem.


    ------------------------------- valid-hyp
    O, u: (A valid) ; G u : A true


    Modal substitution theorem : If O; p1 : A true and O, u: (A valid) ; G p2 : C true, then O;G [p1/u] p2 : C true.

    This framework of separating judgements into distinct collections of hypotheses, also known as multi-zoned or polyadic contexts, is very powerful and extensible; it has been applied for many different modal logics, and also for linear
    Linear logic

    fr:Logique lin?aireLinear logic is a substructural logic invented by Jean-Yves Girard as a refinement of both classical_logic and intuitionistic logic, combining the symmetries of the former with many of the Constructivism_ properties of the latter....
     and other substructural logic
    Substructural logic

    In mathematical logic, in particular in connection with proof theory, a number of substructural logics have been introduced, as systems of propositional logic that are weaker than the conventional one....
    s, to give a few examples.

    Comparison with other foundational approaches


    Sequent calculus


    The sequent calculus is the chief alternative to natural deduction as a foundation of mathematical logic
    Mathematical logic

    Mathematical logic is a subfield of mathematics and logic with close connections to computer science and philosophical logic. The field includes the mathematical study of logic and the applications of formal logic to other areas of mathematics....
    . In natural deduction the flow of information is bi-directional: elimination rules flow information downwards by deconstruction, and introduction rules flow information upwards by assembly. Thus, a natural deduction proof does not have a purely bottom-up or top-down reading, making it unsuitable for automation in proof search, or even for proof checking (or type-checking in type theory). To address this fact, Gentzen
    Gerhard Gentzen

    Gerhard Karl Erich Gentzen was a Germany mathematician and logician.He was one of Hermann Weyl's students at the University of G?ttingen from 1929 to 1933....
     in 1935 proposed his sequent calculus
    Sequent calculus

    In proof theory and mathematical logic, the sequent calculus is a widely known proof calculus for first-order logic . The term "sequent calculus" applies both to a family of formal systems sharing a certain style of formal inference, and to its individual members, of which the first, and best known, is known under the name LK, distingui...
    , though he initially intended it as a technical device for clarifying the consistency of predicate logic
    Predicate logic

    In mathematical logic, predicate logic is the generic term for symbolic formal systems like first-order logic, second-order logic, many-sorted logic or infinitary logic....
    . Kleene
    Stephen Cole Kleene

    Stephen Cole Kleene was an United States mathematician who helped lay the foundations for theoretical computer science. One of many distinguished students of Alonzo Church, Kleene, along with Alan Turing, Emil Post, and others, is best known as a founder of the branch of mathematical logic known as recursion theory....
    , in his seminal 1952 book Introduction to Metamathematics (ISBN 0-7204-2103-9), gave the first formulation of the sequent calculus in the modern style.

    In the sequent calculus all inference rules have a purely bottom-up reading. Inference rules can apply to elements on both sides of the turnstile
    Turnstile (symbol)

    In mathematical logic and computer science the symbol has taken the name turnstile because of its resemblance to a typical turnstile if viewed from above....
    . (To differentiate from natural deduction, this article uses a double arrow ? instead of the right tack for sequents.) The introduction rules of natural deduction are viewed as right rules in the sequent calculus, and are structurally very similar. The elimination rules on the other hand turn into left rules in the sequent calculus. To give an example, consider disjunction; the right rules are familiar:

    G ? A
    --------- ?R1
    G ? A ? B

    G ? B
    --------- ?R2
    G ? A ? B
    On the left:

    G, u:A ? C G, v:B ? C
    --------------------------- ?L
    G, w: (A ? B) ? C
    Recall the ?E rule of natural deduction in localised form:

    G A ? B G, u:A C G, v:B C
    --------------------------------------- ?E
    G C
    The proposition A ? B, which is the succedent of a premise in ?E, turns into a hypothesis of the conclusion in the left rule ?L. Thus, left rules can be seen as a sort of inverted elimination rule. This observation can be illustrated as follows:

    natural deductionsequent calculus

    ------ hyp
    |
    | elim. rules
    |
    ?
    ---------------------- ?? meet
    ?
    |
    | intro. rules
    |
    conclusion
    ?
    --------------------------- init
    ? ?
    | |
    | left rules | right rules
    | |
    conclusion
    In the sequent calculus, the left and right rules are performed in lock-step until one reaches the initial sequent, which corresponds to the meeting point of elimination and introduction rules in natural deduction. These initial rules are superficially similar to the hypothesis rule of natural deduction, but in the sequent calculus they describe a transposition or a handshake of a left and a right proposition:

    ---------- init
    G, u:A ? A
    The correspondence between the sequent calculus and natural deduction is a pair of soundness and completeness theorems, which are both provable by means of an inductive argument.

    Soundness of ? wrt. : If G ? A, then G A. Completeness of ? wrt. : If G A, then G ? A.

    It is clear by these theorems that the sequent calculus does not change the notion of truth, because the same collection of propositions remain true. Thus, one can use the same proof objects as before in sequent calculus derivations. As an example, consider the conjunctions. The right rule is virtually identical to the introduction rule


    sequent calculusnatural deduction

    G ? p1 : A G ? p2 : B
    --------------------------- ?R
    G ? (p1, p2) : A ? B

    G p1 : A G p2 : B
    ------------------------- ?I
    G (p1, p2) : A ? B
    The left rule, however, performs some additional substitutions that are not performed in the corresponding elimination rules.



    sequent calculusnatural deduction

    G, v: (A ? B), u:A ? p : C
    -------------------------------- ?L1
    G, v: (A ? B) ? [fst v/u] p : C

    G p : A ? B
    ------------- ?E1
    G fst p : A

    G, v: (A ? B), u:B ? p : C
    -------------------------------- ?L2
    G, v: (A ? B) ? [snd v/u] p : C

    G p : A ? B
    ------------- ?E2
    G snd p : B


    The kinds of proofs generated in the sequent calculus are therefore rather different from those of natural deduction. The sequent calculus produces proofs in what is known as the ß-normal ?-long form, which corresponds to a canonical representation of the normal form of the natural deduction proof. If one attempts to describe these proofs using natural deduction itself, one obtains what is called the intercalation calculus (first described by John Byrnes [3]), which can be used to formally define the notion of a normal form for natural deduction.

    The substitution theorem of natural deduction takes the form of a structural rule
    Structural rule

    In proof theory, a structural rule is an inference rule that does not refer to any logical connective, but instead operates on the judgements or sequents directly....
     or structural theorem known as cut in the sequent calculus.

    Cut (substitution) : If G ? p1 : A and G, u:A ? p2 : C, then G ? [p1/u] p2 : C.

    In most well behaved logics, cut is unnecessary as an inference rule, though it remains provable as a meta-theorem; the superfluousness of the cut rule is usually presented as a computational process, known as cut elimination. This has an interesting application for natural deduction; usually it is extremely tedious to prove certain properties directly in natural deduction because of an unbounded number of cases. For example, consider showing that a given proposition is not provable in natural deduction. A simple inductive argument fails because of rules like ?E or E which can introduce arbitrary propositions. However, we know that the sequent calculus is complete with respect to natural deduction, so it is enough to show this unprovability in the sequent calculus. Now, if cut is not available as an inference rule, then all sequent rules either introduce a connective on the right or the left, so the depth of a sequent derivation is fully bounded by the connectives in the final conclusion. Thus, showing unprovability is much easier, because there are only a finite number of cases to consider, and each case is composed entirely of sub-propositions of the conclusion. A simple instance of this is the global consistency theorem: " ? true" is not provable. In the sequent calculus version, this is manifestly true because there is no rule that can have " ? ?" as a conclusion! Proof theorists often prefer to work on cut-free sequent calculus formulations because of such properties.

    See also



    External links

    • Clemente, Daniel, ""
    • Natural deduction visualized as a game of dominoes.
    • Pelletier, Jeff, ""