Unlikefirst-order logic, propositional logic does not deal with non-logical objects, predicates about them, orquantifiers. 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.
Propositional logic is typically studied with aformal language,[c] in which propositions are represented by letters, which are calledpropositional variables. These are then used, together with symbols for connectives, to makepropositional formulas. Because of this, the propositional variables are calledatomic formulas of a formal propositional language.[15][2] While the atomic propositions are typically represented by letters of thealphabet,[d][15] there is a variety of notations to represent the logical connectives. For the benefit of readers who may only be used to a different variant notation for the logical connectives, the following table shows the main notational variants for each of the connectives in propositional logic. Other notations have been used historically, such asPolish notation. For the history of each of these symbols, see the respective articles as well as the article "Logical connective".
The most thoroughly researched branch of propositional logic isclassical truth-functional propositional logic,[1] in which formulas are interpreted as having precisely one of two possibletruth values, the truth value oftrue or the truth value offalse.[20] Theprinciple of bivalence and thelaw of excluded middle are upheld. By comparison withfirst-order logic, truth-functional propositional logic is considered to bezeroth-order logic.[8][9]
Although propositional logic had been hinted by earlier philosophers,Chrysippus is often credited with development of a deductive system for propositional logic as his main achievement in the 3rd century BC[21] which was expanded by his successorStoics. The logic was focused onpropositions. This was different from the traditionalsyllogistic logic, which focused onterms. However, most of the original writings were lost[22] and, at some time between the 3rd and 6th century CE, Stoic logic faded into oblivion, to be resurrected only in the 20th century, in the wake of the (re)-discovery of propositional logic.[23]
Symbolic logic, which would come to be important to refine propositional logic, was first developed by the 17th/18th-century mathematicianGottfried Leibniz, whosecalculus ratiocinator was, however, unknown to the larger logical community. Consequently, many of the advances achieved by Leibniz were recreated by logicians likeGeorge Boole andAugustus De Morgan, completely independent of Leibniz.[24]
Gottlob Frege'spredicate logic builds upon propositional logic, and has been described as combining "the distinctive features of syllogistic logic and propositional logic."[25] Consequently, predicate logic ushered in a new era in logic's history; however, advances in propositional logic were still made after Frege, includingnatural deduction,truth trees andtruth tables. Natural deduction was invented byGerhard Gentzen andStanisław Jaśkowski. Truth trees were invented byEvert Willem Beth.[26] The invention of truth tables, however, is of uncertain attribution.
Propositional logic, as currently studied in universities, is a specification of a standard oflogical consequence in which only the meanings ofpropositional connectives are considered in evaluating the conditions for the truth of a sentence, or whether a sentence logically follows from some other sentence or group of sentences.[2]
Wikipedia is a free online encyclopedia that anyone can edit,andmillionsalready have. (conjunction)
It is not true that all Wikipedia editors speak at least three languages. (negation)
Either London is the capital of England,or London is the capital of theUnited Kingdom,or both. (disjunction)[f]
If sentences lack any logical connectives, they are calledsimple sentences,[1] oratomic sentences;[35] if they contain one or more logical connectives, they are calledcompound sentences,[34] ormolecular sentences.[35]
Sentential connectives are a broader category that includes logical connectives.[2][35] Sentential connectives are any linguistic particles that bind sentences to create a new compound sentence,[2][35] or that inflect a single sentence to create a new sentence.[2] Alogical connective, orpropositional connective, is a kind of sentential connective with the characteristic feature that, when the original sentences it operates on are (or express)propositions, the new sentence that results from its application also is (or expresses) aproposition.[2] Philosophers disagree about what exactly a proposition is,[11][2] as well as about which sentential connectives in natural languages should be counted as logical connectives.[35][2] Sentential connectives are also calledsentence-functors,[38] and logical connectives are also calledtruth-functors.[38]
Anargument is defined as apair of things, namely a set of sentences, called thepremises,[g] and a sentence, called theconclusion.[39][35][38] The conclusion is claimed tofollow from the premises,[38] and the premises are claimed tosupport the conclusion.[35]
An argument isvalid if, and only if, it isnecessary that, if all its premises are true, its conclusion is true.[39][42][43] Alternatively, an argument is valid if, and only if, it isimpossible for all the premises to be true while the conclusion is false.[43][39]
Validity is contrasted withsoundness.[43] An argument issound if, and only if, it is valid and all its premises are true.[39][43] Otherwise, it isunsound.[43]
Logic, in general, aims to precisely specify valid arguments.[35] This is done by defining a valid argument as one in which its conclusion is alogical consequence of its premises,[35] which, when this is understood assemantic consequence, means that there is nocase in which the premises are true but the conclusion is not true[35] – see§ Semantics below.
Since propositional logic is not concerned with the structure of propositions beyond the point where they cannot be decomposed any more by logical connectives,[40][1] it is typically studied by replacing suchatomic (indivisible) statements with letters of the alphabet, which are interpreted as variables representing statements (propositional variables).[1] With propositional variables, the§ Example argument would then be symbolized as follows:
Premise 1:
Premise 2:
Conclusion:
WhenP is interpreted as "It's raining" andQ as "it's cloudy" these symbolic expressions correspond exactly with the original expression in natural language. Not only that, but they will also correspond with any other inference with the samelogical form.
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.
This method of displaying it isGentzen's notation fornatural deduction andsequent calculus.[44] The premises are shown above a line, called theinference line,[16] separated by acomma, which indicatescombination of premises.[45] The conclusion is written below the inference line.[16] The inference line representssyntactic consequence,[16] sometimes calleddeductive consequence,[46] which is also symbolized with ⊢.[47][46] So the above can also be written in one line as.[h]
Syntactic consequence is contrasted withsemantic consequence,[48] which is symbolized with ⊧.[47][46] In this case, the conclusion followssyntactically because thenatural deductioninference rule ofmodus ponens has been assumed. For more on inference rules, see the sections on proof systems below.
a set of primitive symbols, calledatomic formulas,atomic sentences,[40][35]atoms,[50]placeholders,prime formulas,[50]proposition letters,sentence letters,[40] orvariables, and
Awell-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. The language, then, is defined either as beingidentical to its set of well-formed formulas,[49] or ascontaining that set (together with, for instance, its set of connectives and variables).[15][35]
Usually the syntax of is defined recursively by just a few definitions, as seen next; some authors explicitly includeparentheses as punctuation marks when defining their language's syntax,[35][52] while others use them without comment.[2][15]
Given a set of atomic propositional variables,,, ..., and a set of propositional connectives,,, ...,,,, ...,,,, ..., a formula of propositional logic isdefined recursively by these definitions:[2][15][51][i]
Definition 1: Atomic propositional variables are formulas.
Definition 2: If is a propositional connective, andA, B, C, … is a sequence of m, possibly but not necessarily atomic, possibly but not necessarily distinct, formulas, then the result of applying toA, B, C, … is a formula.
Definition 3: Nothing else is a formula.
Writing the result of applying toA, B, C, ... in functional notation, as(A, B, C, ...), we have the following as examples of well-formed formulas:
What was given asDefinition 2 above, which is responsible for the composition of formulas, is referred to byColin Howson as theprinciple of composition.[40][j] It is thisrecursionin the definition of a language's syntax which justifies the use of the word "atomic" to refer to propositional variables, since all formulas in the language are built up from the atoms as ultimate building blocks.[2] Composite formulas (all formulas besides atoms) are calledmolecules,[50] ormolecular sentences.[35] (This is an imperfect analogy withchemistry, since a chemical molecule may sometimes have only one atom, as inmonatomic gases.)[50]
The definition that "nothing else is a formula", given above asDefinition 3, excludes any formula from the language which is not specifically required by the other definitions in the syntax.[38] In particular, it excludesinfinitely long formulas from beingwell-formed.[38] It is sometimes called theClosure Clause.[54]
This clause, due to itsself-referential nature (since is in some branches of the definition of), also acts as arecursive definition, and therefore specifies the entire language. To expand it to addmodal operators, one need only add ... to the end of the clause.[56]
Mathematicians sometimes distinguish between propositional constants,propositional variables, and schemata.Propositional constants represent some particular proposition,[58] whilepropositional variables range over the set of all atomic propositions.[58] Schemata, orschematic letters, however, range over all formulas.[38][1] (Schematic letters are also calledmetavariables.)[39] It is common to represent propositional constants byA,B, andC, propositional variables byP,Q, andR, and schematic letters are often Greek letters, most oftenφ,ψ, andχ.[38][1]
However, some authors recognize only two "propositional constants" in their formal system: the special symbol, called "truth", which always evaluates toTrue, and the special symbol, called "falsity", which always evaluates toFalse.[59][60][61] Other authors also include these symbols, with the same meaning, but consider them to be "zero-place truth-functors",[38] or equivalently, "nullary connectives".[51]
In other respects, the following formal semantics can apply to the language of any propositional logic, but the assumptions that there are only two semantic values (bivalence), that only one of the two is assigned to each formula in the language (noncontradiction), and that every formula gets assigned a value (excluded middle), are distinctive features of classical logic.[62][65][38] To learn aboutnonclassical logics with more than two truth-values, and their unique semantics, one may consult the articles on "Many-valued logic", "Three-valued logic", "Finite-valued logic", and "Infinite-valued logic".
For a given language, aninterpretation,[66]valuation,[52]Boolean valuation,[67] orcase,[35][k] is anassignment ofsemantic values to each formula of.[35] For a formal language of classical logic, a case is defined as anassignment, to each formula of, of one or the other, but not both, of thetruth values, namelytruth (T, or 1) andfalsity (F, or 0).[68][69] An interpretation that follows the rules of classical logic is sometimes called aBoolean valuation.[52][70] An interpretation of a formal language for classical logic is often expressed in terms oftruth tables.[71][1] Since each formula is only assigned a single truth-value, an interpretation may be viewed as afunction, whosedomain is, and whoserange is its set of semantic values,[2] or.[35]
For distinct propositional symbols there are distinct possible interpretations. For any particular symbol, for example, there are possible interpretations: either is assignedT, or is assignedF. And for the pair, there are possible interpretations: either both are assignedT, or both are assignedF, or is assignedT and is assignedF, or is assignedF and is assignedT.[71] Since has, that is,denumerably many propositional symbols, there are, and thereforeuncountably many distinct possible interpretations of as a whole.[71]
Where is an interpretation and and represent formulas, the definition of anargument, given in§ Arguments, may then be stated as a pair, where is the set of premises and is the conclusion. The definition of an argument'svalidity, i.e. its property that, can then be stated as itsabsence of a counterexample, where acounterexample is defined as a case in which the argument's premises are all true but the conclusion is not true.[35][40] As will be seen in§ Semantic truth, validity, consequence, this is the same as to say that the conclusion is asemantic consequence of the premises.
An interpretation assigns semantic values toatomic formulas directly.[66][35] Molecular formulas are assigned afunction of the value of their constituent atoms, according to the connective used;[66][35] the connectives are defined in such a way that thetruth-value of a sentence formed from atoms with connectives depends on the truth-values of the atoms that they're applied to, andonly on those.[66][35] This assumption is referred to byColin Howson as the assumption of thetruth-functionality of theconnectives.[40]
Since logical connectives are defined semantically only in terms of thetruth values that they take when thepropositional variables that they're applied to take either of thetwo possible truth values,[1][35] the semantic definition of the connectives is usually represented as atruth table for each of the connectives,[1][35][72] as seen below:
Some authors write out the connective semantics using a list of statements instead of a table. In this format, where is the interpretation of, the five connectives are defined as:[38][52]
if, and only if,
if, and only if, and
if, and only if, or
if, and only if, it is true that, if, then
if, and only if, it is true that if, and only if,
Instead of, the interpretation of may be written out as,[38][74] or, for definitions such as the above, may be written simply as the English sentence " is given the value".[52] Yet other authors[75][76] may prefer to speak of aTarskian model for the language, so that instead they'll use the notation, which is equivalent to saying, where is the interpretation function for.[76]
Some of these connectives may be defined in terms of others: for instance, implication,, may be defined in terms of disjunction and negation, as;[77] and disjunction may be defined in terms of negation and conjunction, as).[52] In fact, atruth-functionally complete system,[l] in the sense that all and only the classical propositional tautologies are theorems, may be derived using only disjunction and negation (asRussell,Whitehead, andHilbert did), or using only implication and negation (asFrege did), or using only conjunction and negation, or even using only a single connective for "not and" (theSheffer stroke),[3] asJean Nicod did.[2] Ajoint denial connective (logical NOR) will also suffice, by itself, to define all other connectives. Besides NOR and NAND, no other connectives have this property.[52][m]
Some authors, namelyHowson[40] and Cunningham,[79] distinguish equivalence from the biconditional. (As to equivalence, Howson calls it "truth-functional equivalence", while Cunningham calls it "logical equivalence".) Equivalence is symbolized with ⇔ and is a metalanguage symbol, while a biconditional is symbolized with ↔ and is a logical connective in the object language. Regardless, an equivalence or biconditional is true if, and only if, the formulas connected by it are assigned the same semantic value under every interpretation. Other authors often do not make this distinction, and may use the word "equivalence",[16] and/or the symbol ⇔,[80] to denote their object language's biconditional connective.
Given and asformulas (or sentences) of a language, and as an interpretation (or case)[n] of, then the following definitions apply:[71][69]
Truth-in-a-case:[35] A sentence of istrue under an interpretation if assigns the truth valueT to.[69][71] If istrue under, then is called amodel of.[71]
Falsity-in-a-case:[35] isfalse under an interpretation if, and only if, is true under.[71][81][35] This is the "truth of negation" definition of falsity-in-a-case.[35] Falsity-in-a-case may also be defined by the "complement" definition: isfalse under an interpretation if, and only if, is not true under.[69][71] Inclassical logic, these definitions are equivalent, but innonclassical logics, they are not.[35]
Semantic consequence: A sentence of is asemantic consequence () of a sentence if there is no interpretation under which is true and is not true.[69][71][35]
Valid formula (tautology): A sentence of islogically valid (),[o] or atautology,[82][83][80][52] if it is true under every interpretation,[69][71] ortrue in every case.[35]
Consistent sentence: A sentence of isconsistent if it is true under at least one interpretation. It isinconsistent if it is not consistent.[69][71] An inconsistent formula is also calledself-contradictory,[1] and said to be aself-contradiction,[1] or simply acontradiction,[84][85][86] although this latter name is sometimes reserved specifically for statements of the form.[1]
For interpretations (cases) of, these definitions are sometimes given:
Complete case: A case iscomplete if, and only if, either is true-in- or is true-in-, for any in.[35][87]
Consistent case: A case isconsistent if, and only if, there is no in such that both and are true-in-.[35][88]
Forclassical logic, which assumes that all cases are complete and consistent,[35] the following theorems apply:
For any given interpretation, a given formula is either true or false under it.[71][81]
No formula is both true and false under the same interpretation.[71][81]
is true under if, and only if, is false under;[71][81] is true under if, and only if, is not true under.[71]
If and are both true under, then is true under.[71][81]
Proof systems in propositional logic can be broadly classified intosemantic proof systems andsyntactic proof systems,[89][90][91] according to the kind oflogical consequence that they rely on: semantic proof systems rely on semantic consequence (),[92] whereas syntactic proof systems rely on syntactic consequence ().[93] Semantic consequence deals with the truth values of propositions in all possible interpretations, whereas syntactic consequence concerns the derivation of conclusions from premises based on rules and axioms within a formal system.[94] This section gives a very brief overview of the kinds of proof systems, withanchors to the relevant sections of this article on each one, as well as to the separate Wikipedia articles on each one.
Semantic proof systems rely on the concept of semantic consequence, symbolized as, which indicates that if is true, then must also be true in every possible interpretation.[94]
Atruth table is a semantic proof method used to determine the truth value of a propositional logic expression in every possible scenario.[95] By exhaustively listing the truth values of its constituent atoms, a truth table can show whether a proposition is true, false, tautological, or contradictory.[96] See§ Semantic proof via truth tables.
Asemantic tableau is another semantic proof technique that systematically explores the truth of a proposition.[97] It constructs a tree where each branch represents a possible interpretation of the propositions involved.[98] If every branch leads to a contradiction, the original proposition is considered to be a contradiction, and its negation is considered atautology.[40] See§ Semantic proof via tableaux.
Syntactic proof systems, in contrast, focus on the formal manipulation of symbols according to specific rules. The notion of syntactic consequence,, signifies that can be derived from using the rules of the formal system.[94]
Anaxiomatic system is a set of axioms or assumptions from which other statements (theorems) are logically derived.[99] In propositional logic, axiomatic systems define a base set of propositions considered to be self-evidently true, and theorems are proved by applying deduction rules to these axioms.[100] See§ Syntactic proof via axioms.
Natural deduction is a syntactic method of proof that emphasizes the derivation of conclusions from premises through the use of intuitive rules reflecting ordinary reasoning.[101] Each rule reflects a particular logical connective and shows how it can be introduced or eliminated.[101] See§ Syntactic proof via natural deduction.
Thesequent calculus is a formal system that represents logical deductions as sequences or "sequents" of formulas.[102] Developed byGerhard Gentzen, this approach focuses on the structural properties of logical deductions and provides a powerful framework for proving statements within propositional logic.[102][103]
Taking advantage of the semantic concept of validity (truth in every interpretation), it is possible to prove a formula's validity by using atruth table, which gives every possible interpretation (assignment of truth values to variables) of a formula.[96][50][38] If, and only if, all the lines of a truth table come out true, the formula is semantically valid (true in every interpretation).[96][50] Further, if (and only if) is valid, then is inconsistent.[84][85][86]
For instance, this table shows that "p → (q ∨r → (r → ¬p))" is not valid:[50]
p
q
r
q ∨r
r → ¬p
q ∨r → (r → ¬p)
p → (q ∨r → (r → ¬p))
T
T
T
T
F
F
F
T
T
F
T
T
T
T
T
F
T
T
F
F
F
T
F
F
F
T
T
T
F
T
T
T
T
T
T
F
T
F
T
T
T
T
F
F
T
T
T
T
T
F
F
F
F
T
T
T
The computation of the last column of the third line may be displayed as follows:[50]
p
→
(q
∨
r
→
(r
→
¬
p))
T
→
(F
∨
T
→
(T
→
¬
T))
T
→
(
T
→
(T
→
F
))
T
→
(
T
→
F
)
T
→
F
F
T
F
F
T
T
F
T
F
F
T
Further, using the theorem that if, and only if, is valid,[71][81] we can use a truth table to prove that a formula is a semantic consequence of a set of formulas: if, and only if, we can produce a truth table that comes out all true for the formula (that is, if).[104][105]
Since truth tables have 2n lines for n variables, they can be tiresomely long for large values of n.[40] Analytic tableaux are a more efficient, but nevertheless mechanical,[72] semantic proof method; they take advantage of the fact that "we learn nothing about the validity of the inference from examining the truth-value distributions which make either the premises false or the conclusion true: the only relevant distributions when considering deductive validity are clearly just those which make the premises true or the conclusion false."[40]
Analytic tableaux for propositional logic are fully specified by the rules that are stated in schematic form below.[52] These rules use "signed formulas", where a signed formula is an expression or, where is a (unsigned) formula of the language.[52] (Informally, is read " is true", and is read " is false".)[52] Their formal semantic definition is that "under any interpretation, a signed formula is called true if is true, and false if is false, whereas a signed formula is called false if is true, and true if is false."[52]
In this notation, rule 2 means that yields both, whereasbranches into. The notation is to be understood analogously for rules 3 and 4.[52] Often, in tableaux forclassical logic, thesigned formula notation is simplified so that is written simply as, and as, which accounts for naming rule 1 the "Rule of Double Negation".[40][72]
One constructs a tableau for a set of formulas by applying the rules to produce more lines and tree branches until every line has been used, producing acomplete tableau. In some cases, a branch can come to contain both and for some, which is to say, a contradiction. In that case, the branch is said toclose.[40] If every branch in a tree closes, the tree itself is said to close.[40] In virtue of the rules for construction of tableaux, a closed tree is a proof that the original formula, or set of formulas, used to construct it was itself self-contradictory, and therefore false.[40] Conversely, a tableau can also prove that a logical formula istautologous: if a formula is tautologous, its negation is a contradiction, so a tableau built from its negation will close.[40]
To construct a tableau for an argument, one first writes out the set of premise formulas,, with one formula on each line, signed with (that is, for each in the set);[72] and together with those formulas (the order is unimportant), one also writes out the conclusion,, signed with (that is,).[72] One then produces a truth tree (analytic tableau) by using all those lines according to the rules.[72] A closed tree will be proof that the argument was valid, in virtue of the fact that if, and only if, is inconsistent (also written as).[72]
Using semantic checking methods, such as truth tables or semantic tableaux, to check for tautologies and semantic consequences, it can be shown that, in classical logic, the following classical argument forms are semantically valid, i.e., these tautologies and semantic consequences hold.[38] We use ⟚ to denote equivalence of and, that is, as an abbreviation for both and;[38] as an aid to reading the symbols, a description of each formula is given. The description reads the symbol ⊧ (called the "double turnstile") as "therefore", which is a common reading of it,[38][106] although many authors prefer to read it as "entails",[38][107] or as "models".[108]
Natural deduction, since it is a method of syntactical proof, is specified by providinginference rules (also calledrules of proof)[39] for a language with the typical set of connectives; no axioms are used other than these rules.[111] The rules are covered below, and a proof example is given afterwards.
Different authors vary to some extent regarding which inference rules they give, which will be noted. More striking to the look and feel of a proof, however, is the variation in notation styles. The§ Gentzen notation, which was covered earlier for a short argument, can actually be stacked to produce large tree-shaped natural deduction proofs[44][16]—not to be confused with "truth trees", which is another name foranalytic tableaux.[72] There is also a style due toStanisław Jaśkowski, where the formulas in the proof are written inside various nested boxes,[44] and there is a simplification of Jaśkowski's style due toFredric Fitch (Fitch notation), where the boxes are simplified to simple horizontal lines beneath the introductions of suppositions, and vertical lines to the left of the lines that are under the supposition.[44] Lastly, there is the only notation style which will actually be used in this article, which is due toPatrick Suppes,[44] but was much popularized byE.J. Lemmon andBenson Mates.[112] This method has the advantage that, graphically, it is the least intensive to produce and display, which made it a natural choice for theeditor who wrote this part of the article, who did not understand the complexLaTeX commands that would be required to produce proofs in the other methods.
Aproof, then, laid out in accordance with theSuppes–Lemmon notation style,[44] is a sequence of lines containing sentences,[39] where each sentence is either an assumption, or the result of applying a rule of proof to earlier sentences in the sequence.[39] Eachline of proof is made up of asentence of proof, together with itsannotation, itsassumption set, and the currentline number.[39] The assumption set lists the assumptions on which the given sentence of proof depends, which are referenced by the line numbers.[39] The annotation specifies which rule of proof was applied, and to which earlier lines, to yield the current sentence.[39] See the§ Natural deduction proof example.
Natural deduction inference rules, due ultimately toGentzen, are given below.[111] There are ten primitive rules of proof, which are the ruleassumption, plus four pairs of introduction and elimination rules for the binary connectives, and the rulereductio ad adbsurdum.[39] Disjunctive Syllogism can be used as an easier alternative to the proper ∨-elimination,[39] and MTT and DN are commonly given rules,[111] although they are not primitive.[39]
From at linej, and an assumption of at linek, and a derivation of from at linel, and an assumption of at linem, and a derivation of from at linen, infer.[111]
Disjunctive Syllogism
Wedge elimination (∨E),[39] modus tollendo ponens (MTP)[39]
The proof below[39] derives from and using onlyMPP andRAA, which shows thatMTT is not a primitive rule, since it can be derived from those two other rules.
This section gives the axioms of some historically notable axiomatic systems for propositional logic. For more examples, as well as metalogical theorems that are specific to such axiomatic systems (such as their completeness and consistency), see the articleAxiomatic system (logic).
These were used by Frege together with modus ponens and a rule of substitution (which was used but never precisely stated) to yield a complete and consistent axiomatization of classical truth-functional propositional logic.[115]
Jan Łukasiewicz showed that, in Frege's system, "the third axiom is superfluous since it can be derived from the preceding two axioms, and that the last three axioms can be replaced by the single sentence".[116] Which, taken out of Łukasiewicz'sPolish notation into modern notation, means. Hence, Łukasiewicz is credited[114] with this system of three axioms:
Just like Frege's system, this system uses a substitution rule and uses modus ponens as an inference rule.[114] The exact same system was given (with an explicit substitution rule) byAlonzo Church,[117] who referred to it as the system P2[117][118] and helped popularize it.[118]
One may avoid using the rule of substitution by giving the axioms in schematic form, using them to generate an infinite set of axioms. Hence, using Greek letters to represent schemata (metalogical variables that may stand for anywell-formed formulas), the axioms are given as:[38][118]
The schematic version of P2 is attributed toJohn von Neumann,[114] and is used in theMetamath "set.mm" formal proof database.[118] It has also been attributed toHilbert,[119] and named in this context.[119]
One notable difference between propositional calculus and predicate calculus is that satisfiability of a propositional formula isdecidable.[120]: 81 Deciding satisfiability of propositional logic formulas is anNP-complete problem. However, practical methods exist (e.g.,DPLL algorithm, 1962;Chaff algorithm, 2001) that are very fast for many useful cases. Recent work has extended theSAT solver algorithms to work with propositions containingarithmetic expressions; these are theSMT solvers.
^Many sources write this with a definite article, asthe propositional calculus, while others just call it propositional calculus with no article.
^Zeroth-order logic is sometimes used to denote aquantifier-free predicate logic. That is, propositional logic extended with functions, relations, and constants.[6]
^For propositional logic, the formal language used is apropositional language.
^Not to be confused with the formal language'salphabet.
^The "or both" makes it clear[35] that it's alogical disjunction, not anexclusive or, which is more common in English.
^The set of premises may be theempty set;[38][39] an argument from an empty set of premises isvalid if, and only if, the conclusion is atautology.[38][39]
^The turnstile, for syntactic consequence, is of lowerprecedence than the comma, which represents premise combination, which in turn is of lower precedence than the arrow, used for material implication; so no parentheses are needed to interpret this formula.[45]
^A very general and abstract syntax is given here, following the notation in the SEP,[2] but including the third definition, which is very commonly given explicitly by other sources, such as Gillon,[15] Bostock,[38] Allen & Hand,[39] and many others. As noted elsewhere in the article, languages variously compose their set of atomic propositional variables from uppercase or lowercase letters (often focusing on P/p, Q/q, and R/r), with or without subscript numerals; and in their set of connectives, they may include either the full set of five typical connectives,, or any of the truth-functionally complete subsets of it. (And, of course, they may also use any of the notational variants of these connectives.)
^Note that the phrase "principle of composition" has referred to other things in other contexts, and even in the context of logic, sinceBertrand Russell used it to refer to the principle that "a proposition which implies each of two propositions implies them both."[53]
^The name "interpretation" is used by some authors and the name "case" by other authors. This article will be indifferent and use either, since it is collaboratively edited and there is no consensus about which terminology to adopt.
^A truth-functionally complete set of connectives[2] is also called simplyfunctionally complete, oradequate for truth-functional logic,[40] orexpressively adequate,[78] or simplyadequate.[40][78]
^Some of these definitions use the word "interpretation", and speak of sentences/formulas being true or false "under" it, and some will use the word "case", and speak of sentences/formulas being true or false "in" it. Publishedreliable sources (WP:RS) have used both kinds of terminological convention, although usually a given author will use only one of them. Since this article is collaboratively edited and there is no consensus about which convention to use, these variations in terminology have been left standing.
^Conventionally, with nothing to the left of the turnstile, is used to symbolize a tautology. It may be interpreted as saying that is a semantic consequence of the empty set of formulae, i.e.,, but with the empty brackets omitted for simplicity;[38] which is just the same as to say that it is a tautology, i.e., that there is no interpretation under which it is false.[38]
^To simplify the statement of the rule, the word "denial" here is used in this way: thedenial of a formula that is not anegation is, whereas anegation,, has twodenials, viz., and.[39]
^abBělohlávek, Radim; Dauben, Joseph Warren; Klir, George J. (2017).Fuzzy logic and mathematics: a historical perspective. New York, NY, United States of America: Oxford University Press. p. 463.ISBN978-0-19-020001-5.
^abManzano, María (2005).Extensions of first order logic. Cambridge tracts in theoretical computer science (Digitally printed first paperback version ed.). Cambridge: Cambridge University Press. p. 180.ISBN978-0-521-35435-6.
^abMcGrath, Matthew; Frank, Devin (2023),"Propositions", in Zalta, Edward N.; Nodelman, Uri (eds.),The Stanford Encyclopedia of Philosophy (Winter 2023 ed.), Metaphysics Research Lab, Stanford University, retrieved22 March 2024
^abcdefghiDavis, Steven; Gillon, Brendan S., eds. (2004).Semantics: a reader. New York: Oxford University Press.ISBN978-0-19-513697-5.
^abcdefgPlato, Jan von (2013).Elements of logical reasoning (1. publ ed.). Cambridge: Cambridge University press. pp. 9, 32, 121.ISBN978-1-107-03659-8.
^Bobzien, Susanne (1 January 2016). "Ancient Logic". In Zalta, Edward N. (ed.).The Stanford Encyclopedia of Philosophy. Metaphysics Research Lab, Stanford University – via Stanford Encyclopedia of Philosophy.
^Bobzien, Susanne (2020),"Ancient Logic", in Zalta, Edward N. (ed.),The Stanford Encyclopedia of Philosophy (Summer 2020 ed.), Metaphysics Research Lab, Stanford University, retrieved22 March 2024
^Peckhaus, Volker (1 January 2014). "Leibniz's Influence on 19th Century Logic". In Zalta, Edward N. (ed.).The Stanford Encyclopedia of Philosophy. Metaphysics Research Lab, Stanford University – via Stanford Encyclopedia of Philosophy.
^Hurley, Patrick (2007).A Concise Introduction to Logic 10th edition. Wadsworth Publishing. p. 392.
^Beth, Evert W.; "Semantic entailment and formal derivability", series: Mededlingen van de Koninklijke Nederlandse Akademie van Wetenschappen, Afdeling Letterkunde, Nieuwe Reeks, vol. 18, no. 13, Noord-Hollandsche Uitg. Mij., Amsterdam, 1955, pp. 309–42. Reprinted in Jaakko Intikka (ed.)The Philosophy of Mathematics, Oxford University Press, 1969
^abcdefghijklmnopqrstuvwxyBostock, David (1997).Intermediate logic. Oxford : New York: Clarendon Press; Oxford University Press. pp. 4–5,8–13,18–19, 22, 27, 29, 191, 194.ISBN978-0-19-875141-0.
^abcdefghijklmnopqrstHowson, Colin (1997).Logic with trees: an introduction to symbolic logic. London; New York: Routledge. pp. ix, x,5–6,15–16, 20,24–29, 38,42–43, 47.ISBN978-0-415-13342-5.
^Dutilh Novaes, Catarina (2022),"Argument and Argumentation", in Zalta, Edward N.; Nodelman, Uri (eds.),The Stanford Encyclopedia of Philosophy (Fall 2022 ed.), Metaphysics Research Lab, Stanford University, retrieved5 April 2024
^abcdefPelletier, Francis Jeffry; Hazen, Allen (2024),"Natural Deduction Systems in Logic", in Zalta, Edward N.; Nodelman, Uri (eds.),The Stanford Encyclopedia of Philosophy (Spring 2024 ed.), Metaphysics Research Lab, Stanford University, retrieved22 March 2024
^abRestall, Greg (2018),"Substructural Logics", in Zalta, Edward N. (ed.),The Stanford Encyclopedia of Philosophy (Spring 2018 ed.), Metaphysics Research Lab, Stanford University, retrieved22 March 2024
^Paseau, Alexander; Pregel, Fabian (2023),"Deductivism in the Philosophy of Mathematics", in Zalta, Edward N.; Nodelman, Uri (eds.),The Stanford Encyclopedia of Philosophy (Fall 2023 ed.), Metaphysics Research Lab, Stanford University, retrieved22 March 2024
^abDemey, Lorenz; Kooi, Barteld; Sack, Joshua (2023),"Logic and Probability", in Zalta, Edward N.; Nodelman, Uri (eds.),The Stanford Encyclopedia of Philosophy (Fall 2023 ed.), Metaphysics Research Lab, Stanford University, retrieved22 March 2024
^abHodges, Wilfrid (1977).Logic. Harmondsworth; New York: Penguin. pp. 80–85.ISBN978-0-14-021985-2.
^abcdHansson, Sven Ove; Hendricks, Vincent F. (2018).Introduction to formal philosophy. Springer undergraduate texts in philosophy. Cham: Springer. p. 38.ISBN978-3-030-08454-7.
^abLande, Nelson P. (2013).Classical logic and its rabbit holes: a first course. Indianapolis, Ind: Hackett Publishing Co., Inc. p. 20.ISBN978-1-60384-948-7.
^Goldrei, Derek (2005).Propositional and predicate calculus: a model of argument. London: Springer. p. 69.ISBN978-1-85233-921-0.
^abShramko, Yaroslav; Wansing, Heinrich (2021),"Truth Values", in Zalta, Edward N. (ed.),The Stanford Encyclopedia of Philosophy (Winter 2021 ed.), Metaphysics Research Lab, Stanford University, retrieved23 March 2024
^Shapiro, Stewart; Kouri Kissel, Teresa (2024),"Classical Logic", in Zalta, Edward N.; Nodelman, Uri (eds.),The Stanford Encyclopedia of Philosophy (Spring 2024 ed.), Metaphysics Research Lab, Stanford University, retrieved25 March 2024
^Nascimento, Marco Antonio Chaer (2015).Frontiers in quantum methods and applications in chemistry and physics: selected proceedings of QSCP-XVIII (Paraty, Brazil, December, 2013). Progress in theoretical chemistry and physics. International Workshop on Quantum Systems in Chemistry and Physics. Cham: Springer. p. 255.ISBN978-3-319-14397-2.
^abcdefghijklmnopqrstHunter, Geoffrey (1971).Metalogic: An Introduction to the Metatheory of Standard First-Order Logic. University of California Press.ISBN0-520-02356-0.
^abcdefghRestall, Greg (2010).Logic: an introduction. Fundamentals of philosophy. London: Routledge. pp. 5,36–41,55–60, 69.ISBN978-0-415-40068-8.
^Aloni, Maria (2023),"Disjunction", in Zalta, Edward N.; Nodelman, Uri (eds.),The Stanford Encyclopedia of Philosophy (Spring 2023 ed.), Metaphysics Research Lab, Stanford University, retrieved23 March 2024
^abSmith, Peter (2003),An introduction to formal logic,Cambridge University Press,ISBN978-0-521-00804-4. (Defines "expressively adequate", shortened to "adequate set of connectives" in a section heading.)
^Cunningham, Daniel W. (2016).Set theory: a first course. Cambridge mathematical textbooks. New York, NY: Cambridge University Press.ISBN978-1-107-12032-7.
^Prakken, Henry; Bistarelli, Stefano; Santini, Francesco; Taticchi, Carlo, eds. (2020).Computational models of argument: proceedings of comma 2020. Frontiers in artificial intelligence and applications. Washington: IOS Press. p. 252.ISBN978-1-64368-106-1.
^Awodey, Steve; Arnold, Greg Frost-, eds. (2024).Rudolf Carnap: studies in semantics: the collected works of rudolf carnap, volume 7. New York: Oxford University Press. pp. xxvii.ISBN978-0-19-289487-8.
^Harel, Guershon; Stylianides, Andreas J., eds. (2018).Advances in Mathematics Education Research on Proof and Proving: An International Perspective. ICME-13 Monographs (1st ed. 2018 ed.). Cham: Springer International Publishing : Imprint: Springer. p. 181.ISBN978-3-319-70996-3.
^Toida, Shunichi (2 August 2009)."Proof of Implications".CS381 Discrete Structures/Discrete Mathematics Web Course Material. Department of Computer Science,Old Dominion University. Retrieved10 March 2010.
Propositional sequent calculus prover on Project Nayuki. (note: implication can be input in the form!X|Y, and a sequent can be a single formula prefixed with> and having no commas)