Difference between revisions of "Propositional calculus" - New World Encyclopedia

From New World Encyclopedia
 
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
'''Propositional calculus''' is a calculus that represents the logical structure of ''truth-functional connectives'' (not, and, or, if…, then, etc), which combine some propositions to produce new propositions. It is often referred to as ''propositional logic''.
+
{{Paid}}{{Approved}}{{Images OK}}{{Submitted}}{{Copyedited}}
 
+
'''Propositional calculus''' or '''Sentential calculus''' is a calculus that represents the logical structure of ''truth-functional connectives'' ("not," "and," "or," "if…, then...," and others); the connectives such that their meanings determine the truth-value of a given sentence in which they occur once the truth-values of all the simple sentences in the given sentence are given. It is often referred to as '''Propositional logic'''.
For instance, consider the following argument:
+
{{toc}}
 +
==Overview==
 +
Consider the following argument:
 
:If Jack is innocent, then Jack has an alibi and Jack is not a murderer.
 
:If Jack is innocent, then Jack has an alibi and Jack is not a murderer.
 
:Jack does not have an alibi.
 
:Jack does not have an alibi.
 
:Therefore, Jack is not innocent.
 
:Therefore, Jack is not innocent.
  
The ''truth-values'', truth or falsity, of the sentences in this argument are exclusively dependent on whether each of the simple propositions in the sentences (i.e. "Jack is innocent", "Jack has an alibi", and "Jack is a murderer") is true or false. In other words, once the truth-values of the simple sentences are determined, the complex sentences in the arguments are determined only in terms of the meanings of the connectives, “if…then”, “not,” and “and”, which are examples of truth-functional connectives. Propositional logic, focusing on connectives of such kinds, clarifies what form a given argument <math> A </math> (such as the one in question here) has, and studies how the correctness or incorrectness of <math>A</math> depends on the truth-functional connectives that it contains.  
+
The ''truth-values'', truth or falsity, of the sentences in this argument are exclusively dependent on whether each of the simple sentences in the sentences, "Jack is innocent," "Jack has an alibi," and "Jack is a murderer" is true or false. In other words, once the truth-values of the simple sentences are determined, the complex sentences in the arguments are determined only in terms of the meanings of the connectives, “if…then...,“not,” and “and,which are examples of truth-functional connectives. Propositional calculus, focusing on connectives of such kinds, clarifies what form a given argument <math> A </math> (such as the one in question here) has, and studies how the correctness or incorrectness of <math>A</math> depends on the truth-functional connectives that it contains.  
  
The language of propositional calculus consists of ''propositional variables'', truth-functional connectives, (most often, <math>\lnot , \wedge , \vee , \rightarrow , \leftrightarrow</math>) and parentheses. Formulas are built up from propositional variables by using truth-functional connectives and parentheses.
+
The language of propositional calculus consists of ''propositional variables'', truth-functional connectives, (most familiar ones are <math>\lnot , \wedge , \vee , \rightarrow , \leftrightarrow</math>) and parentheses. Formulas are built up from propositional variables by using truth-functional connectives and parentheses.
  
To propositional variables, the truth-values are assigned and, relative to the truth-value assignment, the truth-value of an arbitrary'' well-formed formula'' (for the definition, see the section Syntax) that contains the propositional variables is calculated based on truth-functional connectives in the well-formed formula.
+
To propositional variables, either truth or falsity is assigned and, relative to the truth-value assignment, the truth-value of an arbitrary ''well-formed formula'' (for the definition, see the section [[Syntax]]) that contains the propositional variables is calculated based on the truth-functional connectives in the well-formed formula.
  
A propositional calculus has a set of ''axioms'' (possibly empty) and ''rules of inference''. There are various kinds of propositional calculus (we will see two kinds of systems below), for which the ''soundness'' and ''completeness'' can be proved. (for the definitions of soundness and completeness, see the correponding section below)
+
A propositional calculus has a set of ''axioms'' (possibly empty) and ''rules of inference''. There are various kinds of propositional calculi, for which the ''soundness'' and ''completeness'' can be proved. (for the definitions of soundness and completeness, see the corresponding section Soundness and Completeness)
  
==What Propositional Calculus Studies? ==
+
== Studies Under Propositional Calculus ==
Some sentences have ''truth-values'', truth or falsity, and some do not. The sentences of the latter kind are excluded from what propositional calculus studies. Thus, in propositional calculus, it is assumed that every sentence is either true or false. (This assumption is called ''the principle of bivalence''.)
+
Some sentences have ''truth-values'', truth or falsity, (declarative sentences are typical examples) and some do not (interrogative sentences, exclamatory sentences, and others). The sentences of the latter kind are excluded from what propositional calculus studies. Thus, in propositional calculus, it is assumed that every sentence is either true or false. (This assumption is called ''the principle of bivalence''.)
  
Among such sentences, the sentences that do not include sentential connectives such as and, or, etc. (e.g. “John is a bachelor.”) are called ''atomic sentences''. More complex sentences (e.g. “John is a bachelor and Ben is married”) are built from atomic sentences and sentential connectives.
+
Among such sentences, the sentences that do not include sentential connectives such as "and," "or," and others. (e.g. “John is a bachelor.”) are called ''atomic sentences''. More complex sentences (e.g. “John is a bachelor and Ben is married”) are built from atomic sentences and sentential connectives.
  
Some sentential connectives determine the truth-values of the complex sentences in which they occur, once the truth-values of atomic sentences that the complex sentences contain are determined. For instance, the truth-value of “John is a bachelor and Ben is married” is determined purely by the meaning of the connective “and” once the truth-values of the two atomic sentences “John is a bachelor” and “Ben is married” are determined. The connectives of such a kind is called ''truth-functional''. (Notice that this does not apply to all the sentential connectives. Consider “Ben is happy because Ben is married.”  The truth-value of this sentence is still undetermined even if both the atomic sentences in this sentence are true.) Truth-functional connectives are the connectives that propositional calculus studies. Examples of such connectives are "and", "or", "if…then..." (These connectives of a certain use only. Some uses of the connectives are not truth-functional. For instance, consider counterfactual statements), etc.
+
Some sentential connectives determine the truth-values of the complex sentences in which they occur, once the truth-values of atomic sentences that the complex sentences contain are determined. For instance, the truth-value of “John is a bachelor and Ben is married” is determined purely by the meaning of the connective “and” once the truth-values of the two atomic sentences “John is a bachelor” and “Ben is married” are determined. The connectives of such a kind is called ''truth-functional''. (Notice that this does not apply to all the sentential connectives. Consider “Ben is happy because Ben is married.”  The truth-value of this sentence is still undetermined even if both the atomic sentences in this sentence are true.) Truth-functional connectives are the connectives that propositional calculus studies. Examples of such connectives are "and," "or," "if…then..." (These connectives of a certain use only. Some uses of the connectives are not truth-functional. For instance, consider counterfactual statements).
  
 
==Syntax ==
 
==Syntax ==
The language of propositional calculus consists of 1. ''propositional variables'', usually annotated by ''p'', ''q'', ''r'',…, 2. truth-functional connectives, <math>\lnot , \wedge , \vee , \rightarrow , \leftrightarrow</math>, and 3. parentheses “(“ and “)”. Propositional variables represent atomic sentences and <math>\lnot , \wedge , \vee , \rightarrow</math> , and <math>\leftrightarrow</math> are usually considered as “not”, “and”, “or”, “if…then...”, and “...if and only if...” respectively. <math>\lnot</math> is called ''unary'' (meaning that it is attachable to one wff. For the definitnion of wffs, see below.) and the other four connectives are called ''binary'' (meaning that they combine two wffs). Parentheses are used to represent the punctuations in sentences.
+
The language of propositional calculus consists of 1. ''propositional variables'', usually annotated by ''p'', ''q'', ''r'',…, 2. truth-functional connectives, <math>\lnot , \wedge , \vee , \rightarrow , \leftrightarrow</math>, and 3. parentheses “(“ and “).” Propositional variables represent atomic sentences and <math>\lnot , \wedge , \vee , \rightarrow</math> , and <math>\leftrightarrow</math> are usually considered as “not,” “and,” “or,“if…then...,” and “...if and only if...” respectively. <math>\lnot</math> is called ''unary'' (meaning that it is attachable to one wff. For the definitnion of wffs, see below.) and the other four connectives are called ''binary'' (meaning that they combine two wffs). Parentheses are used to represent the punctuations in sentences.
  
 
''Well-formed formulas'' (wffs) are recursively built in the following way.
 
''Well-formed formulas'' (wffs) are recursively built in the following way.
Line 30: Line 32:
 
