Consistency, Completeness and Decidability Compared
Learn what each property of a logical theory means, how they depend on one another, and which familiar theories have which, with examples.
Key takeaways
- A consistent theory never proves both a sentence and its negation, and an inconsistent classical theory proves every sentence.
- A complete theory proves or refutes every sentence of its language, which is a property of the axioms and not of the logic alone.
- A decidable theory has an algorithm that always halts with a correct yes or no answer to whether a sentence is a theorem.
- A consistent, complete theory with mechanically listable axioms is automatically decidable.
- The converse fails, because some decidable theories leave many sentences unsettled.
Consistency asks whether a theory ever contradicts itself. Completeness asks whether it settles every question that can be phrased in its language. Decidability asks whether a computer program could tell you, for any sentence, whether the theory proves it.
These are three separate properties. A theory can have some and lack others, and most of the famous results of 20th century logic are statements about which combinations are possible.
Theories, proofs and sentences
A language here means a stock of symbols, such as + or <, together with the logical symbols for "and", "not", "for all" and "there exists". A sentence is a formula with no free variables, so it is true or false once the symbols are interpreted.
A theory is the collection of all sentences provable from a given set of axioms. A model of the theory is a mathematical structure in which all those axioms are true. If you are new to quantifiers, see how predicate logic extends propositional logic.
Take a small running example. The language has one symbol <. The axioms say that < is a strict linear order: nothing is less than itself, the relation is transitive, and any two distinct elements are comparable.
Consistency
A theory is consistent if there is no sentence φ such that both φ and "not φ" are provable. In classical logic, a single contradiction lets you derive anything at all, so an inconsistent theory proves every sentence and tells you nothing.
The usual way to show consistency is to exhibit a model. Our order axioms are consistent because the whole numbers with the ordinary < satisfy them, and a true statement and its negation cannot both hold in one structure.
That method moves the burden elsewhere. You trust the order axioms to the extent that you trust the existence of the whole numbers. Such relative consistency proofs show that if one theory is free of contradiction, so is another.
A related and stronger property is soundness: every provable sentence is true in the intended structure. A sound theory is consistent, but a consistent theory can prove false things about the structure you had in mind.
Completeness, in two senses
A theory is complete, sometimes called negation complete, if for every sentence φ it proves φ or proves "not φ".
Our order theory is not complete. Consider the sentence "there is a smallest element". It is true in the natural numbers and false in the integers. Both satisfy the axioms, so the axioms can neither prove it nor refute it.
Now add axioms: between any two elements lies a third, there is no smallest or largest element, and at least one element exists. This theory of dense linear orders without endpoints is complete. The rational numbers satisfy it, and so do the real numbers, and no first-order sentence about order can tell them apart.
The second sense belongs to logic itself. Semantic completeness means that every sentence true in all models of the axioms is provable from them. Gödel proved this for first-order logic in 1929. It holds for any set of first-order axioms, complete or not, because it speaks only of sentences true in every model.
Decidability
A theory is decidable if some algorithm, given any sentence, halts after finitely many steps and reports correctly whether the sentence is a theorem.
Propositional logic is the friendly case. A formula with n distinct letters has 2ⁿ rows in its truth table, so you can check them all. For 3 letters that is 8 rows. The method always ends, although it grows quickly: 30 letters already give more than a billion rows. See truth tables explained.
Decidable is therefore a statement about possibility in principle. Some decidable theories have only algorithms whose running time is hopelessly large.
A weaker property is being semi-decidable: a program says yes for every theorem eventually but may run forever on non-theorems. Any theory with mechanically listable axioms has this property, since you can generate all proofs one by one and wait.
How the properties connect
Here is the most useful link. Suppose a theory is complete and its axioms can be listed by a program. Then it is decidable.
Input: a sentence φ
1. List all possible proofs from the axioms, one after another. (axioms are listable)
2. Check each: does it end in φ, or in "not φ"?
3. Completeness guarantees one of the two will appear.
4. Consistent theory: the one that appears gives the answer.
(Inconsistent theory: every sentence is a theorem, so answer yes.) The search may take an astronomically long time, but it must end.
Read this backward and you get a form of incompleteness. If a consistent theory with listable axioms is undecidable, it cannot be complete.
The converse does not hold. The theory of abelian groups, in which the operation is commutative, was shown by Wanda Szmielew to be decidable. Yet it is incomplete: it cannot settle "every element added to itself gives zero", which is true in some abelian groups and false in others. The algorithm correctly answers "not a theorem" both for that sentence and for its negation.
A table of familiar cases
| Theory | Consistent | Complete | Decidable |
|---|---|---|---|
| Dense linear orders without endpoints | Yes | Yes | Yes |
| Presburger arithmetic (natural numbers with +) | Yes | Yes | Yes |
| Real closed fields (real numbers with + and ×) | Yes | Yes | Yes |
| Abelian groups | Yes | No | Yes |
| Groups in general | Yes | No | No |
| Peano arithmetic | Yes, given standard mathematics | No | No |
Presburger established the second row in 1929. Tarski established the third, which also yields a decision method for elementary geometry stated in coordinates.
The last two rows carry the surprises. The axioms of group theory are short and obviously consistent, since a group with one element satisfies them. Still, no algorithm decides which first-order sentences follow from them.
Peano arithmetic is incomplete by Gödel's first theorem. Its consistency is accepted by almost all mathematicians, but by the second theorem it cannot be proved inside Peano arithmetic itself.
Logic itself is not decidable
Suppose you assume no special axioms and ask only which first-order sentences are logically valid, meaning true in every structure. By the completeness theorem, a program can eventually confirm every valid one.
In 1936 Alonzo Church and Alan Turing showed independently that no algorithm can also reliably reject the invalid ones. This answered the Entscheidungsproblem, or decision problem, posed in the circle of David Hilbert. Turing's method is explained in Turing machines and the halting problem.
Fragments can be tamer. If a language has only one-place predicates, such as "is even" or "is red", and no relations between two things, validity is decidable.
Deciding by eliminating quantifiers
How does anyone prove that a theory with infinitely many possible sentences is decidable? A common method is quantifier elimination: show that every formula is equivalent, within the theory, to one with no "for all" or "there exists".
Over the real numbers, the statement "there exists x with x² + bx + c = 0" is equivalent to b² − 4c ≥ 0. The right side mentions no unknown to search for. You can evaluate it directly from b and c.
In dense linear orders, "there exists x with a < x and x < b" is equivalent to simply a < b. Apply such replacements from the inside out until a sentence has no quantifiers left, and then read off its truth. A procedure that always finishes this reduction, followed by a way to decide the quantifier-free sentences that remain, is a decision method. If the axioms themselves prove or refute each of those leftovers, you have shown completeness too.
Common mistakes
Treating "undecidable sentence" and "undecidable theory" as the same. A sentence is called undecidable or independent when a theory neither proves nor refutes it. A theory is undecidable when no algorithm sorts its theorems from its non-theorems. The first is about one sentence; the second is about all of them at once.
Thinking completeness is always desirable. Group theory is useful precisely because it leaves questions open. Its theorems apply to every group, commutative or not.
Assuming an inconsistent theory fails all three. It is trivially complete, since it proves everything, and trivially decidable, since the algorithm can say yes every time. It fails only consistency, which is why the other two properties matter only alongside it.
Confusing decidable with easy. A guarantee that a procedure halts says nothing about whether it halts this century.
A checklist for any new theory
- Look for a model. If you find one you trust, the theory is consistent.
- Look for two models that disagree on a sentence. If you find them, it is incomplete.
- If it is complete and the axioms are listable, you have decidability for free.
- If it can express addition and multiplication of natural numbers well enough, expect it to be both incomplete and undecidable, provided it is consistent.
For the history of the hope that mathematics could have all three, read about Hilbert's program.