24.01.01 · logic / propositional-logic

Propositional logic and truth tables

shipped3 tiersLean: none

Anchor (Master): Whitehead and Russell, Principia Mathematica (1910); Post 1921; Lukasiewicz and Tarski 1930

Intuition Beginner

Every day you make claims and evaluate the claims of others. "It will rain tomorrow." "If the store is open, I will buy milk." "Either the package arrives today or it was lost in transit." These statements are propositions: sentences that are either true or false, never both and never neither. Propositional logic is the systematic study of how the truth values of individual propositions combine through connecting words like "and," "or," "not," and "if...then."

A proposition is a declarative sentence that has a definite truth value. "Paris is the capital of France" is a proposition, and it happens to be true. "The moon is made of cheese" is also a proposition, though a false one. "What time is it?" is not a proposition because it is a question, not a statement with a truth value. "Close the door" is a command, not a proposition. Propositional logic concerns itself exclusively with propositions and the logical relationships between them.

The power of propositional logic lies in its ability to determine whether complex statements are true or false based entirely on the truth values of their simplest components. You do not need to know anything about the subject matter of the propositions. You only need to know whether each basic component proposition is true or false, and the rules for how the connectives behave. This abstraction is what makes logic applicable to every domain of human thought, from mathematics and science to law and everyday conversation.

The basic connectives of propositional logic correspond to familiar words in English, though their logical meaning is more precise. The negation of a proposition P, written as "not P," is true when P is false and false when P is true. If P is "It is raining," then "It is not raining" has the opposite truth value.

The conjunction of two propositions P and Q, written "P and Q," is true only when both P and Q are true. If either one is false, the whole conjunction is false. The disjunction "P or Q" is true when at least one of P or Q is true. In ordinary English, "or" can sometimes mean "exactly one," but in logic it means "at least one," also called the inclusive or.

The conditional "if P then Q," also written as "P implies Q," is the most subtle of the connectives. In logic, this statement is considered false only when P is true and Q is false. In all other cases, it is considered true. This definition can feel counterintuitive at first. The statement "If the moon is made of cheese, then 2 + 2 = 4" is true in logic, because the antecedent (the "if" part) is false. The conditional says nothing about any causal or meaningful connection between P and Q. It simply records a pattern of truth values.

The biconditional "P if and only if Q" is true when P and Q have the same truth value, either both true or both false. It is equivalent to saying "P implies Q and Q implies P." This connective expresses logical equivalence between two propositions.

Propositional logic uses variables like P, Q, and R to stand for arbitrary propositions, much as algebra uses x, y, and z to stand for arbitrary numbers. Just as algebraic expressions like "2x + 3y" describe calculations on numbers, logical expressions like "P and (Q or R)" describe combinations of truth values. And just as algebra gives rules for simplifying expressions, logic gives rules for determining when complex statements are true or false.

A truth table is a systematic listing of every possible combination of truth values for the basic propositions and the resulting truth value of the compound proposition. For a single proposition P, there are only two possibilities: true or false. For two propositions P and Q, there are four combinations: both true, P true and Q false, P false and Q true, and both false. Each additional proposition doubles the number of rows, so three propositions require eight rows, four require sixteen, and n propositions require 2 to the power of n rows.

The truth table is the fundamental tool of propositional logic. It provides a mechanical, completely reliable method for determining the truth value of any compound proposition given the truth values of its components. No guesswork is involved, no subjective judgment. The procedure is purely algorithmic.

Two important concepts rely on truth tables. A tautology is a compound proposition that is true for every possible assignment of truth values to its components. The statement "P or not P" is a tautology: regardless of whether P is true or false, "P or not P" is always true. A contradiction is a compound proposition that is false for every possible assignment. "P and not P" is a contradiction: it can never be true. Most compound propositions are neither tautologies nor contradictions but are contingent, meaning their truth value depends on the truth values of their components.

Understanding propositional logic transforms how you read and construct arguments. When someone says "If we raise taxes, then the deficit will shrink," the logical structure is a conditional. To refute it, you would need to show a case where taxes were raised and the deficit did not shrink. When someone says "Either the project finishes on time or we lose the contract," the logical structure is a disjunction. To challenge it, you would need to show that both parts could be false simultaneously. These patterns of reasoning, once recognized, sharpen your ability to analyze any argument you encounter.

