Propositional logic, also called propositional calculus, is the formal system that studies statements that are either true or false and how they combine through logical connectives such as AND, OR, NOT and IMPLIES. Within Symbolic AI & reasoning, it is the most basic language for representing knowledge and drawing valid conclusions by mechanical rules, and it underpins circuit design, rule engines and modern satisfiability solvers.
Its strength is that every question about it can be decided by an algorithm: given a formula, a program can always determine whether it is satisfiable, valid or contradictory. Its weakness is limited expressiveness, because it cannot speak about objects, properties or quantities in general, which is the job of first-order logic.
Syntax and semantics of propositional formulas
A propositional formula is built from atomic propositions (variables such as P, Q or door_open) and connectives that combine them into larger expressions. The syntax defines which strings are well-formed, while the semantics assigns each formula a truth value under a given interpretation, also called a truth assignment or model.
An interpretation maps every variable to true or false, and the meaning of a compound formula follows compositionally from the meanings of its parts. With n variables there are 2^n interpretations, so a formula over 20 variables already has more than one million possible models. The following table summarizes the standard connectives.
| Connective | Symbol | Reading | True when |
|---|---|---|---|
| Negation | ¬P | not P | P is false |
| Conjunction | P ∧ Q | P and Q | Both are true |
| Disjunction | P ∨ Q | P or Q | At least one is true |
| Material implication | P → Q | if P then Q | P is false or Q is true |
| Biconditional | P ↔ Q | P if and only if Q | Both have the same value |
| Exclusive or | P ⊕ Q | P or Q, not both | Exactly one is true |
A small set of connectives is functionally complete: NOT with AND, or NAND alone, can express every Boolean function. This fact explains why digital hardware can be built entirely from NAND gates and why propositional logic and Boolean algebra describe the same structure.
Key semantic properties and inference
Reasoning in propositional logic revolves around a few precise properties of formulas. A knowledge base entails a sentence when the sentence is true in every model of the knowledge base, which is the formal meaning of a valid conclusion.
| Property | Definition | Example |
|---|---|---|
| Satisfiable | True in at least one model | P ∧ ¬Q |
| Valid (tautology) | True in every model | P ∨ ¬P |
| Unsatisfiable | True in no model | P ∧ ¬P |
| Equivalent | Same value in every model | P → Q and ¬P ∨ Q |
| Entailment | KB true implies sentence true | {P, P → Q} entails Q |
These properties are linked by a crucial reduction: a knowledge base KB entails a sentence S exactly when KB ∧ ¬S is unsatisfiable. Practical systems therefore reduce entailment to a single satisfiability test, which is why the Boolean satisfiability problem sits at the center of automated propositional reasoning.
Inference can be carried out syntactically with rules such as modus ponens, and-elimination and resolution. A proof system is sound when it derives only entailed sentences and complete when it can derive every entailed sentence; resolution is refutation-complete for propositional logic, so it always finds a contradiction when one exists.
Normal forms and reasoning algorithms
Algorithms rarely work on arbitrary formulas; they first convert them into a normal form. The most important is conjunctive normal form (CNF), a conjunction of clauses in which each clause is a disjunction of literals. The Tseitin transformation produces an equisatisfiable CNF that grows only linearly, avoiding the exponential blow-up of naive distribution.
Different reasoning methods suit different problem sizes and structures. The table compares the main approaches used in practice.
| Method | Approach | Complete | Typical use |
|---|---|---|---|
| Truth table | Enumerate all 2^n models | Yes | Teaching, under 20 variables |
| Resolution | Derive the empty clause from CNF | Yes | Theorem proving, proofs |
| DPLL | Backtracking with unit propagation | Yes | Classic SAT solving |
| CDCL | DPLL with clause learning | Yes | Industrial SAT, verification |
| WalkSAT | Stochastic local search | No | Large satisfiable instances |
| Forward chaining | Fire rules on Horn clauses | Yes for Horn | Rule engines, linear time |
Horn clauses, which contain at most one positive literal, deserve special mention. For Horn knowledge bases, entailment can be decided in linear time by forward or backward chaining, which is why production rule systems and logic programming restrict themselves to this fragment.
How propositional logic compares with richer logics
Propositional logic trades expressive power for decidability and speed. Each richer logic in the symbolic tradition adds constructs, and each addition changes the computational cost of reasoning.
| Logic | Adds | Decidability | Reasoning cost |
|---|---|---|---|
| Propositional logic | Atoms and connectives only | Decidable | SAT is NP-complete |
| First-order logic | Objects, predicates, quantifiers | Semi-decidable | No general upper bound |
| Description logic | Concepts and roles | Decidable for most variants | From polynomial to exponential |
| Modal logic | Necessity and possibility | Decidable for basic systems | Often PSPACE-complete |
| SMT | Theories such as arithmetic | Depends on the theory | Varies by theory |
The practical consequence is grounding: a first-order problem over a finite domain can be translated into propositional form by instantiating every variable. The result is decidable but can be very large, since a single rule over 1,000 objects may expand into a million propositional clauses.
Applications in AI and computing
Propositional logic is far from a textbook curiosity. Modern CDCL solvers handle instances with millions of variables and clauses, which makes SAT encoding a standard technique for hard combinatorial problems.
- Hardware verification: equivalence checking and bounded model checking of circuits.
- Classical planning: SATPlan encodes a plan of fixed length as a propositional formula.
- Configuration and scheduling: product configurators and timetables as constraint sets.
- Software analysis: package dependency resolution and test generation.
- Neuro-symbolic AI: logical constraints added to neural network training.
Limitations and common misconceptions
The main limitation is that propositional logic cannot generalize. A statement such as “every employee has a manager” requires one proposition per employee, so knowledge bases grow quickly and lose the structure that a human expert sees.
- Material implication is not causation: P → Q is true whenever P is false, which surprises many readers.
- NP-completeness does not mean impractical: real-world instances are often solved in seconds.
- Monotonicity: adding facts never removes conclusions, so default reasoning needs non-monotonic extensions.
- No uncertainty: truth is strictly binary; probabilistic reasoning requires separate formalisms.
The short version
Propositional logic is a way to reason with simple yes-or-no statements. Each statement is either true or false. Examples are “it is raining” or “the door is open”.
You can combine statements with words like and, or, not, and if-then. Fixed rules then tell you whether the combined statement is true. A computer can follow these rules without any guesswork. That makes it reliable, like a calculator for arguments.
The catch is that it only handles whole statements. It cannot easily say something about every person or every object at once.
Where it makes a difference
A chip design team must confirm that an optimized multiplier circuit behaves exactly like the original reference design before tape-out. Testing every input of two 32-bit numbers would require about 18 quintillion test cases, which is far beyond any simulation budget.
The engineers instead build a miter circuit that outputs true only when the two designs disagree, and they translate it into a propositional formula in CNF with several hundred thousand clauses. A CDCL SAT solver then searches for an input that makes the formula true.
When the solver reports the formula unsatisfiable, the team has a mathematical guarantee that the circuits are equivalent for every possible input. When it finds a satisfying assignment, that assignment is a concrete counterexample that points the designers directly to the bug.