*If <math>\alpha</math> and <math>\beta</math> are wffs, then <math>(\alpha \star \beta)</math>  is a wff where <math>\star</math> is a binary connective.
 
*If <math>\alpha</math> and <math>\beta</math> are wffs, then <math>(\alpha \star \beta)</math>  is a wff where <math>\star</math> is a binary connective.
  
Conventionally the outermost set of parentheses is dropped. Also, the order of strength in which propositional connectives bind is stipulated as: <math>\leftrightarrow , \rightarrow , \ wedge</math> and <math>\vee , \lnot</math>. Therefore, taking these two conventions into account, say, the wff “<math>((\lnot p \vee q) \rightarrow r)</math>” built up by the above definition is written as “<math>\lnot p \vee q \rightarrow r</math>”.
+
Conventionally the outermost set of parentheses is dropped. Also, the order of strength in which propositional connectives bind is stipulated as: <math>\leftrightarrow , \rightarrow , \wedge</math> and <math>\vee , \lnot</math>. Therefore, taking these two conventions into account, say, the wff “<math>((\lnot p \vee q) \rightarrow r)</math>” built up by the above definition is written as “<math>\lnot p \vee q \rightarrow r</math>.
  
 
The connective in a given wff <math>\phi</math> that binds last is called ''the main connective'' of <math>\phi</math>. Thus, in the case of <math>\lnot p \vee q \rightarrow r</math>, the main connective is <math>\rightarrow</math>. Wffs with <math>\lnot , \wedge , \vee , \rightarrow ,</math> and <math>\leftrightarrow</math> as their main connectives are called ''negation'', ''conjunction'', ''disjunction'', ''conditional'', and ''biconditional'' respectively.
 
The connective in a given wff <math>\phi</math> that binds last is called ''the main connective'' of <math>\phi</math>. Thus, in the case of <math>\lnot p \vee q \rightarrow r</math>, the main connective is <math>\rightarrow</math>. Wffs with <math>\lnot , \wedge , \vee , \rightarrow ,</math> and <math>\leftrightarrow</math> as their main connectives are called ''negation'', ''conjunction'', ''disjunction'', ''conditional'', and ''biconditional'' respectively.
  
An ''argument'' is a set of wffs and a distinguished wff. The wffs of the former kind are called ''premises'' and the distinguished wff is called the ''conclusion''. The set of premises of a given argument can possibly be empty.
+
An ''argument'' consists of a set of wffs and a distinguished wff. The wffs of the former kind are called ''premises'' and the distinguished wff is called the ''conclusion''. The set of premises of a given argument can possibly be empty.
  
 
For instance, the set of sentences about Jack in the opening example is represented in the language of propositional logic as follows:
 
For instance, the set of sentences about Jack in the opening example is represented in the language of propositional logic as follows:
Line 56: Line 58:
 
A wff that gets T no matter what truth-value assignment is given is called a ''tautology''. A set <math>\Gamma</math> of wffs (maybe empty) ''implies'' a wff <math>\phi</math> if and only if <math>\phi</math> is T relative to every truth-value assignment ''V'' that assigns Ts to all the wffs in <math>\Gamma</math>. An argument, consisting of a set <math>\Gamma</math> of wffs and a wff <math>\phi</math>, is said to be ''valid'' if <math>\Gamma</math> implies <math>\phi</math>. (For instance, readers are invited to check that the argument about Jack is valid.)  
 
A wff that gets T no matter what truth-value assignment is given is called a ''tautology''. A set <math>\Gamma</math> of wffs (maybe empty) ''implies'' a wff <math>\phi</math> if and only if <math>\phi</math> is T relative to every truth-value assignment ''V'' that assigns Ts to all the wffs in <math>\Gamma</math>. An argument, consisting of a set <math>\Gamma</math> of wffs and a wff <math>\phi</math>, is said to be ''valid'' if <math>\Gamma</math> implies <math>\phi</math>. (For instance, readers are invited to check that the argument about Jack is valid.)  
 
   
 
   
If an argument, consisting of a premise set <math>\Gamma</math> and a conclusion <math>\phi</math>, is valid, , we write “<math>\Gamma \models \phi</math>”, which often reads as “<math>Gamma</math> implies <math>\phi</math>.” (For the left hand side of “<math>\models</math>,” the wffs in <math>\Gamma</math> are written with commas between them, e.g. if <math>\Gamma</math> is {''p'', ''q'', ''r''}, we write “''p'', ''q'', ''r'' <math>\models \phi</math>.”)  
+
If an argument, consisting of a premise set <math>\Gamma</math> and a conclusion <math>\phi</math>, is valid, , we write “<math>\Gamma \models \phi</math>,” which often reads as “<math>\Gamma</math> implies <math>\phi</math>.” (For the left hand side of “<math>\models</math>,” the wffs in <math>\Gamma</math> are written with commas between them, e.g. if <math>\Gamma</math> is {''p'', ''q'', ''r''}, we write “''p'', ''q'', ''r'' <math>\models \phi</math>.”)
  
 
==Propositional Calculi==
 
==Propositional Calculi==
 
===Proofs in a propositional calculus===
 
===Proofs in a propositional calculus===
A propositional calculus consists of a set of specified wff called ''axioms'' (the set can possibly be empty) and ''rules of inference''. A ''proof'' of an argument is a sequence of wffs in which (1) each wff is a premise, an axiom, or a wff that is derived from previous wffs in the sequence by a rule of inference and (2) the last wff of the sequence is the conclusion of the argument. If an argument, consisting of a premise set <math>\Gamma</math> and a conclusion <math>\phi</math>, has a proof, we write “<math>\Gamma \vdash \phi</math>”, which reads as “<math>\Gamma</math> proves <math>\phi</math>.” (The convention for the left hand side of “<math>\vdash</math>” is the same as the one for “<math>\models</math>”.)   
+
Propositional calculus consists of a set of specified wff called ''axioms'' (the set can possibly be empty) and ''rules of inference''. A ''proof'' of an argument is a sequence of wffs in which (1) each wff is a premise, an axiom, or a wff that is derived from previous wffs in the sequence by a rule of inference and (2) the last wff of the sequence is the conclusion of the argument. If an argument, consisting of a premise set <math>\Gamma</math> and a conclusion <math>\phi</math>, has a proof, we write “<math>\Gamma \vdash \phi</math>,” which reads as “<math>\phi</math> is provable from <math>\Gamma</math>.” (The convention for the left hand side of “<math>\vdash</math>” is the same as the one for “<math>\models</math>”.)   
  
 
Particularly, if there is a proof for an argument with an empty set of premises, i.e. if the conclusion of the argument can be derived only from axioms based on the rules of inference, then the conclusion is called a ''theorem''. Thus, if <math>\phi</math> is a theorem, we can write “<math>\vdash \phi</math>,” which reads as “<math>\phi</math> is a theorem.”
 
Particularly, if there is a proof for an argument with an empty set of premises, i.e. if the conclusion of the argument can be derived only from axioms based on the rules of inference, then the conclusion is called a ''theorem''. Thus, if <math>\phi</math> is a theorem, we can write “<math>\vdash \phi</math>,” which reads as “<math>\phi</math> is a theorem.”
  
There are various propositional calculi. We present two of the most famous ones below.
+
There are various propositional calculi, of which two of the most famous ones are provided below.
  
 
===Hilbert-Style Propositional Calculus===
 
===Hilbert-Style Propositional Calculus===
Line 77: Line 79:
 
*'''A3''' ''' <math>(\lnot \alpha \rightarrow \lnot \beta) \rightarrow ((\lnot \alpha \rightarrow \beta) \rightarrow \alpha)</math>
 
*'''A3''' ''' <math>(\lnot \alpha \rightarrow \lnot \beta) \rightarrow ((\lnot \alpha \rightarrow \beta) \rightarrow \alpha)</math>
  
The only rule of inference is [modus ponens], i.e. from <math>\alpha</math> and <math>\alpha \rightarrow \beta</math>, derive <math>\beta</math>.
+
The only rule of inference is [[modus ponens]], i.e. from <math>\alpha</math> and <math>\alpha \rightarrow \beta</math>, derive <math>\beta</math>.
  