Visual Beginner

The table below shows the truth tables for all five basic connectives.

P Q not P P and Q P or Q P implies Q P iff Q
T T F T T T T
T F F F T F F
F T T F T T F
F F T F F T T

The negation "not P" simply flips the truth value of P. The conjunction "P and Q" is true only in the first row where both are true. The disjunction "P or Q" is false only in the last row where both are false. The conditional "P implies Q" is false only in the second row where P is true and Q is false. The biconditional "P iff Q" is true in the first and last rows where P and Q agree.

The order of operations for logical connectives follows a convention similar to the order of operations in arithmetic. Negation is evaluated first, then conjunction, then disjunction, then the conditional, and finally the biconditional. Parentheses override this order, just as they do in arithmetic. The expression "not P and Q" is read as "(not P) and Q," not "not (P and Q)."

Worked example Beginner

Consider the statement: "If it is sunny, then I will go to the park, and if it is not sunny, then I will stay home." Let S represent "It is sunny" and P represent "I will go to the park" and H represent "I will stay home." The compound proposition is "(S implies P) and (not S implies H)."

We build the truth table with three basic propositions, requiring eight rows.

S P H S implies P not S not S implies H Entire statement
T T T T F T T
T T F T F T T
T F T F F T F
T F F F F T F
F T T T T T T
F T F T T F F
F F T T T T T
F F F T T F F

The compound statement is true in rows 1, 2, 5, and 7. It is false in rows 3, 4, 6, and 8. The statement is contingent: its truth depends on the actual weather, whether you go to the park, and whether you stay home.

Notice that the statement is true whenever you keep your promises. If it is sunny and you go to the park (rows 1 and 2), the first conditional is satisfied. If it is not sunny and you stay home (rows 5 and 7), the second conditional is satisfied. The statement is false when you fail to follow through: if it is sunny but you skip the park (rows 3 and 4), or if it is not sunny but you fail to stay home (rows 6 and 8).

This analysis reveals something important about the logical structure of promises and conditional obligations. The compound statement encodes a complete plan of action for two possible scenarios, and the truth table shows exactly which combinations of circumstances and behaviors satisfy the plan.

Check your understanding Beginner

Formal definition Intermediate+

Propositional logic (also called the propositional calculus or sentential logic) is a formal system consisting of a formal language, a semantics, and a proof theory. The language is built from a countably infinite set of propositional variables , the logical connectives (negation), (conjunction), (disjunction), (conditional), and (biconditional), and parentheses for grouping.

Syntax: well-formed formulas

The set of well-formed formulas (wffs) is defined recursively. Every propositional variable is a wff. If is a wff, then is a wff. If and are wffs and is any binary connective (), then is a wff. Nothing else is a wff. This recursive definition guarantees that every wff has a unique parsing, which can be verified by induction on formula length.

The complexity of a formula is measured by the number of connectives it contains, called its depth or length. A literal is either a propositional variable or its negation. Formulas built using only and on literals are in negation normal form (NNF). Formulas built using only on conjunctions of literals are in disjunctive normal form (DNF). Formulas built using only on disjunctions of literals are in conjunctive normal form (CNF).

Semantics: truth assignments and valuations

A truth assignment (also called a valuation or interpretation) is a function from propositional variables to truth values . Every truth assignment extends uniquely to a valuation on all wffs by the recursive clauses: iff ; iff and ; iff or ; iff or ; iff .

A formula is a tautology (written ) if for every truth assignment . A formula is a contradiction if for every truth assignment . A formula is contingent if it is neither a tautology nor a contradiction. A formula is satisfiable if there exists at least one truth assignment with .

Logical consequence and equivalence

A set of formulas logically entails a formula (written ) if every truth assignment that makes all formulas in true also makes true. When , this reduces to , meaning is a tautology. Two formulas and are logically equivalent (written ) if they have the same truth value under every truth assignment, equivalently if .

Key equivalences include double negation (), De Morgan's laws ( and ), the law of excluded middle ( is a tautology), the law of non-contradiction ( is a tautology), contraposition (), and the conditional-disjunction equivalence ().

Truth tables as a decision procedure

