fbpx
Wikipedia

Propositional calculus

Propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. It deals with propositions (which can be true or false) and relations between propositions, including the construction of arguments based on them. Compound propositions are formed by connecting propositions by logical connectives. Propositions that contain no logical connectives are called atomic propositions.

Unlike first-order logic, propositional logic does not deal with non-logical objects, predicates about them, or quantifiers. However, all the machinery of propositional logic is included in first-order logic and higher-order logics. In this sense, propositional logic is the foundation of first-order logic and higher-order logic.

Explanation edit

Logical connectives are found in natural languages. In English, some examples are "and" (conjunction), "or" (disjunction), "not" (negation) and "if" (but only when used to denote material conditional).

The following is an example of a very simple inference within the scope of propositional logic:

Premise 1: If it's raining then it's cloudy.
Premise 2: It's raining.
Conclusion: It's cloudy.

Both premises and the conclusion are propositions. The premises are taken for granted, and with the application of modus ponens (an inference rule), the conclusion follows.

As propositional logic is not concerned with the structure of propositions beyond the point where they cannot be decomposed any more by logical connectives, this inference can be restated replacing those atomic statements with statement letters, which are interpreted as variables representing statements:

Premise 1:  
Premise 2:  
Conclusion:  

The same can be stated succinctly in the following way:

 

When P is interpreted as "It's raining" and Q as "it's cloudy" the above symbolic expressions can be seen to correspond exactly with the original expression in natural language. Not only that, but they will also correspond with any other inference of this form, which will be valid on the same basis this inference is.

Propositional logic may be studied through a formal system in which formulas of a formal language may be interpreted to represent propositions. A system of axioms and inference rules allows certain formulas to be derived. These derived formulas are called theorems and may be interpreted to be true propositions. A constructed sequence of such formulas is known as a derivation or proof and the last formula of the sequence is the theorem. The derivation may be interpreted as proof of the proposition represented by the theorem.

When a formal system is used to represent formal logic, only statement letters (usually capital roman letters such as  ,   and  ) are represented directly. The natural language propositions that arise when they're interpreted are outside the scope of the system, and the relation between the formal system and its interpretation is likewise outside the formal system itself.

In classical truth-functional propositional logic, formulas are interpreted as having precisely one of two possible truth values, the truth value of true or the truth value of false.[1] The principle of bivalence and the law of excluded middle are upheld. Truth-functional propositional logic defined as such and systems isomorphic to it are considered to be zeroth-order logic. However, alternative propositional logics are also possible. For more, see Other logical calculi below.

History edit

Although propositional logic (which is interchangeable with propositional calculus) had been hinted by earlier philosophers, it was developed into a formal logic (Stoic logic) by Chrysippus in the 3rd century BC[2] and expanded by his successor Stoics. The logic was focused on propositions. This advancement was different from the traditional syllogistic logic, which was focused on terms. However, most of the original writings were lost[3] and the propositional logic developed by the Stoics was no longer understood later in antiquity.[citation needed] Consequently, the system was essentially reinvented by Peter Abelard in the 12th century.[4]

Propositional logic was eventually refined using symbolic logic. The 17th/18th-century mathematician Gottfried Leibniz has been credited with being the founder of symbolic logic for his work with the calculus ratiocinator. Although his work was the first of its kind, it was unknown to the larger logical community. Consequently, many of the advances achieved by Leibniz were recreated by logicians like George Boole and Augustus De Morgan—completely independent of Leibniz.[5]

Just as propositional logic can be considered an advancement from the earlier syllogistic logic, Gottlob Frege's predicate logic can be also considered an advancement from the earlier propositional logic. One author describes predicate logic as combining "the distinctive features of syllogistic logic and propositional logic."[6] Consequently, predicate logic ushered in a new era in logic's history; however, advances in propositional logic were still made after Frege, including natural deduction, truth trees and truth tables. Natural deduction was invented by Gerhard Gentzen and Stanisław Jaśkowski. Truth trees were invented by Evert Willem Beth.[7] The invention of truth tables, however, is of uncertain attribution.

Within works by Frege[8] and Bertrand Russell,[9] are ideas influential to the invention of truth tables. The actual tabular structure (being formatted as a table), itself, is generally credited to either Ludwig Wittgenstein or Emil Post (or both, independently).[8] Besides Frege and Russell, others credited with having ideas preceding truth tables include Philo, Boole, Charles Sanders Peirce,[10] and Ernst Schröder. Others credited with the tabular structure include Jan Łukasiewicz, Alfred North Whitehead, William Stanley Jevons, John Venn, and Clarence Irving Lewis.[9] Ultimately, some have concluded, like John Shosky, that "It is far from clear that any one person should be given the title of 'inventor' of truth-tables.".[9]

Terminology edit

In general terms, a calculus is a formal system that consists of a set of syntactic expressions (well-formed formulas), a distinguished subset of these expressions (axioms), plus a set of formal rules that define a specific binary relation, intended to be interpreted as logical equivalence, on the space of expressions.

When the formal system is intended to be a logical system, the expressions are meant to be interpreted as statements, and the rules, known to be inference rules, are typically intended to be truth-preserving. In this setting, the rules, which may include axioms, can then be used to derive ("infer") formulas representing true statements—from given formulas representing true statements.

The set of axioms may be empty, a nonempty finite set, or a countably infinite set (see axiom schema). A formal grammar recursively defines the expressions and well-formed formulas of the language. In addition a semantics may be given which defines truth and valuations (or interpretations).

The language of a propositional calculus consists of

  1. a set of primitive symbols, variously referred to as atomic formulas, placeholders, proposition letters, or variables, and
  2. a set of operator symbols, variously interpreted as logical operators or logical connectives.

A well-formed formula is any atomic formula, or any formula that can be built up from atomic formulas by means of operator symbols according to the rules of the grammar.

Mathematicians sometimes distinguish between propositional constants, propositional variables, and schemata. Propositional constants represent some particular proposition, while propositional variables range over the set of all atomic propositions. Schemata, however, range over all propositions. It is common to represent propositional constants by A, B, and C, propositional variables by P, Q, and R, and schematic letters are often Greek letters, most often φ, ψ, and χ.

Basic concepts edit

The following outlines a standard propositional calculus. Many different formulations exist which are all more or less equivalent, but differ in the details of:

  1. their language (i.e., the particular collection of primitive symbols and operator symbols),
  2. the set of axioms, or distinguished formulas, and
  3. the set of inference rules.

Any given proposition may be represented with a letter called a 'propositional constant', analogous to representing a number by a letter in mathematics (e.g., a = 5). All propositions require exactly one of two truth-values: true or false. For example, let P be the proposition that it is raining outside. This will be true (P) if it is raining outside, and false otherwise (¬P).

  • We then define truth-functional operators, beginning with negation. ¬P represents the negation of P, which can be thought of as the denial of P. In the example above, ¬P expresses that it is not raining outside, or by a more standard reading: "It is not the case that it is raining outside." When P is true, ¬P is false; and when P is false, ¬P is true. As a result, ¬ ¬P always has the same truth-value as P.
  • Conjunction is a truth-functional connective which forms a proposition out of two simpler propositions, for example, P and Q. The conjunction of P and Q is written PQ, and expresses that each are true. We read PQ as "P and Q". For any two propositions, there are four possible assignments of truth values:
    1. P is true and Q is true
    2. P is true and Q is false
    3. P is false and Q is true
    4. P is false and Q is false
The conjunction of P and Q is true in case 1, and is false otherwise. Where P is the proposition that it is raining outside and Q is the proposition that a cold-front is over Kansas, PQ is true when it is raining outside and there is a cold-front over Kansas. If it is not raining outside, then P ∧ Q is false; and if there is no cold-front over Kansas, then PQ is also false.
  • Disjunction resembles conjunction in that it forms a proposition out of two simpler propositions. We write it PQ, and it is read "P or Q". It expresses that either P or Q is true. Thus, in the cases listed above, the disjunction of P with Q is true in all cases—except case 4. Using the example above, the disjunction expresses that it is either raining outside, or there is a cold front over Kansas. (Note, this use of disjunction is supposed to resemble the use of the English word "or". However, it is most like the English inclusive "or", which can be used to express the truth of at least one of two propositions. It is not like the English exclusive "or", which expresses the truth of exactly one of two propositions. In other words, the exclusive "or" is false when both P and Q are true (case 1), and similarly is false when both P and Q are false (case 4). An example of the exclusive or is: You may keep a cake (for later) or you may eat it all now, but you cannot both eat it all now and keep it for later. Often in natural language, given the appropriate context, the addendum "but not both" is omitted—but implied. In mathematics, however, "or" is always inclusive or; if exclusive or is meant it will be specified, possibly by "xor".)
  • Material conditional also joins two simpler propositions, and we write PQ, which is read "if P then Q". The proposition to the left of the arrow is called the antecedent, and the proposition to the right is called the consequent. (There is no such designation for conjunction or disjunction, since they are commutative operations.) It expresses that Q is true whenever P is true. Thus PQ is true in every case above except case 2, because this is the only case when P is true but Q is not. Using the example, if P then Q expresses that if it is raining outside, then there is a cold-front over Kansas. The material conditional is often confused with physical causation. The material conditional, however, only relates two propositions by their truth-values—which is not the relation of cause and effect. It is contentious in the literature whether the material implication represents logical causation.
  • Biconditional joins two simpler propositions, and we write PQ, which is read "P if and only if Q". It expresses that P and Q have the same truth-value, and in cases 1 and 4. 'P is true if and only if Q' is true, and is false otherwise.

It is very helpful to look at the truth tables for these different operators, as well as the method of analytic tableaux.

Closure under operations edit

