Hilbert system
In logic, and more specifically proof theory, a Hilbert system is a type of formal proof system. It is also called a Hilbert calculus, Hilbert-style system, Hilbert-style proof system, Hilbert-style deductive system or Hilbert–Ackermann system. It is linked to Gottlob Frege and David Hilbert. These deductive systems are most often studied for first-order logic, but they are also useful for other logics.
A Hilbert system is a deductive system that creates theorems from axioms and rules. It is especially like this when the only rule is modus ponens. Every Hilbert system is an axiomatic system. Many authors use this general term for their Hilbert systems without naming any more specific terms. Hilbert systems are often compared with natural deduction systems, which use no axioms and only rules. Different sources define "Hilbert system" in different ways. For example, Troelstra defines it as a system with axioms, where →E and ∀I are the only rules. Some people also use the name for a specific set of axioms. Many writers use the term "Hilbert-style" because of the influence of the book Principles of Mathematical Logic (1928) by Hilbert and Ackermann. Some sources use it for systems whose axioms are written in schematic form, as in the § Schematic form of P2 section below.
Hilbert systems balance a trade-off between logical axioms and rules of inference in a particular way. They usually have a large number of schemas of logical axioms and only a small set of rules. Natural deduction systems do the opposite, with many rules and very few or no axiom schemas. The most commonly studied Hilbert systems have one rule, modus ponens, for propositional logics, or two rules for predicate logics, where generalisation is added. They also have several infinite axiom schemas. Hilbert systems for alethic modal logics, sometimes called Hilbert-Lewis systems, also need the necessitation rule. Some systems use a finite list of specific formulas as axioms instead of infinite axiom schemas, and in that case the uniform substitution rule is needed.
A key feature of Hilbert systems is that the context does not change in any of their rules. In contrast, both natural deduction and sequent calculus include some rules that change the context. Because of this, if someone only wants to know whether tautologies can be derived, Hilbert systems can be written so that their rules contain only judgments of a fairly simple form. The other two systems cannot be set up this way. Since their context changes in some rules, they cannot avoid hypothetical judgments, even when they are used only to prove that tautologies can be derived.
Formal deductions
In a Hilbert system, a formal proof is a list of formulas written one after another. Each formula is either an axiom or comes from earlier formulas by a rule of inference. These proofs are meant to look like the proofs people write in everyday language, but they are much more detailed.
Hilbert systems use many logical axioms. An axiom schema is a pattern that makes a large set of axioms by filling in many different formulas of one form. Logical axioms also include any generalization of these axioms, made by adding "for all" in front of a formula. Sets of formulas called hypotheses, such as axioms for group theory or set theory, can also be used. The notation Γ⊢ϕ means that ϕ can be proved using only logical axioms and the formulas in Γ.
Propositional logic
Some Hilbert systems have been used in propositional logic. One of them, the schematic form of P2, is also seen as a Frege system. People have used axiomatic proofs in mathematics since Ancient Greek times. The textbook Euclid wrote, Elements of Geometry, around 300 BC. The first known fully formalized proof system that counts as a Hilbert system comes from Gottlob Frege's book Begriffsschrift from 1879. Frege's system used only implication and negation. It had six axioms. Frege used these together with modus ponens and a substitution rule. This made a complete and consistent system for classical propositional logic.
Jan Łukasiewicz showed that one of Frege's axioms was not needed. He also showed that the last three could be replaced by one sentence written in Polish notation. That sentence can be changed into infix notation. Łukasiewicz is known for a system with three axioms. Alonzo Church shared it again and helped make it popular as P2. The schematic version of P2 uses symbols that stand for any well-formed formulas. It is credited to John von Neumann and also to Hilbert. It is used in the Metamath "set.mm" proof database. The idea of using axiom schemas instead of a substitution rule is also credited to von Neumann.
Predicate logic (example system)
There are many ways to set up predicate logic. You can choose different starting rules (axioms) and different ways of reasoning. This section describes one system with nine axioms and only one reasoning rule, called modus ponens. The first axiom can be figured out from the others (proof). The first four axioms describe classical propositional logic. If you remove the fourth axiom, the system becomes positive implicational logic. Changing one axiom gives Minimal logic, and adding other axioms gives Intuitionistic logic.
Three more axioms deal with "for all" statements. These extend the system to classical predicate logic. A different approach uses a rule called Generalization in place of two of these axioms. The last two axioms deal with statements that use equals signs.
Conservative extensions
It is common to include only axioms for implication and negation in a Hilbert system. These two are enough to reach functional completeness. Using these axioms, it is possible to build conservative extensions of the deduction theorem. These extensions let the system use extra connectives. They are called conservative because any formula with a new connective can be rewritten as a logically equivalent formula that uses only negation, implication, and universal quantification. The original formula can be proved in the extended system exactly when the rewritten version can be proved in the original system. When fully extended, a Hilbert system looks more like a system of natural deduction.
The extensions also cover existential quantification, conjunction, and disjunction. Existential quantification has rules for introduction and elimination. The elimination rule only works when the variable is not a free variable of the other part. Conjunction ("and") has rules for joining two parts and for taking either part on its own. Disjunction ("or") has rules for adding either part to make an "or" statement. It also has a rule for using an "or" statement to reach the same conclusion from each possibility.

Quiz time!
4 questions about Hilbert system
What kind of thing is a Hilbert system?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Hilbert system, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.