For any formula with distinct propositional variables, the truth table for has rows, one for each possible truth assignment. Constructing the truth table and checking whether the final column is all (tautology), all (contradiction), or mixed (contingent) is a decision procedure for propositional logic: it always terminates and correctly answers whether a given formula is a tautology, contradiction, or contingent formula.

This decidability is a remarkable property. There is a purely mechanical procedure that can determine, for any propositional formula, whether it is a logical truth. No such procedure exists for more powerful logical systems, making propositional logic a privileged starting point in the study of formal reasoning.

Key result: functional completeness and the decidability of propositional logic Intermediate+

Functional completeness

A set of connectives is functionally complete (or adequate) if every Boolean function can be expressed using only connectives from that set. The standard set is functionally complete, but so are many proper subsets.

Theorem (Post, 1921). A set of connectives is functionally complete if and only if it is not contained in any of the following five classes: monotone functions, affine functions, self-dual functions, truth-preserving functions, or falsity-preserving functions.

The most important consequence is that remarkably small sets are functionally complete. The set is functionally complete, because can be defined from and via De Morgan's law (), and can be defined via the conditional-disjunction equivalence (). Similarly, is functionally complete.

Even more striking, there are single connectives that are functionally complete by themselves. Sheffer stroke (NAND), written and defined as , is functionally complete. Negation is expressed as (which equals ), and conjunction is expressed as (which equals ). Since negation and conjunction together form a functionally complete set, NAND alone suffices. The same holds for Peirce arrow (NOR), .

Proof of functional completeness of

The proof proceeds by induction on the number of arguments. For any Boolean function , construct a disjunctive normal form expression. For each row of the truth table where outputs , form a conjunction (called a minterm) that includes if in that row and if . Then take the disjunction of all such minterms. The resulting DNF formula has the same truth table as , so every Boolean function is expressible using .

This constructive proof shows not only that the set is complete but provides an explicit algorithm for converting any truth table into a formula using only negation, conjunction, and disjunction. DNF always exists for any Boolean function, though it may be exponentially longer than more compact representations.

Decidability of propositional logic

Theorem. There is an algorithm (the truth-table method) that, given any propositional formula , determines in finitely many steps whether is a tautology, a contradiction, or contingent.

The algorithm is straightforward: enumerate all truth assignments to the variables in , evaluate under each, and check the results. The algorithm always terminates because is finite for any finite . It is correct because the semantic definition of tautology, contradiction, and contingency are defined by the behavior under all truth assignments.

The computational cost is exponential in the number of variables ( evaluations, each polynomial in formula length). This exponential growth is unavoidable in the worst case: the satisfiability problem for propositional formulas (SAT) was the first problem shown to be NP-complete (Cook-Levin theorem, 1971), meaning that no polynomial-time algorithm is known and none is expected to exist.

Despite this worst-case complexity, modern SAT solvers using conflict-driven clause learning (CDCL) can handle formulas with millions of variables in practice, making propositional logic not just a theoretical tool but a practical one used in hardware verification, software testing, artificial intelligence, and operations research.

Exercises Intermediate+

Advanced results Master

Normal forms and their computational significance

Every propositional formula can be converted into both disjunctive normal form (DNF) and conjunctive normal form (CNF). A formula is in DNF if it is a disjunction of conjunctions of literals: . A formula is in CNF if it is a conjunction of disjunctions of literals: . The conversion is always possible but may cause exponential blowup in formula size.

The existence of these normal forms has deep consequences. For DNF, the existence proof is constructive: build the formula directly from the truth table by creating one minterm per satisfying row. For CNF, one can either apply De Morgan's laws and distributivity mechanically, or exploit duality by noting that the CNF of corresponds to the DNF of , negated.

The 3-CNF restriction, where each clause has exactly three literals, is particularly important in computational complexity. 3-SAT, the problem of determining whether a 3-CNF formula is satisfiable, was one of the original 21 problems shown NP-complete by Karp (1972). This result makes 3-SAT a canonical starting point for proving NP-completeness of other problems via polynomial-time reductions.

The compactness theorem for propositional logic

Compactness Theorem. A (possibly infinite) set of propositional formulas is satisfiable if and only if every finite subset is satisfiable.