Propositional logic is closed under truth-functional connectives. That is to say, for any proposition φ, ¬φ is also a proposition. Likewise, for any propositions φ and ψ, φψ is a proposition, and similarly for disjunction, conditional, and biconditional. This implies that, for instance, φψ is a proposition, and so it can be conjoined with another proposition. In order to represent this, we need to use parentheses to indicate which proposition is conjoined with which. For instance, PQR is not a well-formed formula, because we do not know if we are conjoining PQ with R or if we are conjoining P with QR. Thus we must write either (PQ) ∧ R to represent the former, or P ∧ (QR) to represent the latter. By evaluating the truth conditions, we see that both expressions have the same truth conditions (will be true in the same cases), and moreover that any proposition formed by arbitrary conjunctions will have the same truth conditions, regardless of the location of the parentheses. This means that conjunction is associative, however, one should not assume that parentheses never serve a purpose. For instance, the sentence P ∧ (QR) does not have the same truth conditions of (PQ) ∨ R, so they are different sentences distinguished only by the parentheses. One can verify this by the truth-table method referenced above.

Note: For any arbitrary number of propositional constants, we can form a finite number of cases which list their possible truth-values. A simple way to generate this is by truth-tables, in which one writes P, Q, ..., Z, for any list of k propositional constants—that is to say, any list of propositional constants with k entries. Below this list, one writes 2k rows, and below P one fills in the first half of the rows with true (or T) and the second half with false (or F). Below Q one fills in one-quarter of the rows with T, then one-quarter with F, then one-quarter with T and the last quarter with F. The next column alternates between true and false for each eighth of the rows, then sixteenths, and so on, until the last propositional constant varies between T and F for each row. This will give a complete listing of cases or truth-value assignments possible for those propositional constants.

Argument edit

The propositional calculus then defines an argument to be a list of propositions. A valid argument is a list of propositions, the last of which follows from—or is implied by—the rest. All other arguments are invalid. The simplest valid argument is modus ponens, one instance of which is the following list of propositions:

 

This is a list of three propositions, each line is a proposition, and the last follows from the rest. The first two lines are called premises, and the last line the conclusion. We say that any proposition C follows from any set of propositions  , if C must be true whenever every member of the set   is true. In the argument above, for any P and Q, whenever PQ and P are true, necessarily Q is true. Notice that, when P is true, we cannot consider cases 3 and 4 (from the truth table). When PQ is true, we cannot consider case 2. This leaves only case 1, in which Q is also true. Thus Q is implied by the premises.

This generalizes schematically. Thus, where φ and ψ may be any propositions at all,

 

Other argument forms are convenient, but not necessary. Given a complete set of axioms (see below for one such set), modus ponens is sufficient to prove all other argument forms in propositional logic, thus they may be considered to be a derivative. Note, this is not true of the extension of propositional logic to other logics like first-order logic. First-order logic requires at least one additional rule of inference in order to obtain completeness.

The significance of argument in formal logic is that one may obtain new truths from established truths. In the first example above, given the two premises, the truth of Q is not yet known or stated. After the argument is made, Q is deduced. In this way, we define a deduction system to be a set of all propositions that may be deduced from another set of propositions. For instance, given the set of propositions  , we can define a deduction system, Γ, which is the set of all propositions which follow from A. Reiteration is always assumed, so  . Also, from the first element of A, last element, as well as modus ponens, R is a consequence, and so  . Because we have not included sufficiently complete axioms, though, nothing else may be deduced. Thus, even though most deduction systems studied in propositional logic are able to deduce  , this one is too weak to prove such a proposition.

Generic description of a propositional calculus edit

A propositional calculus is a formal system  , where:[citation needed]

  • The alpha set   is a countably infinite set of elements called proposition symbols or propositional variables. Syntactically speaking, these are the most basic elements of the formal language  , otherwise referred to as atomic formulas or terminal elements. In the examples to follow, the elements of   are typically the letters p, q, r, and so on.
  • The omega set Ω is a finite set of elements called operator symbols or logical connectives. The set Ω is partitioned into disjoint subsets as follows:
     

    In this partition,   is the set of operator symbols of arity j.

    In the more familiar propositional calculi, Ω is typically partitioned as follows:

     
     

    A frequently adopted convention treats the constant logical values as operators of arity zero, thus:

     
    Some writers use the tilde (~), or N, instead of ¬; and some use v instead of   as well as the ampersand (&), the prefixed K, or   instead of  . Notation varies even more for the set of logical values, with symbols like {false, true}, {F, T}, or {0, 1} all being seen in various contexts instead of  .
  • The zeta set   is a finite set of transformation rules that are called inference rules when they acquire logical applications.
  • The iota set   is a countable set of initial points that are called axioms when they receive logical interpretations.

The language of  , also known as its set of formulas, well-formed formulas, is inductively defined by the following rules:

  1. Base: Any element of the alpha set   is a formula of  .
  2. If   are formulas and   is in  , then   is a formula.
  3. Closed: Nothing else is a formula of  .

Repeated applications of these rules permits the construction of complex formulas. For example:

  • By rule 1, p is a formula.
  • By rule 2,   is a formula.
  • By rule 1, q is a formula.
  • By rule 2,   is a formula.[note 1]

Example 1. Simple axiom system edit

Let  , where  ,  ,  ,   are defined as follows:

  • The set  , the countably infinite set of symbols that serve to represent logical propositions:
     
  • The functionally complete set   of logical operators (logical connectives and negation) is as follows. Of the three connectives for conjunction, disjunction, and implication ( , and ), one can be taken as primitive and the other two can be defined in terms of it and negation (¬).[11] Alternatively, all of the logical operators may be defined in terms of a sole sufficient operator, such as the Sheffer stroke (nand). The biconditional ( ) can of course be defined in terms of conjunction and implication as  .
    Adopting negation and implication as the two primitive operations of a propositional calculus is tantamount to having the omega set   partition as follows:
     
     

Then   is defined as  , and   is defined as  .

  • The set   (the set of initial points of logical deduction, i.e., logical axioms) is the axiom system proposed by Jan Łukasiewicz, and used as the propositional-calculus part of a Hilbert system. The axioms are all substitution instances of:
    •  
    •  
    •  
  • The set   of transformation rules (rules of inference) is the sole rule modus ponens (i.e., from any formulas of the form   and  , infer  ).

This system is used in Metamath set.mm formal proof database.

Example 2. Natural deduction system edit

Let  , where  ,  ,  ,   are defined as follows:

  • The alpha set  , is a countably infinite set of symbols, for example:
     
  • The omega set   partitions as follows:
     
     

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 theorems from an empty axiom set.

  • The set of initial points is empty, that is,  .
  • The set of transformation rules,  , is described as follows:

Our propositional calculus has eleven inference rules. These rules allow us to derive other true formulas given a set of formulas that are assumed to be true. The first ten simply state that we can infer certain well-formed formulas from other well-formed formulas. 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 formulas to see if we can infer a certain other formula. Since the first ten rules do not do this they are usually described as non-hypothetical rules, and the last one as a hypothetical rule.

In describing the transformation rules, we may introduce a metalanguage symbol  . It is basically a convenient shorthand for saying "infer that". The format is  , in which Γ is a (possibly empty) set of formulas called premises, and ψ is a formula called conclusion. The transformation rule   means that if every proposition in Γ is a theorem (or has the same truth value as the axioms), then ψ is also a theorem. Considering the following rule Conjunction introduction, we will know whenever Γ has more than one formula, we can always safely reduce it into one formula using conjunction. So for short, from that time on we may represent Γ as one formula instead of a set. Another omission for convenience is when Γ is an empty set, in which case Γ may not appear.

Negation introduction
From   and  , infer  .
That is,  .
Negation elimination
From  , infer  .
That is,  .
Double negation elimination
From  , infer p.
That is,  .
Conjunction introduction
From p and q, infer  .
That is,  .
Conjunction elimination
From  , infer p.
From  , infer q.
That is,   and  .
Disjunction introduction
From p, infer  .
From q, infer  .
That is,   and  .
Disjunction elimination
From   and   and  , infer r.
That is,  .
Biconditional introduction
From   and  , infer  .
That is,  .
Biconditional elimination
From  , infer  .
From  , infer  .
That is,   and  .
Modus ponens (conditional elimination)
From p and  , infer q.
That is,  .
Conditional proof (conditional introduction)
From [accepting p allows a proof of q], infer  .
That is,  .

Basic and derived argument forms edit

Name Sequent[12] Description
Modus Ponens   If p then q; p; therefore q
Modus Tollens   If p then q; not q; therefore not p
Hypothetical Syllogism   If p then q; if q then r; therefore, if p then r
Disjunctive Syllogism   Either p or q, or both; not p; therefore, q
Constructive Dilemma   If p then q; and if r then s; but p or r; therefore q or s
Destructive Dilemma   If p then q; and if r then s; but not q or not s; therefore not p or not r
Bidirectional Dilemma   If p then q; and if r then s; but p or not s; therefore q or not r
Simplification   p and q are true; therefore p is true
Conjunction   p and q are true separately; therefore they are true conjointly
Addition   p is true; therefore the disjunction (p or q) is true
Composition   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)   The negation of (p and q) is equiv. to (not p or not q)
De Morgan's Theorem (2)   The negation of (p or q) is equiv. to (not p and not q)
Commutation (1)   (p or q) is equiv. to (q or p)
Commutation (2)   (p and q) is equiv. to (q and p)
Commutation (3)   (p iff q) is equiv. to (q iff p)
Association (1)   p or (q or r) is equiv. to (p or q) or r
Association (2)   p and (q and r) is equiv. to (p and q) and r
Distribution (1)   p and (q or r) is equiv. to (p and q) or (p and r)
Distribution (2)   p or (q and r) is equiv. to (p or q) and (p or r)
Double Negation   p is equivalent to the negation of not p
Transposition   If p then q is equiv. to if not q then not p
Material Implication   If p then q is equiv. to not p or q
Material Equivalence (1)   (p iff q) is equiv. to (if p is true then q is true) and (if q is true then p is true)
Material Equivalence (2)   (p iff q) is equiv. to either (p and q are true) or (both p and q are false)
Material Equivalence (3)   (p iff q) is equiv to., both (p or not q is true) and (not p or q is true)
Exportation[13]   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   If p then (if q then r) is equivalent to if p and q then r
Tautology (1)   p is true is equiv. to p is true or p is true
Tautology (2)   p is true is equiv. to p is true and p is true
Tertium non datur (Law of Excluded Middle)   p or not p is true
Law of Non-Contradiction   p and not p is false, is a true statement

