:Hilbert system
{{Short description|System of formal deduction in logic}}
In logic, more specifically proof theory, a Hilbert system, sometimes called Hilbert calculus, Hilbert-style system, Hilbert-style proof system, Hilbert-style deductive system or Hilbert–Ackermann system, is a type of formal proof system attributed to Gottlob FregeMáté & Ruzsa 1997:129 and David Hilbert.{{Cite book |last=Smith |first=Peter |url=https://books.google.com/books?id=-SBpYKebkJMC |title=An Introduction to Gödel's Theorems |date=2013-02-21 |publisher=Cambridge University Press |isbn=978-1-107-02284-3 |pages=10 |language=en}} These deductive systems are most often studied for first-order logic, but are of interest for other logics as well.
It is defined as a deductive system that generates theorems from axioms and inference rules,{{Cite book |last=Restall |first=Greg |url=https://books.google.com/books?id=Z3AsBgAAQBAJ |title=An Introduction to Substructural Logics |date=2002-09-11 |publisher=Routledge |isbn=978-1-135-11131-1 |pages=73–74 |language=en}}{{Cite web |last=Gaifman |first=Haim |date=2002 |title=A Hilbert Type Deductive System for Sentential Logic, Completeness and Compactness |url=https://www.columbia.edu/~hg17/ViewMathLogic/view1-deductive-system.pdf |access-date=2024-08-19 |website=Columbia}}{{Cite book |last1=Benthem |first1=Johan van |url=https://books.google.com/books?id=OnIeiWWAfpkC |title=Proof, Computation and Agency: Logic at the Crossroads |last2=Gupta |first2=Amitabha |last3=Parikh |first3=Rohit |date=2011-04-02 |publisher=Springer Science & Business Media |isbn=978-94-007-0080-2 |pages=41 |language=en}} especially if the only postulated inference rule is modus ponens.{{Cite book |last=Bacon |first=Andrew |url=https://books.google.com/books?id=qa3WEAAAQBAJ |title=A Philosophical Introduction to Higher-order Logics |date=2023-09-29 |publisher=Taylor & Francis |isbn=978-1-000-92575-3 |pages=424 |language=en}}{{Cite book |last=Eijck |first=Jan van |url=https://books.google.com/books?id=ejgMbaqLfNsC |title=Logics in AI: European Workshop JELIA '90, Amsterdam, The Netherlands, September 10-14, 1990. Proceedings |date=1991-02-26 |publisher=Springer Science & Business Media |isbn=978-3-540-53686-4 |pages=113 |language=en}} Every Hilbert system is an axiomatic system, which is used by many authors as a sole less specific term to declare their Hilbert systems,{{Cite book |last=Haack |first=Susan |url=https://books.google.com/books?id=0GsZ8SBQrUcC |title=Philosophy of Logics |date=1978-07-27 |publisher=Cambridge University Press |isbn=978-0-521-29329-7 |pages=19 |language=en}}{{Cite book |last=Lucas |first=J. R. |url=https://books.google.com/books?id=ymsPEAAAQBAJ |title=A Treatise on Time and Space |date=2018-10-10 |publisher=Routledge |isbn=978-0-429-68517-0 |pages=152 |language=en}} without mentioning any more specific terms. In this context, "Hilbert systems" are contrasted with natural deduction systems, in which no axioms are used, only inference rules.
While all sources that refer to an "axiomatic" logical proof system characterize it simply as a logical proof system with axioms, sources that use variants of the term "Hilbert system" sometimes define it in different ways, which will not be used in this article. For instance, Troelstra defines a "Hilbert system" as a system with axioms and with and as the only inference rules.{{Cite book |last1=Troelstra |first1=A. S. |url=https://www.cambridge.org/core/books/basic-proof-theory/928508F797214A017D245A1FB67CCCD9 |title=Basic Proof Theory |last2=Schwichtenberg |first2=H. |date=2000 |publisher=Cambridge University Press |isbn=978-0-521-77911-1 |edition=2 |series=Cambridge Tracts in Theoretical Computer Science |location=Cambridge |pages=51 |doi=10.1017/cbo9781139168717}} A specific set of axioms is also sometimes called "the Hilbert system",{{Cite web |title=Introduction to Logic - Chapter 4 |url=http://intrologic.stanford.edu/chapters/chapter_04.html |access-date=2024-08-16 |website=intrologic.stanford.edu}} or "the Hilbert-style calculus".{{Cite book |last=Buss |first=S. R. |url=https://books.google.com/books?id=MfTMDeCq7ukC |title=Handbook of Proof Theory |date=1998-07-09 |publisher=Elsevier |isbn=978-0-08-053318-6 |pages=552–553 |language=en}} Sometimes, "Hilbert-style" is used to convey the type of axiomatic system that has its axioms given in schematic form, as in the {{Section link||Schematic form of P2}} below—but other sources use the term "Hilbert-style" as encompassing both systems with schematic axioms and systems with a rule of substitution,{{Cite book |last=Ono |first=Hiroakira |url=https://books.google.com/books?id=SR2nDwAAQBAJ |title=Proof Theory and Algebra in Logic |date=2019-08-02 |publisher=Springer |isbn=978-981-13-7997-0 |pages=5 |language=en}} as this article does. The use of "Hilbert-style" and similar terms to describe axiomatic proof systems in logic is due to the influence of Hilbert and Ackermann's Principles of Mathematical Logic (1928).
Most variants of Hilbert systems take a characteristic tack in the way they balance a trade-off between logical axioms and rules of inference.{{Cite book |last=Eijck |first=Jan van |url=https://books.google.com/books?id=ejgMbaqLfNsC |title=Logics in AI: European Workshop JELIA '90, Amsterdam, The Netherlands, September 10-14, 1990. Proceedings |date=1991-02-26 |publisher=Springer Science & Business Media |isbn=978-3-540-53686-4 |pages=113 |language=en}} Hilbert systems can be characterised by the choice of a large number of schemas of logical axioms and a small set of rules of inference. Systems of natural deduction take the opposite tack, including many deduction rules but very few or no axiom schemas. The most commonly studied Hilbert systems have either just one rule of inference{{snd}} modus ponens, for propositional logics{{snd}} or two{{snd}} with generalisation, to handle predicate logics, as well{{snd}} and several infinite axiom schemas. Hilbert systems for alethic modal logics, sometimes called Hilbert-Lewis systems, additionally require the necessitation rule. Some systems use a finite list of concrete formulas as axioms instead of an infinite set of formulas via axiom schemas, in which case the uniform substitution rule is required.
A characteristic feature of the many variants of Hilbert systems is that the context is not changed in any of their rules of inference, while both natural deduction and sequent calculus contain some context-changing rules.{{Cite book |last1=Gabbay |first1=Dov M. |url=https://books.google.com/books?id=54LrCAAAQBAJ |title=Handbook of Philosophical Logic |last2=Guenthner |first2=Franz |date=2013-03-14 |publisher=Springer Science & Business Media |isbn=978-94-017-0458-8 |pages=201 |language=en}} Thus, if one is interested only in the derivability of tautologies, no hypothetical judgments, then one can formalize the Hilbert system in such a way that its rules of inference contain only judgments of a rather simple form. The same cannot be done with the other two deductions systems:{{Citation needed|date=March 2014}} as context is changed in some of their rules of inferences, they cannot be formalized so that hypothetical judgments could be avoided{{snd}} not even if we want to use them just for proving derivability of tautologies.
Formal deductions
{{Unreferenced section|date=August 2024}}
File:Deduction architecture.png
In a Hilbert system, a formal deduction (or proof) is a finite sequence of formulas in which each formula is either an axiom or is obtained from previous formulas by a rule of inference. These formal deductions are meant to mirror natural-language proofs, although they are far more detailed.
Suppose is a set of formulas, considered as hypotheses. For example, could be a set of axioms for group theory or set theory. The notation means that there is a deduction that ends with using as axioms only logical axioms and elements of . Thus, informally, means that is provable assuming all the formulas in .
Hilbert systems are characterized by the use of numerous schemas of logical axioms. An axiom schema is an infinite set of axioms obtained by substituting all formulas of some form into a specific pattern. The set of logical axioms includes not only those axioms generated from this pattern, but also any generalization of one of those axioms. A generalization of a formula is obtained by prefixing zero or more universal quantifiers on the formula; for example is a generalization of .
Propositional logic
The following are some Hilbert systems that have been used in propositional logic. One of them, the {{Section link||Schematic form of P2}}, is also considered a Frege system.
= Frege's ''Begriffsschrift'' =
Axiomatic proofs have been used in mathematics since the famous Ancient Greek textbook, Euclid's Elements of Geometry, {{circa}} 300 BC. But the first known fully formalized proof system that thereby qualifies as a Hilbert system dates back to Gottlob Frege's 1879 Begriffsschrift.{{Cite book |last=Smullyan |first=Raymond M. |url=https://books.google.com/books?id=n6S-AwAAQBAJ |title=A Beginner's Guide to Mathematical Logic |date=2014-07-23 |publisher=Courier Corporation |isbn=978-0-486-49237-7 |pages=102–103 |language=en}} Frege's system used only implication and negation as connectives,{{Citation |last=Franks |first=Curtis |title=Propositional Logic |date=2023 |encyclopedia=The Stanford Encyclopedia of Philosophy |editor-last=Zalta |editor-first=Edward N. |url=https://plato.stanford.edu/archives/fall2023/entries/logic-propositional/ |access-date=2024-03-22 |edition=Fall 2023 |publisher=Metaphysics Research Lab, Stanford University |editor2-last=Nodelman |editor2-first=Uri}} and it had six axioms, which were these ones:{{Cite book |last=Mendelsohn |first=Richard L. |url=https://books.google.com/books?id=G6_90xFwUbUC |title=The Philosophy of Gottlob Frege |date=2005-01-10 |publisher=Cambridge University Press |isbn=978-1-139-44403-3 |pages=185 |language=en}}{{Cite book |last=Łukasiewicz |first=Jan |url=https://books.google.com/books?id=Jb_zOwAACAAJ |title=Jan Lukasiewicz: Selected Works |date=1970 |publisher=North-Holland |pages=136 |language=en}}
- Proposition 1:
- Proposition 2:
- Proposition 8:
- Proposition 28:
- Proposition 31:
- Proposition 41:
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.
= Łukasiewicz's P<sub>2</sub> =
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 ". Which, taken out of Łukasiewicz's Polish notation into modern notation, means . Hence, Łukasiewicz is credited 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. The exact same system was given (with an explicit substitution rule) by Alonzo Church,{{Cite book |last=Church |first=Alonzo |url=https://books.google.com/books?id=JDLQOMKbdScC |title=Introduction to Mathematical Logic |date=1996 |publisher=Princeton University Press |isbn=978-0-691-02906-1 |pages=119 |language=en}} who referred to it as the system P2,{{Cite web |title=Proof Explorer - Home Page - Metamath |url=https://us.metamath.org/mpegif/mmset.html#scaxioms |access-date=2024-07-02 |website=us.metamath.org |language=EN-US}} and helped popularize it.
= Schematic form of P<sub>2</sub> =
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 schemas (metalogical variables that may stand for any well-formed formulas), the axioms are given as:{{Cite book |last=Bostock |first=David |title=Intermediate logic |date=1997 |publisher=Clarendon Press; Oxford University Press |isbn=978-0-19-875141-0 |location=Oxford : New York |pages=4–5, 8–13, 18–19, 22, 27, 29, 191, 194}}
The schematic version of P2 is attributed to John von Neumann, and is used in the Metamath "set.mm" formal proof database. In fact, the very idea of using axiom schemas to replace the rule of substitution is attributed to von Neumann. The schematic version of P2 has also been attributed to Hilbert, and named in this context.{{Cite book |last=Walicki |first=Michał |title=Introduction to mathematical logic |date=2017 |publisher=World Scientific |isbn=978-981-4719-95-7 |edition=Extended |location=New Jersey |pages=126}}
Systems for propositional logic whose inference rules are schematic are also called Frege systems; as the authors that originally defined the term "Frege system"{{Cite book |last1=Pudlák |first1=Pavel |last2=Buss |first2=Samuel R. |date=1995 |editor-last=Pacholski |editor-first=Leszek |editor2-last=Tiuryn |editor2-first=Jerzy |chapter=How to lie without being (easily) convicted and the lengths of proofs in propositional calculus |chapter-url=https://link.springer.com/chapter/10.1007/BFb0022253 |title=Computer Science Logic |series=Lecture Notes in Computer Science |volume=933 |language=en |location=Berlin, Heidelberg |publisher=Springer |pages=152 |doi=10.1007/BFb0022253 |isbn=978-3-540-49404-1}} note, this actually excludes Frege's own system, given above, since it had axioms instead of axiom schemas.{{Cite journal |last1=Cook |first1=Stephen A. |last2=Reckhow |first2=Robert A. |date=1979 |title=The relative efficiency of propositional proof systems |url=https://www.cambridge.org/core/journals/journal-of-symbolic-logic/article/abs/relative-efficiency-of-propositional-proof-systems/218048250981F835B4B2A4080205A0BA |journal=The Journal of Symbolic Logic |language=en |volume=44 |issue=1 |pages=39 |doi=10.2307/2273702 |jstor=2273702 |issn=0022-4812}}
==Proof example in P<sub>2</sub>==
As an example, a proof of in P2 is given below. First, the axioms are given names:
:(A1)
:(A2)
:(A3)
And the proof is as follows:
- (instance of (A1))
- (instance of (A2))
- (from (1) and (2) by modus ponens)
- (instance of (A1))
- (from (4) and (3) by modus ponens)
Predicate logic (example system)
{{Unreferenced section|date=August 2024}}
There is an unlimited amount of axiomatisations of predicate logic, since for any logic there is freedom in choosing axioms and rules that characterise that logic. We describe here a Hilbert system with nine axioms and just the rule modus ponens, which we call the one-rule axiomatisation and which describes classical equational logic. We deal with a minimal language for this logic, where formulas use only the connectives and and only the quantifier . Later we show how the system can be extended to include additional logical connectives, such as and , without enlarging the class of deducible formulas.
The first four logical axiom schemas allow (together with modus ponens) for the manipulation of logical connectives.
:P1.
:P2.
:P3.
:P4.
The axiom P1 is redundant, as it follows from P3, P2 and modus ponens (see proof). These axioms describe classical propositional logic; without axiom P4 we get positive implicational logic. Minimal logic is achieved either by adding instead the axiom P4m, or by defining as .
:P4m.
Intuitionistic logic is achieved by adding axioms P4i and P5i to positive implicational logic, or by adding axiom P5i to minimal logic. Both P4i and P5i are theorems of classical propositional logic.
:P4i.
:P5i.
Note that these are axiom schemas, which represent infinitely many specific instances of axioms. For example, P1 might represent the particular axiom instance , or it might represent : the is a place where any formula can be placed. A variable such as this that ranges over formulae is called a 'schematic variable'.
With a second rule of uniform substitution (US), we can change each of these axiom schemas into a single axiom, replacing each schematic variable by some propositional variable that isn't mentioned in any axiom to get what we call the substitutional axiomatisation. Both formalisations have variables, but where the one-rule axiomatisation has schematic variables that are outside the logic's language, the substitutional axiomatisation uses propositional variables that do the same work by expressing the idea of a variable ranging over formulae with a rule that uses substitution.
:US. Let be a formula with one or more instances of the propositional variable , and let be another formula. Then from , infer .
The next three logical axiom schemas provide ways to add, manipulate, and remove universal quantifiers.
:Q5. where t may be substituted for x in
:Q6.
:Q7. where x is not free in .
These three additional rules extend the propositional system to axiomatise classical predicate logic. Likewise, these three rules extend system for intuitionstic propositional logic (with P1-3 and P4i and P5i) to intuitionistic predicate logic.
Universal quantification is often given an alternative axiomatisation using an extra rule of generalisation, in which case the rules Q6 and Q7 are redundant.
- Generalization: If and x does not occur free in any formula of then .
The final axiom schemas are required to work with formulas involving the equality symbol.
:I8. for every variable x.
:I9.
Conservative extensions
{{Unreferenced section|date=March 2024}}
It is common to include in a Hilbert system only axioms for the logical operators implication and negation towards functional completeness. Given these axioms, it is possible to form conservative extensions of the deduction theorem that permit the use of additional connectives. These extensions are called conservative because if a formula φ involving new connectives is rewritten as a logically equivalent formula θ involving only negation, implication, and universal quantification, then φ is derivable in the extended system if and only if θ is derivable in the original system. When fully extended, a Hilbert system will resemble more closely a system of natural deduction.
= Existential quantification =
= Conjunction and disjunction =
- Conjunction introduction and elimination
:introduction:
:elimination left:
:elimination right:
- Disjunction introduction and elimination
:introduction left:
:introduction right:
:elimination:
See also
Notes
References
- {{cite book
| last = Curry
| first = Haskell B.
|author2=Robert Feys
| title = Combinatory Logic Vol. I
| volume = 1
| year = 1958
| publisher = North Holland
| location = Amsterdam
}}
- {{cite book |last1=Monk |first1=J. Donald |year=1976 |title=Mathematical Logic |publisher=Springer-Verlag |location=Berlin, New York |series=Graduate Texts in Mathematics |isbn=978-0-387-90170-1 |url-access=registration |url=https://archive.org/details/mathematicallogi00jdon}}
- {{cite book |last1=Ruzsa |first1=Imre |last2=Máté |first2=András |year=1997 |title=Bevezetés a modern logikába |language=Hungarian |publisher=Osiris Kiadó |location=Budapest}}
- {{cite book |last=Tarski |first=Alfred |year=1990 |title=Bizonyítás és igazság |language=Hungarian |publisher=Gondolat |location=Budapest}} It is a Hungarian translation of Alfred Tarski's selected papers on semantic theory of truth.
- David Hilbert (1927) "The foundations of mathematics", translated by Stephan Bauer-Menglerberg and Dagfinn Føllesdal (pp. 464–479). in:
- {{cite book
| last = van Heijenoort
| first = Jean
| year = 1967
| title = From Frege to Gödel: A Source Book in Mathematical Logic, 1879–1931
| edition = 3rd printing 1976
| publisher = Harvard University Press
| location = Cambridge MA
| isbn = 0-674-32449-8
| url = https://archive.org/details/fromfregetogodel0000vanh
| url-access = registration
}}
- Hilbert's 1927, Based on an earlier 1925 "foundations" lecture (pp. 367–392), presents his 17 axioms—axioms of implication #1-4, axioms about & and V #5-10, axioms of negation #11-12, his logical ε-axiom #13, axioms of equality #14-15, and axioms of number #16-17—along with the other necessary elements of his Formalist "proof theory"—e.g. induction axioms, recursion axioms, etc.; he also offers up a spirited defense against L.E.J. Brouwer's Intuitionism. Also see Hermann Weyl's (1927) comments and rebuttal (pp. 480–484), Paul Bernay's (1927) appendix to Hilbert's lecture (pp. 485–489) and Luitzen Egbertus Jan Brouwer's (1927) response (pp. 490–495)
- {{cite book
| last = Kleene
| first = Stephen Cole
| year = 1952
| title = Introduction to Metamathematics
| edition = 10th impression with 1971 corrections
| publisher = North Holland Publishing Company
| location = Amsterdam NY
| isbn = 0-7204-2103-9}}
- See in particular Chapter IV Formal System (pp. 69–85) wherein Kleene presents subchapters §16 Formal symbols, §17 Formation rules, §18 Free and bound variables (including substitution), §19 Transformation rules (e.g. modus ponens) -- and from these he presents 21 "postulates"—18 axioms and 3 "immediate-consequence" relations divided as follows: Postulates for the propostional calculus #1-8, Additional postulates for the predicate calculus #9-12, and Additional postulates for number theory #13-21.
External links
- {{cite web |last=Gaifman |first=Haim
|title=A Hilbert Type Deductive System for Sentential Logic, Completeness and Compactness.
|url=http://www.columbia.edu/~hg17/ViewMathLogic/view1-deductive-system.pdf
}}
- {{cite web |last=Farmer |first=W. M
|title=Propositional logic
|url=http://imps.mcmaster.ca/courses/SE-2F03-05/slides/02-prop-logic.pdf
}} It describes (among others) a specific Hilbert-style proof system (that is restricted to propositional calculus).
{{Mathematical logic}}
{{Foundations-footer}}
{{DEFAULTSORT:Hilbert System}}