This theorem has two standard proofs. The topological proof uses Tychonoff's theorem on the compactness of the product space (where is the set of propositional variables, given the discrete topology on each factor). The constructive proof uses the consistency property (or Hintikka set) approach: build a satisfying assignment by extending the set one variable at a time, using the finite satisfiability hypothesis to ensure each extension remains consistent.

The compactness theorem is surprising because it lets you extract global information (satisfiability of an infinite set) from purely local information (satisfiability of every finite subset). Applications include proving that an infinite graph is -colorable if and only if every finite subgraph is -colorable (by encoding the coloring problem as a propositional formula), and that certain combinatorial objects exist if all their finite approximations exist.

The interpolation theorem

Craig's Interpolation Theorem (1957). If , then there exists a formula (the interpolant) such that and , and every propositional variable occurring in occurs in both and .

The proof uses induction on the structure of . For atomic , the interpolant is itself (if appears in ) or a tautology or contradiction. For compound formulas, the interpolants of the subformulas are combined using the appropriate connective.

Craig interpolation has applications in logic, computer science, and philosophy. In logic, it implies the Beth definability theorem: if a theory implicitly defines a concept, then it explicitly defines it. In computer science, interpolation is used in model checking, where interpolants provide concise abstractions of formulas. In philosophy, interpolation supports the idea that meaningful logical connections require shared vocabulary between premises and conclusions.

Relevance logic and paraconsistent logic

Classical propositional logic's treatment of the conditional has been questioned since antiquity. The "paradoxes of material implication" include the facts that is a tautology (a true proposition is implied by anything) and is a tautology (a false proposition implies anything). While logically valid, these seem to violate the intuitive notion that implication requires a connection of relevance between antecedent and consequent.

Relevance logic (developed by Alan Ross Anderson and Nuel Belnap beginning in the 1960s) addresses this by requiring that the antecedent and consequent of a valid conditional share content. Formally, a variable-sharing principle is enforced: there must be at least one propositional variable that appears in both the antecedent and the consequent. The resulting system R is weaker than classical logic but arguably better captures the meaning of "if...then" in natural language.

Paraconsistent logic goes further by challenging the principle of explosion (ex contradictione quodlibet): the classical tautology , which says that from a contradiction, anything follows. Paraconsistent systems allow contradictions without collapse, rejecting disjunctive syllogism in certain contexts. This has practical applications in database theory (where inconsistent data may need to be reasoned about without accepting arbitrary conclusions) and in formal models of belief revision.

Connections to Boolean algebra

Propositional logic and Boolean algebra are essentially the same subject viewed from different perspectives. George Boole's algebraic system (1847, 1854) treated truth values as elements of an algebraic structure with operations corresponding to conjunction (multiplication), disjunction (addition), and negation (complementation). The resulting Boolean algebras are precisely the algebraic structures that satisfy the axioms of propositional logic.

Stone's representation theorem (1936) shows that every Boolean algebra is isomorphic to a field of sets (a collection of sets closed under finite unions, intersections, and complements). This theorem establishes a deep connection between the syntactic, algebraic, and set-theoretic perspectives on propositional reasoning. The Lindenbaum-Tarski algebra construction associates to any propositional theory a Boolean algebra whose elements are equivalence classes of logically equivalent formulas, with operations induced by the logical connectives.

Three-valued and many-valued logic

Classical propositional logic assumes the principle of bivalence: every proposition is either true or false. But many real-world statements resist this binary classification. "This sentence is false" is the classic paradox: if true, it is false, and if false, it is true. Vague predicates like "tall" or "bald" create borderline cases where neither "true" nor "false" seems appropriate. Future contingents like "There will be a sea battle tomorrow" (discussed since Aristotle) seem to lack a definite truth value today.

Three-valued logic, first developed by Jan Lukasiewicz in 1920, introduces a third truth value (often called "indeterminate" or "unknown") in addition to true and false. The truth tables for the connectives are extended to accommodate this third value. For negation, the negation of "unknown" is "unknown." For conjunction, the conjunction is the minimum of the two values. For disjunction, the maximum. The conditional receives various treatments depending on the system: Lukasiewicz's conditional is true when the antecedent is less true than the consequent, while the Kleene conditional leaves the conditional undetermined when either component is undetermined.