Proofs in propositional calculus edit

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 sequence of numbered lines, with each line consisting of a single formula followed by a reason or justification for introducing that formula. Each premise of the argument, that is, an assumption introduced as an hypothesis of the argument, is listed at the beginning of the sequence and is marked as a "premise" in lieu of other justification. The conclusion is listed on the last line. A proof is complete if every line follows from the previous ones by the correct application of a transformation rule. (For a contrasting approach, see proof-trees).

Example of a proof in natural deduction system edit

  • To be shown that AA.
  • One possible proof of this (which, though valid, happens to contain more steps than are necessary) may be arranged as follows:
Example of a proof
Number Formula Reason
1   premise
2   From (1) by disjunction introduction
3   From (1) and (2) by conjunction introduction
4   From (3) by conjunction elimination
5   Summary of (1) through (4)
6   From (5) by conditional proof

Interpret   as "Assuming A, infer A". Read   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".

Example of a proof in a classical propositional calculus system edit

We now prove the same theorem   in the axiomatic system by Jan Łukasiewicz described above, which is an example of a Hilbert-style deductive system for the classical propositional calculus.

The axioms are:

(A1)  
(A2)  
(A3)  

And the proof is as follows:

  1.         (instance of (A1))
  2.         (instance of (A2))
  3.         (from (1) and (2) by modus ponens)
  4.         (instance of (A1))
  5.         (from (4) and (3) by modus ponens)

Soundness and completeness of the rules edit

The crucial properties of this set of rules are that they are sound and 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. The proofs for the soundness and completeness of the propositional logic are not themselves proofs in propositional logic ; these are theorems in ZFC used as a metatheory to prove properties of propositional logic.

We define a truth assignment as a 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 formulas 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 with the following rules:

  • A satisfies the propositional variable P if and only if A(P) = true
  • A satisfies ¬φ if and only if A does not satisfy φ
  • A satisfies (φψ) if and only if A satisfies both φ and ψ
  • A satisfies (φψ) if and only if A satisfies at least one of either φ or ψ
  • A satisfies (φψ) if and only if it is not the case that A satisfies φ but not ψ
  • A satisfies (φψ) if and only if 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 formulas. Informally this is true if in all worlds that are possible given the set of formulas S the formula φ also holds. This leads to the following formal definition: We say that a set S of well-formed formulas semantically entails (or implies) a certain well-formed formula φ if all truth assignments that satisfy all the formulas in S also satisfy φ.

Finally we define syntactical entailment such that φ is syntactically entailed by S if and only if 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 well-formed formulas S syntactically entails the well-formed formula φ then S semantically entails φ.

Completeness: If the set of well-formed formulas S semantically entails the well-formed formula φ then S syntactically entails φ.

For the above set of rules this is indeed the case.

Sketch of a soundness proof edit