Here is an example of a proof in this system for <math>p, (r \rightarrow p) \rightarrow (r \rightarrow (p \rightarrow (p \rightarrow s)) \vdash r\rightarrow s</math>:
+
Here is an example of a proof in this system for <math>p, (r \rightarrow p) \rightarrow (r \rightarrow (p \rightarrow s)) \vdash r\rightarrow s</math><ref>[http://www.iep.utm.edu/p/prop-log.htm Propositional Logic], The Internet Encyclopedia of Philosophy, 2006. Retrieved March 19, 2008.</ref>:
 
{| border="1" cellpadding="3"
 
{| border="1" cellpadding="3"
 
! style="background:#93D7AE;"| Number
 
! style="background:#93D7AE;"| Number
Line 85: Line 87:
 
! style="background:#93D7AE;"| Justification
 
! style="background:#93D7AE;"| Justification
 
|-
 
|-
| 1 || ''A'' || premiss
+
| 1 || <math>p</math> || A premiss
 +
|-
 +
| 2 || <math>(r \rightarrow p) \rightarrow (r \rightarrow (p \rightarrow s))</math> || A premise
 +
|-
 +
| 3 || <math>p \rightarrow (r \rightarrow p) </math> || An axiom of the form A1
 
|-
 
|-
| 2 || ''A'' ∨ ''A'' || From (1) by disjunction introduction
+
| 4 || <math>r \rightarrow p</math> || From 1 and 3 by modus ponens
 
|-
 
|-
| 3 || (''A'' ∨ ''A'') ∧ ''A'' || From (1) and (2) by conjunction introduction
+
| 5 || <math>r \rightarrow (p \rightarrow s) </math> || From 2 and 4 by modus ponens
 
|-
 
|-
| 4 || ''A'' || From (3) by conjunction elimination
+
| 6 || <math>(r \rightarrow (p\rightarrow s)) \rightarrow ((r \rightarrow p) \rightarrow (r \rightarrow s))</math> || An axiom of the form A2
 
|-
 
|-
| 5 || ''A'' ├ ''A'' || Summary of (1) through (4)
+
| 7 || <math>(r \rightarrow p) \rightarrow (r \rightarrow s)</math> || From 5 and 6 by modus ponens
 
|-
 
|-
| 6 || ├ ''A'' → ''A'' || From (5) by conditional proof
+
| 8 || <math>r \rightarrow s</math> || From 4 and 7 by modus ponens
 
|}
 
|}
 
  
 
===Natural Deduction===
 
===Natural Deduction===
Another example takes the language of propositional calculus that consists of propositional variables, the connectives, \lnot, \wedge, \vee, \rightarrow, \leftrightarrow, and parentheses. The set of axioms is empty. However, it has the following rules of inference:  
+
Another example takes the language of propositional calculus that consists of propositional variables, the connectives, <math>\lnot , \wedge , \vee , \rightarrow , \leftrightarrow ,</math> and parentheses. The set of axioms is empty. However, it has the following rules of inference:  
 
 
Here is an example of a proof in this system again for P, (R \rightarrow P) \rightarrow (R \rightarrow (P \rightarrow (P \rightarrow S)) \vdash R\rightarrow S.
 
 
 
===Soundness and Completeness===
 
A calculus is sound if, for all \Gamma and \phi, \Gamma \vdash \phi implies \Gamma \models \phi. A calculus is complete if, for all \Gamma and \phi, \Gamma \models \phi implies \Gamma \vdash \phi.
 
There are various sound and complete propositional calculi, i.e. the calculi in which the notion of proof and that of validity correspond. The two calculi above are the examples of sound and complete propositional calculi.
 
 
 
==Example 2.  Natural deduction system==
 
 
 
Let <math>\mathcal{L}_2 = \mathcal{L}\ (\Alpha,\ \Omega,\ \Zeta,\ \Iota)</math>, where <math>\Alpha,\ \Omega,\ \Zeta,\ \Iota</math> are defined as follows:
 
 
 
* The alpha set <math>\Alpha \!</math> is a finite set of symbols that is large enough to supply the needs of a given discussion, for example:
 
 
 
 
 
::: <math>\Alpha = \{p, q, r, s, t, u \} \,.</math>
 
 
 
 
 
* The omega set <math>\Omega = \Omega_1 \cup \Omega_2</math> partitions as follows:
 
 
 
 
 
::: <math>\Omega_1 = \{ \lnot \} \,,</math>
 
 
 
 
 
::: <math>\Omega_2 = \{ \land, \lor, \rightarrow, \leftrightarrow \} \,.</math>
 
In the following example of a propositional calculus,
 
the transformation rules are intended to be interpreted as the inference rules of a so-called ''[[natural deduction system]]''.  The particular system presented here has no initial points, which means that its interpretation for logical applications derives its [[theorem]]s from an empty axiom set.
 
 
 
* The set of initial points is empty, that is, <math>\Iota = \varnothing \,.</math>
 
 
 
* The set of transformation rules, <math>\Zeta ,\!</math>, is described as follows:
 
 
 
Our propositional calculus has ten inference rules. These rules allow us to derive other true formulae given a set of formulae that are assumed to be true. The first nine simply state that we can infer certain wffs from other wffs. The last rule however uses hypothetical reasoning in the sense that in the premise of the rule we temporarily assume an (unproven) hypothesis to be part of the set of inferred formulae to see if we can infer a certain other formula. Since the first nine rules don't do this they are usually described as ''non-hypothetical'' rules, and the last one as a ''hypothetical'' rule.
 
  
* '''[[Reductio ad absurdum]]''' (negation introduction)
+
* '''Reductio ad absurdum''' (negation introduction)
 
: From (''p''→''q''), (''p''→ ¬''q''), infer ¬''p''.
 
: From (''p''→''q''), (''p''→ ¬''q''), infer ¬''p''.
  
* '''[[Double negative elimination]]'''
+
* '''Double negative elimination'''
 
: From ¬¬''p'', infer ''p''.
 
: From ¬¬''p'', infer ''p''.
  
* '''[[Conjunction introduction]]'''
+
* '''Conjunction introduction'''
 
: From ''p'' and ''q'', infer (''p'' ∧ ''q'').
 
: From ''p'' and ''q'', infer (''p'' ∧ ''q'').
  
* '''[[Conjunction elimination]]'''
+
* '''Conjunction elimination'''
 
: From (''p'' ∧ ''q''), infer ''p'';
 
: From (''p'' ∧ ''q''), infer ''p'';
 
: From (''p'' ∧ ''q''), infer ''q''.
 
: From (''p'' ∧ ''q''), infer ''q''.
  
* '''[[Disjunction introduction]]'''
+
* '''Disjunction introduction'''
 
: From ''p'', infer (''p'' ∨ ''q'');
 
: From ''p'', infer (''p'' ∨ ''q'');
 
: From ''p'', infer (''q'' ∨ ''p'').
 
: From ''p'', infer (''q'' ∨ ''p'').
  
* '''[[Disjunction elimination]]'''
+
* '''Disjunction elimination'''
 
: From (''p'' ∨ ''q''), (''p'' → ''r''), (''q'' → ''r''), infer ''r''.
 
: From (''p'' ∨ ''q''), (''p'' → ''r''), (''q'' → ''r''), infer ''r''.
  
* '''[[Biconditional introduction]]'''
+
* '''Biconditional introduction'''
 
: From (''p'' → ''q''), (''q'' → ''p''), infer (''p'' ↔ ''q'').
 
: From (''p'' → ''q''), (''q'' → ''p''), infer (''p'' ↔ ''q'').
  
* '''[[Biconditional elimination]]'''
+
* '''Biconditional elimination'''
 
: From (''p'' ↔ ''q''), infer (''p'' → ''q'');
 
: From (''p'' ↔ ''q''), infer (''p'' → ''q'');
 
: From (''p'' ↔ ''q''), infer (''q'' → ''p'').
 
: From (''p'' ↔ ''q''), infer (''q'' → ''p'').
  
* '''[[Modus ponens]]''' (conditional elimination)
+
* '''Modus ponens''' (conditional elimination)
 
: From ''p'', (''p'' → ''q''), infer ''q''.
 
: From ''p'', (''p'' → ''q''), infer ''q''.
  
* '''[[Conditional proof]]''' (conditional introduction)
+
* '''Conditional proof''' (conditional introduction)
: If accepting ''p'' allows a proof of ''q'', infer (''p'' → ''q'').
+
: If assuming ''p'' allows a proof of ''q'', infer (''p'' → ''q'').
 +
 
 +
Here is an example of a proof in this system again for <math>p , (r \rightarrow p) \rightarrow (r \rightarrow (p \rightarrow s)) \vdash r\rightarrow s</math>.
 +
 
 +
{| border="1" cellpadding="3"
 +
! style="background:#93D7AE;"| Number
 +
! style="background:#93D7AE;"| wff
 +
! style="background:#93D7AE;"| Justification
 +
|-
 +
| 1 || <math>p</math> || A premise
 +
|-
 +
| 2 || <math>(r \rightarrow p) \rightarrow (r \rightarrow (p \rightarrow s))</math> || A premise
 +
|-
 +
| 3 || <math>r</math> || An assumption for a conditional proof
 +
|-
 +
| 4 || <math>p</math> || Iteration of 1
 +
|-
 +
| 5 || <math>r \rightarrow p </math> || From 3 and 4 by a conditional proof
 +
|-
 +
| 6 || <math>r \rightarrow (p\rightarrow s)</math> || From 2 and 5 by modus ponens
 +
|-
 +
| 7 || <math>r</math> || Assumption for a conditional proof
 +
|-
 +
| 8 || <math>p \rightarrow s</math> || From 6 and 7 by modus ponens
 +
|-
 +
| 9 || <math>s</math> || From 1 and 8 by modus ponens
 +
|-
 +
| 10 || <math>r \rightarrow s</math> || From 7 and 9 by a conditional proof
 +
|}
  
{| class="wikitable" align="center" style="background:white; width:100%"
+
===Famous Provable Arguments===
 +
Here are some of the most famous forms of arguments that are provable in both of the calculi:
 +
{| align="center" style="background:white; width:100%"
 
! align="center" colspan="3"| Basic and Derived Argument Forms
 
! align="center" colspan="3"| Basic and Derived Argument Forms
 
|-
 
|-
Line 282: Line 285:
 
| ''p'' or not ''p'' is true
 
| ''p'' or not ''p'' is true
 
|}
 
|}
 +
 
 +
===Soundness and Completeness===
 +
A calculus is ''sound'' if, for all <math>\Gamma</math> and <math>\phi, \Gamma \vdash \phi</math> implies <math>\Gamma \models \phi</math>. A calculus is ''complete'' if, for all <math>\Gamma</math> and <math>\phi</math>, <math>\Gamma \models \phi</math> implies <math>\Gamma \vdash \phi</math>.
  
==Proofs in propositional calculus==
+
There are various sound and complete propositional calculi (i.e. the calculi in which the notion of proof and that of validity correspond). The two calculi above are the examples of sound and complete propositional calculi.
 
 
One of the main uses of a propositional calculus, when interpreted for logical applications, is to determine relations of logical equivalence between propositional formulas.  These relationships are determined by means of the available transformation rules, sequences of which are called ''derivations'' or ''proofs''.
 
 
 
In the discussion to follow, a proof is presented as a sequences of numbered lines, with each line consisting of a single formula followed by a ''reason'' or ''justification'' for introducing that formula.  Each premiss of the argument, that is, an assumption introduced as a hypothesis of the argument, is listed at the beginning of the sequence and is marked as a "premiss" in lieu of other justification.  The conclusion is listed on the last line.  A proof is complete if every line follows from previous ones by the correct application of a transformation rule.  (For a contrasting approach, see [[proof-trees]]).
 
 
 
===Example of a proof===
 
 
 
The following is an example of a (syntactical) demonstration: <br>
 
'''Prove:''' ''A'' → ''A'' <br>
 
'''Proof:''' <br>
 
{| border="1" cellpadding="3"
 
! style="background:#93D7AE;"| Number
 
! style="background:#93D7AE;"| wff
 
! style="background:#93D7AE;"| Justification
 
|-
 
| 1 || ''A'' || premiss
 
|-
 
| 2 || ''A'' ∨ ''A'' || From (1) by disjunction introduction
 
|-
 
| 3 || (''A'' ∨ ''A'') ∧ ''A'' || From (1) and (2) by conjunction introduction
 
|-
 
| 4 || ''A'' || From (3) by conjunction elimination
 
|-
 
| 5 || ''A'' ├ ''A'' || Summary of (1) through (4)
 
|-
 
| 6 || ├ ''A'' → ''A'' || From (5) by conditional proof
 
|}
 
 
 
Interpret ''A'' ├ ''A'' as "Assuming ''A'', infer ''A''".  Read ├ ''A'' → ''A'' as "Assuming nothing, infer that ''A'' implies ''A''," or "It is a tautology that ''A'' implies ''A''," or "It is always true that ''A'' implies ''A''."
 
 
 
== Soundness and completeness of the rules ==
 
 
 
The crucial properties of this set of rules are that they are ''[[soundness|sound]]'' and ''[[completeness|complete]]''. Informally this means that the rules are correct and that no other rules are required. These claims can be made more formal as follows.
 
 
 
We define a ''truth assignment'' as a [[function (mathematics)|function]] that maps propositional variables to '''true''' or '''false'''.  Informally such a truth assignment can be understood as the description of a possible [[state of affairs]] (or [[possible world]]) where certain statements are true and others are not. The semantics of formulae can then be formalized by defining for which "state of affairs" they are considered to be true, which is what is done by the following definition.
 
 
 
We define when such a truth assignment ''A'' satisfies a certain [[Well-formed formula|wff]] with the following rules:
 
* ''A'' satisfies the propositional variable ''P'' [[iff]] ''A''(''P'') = '''true'''
 
* ''A'' satisfies ¬φ iff ''A'' does not satisfy φ
 
* ''A'' satisfies (φ ∧ ψ) iff ''A'' satisfies both φ and ψ
 
* ''A'' satisfies (φ ∨ ψ) iff ''A'' satisfies at least one of either φ or ψ
 
* ''A'' satisfies (φ → ψ) iff it is not the case that ''A'' satisfies φ but not ψ
 
* ''A'' satisfies (φ ↔ ψ) iff ''A'' satisfies both φ and ψ or satisfies neither one of them
 
 
 
With this definition we can now formalize what it means for a formula φ to be implied by a certain set ''S'' of formulae. Informally this is true if in all worlds that are possible given the set of formulae ''S'' the formula φ also holds. This leads to the following formal definition: We say that a set ''S'' of wffs ''semantically entails'' (or ''implies'') a certain wff φ if all truth assignments that satisfy all the formulae in ''S'' also satisfy φ.
 
 
 
Finally we define ''syntactical entailment'' such that φ is syntactically entailed by ''S'' iff we can derive it with the inference rules that were presented above in a finite number of steps.  This allows us to formulate exactly what it means for the set of inference rules to be sound and complete:
 
; '''Soundness''' : If the set of wffs ''S'' syntactically entails wff φ then ''S'' semantically entails φ
 
; '''Completeness''' : If the set of wffs ''S'' semantically entails wff φ then ''S'' syntactically entails φ
 
For the above set of rules this is indeed the case.
 
 
 
===Sketch of a soundness proof===
 
 
 
(For most [[logical system]]s, this is the comparatively "simple" direction of proof)
 
  
Notational conventions:  Let "''G''" be a variable ranging over sets of sentences.  Let "''A''", "''B''", and "''C''" range over sentences.  For "''G'' syntactically entails ''A''" we write "''G'' proves ''A''". For "''G'' semantically entails ''A''" we write "''G'' implies ''A''".
+
==Notes==
 
+
<references/>
We want to show: (''A'')(''G'')(If ''G'' proves ''A'' then ''G'' implies ''A'')
 
 
 
We note that "''G'' proves ''A''" has an inductive definition, and that gives us the immediate resources for demonstrating claims of the form "If ''G'' proves ''A'' then ..."  So our proof proceeds by induction.
 
 
 
*I. Basis. Show: If ''A'' is a member of ''G'' then ''G'' implies ''A''
 
*[II. Basis. Show: If ''A'' is an axiom, then ''G'' implies ''A'']
 
*III. Inductive step:
 
::(a) Assume for arbitrary ''G'' and ''A'' that if ''G'' proves ''A'' then ''G'' implies ''A''.  (If necessary, assume this for arbitrary ''B'', ''C'', etc. as well)
 
::(b) For each possible application of a rule of inference to ''A'', leading to a new sentence ''B'', show that ''G'' implies ''B''.
 
 
 
(N.B. Basis Step II can be omitted for the above calculus, which is a [[natural deduction]] system and so has no axioms.  Basically, it involves showing that each of the axioms is a (semantic) logical truth.)
 
 
 
The Basis step(s) demonstrate(s) that the simplest provable sentences from G are also implied by ''G'', for any ''G''.  (The is simple, since the semantic fact that a set implies any of its members, is also trivial.) The Inductive step will systematically cover all the further sentences that might be provable—by considering each case where we might reach a logical conclusion using an inference rule—and shows that if a new sentence is provable, it is also logically implied. (For example, we might have a rule telling us that from "''A''" we can derive "''A'' or ''B''".  In III.(a) We assume that if ''A'' is provable it is implied.  We also know that if A is provable then "''A'' or ''B''" is provable.  We have to show that then "''A'' or ''B''" too is implied.  We do so by appeal to the semantic definition and the assumption we just made. ''A'' is provable from ''G'', we assume.  So it is also implied by ''G''. So any semantic valuation making all of ''G'' true makes ''A'' true.  But any valuation making A true makes "''A'' or ''B''" true, by the defined semantics for "or".  So any valuation which makes all of ''G'' true makes "''A'' or ''B''" true.  So "''A'' or ''B''" is implied.)  Generally, the Inductive step will consist of a lengthy but simple [[case-by-case analysis]] of all the rules of inference, showing that each "preserves" semantic implication.
 
 
 
By the definition of provability, there are no sentences provable other than by being a member of ''G'', an axiom, or following by a rule; so if all of those are semantically implied, the deduction calculus is sound.
 
 
 
===Sketch of completeness proof===
 
 
 
(This is usually the much harder direction of proof.)
 
 
 
We adopt the same notational conventions as above.
 
 
 
We want to show: If ''G'' implies ''A'', then ''G'' proves ''A''. We proceed by [[contraposition]]: We show instead that If ''G'' does '''not''' prove ''A'' then ''G'' does '''not''' imply ''A''.
 
 
 
*I. ''G'' does not prove ''A''. (Assumption)
 
*II. If ''G'' does not prove ''A'', then we can construct an (infinite) "Maximal Set", ''G''*, which is a superset of ''G'' and which also does not prove ''A''.
 
**(a)Place an "ordering" on all the sentences in the language. (e.g., alphabetical ordering), and number them ''E''<sub>1</sub>, ''E''<sub>2</sub>, ...
 
**(b)Define a series ''G''<sub>''n''</sub> of sets (''G''<sub>0</sub>, ''G''<sub>1</sub> ... ) inductively, as follows.  (i)''G''<sub>0</sub> = ''G''.  (ii) If {''G''<sub>''k''</sub>, ''E''<sub>(''k''+1)</sub>} proves ''A'', then ''G''<sub>(''k''+1)</sub> = ''G''<sub>''k''</sub>.  (iii) If {''G''<sub>''k''</sub>, ''E''<sub>(''k''+1)</sub>} does '''not''' prove ''A'', then ''G''<sub>(k+1)</sub> = {''G''<sub>''k''</sub>, ''E''<sub>(''k''+1)</sub>}
 
**(c)Define ''G''* as the union of all the ''G''<sub>''n''</sub>.  (That is, ''G''* is the set of all the sentences that are in any ''G''<sub>''n''</sub>).
 
**(d) It can be easily shown that (i) ''G''* contains (is a superset of) ''G'' (by (b.i)); (ii) ''G''* does not prove ''A'' (because if it proves ''A'' then some sentence was added to some ''G''<sub>''n''</sub> which caused it to prove ''A''; but this was ruled out by definition); and (iii) ''G''* is a "Maximal Set" (with respect to ''A''): If ''any'' more sentences whatever were added to ''G''*, it ''would'' prove ''A''.  (Because if it were possible to add any more sentences, they should have been added when they were encountered during the construction of the ''G''<sub>''n''</sub>, again by definition)
 
*III.  If ''G''* is a Maximal Set (wrt ''A''), then it is "truth-like".  This means that it contains the sentence "''C''" only if it does ''not'' contain the sentence not-''C''; If it contains "''C''" and contains "If ''C'' then ''B''" then it also contains "''B''"; and so forth.
 
*IV.  If ''G''* is truth-like there is a "''G''*-Canonical" valuation of the language: one that makes every sentence in ''G''* true and everything outside ''G''* false while still obeying the laws of semantic composition in the language.
 
*V.  A ''G''*-canonical valuation will make our original set ''G'' all true, and make ''A'' false.
 
*VI. If there is a valuation on which ''G'' are true and ''A'' is false, then ''G'' does not (semantically) imply ''A''.
 
 
 
[[Q.E.D.]]
 
 
 
===Another outline for a completeness proof===
 
If a formula is a [[tautology]], then there is a [[truth table]] for it which shows that each valuation yields the value true for the formula. Consider such a valuation. By mathematical induction on the length of the subformulas, show that the truth or falsity of the subformula follows from the truth or falsity (as appropriate for the valuation) of each propositional variable in the subformula. Then combine the lines of the truth table together two at a time by using "(P is true implies S) implies ((P is false implies S) implies S)". Keep repeating this until all dependencies on propositional variables have been eliminated. The result is that we have proved the given tautology. Since every tautology is provable, the logic is complete.
 
 
 
== Alternative calculus ==
 
It is possible to define another version of propositional calculus, which defines most of the syntax of the logical operators by means of axioms, and which uses only one inference rule.
 
 
 
===Axioms===
 
 
 
Let φ, χ and ψ stand for well-formed formulas.  (The wff's themselves would not contain any Greek letters, but only capital Roman letters, connective operators, and parentheses.) Then the axioms are
 
 
 
{| class="wikitable" align="center" style="background:white; width:100%"
 
! align="center" colspan="3"| Axioms
 
|-
 
! Name
 
! Axiom Schema
 
! Description
 
|-
 
| THEN-1
 
| φ → (χ → φ)
 
| Add hypothesis χ, implication introduction
 
|-
 
| THEN-2
 
| (φ → (χ → ψ)) → ((φ → χ) → (φ → ψ))
 
| Distribute hypothesis φ over implication
 
|-
 
| AND-1
 
| φ ∧ χ → φ
 
| Eliminate conjunction
 
|-
 
| AND-2
 
| φ ∧ χ → χ
 
| &nbsp;
 
|-
 
| AND-3
 
| φ → (χ → (φ ∧ χ))
 
| Introduce conjunction
 
|-
 
| OR-1
 
| φ → φ ∨ χ
 
| Introduce disjunction
 
|-
 
| OR-2
 
| χ → φ ∨ χ
 
| &nbsp;
 
|-
 
| OR-3
 
| (φ → ψ) → ((χ → ψ) → (φ ∨ χ → ψ))
 
| Eliminate disjunction
 
|-
 
| NOT-1
 
| (φ → χ) → ((φ → ¬χ) → ¬ φ)
 
| Introduce negation
 
|-
 
| NOT-2
 
| φ → (¬φ → χ)
 
| Eliminate negation
 
|-
 
| NOT-3
 
| φ ∨ ¬φ
 
| Excluded middle, classical logic
 
|-
 
| IFF-1
 
| (&phi; &harr; &chi;) &rarr; (&phi; &rarr; &chi;)
 
| Eliminate equivalence
 
|-
 
| IFF-2
 
| (&phi; &harr; &chi;) &rarr; (&chi; &rarr; &phi;)
 
| &nbsp;
 
|-
 
| IFF-3
 
| (&phi; &rarr; &chi;) &rarr; ((&chi; &rarr; &phi;) &rarr; (&phi; &harr; &chi;))
 
| Introduce equivalence
 
|}
 
 
 
Axiom THEN-2 may be considered to be a "distributive property of implication with respect to implication." <br /> 
 
Axioms AND-1 and AND-2 correspond to "conjunction elimination". The relation between AND-1 and AND-2 reflects the commutativity of the conjunction operator.  <br />
 
Axiom AND-3 corresponds to "conjunction introduction."  <br />
 
Axioms OR-1 and OR-2 correspond to "disjunction introduction." The relation between OR-1 and OR-2 reflects the commutativity of the disjunction operator.  <br />
 
Axiom NOT-1 corresponds to "reductio ad absurdum."  <br />
 
Axiom NOT-2 says that "anything can be deduced from a contradiction."  <br />
 
Axiom NOT-3 is called "[[law of excluded middle|tertium non datur]]" ([[Latin]]: "a third is not given") and reflects the semantic valuation of propositional formulae: a formula can have a truth-value of either true or false.  There is no third truth-value, at least not in classical logic.  [[Intuitionistic logic]]ians do not accept the axiom NOT-3. <br />
 
 
 
=== Inference rule ===
 
The inference rule is [[modus ponens]]:
 
* <math> \phi, \ \phi \rightarrow \chi \vdash \chi </math>.
 
 
 
=== Meta-inference rule ===
 
Let a demonstration be represented by a sequence, with hypotheses to the left of the turnstile and the conclusion to the right of the turnstile.  Then the [[deduction theorem]] can be stated as follows:
 
: ''If the sequence''
 
::<math> \phi_1, \ \phi_2, \ ... , \ \phi_n, \ \chi \vdash \psi </math>
 
: ''has been demonstrated, then it is also possible to demonstrate the sequence''
 
::<math> \phi_1, \ \phi_2, \ ..., \ \phi_n \vdash \chi \rightarrow \psi </math>.
 
 
 
This deduction theorem (DT) is not itself formulated with propositional calculus: it is not a theorem of propositional calculus, but a theorem about propositional calculus.  In this sense, it is a meta-theorem, comparable to theorems about the soundness or completeness of propositional calculus.
 
 
 
On the other hand, DT is so useful for simplifying the syntactical proof process that it can be considered and used as another inference rule, accompanying modus ponens.  In this sense, DT corresponds to the natural [[conditional proof]] inference rule which is part of the first version of propositional calculus introduced in this article.
 
 
 
The converse of DT is also valid:
 
: ''If the sequence''
 
::<math> \phi_1, \ \phi_2, \ ..., \ \phi_n \vdash \chi \rightarrow \psi </math>
 
: ''has been demonstrated, then it is also possible to demonstrate the sequence''
 
::<math> \phi_1, \ \phi_2, \ ... , \ \phi_n, \ \chi \vdash \psi </math>
 
in fact, the validity of the converse of DT is almost trivial compared to that of DT:
 
: ''If''
 
:: <math> \phi_1, \ ... , \ \phi_n \vdash \chi \rightarrow \psi </math>
 
: ''then''
 
:: 1: <math> \phi_1, \ ... , \ \phi_n, \ \chi \vdash \chi \rightarrow \psi </math>
 
:: 2: <math> \phi_1, \ ... , \ \phi_n, \ \chi \vdash \chi </math>
 
: ''and from (1) and (2) can be deduced''
 
:: 3: <math> \phi_1, \ ... , \ \phi_n, \ \chi \vdash \psi </math>
 
: ''by means of modus ponens, Q.E.D.''
 
 
 
The converse of DT has powerful implications: it can be used to convert an axiom into an inference rule.  For example, the axiom AND-1,
 
: <math> \vdash \phi \wedge \chi \rightarrow \phi </math>
 
can be transformed by means of the converse of the deduction theorem into the inference rule
 
: <math> \phi \wedge \chi \vdash \phi </math>
 
which is [[conjunction elimination]], one of the ten inference rules used in the first version (in this article) of the propositional calculus.
 
 
 
===Example of a proof===
 
 
 
The following is an example of a (syntactical) demonstration, involving only axioms THEN-1 and THEN-2: <br>
 
'''Prove:''' ''A'' → ''A'' (Reflexivity of implication).<br>
 
'''Proof:'''
 
:1. (''A'' → ((''B'' → ''A'') → ''A'')) → ((''A'' → (''B'' → ''A'')) → (''A'' → ''A''))   
 
::Axiom THEN-2 with φ = ''A'', χ = ''B'' → ''A'', ψ = ''A''
 
:2. ''A'' → ((''B'' → ''A'') → ''A'')
 
::Axiom THEN-1 with φ = ''A'', χ = ''B'' → ''A''
 
:3. (''A'' → (''B'' → ''A'')) → (''A'' → ''A'')
 
::From (1) and (2) by modus ponens.
 
:4. ''A'' → (''B'' → ''A'')   
 
::Axiom THEN-1 with φ = ''A'', χ = ''B''
 
:5. ''A'' → ''A''
 
::From (3) and (4) by modus ponens.
 
 
 
==Graphical calculi==
 
{{main|Logical graph}}
 
 
 
It is possible to generalize the definition of a formal language from a set of finite sequences over a finite basis to include many other sets of mathematical structures, so long as they are built up by finitary means from finite materials.  What's more, many of these families of formal structures are especially well-suited for use in logic.
 
 
 
For example, there are many families of [[graph (mathematics)|graph]]s that are close enough analogues of formal languages that the concept of a calculus is quite easily and naturally extended to them.  Indeed, many species of graphs arise as ''[[parse graph]]s'' in the syntactic analysis of the corresponding families of text stuctures.  The exigencies of practical computation on formal languages frequently demand that text strings be converted into [[pointer structure]] renditions of parse graphs, simply as a matter of checking whether strings are wffs or not.  Once this is done, there are many advantages to be gained from developing the graphical analogue of the calculus on strings.  The mapping from strings to parse graphs is called ''[[parsing]]'' and the inverse mapping from parse graphs to strings is achieved by an operation that is called ''[[graph traversal|traversing]]'' the graph.
 
 
 
==Other logical calculi==
 
 
 
Propositional calculus is about the simplest kind of logical calculus in any current use.  (Aristotelian "syllogistic" calculus, which is largely supplanted in modern logic, is in ''some'' ways simpler — but in other ways more complex — than propositional calculus.)  It can be extended in several ways.
 
 
 
The most immediate way to develop a more complex logical calculus is to introduce rules that are sensitive to more fine-grained details of the sentences being used.  When the "atomic sentences" of propositional logic are broken up into [[singular term|terms]], [[variable]]s, [[predicate]]s, and [[quantifier]]s, they yield [[first-order logic]], or first-order predicate logic, which keeps all the rules of propositional logic and adds some new ones.  (For example, from "All dogs are mammals" we may infer "If Rover is a dog then Rover is a mammal.)
 
 
 
With the tools of first-order logic it is possible to formulate a number of theories, either with explicit axioms or by rules of inference, that can themselves be treated as logical calculi.  [[Arithmetic]] is the best known of these; others include [[set theory]] and [[mereology]].
 
 
 
[[Modal logic]] also offers a variety of inferences that cannot be captured in propositional calculus.  For example, from "Necessarily ''p''" we may infer that ''p''.  From ''p'' we may infer "It is possible that ''p''".
 
 
 
[[Many-valued logic]]s are those allowing sentences to have values other than ''true'' and ''false''.  (For example, ''neither'' and ''both'' are standard "extra values"; "continuum logic" allows each sentence to have any of an infinite number of "degrees of truth" between ''true'' and ''false''.)  These logics often require calculational devices quite distinct from propositional calculus.
 
  
 
==References==
 
==References==
 +
* Brown, Frank Markham. 2003. ''Boolean Reasoning: The Logic of Boolean Equations''. 1st edition, Kluwer Academic Publishers, Norwell, MA. 2nd edition, Dover Publications, Mineola, New York. ISBN 9780486427850
  
* [[Frank Markham Brown|Brown, Frank Markham]] (2003), ''Boolean Reasoning:  The Logic of Boolean Equations'', 1st edition, Kluwer Academic Publishers, Norwell, MA.  2nd edition, Dover Publications, Mineola, NY, 2003.
+
* Chang, C.C., and H.J. Keisler. 1973. ''Model Theory''. Amsterdam, Netherlands: North-Holland. ISBN 9780444880543
 
 
* [[C.C. Chang|Chang, C.C.]], and [[H.J. Keisler|Keisler, H.J.]] (1973), ''Model Theory'', North-Holland, Amsterdam, Netherlands.
 
 
 
* [[Zvi Kohavi|Kohavi, Zvi]] (1978), ''Switching and Finite Automata Theory'', 1st edition, McGraw–Hill, 1970.  2nd edition, McGraw–Hill, 1978.
 
 
 
* [[Robert R. Korfhage|Korfhage, Robert R.]] (1974), ''Discrete Computational Structures'', Academic Press, New York, NY.
 
  
* [[Joachim Lambek|Lambek, J.]] and [[P.J. Scott|Scott, P.J.]] (1986), ''Introduction to Higher Order Categorical Logic'', Cambridge University Press, Cambridge, UK.
+
* Klement, Kevin C. 2006. [http://www.iep.utm.edu/p/prop-log.htm "Propositional Logic"] in ''Internet Encyclopedia of Philosophy''. edited by  James Fieser and Bradley Dowden. The Internet Encylopedia of Philosophy.
  
* [[Elliot Mendelson|Mendelson, Elliot]] (1964), ''Introduction to Mathematical Logic'', D. Van Nostrand Company.
+
* Kohavi, Zvi. 1978. ''Switching and Finite Automata Theory''. 1st edition, McGraw–Hill, 1970. 2nd edition, McGraw–Hill, 1978. ISBN 9780070353107
  
==See also==
+
* Korfhage, Robert R. 1974. ''Discrete Computational Structures'', Academic Press, New York, NY. ISBN 0124208606
===Logical levels===
 
  
* [[Zeroth order logic]]
+
* Lambek, J., and P.J. Scott. 1986. ''Introduction to Higher Order Categorical Logic''. Cambridge University Press, Cambridge, UK. ISBN 9780521356534
* [[First order logic]]
 
* [[Second order logic]]
 
* [[Higher order logic]]
 
  
===Building blocks===
+
* Mendelson, Elliot. 1964. ''Introduction to Mathematical Logic''. D. Van Nostrand Company. ISBN 9780412808302
{{col-begin}}
+
==External Links==
{{col-break}}
+
All links retrieved December 1, 2022.
* [[Exclusive disjunction]]
+
*[http://www.iep.utm.edu/p/prop-log.htm Propositional logic, The Internet Encyclopedia of Philosophy]
* [[Logical conjunction]]
+
*[http://plato.stanford.edu/entries/propositions/ Propositions, Stanford Encyclopedia of Philosophy]
* [[Logical disjunction]]
+
===General Philosophy Sources===
* [[Logical equality]]
+
*[http://plato.stanford.edu/ Stanford Encyclopedia of Philosophy]
{{col-break}}
+
*[http://www.iep.utm.edu/ The Internet Encyclopedia of Philosophy]
* [[Material conditional|Logical implication]]
+
*[http://www.bu.edu/wcp/PaidArch.html Paideia Project Online]
* [[Logical NAND]]
+
*[http://www.gutenberg.org/ Project Gutenberg]  
* [[Logical NOR]]
 
* [[Negation]]
 
{{col-end}}
 
  
===Related topics===
 
{{col-begin}}
 
{{col-break}}
 
* [[Ampheck]]
 
* [[Boolean algebra]]
 
* [[Boolean algebra topics]]
 
* [[Boolean domain]]
 
* [[Boolean function]]
 
* [[Boolean logic]]
 
* [[Boolean-valued function]]
 
* [[Categorical logic]]
 
* [[Combinational logic]]
 
{{col-break}}
 
* [[Combinatory logic]]
 
* [[Conceptual graph]]
 
* [[Disjunctive syllogism]]
 
* [[Entitative graph]]
 
* [[Existential graph]]
 
* [[Frege's propositional calculus]]
 
* [[Implicational propositional calculus]]
 
* [[Intuitionistic propositional calculus]]
 
* [[Laws of Form]]
 
{{col-break}}
 
* [[Logical graph]]
 
* [[Logical value]]
 
* [[Minimal negation operator]]
 
* [[Multigrade operator]]
 
* [[Operation (mathematics)|Operation]]
 
* [[Parametric operator]]
 
* [[Peirce's law]]
 
* [[Symmetric difference]]
 
* [[Truth table]]
 
{{col-end}}
 
 
===Related works===
 
 
* [[Douglas Hofstadter|Hofstadter, D.R.]], ''[[Gödel, Escher, Bach]]''
 
 
==External links==
 
 
* [[Kevin C. Klement|Klement, Kevin C.]] (2006), "Propositional Logic", in James Fieser and Bradley Dowden (eds.), ''[[Internet Encyclopedia of Philosophy]]'', [http://www.iep.utm.edu/p/prop-log.htm Eprint].
 
 
* [http://www.ltn.lv/~podnieks/mlog/ml2.htm Introduction to Mathematical Logic]
 
 
* [http://www.visualstatistics.net/Scaling/Propositional%20Calculus/Elements%20of%20Propositional%20Calculus.htm Elements of Propositional Calculus]
 
 
[[Category:Mathematical logic]]
 
 
[[Category:Philosophy and religion]]
 
[[Category:Philosophy and religion]]
 
[[Category:Philosophy]]
 
[[Category:Philosophy]]
 
[[Category:Logic]]
 
[[Category:Logic]]
 
  
 
{{Credit|70270945}}
 
{{Credit|70270945}}

Latest revision as of 00:23, 2 December 2022

Propositional calculus or Sentential calculus is a calculus that represents the logical structure of truth-functional connectives ("not," "and," "or," "if…, then...," and others); the connectives such that their meanings determine the truth-value of a given sentence in which they occur once the truth-values of all the simple sentences in the given sentence are given. It is often referred to as Propositional logic.

Overview

Consider the following argument:

If Jack is innocent, then Jack has an alibi and Jack is not a murderer.
Jack does not have an alibi.
Therefore, Jack is not innocent.

The truth-values, truth or falsity, of the sentences in this argument are exclusively dependent on whether each of the simple sentences in the sentences, "Jack is innocent," "Jack has an alibi," and "Jack is a murderer" is true or false. In other words, once the truth-values of the simple sentences are determined, the complex sentences in the arguments are determined only in terms of the meanings of the connectives, “if…then...,” “not,” and “and,” which are examples of truth-functional connectives. Propositional calculus, focusing on connectives of such kinds, clarifies what form a given argument (such as the one in question here) has, and studies how the correctness or incorrectness of depends on the truth-functional connectives that it contains.

The language of propositional calculus consists of propositional variables, truth-functional connectives, (most familiar ones are ) and parentheses. Formulas are built up from propositional variables by using truth-functional connectives and parentheses.

To propositional variables, either truth or falsity is assigned and, relative to the truth-value assignment, the truth-value of an arbitrary well-formed formula (for the definition, see the section Syntax) that contains the propositional variables is calculated based on the truth-functional connectives in the well-formed formula.

A propositional calculus has a set of axioms (possibly empty) and rules of inference. There are various kinds of propositional calculi, for which the soundness and completeness can be proved. (for the definitions of soundness and completeness, see the corresponding section Soundness and Completeness)

Studies Under Propositional Calculus

Some sentences have truth-values, truth or falsity, (declarative sentences are typical examples) and some do not (interrogative sentences, exclamatory sentences, and others). The sentences of the latter kind are excluded from what propositional calculus studies. Thus, in propositional calculus, it is assumed that every sentence is either true or false. (This assumption is called the principle of bivalence.)

Among such sentences, the sentences that do not include sentential connectives such as "and," "or," and others. (e.g. “John is a bachelor.”) are called atomic sentences. More complex sentences (e.g. “John is a bachelor and Ben is married”) are built from atomic sentences and sentential connectives.

Some sentential connectives determine the truth-values of the complex sentences in which they occur, once the truth-values of atomic sentences that the complex sentences contain are determined. For instance, the truth-value of “John is a bachelor and Ben is married” is determined purely by the meaning of the connective “and” once the truth-values of the two atomic sentences “John is a bachelor” and “Ben is married” are determined. The connectives of such a kind is called truth-functional. (Notice that this does not apply to all the sentential connectives. Consider “Ben is happy because Ben is married.” The truth-value of this sentence is still undetermined even if both the atomic sentences in this sentence are true.) Truth-functional connectives are the connectives that propositional calculus studies. Examples of such connectives are "and," "or," "if…then..." (These connectives of a certain use only. Some uses of the connectives are not truth-functional. For instance, consider counterfactual statements).

Syntax

The language of propositional calculus consists of 1. propositional variables, usually annotated by p, q, r,…, 2. truth-functional connectives, , and 3. parentheses “(“ and “).” Propositional variables represent atomic sentences and , and are usually considered as “not,” “and,” “or,” “if…then...,” and “...if and only if...” respectively. is called unary (meaning that it is attachable to one wff. For the definitnion of wffs, see below.) and the other four connectives are called binary (meaning that they combine two wffs). Parentheses are used to represent the punctuations in sentences.

Well-formed formulas (wffs) are recursively built in the following way.

  • Propositional variables are wffs.
  • If is a wff, then is a wff.
  • If and are wffs, then is a wff where is a binary connective.

Conventionally the outermost set of parentheses is dropped. Also, the order of strength in which propositional connectives bind is stipulated as: and . Therefore, taking these two conventions into account, say, the wff “” built up by the above definition is written as “.”

The connective in a given wff that binds last is called the main connective of . Thus, in the case of , the main connective is . Wffs with and as their main connectives are called negation, conjunction, disjunction, conditional, and biconditional respectively.

An argument consists of a set of wffs and a distinguished wff. The wffs of the former kind are called premises and the distinguished wff is called the conclusion. The set of premises of a given argument can possibly be empty.

For instance, the set of sentences about Jack in the opening example is represented in the language of propositional logic as follows:

where p, q, and r represent “Jack is innocent,” “Jack has an alibi,” and “Jack is a murderer,” respectively. The first two wffs are the premises and the last wff is the conclusion of the argument.

Semantics

Every wff in propositional calculus gets either of the two truth-values, True and False (T and F). Relative to the assignment V of truth-values to propositional variables (a function from the set of propositional variables to {T, F}, the truth-values of other wffs are determined recursively as follows:

  • p is true iff V(p)=T
  • is T iff is F.
  • is T iff is T and is T.
  • is T iff is T or is T (in the inclusive sense of "or" i.e. including the case in which both are T)
  • is T iff is F or is T.
  • is T iff and coincide in their truth-values.

For instance, when p, q, and r get T, T and F respectively, gets F. For the left side of the biconditional is T because p is T and is F, and the right side is F because r is F and q is T.

A wff that gets T no matter what truth-value assignment is given is called a tautology. A set of wffs (maybe empty) implies a wff if and only if is T relative to every truth-value assignment V that assigns Ts to all the wffs in . An argument, consisting of a set of wffs and a wff , is said to be valid if implies . (For instance, readers are invited to check that the argument about Jack is valid.)

If an argument, consisting of a premise set and a conclusion , is valid, , we write “,” which often reads as “ implies .” (For the left hand side of “,” the wffs in are written with commas between them, e.g. if is {p, q, r}, we write “p, q, r .”)

Propositional Calculi

Proofs in a propositional calculus

Propositional calculus consists of a set of specified wff called axioms (the set can possibly be empty) and rules of inference. A proof of an argument is a sequence of wffs in which (1) each wff is a premise, an axiom, or a wff that is derived from previous wffs in the sequence by a rule of inference and (2) the last wff of the sequence is the conclusion of the argument. If an argument, consisting of a premise set and a conclusion , has a proof, we write “,” which reads as “ is provable from .” (The convention for the left hand side of “” is the same as the one for “”.)

Particularly, if there is a proof for an argument with an empty set of premises, i.e. if the conclusion of the argument can be derived only from axioms based on the rules of inference, then the conclusion is called a theorem. Thus, if is a theorem, we can write “,” which reads as “ is a theorem.”

There are various propositional calculi, of which two of the most famous ones are provided below.

Hilbert-Style Propositional Calculus

One famous deductive system takes the language of propositional calculus that consists of propositional variables, the connectives, and , and parentheses. The other connectives are defined as follows:

The axioms have one of the following forms:

  • A1
  • A2
  • A3

The only rule of inference is modus ponens, i.e. from and , derive .

Here is an example of a proof in this system for [1]:

Number wff Justification
1 A premiss
2 A premise
3 An axiom of the form A1
4 From 1 and 3 by modus ponens
5 From 2 and 4 by modus ponens
6 An axiom of the form A2
7 From 5 and 6 by modus ponens
8 From 4 and 7 by modus ponens

Natural Deduction

Another example takes the language of propositional calculus that consists of propositional variables, the connectives, and parentheses. The set of axioms is empty. However, it has the following rules of inference:

  • Reductio ad absurdum (negation introduction)
From (pq), (p→ ¬q), infer ¬p.
  • Double negative elimination
From ¬¬p, infer p.
  • Conjunction introduction
From p and q, infer (pq).
  • Conjunction elimination
From (pq), infer p;
From (pq), infer q.
  • Disjunction introduction
From p, infer (pq);
From p, infer (qp).
  • Disjunction elimination
From (pq), (pr), (qr), infer r.
  • Biconditional introduction
From (pq), (qp), infer (pq).
  • Biconditional elimination
From (pq), infer (pq);
From (pq), infer (qp).
  • Modus ponens (conditional elimination)
From p, (pq), infer q.
  • Conditional proof (conditional introduction)
If assuming p allows a proof of q, infer (pq).

Here is an example of a proof in this system again for .

Number wff Justification
1 A premise
2 A premise
3 An assumption for a conditional proof
4 Iteration of 1
5 From 3 and 4 by a conditional proof
6 From 2 and 5 by modus ponens
7 Assumption for a conditional proof
8 From 6 and 7 by modus ponens
9 From 1 and 8 by modus ponens
10 From 7 and 9 by a conditional proof

Famous Provable Arguments

Here are some of the most famous forms of arguments that are provable in both of the calculi:

Basic and Derived Argument Forms
Name Sequent Description
Modus Ponens ((pq) ∧ p) ├ q if p then q; p; therefore q
Modus Tollens ((pq) ∧ ¬q) ├ ¬p if p then q; not q; therefore not p
Hypothetical Syllogism ((pq) ∧ (qr)) ├ (pr) if p then q; if q then r; therefore, if p then r
Disjunctive Syllogism ((pq) ∧ ¬p) ├ q Either p or q; not p; therefore, q
Constructive Dilemma ((pq) ∧ (rs) ∧ (pr)) ├ (qs) If p then q; and if r then s; but either p or r; therefore either q or s
Destructive Dilemma ((pq) ∧ (rs) ∧ (¬q ∨ ¬s)) ├ (¬p ∨ ¬r) If p then q; and if r then s; but either not q or not s; therefore either not p or not r
Simplification (pq) ├ p p and q are true; therefore p is true
Conjunction p, q ├ (pq) p and q are true separately; therefore they are true conjointly
Addition p ├ (pq) p is true; therefore the disjunction (p or q) is true
Composition ((pq) ∧ (pr)) ├ (p → (qr)) If p then q; and if p then r; therefore if p is true then q and r are true
De Morgan's Theorem (1) ¬(pq) ├ (¬p ∨ ¬q) The negation of (p and q) is equiv. to (not p or not q)
De Morgan's Theorem (2) ¬(pq) ├ (¬p ∧ ¬q) The negation of (p or q) is equiv. to (not p and not q)
Commutation (1) (pq) ├ (qp) (p or q) is equiv. to (q or p)
Commutation (2) (pq) ├ (qp) (p and q) is equiv. to (q and p)
Association (1) (p ∨ (qr)) ├ ((pq) ∨ r) p or (q or r) is equiv. to (p or q) or r
Association (2) (p ∧ (qr)) ├ ((pq) ∧ r) p and (q and r) is equiv. to (p and q) and r
Distribution (1) (p ∧ (qr)) ├ ((pq) ∨ (pr)) p and (q or r) is equiv. to (p and q) or (p and r)
Distribution (2) (p ∨ (qr)) ├ ((pq) ∧ (pr)) p or (q and r) is equiv. to (p or q) and (p or r)
Double Negation p ├ ¬¬p p is equivalent to the negation of not p
Transposition (pq) ├ (¬q → ¬p) If p then q is equiv. to if not q then not p
Material Implication (pq) ├ (¬pq) If p then q is equiv. to either not p or q
Material Equivalence (1) (pq) ├ ((pq) ∧ (qp)) (p is equiv. to q) means, (if p is true then q is true) and (if q is true then p is true)
Material Equivalence (2) (pq) ├ ((pq) ∨ (¬q ∧ ¬p)) (p is equiv. to q) means, either (p and q are true) or ( both p and q are false)
Exportation ((pq) → r) ├ (p → (qr)) from (if p and q are true then r is true) we can prove (if q is true then r is true, if p is true)
Importation (p → (qr)) ├ ((pq) → r)
Tautology p ├ (pp) p is true is equiv. to p is true or p is true
Tertium non datur (Law of Excluded Middle) ├ (p ∨ ¬ p) p or not p is true

Soundness and Completeness

A calculus is sound if, for all and implies . A calculus is complete if, for all and , implies .

There are various sound and complete propositional calculi (i.e. the calculi in which the notion of proof and that of validity correspond). The two calculi above are the examples of sound and complete propositional calculi.

Notes

  1. Propositional Logic, The Internet Encyclopedia of Philosophy, 2006. Retrieved March 19, 2008.

References
ISBN links support NWE through referral fees

  • Brown, Frank Markham. 2003. Boolean Reasoning: The Logic of Boolean Equations. 1st edition, Kluwer Academic Publishers, Norwell, MA. 2nd edition, Dover Publications, Mineola, New York. ISBN 9780486427850
  • Chang, C.C., and H.J. Keisler. 1973. Model Theory. Amsterdam, Netherlands: North-Holland. ISBN 9780444880543
  • Klement, Kevin C. 2006. "Propositional Logic" in Internet Encyclopedia of Philosophy. edited by James Fieser and Bradley Dowden. The Internet Encylopedia of Philosophy.
  • Kohavi, Zvi. 1978. Switching and Finite Automata Theory. 1st edition, McGraw–Hill, 1970. 2nd edition, McGraw–Hill, 1978. ISBN 9780070353107
  • Korfhage, Robert R. 1974. Discrete Computational Structures, Academic Press, New York, NY. ISBN 0124208606
  • Lambek, J., and P.J. Scott. 1986. Introduction to Higher Order Categorical Logic. Cambridge University Press, Cambridge, UK. ISBN 9780521356534
  • Mendelson, Elliot. 1964. Introduction to Mathematical Logic. D. Van Nostrand Company. ISBN 9780412808302

External Links

All links retrieved December 1, 2022.

General Philosophy Sources

Credits

New World Encyclopedia writers and editors rewrote and completed the Wikipedia article in accordance with New World Encyclopedia standards. This article abides by terms of the Creative Commons CC-by-sa 3.0 License (CC-by-sa), which may be used and disseminated with proper attribution. Credit is due under the terms of this license that can reference both the New World Encyclopedia contributors and the selfless volunteer contributors of the Wikimedia Foundation. To cite this article click here for a list of acceptable citing formats.The history of earlier contributions by wikipedians is accessible to researchers here:

The history of this article since it was imported to New World Encyclopedia:

Note: Some restrictions may apply to use of individual images which are separately licensed.