Many-valued logics have practical applications. SQL databases use three-valued logic (true, false, NULL) to handle missing data. Hardware verification uses multi-valued logic to represent unknown and high-impedance states in circuit simulation. Fuzzy logic, developed by Lotfi Zadeh in 1965, extends the idea to a continuum of truth values between 0 and 1, enabling control systems that reason with vague linguistic predicates like "warm" or "fast."

The relationship between many-valued logic and classical logic is subtle. Most many-valued logics are not truth-functional extensions of classical logic in the sense that they change the behavior of the classical connectives for classical inputs. Rather, they extend the connective definitions to handle additional truth values while preserving classical behavior for classical inputs. The philosophical question of whether many-valued logic is a genuine alternative to classical logic or a conservative extension depends on one's stance toward bivalence and the nature of truth.

Propositional logic in computer science

Propositional logic is foundational to digital circuit design. Every digital circuit computes a Boolean function, and the optimization of circuits corresponds to the simplification of propositional formulas. Claude Shannon's 1937 thesis demonstrated that Boolean algebra provides the mathematical framework for switching circuit design, establishing the theoretical basis for all modern computing hardware.

SAT solving has become one of the most practically important areas of computer science. Modern conflict-driven clause learning (CDCL) solvers can handle industrial instances with millions of variables and clauses. Applications include hardware verification (checking that a chip design meets its specification), software model checking (proving that a program satisfies safety properties), planning in artificial intelligence (encoding action sequences as satisfiability problems), and cryptanalysis (encoding key search spaces as propositional constraints).

The annual SAT competition drives rapid improvement in solver technology. Key innovations include lazy clause generation, restarts, phase saving, and preprocessing techniques. The gap between theoretical worst-case exponential complexity and practical solver performance on real-world instances is one of the most remarkable phenomena in computational complexity.

Connections Master

Connection to predicate logic

Propositional logic is the foundation upon which predicate logic (first-order logic) is built. Predicate logic extends propositional logic by introducing variables that range over objects in a domain, predicates that express properties and relations of those objects, and quantifiers ( and ) that express generality. Every propositional formula is also a formula of predicate logic, and the truth-table semantics of propositional connectives is preserved. The key difference is that predicate logic can express statements like "Every human is mortal" and "There exists an even prime number," which cannot be captured by propositional variables alone.

Connection to set theory

The connectives of propositional logic correspond exactly to operations on sets. Negation corresponds to complementation (), conjunction to intersection (), disjunction to union (), and the conditional to subset inclusion (). De Morgan's laws for sets () are direct translations of De Morgan's laws for propositions. This correspondence is not coincidental: it reflects the deep analogy between the algebra of truth values and the algebra of sets, both of which are instances of Boolean algebra.

Connection to probability and uncertainty

Propositional logic deals with certainty: propositions are either true or false. Probability theory extends this framework to handle uncertainty by assigning numerical weights (between 0 and 1) to propositions. The laws of probability parallel the laws of logic: mirrors negation, and the inclusion-exclusion principle mirrors disjunction. Conditional probability generalizes the logical conditional by quantifying how likely B is given that A is true, rather than recording only the binary truth value. Bayesian reasoning, covered in a later unit, builds on this connection between logic and probability to provide a framework for updating beliefs in light of evidence.

Connection to digital circuits and computing

Every modern computer operates on the principles of propositional logic. Transistors implement Boolean functions: voltage levels represent truth values, and logic gates (AND, OR, NOT, NAND, NOR) implement the connectives. The fact that NAND alone is functionally complete means that an entire computer processor can be built using only NAND gates, which is essentially how modern chips are designed. Arithmetic operations (addition, multiplication), memory storage (flip-flops), and control flow (multiplexers) all reduce to networks of Boolean logic gates. Claude Shannon's insight that Boolean algebra describes switching circuits is one of the most consequential applications of pure logic to engineering.

Connection to philosophy of language

Propositional logic raises fundamental questions about the relationship between language and reality. The treatment of the conditional, in particular, has been the subject of extensive philosophical debate. The material conditional does not capture all the nuances of "if...then" in natural language, which can express causation, evidence, hypothetical reasoning, and temporal sequence. Grice's theory of conversational implicature explains some of the gap between logical and linguistic meaning: the material conditional is logically correct but pragmatically misleading in many contexts. The development of modal logic, relevance logic, and other non-classical systems can be understood as attempts to formalize aspects of natural language reasoning that classical propositional logic handles imperfectly.