(For most logical systems, 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".

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.

  1. Basis. Show: If A is a member of G, then G implies A.
  2. Basis. Show: If A is an axiom, then G implies A.
  3. Inductive step (induction on n, the length of the proof):
    1. Assume for arbitrary G and A that if G proves A in n or fewer steps, then G implies A.
    2. For each possible application of a rule of inference at step n + 1, leading to a new theorem B, show that G implies B.

Notice that Basis Step II can be omitted for natural deduction systems because they have no axioms. When used, Step II involves showing that each of the axioms is a (semantic) logical truth.

The Basis steps demonstrate that the simplest provable sentences from G are also implied by G, for any G. (The proof 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 edit

(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. If we show that there is a model where A does not hold despite G being true, then obviously G does not imply A. The idea is to build such a model out of our very assumption that G does not prove A.

  1. G does not prove A. (Assumption)
  2. 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.
    1. Place an ordering (with order type ω) on all the sentences in the language (e.g., shortest first, and equally long ones in extended alphabetical ordering), and number them (E1, E2, ...)
    2. Define a series Gn of sets (G0, G1, ...) inductively:
      1.  
      2. If   proves A, then  
      3. If   does not prove A, then  
    3. Define G as the union of all the Gn. (That is, G is the set of all the sentences that are in any Gn.)
    4. It can be easily shown that
      1. G contains (is a superset of) G (by (b.i));
      2. G does not prove A (because the proof would contain only finitely many sentences and when the last of them is introduced in some Gn, that Gn would prove A contrary to the definition of Gn); and
      3. 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 Gn, again by definition)
  3. If G is a Maximal Set with respect to A, then it is truth-like. This means that it contains C if and only if it does not contain ¬C; If it contains C and contains "If C then B" then it also contains B; and so forth. In order to show this, one has to show the axiomatic system is strong enough for the following:
    • For any formulas C and D, if it proves both C and ¬C, then it proves D. From this it follows, that a Maximal Set with respect to A cannot prove both C and ¬C, as otherwise it would prove A.
    • For any formulas C and D, if it proves both CD and ¬CD, then it proves D. This is used, together with the deduction theorem, to show that for any formula, either it or its negation is in G: Let B be a formula not in G; then G with the addition of B proves A. Thus from the deduction theorem it follows that G proves BA. But suppose ¬B were also not in G, then by the same logic G also proves ¬BA; but then G proves A, which we have already shown to be false.
    • For any formulas C and D, if it proves C and D, then it proves CD.
    • For any formulas C and D, if it proves C and ¬D, then it proves ¬(CD).
    • For any formulas C and D, if it proves ¬C, then it proves CD.
    If additional logical operation (such as conjunction and/or disjunction) are part of the vocabulary as well, then there are additional requirement on the axiomatic system (e.g. that if it proves C and D, it would also prove their conjunction).
  4. 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. The requirement that it is truth-like is needed to guarantee that the laws of semantic composition in the language will be satisfied by this truth assignment.
  5. A G-canonical valuation will make our original set G all true, and make A false.
  6. If there is a valuation on which G are true and A is false, then G does not (semantically) imply A.

Thus every system that has modus ponens as an inference rule, and proves the following theorems (including substitutions thereof) is complete:

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

The first five are used for the satisfaction of the five conditions in stage III above, and the last three for proving the deduction theorem.

Example edit

As an example, it can be shown that as any other tautology, the three axioms of the classical propositional calculus system described earlier can be proven in any system that satisfies the above, namely that has modus ponens as an inference rule, and proves the above eight theorems (including substitutions thereof). Out of the eight theorems, the last two are two of the three axioms; the third axiom,  , can be proven as well, as we now show.

For the proof we may use the hypothetical syllogism theorem (in the form relevant for this axiomatic system), since it only relies on the two axioms that are already in the above set of eight theorems. The proof then is as follows:

  1.         (instance of the 7th theorem)
  2.         (instance of the 7th theorem)
  3.         (from (1) and (2) by modus ponens)
  4.         (instance of the hypothetical syllogism theorem)
  5.         (instance of the 5th theorem)
  6.         (from (5) and (4) by modus ponens)
  7.         (instance of the 2nd theorem)
  8.         (instance of the 7th theorem)
  9.         (from (7) and (8) by modus ponens)
  10.  
            (instance of the 8th theorem)
  11.         (from (9) and (10) by modus ponens)
  12.         (from (3) and (11) by modus ponens)
  13.         (instance of the 8th theorem)
  14.         (from (12) and (13) by modus ponens)
  15.         (from (6) and (14) by modus ponens)

Verifying completeness for the classical propositional calculus system edit

We now verify that the classical propositional calculus system described earlier can indeed prove the required eight theorems mentioned above. We use several lemmas proven here:

(DN1)   - Double negation (one direction)
(DN2)   - Double negation (another direction)
(HS1)   - one form of Hypothetical syllogism
(HS2)   - another form of Hypothetical syllogism
(TR1)   - Transposition
(TR2)   - another form of transposition.
(L1)  
(L3)  

We also use the method of the hypothetical syllogism metatheorem as a shorthand for several proof steps.

  •   - proof:
    1.         (instance of (A1))
    2.         (instance of (TR1))
    3.         (from (1) and (2) using the hypothetical syllogism metatheorem)
    4.         (instance of (DN1))
    5.         (instance of (HS1))
    6.         (from (4) and (5) using modus ponens)
    7.         (from (3) and (6) using the hypothetical syllogism metatheorem)
  •   - proof:
    1.         (instance of (HS1))
    2.         (instance of (L3))
    3.         (instance of (HS1))
    4.         (from (2) and (3) by modus ponens)
    5.         (from (1) and (4) using the hypothetical syllogism metatheorem)
    6.         (instance of (TR2))
    7.         (instance of (HS2))
    8.         (from (6) and (7) using modus ponens)
    9.         (from (5) and (8) using the hypothetical syllogism metatheorem)
  •   - proof:
    1.         (instance of (A1))
    2.         (instance of (A1))
    3.         (from (1) and (2) using modus ponens)
  •   - proof:
    1.         (instance of (L1))
    2.         (instance of (TR1))
    3.         (from (1) and (2) using the hypothetical syllogism metatheorem)
  •   - proof:
    1.         (instance of (A1))
    2.         (instance of (A3))
    3.         (from (1) and (2) using the hypothetical syllogism metatheorem)
  •   - proof given in the proof example above
  •   - axiom (A1)
  •   - axiom (A2)

Another outline for a completeness proof edit

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.

Interpretation of a truth-functional propositional calculus edit

An interpretation of a truth-functional propositional calculus   is an assignment to each propositional symbol of   of one or the other (but not both) of the truth values truth (T) and falsity (F), and an assignment to the connective symbols of   of their usual truth-functional meanings. An interpretation of a truth-functional propositional calculus may also be expressed in terms of truth tables.[14]

For   distinct propositional symbols there are   distinct possible interpretations. For any particular symbol  , for example, there are   possible interpretations:

  1.   is assigned T, or
  2.   is assigned F.

For the pair  ,   there are   possible interpretations:

  1. both are assigned T,
  2. both are assigned F,
  3.   is assigned T and   is assigned F, or
  4.   is assigned F and   is assigned T.[14]

Since   has  , that is, denumerably many propositional symbols, there are  , and therefore uncountably many distinct possible interpretations of  .[14]

Interpretation of a sentence of truth-functional propositional logic edit

If φ and ψ are formulas of   and   is an interpretation of   then the following definitions apply:

  • A sentence of propositional logic is true under an interpretation   if   assigns the truth value T to that sentence. If a sentence is true under an interpretation, then that interpretation is called a model of that sentence.
  • φ is false under an interpretation   if φ is not true under  .[14]
  • A sentence of propositional logic is logically valid if it is true under every interpretation.
      φ means that φ is logically valid.
  • A sentence ψ of propositional logic is a semantic consequence of a sentence φ if there is no interpretation under which φ is true and ψ is false.
  • A sentence of propositional logic is consistent if it is true under at least one interpretation. It is inconsistent if it is not consistent.

Some consequences of these definitions:

  • For any given interpretation a given formula is either true or false.[14]
  • No formula is both true and false under the same interpretation.[14]
  • φ is false for a given interpretation iff   is true for that interpretation; and φ is true under an interpretation iff   is false under that interpretation.[14]
  • If φ and   are both true under a given interpretation, then ψ is true under that interpretation.[14]
  • If   and  , then  .[14]
  •   is true under   iff φ is not true under  .
  •   is true under   iff either φ is not true under   or ψ is true under  .[14]
  • A sentence ψ of propositional logic is a semantic consequence of a sentence φ iff   is logically valid, that is,   iff  .[14]

Alternative calculus edit

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 edit

Let φ, χ, and ψ stand for well-formed formulas. (The well-formed formulas themselves would not contain any Greek letters, but only capital Roman letters, connective operators, and parentheses.) Then the axioms are as follows:

Axioms
Name Axiom Schema Description
THEN-1   Add hypothesis χ, implication introduction
THEN-2   Distribute hypothesis   over implication
AND-1   Eliminate conjunction
AND-2    
AND-3   Introduce conjunction
OR-1   Introduce disjunction
OR-2    
OR-3   Eliminate disjunction
NOT-1   Introduce negation
NOT-2   Eliminate negation
NOT-3   Excluded middle, classical logic
IFF-1   Eliminate equivalence
IFF-2    
IFF-3   Introduce equivalence
  • Axiom THEN-2 may be considered to be a "distributive property of implication with respect to implication."
  • 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.
  • Axiom AND-3 corresponds to "conjunction introduction."
  • 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.
  • Axiom NOT-1 corresponds to "reductio ad absurdum."
  • Axiom NOT-2 says that "anything can be deduced from a contradiction."
  • Axiom NOT-3 is called "tertium non-datur" (Latin: "a third is not given") and reflects the semantic valuation of propositional formulas: 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 logicians do not accept the axiom NOT-3.

Inference rule edit

The inference rule is modus ponens:

 .

Meta-inference rule edit

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
 
has been demonstrated, then it is also possible to demonstrate the sequence
 .

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 soundnes

propositional, calculus, confused, with, propositional, analysis, branch, logic, also, called, propositional, logic, statement, logic, sentential, calculus, sentential, logic, sometimes, zeroth, order, logic, deals, with, propositions, which, true, false, rela. Not to be confused with Propositional analysis Propositional calculus is a branch of logic It is also called propositional logic statement logic sentential calculus sentential logic or sometimes zeroth order logic It deals with propositions which can be true or false and relations between propositions including the construction of arguments based on them Compound propositions are formed by connecting propositions by logical connectives Propositions that contain no logical connectives are called atomic propositions Unlike first order logic propositional logic does not deal with non logical objects predicates about them or quantifiers However all the machinery of propositional logic is included in first order logic and higher order logics In this sense propositional logic is the foundation of first order logic and higher order logic Contents 1 Explanation 2 History 3 Terminology 4 Basic concepts 4 1 Closure under operations 4 2 Argument 5 Generic description of a propositional calculus 6 Example 1 Simple axiom system 7 Example 2 Natural deduction system 8 Basic and derived argument forms 9 Proofs in propositional calculus 9 1 Example of a proof in natural deduction system 9 2 Example of a proof in a classical propositional calculus system 10 Soundness and completeness of the rules 10 1 Sketch of a soundness proof 10 2 Sketch of completeness proof 10 2 1 Example 10 2 2 Verifying completeness for the classical propositional calculus system 10 3 Another outline for a completeness proof 11 Interpretation of a truth functional propositional calculus 11 1 Interpretation of a sentence of truth functional propositional logic 12 Alternative calculus 12 1 Axioms 12 2 Inference rule 12 3 Meta inference rule 12 4 Example of a proof 13 Equivalence to equational logics 14 Graphical calculi 15 Other logical calculi 16 Solvers 17 See also 17 1 Higher logical levels 17 2 Related topics 18 Notes 19 References 20 Further reading 20 1 Related works 21 External linksExplanation editLogical connectives are found in natural languages In English some examples are and conjunction or disjunction not negation and if but only when used to denote material conditional The following is an example of a very simple inference within the scope of propositional logic Premise 1 If it s raining then it s cloudy Premise 2 It s raining Conclusion It s cloudy Both premises and the conclusion are propositions The premises are taken for granted and with the application of modus ponens an inference rule the conclusion follows As propositional logic is not concerned with the structure of propositions beyond the point where they cannot be decomposed any more by logical connectives this inference can be restated replacing those atomic statements with statement letters which are interpreted as variables representing statements Premise 1 P Q displaystyle P to Q nbsp Premise 2 P displaystyle P nbsp Conclusion Q displaystyle Q nbsp The same can be stated succinctly in the following way P Q P Q displaystyle frac P to Q P Q nbsp When P is interpreted as It s raining and Q as it s cloudy the above symbolic expressions can be seen to correspond exactly with the original expression in natural language Not only that but they will also correspond with any other inference of this form which will be valid on the same basis this inference is Propositional logic may be studied through a formal system in which formulas of a formal language may be interpreted to represent propositions A system of axioms and inference rules allows certain formulas to be derived These derived formulas are called theorems and may be interpreted to be true propositions A constructed sequence of such formulas is known as a derivation or proof and the last formula of the sequence is the theorem The derivation may be interpreted as proof of the proposition represented by the theorem When a formal system is used to represent formal logic only statement letters usually capital roman letters such as P displaystyle P nbsp Q displaystyle Q nbsp and R displaystyle R nbsp are represented directly The natural language propositions that arise when they re interpreted are outside the scope of the system and the relation between the formal system and its interpretation is likewise outside the formal system itself In classical truth functional propositional logic formulas are interpreted as having precisely one of two possible truth values the truth value of true or the truth value of false 1 The principle of bivalence and the law of excluded middle are upheld Truth functional propositional logic defined as such and systems isomorphic to it are considered to be zeroth order logic However alternative propositional logics are also possible For more see Other logical calculi below History editMain article History of logic Although propositional logic which is interchangeable with propositional calculus had been hinted by earlier philosophers it was developed into a formal logic Stoic logic by Chrysippus in the 3rd century BC 2 and expanded by his successor Stoics The logic was focused on propositions This advancement was different from the traditional syllogistic logic which was focused on terms However most of the original writings were lost 3 and the propositional logic developed by the Stoics was no longer understood later in antiquity citation needed Consequently the system was essentially reinvented by Peter Abelard in the 12th century 4 Propositional logic was eventually refined using symbolic logic The 17th 18th century mathematician Gottfried Leibniz has been credited with being the founder of symbolic logic for his work with the calculus ratiocinator Although his work was the first of its kind it was unknown to the larger logical community Consequently many of the advances achieved by Leibniz were recreated by logicians like George Boole and Augustus De Morgan completely independent of Leibniz 5 Just as propositional logic can be considered an advancement from the earlier syllogistic logic Gottlob Frege s predicate logic can be also considered an advancement from the earlier propositional logic One author describes predicate logic as combining the distinctive features of syllogistic logic and propositional logic 6 Consequently predicate logic ushered in a new era in logic s history however advances in propositional logic were still made after Frege including natural deduction truth trees and truth tables Natural deduction was invented by Gerhard Gentzen and Stanislaw Jaskowski Truth trees were invented by Evert Willem Beth 7 The invention of truth tables however is of uncertain attribution Within works by Frege 8 and Bertrand Russell 9 are ideas influential to the invention of truth tables The actual tabular structure being formatted as a table itself is generally credited to either Ludwig Wittgenstein or Emil Post or both independently 8 Besides Frege and Russell others credited with having ideas preceding truth tables include Philo Boole Charles Sanders Peirce 10 and Ernst Schroder Others credited with the tabular structure include Jan Lukasiewicz Alfred North Whitehead William Stanley Jevons John Venn and Clarence Irving Lewis 9 Ultimately some have concluded like John Shosky that It is far from clear that any one person should be given the title of inventor of truth tables 9 Terminology editIn general terms a calculus is a formal system that consists of a set of syntactic expressions well formed formulas a distinguished subset of these expressions axioms plus a set of formal rules that define a specific binary relation intended to be interpreted as logical equivalence on the space of expressions When the formal system is intended to be a logical system the expressions are meant to be interpreted as statements and the rules known to be inference rules are typically intended to be truth preserving In this setting the rules which may include axioms can then be used to derive infer formulas representing true statements from given formulas representing true statements The set of axioms may be empty a nonempty finite set or a countably infinite set see axiom schema A formal grammar recursively defines the expressions and well formed formulas of the language In addition a semantics may be given which defines truth and valuations or interpretations The language of a propositional calculus consists of a set of primitive symbols variously referred to as atomic formulas placeholders proposition letters or variables and a set of operator symbols variously interpreted as logical operators or logical connectives A well formed formula is any atomic formula or any formula that can be built up from atomic formulas by means of operator symbols according to the rules of the grammar Mathematicians sometimes distinguish between propositional constants propositional variables and schemata Propositional constants represent some particular proposition while propositional variables range over the set of all atomic propositions Schemata however range over all propositions It is common to represent propositional constants by A B and C propositional variables by P Q and R and schematic letters are often Greek letters most often f ps and x Basic concepts editThe following outlines a standard propositional calculus Many different formulations exist which are all more or less equivalent but differ in the details of their language i e the particular collection of primitive symbols and operator symbols the set of axioms or distinguished formulas and the set of inference rules Any given proposition may be represented with a letter called a propositional constant analogous to representing a number by a letter in mathematics e g a 5 All propositions require exactly one of two truth values true or false For example let P be the proposition that it is raining outside This will be true P if it is raining outside and false otherwise P We then define truth functional operators beginning with negation P represents the negation of P which can be thought of as the denial of P In the example above P expresses that it is not raining outside or by a more standard reading It is not the case that it is raining outside When P is true P is false and when P is false P is true As a result P always has the same truth value as P Conjunction is a truth functional connective which forms a proposition out of two simpler propositions for example P and Q The conjunction of P and Q is written P Q and expresses that each are true We read P Q as P and Q For any two propositions there are four possible assignments of truth values P is true and Q is true P is true and Q is false P is false and Q is true P is false and Q is falseThe conjunction of P and Q is true in case 1 and is false otherwise Where P is the proposition that it is raining outside and Q is the proposition that a cold front is over Kansas P Q is true when it is raining outside and there is a cold front over Kansas If it is not raining outside then P Q is false and if there is no cold front over Kansas then P Q is also false Disjunction resembles conjunction in that it forms a proposition out of two simpler propositions We write it P Q and it is read P or Q It expresses that either P or Q is true Thus in the cases listed above the disjunction of P with Q is true in all cases except case 4 Using the example above the disjunction expresses that it is either raining outside or there is a cold front over Kansas Note this use of disjunction is supposed to resemble the use of the English word or However it is most like the English inclusive or which can be used to express the truth of at least one of two propositions It is not like the English exclusive or which expresses the truth of exactly one of two propositions In other words the exclusive or is false when both P and Q are true case 1 and similarly is false when both P and Q are false case 4 An example of the exclusive or is You may keep a cake for later or you may eat it all now but you cannot both eat it all now and keep it for later Often in natural language given the appropriate context the addendum but not both is omitted but implied In mathematics however or is always inclusive or if exclusive or is meant it will be specified possibly by xor Material conditional also joins two simpler propositions and we write P Q which is read if P then Q The proposition to the left of the arrow is called the antecedent and the proposition to the right is called the consequent There is no such designation for conjunction or disjunction since they are commutative operations It expresses that Q is true whenever P is true Thus P Q is true in every case above except case 2 because this is the only case when P is true but Q is not Using the example if P then Q expresses that if it is raining outside then there is a cold front over Kansas The material conditional is often confused with physical causation The material conditional however only relates two propositions by their truth values which is not the relation of cause and effect It is contentious in the literature whether the material implication represents logical causation Biconditional joins two simpler propositions and we write P Q which is read P if and only if Q It expresses that P and Q have the same truth value and in cases 1 and 4 P is true if and only if Q is true and is false otherwise It is very helpful to look at the truth tables for these different operators as well as the method of analytic tableaux Closure under operations edit Propositional logic is closed under truth functional connectives That is to say for any proposition f f is also a proposition Likewise for any propositions f and ps f ps is a proposition and similarly for disjunction conditional and biconditional This implies that for instance f ps is a proposition and so it can be conjoined with another proposition In order to represent this we need to use parentheses to indicate which proposition is conjoined with which For instance P Q R is not a well formed formula because we do not know if we are conjoining P Q with R or if we are conjoining P with Q R Thus we must write either P Q R to represent the former or P Q R to represent the latter By evaluating the truth conditions we see that both expressions have the same truth conditions will be true in the same cases and moreover that any proposition formed by arbitrary conjunctions will have the same truth conditions regardless of the location of the parentheses This means that conjunction is associative however one should not assume that parentheses never serve a purpose For instance the sentence P Q R does not have the same truth conditions of P Q R so they are different sentences distinguished only by the parentheses One can verify this by the truth table method referenced above Note For any arbitrary number of propositional constants we can form a finite number of cases which list their possible truth values A simple way to generate this is by truth tables in which one writes P Q Z for any list of k propositional constants that is to say any list of propositional constants with k entries Below this list one writes 2k rows and below P one fills in the first half of the rows with true or T and the second half with false or F Below Q one fills in one quarter of the rows with T then one quarter with F then one quarter with T and the last quarter with F The next column alternates between true and false for each eighth of the rows then sixteenths and so on until the last propositional constant varies between T and F for each row This will give a complete listing of cases or truth value assignments possible for those propositional constants Argument edit The propositional calculus then defines an argument to be a list of propositions A valid argument is a list of propositions the last of which follows from or is implied by the rest All other arguments are invalid The simplest valid argument is modus ponens one instance of which is the following list of propositions 1 P Q 2 P Q displaystyle begin array rl 1 amp P to Q 2 amp P hline therefore amp Q end array nbsp This is a list of three propositions each line is a proposition and the last follows from the rest The first two lines are called premises and the last line the conclusion We say that any proposition C follows from any set of propositions P 1 P n displaystyle P 1 P n nbsp if C must be true whenever every member of the set P 1 P n displaystyle P 1 P n nbsp is true In the argument above for any P and Q whenever P Q and P are true necessarily Q is true Notice that when P is true we cannot consider cases 3 and 4 from the truth table When P Q is true we cannot consider case 2 This leaves only case 1 in which Q is also true Thus Q is implied by the premises This generalizes schematically Thus where f and ps may be any propositions at all 1 f ps 2 f ps displaystyle begin array rl 1 amp varphi to psi 2 amp varphi hline therefore amp psi end array nbsp Other argument forms are convenient but not necessary Given a complete set of axioms see below for one such set modus ponens is sufficient to prove all other argument forms in propositional logic thus they may be considered to be a derivative Note this is not true of the extension of propositional logic to other logics like first order logic First order logic requires at least one additional rule of inference in order to obtain completeness The significance of argument in formal logic is that one may obtain new truths from established truths In the first example above given the two premises the truth of Q is not yet known or stated After the argument is made Q is deduced In this way we define a deduction system to be a set of all propositions that may be deduced from another set of propositions For instance given the set of propositions A P Q Q R P Q R displaystyle A P lor Q neg Q land R P lor Q to R nbsp we can define a deduction system G which is the set of all propositions which follow from A Reiteration is always assumed so P Q Q R P Q R G displaystyle P lor Q neg Q land R P lor Q to R in Gamma nbsp Also from the first element of A last element as well as modus ponens R is a consequence and so R G displaystyle R in Gamma nbsp Because we have not included sufficiently complete axioms though nothing else may be deduced Thus even though most deduction systems studied in propositional logic are able to deduce P Q P Q displaystyle P lor Q leftrightarrow neg P to Q nbsp this one is too weak to prove such a proposition Generic description of a propositional calculus editA propositional calculus is a formal system L L A W Z I displaystyle mathcal L mathcal L left mathrm A Omega mathrm Z mathrm I right nbsp where citation needed The alpha set A displaystyle mathrm A nbsp is a countably infinite set of elements called proposition symbols or propositional variables Syntactically speaking these are the most basic elements of the formal language L displaystyle mathcal L nbsp otherwise referred to as atomic formulas or terminal elements In the examples to follow the elements of A displaystyle mathrm A nbsp are typically the letters p q r and so on The omega set W is a finite set of elements called operator symbols or logical connectives The set W is partitioned into disjoint subsets as follows W W 0 W 1 W j W m displaystyle Omega Omega 0 cup Omega 1 cup cdots cup Omega j cup cdots cup Omega m nbsp In this partition W j displaystyle Omega j nbsp is the set of operator symbols of arity j In the more familiar propositional calculi W is typically partitioned as follows W 1 displaystyle Omega 1 lnot nbsp W 2 displaystyle Omega 2 subseteq land lor to leftrightarrow nbsp A frequently adopted convention treats the constant logical values as operators of arity zero thus W 0 displaystyle Omega 0 bot top nbsp Some writers use the tilde or N instead of and some use v instead of displaystyle vee nbsp as well as the ampersand amp the prefixed K or displaystyle cdot nbsp instead of displaystyle wedge nbsp Notation varies even more for the set of logical values with symbols like false true F T or 0 1 all being seen in various contexts instead of displaystyle bot top nbsp The zeta set Z displaystyle mathrm Z nbsp is a finite set of transformation rules that are called inference rules when they acquire logical applications The iota set I displaystyle mathrm I nbsp is a countable set of initial points that are called axioms when they receive logical interpretations The language of L displaystyle mathcal L nbsp also known as its set of formulas well formed formulas is inductively defined by the following rules Base Any element of the alpha set A displaystyle mathrm A nbsp is a formula of L displaystyle mathcal L nbsp If p 1 p 2 p j displaystyle p 1 p 2 ldots p j nbsp are formulas and f displaystyle f nbsp is in W j displaystyle Omega j nbsp then f p 1 p 2 p j displaystyle fp 1 p 2 ldots p j nbsp is a formula Closed Nothing else is a formula of L displaystyle mathcal L nbsp Repeated applications of these rules permits the construction of complex formulas For example By rule 1 p is a formula By rule 2 p displaystyle neg p nbsp is a formula By rule 1 q is a formula By rule 2 p q displaystyle neg p lor q nbsp is a formula note 1 Example 1 Simple axiom system editLet L 1 L A W Z I displaystyle mathcal L 1 mathcal L mathrm A Omega mathrm Z mathrm I nbsp where A displaystyle mathrm A nbsp W displaystyle Omega nbsp Z displaystyle mathrm Z nbsp I displaystyle mathrm I nbsp are defined as follows The set A displaystyle mathrm A nbsp the countably infinite set of symbols that serve to represent logical propositions A p q r s t u p 2 displaystyle mathrm A p q r s t u p 2 ldots nbsp The functionally complete set W displaystyle Omega nbsp of logical operators logical connectives and negation is as follows Of the three connectives for conjunction disjunction and implication displaystyle wedge lor nbsp and one can be taken as primitive and the other two can be defined in terms of it and negation 11 Alternatively all of the logical operators may be defined in terms of a sole sufficient operator such as the Sheffer stroke nand The biconditional a b displaystyle a leftrightarrow b nbsp can of course be defined in terms of conjunction and implication as a b b a displaystyle a to b land b to a nbsp Adopting negation and implication as the two primitive operations of a propositional calculus is tantamount to having the omega set W W 1 W 2 displaystyle Omega Omega 1 cup Omega 2 nbsp partition as follows W 1 displaystyle Omega 1 lnot nbsp W 2 displaystyle Omega 2 to nbsp Then a b displaystyle a lor b nbsp is defined as a b displaystyle neg a to b nbsp and a b displaystyle a land b nbsp is defined as a b displaystyle neg a to neg b nbsp The set I displaystyle mathrm I nbsp the set of initial points of logical deduction i e logical axioms is the axiom system proposed by Jan Lukasiewicz and used as the propositional calculus part of a Hilbert system The axioms are all substitution instances of p q p displaystyle p to q to p nbsp p q r p q p r displaystyle p to q to r to p to q to p to r nbsp p q q p displaystyle neg p to neg q to q to p nbsp The set Z displaystyle mathrm Z nbsp of transformation rules rules of inference is the sole rule modus ponens i e from any formulas of the form f displaystyle varphi nbsp and f ps displaystyle varphi to psi nbsp infer ps displaystyle psi nbsp This system is used in Metamath set mm formal proof database Example 2 Natural deduction system editLet L 2 L A W Z I displaystyle mathcal L 2 mathcal L mathrm A Omega mathrm Z mathrm I nbsp where A displaystyle mathrm A nbsp W displaystyle Omega nbsp Z displaystyle mathrm Z nbsp I displaystyle mathrm I nbsp are defined as follows The alpha set A displaystyle mathrm A nbsp is a countably infinite set of symbols for example A p q r s t u p 2 displaystyle mathrm A p q r s t u p 2 ldots nbsp The omega set W W 1 W 2 displaystyle Omega Omega 1 cup Omega 2 nbsp partitions as follows W 1 displaystyle Omega 1 lnot nbsp W 2 displaystyle Omega 2 land lor to leftrightarrow nbsp 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 theorems from an empty axiom set The set of initial points is empty that is I displaystyle mathrm I varnothing nbsp The set of transformation rules Z displaystyle mathrm Z nbsp is described as follows Our propositional calculus has eleven inference rules These rules allow us to derive other true formulas given a set of formulas that are assumed to be true The first ten simply state that we can infer certain well formed formulas from other well formed formulas 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 formulas to see if we can infer a certain other formula Since the first ten rules do not do this they are usually described as non hypothetical rules and the last one as a hypothetical rule In describing the transformation rules we may introduce a metalanguage symbol displaystyle vdash nbsp It is basically a convenient shorthand for saying infer that The format is G ps displaystyle Gamma vdash psi nbsp in which G is a possibly empty set of formulas called premises and ps is a formula called conclusion The transformation rule G ps displaystyle Gamma vdash psi nbsp means that if every proposition in G is a theorem or has the same truth value as the axioms then ps is also a theorem Considering the following rule Conjunction introduction we will know whenever G has more than one formula we can always safely reduce it into one formula using conjunction So for short from that time on we may represent G as one formula instead of a set Another omission for convenience is when G is an empty set in which case G may not appear Negation introduction From p q displaystyle p to q nbsp and p q displaystyle p to neg q nbsp infer p displaystyle neg p nbsp That is p q p q p displaystyle p to q p to neg q vdash neg p nbsp Negation elimination From p displaystyle neg p nbsp infer p r displaystyle p to r nbsp That is p p r displaystyle neg p vdash p to r nbsp Double negation elimination From p displaystyle neg neg p nbsp infer p That is p p displaystyle neg neg p vdash p nbsp Conjunction introduction From p and q infer p q displaystyle p land q nbsp That is p q p q displaystyle p q vdash p land q nbsp Conjunction elimination From p q displaystyle p land q nbsp infer p From p q displaystyle p land q nbsp infer q That is p q p displaystyle p land q vdash p nbsp and p q q displaystyle p land q vdash q nbsp Disjunction introduction From p infer p q displaystyle p lor q nbsp From q infer p q displaystyle p lor q nbsp That is p p q displaystyle p vdash p lor q nbsp and q p q displaystyle q vdash p lor q nbsp Disjunction elimination From p q displaystyle p lor q nbsp and p r displaystyle p to r nbsp and q r displaystyle q to r nbsp infer r That is p q p r q r r displaystyle p lor q p to r q to r vdash r nbsp Biconditional introduction From p q displaystyle p to q nbsp and q p displaystyle q to p nbsp infer p q displaystyle p leftrightarrow q nbsp That is p q q p p q displaystyle p to q q to p vdash p leftrightarrow q nbsp Biconditional elimination From p q displaystyle p leftrightarrow q nbsp infer p q displaystyle p to q nbsp From p q displaystyle p leftrightarrow q nbsp infer q p displaystyle q to p nbsp That is p q p q displaystyle p leftrightarrow q vdash p to q nbsp and p q q p displaystyle p leftrightarrow q vdash q to p nbsp Modus ponens conditional elimination From p and p q displaystyle p to q nbsp infer q That is p p q q displaystyle p p to q vdash q nbsp Conditional proof conditional introduction From accepting p allows a proof of q infer p q displaystyle p to q nbsp That is p q p q displaystyle p vdash q vdash p to q nbsp Basic and derived argument forms editName Sequent 12 DescriptionModus Ponens p q p q displaystyle p to q land p vdash q nbsp If p then q p therefore qModus Tollens p q q p displaystyle p to q land neg q vdash neg p nbsp If p then q not q therefore not pHypothetical Syllogism p q q r p r displaystyle p to q land q to r vdash p to r nbsp If p then q if q then r therefore if p then rDisjunctive Syllogism p q p q displaystyle p lor q land neg p vdash q nbsp Either p or q or both not p therefore qConstructive Dilemma p q r s p r q s displaystyle p to q land r to s land p lor r vdash q lor s nbsp If p then q and if r then s but p or r therefore q or sDestructive Dilemma p q r s q s p r displaystyle p to q land r to s land neg q lor neg s vdash neg p lor neg r nbsp If p then q and if r then s but not q or not s therefore not p or not rBidirectional Dilemma p q r s p s q r displaystyle p to q land r to s land p lor neg s vdash q lor neg r nbsp If p then q and if r then s but p or not s therefore q or not rSimplification p q p displaystyle p land q vdash p nbsp p and q are true therefore p is trueConjunction p q p q displaystyle p q vdash p land q nbsp p and q are true separately therefore they are true conjointlyAddition p p q displaystyle p vdash p lor q nbsp p is true therefore the disjunction p or q is trueComposition p q p r p q r displaystyle p to q land p to r vdash p to q land r nbsp If p then q and if p then r therefore if p is true then q and r are trueDe Morgan s Theorem 1 p q p q displaystyle neg p land q dashv vdash neg p lor neg q nbsp The negation of p and q is equiv to not p or not q De Morgan s Theorem 2 p q p q displaystyle neg p lor q dashv vdash neg p land neg q nbsp The negation of p or q is equiv to not p and not q Commutation 1 p q q p displaystyle p lor q dashv vdash q lor p nbsp p or q is equiv to q or p Commutation 2 p q q p displaystyle p land q dashv vdash q land p nbsp p and q is equiv to q and p Commutation 3 p q q p displaystyle p leftrightarrow q dashv vdash q leftrightarrow p nbsp p iff q is equiv to q iff p Association 1 p q r p q r displaystyle p lor q lor r dashv vdash p lor q lor r nbsp p or q or r is equiv to p or q or rAssociation 2 p q r p q r displaystyle p land q land r dashv vdash p land q land r nbsp p and q and r is equiv to p and q and rDistribution 1 p q r p q p r displaystyle p land q lor r dashv vdash p land q lor p land r nbsp p and q or r is equiv to p and q or p and r Distribution 2 p q r p q p r displaystyle p lor q land r dashv vdash p lor q land p lor r nbsp p or q and r is equiv to p or q and p or r Double Negation p p displaystyle p dashv vdash neg neg p nbsp p is equivalent to the negation of not pTransposition p q q p displaystyle p to q dashv vdash neg q to neg p nbsp If p then q is equiv to if not q then not pMaterial Implication p q p q displaystyle p to q dashv vdash neg p lor q nbsp If p then q is equiv to not p or qMaterial Equivalence 1 p q p q q p displaystyle p leftrightarrow q dashv vdash p to q land q to p nbsp p iff q is equiv to if p is true then q is true and if q is true then p is true Material Equivalence 2 p q p q p q displaystyle p leftrightarrow q dashv vdash p land q lor neg p land neg q nbsp p iff q is equiv to either p and q are true or both p and q are false Material Equivalence 3 p q p q p q displaystyle p leftrightarrow q dashv vdash p lor neg q land neg p lor q nbsp p iff q is equiv to both p or not q is true and not p or q is true Exportation 13 p q r p q r displaystyle p land q to r vdash p to q to r nbsp 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 q r p q r displaystyle p to q to r dashv vdash p land q to r nbsp If p then if q then r is equivalent to if p and q then rTautology 1 p p p displaystyle p dashv vdash p lor p nbsp p is true is equiv to p is true or p is trueTautology 2 p p p displaystyle p dashv vdash p land p nbsp p is true is equiv to p is true and p is trueTertium non datur Law of Excluded Middle p p displaystyle vdash p lor neg p nbsp p or not p is trueLaw of Non Contradiction p p displaystyle vdash neg p land neg p nbsp p and not p is false is a true statementProofs in propositional calculus editOne 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 sequence of numbered lines with each line consisting of a single formula followed by a reason or justification for introducing that formula Each premise of the argument that is an assumption introduced as an hypothesis of the argument is listed at the beginning of the sequence and is marked as a premise in lieu of other justification The conclusion is listed on the last line A proof is complete if every line follows from the previous ones by the correct application of a transformation rule For a contrasting approach see proof trees Example of a proof in natural deduction system edit To be shown that A A One possible proof of this which though valid happens to contain more steps than are necessary may be arranged as follows Example of a proof Number Formula Reason1 A displaystyle A nbsp premise2 A A displaystyle A lor A nbsp From 1 by disjunction introduction3 A A A displaystyle A lor A land A nbsp From 1 and 2 by conjunction introduction4 A displaystyle A nbsp From 3 by conjunction elimination5 A A displaystyle A vdash A nbsp Summary of 1 through 4 6 A A displaystyle vdash A to A nbsp From 5 by conditional proofInterpret A A displaystyle A vdash A nbsp as Assuming A infer A Read A A displaystyle vdash A to A nbsp 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 Example of a proof in a classical propositional calculus system edit We now prove the same theorem A A displaystyle A to A nbsp in the axiomatic system by Jan Lukasiewicz described above which is an example of a Hilbert style deductive system for the classical propositional calculus The axioms are A1 p q p displaystyle p to q to p nbsp A2 p q r p q p r displaystyle p to q to r to p to q to p to r nbsp A3 p q q p displaystyle neg p to neg q to q to p nbsp And the proof is as follows A B A A displaystyle A to B to A to A nbsp instance of A1 A B A A A B A A A displaystyle A to B to A to A to A to B to A to A to A nbsp instance of A2 A B A A A displaystyle A to B to A to A to A nbsp from 1 and 2 by modus ponens A B A displaystyle A to B to A nbsp instance of A1 A A displaystyle A to A nbsp from 4 and 3 by modus ponens Soundness and completeness of the rules editThe crucial properties of this set of rules are that they are sound and 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 The proofs for the soundness and completeness of the propositional logic are not themselves proofs in propositional logic these are theorems in ZFC used as a metatheory to prove properties of propositional logic We define a truth assignment as a 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 formulas 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 with the following rules A satisfies the propositional variable P if and only if A P true A satisfies f if and only if A does not satisfy f A satisfies f ps if and only if A satisfies both f and ps A satisfies f ps if and only if A satisfies at least one of either f or ps A satisfies f ps if and only if it is not the case that A satisfies f but not ps A satisfies f ps if and only if A satisfies both f and ps or satisfies neither one of themWith this definition we can now formalize what it means for a formula f to be implied by a certain set S of formulas Informally this is true if in all worlds that are possible given the set of formulas S the formula f also holds This leads to the following formal definition We say that a set S of well formed formulas semantically entails or implies a certain well formed formula f if all truth assignments that satisfy all the formulas in S also satisfy f Finally we define syntactical entailment such that f is syntactically entailed by S if and only if 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 well formed formulas S syntactically entails the well formed formula f then S semantically entails f Completeness If the set of well formed formulas S semantically entails the well formed formula f then S syntactically entails f For the above set of rules this is indeed the case Sketch of a soundness proof edit For most logical systems 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 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 Basis Show If A is a member of G then G implies A Basis Show If A is an axiom then G implies A Inductive step induction on n the length of the proof Assume for arbitrary G and A that if G proves A in n or fewer steps then G implies A For each possible application of a rule of inference at step n 1 leading to a new theorem B show that G implies B Notice that Basis Step II can be omitted for natural deduction systems because they have no axioms When used Step II involves showing that each of the axioms is a semantic logical truth The Basis steps demonstrate that the simplest provable sentences from G are also implied by G for any G The proof 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 edit 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 If we show that there is a model where A does not hold despite G being true then obviously G does not imply A The idea is to build such a model out of our very assumption that G does not prove A G does not prove A Assumption 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 Place an ordering with order type w on all the sentences in the language e g shortest first and equally long ones in extended alphabetical ordering and number them E1 E2 Define a series Gn of sets G0 G1 inductively G 0 G displaystyle G 0 G nbsp If G k E k 1 displaystyle G k cup E k 1 nbsp proves A then G k 1 G k displaystyle G k 1 G k nbsp If G k E k 1 displaystyle G k cup E k 1 nbsp does not prove A then G k 1 G k E k 1 displaystyle G k 1 G k cup E k 1 nbsp Define G as the union of all the Gn That is G is the set of all the sentences that are in any Gn It can be easily shown that G contains is a superset of G by b i G does not prove A because the proof would contain only finitely many sentences and when the last of them is introduced in some Gn that Gn would prove A contrary to the definition of Gn andG 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 Gn again by definition If G is a Maximal Set with respect to A then it is truth like This means that it contains C if and only if it does not contain C If it contains C and contains If C then B then it also contains B and so forth In order to show this one has to show the axiomatic system is strong enough for the following For any formulas C and D if it proves both C and C then it proves D From this it follows that a Maximal Set with respect to A cannot prove both C and C as otherwise it would prove A For any formulas C and D if it proves both C D and C D then it proves D This is used together with the deduction theorem to show that for any formula either it or its negation is in G Let B be a formula not in G then G with the addition of B proves A Thus from the deduction theorem it follows that G proves B A But suppose B were also not in G then by the same logic G also proves B A but then G proves A which we have already shown to be false For any formulas C and D if it proves C and D then it proves C D For any formulas C and D if it proves C and D then it proves C D For any formulas C and D if it proves C then it proves C D If additional logical operation such as conjunction and or disjunction are part of the vocabulary as well then there are additional requirement on the axiomatic system e g that if it proves C and D it would also prove their conjunction 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 The requirement that it is truth like is needed to guarantee that the laws of semantic composition in the language will be satisfied by this truth assignment A G canonical valuation will make our original set G all true and make A false If there is a valuation on which G are true and A is false then G does not semantically imply A Thus every system that has modus ponens as an inference rule and proves the following theorems including substitutions thereof is complete p p q displaystyle p to neg p to q nbsp p q p q q displaystyle p to q to neg p to q to q nbsp p q p q displaystyle p to q to p to q nbsp p q p q displaystyle p to neg q to neg p to q nbsp p p q displaystyle neg p to p to q nbsp p p displaystyle p to p nbsp p q p displaystyle p to q to p nbsp p q r p q p r displaystyle p to q to r to p to q to p to r nbsp The first five are used for the satisfaction of the five conditions in stage III above and the last three for proving the deduction theorem Example edit As an example it can be shown that as any other tautology the three axioms of the classical propositional calculus system described earlier can be proven in any system that satisfies the above namely that has modus ponens as an inference rule and proves the above eight theorems including substitutions thereof Out of the eight theorems the last two are two of the three axioms the third axiom q p p q displaystyle neg q to neg p to p to q nbsp can be proven as well as we now show For the proof we may use the hypothetical syllogism theorem in the form relevant for this axiomatic system since it only relies on the two axioms that are already in the above set of eight theorems The proof then is as follows q p q displaystyle q to p to q nbsp instance of the 7th theorem q p q q p q p q displaystyle q to p to q to neg q to neg p to q to p to q nbsp instance of the 7th theorem q p q p q displaystyle neg q to neg p to q to p to q nbsp from 1 and 2 by modus ponens p p q q p q p q displaystyle neg p to p to q to neg q to neg p to neg q to p to q nbsp instance of the hypothetical syllogism theorem p p q displaystyle neg p to p to q nbsp instance of the 5th theorem q p q p q displaystyle neg q to neg p to neg q to p to q nbsp from 5 and 4 by modus ponens q p q q p q p q displaystyle q to p to q to neg q to p to q to p to q nbsp instance of the 2nd theorem q p q q p q p q q p q p q q p q p q displaystyle q to p to q to neg q to p to q to p to q to neg q to neg p to q to p to q to neg q to p to q to p to q nbsp instance of the 7th theorem q p q p q q p q p q displaystyle neg q to neg p to q to p to q to neg q to p to q to p to q nbsp from 7 and 8 by modus ponens q p q p q q p q p q displaystyle neg q to neg p to q to p to q to neg q to p to q to p to q to nbsp q p q p q q p q p q p q displaystyle neg q to neg p to q to p to q to neg q to neg p to neg q to p to q to p to q nbsp instance of the 8th theorem dd q p q p q q p q p q p q displaystyle neg q to neg p to q to p to q to neg q to neg p to neg q to p to q to p to q nbsp from 9 and 10 by modus ponens q p q p q p q displaystyle neg q to neg p to neg q to p to q to p to q nbsp from 3 and 11 by modus ponens q p q p q p q q p q p q q p p q displaystyle neg q to neg p to neg q to p to q to p to q to neg q to neg p to neg q to p to q to neg q to neg p to p to q nbsp instance of the 8th theorem q p q p q q p p q displaystyle neg q to neg p to neg q to p to q to neg q to neg p to p to q nbsp from 12 and 13 by modus ponens q p p q displaystyle neg q to neg p to p to q nbsp from 6 and 14 by modus ponens Verifying completeness for the classical propositional calculus system edit We now verify that the classical propositional calculus system described earlier can indeed prove the required eight theorems mentioned above We use several lemmas proven here DN1 p p displaystyle neg neg p to p nbsp Double negation one direction DN2 p p displaystyle p to neg neg p nbsp Double negation another direction HS1 q r p q p r displaystyle q to r to p to q to p to r nbsp one form of Hypothetical syllogism HS2 p q q r p r displaystyle p to q to q to r to p to r nbsp another form of Hypothetical syllogism TR1 p q q p displaystyle p to q to neg q to neg p nbsp Transposition TR2 p q q p displaystyle neg p to q to neg q to p nbsp another form of transposition L1 p p q q displaystyle p to p to q to q nbsp L3 p p p displaystyle neg p to p to p nbsp We also use the method of the hypothetical syllogism metatheorem as a shorthand for several proof steps p p q displaystyle p to neg p to q nbsp proof p q p displaystyle p to neg q to p nbsp instance of A1 q p p q displaystyle neg q to p to neg p to neg neg q nbsp instance of TR1 p p q displaystyle p to neg p to neg neg q nbsp from 1 and 2 using the hypothetical syllogism metatheorem q q displaystyle neg neg q to q nbsp instance of DN1 q q p q p q displaystyle neg neg q to q to neg p to neg neg q to neg p to q nbsp instance of HS1 p q p q displaystyle neg p to neg neg q to neg p to q nbsp from 4 and 5 using modus ponens p p q displaystyle p to neg p to q nbsp from 3 and 6 using the hypothetical syllogism metatheorem p q p q q displaystyle p to q to neg p to q to q nbsp proof p q q p q q displaystyle p to q to neg q to p to neg q to q nbsp instance of HS1 q q q displaystyle neg q to q to q nbsp instance of L3 q q q q p q q q p q displaystyle neg q to q to q to neg q to p to neg q to q to neg q to p to q nbsp instance of HS1 q p q q q p q displaystyle neg q to p to neg q to q to neg q to p to q nbsp from 2 and 3 by modus ponens p q q p q displaystyle p to q to neg q to p to q nbsp from 1 and 4 using the hypothetical syllogism metatheorem p q q p displaystyle neg p to q to neg q to p nbsp instance of TR2 p q q p q p q p q q displaystyle neg p to q to neg q to p to neg q to p to q to neg p to q to q nbsp instance of HS2 q p q p q q displaystyle neg q to p to q to neg p to q to q nbsp from 6 and 7 using modus ponens p q p q q displaystyle p to q to neg p to q to q nbsp from 5 and 8 using the hypothetical syllogism metatheorem p q p q displaystyle p to q to p to q nbsp proof q p q displaystyle q to p to q nbsp instance of A1 q p q p q p q displaystyle q to p to q to p to q to p to q nbsp instance of A1 p q p q displaystyle p to q to p to q nbsp from 1 and 2 using modus ponens p q p q displaystyle p to neg q to neg p to q nbsp proof p p q q displaystyle p to p to q to q nbsp instance of L1 p q q q p q displaystyle p to q to q to neg q to neg p to q nbsp instance of TR1 p q p q displaystyle p to neg q to neg p to q nbsp from 1 and 2 using the hypothetical syllogism metatheorem p p q displaystyle neg p to p to q nbsp proof p q p displaystyle neg p to neg q to neg p nbsp instance of A1 q p p q displaystyle neg q to neg p to p to q nbsp instance of A3 p p q displaystyle neg p to p to q nbsp from 1 and 2 using the hypothetical syllogism metatheorem p p displaystyle p to p nbsp proof given in the proof example above p q p displaystyle p to q to p nbsp axiom A1 p q r p q p r displaystyle p to q to r to p to q to p to r nbsp axiom A2 Another outline for a completeness proof edit 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 Interpretation of a truth functional propositional calculus editAn interpretation of a truth functional propositional calculus P displaystyle mathcal P nbsp is an assignment to each propositional symbol of P displaystyle mathcal P nbsp of one or the other but not both of the truth values truth T and falsity F and an assignment to the connective symbols of P displaystyle mathcal P nbsp of their usual truth functional meanings An interpretation of a truth functional propositional calculus may also be expressed in terms of truth tables 14 For n displaystyle n nbsp distinct propositional symbols there are 2 n displaystyle 2 n nbsp distinct possible interpretations For any particular symbol a displaystyle a nbsp for example there are 2 1 2 displaystyle 2 1 2 nbsp possible interpretations a displaystyle a nbsp is assigned T or a displaystyle a nbsp is assigned F For the pair a displaystyle a nbsp b displaystyle b nbsp there are 2 2 4 displaystyle 2 2 4 nbsp possible interpretations both are assigned T both are assigned F a displaystyle a nbsp is assigned T and b displaystyle b nbsp is assigned F or a displaystyle a nbsp is assigned F and b displaystyle b nbsp is assigned T 14 Since P displaystyle mathcal P nbsp has ℵ 0 displaystyle aleph 0 nbsp that is denumerably many propositional symbols there are 2 ℵ 0 c displaystyle 2 aleph 0 mathfrak c nbsp and therefore uncountably many distinct possible interpretations of P displaystyle mathcal P nbsp 14 Interpretation of a sentence of truth functional propositional logic edit Main article Interpretation logic If f and ps are formulas of P displaystyle mathcal P nbsp and I displaystyle mathcal I nbsp is an interpretation of P displaystyle mathcal P nbsp then the following definitions apply A sentence of propositional logic is true under an interpretation I displaystyle mathcal I nbsp if I displaystyle mathcal I nbsp assigns the truth value T to that sentence If a sentence is true under an interpretation then that interpretation is called a model of that sentence f is false under an interpretation I displaystyle mathcal I nbsp if f is not true under I displaystyle mathcal I nbsp 14 A sentence of propositional logic is logically valid if it is true under every interpretation displaystyle models nbsp f means that f is logically valid A sentence ps of propositional logic is a semantic consequence of a sentence f if there is no interpretation under which f is true and ps is false A sentence of propositional logic is consistent if it is true under at least one interpretation It is inconsistent if it is not consistent Some consequences of these definitions For any given interpretation a given formula is either true or false 14 No formula is both true and false under the same interpretation 14 f is false for a given interpretation iff ϕ displaystyle neg phi nbsp is true for that interpretation and f is true under an interpretation iff ϕ displaystyle neg phi nbsp is false under that interpretation 14 If f and ϕ ps displaystyle phi to psi nbsp are both true under a given interpretation then ps is true under that interpretation 14 If P ϕ displaystyle models mathrm P phi nbsp and P ϕ ps displaystyle models mathrm P phi to psi nbsp then P ps displaystyle models mathrm P psi nbsp 14 ϕ displaystyle neg phi nbsp is true under I displaystyle mathcal I nbsp iff f is not true under I displaystyle mathcal I nbsp ϕ ps displaystyle phi to psi nbsp is true under I displaystyle mathcal I nbsp iff either f is not true under I displaystyle mathcal I nbsp or ps is true under I displaystyle mathcal I nbsp 14 A sentence ps of propositional logic is a semantic consequence of a sentence f iff ϕ ps displaystyle phi to psi nbsp is logically valid that is ϕ P ps displaystyle phi models mathrm P psi nbsp iff P ϕ ps displaystyle models mathrm P phi to psi nbsp 14 Alternative calculus editIt 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 edit Let f x and ps stand for well formed formulas The well formed formulas themselves would not contain any Greek letters but only capital Roman letters connective operators and parentheses Then the axioms are as follows Axioms Name Axiom Schema DescriptionTHEN 1 ϕ x ϕ displaystyle phi to chi to phi nbsp Add hypothesis x implication introductionTHEN 2 ϕ x ps ϕ x ϕ ps displaystyle phi to chi to psi to phi to chi to phi to psi nbsp Distribute hypothesis ϕ displaystyle phi nbsp over implicationAND 1 ϕ x ϕ displaystyle phi land chi to phi nbsp Eliminate conjunctionAND 2 ϕ x x displaystyle phi land chi to chi nbsp AND 3 ϕ x ϕ x displaystyle phi to chi to phi land chi nbsp Introduce conjunctionOR 1 ϕ ϕ x displaystyle phi to phi lor chi nbsp Introduce disjunctionOR 2 x ϕ x displaystyle chi to phi lor chi nbsp OR 3 ϕ ps x ps ϕ x ps displaystyle phi to psi to chi to psi to phi lor chi to psi nbsp Eliminate disjunctionNOT 1 ϕ x ϕ x ϕ displaystyle phi to chi to phi to neg chi to neg phi nbsp Introduce negationNOT 2 ϕ ϕ x displaystyle phi to neg phi to chi nbsp Eliminate negationNOT 3 ϕ ϕ displaystyle phi lor neg phi nbsp Excluded middle classical logicIFF 1 ϕ x ϕ x displaystyle phi leftrightarrow chi to phi to chi nbsp Eliminate equivalenceIFF 2 ϕ x x ϕ displaystyle phi leftrightarrow chi to chi to phi nbsp IFF 3 ϕ x x ϕ ϕ x displaystyle phi to chi to chi to phi to phi leftrightarrow chi nbsp Introduce equivalenceAxiom THEN 2 may be considered to be a distributive property of implication with respect to implication 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 Axiom AND 3 corresponds to conjunction introduction 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 Axiom NOT 1 corresponds to reductio ad absurdum Axiom NOT 2 says that anything can be deduced from a contradiction Axiom NOT 3 is called tertium non datur Latin a third is not given and reflects the semantic valuation of propositional formulas 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 logicians do not accept the axiom NOT 3 Inference rule edit The inference rule is modus ponens ϕ ϕ x x displaystyle frac phi phi to chi chi nbsp Meta inference rule edit 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ϕ 1 ϕ 2 ϕ n x ps displaystyle phi 1 phi 2 phi n chi vdash psi nbsp dd has been demonstrated then it is also possible to demonstrate the sequenceϕ 1 ϕ 2 ϕ n x ps displaystyle phi 1 phi 2 phi n vdash chi to psi nbsp dd 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 soundnes, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.