Connection to neural networks and artificial intelligence

Propositional logic provides one model of computation and reasoning, while neural networks provide another. Threshold logic units (the simplest neurons) compute Boolean functions of their inputs, and the expressiveness of a network of such units corresponds to the complexity of the propositional formulas they can represent. Knowledge representation in AI has a long tradition of encoding expert knowledge as propositional rules (if-then statements) and using logical inference to derive conclusions. Modern AI has largely moved toward statistical and neural approaches, but the integration of logical reasoning with learning remains an active research area, exemplified by neuro-symbolic AI systems that combine the interpretability and correctness guarantees of logic with the flexibility and pattern recognition capabilities of neural networks.

Historical and philosophical context Master

Ancient origins: the Stoic logicians

The earliest systematic study of propositional logic is due to the Stoic philosophers, particularly Chrysippus of Soli (c. 279-206 BCE). While Aristotle focused on term logic (the logic of "all," "some," and "none" applied to categories), the Stoics analyzed the logical properties of "if...then," "and," "or," and "not." Chrysippus recognized five basic indemonstrable argument forms, including modus ponens (if P then Q; P; therefore Q) and modus tollens (if P then Q; not Q; therefore not P). He also understood the principle of contraposition and the disjunctive syllogism.

The Stoic approach was controversial in antiquity. The Peripatetics (followers of Aristotle) argued that the Stoic system was either redundant with or inferior to Aristotle's syllogistic. This rivalry obscured the fact that the two systems were complementary: Aristotle's term logic handled quantificational reasoning, while Chrysippus's propositional logic handled reasoning about compound statements. The full integration of both systems had to wait until the late nineteenth century with the work of Frege.

Boole's algebraic turn

George Boole's "The Mathematical Analysis of Logic" (1847) and "An Investigation of the Laws of Thought" (1854) transformed logic from a branch of philosophy into a branch of mathematics. Boole observed that the operations of logical reasoning could be expressed as algebraic equations. His key insight was that the operations of logic (and, or, not) obey algebraic laws analogous to those of arithmetic, with the additional constraint that variables take only the values 0 and 1. In Boole's system, represents the conjunction (AND) of and , represents the disjunction (OR), and represents the negation (NOT). The law (idempotence) encodes the principle that a proposition conjoined with itself yields the same proposition.

Boole's algebraic notation allowed logical deductions to be performed by algebraic calculation, a radical departure from the verbal reasoning that had dominated logic for two millennia. The equation expresses the law of non-contradiction (a proposition cannot be both true and false). The equation expresses the law of excluded middle (a proposition is either true or false). Boole showed that Aristotle's syllogistic could be derived as a special case of his algebraic system, and he extended the analysis to probability theory, creating the first unified treatment of logic and probability.

Boole's work was not immediately recognized as revolutionary. His notation was unfamiliar, his examples were sometimes confusing, and his system contained technical errors that were corrected by later mathematicians (particularly Jevons and Schroder). But the core insight -- that logic is a form of algebra -- proved enormously fruitful. Boolean algebra became the mathematical foundation of digital circuit design (via Shannon), the theoretical basis of set theory (via the correspondence between logical operations and set operations), and the starting point for the algebraic approach to logic that culminates in Tarski's theory of Boolean algebras and Stone's representation theorem.

The propositional logic of everyday language

Although propositional logic was developed as a formal system, its connectives correspond to words and constructions found in every natural language. Every language has words for negation ("not"), conjunction ("and"), disjunction ("or"), and conditionals ("if...then"). This cross-linguistic universality suggests that propositional logic captures something fundamental about human reasoning, regardless of cultural or linguistic background.

At the same time, natural language connectives often carry pragmatic implications that go beyond their logical meaning. "But" is logically equivalent to "and" (both are conjunctions) but carries an implication of contrast. "Or" in English can be inclusive (on the menu: "soup or salad comes with the meal" -- you get one, not both) or exclusive (in logic: "P or Q" includes the case where both are true). The conditional "if...then" in natural language typically implies a causal or evidential connection between antecedent and consequent, while the material conditional of logic makes no such assumption.

These differences between natural language and formal logic are not reasons to abandon formal logic but reasons to be careful when translating between the two. The formal system provides precision and rigor; natural language provides richness and context. Effective critical thinking requires fluency in both: the ability to recognize logical structure in natural language arguments, and the ability to express that structure in formal terms for rigorous evaluation.

Frege and the birth of modern logic

Gottlob Frege (1848-1925) is widely regarded as the founder of modern logic. In his "Begriffsschrift" (1879), Frege created the first fully formalized logical system, including propositional connectives, quantifiers, and variables. Frege's notation was two-dimensional and graphical, unlike the linear notation used today, but his system was logically complete and founded on rigorous principles. His motivation was philosophical: he sought to show that arithmetic could be derived from purely logical principles (logicism), which required a logical system powerful enough to express mathematical reasoning.

Frege's treatment of the conditional was particularly important. He took the material conditional as basic and showed that all other connectives could be defined from it and negation. This approach, while elegant, contributed to the ongoing philosophical debate about the relationship between the material conditional and natural language "if...then" that continues to this day.

Truth tables: Post, Wittgenstein, and the 1920s

The truth-table method was developed independently by multiple logicians in the early twentieth century. Emil Post (1897-1954) in his 1921 doctoral dissertation used truth tables to prove the completeness and consistency of propositional logic. Ludwig Wittgenstein (1889-1951) presented truth tables in the "Tractatus Logico-Philosophicus" (1921) as part of his picture theory of meaning, arguing that the truth table captures the entire meaning of a proposition by showing all possible states of affairs. Jan Lukasiewicz (1878-1956) and Alfred Tarski (1901-1983) developed the Polish notation and the semantic theory of truth that further clarified the foundations of propositional logic.

Post's 1921 completeness theorem was a landmark result. He proved that every tautology of propositional logic is provable in the standard axiom system (and vice versa), establishing the perfect correspondence between syntax (proof) and semantics (truth). This soundness and completeness result is the foundation of all subsequent work in mathematical logic and showed that propositional logic is a coherent and complete system of reasoning.

The philosophical significance of propositional logic

Propositional logic raises deep philosophical questions about the nature of truth, meaning, and reasoning. The principle of bivalence (every proposition is either true or false) has been challenged by proponents of many-valued logic, who argue that some propositions are indeterminate, vague, or both true and false. Intuitionist logic, developed by L.E.J. Brouwer and formalized by Arend Heyting, rejects the law of excluded middle () on philosophical grounds, arguing that mathematical truth is constructed rather than discovered and that asserting without knowing which disjunct holds is unjustified.

The debate between classical and non-classical logics is not merely technical but reflects fundamentally different views about the nature of reasoning. Classical logic assumes that every meaningful statement has a determinate truth value, even if we do not know it. Intuitionist logic requires that truth be established by constructive proof. Fuzzy logic assigns degrees of truth between 0 and 1, reflecting the vagueness inherent in many natural language predicates. Paraconsistent logic allows controlled inconsistency, rejecting the principle that a contradiction implies everything. Each of these systems is a coherent alternative to classical propositional logic, applicable in different contexts.

The development of non-classical logics has enriched rather than undermined the importance of classical propositional logic. Classical logic remains the standard for mathematical reasoning, the foundation of digital computing, and the starting point for all more complex logical systems. Understanding classical propositional logic thoroughly is essential for appreciating both its power and its limitations, and for making informed choices about when alternative systems may be more appropriate.

The practical impact of propositional logic extends far beyond academic philosophy. Every database query, every web search, every compiler optimization, and every circuit design relies on the principles of propositional logic. The SAT solving industry, estimated at hundreds of millions of dollars in annual economic impact, is built entirely on the decision problem for propositional formulas. Model checking, which uses propositional and temporal logic to verify hardware and software, has prevented countless bugs in critical systems from aviation control to medical devices.

The interplay between propositional logic and computational complexity has been one of the most productive intersections of logic and computer science. The Cook-Levin theorem (1971) establishing NP-completeness of SAT launched the field of complexity theory. The discovery that propositional proof systems have different strengths (some tautologies require exponentially longer proofs in some systems than others) connects logic to fundamental questions about the nature of mathematical proof and the limits of efficient computation.

Propositional logic and natural language

The relationship between propositional logic and natural language remains a topic of active research in linguistics and philosophy. While propositional logic captures some aspects of natural language reasoning (conjunction, disjunction, negation), it misses many others (temporal relations, modal operators, presuppositions, implicatures). The Gricean theory of conversational implicature explains why the material conditional feels wrong in many natural language contexts: when someone says "If it rains, I will bring an umbrella," they implicate that they will not bring an umbrella if it does not rain, but the material conditional is true regardless. This gap between logical and pragmatic meaning has driven the development of relevance logic, modal logic, and default logic, each attempting to capture aspects of natural language reasoning that classical propositional logic handles imperfectly.

The study of propositional logic also connects to the philosophy of language through the concept of logical form. The logical form of a sentence is its underlying structure as revealed by translation into a formal language. "Every student passed" and "All students passed" have the same logical form but different surface syntax. "John hit Bill" and "Bill was hit by John" have the same logical form despite different grammatical voices. Identifying logical form is essential for determining whether two sentences say the same thing, whether an argument is valid, and whether a sentence is ambiguous. Propositional logic provides the simplest framework for exploring these questions, with predicate logic and more advanced systems extending the analysis to richer linguistic structures.

Applications of propositional logic beyond mathematics

Propositional logic finds applications in fields far beyond pure mathematics and computer science. In law, the elements of a crime can be expressed as a propositional formula: "guilty if and only if actus reus and mens rea" translates to . The prosecution must prove both components true beyond a reasonable doubt. The defense can create reasonable doubt by showing either component is false. This logical structure underlies criminal law across all jurisdictions.

In medicine, diagnostic reasoning uses propositional patterns. If a patient has symptom S1 and symptom S2, and the disease D is the most common cause of both, then the physician infers D provisionally. This inference has the form of inductive reasoning, but the logical structure of the diagnostic criteria is propositional: the disease is diagnosed if and only if a specific combination of symptoms and test results is present. Clinical decision rules (like the Ottawa Ankle Rules or the Wells Score for deep vein thrombosis) are essentially propositional formulas that guide clinical reasoning.

In everyday argumentation, propositional logic helps distinguish between claims that are logically incompatible and claims that are merely unlikely to both be true. "The company is profitable" and "the company is bankrupt" are logically incompatible (one must be false if the other is true). "The company is profitable" and "the CEO is incompetent" are not logically incompatible (both could be true simultaneously), though they are pragmatically in tension. Recognizing this distinction helps evaluate whether an argument has identified a genuine contradiction or merely an improbability.

Bibliography Master

  • Boole, G. (1847). The Mathematical Analysis of Logic: Being an Essay Towards a Calculus of Deductive Reasoning. Macmillan, Barclay, and Macmillan.
  • Boole, G. (1854). An Investigation of the Laws of Thought on Which Are Founded the Mathematical Theories of Logic and Probabilities. Walton and Maberly.
  • Copi, I.M. and Cohen, C. (2019). Introduction to Logic (14th ed.). Pearson.
  • Enderton, H.B. (2001). A Mathematical Introduction to Logic (2nd ed.). Academic Press.
  • Frege, G. (1879). Begriffsschrift, eine der arithmetischen nachgebildete Formelsprache des reinen Denkens. Louis Nebert.
  • Hacking, I. (2001). An Introduction to Probability and Inductive Logic. Cambridge University Press.
  • Hurley, P.J. (2018). A Concise Introduction to Logic (13th ed.). Cengage Learning.
  • Lukasiewicz, J. and Tarski, A. (1930). "Untersuchungen uber den Aussagenkalkul." Comptes Rendus des Seances de la Societe des Sciences et des Lettres de Varsovie, 23, 30-50.
  • Mendelson, E. (2015). Introduction to Mathematical Logic (6th ed.). CRC Press.
  • Post, E. (1921). "Introduction to a General Theory of Elementary Propositions." American Journal of Mathematics, 43(3), 163-185.
  • Shannon, C.E. (1938). "A Symbolic Analysis of Relay and Switching Circuits." Transactions of the American Institute of Electrical Engineers, 57(12), 713-723.
  • Whitehead, A.N. and Russell, B. (1910). Principia Mathematica. Cambridge University Press.
  • Wittgenstein, L. (1921). Tractatus Logico-Philosophicus. Annalen der Naturphilosophie.